@webitel/ui-datalist 1.0.67 → 1.0.68
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run utils:publish",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@vuelidate/validators": "^2.0.4",
|
|
38
38
|
"@webitel/styleguide": "^24.12.26",
|
|
39
39
|
"@webitel/ui-sdk": "^25.8.62",
|
|
40
|
-
"@webitel/api-services": "^0.
|
|
40
|
+
"@webitel/api-services": "^0.x",
|
|
41
41
|
"zod": "^3.25.55",
|
|
42
42
|
"@vueuse/core": "^13.3.0"
|
|
43
43
|
},
|
|
@@ -177,6 +177,10 @@ export const tableStoreBody = <Entity extends { id: string; etag?: string }>(
|
|
|
177
177
|
};
|
|
178
178
|
|
|
179
179
|
const setupStore = async () => {
|
|
180
|
+
if (isStoreSetUp.value) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
|
|
180
184
|
if (!disablePersistence) {
|
|
181
185
|
await Promise.allSettled([
|
|
182
186
|
setupPaginationPersistence(),
|
|
@@ -215,9 +219,7 @@ export const tableStoreBody = <Entity extends { id: string; etag?: string }>(
|
|
|
215
219
|
parentId.value = storeParentId;
|
|
216
220
|
}
|
|
217
221
|
|
|
218
|
-
|
|
219
|
-
await setupStore();
|
|
220
|
-
}
|
|
222
|
+
await setupStore();
|
|
221
223
|
|
|
222
224
|
return loadDataList();
|
|
223
225
|
};
|
|
@@ -242,7 +244,8 @@ export const tableStoreBody = <Entity extends { id: string; etag?: string }>(
|
|
|
242
244
|
filtersManager,
|
|
243
245
|
isFiltersRestoring,
|
|
244
246
|
|
|
245
|
-
|
|
247
|
+
setupStore, // only setup, no data loading
|
|
248
|
+
initialize, // setup + load data
|
|
246
249
|
|
|
247
250
|
loadDataList,
|
|
248
251
|
appendToDataList,
|
|
@@ -76,6 +76,7 @@ export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
|
76
76
|
}) => import("../../filters").IFilter[];
|
|
77
77
|
}>;
|
|
78
78
|
isFiltersRestoring: import("vue").Ref<boolean, boolean>;
|
|
79
|
+
setupStore: () => Promise<void>;
|
|
79
80
|
initialize: ({ parentId: storeParentId, }?: {
|
|
80
81
|
parentId?: string | number;
|
|
81
82
|
}) => Promise<void>;
|
|
@@ -171,6 +172,7 @@ export declare const createFilterPresetsStore: (namespace: string) => () => {
|
|
|
171
172
|
}) => import("../../filters").IFilter[];
|
|
172
173
|
}>;
|
|
173
174
|
isFiltersRestoring: import("vue").Ref<boolean, boolean>;
|
|
175
|
+
setupStore: () => Promise<void>;
|
|
174
176
|
initialize: ({ parentId: storeParentId, }?: {
|
|
175
177
|
parentId?: string | number;
|
|
176
178
|
}) => Promise<void>;
|
|
@@ -78,6 +78,7 @@ export declare const tableStoreBody: <Entity extends {
|
|
|
78
78
|
}) => import("../filters").IFilter[];
|
|
79
79
|
}>;
|
|
80
80
|
isFiltersRestoring: Ref<boolean, boolean>;
|
|
81
|
+
setupStore: () => Promise<void>;
|
|
81
82
|
initialize: ({ parentId: storeParentId, }?: {
|
|
82
83
|
parentId?: string | number;
|
|
83
84
|
}) => Promise<void>;
|
|
@@ -173,6 +174,7 @@ export declare const createTableStore: <Entity extends {
|
|
|
173
174
|
}) => import("../filters").IFilter[];
|
|
174
175
|
}>;
|
|
175
176
|
isFiltersRestoring: Ref<boolean, boolean>;
|
|
177
|
+
setupStore: () => Promise<void>;
|
|
176
178
|
initialize: ({ parentId: storeParentId, }?: {
|
|
177
179
|
parentId?: string | number;
|
|
178
180
|
}) => Promise<void>;
|