@snabcentr/vue-ui-lib 3.62.0 → 3.63.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.
@@ -1,4 +1,4 @@
1
- import { CalculationTypeEnum, ICatalogableItem, IPriceUpdateData } from '@snabcentr/common-lib';
1
+ import { CalculationTypeEnum, ICatalogableItem, IPriceCoefficient, IPriceUpdateData } from '@snabcentr/common-lib';
2
2
  import { IDisabled, IValidationFeedbackProperties } from '../../../properties';
3
3
  /**
4
4
  * Компонент "Установка клиентской цены".
@@ -16,6 +16,11 @@ declare const _default: import('vue').DefineComponent<import('../../../propertie
16
16
  * Текст для подписи поля.
17
17
  */
18
18
  label?: string;
19
+ /**
20
+ * Функция определения коэффициентов, недоступных для установки.
21
+ * Такие коэффициенты отображаются в списке, но отключены (disabled).
22
+ */
23
+ disabledCoefficient?: (coefficient: IPriceCoefficient) => boolean;
19
24
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
25
  "update:value": (value?: IPriceUpdateData | undefined) => any;
21
26
  }, string, import('vue').PublicProps, Readonly<import('../../../properties').IValue<IPriceUpdateData> & import('../../../properties').IClearable & IValidationFeedbackProperties & IDisabled & {
@@ -31,6 +36,11 @@ declare const _default: import('vue').DefineComponent<import('../../../propertie
31
36
  * Текст для подписи поля.
32
37
  */
33
38
  label?: string;
39
+ /**
40
+ * Функция определения коэффициентов, недоступных для установки.
41
+ * Такие коэффициенты отображаются в списке, но отключены (disabled).
42
+ */
43
+ disabledCoefficient?: (coefficient: IPriceCoefficient) => boolean;
34
44
  }> & Readonly<{
35
45
  "onUpdate:value"?: ((value?: IPriceUpdateData | undefined) => any) | undefined;
36
46
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -30,6 +30,10 @@ declare const _default: <T extends IReference<any, any>>(__VLS_props: NonNullabl
30
30
  * Если установлено значение `responsive`, то все выбранные значения будут располагаться в одну строку.
31
31
  */
32
32
  maxTagCount?: number | "responsive";
33
+ /**
34
+ * Функция определения недоступных (disabled) опций по элементу справочника.
35
+ */
36
+ disabledItem?: (item: T) => boolean;
33
37
  }) & Partial<{}>> & import('vue').PublicProps;
34
38
  expose(exposed: import('vue').ShallowUnwrapRef<{
35
39
  focus: () => void | undefined;
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": "3.62.0",
7
+ "version": "3.63.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",