@snabcentr/vue-ui-lib 4.3.1 → 4.3.3

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,6 +1,7 @@
1
1
  import { OrderItemBase, IConfiguratorSettingsBase, ICartItemConfiguratorParamsBase, CategoryData } from '@snabcentr/common-lib';
2
2
  import { ICatalogEmits } from '../../catalog';
3
3
  import { Emitter } from 'mitt';
4
+ import { IConfiguratorParamsStrip } from './strip/interfaces/i-configurator-params-strip';
4
5
  import { ConfiguratorsEnum } from './enums/configurators-enum';
5
6
  /**
6
7
  * Динамический компонент для отображения конфигураторов на основе данных категории.
@@ -22,6 +23,10 @@ declare const _default: import('vue').DefineComponent<{
22
23
  * Данные о товаре в корзине.
23
24
  */
24
25
  cartItem?: OrderItemBase<ICartItemConfiguratorParamsBase> | null;
26
+ /**
27
+ * Данные о товарах в корзине.
28
+ */
29
+ cartItems?: OrderItemBase<IConfiguratorParamsStrip>[] | null;
25
30
  /**
26
31
  * Данные о категории.
27
32
  */
@@ -43,6 +48,10 @@ declare const _default: import('vue').DefineComponent<{
43
48
  * Данные о товаре в корзине.
44
49
  */
45
50
  cartItem?: OrderItemBase<ICartItemConfiguratorParamsBase> | null;
51
+ /**
52
+ * Данные о товарах в корзине.
53
+ */
54
+ cartItems?: OrderItemBase<IConfiguratorParamsStrip>[] | null;
46
55
  /**
47
56
  * Данные о категории.
48
57
  */
@@ -1,2 +1,3 @@
1
+ export * from './interfaces';
1
2
  export { default as ScMetalForDoorsConfiguratorForm } from './metal-for-doors-configurator-form.vue';
2
3
  export { default as ScMetalForDoorsConfigurator } from './metal-for-doors-configurator.vue';
@@ -1,5 +1,6 @@
1
1
  export * from './classes/configurator-settings-mosquito';
2
2
  export * from './interfaces/i-configurator-settings-mosquito';
3
+ export * from './interfaces/i-configurator-params-mosquito';
3
4
  export { default as ScMosquitoConfiguratorForm } from './mosquito-configurator-form.vue';
4
5
  export { default as ScMosquitoConfiguratorMeasurementInstructions } from './mosquito-configurator-measurement-instructions.vue';
5
6
  export { default as ScMosquitoConfiguratorPreview } from './mosquito-configurator-preview.vue';
@@ -1,3 +1,4 @@
1
+ export * from './interfaces';
1
2
  export { default as ScStripConfiguratorForm } from './strip-configurator-form.vue';
2
3
  export { default as ScStripConfiguratorLineItem } from './strip-configurator-line-item.vue';
3
4
  export { default as ScStripConfiguratorPreview } from './strip-configurator-preview.vue';
@@ -32,8 +32,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
32
32
  blur: () => void | undefined;
33
33
  select: () => void | undefined;
34
34
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
35
- focus: (focusEvent: FocusEvent) => any;
36
35
  input: (inputEvent: Event) => any;
36
+ focus: (focusEvent: FocusEvent) => any;
37
37
  keydown: (keyboardEvent: KeyboardEvent) => any;
38
38
  "update:value": (value: number | null, ...additionalParams: any[]) => any;
39
39
  }, string, import('vue').PublicProps, Readonly<import('../../properties').IValue<number | null> & import('../../properties').IClearable & IDebounced & IPlaceholder & {
@@ -62,17 +62,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
62
62
  */
63
63
  showButton?: boolean;
64
64
  }> & Readonly<{
65
- onFocus?: ((focusEvent: FocusEvent) => any) | undefined;
66
65
  onInput?: ((inputEvent: Event) => any) | undefined;
66
+ onFocus?: ((focusEvent: FocusEvent) => any) | undefined;
67
67
  onKeydown?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
68
68
  "onUpdate:value"?: ((value: number | null, ...additionalParams: any[]) => any) | undefined;
69
69
  }>, {
70
70
  value: number | null;
71
- placeholder: string;
72
- clearable: boolean;
73
71
  validator: (value: number) => boolean;
74
72
  min: number;
75
73
  max: number;
74
+ placeholder: string;
75
+ clearable: boolean;
76
76
  step: number;
77
77
  showButton: boolean;
78
78
  parse: (value: string) => number | null;
@@ -1,3 +1,4 @@
1
1
  export * from './content-helper';
2
2
  export * from './input-helper';
3
3
  export * from './select-option-helper';
4
+ export * from './validators';
@@ -1,6 +1,13 @@
1
1
  import { FormItemRule } from 'naive-ui';
2
2
  /**
3
- * Класс валидаторов числовых полей.
3
+ * Объект валидаторов общих полей.
4
+ * Предоставляет статические методы для создания правил валидации общих полей.
5
+ */
6
+ export declare const CommonValidators: {
7
+ required: FormItemRule;
8
+ };
9
+ /**
10
+ * Объект валидаторов числовых полей.
4
11
  * Предоставляет статические методы для создания правил валидации форм.
5
12
  */
6
13
  export declare const NumericValidators: {
@@ -27,6 +34,13 @@ export declare const NumericValidators: {
27
34
  */
28
35
  step(step: number): FormItemRule;
29
36
  };
37
+ /**
38
+ * Объект валидаторов дат.
39
+ * Предоставляет статические методы для создания правил валидации дат.
40
+ */
41
+ export declare const DateValidators: {
42
+ required: FormItemRule;
43
+ };
30
44
  /**
31
45
  * Класс валидаторов полей.
32
46
  * Предоставляет статические методы для создания правил валидации полей форм.
@@ -47,4 +47,13 @@ export interface IOrderItemEmits {
47
47
  */
48
48
  item: Readonly<IOrderItemBase>;
49
49
  };
50
+ /**
51
+ * Событие удаления позиции заказа.
52
+ */
53
+ 'order-item:delete': {
54
+ /**
55
+ * Данные о позиции заказа.
56
+ */
57
+ item: Readonly<IOrderItemBase>;
58
+ };
50
59
  }
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": "4.3.1",
7
+ "version": "4.3.3",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",
@@ -45,7 +45,7 @@
45
45
  "@iconify-json/logos": "^1.2.9",
46
46
  "@iconify-json/mdi": "^1.2.3",
47
47
  "@iconify-json/tabler": "^1.2.23",
48
- "@snabcentr/common-lib": "^1.89.0 || ^2.4.0",
48
+ "@snabcentr/common-lib": "^1.89.0 || ^2.6.0",
49
49
  "@tailwindcss/container-queries": "^0.1.1",
50
50
  "date-fns": "^3.6.0",
51
51
  "libphonenumber-js": "^1.12.23",