@snabcentr/vue-ui-lib 3.5.13 → 3.5.17
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/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +4952 -4913
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +26 -26
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/catalog/dialogs/add-product-to-cart-dialog.vue.d.ts +146 -1
- package/dist/src/components/dialog/base-dialog.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CartItemBase, ICartItemBase, IProduct } from '@snabcentr/common-lib';
|
|
2
2
|
import { FormRules } from 'naive-ui';
|
|
3
|
-
import { Ref } from 'vue';
|
|
3
|
+
import { Ref, nextTick } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* Диалоговое окно добавления товара в корзину.
|
|
6
6
|
*/
|
|
@@ -24,6 +24,151 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
25
25
|
onSubmit?: ((data: CartItemBase<undefined>, validation?: import('@snabcentr/common-lib').IFormValidationResult | undefined, callback?: ((...additionalParams: any[]) => void) | undefined) => any) | undefined;
|
|
26
26
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
27
|
+
'base-dialog-reference': ({
|
|
28
|
+
$: import('vue').ComponentInternalInstance;
|
|
29
|
+
$data: {};
|
|
30
|
+
$props: {
|
|
31
|
+
readonly show: boolean;
|
|
32
|
+
readonly title: string;
|
|
33
|
+
readonly sizes?: {
|
|
34
|
+
phone: import('../..').IDialogSizeParams;
|
|
35
|
+
tablet: import('../..').IDialogSizeParams;
|
|
36
|
+
default: import('../..').IDialogSizeParams;
|
|
37
|
+
} | undefined;
|
|
38
|
+
readonly modalWidth?: number | undefined;
|
|
39
|
+
readonly processing?: boolean | undefined;
|
|
40
|
+
readonly valid?: boolean | undefined;
|
|
41
|
+
readonly acceptButton?: import('../..').IDialogButtonsParams | undefined;
|
|
42
|
+
readonly cancelButton?: import('../..').IDialogButtonsParams | undefined;
|
|
43
|
+
readonly trapFocus?: boolean | undefined;
|
|
44
|
+
readonly "onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
|
|
45
|
+
readonly onOpening?: (() => any) | undefined;
|
|
46
|
+
readonly onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
47
|
+
readonly "onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
48
|
+
readonly onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
|
|
49
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
50
|
+
$attrs: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
$refs: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
$slots: Readonly<{
|
|
57
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
60
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
61
|
+
$host: Element | null;
|
|
62
|
+
$emit: ((event: "update:show", isVisible: boolean) => void) & ((event: "opening") => void) & ((event: "accept", processingCallback: (processing: boolean) => void) => void) & ((event: "processing:cancel", processingCallback: (processing: boolean) => void) => void) & ((event: "closing", target: import('../..').CloseTarget, cancel: () => void) => void);
|
|
63
|
+
$el: any;
|
|
64
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
65
|
+
show: boolean;
|
|
66
|
+
title: string;
|
|
67
|
+
sizes?: {
|
|
68
|
+
phone: import('../..').IDialogSizeParams;
|
|
69
|
+
tablet: import('../..').IDialogSizeParams;
|
|
70
|
+
default: import('../..').IDialogSizeParams;
|
|
71
|
+
};
|
|
72
|
+
modalWidth?: number;
|
|
73
|
+
processing?: boolean;
|
|
74
|
+
valid?: boolean;
|
|
75
|
+
acceptButton?: import('../..').IDialogButtonsParams;
|
|
76
|
+
cancelButton?: import('../..').IDialogButtonsParams;
|
|
77
|
+
trapFocus?: boolean;
|
|
78
|
+
}> & Readonly<{
|
|
79
|
+
"onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
|
|
80
|
+
onOpening?: (() => any) | undefined;
|
|
81
|
+
onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
82
|
+
"onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
83
|
+
onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
open: () => void;
|
|
86
|
+
close: (target?: import('../..').CloseTarget) => void;
|
|
87
|
+
acceptHandler: () => void;
|
|
88
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
89
|
+
"update:show": (isVisible: boolean) => any;
|
|
90
|
+
opening: () => any;
|
|
91
|
+
accept: (processingCallback: (processing: boolean) => void) => any;
|
|
92
|
+
"processing:cancel": (processingCallback: (processing: boolean) => void) => any;
|
|
93
|
+
closing: (target: import('../..').CloseTarget, cancel: () => void) => any;
|
|
94
|
+
}, string, {
|
|
95
|
+
trapFocus: boolean;
|
|
96
|
+
modalWidth: number;
|
|
97
|
+
sizes: {
|
|
98
|
+
phone: import('../..').IDialogSizeParams;
|
|
99
|
+
tablet: import('../..').IDialogSizeParams;
|
|
100
|
+
default: import('../..').IDialogSizeParams;
|
|
101
|
+
};
|
|
102
|
+
processing: boolean;
|
|
103
|
+
valid: boolean;
|
|
104
|
+
acceptButton: import('../..').IDialogButtonsParams;
|
|
105
|
+
cancelButton: import('../..').IDialogButtonsParams;
|
|
106
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
107
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
108
|
+
created?: (() => void) | (() => void)[];
|
|
109
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
110
|
+
mounted?: (() => void) | (() => void)[];
|
|
111
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
112
|
+
updated?: (() => void) | (() => void)[];
|
|
113
|
+
activated?: (() => void) | (() => void)[];
|
|
114
|
+
deactivated?: (() => void) | (() => void)[];
|
|
115
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
116
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
117
|
+
destroyed?: (() => void) | (() => void)[];
|
|
118
|
+
unmounted?: (() => void) | (() => void)[];
|
|
119
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
120
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
121
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
122
|
+
};
|
|
123
|
+
$forceUpdate: () => void;
|
|
124
|
+
$nextTick: typeof nextTick;
|
|
125
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
126
|
+
} & Readonly<{
|
|
127
|
+
trapFocus: boolean;
|
|
128
|
+
modalWidth: number;
|
|
129
|
+
sizes: {
|
|
130
|
+
phone: import('../..').IDialogSizeParams;
|
|
131
|
+
tablet: import('../..').IDialogSizeParams;
|
|
132
|
+
default: import('../..').IDialogSizeParams;
|
|
133
|
+
};
|
|
134
|
+
processing: boolean;
|
|
135
|
+
valid: boolean;
|
|
136
|
+
acceptButton: import('../..').IDialogButtonsParams;
|
|
137
|
+
cancelButton: import('../..').IDialogButtonsParams;
|
|
138
|
+
}> & Omit<Readonly<{
|
|
139
|
+
show: boolean;
|
|
140
|
+
title: string;
|
|
141
|
+
sizes?: {
|
|
142
|
+
phone: import('../..').IDialogSizeParams;
|
|
143
|
+
tablet: import('../..').IDialogSizeParams;
|
|
144
|
+
default: import('../..').IDialogSizeParams;
|
|
145
|
+
};
|
|
146
|
+
modalWidth?: number;
|
|
147
|
+
processing?: boolean;
|
|
148
|
+
valid?: boolean;
|
|
149
|
+
acceptButton?: import('../..').IDialogButtonsParams;
|
|
150
|
+
cancelButton?: import('../..').IDialogButtonsParams;
|
|
151
|
+
trapFocus?: boolean;
|
|
152
|
+
}> & Readonly<{
|
|
153
|
+
"onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
|
|
154
|
+
onOpening?: (() => any) | undefined;
|
|
155
|
+
onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
156
|
+
"onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
|
|
157
|
+
onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
|
|
158
|
+
}>, "close" | "acceptHandler" | ("trapFocus" | "modalWidth" | "sizes" | "processing" | "valid" | "acceptButton" | "cancelButton") | "open"> & import('vue').ShallowUnwrapRef<{
|
|
159
|
+
open: () => void;
|
|
160
|
+
close: (target?: import('../..').CloseTarget) => void;
|
|
161
|
+
acceptHandler: () => void;
|
|
162
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
163
|
+
$slots: {
|
|
164
|
+
header?(_: {}): any;
|
|
165
|
+
'extra-action'?(_: {}): any;
|
|
166
|
+
action?(_: {
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
}): any;
|
|
169
|
+
default?(_: {}): any;
|
|
170
|
+
};
|
|
171
|
+
}) | null;
|
|
27
172
|
'form-reference': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
28
173
|
readonly inline: BooleanConstructor;
|
|
29
174
|
readonly labelWidth: import('vue').PropType<number | string>;
|
|
@@ -63,6 +63,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
63
63
|
* Закрывает модальное окно.
|
|
64
64
|
*/
|
|
65
65
|
close: (target?: CloseTarget) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Обработчик события нажатия на кнопку подтверждения.
|
|
68
|
+
*/
|
|
69
|
+
acceptHandler: () => void;
|
|
66
70
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
67
71
|
"update:show": (isVisible: boolean) => any;
|
|
68
72
|
opening: () => any;
|