@snabcentr/vue-ui-lib 3.1.0 → 3.2.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,5 +1,5 @@
1
1
  import { default as CollapseItem } from '../../../components/collapse/collapse-item.vue';
2
- import { ICartItemBase, IFormValidationResult } from '@snabcentr/common-lib';
2
+ import { CategoryData, ICartItemBase, IFormValidationResult } from '@snabcentr/common-lib';
3
3
  /**
4
4
  * Список событий конфигураторов.
5
5
  */
@@ -25,4 +25,17 @@ export interface IConfiguratorEmits {
25
25
  */
26
26
  callback?: (...additionalParams: any[]) => void;
27
27
  };
28
+ /**
29
+ * Событие нажатия кнопки "Показать в виде списка".
30
+ */
31
+ 'configurator:click-view-switch': {
32
+ /**
33
+ * Данные о категории, для которой выбран контекст.
34
+ */
35
+ category: Readonly<CategoryData>;
36
+ /**
37
+ * Целевой компонент каталога, инициировавший событие.
38
+ */
39
+ target: InstanceType<typeof CollapseItem>;
40
+ };
28
41
  }
@@ -16,7 +16,9 @@ type __VLS_Props = {
16
16
  };
17
17
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
18
  submit: (data: ICartItemBase<any>, validation?: IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
19
+ "click:view-switch": () => any;
19
20
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
21
  onSubmit?: ((data: ICartItemBase<any>, validation?: IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
22
+ "onClick:view-switch"?: (() => any) | undefined;
21
23
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
24
  export default _default;
@@ -38,7 +38,6 @@ declare const _default: import('vue').DefineComponent<IValue<ICartItemBase<IConf
38
38
  submit: (data: ICartItemBase<IConfiguratorParamsKozyrek>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
39
39
  "update:params": (params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any;
40
40
  "update:value": (value: ICartItemBase<IConfiguratorParamsKozyrek>, ...additionalParams: any[]) => any;
41
- "click:view-switch": () => any;
42
41
  "click:add-line": (index: number) => any;
43
42
  "click:remove-line": (index: number) => any;
44
43
  "click:save-template": () => any;
@@ -74,7 +73,6 @@ declare const _default: import('vue').DefineComponent<IValue<ICartItemBase<IConf
74
73
  onSubmit?: ((data: ICartItemBase<IConfiguratorParamsKozyrek>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
75
74
  "onUpdate:params"?: ((params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any) | undefined;
76
75
  "onUpdate:value"?: ((value: ICartItemBase<IConfiguratorParamsKozyrek>, ...additionalParams: any[]) => any) | undefined;
77
- "onClick:view-switch"?: (() => any) | undefined;
78
76
  "onClick:add-line"?: ((index: number) => any) | undefined;
79
77
  "onClick:remove-line"?: ((index: number) => any) | undefined;
80
78
  "onClick:save-template"?: (() => any) | undefined;
@@ -15,6 +15,7 @@ declare const _default: import('vue').DefineComponent<{
15
15
  cartItem: CartItemBase<IConfiguratorParamsKozyrek>;
16
16
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
17
  submit: (data: CartItemBase<IConfiguratorParamsKozyrek>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
18
+ "click:view-switch": () => any;
18
19
  }, string, import('vue').PublicProps, Readonly<{
19
20
  /**
20
21
  * Настройки для конфигуратора козырьков и доборных элементов.
@@ -26,5 +27,6 @@ declare const _default: import('vue').DefineComponent<{
26
27
  cartItem: CartItemBase<IConfiguratorParamsKozyrek>;
27
28
  }> & Readonly<{
28
29
  onSubmit?: ((data: CartItemBase<IConfiguratorParamsKozyrek>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
30
+ "onClick:view-switch"?: (() => any) | undefined;
29
31
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
32
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: import('vue').DefineComponent<IValue<ICartItemBase<IConf
28
28
  submit: (data: ICartItemBase<IConfiguratorParamsMetalForDoors>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
29
29
  "update:params": (params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any;
30
30
  "update:value": (value: ICartItemBase<IConfiguratorParamsMetalForDoors>, ...additionalParams: any[]) => any;
31
- "click:view-switch": () => any;
32
31
  }, string, import('vue').PublicProps, Readonly<IValue<ICartItemBase<IConfiguratorParamsMetalForDoors>> & {
33
32
  /**
34
33
  * Настройки для конфигуратора металла для заполнения дверей.
@@ -50,7 +49,6 @@ declare const _default: import('vue').DefineComponent<IValue<ICartItemBase<IConf
50
49
  onSubmit?: ((data: ICartItemBase<IConfiguratorParamsMetalForDoors>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
51
50
  "onUpdate:params"?: ((params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any) | undefined;
52
51
  "onUpdate:value"?: ((value: ICartItemBase<IConfiguratorParamsMetalForDoors>, ...additionalParams: any[]) => any) | undefined;
53
- "onClick:view-switch"?: (() => any) | undefined;
54
52
  }>, {
55
53
  isProductSearching: boolean;
56
54
  isSubmitProcessing: boolean;
@@ -15,6 +15,7 @@ declare const _default: import('vue').DefineComponent<{
15
15
  cartItem: CartItemBase<IConfiguratorParamsMetalForDoors>;
16
16
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
17
  submit: (data: CartItemBase<IConfiguratorParamsMetalForDoors>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
18
+ "click:view-switch": () => any;
18
19
  }, string, import('vue').PublicProps, Readonly<{
19
20
  /**
20
21
  * Настройки для конфигуратора металла для заполнения дверей.
@@ -26,5 +27,6 @@ declare const _default: import('vue').DefineComponent<{
26
27
  cartItem: CartItemBase<IConfiguratorParamsMetalForDoors>;
27
28
  }> & Readonly<{
28
29
  onSubmit?: ((data: CartItemBase<IConfiguratorParamsMetalForDoors>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
30
+ "onClick:view-switch"?: (() => any) | undefined;
29
31
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
32
  export default _default;
@@ -6,5 +6,5 @@ export interface IConfiguratorParamsStrip extends ICartItemConfiguratorParamsBas
6
6
  /**
7
7
  * Длина полос резки штрипса в миллиметрах.
8
8
  */
9
- linesWidths: number[];
9
+ linesWidths: Array<number | null>;
10
10
  }
@@ -23,7 +23,6 @@ declare const _default: import('vue').DefineComponent<IValue<CartItemBase<IConfi
23
23
  submit: (data: CartItemBase<IConfiguratorParamsStrip>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
24
24
  "update:params": (params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any;
25
25
  "update:value": (value: CartItemBase<IConfiguratorParamsStrip>[], ...additionalParams: any[]) => any;
26
- "click:view-switch": () => any;
27
26
  "click:add-line": (index: number) => any;
28
27
  "click:remove-line": (index: number) => any;
29
28
  }, string, import('vue').PublicProps, Readonly<IValue<CartItemBase<IConfiguratorParamsStrip>[]> & {
@@ -43,7 +42,6 @@ declare const _default: import('vue').DefineComponent<IValue<CartItemBase<IConfi
43
42
  onSubmit?: ((data: CartItemBase<IConfiguratorParamsStrip>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
44
43
  "onUpdate:params"?: ((params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any) | undefined;
45
44
  "onUpdate:value"?: ((value: CartItemBase<IConfiguratorParamsStrip>[], ...additionalParams: any[]) => any) | undefined;
46
- "onClick:view-switch"?: (() => any) | undefined;
47
45
  "onClick:add-line"?: ((index: number) => any) | undefined;
48
46
  "onClick:remove-line"?: ((index: number) => any) | undefined;
49
47
  }>, {
@@ -6,7 +6,7 @@ import { DropdownMixedOption } from 'naive-ui/es/dropdown/src/interface';
6
6
  /**
7
7
  * Компонент полосы резки штрипса.
8
8
  */
9
- declare const _default: import('vue').DefineComponent<IValue<number> & {
9
+ declare const _default: import('vue').DefineComponent<IValue<number | null> & {
10
10
  /**
11
11
  * Индекс линии резки штрипса.
12
12
  */
@@ -45,7 +45,7 @@ declare const _default: import('vue').DefineComponent<IValue<number> & {
45
45
  "update:value": (value: number, ...additionalParams: any[]) => any;
46
46
  "click:add-line": (index: number) => any;
47
47
  "click:remove-line": (index: number) => any;
48
- }, string, import('vue').PublicProps, Readonly<IValue<number> & {
48
+ }, string, import('vue').PublicProps, Readonly<IValue<number | null> & {
49
49
  /**
50
50
  * Индекс линии резки штрипса.
51
51
  */
@@ -14,6 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  cartItems: CartItemBase<IConfiguratorParamsStrip>[];
15
15
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
16
  submit: (data: CartItemBase<IConfiguratorParamsStrip>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
17
+ "click:view-switch": () => any;
17
18
  }, string, import('vue').PublicProps, Readonly<{
18
19
  /**
19
20
  * Настройки конфигуратора резки штрипса.
@@ -25,5 +26,6 @@ declare const _default: import('vue').DefineComponent<{
25
26
  cartItems: CartItemBase<IConfiguratorParamsStrip>[];
26
27
  }> & Readonly<{
27
28
  onSubmit?: ((data: CartItemBase<IConfiguratorParamsStrip>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
29
+ "onClick:view-switch"?: (() => any) | undefined;
28
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
31
  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": "3.1.0",
7
+ "version": "3.2.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",