eservices-core 1.0.471 → 1.0.473

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.
@@ -18,8 +18,8 @@ export declare class List<T = {}> extends EventEmitter {
18
18
  * */
19
19
  name?: string;
20
20
  private array;
21
- set config(c: IListCell[]);
22
- get config(): IListCell[];
21
+ set config(c: Partial<IListCell>[]);
22
+ get config(): Partial<IListCell>[];
23
23
  private emitUpdateConfig;
24
24
  constructor(params: IListParams);
25
25
  set wait(v: boolean);
@@ -124,30 +124,33 @@ export declare function useListState(list: List<any>): {
124
124
  interface IFlexConfig {
125
125
  list: List;
126
126
  revertConfig: () => void;
127
- defaultConfig: IListCell[];
128
- config: IListCell[];
127
+ defaultConfig: Partial<IListCell>[];
128
+ config: Partial<IListCell>[];
129
129
  }
130
130
  /**
131
131
  * Использование гибкого механизма для работы с конфигурацию.
132
132
  * */
133
- export declare function useProvideList(list?: List, defaultConfig?: IListCell[]): IFlexConfig;
133
+ export declare function useProvideList(list?: List, defaultConfig?: Partial<IListCell>[]): IFlexConfig;
134
134
  /**
135
135
  * @description Возвращает реактивный экземпляр конфигурации списка.
136
136
  * */
137
- export declare function useListConfig(list: List): IListCell[];
137
+ export declare function useListConfig(list: List): Partial<IListCell>[];
138
138
  export declare type ListCellType = 'date' | 'dateWithTime' | 'toggle' | 'select';
139
+ interface AnyListData {
140
+ [name: string]: any;
141
+ }
139
142
  export interface IListCell {
140
143
  title: string;
141
144
  label: string;
142
145
  name: string | string[];
143
- value: (x: any, obj: IDefaultListData) => string | number;
144
- link: (obj: IDefaultListData) => any;
146
+ value: (x: any, obj: IDefaultListData & AnyListData) => string | number;
147
+ link: (obj: IDefaultListData & AnyListData) => any;
145
148
  type: ListCellType;
146
149
  class: string | string[];
147
- onClick: (data: IDefaultListData) => void;
148
- href: (obj: IDefaultListData) => string;
150
+ onClick: (data: IDefaultListData & AnyListData) => void;
151
+ href: (obj: IDefaultListData & AnyListData) => string;
149
152
  icon: string;
150
- hide: (obj: IDefaultListData) => boolean;
153
+ hide: (obj: IDefaultListData & AnyListData) => boolean;
151
154
  }
152
155
  export interface IRequestOptions {
153
156
  clean: boolean;
package/dist/index.d.ts CHANGED
@@ -8,11 +8,12 @@ import StylesInterface from "./styles/types";
8
8
  import { Values } from "./types";
9
9
  import * as newImport from "./new/new-import";
10
10
  export { newImport };
11
- import { IListCell, IListConfig, IFilterConfig, ISortConfig } from "./classes/List";
11
+ import { IListConfig, IFilterConfig, ISortConfig } from "./classes/List";
12
12
  import { ICustomerContext, ApplicationType } from "./classes/ApplicationManager";
13
13
  import { IActionExecuteResult, IValidationEffect } from "./services/action-service";
14
14
  import { INotificationCard } from "./classes/NotificationSystem";
15
15
  import { ListCell } from "./classes/List";
16
+ import { IListCell } from "./classes/new/List";
16
17
  import { setupSocket, useSocket } from "./socket/use-socket";
17
18
  import WidgetBreadcrumbs from "./widgets/breadcrumbs/widget-breadcrumbs.vue";
18
19
  import WidgetList from "./widgets/list/widget-list.vue";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.471
2
+ * eservices-core v1.0.473
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.471",
3
+ "version": "1.0.473",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {