@uzum-tech/ui 1.12.1 → 1.12.4
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/README.md +1 -1
- package/dist/index.js +727 -13414
- package/dist/index.prod.js +4 -4
- package/es/_internal/typography/src/text.d.ts +2 -2
- package/es/_utils/composable/composables.js +2 -1
- package/es/chat/index.d.ts +1 -1
- package/es/chat/src/ChatParts/ChatAttachment.d.ts +1 -1
- package/es/chat/src/ChatParts/ChatAttachment.js +4 -4
- package/es/chat/src/ChatParts/MainArea.js +11 -1
- package/es/chat/src/interface.d.ts +9 -1
- package/es/chat/src/interface.js +7 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/header/src/Header.d.ts +3 -1
- package/es/header/src/Header.js +16 -4
- package/es/header/src/HeaderNavigation.d.ts +1601 -4
- package/es/header/src/HeaderNavigation.js +191 -31
- package/es/header/src/styles/index.cssr.js +47 -10
- package/es/locales/index.d.ts +0 -48
- package/es/locales/index.js +0 -48
- package/es/menu/src/utils.js +3 -1
- package/es/message/src/use-message.js +1 -1
- package/es/slider/src/Slider.js +0 -1
- package/es/tabs/src/Tabs.js +2 -2
- package/es/typography/src/text.d.ts +2 -2
- package/es/upload/src/interface.d.ts +3 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/typography/src/text.d.ts +2 -2
- package/lib/_utils/composable/composables.js +2 -1
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/src/ChatParts/ChatAttachment.d.ts +1 -1
- package/lib/chat/src/ChatParts/ChatAttachment.js +3 -3
- package/lib/chat/src/ChatParts/MainArea.js +11 -1
- package/lib/chat/src/interface.d.ts +9 -1
- package/lib/chat/src/interface.js +8 -1
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/header/src/Header.d.ts +3 -1
- package/lib/header/src/Header.js +16 -4
- package/lib/header/src/HeaderNavigation.d.ts +1601 -4
- package/lib/header/src/HeaderNavigation.js +189 -29
- package/lib/header/src/styles/index.cssr.js +47 -10
- package/lib/locales/index.d.ts +0 -48
- package/lib/locales/index.js +1 -98
- package/lib/menu/src/utils.js +3 -1
- package/lib/message/src/use-message.js +1 -1
- package/lib/slider/src/Slider.js +0 -1
- package/lib/tabs/src/Tabs.js +2 -2
- package/lib/typography/src/text.d.ts +2 -2
- package/lib/upload/src/interface.d.ts +3 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +2752 -2752
- package/es/locales/common/arDZ.d.ts +0 -3
- package/es/locales/common/arDZ.js +0 -147
- package/es/locales/common/deDE.d.ts +0 -3
- package/es/locales/common/deDE.js +0 -147
- package/es/locales/common/enGB.d.ts +0 -3
- package/es/locales/common/enGB.js +0 -148
- package/es/locales/common/eo.d.ts +0 -3
- package/es/locales/common/eo.js +0 -149
- package/es/locales/common/esAR.d.ts +0 -3
- package/es/locales/common/esAR.js +0 -151
- package/es/locales/common/faIR.d.ts +0 -3
- package/es/locales/common/faIR.js +0 -147
- package/es/locales/common/frFR.d.ts +0 -3
- package/es/locales/common/frFR.js +0 -147
- package/es/locales/common/idID.d.ts +0 -3
- package/es/locales/common/idID.js +0 -151
- package/es/locales/common/itIT.d.ts +0 -3
- package/es/locales/common/itIT.js +0 -150
- package/es/locales/common/jaJP.d.ts +0 -3
- package/es/locales/common/jaJP.js +0 -150
- package/es/locales/common/koKR.d.ts +0 -3
- package/es/locales/common/koKR.js +0 -150
- package/es/locales/common/nbNO.d.ts +0 -3
- package/es/locales/common/nbNO.js +0 -151
- package/es/locales/common/nlNL.d.ts +0 -3
- package/es/locales/common/nlNL.js +0 -149
- package/es/locales/common/plPL.d.ts +0 -3
- package/es/locales/common/plPL.js +0 -150
- package/es/locales/common/ptBR.d.ts +0 -3
- package/es/locales/common/ptBR.js +0 -147
- package/es/locales/common/ruRU.d.ts +0 -3
- package/es/locales/common/ruRU.js +0 -152
- package/es/locales/common/skSK.d.ts +0 -3
- package/es/locales/common/skSK.js +0 -151
- package/es/locales/common/svSE.d.ts +0 -3
- package/es/locales/common/svSE.js +0 -147
- package/es/locales/common/thTH.d.ts +0 -3
- package/es/locales/common/thTH.js +0 -151
- package/es/locales/common/trTR.d.ts +0 -3
- package/es/locales/common/trTR.js +0 -148
- package/es/locales/common/ukUA.d.ts +0 -3
- package/es/locales/common/ukUA.js +0 -148
- package/es/locales/common/viVN.d.ts +0 -3
- package/es/locales/common/viVN.js +0 -147
- package/es/locales/common/zhCN.d.ts +0 -3
- package/es/locales/common/zhCN.js +0 -147
- package/es/locales/common/zhTW.d.ts +0 -3
- package/es/locales/common/zhTW.js +0 -147
- package/es/locales/date/arDZ.d.ts +0 -3
- package/es/locales/date/arDZ.js +0 -6
- package/es/locales/date/deDE.d.ts +0 -3
- package/es/locales/date/deDE.js +0 -6
- package/es/locales/date/enGB.d.ts +0 -3
- package/es/locales/date/enGB.js +0 -6
- package/es/locales/date/eo.d.ts +0 -3
- package/es/locales/date/eo.js +0 -6
- package/es/locales/date/esAR.d.ts +0 -3
- package/es/locales/date/esAR.js +0 -6
- package/es/locales/date/faIR.d.ts +0 -3
- package/es/locales/date/faIR.js +0 -6
- package/es/locales/date/frFR.d.ts +0 -3
- package/es/locales/date/frFR.js +0 -6
- package/es/locales/date/idID.d.ts +0 -3
- package/es/locales/date/idID.js +0 -6
- package/es/locales/date/itIT.d.ts +0 -3
- package/es/locales/date/itIT.js +0 -6
- package/es/locales/date/jaJP.d.ts +0 -3
- package/es/locales/date/jaJP.js +0 -6
- package/es/locales/date/koKR.d.ts +0 -3
- package/es/locales/date/koKR.js +0 -6
- package/es/locales/date/nbNO.d.ts +0 -3
- package/es/locales/date/nbNO.js +0 -6
- package/es/locales/date/nlNL.d.ts +0 -3
- package/es/locales/date/nlNL.js +0 -6
- package/es/locales/date/plPL.d.ts +0 -3
- package/es/locales/date/plPL.js +0 -6
- package/es/locales/date/ptBR.d.ts +0 -3
- package/es/locales/date/ptBR.js +0 -6
- package/es/locales/date/ruRU.d.ts +0 -3
- package/es/locales/date/ruRU.js +0 -6
- package/es/locales/date/skSK.d.ts +0 -3
- package/es/locales/date/skSK.js +0 -6
- package/es/locales/date/svSE.d.ts +0 -3
- package/es/locales/date/svSE.js +0 -6
- package/es/locales/date/thTH.d.ts +0 -3
- package/es/locales/date/thTH.js +0 -6
- package/es/locales/date/trTR.d.ts +0 -3
- package/es/locales/date/trTR.js +0 -6
- package/es/locales/date/ukUA.d.ts +0 -3
- package/es/locales/date/ukUA.js +0 -6
- package/es/locales/date/viVN.d.ts +0 -3
- package/es/locales/date/viVN.js +0 -6
- package/es/locales/date/zhCN.d.ts +0 -3
- package/es/locales/date/zhCN.js +0 -6
- package/es/locales/date/zhTW.d.ts +0 -3
- package/es/locales/date/zhTW.js +0 -6
- package/lib/locales/common/arDZ.d.ts +0 -3
- package/lib/locales/common/arDZ.js +0 -149
- package/lib/locales/common/deDE.d.ts +0 -3
- package/lib/locales/common/deDE.js +0 -149
- package/lib/locales/common/enGB.d.ts +0 -3
- package/lib/locales/common/enGB.js +0 -150
- package/lib/locales/common/eo.d.ts +0 -3
- package/lib/locales/common/eo.js +0 -151
- package/lib/locales/common/esAR.d.ts +0 -3
- package/lib/locales/common/esAR.js +0 -153
- package/lib/locales/common/faIR.d.ts +0 -3
- package/lib/locales/common/faIR.js +0 -149
- package/lib/locales/common/frFR.d.ts +0 -3
- package/lib/locales/common/frFR.js +0 -149
- package/lib/locales/common/idID.d.ts +0 -3
- package/lib/locales/common/idID.js +0 -153
- package/lib/locales/common/itIT.d.ts +0 -3
- package/lib/locales/common/itIT.js +0 -152
- package/lib/locales/common/jaJP.d.ts +0 -3
- package/lib/locales/common/jaJP.js +0 -152
- package/lib/locales/common/koKR.d.ts +0 -3
- package/lib/locales/common/koKR.js +0 -152
- package/lib/locales/common/nbNO.d.ts +0 -3
- package/lib/locales/common/nbNO.js +0 -153
- package/lib/locales/common/nlNL.d.ts +0 -3
- package/lib/locales/common/nlNL.js +0 -151
- package/lib/locales/common/plPL.d.ts +0 -3
- package/lib/locales/common/plPL.js +0 -152
- package/lib/locales/common/ptBR.d.ts +0 -3
- package/lib/locales/common/ptBR.js +0 -149
- package/lib/locales/common/ruRU.d.ts +0 -3
- package/lib/locales/common/ruRU.js +0 -154
- package/lib/locales/common/skSK.d.ts +0 -3
- package/lib/locales/common/skSK.js +0 -153
- package/lib/locales/common/svSE.d.ts +0 -3
- package/lib/locales/common/svSE.js +0 -149
- package/lib/locales/common/thTH.d.ts +0 -3
- package/lib/locales/common/thTH.js +0 -153
- package/lib/locales/common/trTR.d.ts +0 -3
- package/lib/locales/common/trTR.js +0 -150
- package/lib/locales/common/ukUA.d.ts +0 -3
- package/lib/locales/common/ukUA.js +0 -150
- package/lib/locales/common/viVN.d.ts +0 -3
- package/lib/locales/common/viVN.js +0 -149
- package/lib/locales/common/zhCN.d.ts +0 -3
- package/lib/locales/common/zhCN.js +0 -149
- package/lib/locales/common/zhTW.d.ts +0 -3
- package/lib/locales/common/zhTW.js +0 -149
- package/lib/locales/date/arDZ.d.ts +0 -3
- package/lib/locales/date/arDZ.js +0 -11
- package/lib/locales/date/deDE.d.ts +0 -3
- package/lib/locales/date/deDE.js +0 -11
- package/lib/locales/date/enGB.d.ts +0 -3
- package/lib/locales/date/enGB.js +0 -11
- package/lib/locales/date/eo.d.ts +0 -3
- package/lib/locales/date/eo.js +0 -11
- package/lib/locales/date/esAR.d.ts +0 -3
- package/lib/locales/date/esAR.js +0 -11
- package/lib/locales/date/faIR.d.ts +0 -3
- package/lib/locales/date/faIR.js +0 -11
- package/lib/locales/date/frFR.d.ts +0 -3
- package/lib/locales/date/frFR.js +0 -11
- package/lib/locales/date/idID.d.ts +0 -3
- package/lib/locales/date/idID.js +0 -11
- package/lib/locales/date/itIT.d.ts +0 -3
- package/lib/locales/date/itIT.js +0 -11
- package/lib/locales/date/jaJP.d.ts +0 -3
- package/lib/locales/date/jaJP.js +0 -11
- package/lib/locales/date/koKR.d.ts +0 -3
- package/lib/locales/date/koKR.js +0 -11
- package/lib/locales/date/nbNO.d.ts +0 -3
- package/lib/locales/date/nbNO.js +0 -11
- package/lib/locales/date/nlNL.d.ts +0 -3
- package/lib/locales/date/nlNL.js +0 -11
- package/lib/locales/date/plPL.d.ts +0 -3
- package/lib/locales/date/plPL.js +0 -11
- package/lib/locales/date/ptBR.d.ts +0 -3
- package/lib/locales/date/ptBR.js +0 -11
- package/lib/locales/date/ruRU.d.ts +0 -3
- package/lib/locales/date/ruRU.js +0 -11
- package/lib/locales/date/skSK.d.ts +0 -3
- package/lib/locales/date/skSK.js +0 -11
- package/lib/locales/date/svSE.d.ts +0 -3
- package/lib/locales/date/svSE.js +0 -11
- package/lib/locales/date/thTH.d.ts +0 -3
- package/lib/locales/date/thTH.js +0 -11
- package/lib/locales/date/trTR.d.ts +0 -3
- package/lib/locales/date/trTR.js +0 -11
- package/lib/locales/date/ukUA.d.ts +0 -3
- package/lib/locales/date/ukUA.js +0 -11
- package/lib/locales/date/viVN.d.ts +0 -3
- package/lib/locales/date/viVN.js +0 -11
- package/lib/locales/date/zhCN.d.ts +0 -3
- package/lib/locales/date/zhCN.js +0 -11
- package/lib/locales/date/zhTW.d.ts +0 -3
- package/lib/locales/date/zhTW.js +0 -11
|
@@ -360,6 +360,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
360
360
|
}))();
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
+
const handleOnChange = () => {
|
|
364
|
+
var _a;
|
|
365
|
+
const outerOnChange = (_a = footerUploadPropsRef.value) === null || _a === void 0 ? void 0 : _a.onChange;
|
|
366
|
+
if (outerOnChange) {
|
|
367
|
+
return (data) => {
|
|
368
|
+
outerOnChange(data);
|
|
369
|
+
attachmentFileList.value = [];
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
};
|
|
363
373
|
const renderEditingBlock = () => {
|
|
364
374
|
if (!(editMessageIdRef === null || editMessageIdRef === void 0 ? void 0 : editMessageIdRef.value) || !editingMessage.value)
|
|
365
375
|
return null;
|
|
@@ -379,7 +389,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
379
389
|
};
|
|
380
390
|
const renderFooter = () => {
|
|
381
391
|
return ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-chat-main__footer` },
|
|
382
|
-
(0, vue_1.h)(upload_1.UUpload, Object.assign({ abstract: true, multiple: true, defaultUpload: false, fileList: attachmentFileList.value, onUpdateFileList: handleFileListUpdate }, footerUploadPropsRef.value), {
|
|
392
|
+
(0, vue_1.h)(upload_1.UUpload, Object.assign({ abstract: true, multiple: true, defaultUpload: false, fileList: attachmentFileList.value, onUpdateFileList: handleFileListUpdate }, footerUploadPropsRef.value, { onChange: handleOnChange() }), {
|
|
383
393
|
default: () => ((0, vue_1.h)(flex_1.UFlex, { align: "end", size: "small", wrap: false, class: `${mergedClsPrefixRef.value}-chat-main__input-container` }, {
|
|
384
394
|
default: () => ((0, vue_1.h)(vue_1.Fragment, null,
|
|
385
395
|
(0, vue_1.h)(upload_1.UUploadTrigger, { abstract: true }, {
|
|
@@ -8,6 +8,7 @@ import { EmptyProps } from '../../empty';
|
|
|
8
8
|
import { InputProps } from '../../input';
|
|
9
9
|
import type { ChatTheme } from '../styles';
|
|
10
10
|
import type { MergedTheme } from '../../_mixins';
|
|
11
|
+
import { OnChangePayload } from '../../upload/src/interface';
|
|
11
12
|
export declare enum MessageStatus {
|
|
12
13
|
READ = "read",
|
|
13
14
|
UNREAD = "unread",
|
|
@@ -20,6 +21,12 @@ export declare enum ChatMessageType {
|
|
|
20
21
|
FILE = "file",
|
|
21
22
|
MARK = "mark"
|
|
22
23
|
}
|
|
24
|
+
export declare enum ChatAttachmentStatus {
|
|
25
|
+
PENDING = "pending",
|
|
26
|
+
UPLOADING = "uploading",
|
|
27
|
+
FINISHED = "finished",
|
|
28
|
+
ERROR = "error"
|
|
29
|
+
}
|
|
23
30
|
export declare enum ChatMarkType {
|
|
24
31
|
SYSTEM = "system",
|
|
25
32
|
EVENT = "event",
|
|
@@ -120,7 +127,7 @@ export interface ChatAttachment {
|
|
|
120
127
|
size?: number | string;
|
|
121
128
|
thumbnail?: string | (() => VNodeChild);
|
|
122
129
|
preview?: string | (() => VNodeChild);
|
|
123
|
-
status?:
|
|
130
|
+
status?: ChatAttachmentStatus;
|
|
124
131
|
percentage?: number;
|
|
125
132
|
uploadProps?: Partial<UploadProps>;
|
|
126
133
|
}
|
|
@@ -346,3 +353,4 @@ export declare const chatInjectionKey: InjectionKey<{
|
|
|
346
353
|
headerShareIconPropsRef: Ref<Partial<IconProps> | undefined>;
|
|
347
354
|
headerProfileIconPropsRef: Ref<Partial<IconProps> | undefined>;
|
|
348
355
|
}>;
|
|
356
|
+
export type HandleOnChangeType = ((data: OnChangePayload) => void) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chatInjectionKey = exports.ChatBubbleActionKey = exports.ChatMarkType = exports.ChatMessageType = exports.MessageStatus = void 0;
|
|
3
|
+
exports.chatInjectionKey = exports.ChatBubbleActionKey = exports.ChatMarkType = exports.ChatAttachmentStatus = exports.ChatMessageType = exports.MessageStatus = void 0;
|
|
4
4
|
const _utils_1 = require("../../_utils");
|
|
5
5
|
var MessageStatus;
|
|
6
6
|
(function (MessageStatus) {
|
|
@@ -16,6 +16,13 @@ var ChatMessageType;
|
|
|
16
16
|
ChatMessageType["FILE"] = "file";
|
|
17
17
|
ChatMessageType["MARK"] = "mark";
|
|
18
18
|
})(ChatMessageType || (exports.ChatMessageType = ChatMessageType = {}));
|
|
19
|
+
var ChatAttachmentStatus;
|
|
20
|
+
(function (ChatAttachmentStatus) {
|
|
21
|
+
ChatAttachmentStatus["PENDING"] = "pending";
|
|
22
|
+
ChatAttachmentStatus["UPLOADING"] = "uploading";
|
|
23
|
+
ChatAttachmentStatus["FINISHED"] = "finished";
|
|
24
|
+
ChatAttachmentStatus["ERROR"] = "error";
|
|
25
|
+
})(ChatAttachmentStatus || (exports.ChatAttachmentStatus = ChatAttachmentStatus = {}));
|
|
19
26
|
var ChatMarkType;
|
|
20
27
|
(function (ChatMarkType) {
|
|
21
28
|
ChatMarkType["SYSTEM"] = "system";
|
|
@@ -180,6 +180,7 @@ import type { UploadProps } from '../../upload';
|
|
|
180
180
|
import type { WatermarkProps } from '../../watermark';
|
|
181
181
|
import type { ChatProps } from '../../chat';
|
|
182
182
|
import type { ScrollbarProps } from '../../scrollbar';
|
|
183
|
+
import type { TextProps } from '../../typography';
|
|
183
184
|
import { SelectSize } from '../../_internal/selection';
|
|
184
185
|
import { IconPlacement } from '../../dialog/src/interface';
|
|
185
186
|
import { ModalFullscreenTheme } from '../../modal-fullscreen/styles';
|
|
@@ -383,6 +384,7 @@ export interface GlobalComponentConfig {
|
|
|
383
384
|
Flex?: FlexProps;
|
|
384
385
|
CardList?: CardListProps;
|
|
385
386
|
Chat?: ChatProps;
|
|
387
|
+
Text?: TextProps;
|
|
386
388
|
InputOtp?: InputOtpProps;
|
|
387
389
|
}
|
|
388
390
|
export interface GlobalIconConfig {
|
|
@@ -399,6 +399,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
399
399
|
handleSearchResultSelect: (result: HeaderSearchResult) => void;
|
|
400
400
|
handlePreviewClick: () => void;
|
|
401
401
|
handleLogoutClick: () => void;
|
|
402
|
+
handleLogoClick: () => void;
|
|
402
403
|
toggleMobileMenu: () => void;
|
|
403
404
|
closeMobileMenu: () => void;
|
|
404
405
|
handleMobileMenuItemClick: (option: HeaderMenuOption) => void;
|
|
@@ -407,7 +408,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
407
408
|
menuPaneClass: ComputedRef<string>;
|
|
408
409
|
menuPaneWrapperClass: ComputedRef<string>;
|
|
409
410
|
onRender: () => void;
|
|
410
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ["search", "search-result-select", "preview", "logout", "language-select", "mobile-primary-action", "mobile-secondary-action"], "search" | "logout" | "preview" | "search-result-select" | "language-select" | "mobile-primary-action" | "mobile-secondary-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
411
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ["search", "search-result-select", "preview", "logout", "language-select", "logo-click", "mobile-primary-action", "mobile-secondary-action"], "search" | "logout" | "preview" | "search-result-select" | "language-select" | "logo-click" | "mobile-primary-action" | "mobile-secondary-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
411
412
|
menuOptions: {
|
|
412
413
|
type: PropType<HeaderPropsInterface["menuOptions"]>;
|
|
413
414
|
default: () => never[];
|
|
@@ -582,6 +583,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
583
|
onLogout?: ((...args: any[]) => any) | undefined;
|
|
583
584
|
"onSearch-result-select"?: ((...args: any[]) => any) | undefined;
|
|
584
585
|
"onLanguage-select"?: ((...args: any[]) => any) | undefined;
|
|
586
|
+
"onLogo-click"?: ((...args: any[]) => any) | undefined;
|
|
585
587
|
"onMobile-primary-action"?: ((...args: any[]) => any) | undefined;
|
|
586
588
|
"onMobile-secondary-action"?: ((...args: any[]) => any) | undefined;
|
|
587
589
|
}, {
|
package/lib/header/src/Header.js
CHANGED
|
@@ -124,6 +124,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
124
124
|
'preview',
|
|
125
125
|
'logout',
|
|
126
126
|
'language-select',
|
|
127
|
+
'logo-click',
|
|
127
128
|
'mobile-primary-action',
|
|
128
129
|
'mobile-secondary-action'
|
|
129
130
|
],
|
|
@@ -222,9 +223,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
222
223
|
(0, _utils_1.call)(_onUpdateMenuValue, value);
|
|
223
224
|
}
|
|
224
225
|
function handleMenuValueUpdate(value) {
|
|
225
|
-
|
|
226
|
-
doUpdateMenuValue(value);
|
|
227
|
-
}
|
|
226
|
+
doUpdateMenuValue(value);
|
|
228
227
|
}
|
|
229
228
|
function handleSearchClick() {
|
|
230
229
|
searchVisibleRef.value = true;
|
|
@@ -261,6 +260,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
261
260
|
if (option.key !== undefined) {
|
|
262
261
|
doUpdateMenuValue(option.key);
|
|
263
262
|
}
|
|
263
|
+
if (option.onClick) {
|
|
264
|
+
option.onClick();
|
|
265
|
+
}
|
|
264
266
|
closeMobileMenu();
|
|
265
267
|
}
|
|
266
268
|
function handleMobilePrimaryAction() {
|
|
@@ -269,6 +271,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
269
271
|
function handleMobileSecondaryAction() {
|
|
270
272
|
emit('mobile-secondary-action');
|
|
271
273
|
}
|
|
274
|
+
function handleLogoClick() {
|
|
275
|
+
emit('logo-click');
|
|
276
|
+
}
|
|
272
277
|
return {
|
|
273
278
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
274
279
|
cssVars: cssVarsRef,
|
|
@@ -287,6 +292,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
287
292
|
handleSearchResultSelect,
|
|
288
293
|
handlePreviewClick,
|
|
289
294
|
handleLogoutClick,
|
|
295
|
+
handleLogoClick,
|
|
290
296
|
toggleMobileMenu,
|
|
291
297
|
closeMobileMenu,
|
|
292
298
|
handleMobileMenuItemClick,
|
|
@@ -302,7 +308,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
302
308
|
const { mergedClsPrefix, $slots } = this;
|
|
303
309
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
304
310
|
const blockClass = `${mergedClsPrefix}-header`;
|
|
305
|
-
const logoNode = (0, _utils_1.resolveWrappedSlot)($slots.logo, (children) => children ? (
|
|
311
|
+
const logoNode = (0, _utils_1.resolveWrappedSlot)($slots.logo, (children) => children ? ((0, vue_1.h)("div", { class: [
|
|
312
|
+
`${blockClass}__logo`,
|
|
313
|
+
this.logoSrc && `${blockClass}__logo--clickable`
|
|
314
|
+
].filter(Boolean), onClick: this.handleLogoClick }, children)) : null) || ((0, vue_1.h)("div", { class: [
|
|
315
|
+
`${blockClass}__logo`,
|
|
316
|
+
this.logoSrc && `${blockClass}__logo--clickable`
|
|
317
|
+
].filter(Boolean), onClick: this.handleLogoClick },
|
|
306
318
|
(0, vue_1.h)("img", { src: this.logoSrc, alt: this.logoAlt })));
|
|
307
319
|
const navigationNode = (0, _utils_1.resolveWrappedSlot)($slots.navigation, (children) => children !== null && children !== void 0 ? children : null) || ((0, vue_1.h)(HeaderNavigation_1.default, { menuOptions: this.menuOptions, menuPlacement: this.menuPlacement, menuTrigger: this.menuTrigger, menuValue: this.mergedMenuValue, menuTabsProps: this.menuTabsProps, menuCardMinColumnWidth: this.menuCardMinColumnWidth, mergedClsPrefix: mergedClsPrefix, menuPaneClass: this.menuPaneClass, menuPaneWrapperClass: this.menuPaneWrapperClass, onUpdateMenuValue: this.handleMenuValueUpdate }));
|
|
308
320
|
const mobileNode = this.responsive && this.isMobile ? ((0, vue_1.h)(HeaderMobile_1.default, { visible: this.mobileMenuVisible, menuOptions: this.normalizedMenuItems, activeMenuValue: this.mergedMenuValue, langOptions: this.langOptions || defaultLangOptions, currentLang: this.currentLang, mergedClsPrefix: mergedClsPrefix, cssVars: this.cssVars, menuType: this.mobileMenuType, showFooterActions: this.mobileShowFooterActions, showHeaderActions: this.mobileShowHeaderActions, primaryActionText: this.mobilePrimaryActionText, secondaryActionText: this.mobileSecondaryActionText, onToggle: this.toggleMobileMenu, onClose: this.closeMobileMenu, onMenuItemClick: this.handleMobileMenuItemClick, onLanguageSelect: this.handleSelectLang, onPrimaryAction: this.handleMobilePrimaryAction, onSecondaryAction: this.handleMobileSecondaryAction, onSearchClick: this.handleSearchClick, onPreview: this.handlePreviewClick, onLogout: this.handleLogoutClick }, {
|