@qrvey/filters 0.0.14 → 0.0.15
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/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v0.0.15](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.15..v0.0.14)
|
|
8
|
+
|
|
9
|
+
- fix: :bug: adjusted the adapter of interactive table to avoid pushing the old info [`f940b45`](https://bitbucket.org/qrvey/qrvey_filters/commits/f940b456cd6db9e3994e03b1a577ad42e570263c)
|
|
10
|
+
|
|
7
11
|
#### [v0.0.14](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.14..v0.0.13)
|
|
8
12
|
|
|
13
|
+
> 27 May 2024
|
|
14
|
+
|
|
9
15
|
- feat: :zap: added the filter interactive table into the adapters [`f47df0c`](https://bitbucket.org/qrvey/qrvey_filters/commits/f47df0cd50adc02a56363b30c424507c9900bdff)
|
|
10
16
|
|
|
11
17
|
#### [v0.0.13](https://bitbucket.org/qrvey/qrvey_filters/compare/v0.0.13..v0.0.12)
|
|
@@ -80,9 +80,9 @@ function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
|
|
|
80
80
|
if ((0, utils_1.isEmpty)(legacyVisual) || (0, utils_1.isEmpty)(legacyVisual?.scopes))
|
|
81
81
|
return;
|
|
82
82
|
const newInteractiveTable = {
|
|
83
|
+
...interactiveTable,
|
|
83
84
|
interactScopes: [],
|
|
84
85
|
interactDatasets: [],
|
|
85
|
-
...interactiveTable,
|
|
86
86
|
};
|
|
87
87
|
legacyVisual.scopes.forEach((scope) => {
|
|
88
88
|
newInteractiveTable.interactScopes.push({
|
|
@@ -94,7 +94,7 @@ function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
|
|
|
94
94
|
return;
|
|
95
95
|
scope.datasets.forEach((dataset) => {
|
|
96
96
|
newInteractiveTable.interactDatasets.push({
|
|
97
|
-
collapsed:
|
|
97
|
+
collapsed: dataset.collapsed,
|
|
98
98
|
scope: scope.scope,
|
|
99
99
|
scopeId: scope.scopeid,
|
|
100
100
|
datasetId: dataset.qrveyid,
|
|
@@ -75,9 +75,9 @@ export function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
|
|
|
75
75
|
if (isEmpty(legacyVisual) || isEmpty(legacyVisual?.scopes))
|
|
76
76
|
return;
|
|
77
77
|
const newInteractiveTable = {
|
|
78
|
+
...interactiveTable,
|
|
78
79
|
interactScopes: [],
|
|
79
80
|
interactDatasets: [],
|
|
80
|
-
...interactiveTable,
|
|
81
81
|
};
|
|
82
82
|
legacyVisual.scopes.forEach((scope) => {
|
|
83
83
|
newInteractiveTable.interactScopes.push({
|
|
@@ -89,7 +89,7 @@ export function legacyVisualToInteractiveTable(legacyVisual, interactiveTable) {
|
|
|
89
89
|
return;
|
|
90
90
|
scope.datasets.forEach((dataset) => {
|
|
91
91
|
newInteractiveTable.interactDatasets.push({
|
|
92
|
-
collapsed:
|
|
92
|
+
collapsed: dataset.collapsed,
|
|
93
93
|
scope: scope.scope,
|
|
94
94
|
scopeId: scope.scopeid,
|
|
95
95
|
datasetId: dataset.qrveyid,
|
package/package.json
CHANGED
|
@@ -104,9 +104,9 @@ export function legacyVisualToInteractiveTable(
|
|
|
104
104
|
if (isEmpty(legacyVisual) || isEmpty(legacyVisual?.scopes)) return;
|
|
105
105
|
|
|
106
106
|
const newInteractiveTable: IFilterPanelInteractiveTable = {
|
|
107
|
+
...interactiveTable,
|
|
107
108
|
interactScopes: [],
|
|
108
109
|
interactDatasets: [],
|
|
109
|
-
...interactiveTable,
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
legacyVisual.scopes.forEach((scope: IFUScope) => {
|
|
@@ -118,7 +118,7 @@ export function legacyVisualToInteractiveTable(
|
|
|
118
118
|
if (scope.datasets.length === 0) return;
|
|
119
119
|
scope.datasets.forEach((dataset: IFUDataset) => {
|
|
120
120
|
newInteractiveTable.interactDatasets!.push({
|
|
121
|
-
collapsed:
|
|
121
|
+
collapsed: dataset.collapsed,
|
|
122
122
|
scope: scope.scope,
|
|
123
123
|
scopeId: scope.scopeid,
|
|
124
124
|
datasetId: dataset.qrveyid,
|