adminforth 2.4.0-next.272 → 2.4.0-next.274

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.
@@ -478,4 +478,4 @@ export function checkShowIf(c: AdminForthResourceColumnInputCommon, record: Reco
478
478
  };
479
479
 
480
480
  return evaluatePredicate(c.showIf);
481
- }
481
+ }
@@ -125,25 +125,26 @@ onMounted(async () => {
125
125
  }
126
126
  return acc;
127
127
  }, {});
128
- let userUseMultipleEncoding = false; //TODO remove this in future versions
128
+ let userUseMultipleEncoding = true; //TODO remove this in future versions
129
129
  if (route.query.values) {
130
130
  try {
131
- JSON.parse((route.query.values as string));
131
+ JSON.parse(decodeURIComponent(route.query.values as string));
132
+ console.warn('You are using an outdated format for the query vales. Please update your links and don`t use multiple URL encoding.');
132
133
  } catch (e) {
133
- userUseMultipleEncoding = true;
134
+ userUseMultipleEncoding = false;
134
135
  console.warn('You are using an outdated format for the query vales. Please update your links and don`t use multiple URL encoding.');
135
136
  }
136
137
  if (userUseMultipleEncoding) {
137
138
  initialValues.value = { ...initialValues.value, ...JSON.parse(decodeURIComponent((route.query.values as string))) };
138
139
  } else {
139
- initialValues.value = { ...initialValues.value, ...JSON.parse((route.query.values as string)) };
140
+ initialValues.value = { ...initialValues.value, ...JSON.parse(atob(route.query.values as string)) };
140
141
  }
141
142
  }
142
143
  if (route.query.readonlyColumns) {
143
144
  if (userUseMultipleEncoding) {
144
145
  readonlyColumns.value = JSON.parse(decodeURIComponent((route.query.readonlyColumns as string)));
145
146
  } else {
146
- readonlyColumns.value = JSON.parse((route.query.readonlyColumns as string));
147
+ readonlyColumns.value = JSON.parse(atob(route.query.readonlyColumns as string));
147
148
  }
148
149
  }
149
150
  record.value = initialValues.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.272",
3
+ "version": "2.4.0-next.274",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",