@snabcentr/vue-ui-lib 6.0.0 → 6.0.1

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.
Files changed (23) hide show
  1. package/dist/manifest.json +2 -2
  2. package/dist/sc-vue-ui-lib.css +1 -1
  3. package/dist/sc-vue-ui-lib.js +24 -34
  4. package/dist/sc-vue-ui-lib.js.map +1 -1
  5. package/dist/sc-vue-ui-lib.umd.cjs +4 -4
  6. package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/interfaces/events/i-category-emits.d.ts +1 -1
  8. package/dist/src/catalog/interfaces/properties/i-catalog-properties.d.ts +1 -1
  9. package/dist/src/catalog/interfaces/properties/i-catalogable-item-properties.d.ts +1 -1
  10. package/dist/src/catalog/interfaces/properties/i-category-collapse-item-properties.d.ts +1 -1
  11. package/dist/src/catalog/interfaces/properties/i-category-collapse-properties.d.ts +1 -1
  12. package/dist/src/catalog/interfaces/properties/i-product-actions-properties.d.ts +1 -1
  13. package/dist/src/catalog/interfaces/properties/i-product-cost-properties.d.ts +1 -1
  14. package/dist/src/catalog/interfaces/properties/i-product-name-properties.d.ts +1 -1
  15. package/dist/src/components/catalog/product-table-columns-definitions.d.ts +1 -1
  16. package/dist/src/components/configurators/kozyrek/classes/kozyrek-template.d.ts +1 -1
  17. package/dist/src/helpers/address-quality-label-helper.d.ts +1 -0
  18. package/dist/src/orders/order-marker-colors.d.ts +1 -1
  19. package/dist/src/orders/order-status-colors.d.ts +1 -1
  20. package/dist/src/properties/interfaces/i-order-info-property.d.ts +1 -1
  21. package/dist/src/properties/interfaces/i-orders-table-fields.d.ts +1 -1
  22. package/package.json +2 -2
  23. 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 } from '@snabcentr/common-lib';
2
+ import { ICatalogProperties } from './i-catalog-properties';
3
3
  /**
4
4
  * Список свойств компонента элемента сворачиваемого списка категорий.
5
5
  */
@@ -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
  * Данные о шаблоне гиба.
@@ -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.0",
3
+ "version": "6.0.1",
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.1.0",
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;