@snabcentr/vue-ui-lib 2.18.2 → 2.19.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.
@@ -43,6 +43,10 @@ export interface ICatalogableItemProperties {
43
43
  * Признак необходимости отобразить кнопку редактирования записи продукта.
44
44
  */
45
45
  showProductEditButton?: boolean | ((product: ProductData) => boolean);
46
+ /**
47
+ * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
48
+ */
49
+ currencyRates?: Record<string, number>;
46
50
  /**
47
51
  * Конфигурация меню контекста продукта.
48
52
  */
@@ -38,4 +38,8 @@ export interface IProductCostProperties {
38
38
  * Значок истории цен будет отображён только при отображении даты установки цены.
39
39
  */
40
40
  showPriceHistory?: boolean;
41
+ /**
42
+ * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
43
+ */
44
+ currencyRates?: Record<string, number>;
41
45
  }
@@ -47,4 +47,8 @@ export interface IProductNameProperties extends IProductActionsProperties {
47
47
  * Признак возможности клика по цене (если отображены цены).
48
48
  */
49
49
  allowPriceClick?: boolean | ((product: ProductData) => boolean);
50
+ /**
51
+ * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
52
+ */
53
+ currencyRates?: Record<string, number>;
50
54
  }
@@ -5,6 +5,7 @@ import { IProductCostProperties } from '../../../catalog/interfaces/properties/i
5
5
  declare const _default: import('vue').DefineComponent<IProductCostProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProductCostProperties> & Readonly<{}>, {
6
6
  showPriceHistory: boolean;
7
7
  allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
8
+ currencyRates: Record<string, number>;
8
9
  showTag: boolean;
9
10
  showQuantityUnit: boolean;
10
11
  showCostDate: boolean;
@@ -17,6 +17,7 @@ declare const _default: import('vue').DefineComponent<IProductNameProperties & I
17
17
  showPriceHistory: boolean;
18
18
  allowNameClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
19
19
  allowPriceClick: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
20
+ currencyRates: Record<string, number>;
20
21
  showProductAddToCartButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
21
22
  showProductEditButton: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
22
23
  productContextButtonsConfig: (product: import('@snabcentr/common-lib').ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
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.18.2",
7
+ "version": "2.19.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",
@@ -45,7 +45,7 @@
45
45
  "@iconify-json/logos": "^1.2.4",
46
46
  "@iconify-json/mdi": "^1.2.3",
47
47
  "@iconify-json/tabler": "^1.2.16",
48
- "@snabcentr/common-lib": "^1.56.0",
48
+ "@snabcentr/common-lib": "^1.58.0",
49
49
  "@tailwindcss/container-queries": "^0.1.1",
50
50
  "date-fns": "^3.6.0",
51
51
  "libphonenumber-js": "^1.12.4",