@snabcentr/vue-ui-lib 2.14.0 → 2.15.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.
@@ -4,6 +4,10 @@ import { IClientShortInfoProperty } from '../../properties/interfaces/i-client-s
4
4
  * Компонент представления названия клиента и общих данных о нём в подсказке.
5
5
  */
6
6
  declare const _default: import('vue').DefineComponent<IClientShortInfoProperty & {
7
+ /**
8
+ * URL ссылки, при клике по названию.
9
+ */
10
+ nameLink?: string;
7
11
  /**
8
12
  * Положение всплывающей подсказки.
9
13
  * Если указать 'none', то она не будет отображаться.
@@ -20,7 +24,23 @@ declare const _default: import('vue').DefineComponent<IClientShortInfoProperty &
20
24
  * Признак необходимости отображать направление продаж.
21
25
  */
22
26
  showSalesDirection?: boolean;
23
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IClientShortInfoProperty & {
27
+ /**
28
+ * Признак необходимости отобразить значок информации о клиенте.
29
+ */
30
+ showClientInfoIcon?: boolean;
31
+ /**
32
+ * Признак необходимости отображения кратких данных о последнем заказе.
33
+ */
34
+ showLastOrderInfo?: boolean;
35
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
36
+ "click:client-info": (client: import('@snabcentr/common-lib').IClientShortInfo) => any;
37
+ "click:client-name": (client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any;
38
+ "click:order-id": (client: import('@snabcentr/common-lib').IOrderShortInfo, event: any) => any;
39
+ }, string, import('vue').PublicProps, Readonly<IClientShortInfoProperty & {
40
+ /**
41
+ * URL ссылки, при клике по названию.
42
+ */
43
+ nameLink?: string;
24
44
  /**
25
45
  * Положение всплывающей подсказки.
26
46
  * Если указать 'none', то она не будет отображаться.
@@ -37,9 +57,24 @@ declare const _default: import('vue').DefineComponent<IClientShortInfoProperty &
37
57
  * Признак необходимости отображать направление продаж.
38
58
  */
39
59
  showSalesDirection?: boolean;
40
- }> & Readonly<{}>, {
60
+ /**
61
+ * Признак необходимости отобразить значок информации о клиенте.
62
+ */
63
+ showClientInfoIcon?: boolean;
64
+ /**
65
+ * Признак необходимости отображения кратких данных о последнем заказе.
66
+ */
67
+ showLastOrderInfo?: boolean;
68
+ }> & Readonly<{
69
+ "onClick:client-info"?: ((client: import('@snabcentr/common-lib').IClientShortInfo) => any) | undefined;
70
+ "onClick:client-name"?: ((client: import('@snabcentr/common-lib').IClientShortInfo, event: any) => any) | undefined;
71
+ "onClick:order-id"?: ((client: import('@snabcentr/common-lib').IOrderShortInfo, event: any) => any) | undefined;
72
+ }>, {
73
+ nameLink: string;
41
74
  popoverPosition: PopoverPlacement;
42
75
  showCityAndRegion: boolean;
43
76
  showSalesDirection: boolean;
77
+ showClientInfoIcon: boolean;
78
+ showLastOrderInfo: boolean;
44
79
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
45
80
  export default _default;
@@ -2,3 +2,4 @@ export * from './simple';
2
2
  export * from './blocks';
3
3
  export { default as ScOrdersList } from './orders-list.vue';
4
4
  export { default as ScOrderInfo } from './order-info.vue';
5
+ export { default as ScShortTextOrderInfo } from './short-text-order-info.vue';
@@ -0,0 +1,20 @@
1
+ import { IOrderShortInfoProperty } from '../../properties/interfaces/i-order-short-info-property';
2
+ /**
3
+ * Компонент краткого текстового представления данных о заказе.
4
+ */
5
+ declare const _default: import('vue').DefineComponent<IOrderShortInfoProperty & {
6
+ /**
7
+ * URL ссылки, при клике по номеру заказа.
8
+ */
9
+ orderLink?: string;
10
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ "click:order-id": (client: import('@snabcentr/common-lib').IOrderShortInfo, event: any) => any;
12
+ }, string, import('vue').PublicProps, Readonly<IOrderShortInfoProperty & {
13
+ /**
14
+ * URL ссылки, при клике по номеру заказа.
15
+ */
16
+ orderLink?: string;
17
+ }> & Readonly<{
18
+ "onClick:order-id"?: ((client: import('@snabcentr/common-lib').IOrderShortInfo, event: any) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { IClientShortInfo } from '@snabcentr/common-lib';
2
+ /**
3
+ * Событие клика по значку информации о клиенте.
4
+ */
5
+ export interface IClientInfoClickEvent {
6
+ /**
7
+ * Событие клика по значку информации о клиенте.
8
+ *
9
+ * @param e Название события.
10
+ * @param client Краткие данные о клиенте.
11
+ */
12
+ (e: 'click:client-info', client: IClientShortInfo): void;
13
+ }
@@ -0,0 +1,14 @@
1
+ import { IClientShortInfo } from '@snabcentr/common-lib';
2
+ /**
3
+ * Событие клика по названию клиента.
4
+ */
5
+ export interface IClientNameClickEvent {
6
+ /**
7
+ * Событие клика по названию клиента.
8
+ *
9
+ * @param e Название события.
10
+ * @param client Краткие данные о клиенте.
11
+ * @param event Параметры события.
12
+ */
13
+ (e: 'click:client-name', client: IClientShortInfo, event: any): void;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { IOrderShortInfo } from '@snabcentr/common-lib';
2
+ /**
3
+ * Событие клика по номеру заказа.
4
+ */
5
+ export interface IOrderIdClickEvent {
6
+ /**
7
+ * Событие клика по номеру заказа.
8
+ *
9
+ * @param e Название события.
10
+ * @param client Краткие данные о заказе.
11
+ * @param event Параметры события.
12
+ */
13
+ (e: 'click:order-id', client: IOrderShortInfo, event: any): void;
14
+ }
@@ -0,0 +1,3 @@
1
+ export * from './i-client-info-click-event';
2
+ export * from './i-client-name-click-event';
3
+ export * from './i-order-id-click-event';
@@ -1,3 +1,4 @@
1
+ export * from './clicks';
1
2
  export * from './i-submit';
2
3
  export * from './i-submit-success';
3
4
  export * from './i-update-params';
@@ -0,0 +1,10 @@
1
+ import { IOrderShortInfo } from '@snabcentr/common-lib';
2
+ /**
3
+ * Краткие данные о заказе.
4
+ */
5
+ export interface IOrderShortInfoProperty {
6
+ /**
7
+ * Данные о заказе.
8
+ */
9
+ order: IOrderShortInfo;
10
+ }
@@ -8,6 +8,7 @@ export * from './i-disabled';
8
8
  export * from './i-min-term-length';
9
9
  export * from './i-order-info-property';
10
10
  export * from './i-order-property';
11
+ export * from './i-order-short-info-property';
11
12
  export * from './i-orders-table-fields';
12
13
  export * from './i-placeholder';
13
14
  export * from './i-product-or-category-search-type';
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": "2.14.0",
7
+ "version": "2.15.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",