@snabcentr/vue-ui-lib 2.13.5 → 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.
- package/dist/manifest.json +2 -2
- package/dist/release_notes.tmp +3 -9
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +5499 -5424
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +51 -51
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-actions-properties.d.ts +19 -0
- package/dist/src/catalog/interfaces/properties/i-product-name-properties.d.ts +2 -1
- package/dist/src/components/catalog/category-collapse-item.vue.d.ts +5 -5
- package/dist/src/components/catalog/category-collapse.vue.d.ts +5 -5
- package/dist/src/components/catalog/product-details/product-cost.vue.d.ts +1 -1
- package/dist/src/components/catalog/product-details/product-name.vue.d.ts +8 -4
- package/dist/src/components/clients/client-name-with-short-info.vue.d.ts +37 -2
- package/dist/src/components/orders/index.d.ts +1 -0
- package/dist/src/components/orders/short-text-order-info.vue.d.ts +20 -0
- package/dist/src/emits/interfaces/clicks/i-client-info-click-event.d.ts +13 -0
- package/dist/src/emits/interfaces/clicks/i-client-name-click-event.d.ts +14 -0
- package/dist/src/emits/interfaces/clicks/i-order-id-click-event.d.ts +14 -0
- package/dist/src/emits/interfaces/clicks/index.d.ts +3 -0
- package/dist/src/emits/interfaces/index.d.ts +1 -0
- package/dist/src/properties/interfaces/i-order-short-info-property.d.ts +10 -0
- package/dist/src/properties/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ProductData } from '@snabcentr/common-lib';
|
2
|
+
import { DropdownDividerOption, DropdownGroupOption, DropdownOption, DropdownRenderOption } from 'naive-ui';
|
3
|
+
/**
|
4
|
+
* Список свойств компонента представления кнопок действий над продуктом.
|
5
|
+
*/
|
6
|
+
export interface IProductActionsProperties {
|
7
|
+
/**
|
8
|
+
* Признак необходимости отобразить кнопку добавления продукта в корзину.
|
9
|
+
*/
|
10
|
+
showProductAddToCartButton?: boolean | ((product: ProductData) => boolean);
|
11
|
+
/**
|
12
|
+
* Признак необходимости отобразить кнопку редактирования записи продукта.
|
13
|
+
*/
|
14
|
+
showProductEditButton?: boolean | ((product: ProductData) => boolean);
|
15
|
+
/**
|
16
|
+
* Конфигурация меню контекста продукта.
|
17
|
+
*/
|
18
|
+
productContextButtonsConfig?: (product: ProductData) => Array<DropdownOption | DropdownGroupOption | DropdownDividerOption | DropdownRenderOption>;
|
19
|
+
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { ICatalogEmits } from '../events/i-catalog-emits';
|
2
|
+
import { IProductActionsProperties } from './i-product-actions-properties';
|
2
3
|
import { ProductData } from '@snabcentr/common-lib';
|
3
4
|
import { Emitter } from 'mitt';
|
4
5
|
/**
|
5
6
|
* Список свойств компонента представления данных о продукте.
|
6
7
|
*/
|
7
|
-
export interface IProductNameProperties {
|
8
|
+
export interface IProductNameProperties extends IProductActionsProperties {
|
8
9
|
/**
|
9
10
|
* Данные о продукте.
|
10
11
|
*/
|
@@ -4,15 +4,15 @@ import { ICategoryCollapseItemProperties } from '../../catalog/interfaces/proper
|
|
4
4
|
* Компонент элемента сворачиваемого списка категорий.
|
5
5
|
*/
|
6
6
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ICategoryCollapseItemProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ICategoryCollapseItemProperties> & Readonly<{}>, {
|
7
|
-
showProductAddToCartButton: boolean | ((product: ProductData) => boolean);
|
8
|
-
showProductEditButton: boolean | ((product: ProductData) => boolean);
|
9
|
-
productContextButtonsConfig: (product: ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
10
|
-
allowPriceClick: boolean | ((product: ProductData) => boolean);
|
11
|
-
showPriceHistory: boolean | ((product: ProductData) => boolean);
|
12
7
|
showSlugs: boolean;
|
13
8
|
showProperties: boolean;
|
14
9
|
showProductCosts: boolean | ((product: ProductData) => boolean);
|
10
|
+
showPriceHistory: boolean | ((product: ProductData) => boolean);
|
15
11
|
allowNameClick: boolean | ((product: ProductData) => boolean);
|
12
|
+
allowPriceClick: boolean | ((product: ProductData) => boolean);
|
13
|
+
showProductAddToCartButton: boolean | ((product: ProductData) => boolean);
|
14
|
+
showProductEditButton: boolean | ((product: ProductData) => boolean);
|
15
|
+
productContextButtonsConfig: (product: ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
16
16
|
selectedCategoriesItems: import('@snabcentr/common-lib').CategoryData[];
|
17
17
|
selectedProductsItems: ProductData[];
|
18
18
|
showHideForClientButton: boolean | ((category: import('@snabcentr/common-lib').CategoryData) => boolean);
|
@@ -4,15 +4,15 @@ import { CategoryData, SearchResult } from '@snabcentr/common-lib';
|
|
4
4
|
* Компонент списка сворачиваемых элементов каталога.
|
5
5
|
*/
|
6
6
|
declare const _default: import('vue').DefineComponent<ICategoryCollapseProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ICategoryCollapseProperties> & Readonly<{}>, {
|
7
|
-
showProductAddToCartButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
8
|
-
showProductEditButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
9
|
-
productContextButtonsConfig: (product: import('@snabcentr/common-lib').ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
10
|
-
allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
11
|
-
showPriceHistory: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
12
7
|
showSlugs: boolean;
|
13
8
|
showProperties: boolean;
|
14
9
|
showProductCosts: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
10
|
+
showPriceHistory: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
15
11
|
allowNameClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
12
|
+
allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
13
|
+
showProductAddToCartButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
14
|
+
showProductEditButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
15
|
+
productContextButtonsConfig: (product: import('@snabcentr/common-lib').ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
16
16
|
filteredItems: SearchResult;
|
17
17
|
selectedCategoriesItems: CategoryData[];
|
18
18
|
selectedProductsItems: import('@snabcentr/common-lib').ProductData[];
|
@@ -3,10 +3,10 @@ import { IProductCostProperties } from '../../../catalog/interfaces/properties/i
|
|
3
3
|
* Компонент представления данных о стоимости продукта.
|
4
4
|
*/
|
5
5
|
declare const _default: import('vue').DefineComponent<IProductCostProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProductCostProperties> & Readonly<{}>, {
|
6
|
+
showPriceHistory: boolean;
|
6
7
|
allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
7
8
|
showTag: boolean;
|
8
9
|
showQuantityUnit: boolean;
|
9
10
|
showCostDate: boolean;
|
10
|
-
showPriceHistory: boolean;
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
12
12
|
export default _default;
|
@@ -1,21 +1,25 @@
|
|
1
1
|
import { IProductNameProperties } from '../../../catalog/interfaces/properties/i-product-name-properties';
|
2
|
+
import { IProductActionsProperties } from '../../../catalog/interfaces/properties/i-product-actions-properties';
|
2
3
|
/**
|
3
4
|
* Компонент представления данных о продукте.
|
4
5
|
*/
|
5
|
-
declare const _default: import('vue').DefineComponent<IProductNameProperties, {
|
6
|
+
declare const _default: import('vue').DefineComponent<IProductNameProperties & IProductActionsProperties, {
|
6
7
|
/**
|
7
8
|
* Открывает всплывающий диалог предпросмотра изображений.
|
8
9
|
*/
|
9
10
|
showProductImagesPreview: () => void;
|
10
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProductNameProperties> & Readonly<{}>, {
|
11
|
-
allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
12
|
-
showPriceHistory: boolean;
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProductNameProperties & IProductActionsProperties> & Readonly<{}>, {
|
13
12
|
showSlugs: boolean;
|
14
13
|
showProperties: boolean;
|
15
14
|
showCode: boolean;
|
16
15
|
showProductCosts: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
17
16
|
showPlanningDates: boolean;
|
17
|
+
showPriceHistory: boolean;
|
18
18
|
allowNameClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
19
|
+
allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
20
|
+
showProductAddToCartButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
21
|
+
showProductEditButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
|
22
|
+
productContextButtonsConfig: (product: import('@snabcentr/common-lib').ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
19
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
20
24
|
'image-gallery': ({
|
21
25
|
$: import('vue').ComponentInternalInstance;
|
@@ -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
|
-
|
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
|
-
|
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;
|
@@ -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
|
+
}
|
@@ -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';
|