eservices-core 1.0.576 → 1.0.578

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.
@@ -149,9 +149,6 @@ export declare function useListSearch<T>(array: T[] | Ref<T[]>): {
149
149
  search: Ref<string>;
150
150
  searchArray: import("vue").ComputedRef<T[]>;
151
151
  };
152
- /**
153
- * @description Возвращает реактивный массив фильтров для списка
154
- * */
155
152
  export declare function useListFilter(list: List): IFilters;
156
153
  /**
157
154
  * @description Данный хук используется для того, чтобы создать выборку из массива.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.576
2
+ * eservices-core v1.0.578
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3091,7 +3091,7 @@ class List extends EventEmitter {
3091
3091
  return __classPrivateFieldGet(this, _filters);
3092
3092
  }
3093
3093
  set filters(newFilters) {
3094
- jenesiusVueForm.utils.softReplaceObject(__classPrivateFieldGet(this, _filters), newFilters);
3094
+ softReplaceObject(__classPrivateFieldGet(this, _filters), newFilters);
3095
3095
  }
3096
3096
  set wait(v) {
3097
3097
  __classPrivateFieldSet(this, _wait, v);
@@ -3410,10 +3410,16 @@ function useListSearch(array) {
3410
3410
  /**
3411
3411
  * @description Возвращает реактивный массив фильтров для списка
3412
3412
  * */
3413
+ function softReplaceObject(target, data) {
3414
+ Object.keys(target).forEach(key => delete target[key]);
3415
+ Object.entries(data).forEach(([key, value]) => {
3416
+ target[key] = value;
3417
+ });
3418
+ }
3413
3419
  function useListFilter(list) {
3414
3420
  const filters = vue.reactive(jenesiusVueForm.utils.copyObject(list.filters));
3415
3421
  list.on(List.EVENT_FILTERS_UPDATE, data => {
3416
- jenesiusVueForm.utils.softReplaceObject(filters, data);
3422
+ softReplaceObject(filters, data);
3417
3423
  list.read();
3418
3424
  });
3419
3425
  return filters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.576",
3
+ "version": "1.0.578",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "date-and-time": "^2.0.1",
49
- "jenesius-vue-form": "^2.3.17",
49
+ "jenesius-vue-form": "^2.3.20",
50
50
  "jenesius-vue-modal": "^1.5.0",
51
+ "object-hash": "^3.0.0",
51
52
  "socket.io-client": "^4.5.2",
52
53
  "vue": "3.2.45",
53
- "vue-router": "4.0.16",
54
- "object-hash": "^3.0.0"
54
+ "vue-router": "4.0.16"
55
55
  },
56
56
  "license": "ISC",
57
57
  "repository": {