@opendesign-plus-test/components 0.0.1-rc.43 → 0.0.1-rc.45

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.
Files changed (83) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +67 -47
  3. package/dist/components/OHeaderSearch.vue.d.ts +822 -500
  4. package/dist/components/activity/OMyActivityCalendar.vue.d.ts +86 -24
  5. package/dist/components/activity/index.d.ts +43 -12
  6. package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +86 -24
  7. package/dist/components/meeting/index.d.ts +43 -12
  8. package/dist/components/search/OSearchInput.vue.d.ts +1003 -0
  9. package/dist/components/search/composables/useImageSearch.d.ts +48 -0
  10. package/dist/components/search/composables/useKeywordHighlight.d.ts +2 -0
  11. package/dist/components/search/composables/useSearchHistory.d.ts +14 -0
  12. package/dist/components/search/index.d.ts +590 -0
  13. package/dist/components/search/internal/HighlightText.vue.d.ts +9 -0
  14. package/dist/components/search/internal/SearchImageInput.vue.d.ts +716 -0
  15. package/dist/components/search/internal/SearchPanel.vue.d.ts +100 -0
  16. package/dist/components/search/types.d.ts +20 -0
  17. package/dist/components.cjs.js +41 -41
  18. package/dist/components.css +1 -1
  19. package/dist/components.es.js +11228 -10253
  20. package/dist/index.d.ts +1 -0
  21. package/package.json +3 -3
  22. package/src/assets/svg-icons/icon-delete-hover.svg +4 -0
  23. package/src/assets/svg-icons/icon-delete.svg +5 -1
  24. package/src/assets/svg-icons/icon-image-close.svg +4 -0
  25. package/src/assets/svg-icons/icon-image-upload.svg +3 -0
  26. package/src/assets/svg-icons/icon-image-zoomin.svg +3 -0
  27. package/src/assets/svg-icons/icon-refresh.svg +3 -0
  28. package/src/components/OBanner.vue +18 -18
  29. package/src/components/OCookieNotice.vue +21 -21
  30. package/src/components/OFooter.vue +18 -17
  31. package/src/components/OHeaderSearch.vue +402 -420
  32. package/src/components/OHeaderUser.vue +3 -2
  33. package/src/components/OSection.vue +4 -4
  34. package/src/components/activity/OActivityApproval.vue +4 -4
  35. package/src/components/activity/OActivityForm.vue +2 -2
  36. package/src/components/activity/OMyActivityCalendar.vue +26 -26
  37. package/src/components/activity/config.ts +1 -1
  38. package/src/components/common/ContentWrapper.vue +3 -3
  39. package/src/components/element-plus/OElCookieNotice.vue +26 -26
  40. package/src/components/events/OEventsApply.vue +44 -44
  41. package/src/components/events/OEventsCalendar.vue +14 -14
  42. package/src/components/events/OEventsList.vue +16 -16
  43. package/src/components/header/OHeader.vue +2 -2
  44. package/src/components/header/components/HeaderContent.vue +60 -60
  45. package/src/components/header/components/HeaderNav.vue +4 -4
  46. package/src/components/header/components/HeaderNavMobile.vue +3 -3
  47. package/src/components/meeting/OMeetingCalendar.vue +27 -27
  48. package/src/components/meeting/OMeetingForm.vue +16 -16
  49. package/src/components/meeting/OMeetingPlayback.vue +4 -4
  50. package/src/components/meeting/OMyMeetingCalendar.vue +25 -25
  51. package/src/components/meeting/OSigMeetingCalendar.vue +3 -3
  52. package/src/components/meeting/components/OMeetingCalendarList.vue +9 -9
  53. package/src/components/meeting/components/OMeetingDetail.vue +2 -2
  54. package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +1 -1
  55. package/src/components/meeting/components/OMeetingPlaybackVideo.vue +5 -5
  56. package/src/components/meeting/components/OSigMeetingAside.vue +6 -6
  57. package/src/components/search/OSearchInput.vue +463 -0
  58. package/src/components/search/composables/useImageSearch.ts +157 -0
  59. package/src/components/search/composables/useKeywordHighlight.ts +30 -0
  60. package/src/components/search/composables/useSearchHistory.ts +75 -0
  61. package/src/components/search/index.ts +23 -0
  62. package/src/components/search/internal/HighlightText.vue +37 -0
  63. package/src/components/search/internal/SearchImageInput.vue +488 -0
  64. package/src/components/search/internal/SearchPanel.vue +430 -0
  65. package/src/components/search/types.ts +25 -0
  66. package/src/draft/Banner.vue +6 -6
  67. package/src/draft/ButtonCards.vue +1 -1
  68. package/src/draft/Feature.vue +6 -6
  69. package/src/draft/Footer.vue +29 -22
  70. package/src/draft/HorizontalAnchor.vue +4 -4
  71. package/src/draft/ItemSwiper.vue +2 -2
  72. package/src/draft/Logo.vue +3 -3
  73. package/src/draft/LogoCard.vue +2 -2
  74. package/src/draft/MultiCard.vue +1 -1
  75. package/src/draft/MultiIconCard.vue +1 -1
  76. package/src/draft/OInfoCard.vue +4 -4
  77. package/src/draft/Section.vue +4 -4
  78. package/src/draft/SingleTabCard.vue +1 -1
  79. package/src/draft/SliderCard.vue +4 -3
  80. package/src/i18n/en.ts +10 -0
  81. package/src/i18n/zh.ts +10 -0
  82. package/src/index.ts +1 -0
  83. package/vite.config.ts +1 -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
+ }