@snabcentr/vue-ui-lib 3.56.2 → 3.58.0

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.
@@ -2,5 +2,9 @@ import { IOrderProperty } from '../../../properties';
2
2
  /**
3
3
  * Компонент представления деталей заказа.
4
4
  */
5
- declare const _default: import('vue').DefineComponent<IOrderProperty, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IOrderProperty> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ declare const _default: import('vue').DefineComponent<IOrderProperty, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "click:client-name": (client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any;
7
+ }, string, import('vue').PublicProps, Readonly<IOrderProperty> & Readonly<{
8
+ "onClick:client-name"?: ((client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
10
  export default _default;
@@ -2,5 +2,9 @@ import { IOrderInfoProperty } from '../../properties';
2
2
  /**
3
3
  * Компонент представления данных о заказе.
4
4
  */
5
- declare const _default: import('vue').DefineComponent<IOrderInfoProperty, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IOrderInfoProperty> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: import('vue').DefineComponent<IOrderInfoProperty, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "click:client-name": (client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any;
7
+ }, string, import('vue').PublicProps, Readonly<IOrderInfoProperty> & Readonly<{
8
+ "onClick:client-name"?: ((client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
10
  export default _default;
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<IOrdersTableFields & {
19
19
  /**
20
20
  * Параметры сортировки записей.
21
21
  */
22
- sort?: ISortRequestParams;
22
+ sort?: ISortRequestParams[];
23
23
  /**
24
24
  * Параметры пагинации.
25
25
  */
@@ -28,6 +28,14 @@ declare const _default: import('vue').DefineComponent<IOrdersTableFields & {
28
28
  * Признак, определяющий, использовать ли индикацию в стилях ячеек таблицы заказов.
29
29
  */
30
30
  useCellIndication?: boolean;
31
+ /**
32
+ * Признак, определяющий, включена ли сортировка по заголовкам столбцов таблицы.
33
+ */
34
+ enableSorting?: boolean;
35
+ /**
36
+ * Интервал автоматического обновления списка заказов (в миллисекундах). При значении 0 таймер отключён.
37
+ */
38
+ refreshInterval?: number;
31
39
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
32
40
  "click:client-name": (client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any;
33
41
  "dblclick:row": (order: IOrderInfo) => any;
@@ -47,7 +55,7 @@ declare const _default: import('vue').DefineComponent<IOrdersTableFields & {
47
55
  /**
48
56
  * Параметры сортировки записей.
49
57
  */
50
- sort?: ISortRequestParams;
58
+ sort?: ISortRequestParams[];
51
59
  /**
52
60
  * Параметры пагинации.
53
61
  */
@@ -56,15 +64,25 @@ declare const _default: import('vue').DefineComponent<IOrdersTableFields & {
56
64
  * Признак, определяющий, использовать ли индикацию в стилях ячеек таблицы заказов.
57
65
  */
58
66
  useCellIndication?: boolean;
67
+ /**
68
+ * Признак, определяющий, включена ли сортировка по заголовкам столбцов таблицы.
69
+ */
70
+ enableSorting?: boolean;
71
+ /**
72
+ * Интервал автоматического обновления списка заказов (в миллисекундах). При значении 0 таймер отключён.
73
+ */
74
+ refreshInterval?: number;
59
75
  }> & Readonly<{
60
76
  "onClick:client-name"?: ((client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any) | undefined;
61
77
  "onDblclick:row"?: ((order: IOrderInfo) => any) | undefined;
62
78
  }>, {
63
- sort: ISortRequestParams;
79
+ sort: ISortRequestParams[];
64
80
  filters: IFilterGroup;
65
81
  showAttachedUserColumn: boolean;
66
82
  tableMinWidth: number;
67
83
  pagination: IPagination;
68
84
  useCellIndication: boolean;
85
+ enableSorting: boolean;
86
+ refreshInterval: number;
69
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
70
88
  export default _default;
@@ -7,8 +7,8 @@ import { IUpdateValue } from '../../emits';
7
7
  */
8
8
  declare const _default: <T extends IReference<any, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
9
9
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
10
- readonly "onUpdate:value"?: ((value: T | T[] | undefined, ...additionalParams: any[]) => any) | undefined;
11
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & (import('../../properties').IValue<T | T[] | undefined> & import('../../properties').IClearable & IDisabled & IConsistentMenuWidth & {
10
+ readonly "onUpdate:value"?: ((value: T | T[] | null | undefined, ...additionalParams: any[]) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:value"> & (import('../../properties').IValue<T | T[] | null | undefined> & import('../../properties').IClearable & IDisabled & IConsistentMenuWidth & {
12
12
  /**
13
13
  * Список значений справочника.
14
14
  */
@@ -37,7 +37,7 @@ declare const _default: <T extends IReference<any, any>>(__VLS_props: NonNullabl
37
37
  }>): void;
38
38
  attrs: any;
39
39
  slots: {};
40
- emit: IUpdateValue<T | T[] | undefined>;
40
+ emit: IUpdateValue<T | T[] | null | undefined>;
41
41
  }>) => import('vue').VNode & {
42
42
  __ctx?: Awaited<typeof __VLS_setup>;
43
43
  };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Настройки компонентов заказов.
3
+ */
4
+ export interface IOrdersConfig {
5
+ /**
6
+ * Настройки заказов.
7
+ */
8
+ readonly orders: {
9
+ /**
10
+ * Настройки списка заказов.
11
+ */
12
+ list: {
13
+ /**
14
+ * Интервал автоматического обновления списка заказов (в миллисекундах).
15
+ */
16
+ refreshInterval: number;
17
+ };
18
+ };
19
+ }
@@ -1,2 +1,3 @@
1
+ export * from './i-orders-config';
1
2
  export * from './i-theme';
2
3
  export * from './i-themes-config';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [],
5
5
  "author": "Sergey S. Smirnov <dev@snabcentr.com>",
6
6
  "type": "module",
7
- "version": "3.56.2",
7
+ "version": "3.58.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",
@@ -45,7 +45,7 @@
45
45
  "@iconify-json/logos": "^1.2.9",
46
46
  "@iconify-json/mdi": "^1.2.3",
47
47
  "@iconify-json/tabler": "^1.2.23",
48
- "@snabcentr/common-lib": "^1.86.0 || ^2.2.1",
48
+ "@snabcentr/common-lib": "^1.86.1 || ^2.2.1",
49
49
  "@tailwindcss/container-queries": "^0.1.1",
50
50
  "date-fns": "^3.6.0",
51
51
  "libphonenumber-js": "^1.12.23",