@snabcentr/vue-ui-lib 4.3.6 → 4.4.1

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.
Files changed (35) hide show
  1. package/dist/manifest.json +2 -2
  2. package/dist/release_notes.tmp +1 -1
  3. package/dist/sc-vue-ui-lib.css +1 -1
  4. package/dist/sc-vue-ui-lib.js +8361 -7689
  5. package/dist/sc-vue-ui-lib.js.map +1 -1
  6. package/dist/sc-vue-ui-lib.umd.cjs +161 -161
  7. package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
  8. package/dist/src/catalog/interfaces/events/i-configurator-emits.d.ts +12 -1
  9. package/dist/src/components/catalog/dialogs/add-product-to-cart-dialog.vue.d.ts +2 -2
  10. package/dist/src/components/configurators/composables/configurators.d.ts +1 -1
  11. package/dist/src/components/configurators/dynamic-configurator.vue.d.ts +1 -2
  12. package/dist/src/components/configurators/index.d.ts +1 -1
  13. package/dist/src/components/configurators/kozyrek/kozyrek-configurator-params-form.vue.d.ts +2 -2
  14. package/dist/src/components/configurators/kozyrek/kozyrek-configurator.vue.d.ts +5 -5
  15. package/dist/src/components/configurators/metal-for-doors/metal-for-doors-configurator-form.vue.d.ts +2 -2
  16. package/dist/src/components/configurators/metal-for-doors/metal-for-doors-configurator.vue.d.ts +5 -5
  17. package/dist/src/components/configurators/mosquito/mosquito-configurator-form.vue.d.ts +2 -2
  18. package/dist/src/components/configurators/mosquito/mosquito-configurator.vue.d.ts +5 -5
  19. package/dist/src/components/configurators/sandwich/sandwich-configurator-form.vue.d.ts +2 -2
  20. package/dist/src/components/configurators/sandwich/sandwich-configurator.vue.d.ts +5 -5
  21. package/dist/src/components/configurators/sandwich_m2/composables/index.d.ts +1 -0
  22. package/dist/src/components/configurators/sandwich_m2/composables/is-can-sandwich-m2-show.d.ts +7 -0
  23. package/dist/src/components/configurators/sandwich_m2/index.d.ts +4 -0
  24. package/dist/src/components/configurators/sandwich_m2/interfaces/i-configurator-params-sandwich-m2.d.ts +15 -0
  25. package/dist/src/components/configurators/sandwich_m2/interfaces/i-configurator-settings-sandwich-m2.d.ts +22 -0
  26. package/dist/src/components/configurators/sandwich_m2/interfaces/i-sandwich-m2-item-submit-state.d.ts +4 -0
  27. package/dist/src/components/configurators/sandwich_m2/interfaces/i-sandwich-m2-validation.d.ts +14 -0
  28. package/dist/src/components/configurators/sandwich_m2/interfaces/index.d.ts +4 -0
  29. package/dist/src/components/configurators/sandwich_m2/sandwich-m2-configurator-form.vue.d.ts +651 -0
  30. package/dist/src/components/configurators/sandwich_m2/sandwich-m2-configurator.vue.d.ts +953 -0
  31. package/dist/src/components/configurators/strip/strip-configurator-form.vue.d.ts +2 -2
  32. package/dist/src/components/configurators/strip/strip-configurator.vue.d.ts +5 -5
  33. package/dist/src/emits/interfaces/i-submit.d.ts +10 -10
  34. package/package.json +2 -2
  35. package/dist/src/components/configurators/enums/configurators-enum.d.ts +0 -25
