eservices-core 1.0.490 → 1.0.491

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.
@@ -75,10 +75,10 @@ export declare class List<T = {}> extends EventEmitter {
75
75
  * @description Return true if provided data is IDefaultListData.
76
76
  * */
77
77
  private isWrapped;
78
- set read(fn: () => any);
79
- get read(): () => any;
80
- set save(fn: () => any);
81
- get save(): () => any;
78
+ set read(fn: (...params: any) => any);
79
+ get read(): (...params: any) => any;
80
+ set save(fn: (...params: any) => any);
81
+ get save(): (...params: any) => any;
82
82
  /**
83
83
  * @description Function get all names from Config.
84
84
  * */
@@ -139,16 +139,6 @@ export declare function useListConfig(list: List): Partial<IListCell>[];
139
139
  * @description Возвращает реактивный экземпляр сортировки списка
140
140
  * */
141
141
  export declare function useListOrder(list: List): IListOrder;
142
- /**
143
- * @description Hook для сохранения / получение информации из локального хранилища
144
- * */
145
- export declare function useListSettings(list: List, id: string): {
146
- getSettings: () => IListSettings;
147
- };
148
- interface IListSettings {
149
- date: string;
150
- config: Partial<IListCell>[];
151
- }
152
142
  export declare type ListCellType = 'date' | 'dateWithTime' | 'toggle' | 'select';
153
143
  export interface IDefaultListData {
154
144
  [LIST_ROW_KEY]: number;
package/dist/index.d.ts CHANGED
@@ -65,7 +65,7 @@ import useCustomerState from "./hooks/use-customer-state";
65
65
  import { useTableRequest, useTableState } from "./classes/table/Table";
66
66
  import { useCommunication } from "./classes/Communication";
67
67
  import useFormRequest from "./hooks/use-form-request";
68
- import { useProvideList, useListConfig, useListSettings, useListOrder } from "./classes/new/List";
68
+ import { useProvideList, useListConfig, useListOrder } from "./classes/new/List";
69
69
  import { SYMBOL_ROW } from "./classes/table/Table";
70
70
  export {
71
71
  /**
@@ -81,7 +81,7 @@ export { fileService, processWizardService, viewService, authService, dataServic
81
81
  /**
82
82
  * HOOKS
83
83
  * */
84
- export { useFormMetadata, useFormAction, useFormLabel, useFormRequestData, useListFilter, useListOrder, useListState, useCustomerState, useTableState, useTableRequest, useCommunication, useFormRequest, useManagerState, useProvideList, useListConfig, useListSettings };
84
+ export { useFormMetadata, useFormAction, useFormLabel, useFormRequestData, useListFilter, useListOrder, useListState, useCustomerState, useTableState, useTableRequest, useCommunication, useFormRequest, useManagerState, useProvideList, useListConfig, };
85
85
  /**
86
86
  * All components binding with VueComponents must have name started with Widget.
87
87
  * */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.490
2
+ * eservices-core v1.0.491
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3092,35 +3092,6 @@ function useListOrder(list) {
3092
3092
  list.read();
3093
3093
  });
3094
3094
  return order;
3095
- }
3096
- /**
3097
- * @description Hook для сохранения / получение информации из локального хранилища
3098
- * */
3099
- function useListSettings(list, id) {
3100
- const STORAGE_LABEL = `list-settings-${id}`;
3101
- function getSettings() {
3102
- const strListSettings = localStorage.getItem(STORAGE_LABEL);
3103
- const settings = strListSettings ? JSON.parse(strListSettings) : null;
3104
- return settings;
3105
- }
3106
- function saveSettings({ config }) {
3107
- const settings = getSettings() || {
3108
- date: (new Date()).toISOString(),
3109
- config
3110
- };
3111
- settings.config = config;
3112
- localStorage.setItem(STORAGE_LABEL, JSON.stringify(settings));
3113
- }
3114
- const settings = getSettings();
3115
- if (settings) {
3116
- list.config = settings.config;
3117
- }
3118
- list.on(List$1.EVENT_CONFIG_UPDATE, config => {
3119
- saveSettings({ config });
3120
- });
3121
- return {
3122
- getSettings
3123
- };
3124
3095
  }
3125
3096
 
3126
3097
  class Table extends List$1 {
@@ -5679,7 +5650,6 @@ exports.useFormRequestData = useFormRequestData;
5679
5650
  exports.useListConfig = useListConfig;
5680
5651
  exports.useListFilter = useListFilter;
5681
5652
  exports.useListOrder = useListOrder;
5682
- exports.useListSettings = useListSettings;
5683
5653
  exports.useListState = useListState$1;
5684
5654
  exports.useManagerState = useManagerState;
5685
5655
  exports.useProvideList = useProvideList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.490",
3
+ "version": "1.0.491",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {