@ghentcdh/json-forms-vue 0.2.0 → 0.2.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.
package/index.js CHANGED
@@ -9091,11 +9091,11 @@ class TableStore {
9091
9091
  this.route = vueRouter.useRoute();
9092
9092
  this.router = vueRouter.useRouter();
9093
9093
  this.requestData = vue.ref(RequestSchema.parse(this.route.query));
9094
- this.reload = vue.ref(Date.now());
9094
+ this._reload = vue.ref(Date.now());
9095
9095
  this.loading = vue.ref(true);
9096
9096
  this.uri = vue.ref("");
9097
9097
  this.data = core$1.computedAsync(async () => {
9098
- this.reload.value;
9098
+ this._reload.value;
9099
9099
  if (!this.uri.value) return null;
9100
9100
  this.loading.value = true;
9101
9101
  if (this.requestData.value.page < 1) {
@@ -9117,9 +9117,6 @@ class TableStore {
9117
9117
  const d = this.data.value;
9118
9118
  return ((_a = this.loading) == null ? void 0 : _a.value) ? [] : (d == null ? void 0 : d.data) ?? [];
9119
9119
  });
9120
- this.reloadFn = () => {
9121
- this.reload.value = Date.now();
9122
- };
9123
9120
  this.init = (url) => {
9124
9121
  this.uri.value = url;
9125
9122
  };
@@ -9159,6 +9156,9 @@ class TableStore {
9159
9156
  get httpRequest() {
9160
9157
  return authenticationVue.useHttpRequest();
9161
9158
  }
9159
+ reload() {
9160
+ this._reload.value = Date.now();
9161
+ }
9162
9162
  updatePage(page) {
9163
9163
  this.updateRequest({ page });
9164
9164
  }
package/index.mjs CHANGED
@@ -9089,11 +9089,11 @@ class TableStore {
9089
9089
  this.route = useRoute();
9090
9090
  this.router = useRouter();
9091
9091
  this.requestData = ref(RequestSchema.parse(this.route.query));
9092
- this.reload = ref(Date.now());
9092
+ this._reload = ref(Date.now());
9093
9093
  this.loading = ref(true);
9094
9094
  this.uri = ref("");
9095
9095
  this.data = computedAsync(async () => {
9096
- this.reload.value;
9096
+ this._reload.value;
9097
9097
  if (!this.uri.value) return null;
9098
9098
  this.loading.value = true;
9099
9099
  if (this.requestData.value.page < 1) {
@@ -9115,9 +9115,6 @@ class TableStore {
9115
9115
  const d = this.data.value;
9116
9116
  return ((_a = this.loading) == null ? void 0 : _a.value) ? [] : (d == null ? void 0 : d.data) ?? [];
9117
9117
  });
9118
- this.reloadFn = () => {
9119
- this.reload.value = Date.now();
9120
- };
9121
9118
  this.init = (url) => {
9122
9119
  this.uri.value = url;
9123
9120
  };
@@ -9157,6 +9154,9 @@ class TableStore {
9157
9154
  get httpRequest() {
9158
9155
  return useHttpRequest();
9159
9156
  }
9157
+ reload() {
9158
+ this._reload.value = Date.now();
9159
+ }
9160
9160
  updatePage(page) {
9161
9161
  this.updateRequest({ page });
9162
9162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghentcdh/json-forms-vue",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -3,12 +3,12 @@ declare class TableStore {
3
3
  private router;
4
4
  private get httpRequest();
5
5
  private requestData;
6
- private reload;
6
+ private _reload;
7
7
  loading: import('vue').Ref<boolean, boolean>;
8
8
  private uri;
9
+ reload(): void;
9
10
  data: import('vue').Ref<any, any>;
10
11
  private tableData;
11
- private reloadFn;
12
12
  private init;
13
13
  private updateRequest;
14
14
  sort: (id: string) => void;