@opendesign-plus-test/components 0.0.1-rc.46 → 0.0.1-rc.48
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +67 -47
- package/dist/components/OHeaderSearch.vue.d.ts +812 -534
- package/dist/components/search/OSearchInput.vue.d.ts +1003 -0
- package/dist/components/search/composables/useImageSearch.d.ts +48 -0
- package/dist/components/search/composables/useKeywordHighlight.d.ts +2 -0
- package/dist/components/search/composables/useSearchHistory.d.ts +14 -0
- package/dist/components/search/index.d.ts +590 -0
- package/dist/components/search/internal/HighlightText.vue.d.ts +9 -0
- package/dist/components/search/internal/SearchImageInput.vue.d.ts +716 -0
- package/dist/components/search/internal/SearchPanel.vue.d.ts +100 -0
- package/dist/components/search/types.d.ts +20 -0
- package/dist/components.cjs.js +41 -41
- package/dist/components.css +1 -1
- package/dist/components.es.js +11296 -10253
- package/dist/index.d.ts +1 -0
- package/package.json +4 -2
- package/src/assets/svg-icons/icon-delete-hover.svg +4 -0
- package/src/assets/svg-icons/icon-delete.svg +5 -1
- package/src/assets/svg-icons/icon-image-close.svg +4 -0
- package/src/assets/svg-icons/icon-image-upload.svg +3 -0
- package/src/assets/svg-icons/icon-image-zoomin.svg +3 -0
- package/src/assets/svg-icons/icon-refresh.svg +3 -0
- package/src/components/OBanner.vue +18 -18
- package/src/components/OCookieNotice.vue +21 -21
- package/src/components/OFooter.vue +18 -17
- package/src/components/OHeaderSearch.vue +402 -420
- package/src/components/OHeaderUser.vue +3 -2
- package/src/components/OSection.vue +4 -4
- package/src/components/activity/OActivityApproval.vue +4 -4
- package/src/components/activity/OActivityForm.vue +2 -2
- package/src/components/activity/OMyActivityCalendar.vue +26 -26
- package/src/components/common/ContentWrapper.vue +3 -3
- package/src/components/element-plus/OElCookieNotice.vue +26 -26
- package/src/components/events/OEventsApply.vue +44 -44
- package/src/components/events/OEventsCalendar.vue +14 -14
- package/src/components/events/OEventsList.vue +16 -16
- package/src/components/header/OHeader.vue +2 -2
- package/src/components/header/components/HeaderContent.vue +60 -60
- package/src/components/header/components/HeaderNav.vue +4 -4
- package/src/components/header/components/HeaderNavMobile.vue +3 -3
- package/src/components/meeting/OMeetingCalendar.vue +27 -27
- package/src/components/meeting/OMeetingForm.vue +16 -16
- package/src/components/meeting/OMeetingPlayback.vue +4 -4
- package/src/components/meeting/OMyMeetingCalendar.vue +25 -25
- package/src/components/meeting/OSigMeetingCalendar.vue +3 -3
- package/src/components/meeting/components/OMeetingCalendarList.vue +9 -9
- package/src/components/meeting/components/OMeetingDetail.vue +2 -2
- package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +1 -1
- package/src/components/meeting/components/OMeetingPlaybackVideo.vue +5 -5
- package/src/components/meeting/components/OSigMeetingAside.vue +6 -6
- package/src/components/search/OSearchInput.vue +463 -0
- package/src/components/search/composables/useImageSearch.ts +157 -0
- package/src/components/search/composables/useKeywordHighlight.ts +30 -0
- package/src/components/search/composables/useSearchHistory.ts +75 -0
- package/src/components/search/index.ts +23 -0
- package/src/components/search/internal/HighlightText.vue +37 -0
- package/src/components/search/internal/SearchImageInput.vue +488 -0
- package/src/components/search/internal/SearchPanel.vue +430 -0
- package/src/components/search/types.ts +25 -0
- package/src/draft/Banner.vue +6 -6
- package/src/draft/ButtonCards.vue +1 -1
- package/src/draft/Feature.vue +6 -6
- package/src/draft/Footer.vue +29 -22
- package/src/draft/HorizontalAnchor.vue +4 -4
- package/src/draft/ItemSwiper.vue +2 -2
- package/src/draft/Logo.vue +3 -3
- package/src/draft/LogoCard.vue +2 -2
- package/src/draft/MultiCard.vue +1 -1
- package/src/draft/MultiIconCard.vue +1 -1
- package/src/draft/OInfoCard.vue +4 -4
- package/src/draft/Section.vue +4 -4
- package/src/draft/SingleTabCard.vue +1 -1
- package/src/draft/SliderCard.vue +4 -3
- package/src/i18n/en.ts +10 -0
- package/src/i18n/zh.ts +10 -0
- package/src/index.ts +1 -0
- package/vite.config.ts +5 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { OSearchRecommendItem } from '../types';
|
|
2
|
+
export interface SearchPanelPropsT {
|
|
3
|
+
keyword?: string;
|
|
4
|
+
onestepItems?: OSearchRecommendItem[];
|
|
5
|
+
onestepTitle?: string;
|
|
6
|
+
suggestItems?: OSearchRecommendItem[];
|
|
7
|
+
suggestTitle?: string;
|
|
8
|
+
recommendItems?: string[];
|
|
9
|
+
historyItems?: string[];
|
|
10
|
+
historyTitle?: string;
|
|
11
|
+
hotItems?: string[];
|
|
12
|
+
hotTitle?: string;
|
|
13
|
+
noDataText?: string;
|
|
14
|
+
highlightKeyword?: boolean;
|
|
15
|
+
/** When true, show history+hot sections only if keyword is empty */
|
|
16
|
+
hideOnKeyword?: boolean;
|
|
17
|
+
/** When true, show suggest empty state ("no data") even when list is empty */
|
|
18
|
+
showSuggestEmpty?: boolean;
|
|
19
|
+
isDark?: boolean;
|
|
20
|
+
/** 'chips' = tag-cloud (header dropdown), 'list' = full-width rows (page search) */
|
|
21
|
+
historyLayout?: 'chips' | 'list';
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
'onestep-header'?(_: {
|
|
27
|
+
items: OSearchRecommendItem[];
|
|
28
|
+
}): any;
|
|
29
|
+
'onestep-content'?(_: {
|
|
30
|
+
items: OSearchRecommendItem[];
|
|
31
|
+
keyword: string;
|
|
32
|
+
}): any;
|
|
33
|
+
'suggest-header'?(_: {
|
|
34
|
+
items: OSearchRecommendItem[];
|
|
35
|
+
}): any;
|
|
36
|
+
'suggest-content'?(_: {
|
|
37
|
+
items: OSearchRecommendItem[];
|
|
38
|
+
keyword: string;
|
|
39
|
+
}): any;
|
|
40
|
+
'recommend-header'?(_: {
|
|
41
|
+
items: string[];
|
|
42
|
+
}): any;
|
|
43
|
+
'recommend-content'?(_: {
|
|
44
|
+
items: string[];
|
|
45
|
+
}): any;
|
|
46
|
+
'history-header'?(_: {
|
|
47
|
+
items: string[];
|
|
48
|
+
}): any;
|
|
49
|
+
'history-content'?(_: {
|
|
50
|
+
items: string[];
|
|
51
|
+
}): any;
|
|
52
|
+
'hot-header'?(_: {
|
|
53
|
+
items: string[];
|
|
54
|
+
}): any;
|
|
55
|
+
'hot-content'?(_: {
|
|
56
|
+
items: string[];
|
|
57
|
+
}): any;
|
|
58
|
+
};
|
|
59
|
+
refs: {};
|
|
60
|
+
rootEl: HTMLDivElement;
|
|
61
|
+
};
|
|
62
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
63
|
+
declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<SearchPanelPropsT, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
|
|
64
|
+
"onestep-click": (item: OSearchRecommendItem) => any;
|
|
65
|
+
"suggest-click": (item: OSearchRecommendItem) => any;
|
|
66
|
+
"recommend-click": (val: string) => any;
|
|
67
|
+
"history-click": (val: string) => any;
|
|
68
|
+
"hot-click": (val: string) => any;
|
|
69
|
+
"history-remove": (val: string) => any;
|
|
70
|
+
"history-clear": () => any;
|
|
71
|
+
"hot-refresh": () => any;
|
|
72
|
+
}, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<SearchPanelPropsT> & Readonly<{
|
|
73
|
+
"onOnestep-click"?: ((item: OSearchRecommendItem) => any) | undefined;
|
|
74
|
+
"onSuggest-click"?: ((item: OSearchRecommendItem) => any) | undefined;
|
|
75
|
+
"onRecommend-click"?: ((val: string) => any) | undefined;
|
|
76
|
+
"onHistory-click"?: ((val: string) => any) | undefined;
|
|
77
|
+
"onHot-click"?: ((val: string) => any) | undefined;
|
|
78
|
+
"onHistory-remove"?: ((val: string) => any) | undefined;
|
|
79
|
+
"onHistory-clear"?: (() => any) | undefined;
|
|
80
|
+
"onHot-refresh"?: (() => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
keyword: string;
|
|
83
|
+
onestepItems: OSearchRecommendItem[];
|
|
84
|
+
suggestItems: OSearchRecommendItem[];
|
|
85
|
+
recommendItems: string[];
|
|
86
|
+
historyItems: string[];
|
|
87
|
+
hotItems: string[];
|
|
88
|
+
highlightKeyword: boolean;
|
|
89
|
+
hideOnKeyword: boolean;
|
|
90
|
+
showSuggestEmpty: boolean;
|
|
91
|
+
isDark: boolean;
|
|
92
|
+
historyLayout: "chips" | "list";
|
|
93
|
+
}, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
94
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
97
|
+
new (): {
|
|
98
|
+
$slots: S;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface OSearchRecommendItem {
|
|
2
|
+
key: string;
|
|
3
|
+
path?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface OSearchPayload {
|
|
8
|
+
keyword: string;
|
|
9
|
+
imageUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OSearchImageUploadErrorPayload {
|
|
12
|
+
file: File;
|
|
13
|
+
error: unknown;
|
|
14
|
+
}
|
|
15
|
+
export type OSearchUploadImageFn = (file: File) => Promise<string>;
|
|
16
|
+
export type OSearchItemClickType = 'history' | 'hot' | 'suggest' | 'onestep';
|
|
17
|
+
export interface OSearchHighlightPart {
|
|
18
|
+
text: string;
|
|
19
|
+
match: boolean;
|
|
20
|
+
}
|