@snabcentr/vue-ui-lib 4.3.6 → 4.4.2
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.
- package/dist/manifest.json +2 -2
- package/dist/release_notes.tmp +1 -1
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +8390 -7702
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +161 -161
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/events/i-configurator-emits.d.ts +12 -1
- package/dist/src/components/catalog/dialogs/add-product-to-cart-dialog.vue.d.ts +2 -2
- package/dist/src/components/configurators/composables/configurators.d.ts +1 -1
- package/dist/src/components/configurators/dynamic-configurator.vue.d.ts +1 -2
- package/dist/src/components/configurators/index.d.ts +1 -1
- package/dist/src/components/configurators/kozyrek/kozyrek-configurator-params-form.vue.d.ts +2 -2
- package/dist/src/components/configurators/kozyrek/kozyrek-configurator.vue.d.ts +5 -5
- package/dist/src/components/configurators/metal-for-doors/metal-for-doors-configurator-form.vue.d.ts +2 -2
- package/dist/src/components/configurators/metal-for-doors/metal-for-doors-configurator.vue.d.ts +5 -5
- package/dist/src/components/configurators/mosquito/mosquito-configurator-form.vue.d.ts +2 -2
- package/dist/src/components/configurators/mosquito/mosquito-configurator.vue.d.ts +5 -5
- package/dist/src/components/configurators/sandwich/sandwich-configurator-form.vue.d.ts +2 -2
- package/dist/src/components/configurators/sandwich/sandwich-configurator.vue.d.ts +5 -5
- package/dist/src/components/configurators/sandwich_m2/composables/index.d.ts +1 -0
- package/dist/src/components/configurators/sandwich_m2/composables/is-can-sandwich-m2-show.d.ts +7 -0
- package/dist/src/components/configurators/sandwich_m2/index.d.ts +4 -0
- package/dist/src/components/configurators/sandwich_m2/interfaces/i-configurator-params-sandwich-m2.d.ts +15 -0
- package/dist/src/components/configurators/sandwich_m2/interfaces/i-configurator-settings-sandwich-m2.d.ts +22 -0
- package/dist/src/components/configurators/sandwich_m2/interfaces/i-sandwich-m2-item-submit-state.d.ts +4 -0
- package/dist/src/components/configurators/sandwich_m2/interfaces/i-sandwich-m2-validation.d.ts +14 -0
- package/dist/src/components/configurators/sandwich_m2/interfaces/index.d.ts +4 -0
- package/dist/src/components/configurators/sandwich_m2/sandwich-m2-configurator-form.vue.d.ts +651 -0
- package/dist/src/components/configurators/sandwich_m2/sandwich-m2-configurator.vue.d.ts +953 -0
- package/dist/src/components/configurators/strip/strip-configurator-form.vue.d.ts +2 -2
- package/dist/src/components/configurators/strip/strip-configurator.vue.d.ts +5 -5
- package/dist/src/emits/interfaces/i-submit.d.ts +10 -10
- package/package.json +2 -2
- package/dist/src/components/configurators/enums/configurators-enum.d.ts +0 -25
|
@@ -318,7 +318,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
318
318
|
readonly showLabel: boolean | undefined;
|
|
319
319
|
}> | null>>;
|
|
320
320
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
321
|
-
submit: (data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
|
|
321
|
+
submit: (data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
|
|
322
322
|
"update:params": (params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any;
|
|
323
323
|
"update:value": (value: OrderItemBase<IConfiguratorParamsStrip, number>[], ...additionalParams: any[]) => any;
|
|
324
324
|
"click:add-line": (index: number) => any;
|
|
@@ -337,7 +337,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
337
337
|
*/
|
|
338
338
|
validation: IStripValidation;
|
|
339
339
|
}> & Readonly<{
|
|
340
|
-
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
|
|
340
|
+
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
|
|
341
341
|
"onUpdate:params"?: ((params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any) | undefined;
|
|
342
342
|
"onUpdate:value"?: ((value: OrderItemBase<IConfiguratorParamsStrip, number>[], ...additionalParams: any[]) => any) | undefined;
|
|
343
343
|
"onClick:add-line"?: ((index: number) => any) | undefined;
|
|
@@ -15,7 +15,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
15
15
|
*/
|
|
16
16
|
cartItems: OrderItemBase<IConfiguratorParamsStrip>[];
|
|
17
17
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
-
submit: (data: OrderItemBase<IConfiguratorParamsStrip, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
|
|
18
|
+
submit: (data: OrderItemBase<IConfiguratorParamsStrip, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
|
|
19
19
|
"click:view-switch": () => any;
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<ICatalogableItemProperties & {
|
|
21
21
|
/**
|
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
27
27
|
*/
|
|
28
28
|
cartItems: OrderItemBase<IConfiguratorParamsStrip>[];
|
|
29
29
|
}> & Readonly<{
|
|
30
|
-
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
|
|
30
|
+
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
|
|
31
31
|
"onClick:view-switch"?: (() => any) | undefined;
|
|
32
32
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
33
|
'strip-configurator-form': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').IValue<OrderItemBase<IConfiguratorParamsStrip, number>[]> & {
|
|
@@ -35,7 +35,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
35
35
|
isSubmitProcessing?: boolean;
|
|
36
36
|
validation: import('./interfaces').IStripValidation;
|
|
37
37
|
}> & Readonly<{
|
|
38
|
-
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
|
|
38
|
+
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
|
|
39
39
|
"onUpdate:params"?: ((params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any) | undefined;
|
|
40
40
|
"onUpdate:value"?: ((value: OrderItemBase<IConfiguratorParamsStrip, number>[], ...additionalParams: any[]) => any) | undefined;
|
|
41
41
|
"onClick:add-line"?: ((index: number) => any) | undefined;
|
|
@@ -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: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any;
|
|
334
|
+
submit: (data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any;
|
|
335
335
|
"update:params": (params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any;
|
|
336
336
|
"update:value": (value: OrderItemBase<IConfiguratorParamsStrip, number>[], ...additionalParams: any[]) => any;
|
|
337
337
|
"click:add-line": (index: number) => any;
|
|
@@ -4511,7 +4511,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
4511
4511
|
isSubmitProcessing?: boolean;
|
|
4512
4512
|
validation: import('./interfaces').IStripValidation;
|
|
4513
4513
|
}> & Readonly<{
|
|
4514
|
-
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
|
|
4514
|
+
onSubmit?: ((data: OrderItemBase<IConfiguratorParamsStrip, number>[], validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined, additionalParams?: Record<string, unknown> | undefined) => any) | undefined;
|
|
4515
4515
|
"onUpdate:params"?: ((params: IConfiguratorParamsStrip, ...additionalParams: any[]) => any) | undefined;
|
|
4516
4516
|
"onUpdate:value"?: ((value: OrderItemBase<IConfiguratorParamsStrip, number>[], ...additionalParams: any[]) => any) | undefined;
|
|
4517
4517
|
"onClick:add-line"?: ((index: number) => any) | undefined;
|
|
@@ -2,13 +2,13 @@ import { IFormValidationResult } from '@snabcentr/common-lib';
|
|
|
2
2
|
/**
|
|
3
3
|
* Событие отправки данных конфигуратора.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Подтверждение данных формы.
|
|
7
|
+
*
|
|
8
|
+
* @param e Название события.
|
|
9
|
+
* @param data Данные формы.
|
|
10
|
+
* @param validation Результаты валидации.
|
|
11
|
+
* @param callback Функция обратного вызова для завершения обработки.
|
|
12
|
+
* @param additionalParams Дополнительные параметры.
|
|
13
|
+
*/
|
|
14
|
+
export type ISubmit<T> = (e: 'submit', data: T, validation?: IFormValidationResult, callback?: (...additionalParams: any[]) => void, additionalParams?: Record<string, unknown>) => void;
|
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.
|
|
7
|
+
"version": "4.4.2",
|
|
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.
|
|
48
|
+
"@snabcentr/common-lib": "^1.90.1 || ^2.7.0",
|
|
49
49
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
50
50
|
"date-fns": "^3.6.0",
|
|
51
51
|
"libphonenumber-js": "^1.12.23",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Перечисление всех реализованных конфигураторов.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ConfiguratorsEnum {
|
|
5
|
-
/**
|
|
6
|
-
* Конфигуратор козырьков.
|
|
7
|
-
*/
|
|
8
|
-
Kozyrek = "kozyrek",
|
|
9
|
-
/**
|
|
10
|
-
* Конфигуратор москитных сеток.
|
|
11
|
-
*/
|
|
12
|
-
Mosquitto = "mosquitto",
|
|
13
|
-
/**
|
|
14
|
-
* Конфигуратор резки штрипса.
|
|
15
|
-
*/
|
|
16
|
-
Strip = "strip",
|
|
17
|
-
/**
|
|
18
|
-
* Конфигуратор металла для дверей.
|
|
19
|
-
*/
|
|
20
|
-
MetalForDoors = "metal_for_doors",
|
|
21
|
-
/**
|
|
22
|
-
* Конфигуратор сэндвич-панелей.
|
|
23
|
-
*/
|
|
24
|
-
Sandwich = "sandwich"
|
|
25
|
-
}
|