@uzum-tech/ui 1.11.2 → 1.12.0
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 +10829 -6652
- package/dist/index.prod.js +4 -4
- package/es/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/es/_internal/icons/BurgerMenuIcon.js +4 -0
- package/es/_internal/icons/Logout.d.ts +2 -0
- package/es/_internal/icons/Logout.js +4 -0
- package/es/_internal/icons/OzbekFlag.d.ts +2 -0
- package/es/_internal/icons/OzbekFlag.js +15 -0
- package/es/_internal/icons/RussiaFlag.d.ts +2 -0
- package/es/_internal/icons/RussiaFlag.js +11 -0
- package/es/_internal/icons/SendFilled.d.ts +2 -0
- package/es/_internal/icons/SendFilled.js +9 -0
- package/es/_internal/icons/index.d.ts +5 -0
- package/es/_internal/icons/index.js +5 -0
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +1 -0
- package/es/_styles/common/light.js +1 -1
- package/es/chat/src/Chat.d.ts +464 -83
- package/es/chat/src/Chat.js +17 -2
- package/es/chat/src/ChatListItems.d.ts +497 -94
- package/es/chat/src/ChatListItems.js +1 -1
- package/es/chat/src/ChatMessages.d.ts +501 -94
- package/es/chat/src/ChatMessages.js +115 -22
- package/es/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/es/chat/src/ChatParts/MainArea.js +110 -14
- package/es/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/es/chat/src/interface.d.ts +18 -0
- package/es/chat/src/interface.js +6 -0
- package/es/chat/src/styles/index.cssr.js +22 -1
- package/es/chat/styles/dark.d.ts +41 -8
- package/es/chat/styles/dark.js +6 -2
- package/es/chat/styles/light.d.ts +42 -8
- package/es/chat/styles/light.js +7 -2
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/internal-interface.d.ts +17 -0
- package/es/dialog/src/DialogProvider.d.ts +2 -0
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/header/demos/mock.d.ts +2 -0
- package/es/header/demos/mock.js +235 -0
- package/es/header/index.d.ts +12 -0
- package/es/header/index.js +10 -0
- package/es/header/src/Header.d.ts +604 -0
- package/es/header/src/Header.js +320 -0
- package/es/header/src/HeaderActions.d.ts +120 -0
- package/es/header/src/HeaderActions.js +166 -0
- package/es/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/es/header/src/HeaderDesktopLayout.js +24 -0
- package/es/header/src/HeaderMobileLayout.d.ts +25 -0
- package/es/header/src/HeaderMobileLayout.js +21 -0
- package/es/header/src/HeaderNavigation.d.ts +128 -0
- package/es/header/src/HeaderNavigation.js +172 -0
- package/es/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/es/header/src/HeaderSearchDesktop.js +77 -0
- package/es/header/src/HeaderSearchMobile.d.ts +73 -0
- package/es/header/src/HeaderSearchMobile.js +126 -0
- package/es/header/src/HeaderSearchResults.d.ts +81 -0
- package/es/header/src/HeaderSearchResults.js +74 -0
- package/es/header/src/constants.d.ts +1 -0
- package/es/header/src/constants.js +1 -0
- package/es/header/src/interface.d.ts +58 -0
- package/es/header/src/interface.js +1 -0
- package/es/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/es/header/src/mobile/HeaderMobile.js +241 -0
- package/es/header/src/styles/index.cssr.d.ts +6 -0
- package/es/header/src/styles/index.cssr.js +519 -0
- package/es/header/src/utils.d.ts +12 -0
- package/es/header/src/utils.js +47 -0
- package/es/header/styles/dark.d.ts +36 -0
- package/es/header/styles/dark.js +9 -0
- package/es/header/styles/index.d.ts +3 -0
- package/es/header/styles/index.js +2 -0
- package/es/header/styles/light.d.ts +72 -0
- package/es/header/styles/light.js +45 -0
- package/es/icon/src/Icon.d.ts +3 -0
- package/es/icon/src/Icon.js +3 -2
- package/es/icon-bar/index.d.ts +4 -0
- package/es/icon-bar/index.js +2 -0
- package/es/icon-bar/src/IconBar.d.ts +175 -0
- package/es/icon-bar/src/IconBar.js +57 -0
- package/es/icon-bar/src/IconBarItem.d.ts +163 -0
- package/es/icon-bar/src/IconBarItem.js +50 -0
- package/es/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-bar/src/styles/index.cssr.js +62 -0
- package/es/icon-bar/styles/dark.d.ts +3 -0
- package/es/icon-bar/styles/dark.js +8 -0
- package/es/icon-bar/styles/index.d.ts +3 -0
- package/es/icon-bar/styles/index.js +2 -0
- package/es/icon-bar/styles/light.d.ts +19 -0
- package/es/icon-bar/styles/light.js +23 -0
- package/es/locales/common/arDZ.js +11 -1
- package/es/locales/common/deDE.js +11 -1
- package/es/locales/common/enGB.js +11 -1
- package/es/locales/common/enUS.d.ts +10 -0
- package/es/locales/common/enUS.js +11 -1
- package/es/locales/common/eo.js +11 -1
- package/es/locales/common/esAR.js +11 -1
- package/es/locales/common/faIR.js +11 -1
- package/es/locales/common/frFR.js +11 -1
- package/es/locales/common/idID.js +11 -1
- package/es/locales/common/itIT.js +11 -1
- package/es/locales/common/jaJP.js +11 -1
- package/es/locales/common/koKR.js +11 -1
- package/es/locales/common/nbNO.js +11 -1
- package/es/locales/common/nlNL.js +11 -1
- package/es/locales/common/plPL.js +11 -1
- package/es/locales/common/ptBR.js +11 -1
- package/es/locales/common/ruRU.js +11 -1
- package/es/locales/common/skSK.js +11 -1
- package/es/locales/common/svSE.js +11 -1
- package/es/locales/common/thTH.js +11 -1
- package/es/locales/common/trTR.js +11 -1
- package/es/locales/common/ukUA.js +11 -1
- package/es/locales/common/viVN.js +11 -1
- package/es/locales/common/zhCN.js +11 -1
- package/es/locales/common/zhTW.js +11 -1
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +171 -0
- package/es/qr-code/src/QrCode.js +229 -0
- package/es/qr-code/src/qrcodegen.d.ts +95 -0
- package/es/qr-code/src/qrcodegen.js +949 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/es/themes/dark.js +7 -1
- package/es/themes/light.js +7 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/lib/_internal/icons/BurgerMenuIcon.js +6 -0
- package/lib/_internal/icons/Logout.d.ts +2 -0
- package/lib/_internal/icons/Logout.js +6 -0
- package/lib/_internal/icons/OzbekFlag.d.ts +2 -0
- package/lib/_internal/icons/OzbekFlag.js +17 -0
- package/lib/_internal/icons/RussiaFlag.d.ts +2 -0
- package/lib/_internal/icons/RussiaFlag.js +13 -0
- package/lib/_internal/icons/SendFilled.d.ts +2 -0
- package/lib/_internal/icons/SendFilled.js +11 -0
- package/lib/_internal/icons/index.d.ts +5 -0
- package/lib/_internal/icons/index.js +11 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +1 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/chat/src/Chat.d.ts +464 -83
- package/lib/chat/src/Chat.js +17 -2
- package/lib/chat/src/ChatListItems.d.ts +497 -94
- package/lib/chat/src/ChatListItems.js +1 -1
- package/lib/chat/src/ChatMessages.d.ts +501 -94
- package/lib/chat/src/ChatMessages.js +113 -20
- package/lib/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/lib/chat/src/ChatParts/MainArea.js +108 -12
- package/lib/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/lib/chat/src/interface.d.ts +18 -0
- package/lib/chat/src/interface.js +7 -1
- package/lib/chat/src/styles/index.cssr.js +22 -1
- package/lib/chat/styles/dark.d.ts +41 -8
- package/lib/chat/styles/dark.js +6 -2
- package/lib/chat/styles/light.d.ts +42 -8
- package/lib/chat/styles/light.js +7 -2
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/internal-interface.d.ts +17 -0
- package/lib/dialog/src/DialogProvider.d.ts +2 -0
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/header/demos/mock.d.ts +2 -0
- package/lib/header/demos/mock.js +238 -0
- package/lib/header/index.d.ts +12 -0
- package/lib/header/index.js +48 -0
- package/lib/header/src/Header.d.ts +604 -0
- package/lib/header/src/Header.js +349 -0
- package/lib/header/src/HeaderActions.d.ts +120 -0
- package/lib/header/src/HeaderActions.js +172 -0
- package/lib/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/lib/header/src/HeaderDesktopLayout.js +27 -0
- package/lib/header/src/HeaderMobileLayout.d.ts +25 -0
- package/lib/header/src/HeaderMobileLayout.js +24 -0
- package/lib/header/src/HeaderNavigation.d.ts +128 -0
- package/lib/header/src/HeaderNavigation.js +175 -0
- package/lib/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/lib/header/src/HeaderSearchDesktop.js +83 -0
- package/lib/header/src/HeaderSearchMobile.d.ts +73 -0
- package/lib/header/src/HeaderSearchMobile.js +132 -0
- package/lib/header/src/HeaderSearchResults.d.ts +81 -0
- package/lib/header/src/HeaderSearchResults.js +77 -0
- package/lib/header/src/constants.d.ts +1 -0
- package/lib/header/src/constants.js +4 -0
- package/lib/header/src/interface.d.ts +58 -0
- package/lib/header/src/interface.js +2 -0
- package/lib/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/lib/header/src/mobile/HeaderMobile.js +244 -0
- package/lib/header/src/styles/index.cssr.d.ts +6 -0
- package/lib/header/src/styles/index.cssr.js +525 -0
- package/lib/header/src/utils.d.ts +12 -0
- package/lib/header/src/utils.js +58 -0
- package/lib/header/styles/dark.d.ts +36 -0
- package/lib/header/styles/dark.js +11 -0
- package/lib/header/styles/index.d.ts +3 -0
- package/lib/header/styles/index.js +10 -0
- package/lib/header/styles/light.d.ts +72 -0
- package/lib/header/styles/light.js +49 -0
- package/lib/icon/src/Icon.d.ts +3 -0
- package/lib/icon/src/Icon.js +3 -2
- package/lib/icon-bar/index.d.ts +4 -0
- package/lib/icon-bar/index.js +12 -0
- package/lib/icon-bar/src/IconBar.d.ts +175 -0
- package/lib/icon-bar/src/IconBar.js +63 -0
- package/lib/icon-bar/src/IconBarItem.d.ts +163 -0
- package/lib/icon-bar/src/IconBarItem.js +56 -0
- package/lib/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-bar/src/styles/index.cssr.js +67 -0
- package/lib/icon-bar/styles/dark.d.ts +3 -0
- package/lib/icon-bar/styles/dark.js +10 -0
- package/lib/icon-bar/styles/index.d.ts +3 -0
- package/lib/icon-bar/styles/index.js +10 -0
- package/lib/icon-bar/styles/light.d.ts +19 -0
- package/lib/icon-bar/styles/light.js +27 -0
- package/lib/locales/common/arDZ.js +11 -1
- package/lib/locales/common/deDE.js +11 -1
- package/lib/locales/common/enGB.js +11 -1
- package/lib/locales/common/enUS.d.ts +10 -0
- package/lib/locales/common/enUS.js +11 -1
- package/lib/locales/common/eo.js +11 -1
- package/lib/locales/common/esAR.js +11 -1
- package/lib/locales/common/faIR.js +11 -1
- package/lib/locales/common/frFR.js +11 -1
- package/lib/locales/common/idID.js +11 -1
- package/lib/locales/common/itIT.js +11 -1
- package/lib/locales/common/jaJP.js +11 -1
- package/lib/locales/common/koKR.js +11 -1
- package/lib/locales/common/nbNO.js +11 -1
- package/lib/locales/common/nlNL.js +11 -1
- package/lib/locales/common/plPL.js +11 -1
- package/lib/locales/common/ptBR.js +11 -1
- package/lib/locales/common/ruRU.js +11 -1
- package/lib/locales/common/skSK.js +11 -1
- package/lib/locales/common/svSE.js +11 -1
- package/lib/locales/common/thTH.js +11 -1
- package/lib/locales/common/trTR.js +11 -1
- package/lib/locales/common/ukUA.js +11 -1
- package/lib/locales/common/viVN.js +11 -1
- package/lib/locales/common/zhCN.js +11 -1
- package/lib/locales/common/zhTW.js +11 -1
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +171 -0
- package/lib/qr-code/src/QrCode.js +235 -0
- package/lib/qr-code/src/qrcodegen.d.ts +95 -0
- package/lib/qr-code/src/qrcodegen.js +950 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/lib/themes/dark.js +7 -1
- package/lib/themes/light.js +7 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +166 -153
- package/web-types.json +854 -2
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.headerSearchMobileProps = void 0;
|
|
16
|
+
const vue_1 = require("vue");
|
|
17
|
+
const drawer_1 = require("../../drawer");
|
|
18
|
+
const button_1 = require("../../button");
|
|
19
|
+
const icon_1 = require("../../icon");
|
|
20
|
+
const input_1 = require("../../input");
|
|
21
|
+
const HeaderSearchResults_1 = __importDefault(require("./HeaderSearchResults"));
|
|
22
|
+
const _mixins_1 = require("../../_mixins");
|
|
23
|
+
const constants_1 = require("./constants");
|
|
24
|
+
const icons_1 = require("../../_internal/icons");
|
|
25
|
+
exports.headerSearchMobileProps = {
|
|
26
|
+
show: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
cssVars: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
mergedClsPrefix: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
onClose: Function,
|
|
39
|
+
onSearch: Function,
|
|
40
|
+
onSearchResultSelect: Function
|
|
41
|
+
};
|
|
42
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
43
|
+
name: 'HeaderSearchMobile',
|
|
44
|
+
props: exports.headerSearchMobileProps,
|
|
45
|
+
setup(props) {
|
|
46
|
+
const { localeRef } = (0, _mixins_1.useLocale)('Header');
|
|
47
|
+
const searchValue = (0, vue_1.ref)('');
|
|
48
|
+
const searchResults = (0, vue_1.ref)([]);
|
|
49
|
+
const searchLoading = (0, vue_1.ref)(false);
|
|
50
|
+
const placeholder = (0, vue_1.computed)(() => localeRef.value.searchPlaceholder);
|
|
51
|
+
const handleSearch = () => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const query = searchValue.value.trim();
|
|
53
|
+
if (!query || !props.onSearch) {
|
|
54
|
+
searchResults.value = [];
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
searchLoading.value = true;
|
|
58
|
+
try {
|
|
59
|
+
const results = yield props.onSearch(query);
|
|
60
|
+
searchResults.value = results;
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
searchResults.value = [];
|
|
64
|
+
}
|
|
65
|
+
finally {
|
|
66
|
+
searchLoading.value = false;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const handleSearchInput = (value) => {
|
|
70
|
+
searchValue.value = value;
|
|
71
|
+
};
|
|
72
|
+
const handleClose = () => {
|
|
73
|
+
var _a;
|
|
74
|
+
searchValue.value = '';
|
|
75
|
+
searchResults.value = [];
|
|
76
|
+
searchLoading.value = false;
|
|
77
|
+
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
78
|
+
};
|
|
79
|
+
const handleResultSelect = (result) => {
|
|
80
|
+
var _a;
|
|
81
|
+
(_a = props.onSearchResultSelect) === null || _a === void 0 ? void 0 : _a.call(props, result);
|
|
82
|
+
handleClose();
|
|
83
|
+
};
|
|
84
|
+
let searchTimeout = null;
|
|
85
|
+
(0, vue_1.watch)(searchValue, () => {
|
|
86
|
+
if (searchTimeout) {
|
|
87
|
+
clearTimeout(searchTimeout);
|
|
88
|
+
}
|
|
89
|
+
searchTimeout = setTimeout(() => {
|
|
90
|
+
void handleSearch();
|
|
91
|
+
}, constants_1.SEARCH_DEBOUNCE_MS);
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
placeholder,
|
|
95
|
+
searchValue,
|
|
96
|
+
searchResults,
|
|
97
|
+
searchLoading,
|
|
98
|
+
handleSearchInput,
|
|
99
|
+
handleSearch,
|
|
100
|
+
handleClose,
|
|
101
|
+
handleResultSelect
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
render() {
|
|
105
|
+
const blockClass = `${this.mergedClsPrefix}-header-search-mobile`;
|
|
106
|
+
return ((0, vue_1.h)(drawer_1.UDrawer, { show: this.show, width: "84%", placement: "right", "auto-focus": false, onUpdateShow: (show) => {
|
|
107
|
+
if (!show) {
|
|
108
|
+
this.handleClose();
|
|
109
|
+
}
|
|
110
|
+
} }, () => ((0, vue_1.h)("div", { class: blockClass, style: this.cssVars },
|
|
111
|
+
(0, vue_1.h)("div", { class: `${blockClass}__header` },
|
|
112
|
+
(0, vue_1.h)(button_1.UButton, { text: true, class: `${blockClass}__back`, onClick: this.handleClose }, () => (0, vue_1.h)(icon_1.UIcon, { size: 24 }, () => (0, vue_1.h)(icons_1.ChevronLeftIcon, null))),
|
|
113
|
+
(0, vue_1.h)("div", { class: `${blockClass}__input-wrapper` },
|
|
114
|
+
(0, vue_1.h)(icon_1.UIcon, { size: 20, class: `${blockClass}__input-icon` }, () => (0, vue_1.h)(icons_1.SearchIcon, null)),
|
|
115
|
+
(0, vue_1.h)(input_1.UInput, { value: this.searchValue, placeholder: this.placeholder, onKeyup: (e) => {
|
|
116
|
+
if (e.key === 'Enter') {
|
|
117
|
+
void this.handleSearch();
|
|
118
|
+
}
|
|
119
|
+
}, onUpdateValue: this.handleSearchInput }, {
|
|
120
|
+
prefix: () => ((0, vue_1.h)(icon_1.UIcon, { size: 20 }, () => (0, vue_1.h)(icons_1.SearchIcon, null)))
|
|
121
|
+
}))),
|
|
122
|
+
(0, vue_1.h)(HeaderSearchResults_1.default, {
|
|
123
|
+
version: 'mobile',
|
|
124
|
+
results: this.searchResults,
|
|
125
|
+
loading: this.searchLoading,
|
|
126
|
+
query: this.searchValue,
|
|
127
|
+
mergedClsPrefix: this.mergedClsPrefix,
|
|
128
|
+
cssVars: this.cssVars,
|
|
129
|
+
onSelect: this.handleResultSelect
|
|
130
|
+
})))));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type PropType, type CSSProperties } from 'vue';
|
|
2
|
+
import type { HeaderSearchResult } from './interface';
|
|
3
|
+
export declare const headerSearchResultsProps: {
|
|
4
|
+
readonly version: {
|
|
5
|
+
readonly type: PropType<"desktop" | "mobile">;
|
|
6
|
+
readonly default: "desktop";
|
|
7
|
+
};
|
|
8
|
+
readonly results: {
|
|
9
|
+
readonly type: PropType<HeaderSearchResult[]>;
|
|
10
|
+
readonly default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
readonly loading: {
|
|
13
|
+
readonly type: BooleanConstructor;
|
|
14
|
+
readonly default: false;
|
|
15
|
+
};
|
|
16
|
+
readonly query: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
readonly mergedClsPrefix: {
|
|
21
|
+
readonly type: PropType<string>;
|
|
22
|
+
readonly required: true;
|
|
23
|
+
};
|
|
24
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
25
|
+
readonly onSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: import("vue").DefineComponent<{
|
|
28
|
+
readonly version: {
|
|
29
|
+
readonly type: PropType<"desktop" | "mobile">;
|
|
30
|
+
readonly default: "desktop";
|
|
31
|
+
};
|
|
32
|
+
readonly results: {
|
|
33
|
+
readonly type: PropType<HeaderSearchResult[]>;
|
|
34
|
+
readonly default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
readonly loading: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly query: {
|
|
41
|
+
readonly type: StringConstructor;
|
|
42
|
+
readonly default: "";
|
|
43
|
+
};
|
|
44
|
+
readonly mergedClsPrefix: {
|
|
45
|
+
readonly type: PropType<string>;
|
|
46
|
+
readonly required: true;
|
|
47
|
+
};
|
|
48
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
49
|
+
readonly onSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
50
|
+
}, {
|
|
51
|
+
placeholder: import("vue").ComputedRef<string>;
|
|
52
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
readonly version: {
|
|
54
|
+
readonly type: PropType<"desktop" | "mobile">;
|
|
55
|
+
readonly default: "desktop";
|
|
56
|
+
};
|
|
57
|
+
readonly results: {
|
|
58
|
+
readonly type: PropType<HeaderSearchResult[]>;
|
|
59
|
+
readonly default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
readonly loading: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly query: {
|
|
66
|
+
readonly type: StringConstructor;
|
|
67
|
+
readonly default: "";
|
|
68
|
+
};
|
|
69
|
+
readonly mergedClsPrefix: {
|
|
70
|
+
readonly type: PropType<string>;
|
|
71
|
+
readonly required: true;
|
|
72
|
+
};
|
|
73
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
74
|
+
readonly onSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
75
|
+
}>>, {
|
|
76
|
+
readonly loading: boolean;
|
|
77
|
+
readonly results: HeaderSearchResult[];
|
|
78
|
+
readonly version: "mobile" | "desktop";
|
|
79
|
+
readonly query: string;
|
|
80
|
+
}, {}>;
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.headerSearchResultsProps = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const empty_1 = require("../../empty");
|
|
6
|
+
const spin_1 = require("../../spin");
|
|
7
|
+
const _mixins_1 = require("../../_mixins");
|
|
8
|
+
exports.headerSearchResultsProps = {
|
|
9
|
+
version: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: 'desktop'
|
|
12
|
+
},
|
|
13
|
+
results: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
loading: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
query: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ''
|
|
24
|
+
},
|
|
25
|
+
mergedClsPrefix: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
cssVars: Object,
|
|
30
|
+
onSelect: Function
|
|
31
|
+
};
|
|
32
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
33
|
+
name: 'HeaderSearchResults',
|
|
34
|
+
props: exports.headerSearchResultsProps,
|
|
35
|
+
setup() {
|
|
36
|
+
const { localeRef } = (0, _mixins_1.useLocale)('Header');
|
|
37
|
+
const placeholder = (0, vue_1.computed)(() => localeRef.value.searchPlaceholder);
|
|
38
|
+
return {
|
|
39
|
+
placeholder
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
render() {
|
|
43
|
+
const blockClass = `${this.mergedClsPrefix}-header-search-results`;
|
|
44
|
+
const versionClass = `${blockClass}--${this.version}`;
|
|
45
|
+
if (this.loading) {
|
|
46
|
+
return ((0, vue_1.h)("div", { class: [blockClass, versionClass], style: this.cssVars },
|
|
47
|
+
(0, vue_1.h)("div", { class: `${blockClass}__loading` },
|
|
48
|
+
(0, vue_1.h)(spin_1.USpin, { size: "small" }),
|
|
49
|
+
(0, vue_1.h)("span", null, this.placeholder))));
|
|
50
|
+
}
|
|
51
|
+
if (!this.results.length && this.query) {
|
|
52
|
+
return ((0, vue_1.h)("div", { class: [blockClass, versionClass], style: this.cssVars },
|
|
53
|
+
(0, vue_1.h)("div", { class: `${blockClass}__empty` },
|
|
54
|
+
(0, vue_1.h)(empty_1.UEmpty, { size: "small", description: "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E" }))));
|
|
55
|
+
}
|
|
56
|
+
if (!this.results.length) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return ((0, vue_1.h)("div", { class: [blockClass, versionClass], style: this.cssVars },
|
|
60
|
+
(0, vue_1.h)("div", { class: `${blockClass}__list` }, this.results.map((result) => ((0, vue_1.h)("div", { key: result.key, class: [
|
|
61
|
+
`${blockClass}__item`,
|
|
62
|
+
result.disabled && `${blockClass}__item--disabled`
|
|
63
|
+
], onClick: () => {
|
|
64
|
+
var _a;
|
|
65
|
+
if (!result.disabled) {
|
|
66
|
+
(_a = this.onSelect) === null || _a === void 0 ? void 0 : _a.call(this, result);
|
|
67
|
+
}
|
|
68
|
+
} },
|
|
69
|
+
result.icon ? ((0, vue_1.h)("span", { class: `${blockClass}__item-icon` }, typeof result.icon === 'function'
|
|
70
|
+
? result.icon()
|
|
71
|
+
: result.icon)) : null,
|
|
72
|
+
(0, vue_1.h)("div", { class: `${blockClass}__item-content` },
|
|
73
|
+
(0, vue_1.h)("div", { class: `${blockClass}__item-label` }, result.label),
|
|
74
|
+
result.description ? ((0, vue_1.h)("div", { class: `${blockClass}__item-description` }, result.description)) : null),
|
|
75
|
+
result.extra ? ((0, vue_1.h)("span", { class: `${blockClass}__item-extra` }, result.extra)) : null))))));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SEARCH_DEBOUNCE_MS = 300;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type VNodeChild } from 'vue';
|
|
2
|
+
import type { MenuOption as BaseMenuOption, MenuGroupOption, MenuDividerOption, Key } from '../../menu/src/interface';
|
|
3
|
+
import type { TabsProps } from '../../tabs';
|
|
4
|
+
import { ImageProps } from '../../image';
|
|
5
|
+
export type HeaderMenuGroupOption = MenuGroupOption;
|
|
6
|
+
export type HeaderMenuDividerOption = MenuDividerOption;
|
|
7
|
+
export interface HeaderProps {
|
|
8
|
+
menuOptions?: HeaderMenuOption[];
|
|
9
|
+
langOptions?: LangOption[];
|
|
10
|
+
defaultLang?: string | number;
|
|
11
|
+
menuPlacement?: HeaderMenuPlacement;
|
|
12
|
+
menuTrigger?: HeaderMenuTrigger;
|
|
13
|
+
menuValue?: string | number | null;
|
|
14
|
+
defaultMenuValue?: string | number | null;
|
|
15
|
+
menuTabsProps?: HeaderMenuTabsProps;
|
|
16
|
+
menuCardMinColumnWidth?: string | number;
|
|
17
|
+
logoSrc?: string;
|
|
18
|
+
logoAlt?: string;
|
|
19
|
+
logoProps?: Partial<ImageProps>;
|
|
20
|
+
responsive?: boolean;
|
|
21
|
+
mobileMenuType?: 'drawer' | 'dropdown';
|
|
22
|
+
mobileActionsCollapse?: boolean;
|
|
23
|
+
mobileShowFooterActions?: boolean;
|
|
24
|
+
mobilePrimaryActionText?: string;
|
|
25
|
+
mobileSecondaryActionText?: string;
|
|
26
|
+
mobileShowHeaderActions?: boolean;
|
|
27
|
+
onSearch?: HeaderSearchHandler;
|
|
28
|
+
onUpdateMenuValue: (value: string | number | null) => void;
|
|
29
|
+
}
|
|
30
|
+
export interface HeaderMenuColumnOption {
|
|
31
|
+
type: 'column';
|
|
32
|
+
key?: Key;
|
|
33
|
+
children?: HeaderMenuChildOption[];
|
|
34
|
+
}
|
|
35
|
+
export interface LangOption {
|
|
36
|
+
label: string | (() => VNodeChild);
|
|
37
|
+
key: string | number;
|
|
38
|
+
icon?: () => VNodeChild;
|
|
39
|
+
}
|
|
40
|
+
export interface HeaderSearchResult {
|
|
41
|
+
key: string | number;
|
|
42
|
+
label: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
icon?: () => VNodeChild;
|
|
45
|
+
extra?: string;
|
|
46
|
+
onClick?: () => void;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export type HeaderSearchHandler = (query: string) => Promise<HeaderSearchResult[]> | HeaderSearchResult[];
|
|
50
|
+
export type HeaderMenuChildOption = HeaderMenuColumnOption | HeaderMenuGroupOption | HeaderMenuDividerOption | HeaderMenuOption;
|
|
51
|
+
export type HeaderMenuOption = Omit<BaseMenuOption, 'children'> & {
|
|
52
|
+
children?: HeaderMenuChildOption[];
|
|
53
|
+
onClick?: () => void;
|
|
54
|
+
hide?: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type HeaderMenuPlacement = 'horizontal' | 'vertical' | 'top' | 'bottom' | 'left' | 'right';
|
|
57
|
+
export type HeaderMenuTrigger = 'click' | 'hover';
|
|
58
|
+
export type HeaderMenuTabsProps = Partial<TabsProps>;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { type PropType, type VNodeChild, type CSSProperties } from 'vue';
|
|
2
|
+
import type { HeaderMenuOption, HeaderSearchHandler, HeaderSearchResult } from '../interface';
|
|
3
|
+
interface LangOption {
|
|
4
|
+
label: string | (() => VNodeChild);
|
|
5
|
+
key: string | number;
|
|
6
|
+
icon?: () => VNodeChild;
|
|
7
|
+
}
|
|
8
|
+
interface NormalizedMenuItem {
|
|
9
|
+
key: string | number;
|
|
10
|
+
option: HeaderMenuOption;
|
|
11
|
+
}
|
|
12
|
+
export declare const headerMobileProps: {
|
|
13
|
+
readonly visible: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: false;
|
|
16
|
+
};
|
|
17
|
+
readonly menuOptions: {
|
|
18
|
+
readonly type: PropType<NormalizedMenuItem[]>;
|
|
19
|
+
readonly default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
readonly activeMenuValue: PropType<string | number | null>;
|
|
22
|
+
readonly langOptions: {
|
|
23
|
+
readonly type: PropType<LangOption[]>;
|
|
24
|
+
readonly required: true;
|
|
25
|
+
};
|
|
26
|
+
readonly currentLang: {
|
|
27
|
+
readonly type: PropType<LangOption>;
|
|
28
|
+
readonly required: true;
|
|
29
|
+
};
|
|
30
|
+
readonly mergedClsPrefix: {
|
|
31
|
+
readonly type: PropType<string>;
|
|
32
|
+
readonly required: true;
|
|
33
|
+
};
|
|
34
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
35
|
+
readonly menuType: {
|
|
36
|
+
readonly type: PropType<"drawer" | "dropdown">;
|
|
37
|
+
readonly default: "drawer";
|
|
38
|
+
};
|
|
39
|
+
readonly drawerPlacement: {
|
|
40
|
+
readonly type: PropType<"left" | "right">;
|
|
41
|
+
readonly default: "right";
|
|
42
|
+
};
|
|
43
|
+
readonly drawerWidth: {
|
|
44
|
+
readonly type: StringConstructor;
|
|
45
|
+
readonly default: "84%";
|
|
46
|
+
};
|
|
47
|
+
readonly showFooterActions: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: true;
|
|
50
|
+
};
|
|
51
|
+
readonly primaryActionText: {
|
|
52
|
+
readonly type: StringConstructor;
|
|
53
|
+
readonly default: undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly secondaryActionText: {
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly default: undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly showHeaderActions: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: true;
|
|
62
|
+
};
|
|
63
|
+
readonly onToggle: PropType<() => void>;
|
|
64
|
+
readonly onClose: PropType<() => void>;
|
|
65
|
+
readonly onMenuItemClick: PropType<(option: HeaderMenuOption) => void>;
|
|
66
|
+
readonly onLanguageSelect: PropType<(key: string | number) => void>;
|
|
67
|
+
readonly onPrimaryAction: PropType<() => void>;
|
|
68
|
+
readonly onSecondaryAction: PropType<() => void>;
|
|
69
|
+
readonly onSearchClick: PropType<() => void>;
|
|
70
|
+
readonly onSearch: PropType<HeaderSearchHandler>;
|
|
71
|
+
readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
72
|
+
readonly onPreview: PropType<() => void>;
|
|
73
|
+
readonly onLogout: PropType<() => void>;
|
|
74
|
+
};
|
|
75
|
+
declare const _default: import("vue").DefineComponent<{
|
|
76
|
+
readonly visible: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
};
|
|
80
|
+
readonly menuOptions: {
|
|
81
|
+
readonly type: PropType<NormalizedMenuItem[]>;
|
|
82
|
+
readonly default: () => never[];
|
|
83
|
+
};
|
|
84
|
+
readonly activeMenuValue: PropType<string | number | null>;
|
|
85
|
+
readonly langOptions: {
|
|
86
|
+
readonly type: PropType<LangOption[]>;
|
|
87
|
+
readonly required: true;
|
|
88
|
+
};
|
|
89
|
+
readonly currentLang: {
|
|
90
|
+
readonly type: PropType<LangOption>;
|
|
91
|
+
readonly required: true;
|
|
92
|
+
};
|
|
93
|
+
readonly mergedClsPrefix: {
|
|
94
|
+
readonly type: PropType<string>;
|
|
95
|
+
readonly required: true;
|
|
96
|
+
};
|
|
97
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
98
|
+
readonly menuType: {
|
|
99
|
+
readonly type: PropType<"drawer" | "dropdown">;
|
|
100
|
+
readonly default: "drawer";
|
|
101
|
+
};
|
|
102
|
+
readonly drawerPlacement: {
|
|
103
|
+
readonly type: PropType<"left" | "right">;
|
|
104
|
+
readonly default: "right";
|
|
105
|
+
};
|
|
106
|
+
readonly drawerWidth: {
|
|
107
|
+
readonly type: StringConstructor;
|
|
108
|
+
readonly default: "84%";
|
|
109
|
+
};
|
|
110
|
+
readonly showFooterActions: {
|
|
111
|
+
readonly type: BooleanConstructor;
|
|
112
|
+
readonly default: true;
|
|
113
|
+
};
|
|
114
|
+
readonly primaryActionText: {
|
|
115
|
+
readonly type: StringConstructor;
|
|
116
|
+
readonly default: undefined;
|
|
117
|
+
};
|
|
118
|
+
readonly secondaryActionText: {
|
|
119
|
+
readonly type: StringConstructor;
|
|
120
|
+
readonly default: undefined;
|
|
121
|
+
};
|
|
122
|
+
readonly showHeaderActions: {
|
|
123
|
+
readonly type: BooleanConstructor;
|
|
124
|
+
readonly default: true;
|
|
125
|
+
};
|
|
126
|
+
readonly onToggle: PropType<() => void>;
|
|
127
|
+
readonly onClose: PropType<() => void>;
|
|
128
|
+
readonly onMenuItemClick: PropType<(option: HeaderMenuOption) => void>;
|
|
129
|
+
readonly onLanguageSelect: PropType<(key: string | number) => void>;
|
|
130
|
+
readonly onPrimaryAction: PropType<() => void>;
|
|
131
|
+
readonly onSecondaryAction: PropType<() => void>;
|
|
132
|
+
readonly onSearchClick: PropType<() => void>;
|
|
133
|
+
readonly onSearch: PropType<HeaderSearchHandler>;
|
|
134
|
+
readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
135
|
+
readonly onPreview: PropType<() => void>;
|
|
136
|
+
readonly onLogout: PropType<() => void>;
|
|
137
|
+
}, {
|
|
138
|
+
blockClass: import("vue").ComputedRef<string>;
|
|
139
|
+
mobileMenuClass: import("vue").ComputedRef<string>;
|
|
140
|
+
expandedKeys: import("vue").Ref<Set<string | number>>;
|
|
141
|
+
normalizeMobileMenuOptions: import("vue").ComputedRef<NormalizedMenuItem[]>;
|
|
142
|
+
primaryActionTextRef: import("vue").ComputedRef<string>;
|
|
143
|
+
secondaryActionTextRef: import("vue").ComputedRef<string>;
|
|
144
|
+
toggleExpand: (key: string | number) => void;
|
|
145
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
146
|
+
readonly visible: {
|
|
147
|
+
readonly type: BooleanConstructor;
|
|
148
|
+
readonly default: false;
|
|
149
|
+
};
|
|
150
|
+
readonly menuOptions: {
|
|
151
|
+
readonly type: PropType<NormalizedMenuItem[]>;
|
|
152
|
+
readonly default: () => never[];
|
|
153
|
+
};
|
|
154
|
+
readonly activeMenuValue: PropType<string | number | null>;
|
|
155
|
+
readonly langOptions: {
|
|
156
|
+
readonly type: PropType<LangOption[]>;
|
|
157
|
+
readonly required: true;
|
|
158
|
+
};
|
|
159
|
+
readonly currentLang: {
|
|
160
|
+
readonly type: PropType<LangOption>;
|
|
161
|
+
readonly required: true;
|
|
162
|
+
};
|
|
163
|
+
readonly mergedClsPrefix: {
|
|
164
|
+
readonly type: PropType<string>;
|
|
165
|
+
readonly required: true;
|
|
166
|
+
};
|
|
167
|
+
readonly cssVars: PropType<CSSProperties>;
|
|
168
|
+
readonly menuType: {
|
|
169
|
+
readonly type: PropType<"drawer" | "dropdown">;
|
|
170
|
+
readonly default: "drawer";
|
|
171
|
+
};
|
|
172
|
+
readonly drawerPlacement: {
|
|
173
|
+
readonly type: PropType<"left" | "right">;
|
|
174
|
+
readonly default: "right";
|
|
175
|
+
};
|
|
176
|
+
readonly drawerWidth: {
|
|
177
|
+
readonly type: StringConstructor;
|
|
178
|
+
readonly default: "84%";
|
|
179
|
+
};
|
|
180
|
+
readonly showFooterActions: {
|
|
181
|
+
readonly type: BooleanConstructor;
|
|
182
|
+
readonly default: true;
|
|
183
|
+
};
|
|
184
|
+
readonly primaryActionText: {
|
|
185
|
+
readonly type: StringConstructor;
|
|
186
|
+
readonly default: undefined;
|
|
187
|
+
};
|
|
188
|
+
readonly secondaryActionText: {
|
|
189
|
+
readonly type: StringConstructor;
|
|
190
|
+
readonly default: undefined;
|
|
191
|
+
};
|
|
192
|
+
readonly showHeaderActions: {
|
|
193
|
+
readonly type: BooleanConstructor;
|
|
194
|
+
readonly default: true;
|
|
195
|
+
};
|
|
196
|
+
readonly onToggle: PropType<() => void>;
|
|
197
|
+
readonly onClose: PropType<() => void>;
|
|
198
|
+
readonly onMenuItemClick: PropType<(option: HeaderMenuOption) => void>;
|
|
199
|
+
readonly onLanguageSelect: PropType<(key: string | number) => void>;
|
|
200
|
+
readonly onPrimaryAction: PropType<() => void>;
|
|
201
|
+
readonly onSecondaryAction: PropType<() => void>;
|
|
202
|
+
readonly onSearchClick: PropType<() => void>;
|
|
203
|
+
readonly onSearch: PropType<HeaderSearchHandler>;
|
|
204
|
+
readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
|
|
205
|
+
readonly onPreview: PropType<() => void>;
|
|
206
|
+
readonly onLogout: PropType<() => void>;
|
|
207
|
+
}>>, {
|
|
208
|
+
readonly primaryActionText: string;
|
|
209
|
+
readonly secondaryActionText: string;
|
|
210
|
+
readonly visible: boolean;
|
|
211
|
+
readonly menuOptions: NormalizedMenuItem[];
|
|
212
|
+
readonly menuType: "drawer" | "dropdown";
|
|
213
|
+
readonly drawerPlacement: "left" | "right";
|
|
214
|
+
readonly drawerWidth: string;
|
|
215
|
+
readonly showFooterActions: boolean;
|
|
216
|
+
readonly showHeaderActions: boolean;
|
|
217
|
+
}, {}>;
|
|
218
|
+
export default _default;
|