@snabcentr/vue-ui-lib 6.0.0 → 6.0.2
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/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +76 -61
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +4 -4
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/events/i-category-emits.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-catalog-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-catalogable-item-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-category-collapse-item-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-category-collapse-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-actions-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-cost-properties.d.ts +1 -1
- package/dist/src/catalog/interfaces/properties/i-product-name-properties.d.ts +1 -1
- package/dist/src/components/catalog/product-table-columns-definitions.d.ts +1 -1
- package/dist/src/components/configurators/kozyrek/classes/kozyrek-template.d.ts +1 -1
- package/dist/src/components/orders/blocks/order-items-list.vue.d.ts +11 -2
- package/dist/src/components/orders/simple/order-product-info.vue.d.ts +11 -0
- package/dist/src/helpers/address-quality-label-helper.d.ts +1 -0
- package/dist/src/orders/order-marker-colors.d.ts +1 -1
- package/dist/src/orders/order-status-colors.d.ts +1 -1
- package/dist/src/properties/interfaces/i-order-info-property.d.ts +1 -1
- package/dist/src/properties/interfaces/i-orders-table-fields.d.ts +1 -1
- package/package.json +2 -2
- package/dist/src/test/component-test-support.d.ts +0 -133
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as CollapseItem } from '../../../components/collapse/collapse-item.vue';
|
|
2
1
|
import { CategoryData } from '@snabcentr/common-lib';
|
|
2
|
+
import { default as CollapseItem } from '../../../components/collapse/collapse-item.vue';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* Список событий категории.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CategoryData, SearchResult } from '@snabcentr/common-lib';
|
|
1
2
|
import { ICatalogableItemProperties } from './i-catalogable-item-properties';
|
|
2
3
|
import { ButtonStateFunction, ButtonStates } from '../../../types/button-states';
|
|
3
|
-
import { CategoryData, SearchResult } from '@snabcentr/common-lib';
|
|
4
4
|
import { DropdownDividerOption, DropdownGroupOption, DropdownOption, DropdownRenderOption } from 'naive-ui';
|
|
5
5
|
/**
|
|
6
6
|
* Список свойств компонентов каталога.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ProductData } from '@snabcentr/common-lib';
|
|
1
2
|
import { ICatalogEmits } from '../events/i-catalog-emits';
|
|
2
3
|
import { ButtonStateFunction, ButtonStates } from '../../../types/button-states';
|
|
3
|
-
import { ProductData } from '@snabcentr/common-lib';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
import { DropdownDividerOption, DropdownGroupOption, DropdownOption, DropdownRenderOption } from 'naive-ui';
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICatalogProperties } from './i-catalog-properties';
|
|
2
1
|
import { CategoryData, IClient } from '@snabcentr/common-lib';
|
|
2
|
+
import { ICatalogProperties } from './i-catalog-properties';
|
|
3
3
|
/**
|
|
4
4
|
* Список свойств компонента списка сворачиваемых элементов каталога.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonStateFunction, ButtonStates } from '../../../types/button-states';
|
|
2
1
|
import { ProductData } from '@snabcentr/common-lib';
|
|
2
|
+
import { ButtonStateFunction, ButtonStates } from '../../../types/button-states';
|
|
3
3
|
import { DropdownDividerOption, DropdownGroupOption, DropdownOption, DropdownRenderOption } from 'naive-ui';
|
|
4
4
|
/**
|
|
5
5
|
* Список свойств компонента представления кнопок действий над продуктом.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICatalogEmits } from '../events/i-catalog-emits';
|
|
2
1
|
import { OrderItemBase, ProductData } from '@snabcentr/common-lib';
|
|
2
|
+
import { ICatalogEmits } from '../events/i-catalog-emits';
|
|
3
3
|
import { Emitter } from 'mitt';
|
|
4
4
|
export interface IProductCostProperties {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ProductData } from '@snabcentr/common-lib';
|
|
1
2
|
import { ICatalogEmits } from '../events/i-catalog-emits';
|
|
2
3
|
import { IProductActionsProperties } from './i-product-actions-properties';
|
|
3
|
-
import { ProductData } from '@snabcentr/common-lib';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
/**
|
|
6
6
|
* Список свойств компонента представления данных о продукте.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICatalogableItemProperties } from '../../catalog/interfaces/properties/i-catalogable-item-properties';
|
|
2
1
|
import { ProductData } from '@snabcentr/common-lib';
|
|
2
|
+
import { ICatalogableItemProperties } from '../../catalog/interfaces/properties/i-catalogable-item-properties';
|
|
3
3
|
import { DataTableColumn } from 'naive-ui';
|
|
4
4
|
/**
|
|
5
5
|
* Генерирует и возвращает список объявлений столбцов таблицы.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IKozyrekTemplate } from '../interfaces/i-kozyrek-template';
|
|
2
1
|
import { Identity } from '@snabcentr/common-lib';
|
|
2
|
+
import { IKozyrekTemplate } from '../interfaces/i-kozyrek-template';
|
|
3
3
|
import { KozyrekLine } from './kozyrek-line';
|
|
4
4
|
/**
|
|
5
5
|
* Данные о шаблоне гиба.
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
41
41
|
groups?: Array<IOrderItemsGroup>;
|
|
42
42
|
/**
|
|
43
43
|
* Дополнительные столбцы таблицы, добавляются после столбца стоимости.
|
|
44
|
-
* На узких экранах таблица показывает позицию одной ячейкой, и
|
|
44
|
+
* На узких экранах таблица показывает позицию одной ячейкой, и значения таких столбцов выводятся под данными позиции.
|
|
45
45
|
*/
|
|
46
46
|
extraColumns?: Array<DataTableColumn<OrderItem<undefined, string | number>>>;
|
|
47
47
|
/**
|
|
@@ -52,6 +52,10 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
52
52
|
* Возвращает признак доступности позиции для выбора чекбоксом.
|
|
53
53
|
*/
|
|
54
54
|
isItemSelectable?: (item: IOrderItemsListItem) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Возвращает признак того, что позицию можно удалить. По умолчанию удалить можно только активную позицию.
|
|
57
|
+
*/
|
|
58
|
+
isItemRemovable?: (item: IOrderItemsListItem) => boolean;
|
|
55
59
|
/**
|
|
56
60
|
* Признак отправки количества по мере ввода. Если выключен, количество отправляется
|
|
57
61
|
* по завершении ввода, и на каждый введённый символ запрос не уходит.
|
|
@@ -97,7 +101,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
97
101
|
groups?: Array<IOrderItemsGroup>;
|
|
98
102
|
/**
|
|
99
103
|
* Дополнительные столбцы таблицы, добавляются после столбца стоимости.
|
|
100
|
-
* На узких экранах таблица показывает позицию одной ячейкой, и
|
|
104
|
+
* На узких экранах таблица показывает позицию одной ячейкой, и значения таких столбцов выводятся под данными позиции.
|
|
101
105
|
*/
|
|
102
106
|
extraColumns?: Array<DataTableColumn<OrderItem<undefined, string | number>>>;
|
|
103
107
|
/**
|
|
@@ -108,6 +112,10 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
108
112
|
* Возвращает признак доступности позиции для выбора чекбоксом.
|
|
109
113
|
*/
|
|
110
114
|
isItemSelectable?: (item: IOrderItemsListItem) => boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Возвращает признак того, что позицию можно удалить. По умолчанию удалить можно только активную позицию.
|
|
117
|
+
*/
|
|
118
|
+
isItemRemovable?: (item: IOrderItemsListItem) => boolean;
|
|
111
119
|
/**
|
|
112
120
|
* Признак отправки количества по мере ввода. Если выключен, количество отправляется
|
|
113
121
|
* по завершении ввода, и на каждый введённый символ запрос не уходит.
|
|
@@ -132,4 +140,5 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
132
140
|
extraColumns: DataTableColumn<OrderItem<undefined, string | number>>[];
|
|
133
141
|
isItemInactive: (item: IOrderItemsListItem) => boolean;
|
|
134
142
|
isItemSelectable: (item: IOrderItemsListItem) => boolean;
|
|
143
|
+
isItemRemovable: (item: IOrderItemsListItem) => boolean;
|
|
135
144
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -32,6 +32,10 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
32
32
|
* Признак неактивной позиции (удалённой или заменённой): такая позиция приглушается и зачёркивается.
|
|
33
33
|
*/
|
|
34
34
|
inactive?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Признак отображения действий над позицией. Если не задан, действия показываются, когда позицию можно редактировать.
|
|
37
|
+
*/
|
|
38
|
+
showActions?: boolean;
|
|
35
39
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
36
40
|
/**
|
|
37
41
|
* Данные о продукте в заказе.
|
|
@@ -58,13 +62,20 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
58
62
|
* Признак неактивной позиции (удалённой или заменённой): такая позиция приглушается и зачёркивается.
|
|
59
63
|
*/
|
|
60
64
|
inactive?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Признак отображения действий над позицией. Если не задан, действия показываются, когда позицию можно редактировать.
|
|
67
|
+
*/
|
|
68
|
+
showActions?: boolean;
|
|
61
69
|
}> & Readonly<{}>, {
|
|
62
70
|
eventEmitter: Emitter<IOrderEmits>;
|
|
63
71
|
inactive: boolean;
|
|
64
72
|
allowEdit: boolean;
|
|
65
73
|
updateQuantityOnInput: boolean;
|
|
74
|
+
showActions: boolean;
|
|
66
75
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
67
76
|
actions?: (props: {}) => any;
|
|
77
|
+
} & {
|
|
78
|
+
extra?: (props: {}) => any;
|
|
68
79
|
}>;
|
|
69
80
|
type __VLS_WithSlots<T, S> = T & {
|
|
70
81
|
new (): {
|
|
@@ -6,6 +6,7 @@ export declare class AddressQualityLabelHelper {
|
|
|
6
6
|
/**
|
|
7
7
|
* Возвращает пометку для адреса, который нужно проверить: неполного или с неопределённой полнотой.
|
|
8
8
|
*
|
|
9
|
+
* Пометка одна для обоих случаев и не утверждает, что адрес неполный, а просит его проверить.
|
|
9
10
|
* Для полного адреса и адреса без данных о полноте пометка не нужна, возвращается `undefined`.
|
|
10
11
|
*
|
|
11
12
|
* @param quality Полнота адреса.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IOrderInfo } from '@snabcentr/common-lib';
|
|
1
2
|
import { OrderMarkerEnum } from '../enums/order-marker-enum';
|
|
2
3
|
import { IOrderStatusColors } from './interfaces/i-order-status-colors';
|
|
3
|
-
import { IOrderInfo } from '@snabcentr/common-lib';
|
|
4
4
|
/**
|
|
5
5
|
* Единый источник правды для цветов маркеров заказа (помимо статуса).
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { OrderStatusEnum } from '@snabcentr/common-lib';
|
|
1
2
|
import { IOrderStatusColors } from './interfaces/i-order-status-colors';
|
|
2
3
|
import { IOrderStatusTagColor } from './interfaces/i-order-status-tag-color';
|
|
3
|
-
import { OrderStatusEnum } from '@snabcentr/common-lib';
|
|
4
4
|
/**
|
|
5
5
|
* Слаг статуса заказа: значение перечисления или произвольная строка (например, из данных API), может отсутствовать.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IOrderEmits } from '../../orders/interfaces/events/i-order-emits';
|
|
2
1
|
import { IOrderInfo } from '@snabcentr/common-lib';
|
|
2
|
+
import { IOrderEmits } from '../../orders/interfaces/events/i-order-emits';
|
|
3
3
|
import { Emitter } from 'mitt';
|
|
4
4
|
/**
|
|
5
5
|
* Краткие данные о заказе.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OrdersTableFields } from '../../enums/orders-table-fields';
|
|
2
1
|
import { IOrderInfo } from '@snabcentr/common-lib';
|
|
2
|
+
import { OrdersTableFields } from '../../enums/orders-table-fields';
|
|
3
3
|
import { DropdownDividerOption, DropdownGroupOption, DropdownOption, DropdownRenderOption } from 'naive-ui';
|
|
4
4
|
/**
|
|
5
5
|
* Список полей, которые необходимо отображать в полном представлении таблицы.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snabcentr/vue-ui-lib",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Библиотека общих Vue3 компонентов, используемых во всех проектах Снабцентр.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Sergey S. Smirnov <dev@snabcentr.com>",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@iconify-json/tabler": "^1.2.42",
|
|
47
47
|
"@snabcentr/common-lib": "^4.0.0",
|
|
48
48
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
49
|
-
"date-fns": "^4.
|
|
49
|
+
"date-fns": "^4.4.0",
|
|
50
50
|
"libphonenumber-js": "^1.13.15",
|
|
51
51
|
"lightgallery": "^2.9.0",
|
|
52
52
|
"lodash-es": "^4.18.1",
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { VueWrapper } from '@vue/test-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Общие опции mount для компонентов с иконками.
|
|
4
|
-
*/
|
|
5
|
-
export declare const componentMountOptions: {
|
|
6
|
-
global: {
|
|
7
|
-
directives: {
|
|
8
|
-
FocusNext: {
|
|
9
|
-
mounted(): void;
|
|
10
|
-
};
|
|
11
|
-
focusNext: {
|
|
12
|
-
mounted(): void;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
stubs: {
|
|
16
|
-
IconIonWarning: {
|
|
17
|
-
inheritAttrs: boolean;
|
|
18
|
-
template: string;
|
|
19
|
-
};
|
|
20
|
-
IconTablerExternalLink: {
|
|
21
|
-
inheritAttrs: boolean;
|
|
22
|
-
template: string;
|
|
23
|
-
};
|
|
24
|
-
IconIonDownloadOutline: {
|
|
25
|
-
inheritAttrs: boolean;
|
|
26
|
-
template: string;
|
|
27
|
-
};
|
|
28
|
-
IconIonOptionsOutline: {
|
|
29
|
-
inheritAttrs: boolean;
|
|
30
|
-
template: string;
|
|
31
|
-
};
|
|
32
|
-
IconIonCheckmarkDoneSharp: {
|
|
33
|
-
inheritAttrs: boolean;
|
|
34
|
-
template: string;
|
|
35
|
-
};
|
|
36
|
-
IconIonClose: {
|
|
37
|
-
inheritAttrs: boolean;
|
|
38
|
-
template: string;
|
|
39
|
-
};
|
|
40
|
-
IconTablerPhoneCall: {
|
|
41
|
-
inheritAttrs: boolean;
|
|
42
|
-
template: string;
|
|
43
|
-
};
|
|
44
|
-
IconIonCall: {
|
|
45
|
-
inheritAttrs: boolean;
|
|
46
|
-
template: string;
|
|
47
|
-
};
|
|
48
|
-
IconLogosTelegram: {
|
|
49
|
-
inheritAttrs: boolean;
|
|
50
|
-
template: string;
|
|
51
|
-
};
|
|
52
|
-
IconLogosWhatsappIcon: {
|
|
53
|
-
inheritAttrs: boolean;
|
|
54
|
-
template: string;
|
|
55
|
-
};
|
|
56
|
-
IconFa6BrandsViber: {
|
|
57
|
-
inheritAttrs: boolean;
|
|
58
|
-
template: string;
|
|
59
|
-
};
|
|
60
|
-
IconTablerMail: {
|
|
61
|
-
inheritAttrs: boolean;
|
|
62
|
-
template: string;
|
|
63
|
-
};
|
|
64
|
-
IconMdiEnvelope: {
|
|
65
|
-
inheritAttrs: boolean;
|
|
66
|
-
template: string;
|
|
67
|
-
};
|
|
68
|
-
IconIonRemoveCircleOutline: {
|
|
69
|
-
inheritAttrs: boolean;
|
|
70
|
-
template: string;
|
|
71
|
-
};
|
|
72
|
-
IconMdiMagnifyPlusOutline: {
|
|
73
|
-
inheritAttrs: boolean;
|
|
74
|
-
template: string;
|
|
75
|
-
};
|
|
76
|
-
IconMdiMagnifyMinusOutline: {
|
|
77
|
-
inheritAttrs: boolean;
|
|
78
|
-
template: string;
|
|
79
|
-
};
|
|
80
|
-
IconMdiCalendarMonthOutline: {
|
|
81
|
-
inheritAttrs: boolean;
|
|
82
|
-
template: string;
|
|
83
|
-
};
|
|
84
|
-
IconMdiChartBar: {
|
|
85
|
-
inheritAttrs: boolean;
|
|
86
|
-
template: string;
|
|
87
|
-
};
|
|
88
|
-
IconMdiChartLine: {
|
|
89
|
-
inheritAttrs: boolean;
|
|
90
|
-
template: string;
|
|
91
|
-
};
|
|
92
|
-
IconMdiChevronLeft: {
|
|
93
|
-
inheritAttrs: boolean;
|
|
94
|
-
template: string;
|
|
95
|
-
};
|
|
96
|
-
IconMdiChevronRight: {
|
|
97
|
-
inheritAttrs: boolean;
|
|
98
|
-
template: string;
|
|
99
|
-
};
|
|
100
|
-
IconMdiCogOutline: {
|
|
101
|
-
inheritAttrs: boolean;
|
|
102
|
-
template: string;
|
|
103
|
-
};
|
|
104
|
-
IconMdiCalendarTodayOutline: {
|
|
105
|
-
inheritAttrs: boolean;
|
|
106
|
-
template: string;
|
|
107
|
-
};
|
|
108
|
-
IconMdiCalendarWeekOutline: {
|
|
109
|
-
inheritAttrs: boolean;
|
|
110
|
-
template: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Монтирует компонент с общими заглушками Naive UI и иконок.
|
|
117
|
-
*
|
|
118
|
-
* @param component Тестируемый компонент.
|
|
119
|
-
* @param options Дополнительные опции mount.
|
|
120
|
-
*/
|
|
121
|
-
export declare const mountComponent: (component: unknown, options?: Record<string, unknown>) => VueWrapper;
|
|
122
|
-
/**
|
|
123
|
-
* Устанавливает поддержку наведения указателя для тестов, зависящих от типа устройства.
|
|
124
|
-
*
|
|
125
|
-
* @param value Признак того, что устройство поддерживает наведение указателя.
|
|
126
|
-
*/
|
|
127
|
-
export declare const setHoverSupport: (value: boolean) => void;
|
|
128
|
-
/**
|
|
129
|
-
* Устанавливает ширину окна для тестов, зависящих от разрешения экрана.
|
|
130
|
-
*
|
|
131
|
-
* @param value Ширина окна в пикселях.
|
|
132
|
-
*/
|
|
133
|
-
export declare const setWindowWidth: (value: number) => void;
|