@uzum-tech/ui 1.12.15 → 1.12.16
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/index.js +12 -2
- package/dist/index.prod.js +2 -2
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/header/src/Header.d.ts +1 -1
- package/es/header/src/Header.js +1 -1
- package/es/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/es/modal/src/Modal.js +15 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/header/src/Header.d.ts +1 -1
- package/lib/header/src/Header.js +1 -1
- package/lib/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/lib/modal/src/Modal.js +14 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -188,6 +188,7 @@ import { CropTheme } from '../../crop/styles';
|
|
|
188
188
|
import { SafeTopScrollbarTheme } from '../../_internal/safe-top-scrollbar/styles';
|
|
189
189
|
import { HeaderTheme } from '../../header/styles';
|
|
190
190
|
import { QrCodeTheme } from '../../qr-code/styles';
|
|
191
|
+
import { HeaderProps } from '../../header';
|
|
191
192
|
export interface GlobalThemeWithoutCommon {
|
|
192
193
|
Alert?: AlertTheme;
|
|
193
194
|
Anchor?: AnchorTheme;
|
|
@@ -385,6 +386,7 @@ export interface GlobalComponentConfig {
|
|
|
385
386
|
CardList?: CardListProps;
|
|
386
387
|
Chat?: ChatProps;
|
|
387
388
|
Text?: TextProps;
|
|
389
|
+
Header?: HeaderProps;
|
|
388
390
|
InputOtp?: InputOtpProps;
|
|
389
391
|
}
|
|
390
392
|
export interface GlobalIconConfig {
|
|
@@ -396,7 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
396
396
|
key: string | number;
|
|
397
397
|
icon?: (() => import("vue").VNodeChild) | undefined;
|
|
398
398
|
}>;
|
|
399
|
-
isMobile: boolean | undefined
|
|
399
|
+
isMobile: import("vue").Ref<boolean | undefined>;
|
|
400
400
|
mobileMenuVisible: import("vue").Ref<boolean>;
|
|
401
401
|
searchVisible: import("vue").Ref<boolean>;
|
|
402
402
|
handleSelectLang: (key: string | number) => void;
|
package/es/header/src/Header.js
CHANGED
|
@@ -105,7 +105,7 @@ export default defineComponent({
|
|
|
105
105
|
var _a, _b, _c;
|
|
106
106
|
const { mergedClsPrefixRef } = useConfig(props);
|
|
107
107
|
const themeRef = useTheme('Header', '-header', style, headerLight, props, mergedClsPrefixRef);
|
|
108
|
-
const isMobileRef = props
|
|
108
|
+
const isMobileRef = toRef(props, 'isMobile');
|
|
109
109
|
const mobileMenuVisibleRef = ref(false);
|
|
110
110
|
const searchVisibleRef = ref(false);
|
|
111
111
|
onBeforeMount(() => {
|
|
@@ -207,8 +207,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
207
207
|
}>>, {
|
|
208
208
|
readonly primaryActionText: string;
|
|
209
209
|
readonly secondaryActionText: string;
|
|
210
|
-
readonly visible: boolean;
|
|
211
210
|
readonly menuOptions: NormalizedMenuItem[];
|
|
211
|
+
readonly visible: boolean;
|
|
212
212
|
readonly menuType: "drawer" | "dropdown";
|
|
213
213
|
readonly drawerPlacement: "left" | "right";
|
|
214
214
|
readonly drawerWidth: string;
|
package/es/modal/src/Modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, withDirectives, Transition, ref, computed, defineComponent, provide, toRef, inject } from 'vue';
|
|
1
|
+
import { h, withDirectives, Transition, ref, computed, defineComponent, provide, toRef, inject, nextTick } from 'vue';
|
|
2
2
|
import { zindexable } from 'vdirs';
|
|
3
3
|
import { useIsMounted, useClicked, useClickPosition } from 'vooks';
|
|
4
4
|
import { VLazyTeleport } from 'vueuc';
|
|
@@ -124,6 +124,13 @@ export default defineComponent({
|
|
|
124
124
|
const { onBeforeLeave, onBeforeHide } = props;
|
|
125
125
|
if (onBeforeLeave)
|
|
126
126
|
call(onBeforeLeave);
|
|
127
|
+
void nextTick(() => {
|
|
128
|
+
if (document.activeElement &&
|
|
129
|
+
document.activeElement !== document.body) {
|
|
130
|
+
;
|
|
131
|
+
document.activeElement.blur();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
127
134
|
// deprecated
|
|
128
135
|
if (onBeforeHide)
|
|
129
136
|
onBeforeHide();
|
|
@@ -132,6 +139,13 @@ export default defineComponent({
|
|
|
132
139
|
const { onAfterLeave, onAfterHide } = props;
|
|
133
140
|
if (onAfterLeave)
|
|
134
141
|
call(onAfterLeave);
|
|
142
|
+
void nextTick(() => {
|
|
143
|
+
if (document.activeElement &&
|
|
144
|
+
document.activeElement !== document.body) {
|
|
145
|
+
;
|
|
146
|
+
document.activeElement.blur();
|
|
147
|
+
}
|
|
148
|
+
});
|
|
135
149
|
// deprecated
|
|
136
150
|
if (onAfterHide)
|
|
137
151
|
onAfterHide();
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.12.
|
|
1
|
+
declare const _default: "1.12.16";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.12.
|
|
1
|
+
export default '1.12.16';
|
|
@@ -188,6 +188,7 @@ import { CropTheme } from '../../crop/styles';
|
|
|
188
188
|
import { SafeTopScrollbarTheme } from '../../_internal/safe-top-scrollbar/styles';
|
|
189
189
|
import { HeaderTheme } from '../../header/styles';
|
|
190
190
|
import { QrCodeTheme } from '../../qr-code/styles';
|
|
191
|
+
import { HeaderProps } from '../../header';
|
|
191
192
|
export interface GlobalThemeWithoutCommon {
|
|
192
193
|
Alert?: AlertTheme;
|
|
193
194
|
Anchor?: AnchorTheme;
|
|
@@ -385,6 +386,7 @@ export interface GlobalComponentConfig {
|
|
|
385
386
|
CardList?: CardListProps;
|
|
386
387
|
Chat?: ChatProps;
|
|
387
388
|
Text?: TextProps;
|
|
389
|
+
Header?: HeaderProps;
|
|
388
390
|
InputOtp?: InputOtpProps;
|
|
389
391
|
}
|
|
390
392
|
export interface GlobalIconConfig {
|
|
@@ -396,7 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
396
396
|
key: string | number;
|
|
397
397
|
icon?: (() => import("vue").VNodeChild) | undefined;
|
|
398
398
|
}>;
|
|
399
|
-
isMobile: boolean | undefined
|
|
399
|
+
isMobile: import("vue").Ref<boolean | undefined>;
|
|
400
400
|
mobileMenuVisible: import("vue").Ref<boolean>;
|
|
401
401
|
searchVisible: import("vue").Ref<boolean>;
|
|
402
402
|
handleSelectLang: (key: string | number) => void;
|
package/lib/header/src/Header.js
CHANGED
|
@@ -134,7 +134,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
134
134
|
var _a, _b, _c;
|
|
135
135
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
136
136
|
const themeRef = (0, _mixins_1.useTheme)('Header', '-header', index_cssr_1.default, styles_1.headerLight, props, mergedClsPrefixRef);
|
|
137
|
-
const isMobileRef = props
|
|
137
|
+
const isMobileRef = (0, vue_1.toRef)(props, 'isMobile');
|
|
138
138
|
const mobileMenuVisibleRef = (0, vue_1.ref)(false);
|
|
139
139
|
const searchVisibleRef = (0, vue_1.ref)(false);
|
|
140
140
|
(0, vue_1.onBeforeMount)(() => {
|
|
@@ -207,8 +207,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
207
207
|
}>>, {
|
|
208
208
|
readonly primaryActionText: string;
|
|
209
209
|
readonly secondaryActionText: string;
|
|
210
|
-
readonly visible: boolean;
|
|
211
210
|
readonly menuOptions: NormalizedMenuItem[];
|
|
211
|
+
readonly visible: boolean;
|
|
212
212
|
readonly menuType: "drawer" | "dropdown";
|
|
213
213
|
readonly drawerPlacement: "left" | "right";
|
|
214
214
|
readonly drawerWidth: string;
|
package/lib/modal/src/Modal.js
CHANGED
|
@@ -130,6 +130,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
130
130
|
const { onBeforeLeave, onBeforeHide } = props;
|
|
131
131
|
if (onBeforeLeave)
|
|
132
132
|
(0, _utils_1.call)(onBeforeLeave);
|
|
133
|
+
void (0, vue_1.nextTick)(() => {
|
|
134
|
+
if (document.activeElement &&
|
|
135
|
+
document.activeElement !== document.body) {
|
|
136
|
+
;
|
|
137
|
+
document.activeElement.blur();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
133
140
|
// deprecated
|
|
134
141
|
if (onBeforeHide)
|
|
135
142
|
onBeforeHide();
|
|
@@ -138,6 +145,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
138
145
|
const { onAfterLeave, onAfterHide } = props;
|
|
139
146
|
if (onAfterLeave)
|
|
140
147
|
(0, _utils_1.call)(onAfterLeave);
|
|
148
|
+
void (0, vue_1.nextTick)(() => {
|
|
149
|
+
if (document.activeElement &&
|
|
150
|
+
document.activeElement !== document.body) {
|
|
151
|
+
;
|
|
152
|
+
document.activeElement.blur();
|
|
153
|
+
}
|
|
154
|
+
});
|
|
141
155
|
// deprecated
|
|
142
156
|
if (onAfterHide)
|
|
143
157
|
onAfterHide();
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.12.
|
|
1
|
+
declare const _default: "1.12.16";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/web-types.json
CHANGED