@@ -8,7 +8,7 @@ export interface IConfiguratorEmits {
8
8
  */
9
9
  'configurator:submit': {
10
10
  /**
11
- * Данные корзины с добавленными товарами.
11
+ * Данные корзины с добавленными товарами (одна позиция).
12
12
  */
13
13
  cartItem: Readonly<OrderItemBase<any>>;
14
14
  /**
@@ -19,6 +19,17 @@ export interface IConfiguratorEmits {
19
19
  * Функция обратного вызова для завершения обработки.
20
20
  */
21
21
  callback?: (...additionalParams: any[]) => void;
22
+ /**
23
+ * Дополнительные параметры события. Используются конфигураторами,
24
+ * которые отправляют несколько submit-ов подряд (например, sandwich_m2).
25
+ * Ключ `isFinalSuccessfulCompletion: true` означает, что данный submit —
26
+ * последний в цепочке и все предыдущие запросы завершились успешно;
27
+ * обработчик может закрыть диалог / очистить форму только при этом
28
+ * флаге И при условии, что текущий запрос тоже отработал без ошибки.
29
+ * Если хотя бы один из предыдущих запросов в цепочке упал — флаг будет
30
+ * `false` даже на последнем submit, чтобы диалог остался открытым.
31
+ */
32
+ additionalParams?: Record<string, unknown>;
22
33
  };
23
34
  /**
24
35
  * Событие нажатия кнопки "Показать в виде списка".
@@ -21,9 +21,9 @@ declare const _default: import('vue').DefineComponent<{}, {
21
21
  */
22
22
  closeDialog: () => void;
23
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
- submit: (data: OrderItemBase<undefined, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
24
+ submit: (data: OrderItemBase<undefined, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
25
25
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
26
- onSubmit?: ((data: OrderItemBase<undefined, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
26
+ onSubmit?: ((data: OrderItemBase<undefined, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
28
28
  'base-dialog-reference': ({
29
29
  $: import('vue').ComponentInternalInstance;
@@ -1,4 +1,4 @@
1
- import { ConfiguratorsEnum } from '../enums/configurators-enum';
1
+ import { ConfiguratorsEnum } from '@snabcentr/common-lib';
2
2
  /**
3
3
  * Проверяет, является ли переданная строка одним из реализованных конфигураторов.
4
4
  *
@@ -1,8 +1,7 @@
1
- import { OrderItemBase, IConfiguratorSettingsBase, ICartItemConfiguratorParamsBase, CategoryData } from '@snabcentr/common-lib';
1
+ import { OrderItemBase, IConfiguratorSettingsBase, ICartItemConfiguratorParamsBase, CategoryData, ConfiguratorsEnum } from '@snabcentr/common-lib';
2
2
  import { ICatalogEmits } from '../../catalog';
3
3
  import { Emitter } from 'mitt';
4
4
  import { IConfiguratorParamsStrip } from './strip/interfaces/i-configurator-params-strip';
5
- import { ConfiguratorsEnum } from './enums/configurators-enum';
6
5
  /**
7
6
  * Динамический компонент для отображения конфигураторов на основе данных категории.
8
7
  */
@@ -1,9 +1,9 @@
1
1
  export { default as ScConfiguratorsProductInfo } from './configurators-product-info.vue';
2
2
  export { default as ScDynamicConfigurator } from './dynamic-configurator.vue';
3
- export * from './enums/configurators-enum';
4
3
  export * from './kozyrek';
5
4
  export * from './metal-for-doors';
6
5
  export * from './mosquito';
7
6
  export * from './strip';
8
7
  export * from './sandwich';
8
+ export * from './sandwich_m2';
9
9
  export * from './composables';
@@ -332,7 +332,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
332
332
  readonly showLabel: boolean | undefined;
333
333
  }> | null>>;
334
334
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
335
- submit: (data: IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
335
+ submit: (data: IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
336
336
  "update:params": (params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any;
337
337
  "update:value": (value: IOrderItemBase<IConfiguratorParamsKozyrek, number>, ...additionalParams: any[]) => any;
338
338
  "click:add-line": (index: number) => any;
@@ -367,7 +367,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
367
367
  */
368
368
  selectTemplateIndex: number;
369
369
  }> & Readonly<{
370
- onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
370
+ onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
371
371
  "onUpdate:params"?: ((params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any) | undefined;
372
372
  "onUpdate:value"?: ((value: IOrderItemBase<IConfiguratorParamsKozyrek, number>, ...additionalParams: any[]) => any) | undefined;
373
373
  "onClick:add-line"?: ((index: number) => any) | undefined;
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
17
17
  */
18
18
  cartItem: OrderItemBase<IConfiguratorParamsKozyrek>;
19
19
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- submit: (data: OrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
20
+ submit: (data: OrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
21
21
  "click:view-switch": () => any;
22
22
  }, string, import('vue').PublicProps, Readonly<ICatalogableItemProperties & {
23
23
  /**
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
29
29
  */
30
30
  cartItem: OrderItemBase<IConfiguratorParamsKozyrek>;
31
31
  }> & Readonly<{
32
- onSubmit?: ((data: OrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
32
+ onSubmit?: ((data: OrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
33
33
  "onClick:view-switch"?: (() => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
35
35
  'kozyrek-configurator-params-form': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').IValue<import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>> & {
@@ -43,7 +43,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
43
43
  validation: IKozyrekValidation;
44
44
  selectTemplateIndex: number;
45
45
  }> & Readonly<{
46
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
46
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
47
47
  "onUpdate:params"?: ((params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any) | undefined;
48
48
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, ...additionalParams: any[]) => any) | undefined;
49
49
  "onClick:add-line"?: ((index: number) => any) | undefined;
@@ -340,7 +340,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
340
340
  readonly showLabel: boolean | undefined;
341
341
  }> | null>>;
342
342
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
343
- submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
343
+ submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
344
344
  "update:params": (params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any;
345
345
  "update:value": (value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, ...additionalParams: any[]) => any;
346
346
  "click:add-line": (index: number) => any;
@@ -657,7 +657,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
657
657
  validation: IKozyrekValidation;
658
658
  selectTemplateIndex: number;
659
659
  }> & Readonly<{
660
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
660
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
661
661
  "onUpdate:params"?: ((params: IConfiguratorParamsKozyrek, ...additionalParams: any[]) => any) | undefined;
662
662
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsKozyrek, number>, ...additionalParams: any[]) => any) | undefined;
663
663
  "onClick:add-line"?: ((index: number) => any) | undefined;
@@ -321,7 +321,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
321
321
  readonly showLabel: boolean | undefined;
322
322
  }> | null>>;
323
323
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
324
- submit: (data: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
324
+ submit: (data: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
325
325
  "update:params": (params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any;
326
326
  "update:value": (value: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, ...additionalParams: any[]) => any;
327
327
  }, string, import('vue').PublicProps, Readonly<IValue<IOrderItemBase<IConfiguratorParamsMetalForDoors, number>> & {
@@ -342,7 +342,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
342
342
  */
343
343
  validation: IMetalForDorsValidation;
344
344
  }> & Readonly<{
345
- onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
345
+ onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
346
346
  "onUpdate:params"?: ((params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any) | undefined;
347
347
  "onUpdate:value"?: ((value: IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, ...additionalParams: any[]) => any) | undefined;
348
348
  }>, {
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
16
16
  */
17
17
  cartItem: OrderItemBase<IConfiguratorParamsMetalForDoors>;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- submit: (data: OrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
19
+ submit: (data: OrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
20
20
  "click:view-switch": () => any;
21
21
  }, string, import('vue').PublicProps, Readonly<ICatalogableItemProperties & {
22
22
  /**
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
28
28
  */
29
29
  cartItem: OrderItemBase<IConfiguratorParamsMetalForDoors>;
30
30
  }> & Readonly<{
31
- onSubmit?: ((data: OrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
31
+ onSubmit?: ((data: OrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
32
32
  "onClick:view-switch"?: (() => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
34
  'metal-for-doors-configurator-form': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').IValue<import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>> & {
@@ -37,7 +37,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
37
37
  isSubmitProcessing?: boolean;
38
38
  validation: IMetalForDorsValidation;
39
39
  }> & Readonly<{
40
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
40
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
41
41
  "onUpdate:params"?: ((params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any) | undefined;
42
42
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, ...additionalParams: any[]) => any) | undefined;
43
43
  }>, {
@@ -331,7 +331,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
331
331
  readonly showLabel: boolean | undefined;
332
332
  }> | null>>;
333
333
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
334
- submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
334
+ submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
335
335
  "update:params": (params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any;
336
336
  "update:value": (value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, ...additionalParams: any[]) => any;
337
337
  }, import('vue').PublicProps, {
@@ -3302,7 +3302,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
3302
3302
  isSubmitProcessing?: boolean;
3303
3303
  validation: IMetalForDorsValidation;
3304
3304
  }> & Readonly<{
3305
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
3305
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
3306
3306
  "onUpdate:params"?: ((params: IConfiguratorParamsMetalForDoors, ...additionalParams: any[]) => any) | undefined;
3307
3307
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMetalForDoors, number>, ...additionalParams: any[]) => any) | undefined;
3308
3308
  }>, {
@@ -321,7 +321,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
321
321
  readonly showLabel: boolean | undefined;
322
322
  }> | null>>;
323
323
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
324
- submit: (data: IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
324
+ submit: (data: IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
325
325
  "update:params": (params: IConfiguratorParamsMosquito, ...additionalParams: any[]) => any;
326
326
  "update:value": (value: IOrderItemBase<IConfiguratorParamsMosquito, number>, ...additionalParams: any[]) => any;
327
327
  "click:instructions-toggle": () => any;
@@ -344,7 +344,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
344
344
  */
345
345
  validation: IMosquitoValidation;
346
346
  }> & Readonly<{
347
- onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
347
+ onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
348
348
  "onUpdate:params"?: ((params: IConfiguratorParamsMosquito, ...additionalParams: any[]) => any) | undefined;
349
349
  "onUpdate:value"?: ((value: IOrderItemBase<IConfiguratorParamsMosquito, number>, ...additionalParams: any[]) => any) | undefined;
350
350
  "onClick:instructions-toggle"?: (() => any) | undefined;
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
16
16
  */
17
17
  cartItem: OrderItemBase<IConfiguratorParamsMosquito>;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- submit: (data: OrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
19
+ submit: (data: OrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
20
20
  "click:view-switch": () => any;
21
21
  }, string, import('vue').PublicProps, Readonly<ICatalogableItemProperties & {
22
22
  /**
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
28
28
  */
29
29
  cartItem: OrderItemBase<IConfiguratorParamsMosquito>;
30
30
  }> & Readonly<{
31
- onSubmit?: ((data: OrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
31
+ onSubmit?: ((data: OrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
32
32
  "onClick:view-switch"?: (() => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
34
  'mosquito-configurator-form': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').IValue<import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>> & {
@@ -37,7 +37,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
37
37
  isSubmitProcessing?: boolean;
38
38
  validation: IMosquitoValidation;
39
39
  }> & Readonly<{
40
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
40
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
41
41
  "onUpdate:params"?: ((params: IConfiguratorParamsMosquito, ...additionalParams: any[]) => any) | undefined;
42
42
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, ...additionalParams: any[]) => any) | undefined;
43
43
  "onClick:instructions-toggle"?: (() => any) | undefined;
@@ -333,7 +333,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
333
333
  readonly showLabel: boolean | undefined;
334
334
  }> | null>>;
335
335
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
336
- submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
336
+ submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
337
337
  "update:params": (params: IConfiguratorParamsMosquito, ...additionalParams: any[]) => any;
338
338
  "update:value": (value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, ...additionalParams: any[]) => any;
339
339
  "click:instructions-toggle": () => any;
@@ -4074,7 +4074,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
4074
4074
  isSubmitProcessing?: boolean;
4075
4075
  validation: IMosquitoValidation;
4076
4076
  }> & Readonly<{
4077
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
4077
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
4078
4078
  "onUpdate:params"?: ((params: IConfiguratorParamsMosquito, ...additionalParams: any[]) => any) | undefined;
4079
4079
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsMosquito, number>, ...additionalParams: any[]) => any) | undefined;
4080
4080
  "onClick:instructions-toggle"?: (() => any) | undefined;
@@ -322,7 +322,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
322
322
  readonly showLabel: boolean | undefined;
323
323
  }> | null>>;
324
324
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
325
- submit: (data: IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
325
+ submit: (data: IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
326
326
  "update:params": (params: IConfiguratorParamsSandwich, ...additionalParams: any[]) => any;
327
327
  "update:value": (value: IOrderItemBase<IConfiguratorParamsSandwich, number>, ...additionalParams: any[]) => any;
328
328
  "add-item": (index: number) => any;
@@ -345,7 +345,7 @@ declare const _default: import('vue').DefineComponent<IValue<IOrderItemBase<ICon
345
345
  */
346
346
  validation: ISandwichValidation;
347
347
  }> & Readonly<{
348
- onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
348
+ onSubmit?: ((data: IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
349
349
  "onUpdate:params"?: ((params: IConfiguratorParamsSandwich, ...additionalParams: any[]) => any) | undefined;
350
350
  "onUpdate:value"?: ((value: IOrderItemBase<IConfiguratorParamsSandwich, number>, ...additionalParams: any[]) => any) | undefined;
351
351
  "onAdd-item"?: ((index: number) => any) | undefined;
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
16
16
  */
17
17
  cartItem: OrderItemBase<IConfiguratorParamsSandwich>;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- submit: (data: OrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
19
+ submit: (data: OrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
20
20
  "click:view-switch": () => any;
21
21
  }, string, import('vue').PublicProps, Readonly<ICatalogableItemProperties & {
22
22
  /**
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
28
28
  */
29
29
  cartItem: OrderItemBase<IConfiguratorParamsSandwich>;
30
30
  }> & Readonly<{
31
- onSubmit?: ((data: OrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
31
+ onSubmit?: ((data: OrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
32
32
  "onClick:view-switch"?: (() => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
34
  'sandwich-configurator-form': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').IValue<import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>> & ICatalogableItemProperties & {
@@ -37,7 +37,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
37
37
  isSubmitProcessing?: boolean;
38
38
  validation: ISandwichValidation;
39
39
  }> & Readonly<{
40
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
40
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
41
41
  "onUpdate:params"?: ((params: IConfiguratorParamsSandwich, ...additionalParams: any[]) => any) | undefined;
42
42
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, ...additionalParams: any[]) => any) | undefined;
43
43
  "onAdd-item"?: ((index: number) => any) | undefined;
@@ -333,7 +333,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
333
333
  readonly showLabel: boolean | undefined;
334
334
  }> | null>>;
335
335
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
336
- submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
336
+ submit: (data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
337
337
  "update:params": (params: IConfiguratorParamsSandwich, ...additionalParams: any[]) => any;
338
338
  "update:value": (value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, ...additionalParams: any[]) => any;
339
339
  "add-item": (index: number) => any;
@@ -644,7 +644,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
644
644
  isSubmitProcessing?: boolean;
645
645
  validation: ISandwichValidation;
646
646
  }> & Readonly<{
647
- onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
647
+ onSubmit?: ((data: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
648
648
  "onUpdate:params"?: ((params: IConfiguratorParamsSandwich, ...additionalParams: any[]) => any) | undefined;
649
649
  "onUpdate:value"?: ((value: import('@snabcentr/common-lib').IOrderItemBase<IConfiguratorParamsSandwich, number>, ...additionalParams: any[]) => any) | undefined;
650
650
  "onAdd-item"?: ((index: number) => any) | undefined;
@@ -0,0 +1 @@
1
+ export * from './is-can-sandwich-m2-show';
@@ -0,0 +1,7 @@
1
+ import { IClientCategory } from '@snabcentr/common-lib';
2
+ /**
3
+ * Проверяет, можно ли отображать конфигуратор распила сэндвич-панелей по площади для переданной категории.
4
+ *
5
+ * @param category Категория для проверки.
6
+ */
7
+ export declare function isCanSandwichM2Show(category: IClientCategory): boolean;
@@ -0,0 +1,4 @@
1
+ export * from './interfaces';
2
+ export * from './composables';
3
+ export { default as ScSandwichM2Configurator } from './sandwich-m2-configurator.vue';
4
+ export { default as ScSandwichM2ConfiguratorForm } from './sandwich-m2-configurator-form.vue';
@@ -0,0 +1,15 @@
1
+ import { ICartItemConfiguratorParamsBase } from '@snabcentr/common-lib';
2
+ /**
3
+ * Данные о параметрах конфигуратора распила сэндвич-панелей по площади.
4
+ * Каждый элемент корзины соответствует одной позиции.
5
+ */
6
+ export interface IConfiguratorParamsSandwichM2 extends ICartItemConfiguratorParamsBase {
7
+ /**
8
+ * Ширина изделия, мм.
9
+ */
10
+ width: number;
11
+ /**
12
+ * Длина изделия, мм.
13
+ */
14
+ length: number;
15
+ }
@@ -0,0 +1,22 @@
1
+ import { IConfiguratorSettingsBase } from '@snabcentr/common-lib';
2
+ /**
3
+ * Данные о настройках конфигуратора распила сэндвич-панелей по площади.
4
+ */
5
+ export interface IConfiguratorSettingsSandwichM2 extends IConfiguratorSettingsBase {
6
+ /**
7
+ * Минимальная ширина изделия в миллиметрах.
8
+ */
9
+ minWidth: number;
10
+ /**
11
+ * Минимальная длина изделия в миллиметрах.
12
+ */
13
+ minLength: number;
14
+ /**
15
+ * Признак, что в конфигураторе разрешено просматривать товары в виде таблицы.
16
+ */
17
+ allowShowTable: boolean;
18
+ /**
19
+ * Признак необходимости отображения поля "ДопПродажа".
20
+ */
21
+ canSetDopProdaga?: boolean;
22
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Состояние отправки одной позиции конфигуратора sandwich_m2.
3
+ */
4
+ export type SandwichM2ItemSubmitState = 'idle' | 'loading' | 'success' | 'error';
@@ -0,0 +1,14 @@
1
+ import { IBaseCartValidationResult, IFieldValidationResultData } from '@snabcentr/common-lib';
2
+ /**
3
+ * Данные о результатах валидации конфигуратора распила сэндвич-панелей по площади.
4
+ */
5
+ export interface ISandwichM2Validation extends IBaseCartValidationResult {
6
+ /**
7
+ * Ширина изделия.
8
+ */
9
+ width: IFieldValidationResultData;
10
+ /**
11
+ * Длина изделия.
12
+ */
13
+ length: IFieldValidationResultData;
14
+ }
@@ -0,0 +1,4 @@
1
+ export * from './i-configurator-params-sandwich-m2';
2
+ export * from './i-configurator-settings-sandwich-m2';
3
+ export * from './i-sandwich-m2-validation';
4
+ export * from './i-sandwich-m2-item-submit-state';