@snabcentr/vue-ui-lib 2.13.1 → 2.14.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 -3
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +5328 -5218
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +77 -77
- 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-cost-properties.d.ts +2 -2
- 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 +2 -2
- package/dist/src/components/catalog/product-details/product-name.vue.d.ts +8 -4
- package/dist/src/components/inputs/phone-input.vue.d.ts +1 -1
- package/package.json +3 -2
@@ -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
|
+
}
|
@@ -22,9 +22,9 @@ export interface IProductCostProperties {
|
|
22
22
|
*/
|
23
23
|
allowPriceClick?: boolean | ((product: ProductData) => boolean);
|
24
24
|
/**
|
25
|
-
* Признак необходимости отображать
|
25
|
+
* Признак необходимости отображать тег с данными о коэффициенте перед ценой.
|
26
26
|
*/
|
27
|
-
|
27
|
+
showTag?: boolean;
|
28
28
|
/**
|
29
29
|
* Признак необходимости отображать единицу измерения количества товара.
|
30
30
|
*/
|
@@ -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;
|
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<IValue<string> & IDebounce
|
|
28
28
|
onlyCountries?: CountryCode[];
|
29
29
|
}> & Readonly<{
|
30
30
|
"onUpdate:value"?: ((value: string, ...additionalParams: any[]) => any) | undefined;
|
31
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, Element>;
|
32
32
|
export default _default;
|
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.
|
7
|
+
"version": "2.14.0",
|
8
8
|
"license": "ISC",
|
9
9
|
"scripts": {
|
10
10
|
"dev": "vite",
|
@@ -55,12 +55,13 @@
|
|
55
55
|
"pinia": "^3.0.1",
|
56
56
|
"ts-case-convert": "^2.1.0",
|
57
57
|
"vue": "^3.5.13",
|
58
|
-
"
|
58
|
+
"vue-tel-input": "^9.3.0"
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
61
|
"@iconify/vue": "^4.3.0",
|
62
62
|
"@snabcentr/eslint-config": "^2.2.0",
|
63
63
|
"@types/node": "^20.17.23",
|
64
|
+
"@types/vue-tel-input": "^2.1.7",
|
64
65
|
"@vitejs/plugin-vue": "^5.2.1",
|
65
66
|
"autoprefixer": "^10.4.20",
|
66
67
|
"cross-env": "^7.0.3",
|