@opendesign-plus/components 0.0.1-rc.24 → 0.0.1-rc.26

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 (80) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +111 -88
  3. package/dist/components/OHeaderSearch.vue.d.ts +814 -534
  4. package/dist/components/OHeaderUser.vue.d.ts +1 -1
  5. package/dist/components/OLanguageSwitcher.vue.d.ts +49 -0
  6. package/dist/components/OThemeSwitcher.vue.d.ts +2 -5
  7. package/dist/components/activity/OActivityMyCalendar.vue.d.ts +4 -4
  8. package/dist/components/activity/index.d.ts +2 -2
  9. package/dist/components/banner/OBanner.vue.d.ts +13 -0
  10. package/dist/components/banner/OBannerContent.vue.d.ts +7 -0
  11. package/dist/components/banner/index.d.ts +68 -0
  12. package/dist/components/banner/types.d.ts +31 -0
  13. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +5 -3
  14. package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +4 -4
  15. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +50 -1
  16. package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +1 -1
  17. package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +16 -1
  18. package/dist/components/meeting/composables/useMeetingConfig.d.ts +1 -1
  19. package/dist/components/meeting/index.d.ts +347 -20
  20. package/dist/components/meeting/types.d.ts +1 -1
  21. package/dist/components/search/OSearchInput.vue.d.ts +1005 -0
  22. package/dist/components/search/composables/useImageSearch.d.ts +48 -0
  23. package/dist/components/search/composables/useKeywordHighlight.d.ts +2 -0
  24. package/dist/components/search/composables/useSearchHistory.d.ts +14 -0
  25. package/dist/components/search/index.d.ts +590 -0
  26. package/dist/components/search/internal/HighlightText.vue.d.ts +9 -0
  27. package/dist/components/search/internal/SearchImageInput.vue.d.ts +716 -0
  28. package/dist/components/search/internal/SearchPanel.vue.d.ts +100 -0
  29. package/dist/components/search/types.d.ts +20 -0
  30. package/dist/components.cjs.js +40 -40
  31. package/dist/components.css +1 -1
  32. package/dist/components.es.js +11352 -10056
  33. package/dist/index.d.ts +4 -2
  34. package/package.json +4 -4
  35. package/scripts/generate-components-index.js +1 -1
  36. package/src/assets/styles/element-plus.scss +16 -9
  37. package/src/assets/svg-icons/icon-delete-hover.svg +4 -0
  38. package/src/assets/svg-icons/icon-delete.svg +5 -1
  39. package/src/assets/svg-icons/icon-image-close.svg +4 -0
  40. package/src/assets/svg-icons/icon-image-upload.svg +3 -0
  41. package/src/assets/svg-icons/icon-image-zoomin.svg +3 -0
  42. package/src/assets/svg-icons/icon-refresh.svg +3 -0
  43. package/src/components/OHeaderSearch.vue +445 -418
  44. package/src/components/OLanguageSwitcher.vue +211 -0
  45. package/src/components/OPlusConfigProvider.vue +2 -2
  46. package/src/components/OThemeSwitcher.vue +51 -27
  47. package/src/components/activity/OActivityForm.vue +7 -3
  48. package/src/components/activity/OActivityMyCalendar.vue +16 -7
  49. package/src/components/banner/OBanner.vue +288 -0
  50. package/src/components/banner/OBannerContent.vue +175 -0
  51. package/src/components/banner/index.ts +18 -0
  52. package/src/components/banner/types.ts +39 -0
  53. package/src/components/header/OHeader.vue +1 -1
  54. package/src/components/meeting/OMeetingCalendar.vue +11 -6
  55. package/src/components/meeting/OMeetingForm.vue +55 -9
  56. package/src/components/meeting/OMeetingMyCalendar.vue +17 -14
  57. package/src/components/meeting/OMeetingPlayback.vue +10 -4
  58. package/src/components/meeting/OMeetingSigCalendar.vue +1 -1
  59. package/src/components/meeting/components/OMeetingCalendarList.vue +57 -21
  60. package/src/components/meeting/components/OMeetingCalendarSelector.vue +11 -8
  61. package/src/components/meeting/components/OMeetingDetail.vue +1 -1
  62. package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +7 -4
  63. package/src/components/meeting/composables/useMeetingConfig.ts +5 -5
  64. package/src/components/meeting/index.ts +2 -2
  65. package/src/components/meeting/types.ts +1 -1
  66. package/src/components/search/OSearchInput.vue +526 -0
  67. package/src/components/search/composables/useImageSearch.ts +157 -0
  68. package/src/components/search/composables/useKeywordHighlight.ts +30 -0
  69. package/src/components/search/composables/useSearchHistory.ts +75 -0
  70. package/src/components/search/index.ts +23 -0
  71. package/src/components/search/internal/HighlightText.vue +37 -0
  72. package/src/components/search/internal/SearchImageInput.vue +498 -0
  73. package/src/components/search/internal/SearchPanel.vue +431 -0
  74. package/src/components/search/types.ts +25 -0
  75. package/src/i18n/en.ts +13 -1
  76. package/src/i18n/zh.ts +14 -3
  77. package/src/index.ts +5 -3
  78. package/vite.config.ts +4 -0
  79. package/dist/components/OBanner.vue.d.ts +0 -11
  80. package/src/components/OBanner.vue +0 -398
@@ -0,0 +1,431 @@
1
+ <script setup lang="ts">
2
+ import { computed } from 'vue';
3
+ import { OIcon } from '@opensig/opendesign';
4
+ import IconDelete from '~icons/components/icon-delete-hover.svg';
5
+ import IconDeleteAll from '~icons/components/icon-delete.svg';
6
+ import IconRefresh from '~icons/components/icon-refresh.svg';
7
+ import HighlightText from './HighlightText.vue';
8
+ import { useI18n } from '@/i18n';
9
+ import type { OSearchRecommendItem } from '../types';
10
+
11
+ export interface SearchPanelPropsT {
12
+ keyword?: string;
13
+ onestepItems?: OSearchRecommendItem[];
14
+ onestepTitle?: string;
15
+ suggestItems?: OSearchRecommendItem[];
16
+ suggestTitle?: string;
17
+ recommendItems?: string[];
18
+ historyItems?: string[];
19
+ historyTitle?: string;
20
+ hotItems?: string[];
21
+ hotTitle?: string;
22
+ noDataText?: string;
23
+ highlightKeyword?: boolean;
24
+ /** When true, show history+hot sections only if keyword is empty */
25
+ hideOnKeyword?: boolean;
26
+ /** When true, show suggest empty state ("no data") even when list is empty */
27
+ showSuggestEmpty?: boolean;
28
+ isDark?: boolean;
29
+ /** 'chips' = tag-cloud (header dropdown), 'list' = full-width rows (page search) */
30
+ historyLayout?: 'chips' | 'list';
31
+ }
32
+
33
+ const props = withDefaults(defineProps<SearchPanelPropsT>(), {
34
+ keyword: '',
35
+ onestepItems: () => [],
36
+ suggestItems: () => [],
37
+ recommendItems: () => [],
38
+ historyItems: () => [],
39
+ hotItems: () => [],
40
+ highlightKeyword: true,
41
+ hideOnKeyword: false,
42
+ showSuggestEmpty: false,
43
+ isDark: false,
44
+ historyLayout: 'chips',
45
+ });
46
+
47
+ const emit = defineEmits<{
48
+ (e: 'onestep-click', item: OSearchRecommendItem): void;
49
+ (e: 'suggest-click', item: OSearchRecommendItem): void;
50
+ (e: 'recommend-click', val: string): void;
51
+ (e: 'history-click', val: string): void;
52
+ (e: 'hot-click', val: string): void;
53
+ (e: 'history-remove', val: string): void;
54
+ (e: 'history-clear'): void;
55
+ (e: 'hot-refresh'): void;
56
+ }>();
57
+
58
+ const { t } = useI18n();
59
+
60
+ const hasKeyword = computed(() => !!props.keyword?.trim());
61
+
62
+ const showOnestep = computed(() => hasKeyword.value && props.onestepItems.length > 0);
63
+ const showSuggest = computed(() => hasKeyword.value && (props.suggestItems.length > 0 || props.showSuggestEmpty));
64
+ const showRecommend = computed(
65
+ () => !hasKeyword.value && props.recommendItems.length > 0
66
+ );
67
+ const showHistory = computed(
68
+ () => (!props.hideOnKeyword || !hasKeyword.value) && props.historyItems.length > 0
69
+ );
70
+ const showHot = computed(
71
+ () => (!props.hideOnKeyword || !hasKeyword.value) && props.hotItems.length > 0
72
+ );
73
+
74
+ const showSuggestDivider = computed(() => showOnestep.value && showSuggest.value);
75
+ const showHistoryHotDivider = computed(() => showHistory.value && showHot.value);
76
+ </script>
77
+
78
+ <template>
79
+ <div class="o-search-panel">
80
+ <!-- ONESTEP / 搜索直达 -->
81
+ <div v-if="showOnestep" class="o-search-panel-section o-search-panel-onestep">
82
+ <slot name="onestep-header" :items="onestepItems">
83
+ <div class="o-search-panel-section-title onestep">{{ onestepTitle ?? t('search.onestep') }}</div>
84
+ </slot>
85
+ <slot name="onestep-content" :items="onestepItems" :keyword="keyword">
86
+ <div
87
+ v-for="item in onestepItems"
88
+ :key="item.key + (item.path ?? '')"
89
+ class="o-search-panel-item o-search-panel-onestep-item"
90
+ @click="emit('onestep-click', item)"
91
+ >
92
+ <HighlightText :text="item.key" :keyword="keyword" :enabled="highlightKeyword" />
93
+ <span v-if="item.type" class="o-search-panel-onestep-tag">{{ item.type }}</span>
94
+ </div>
95
+ </slot>
96
+ </div>
97
+
98
+ <div v-if="showSuggestDivider" class="o-search-panel-divider"></div>
99
+
100
+ <!-- SUGGEST / 搜索建议 (rich items) -->
101
+ <div v-if="showSuggest" class="o-search-panel-section o-search-panel-suggest">
102
+ <slot name="suggest-header" :items="suggestItems">
103
+ <div class="o-search-panel-section-title suggest">{{ suggestTitle ?? t('search.suggest') }}</div>
104
+ </slot>
105
+ <slot name="suggest-content" :items="suggestItems" :keyword="keyword">
106
+ <template v-if="suggestItems.length">
107
+ <div
108
+ v-for="item in suggestItems"
109
+ :key="item.key"
110
+ class="o-search-panel-item"
111
+ @click="emit('suggest-click', item)"
112
+ >
113
+ <HighlightText :text="item.key" :keyword="keyword" :enabled="highlightKeyword" />
114
+ </div>
115
+ </template>
116
+ <div v-else class="o-search-panel-no-data">{{ noDataText ?? t('search.noData') }}</div>
117
+ </slot>
118
+ </div>
119
+
120
+ <!-- RECOMMEND (legacy plain string list, shown when no keyword) -->
121
+ <div v-if="showRecommend" class="o-search-panel-section o-search-panel-recommend">
122
+ <slot name="recommend-header" :items="recommendItems" />
123
+ <slot name="recommend-content" :items="recommendItems">
124
+ <div
125
+ v-for="item in recommendItems"
126
+ :key="item"
127
+ class="o-search-panel-recommend-item"
128
+ @click="emit('recommend-click', item)"
129
+ >
130
+ {{ item }}
131
+ </div>
132
+ </slot>
133
+ </div>
134
+
135
+ <!-- HISTORY / 历史记录 -->
136
+ <div v-if="showHistory" class="o-search-panel-section o-search-panel-history">
137
+ <slot name="history-header" :items="historyItems">
138
+ <div class="o-search-panel-common-header">
139
+ <span class="o-search-panel-section-title">{{ historyTitle ?? t('search.history') }}</span>
140
+ <OIcon v-if="historyLayout !== 'list'" class="o-search-panel-icon" @click.stop="emit('history-clear')">
141
+ <IconDeleteAll />
142
+ </OIcon>
143
+ </div>
144
+ </slot>
145
+ <slot name="history-content" :items="historyItems">
146
+ <!-- list layout: full-width rows, no delete icon -->
147
+ <template v-if="historyLayout === 'list'">
148
+ <div
149
+ v-for="item in historyItems"
150
+ :key="item"
151
+ class="o-search-panel-history-row"
152
+ @click="emit('history-click', item)"
153
+ >
154
+ <span class="o-search-panel-history-row-text">{{ item }}</span>
155
+ </div>
156
+ </template>
157
+ <!-- chips layout (default): tag-cloud -->
158
+ <template v-else>
159
+ <div class="o-search-panel-history-list">
160
+ <div
161
+ v-for="item in historyItems"
162
+ :key="item"
163
+ class="o-search-panel-history-item"
164
+ :class="{ 'is-dark': isDark }"
165
+ @click="emit('history-click', item)"
166
+ >
167
+ <span class="o-search-panel-history-text">{{ item }}</span>
168
+ <OIcon class="o-search-panel-history-remove" @click.stop="emit('history-remove', item)">
169
+ <IconDelete />
170
+ </OIcon>
171
+ </div>
172
+ </div>
173
+ </template>
174
+ </slot>
175
+ </div>
176
+
177
+ <div v-if="showHistoryHotDivider" class="o-search-panel-divider"></div>
178
+
179
+ <!-- HOT / 热门搜索 -->
180
+ <div v-if="showHot" class="o-search-panel-section o-search-panel-hot">
181
+ <slot name="hot-header" :items="hotItems">
182
+ <div class="o-search-panel-common-header">
183
+ <div class="o-search-panel-section-title">{{ hotTitle ?? t('search.hot') }}</div>
184
+ <OIcon class="o-search-panel-icon" @click.stop="emit('hot-refresh')">
185
+ <IconRefresh />
186
+ </OIcon>
187
+ </div>
188
+ </slot>
189
+ <slot name="hot-content" :items="hotItems">
190
+ <div class="o-search-panel-hot-list">
191
+ <div
192
+ v-for="item in hotItems"
193
+ :key="item"
194
+ class="o-search-panel-hot-item"
195
+ @click="emit('hot-click', item)"
196
+ >
197
+ {{ item }}
198
+ </div>
199
+ </div>
200
+ </slot>
201
+ </div>
202
+ </div>
203
+ </template>
204
+
205
+ <style lang="scss" scoped>
206
+ .o-search-panel {
207
+ display: flex;
208
+ flex-direction: column;
209
+ gap: var(--o-gap-4);
210
+ }
211
+
212
+ .o-search-panel-section + .o-search-panel-section {
213
+ // sections rely on explicit dividers / gap from parent
214
+ }
215
+
216
+ .o-search-panel-section-title {
217
+
218
+ &.suggest,
219
+ &.onestep {
220
+ margin-bottom: var(--o-gap-3);
221
+ }
222
+
223
+ @include tip1;
224
+ color: var(--o-color-info3);
225
+ font-weight: 400;
226
+
227
+ @include respond-to('<=pad_v') {
228
+ color: var(--o-color-info1);
229
+ @include text2;
230
+ }
231
+ }
232
+
233
+ .o-search-panel-item {
234
+ @include tip1;
235
+ padding: 5px var(--o-gap-3);
236
+ cursor: pointer;
237
+ color: var(--o-color-info1);
238
+ border-radius: var(--o-radius-xs);
239
+ margin: 0 calc(-1 * var(--o-gap-3));
240
+
241
+ &:hover {
242
+ background-color: var(--o-color-control2-light);
243
+ }
244
+
245
+ &:active {
246
+ background-color: var(--o-color-control3-light);
247
+ }
248
+
249
+ @include respond-to('<=pad_v') {
250
+ @include text1;
251
+ }
252
+ }
253
+
254
+ .o-search-panel-onestep-item {
255
+ display: flex;
256
+ align-items: center;
257
+ white-space: pre-wrap;
258
+ }
259
+
260
+ .o-search-panel-onestep-tag {
261
+ @include tip2;
262
+ height: 20px;
263
+ display: inline-flex;
264
+ align-items: center;
265
+ padding: 1px 8px;
266
+ border-radius: 4px;
267
+ font-weight: 400;
268
+ margin-left: 8px;
269
+ border: 1px solid var(--o-color-control4);
270
+ color: var(--o-color-info3);
271
+ }
272
+
273
+ .o-search-panel-no-data {
274
+ @include tip2;
275
+ color: var(--o-color-info3);
276
+ padding: 0 8px;
277
+
278
+ @include respond-to('<=pad_v') {
279
+ @include text1;
280
+ }
281
+ }
282
+
283
+ .o-search-panel-recommend-item {
284
+ @include tip1;
285
+ padding: 5px 8px;
286
+ cursor: pointer;
287
+ color: var(--o-color-info1);
288
+ border-radius: var(--o-radius-xs);
289
+
290
+ &:hover {
291
+ background-color: var(--o-color-control2-light);
292
+ }
293
+ }
294
+
295
+ .o-search-panel-divider {
296
+ background: var(--o-color-control4);
297
+ width: 100%;
298
+ height: 1px;
299
+
300
+ @include respond-to('<=pad_v') {
301
+ display: none;
302
+ }
303
+ }
304
+
305
+ .o-search-panel-common-header {
306
+ display: flex;
307
+ align-items: center;
308
+ justify-content: space-between;
309
+ }
310
+
311
+ .o-search-panel-icon {
312
+ cursor: pointer;
313
+ color: var(--o-color-info1);
314
+ font-size: 16px;
315
+
316
+ &:hover {
317
+ color: var(--o-color-primary1);
318
+ }
319
+ }
320
+
321
+ .o-search-panel-history-list {
322
+ display: flex;
323
+ gap: 8px;
324
+ flex-wrap: wrap;
325
+ margin-top: var(--o-gap-3);
326
+ }
327
+
328
+ // ---- chips layout ----
329
+ .o-search-panel-history-item {
330
+ position: relative;
331
+ display: flex;
332
+ align-items: center;
333
+ max-width: 224px;
334
+ height: 24px;
335
+ padding: 3px var(--o-gap-3);
336
+ background-color: var(--o-color-control2-light);
337
+ border-radius: var(--o-radius-xs);
338
+ color: var(--o-color-info1);
339
+ cursor: pointer;
340
+
341
+ @include hover {
342
+ background-color: var(--o-color-control3-light);
343
+ color: var(--o-color-primary1);
344
+
345
+ .o-search-panel-history-remove {
346
+ display: inline-flex;
347
+ }
348
+ }
349
+
350
+ &.is-dark {
351
+ @include hover {
352
+ background-color: rgb(var(--o-mixedgray-7));
353
+ }
354
+ }
355
+
356
+ @include respond-to('<=pad_v') {
357
+ height: 28px;
358
+ }
359
+ }
360
+
361
+ .o-search-panel-history-text {
362
+ max-width: 200px;
363
+ overflow: hidden;
364
+ text-overflow: ellipsis;
365
+ white-space: nowrap;
366
+ @include tip2;
367
+
368
+ @include respond-to('<=pad_v') {
369
+ @include text1;
370
+ }
371
+ }
372
+
373
+ .o-search-panel-history-remove {
374
+ position: absolute;
375
+ right: -8px;
376
+ top: -8px;
377
+ display: none;
378
+ align-items: center;
379
+ justify-content: center;
380
+ width: 16px;
381
+ height: 16px;
382
+
383
+ :deep(svg) {
384
+ width: 16px;
385
+ height: 16px;
386
+ }
387
+ }
388
+
389
+ // ---- list layout ----
390
+ .o-search-panel-history-row {
391
+ padding: 4px 8px;
392
+ border-radius: var(--o-radius-xs);
393
+ cursor: pointer;
394
+ color: var(--o-color-info1);
395
+ overflow: hidden;
396
+ text-overflow: ellipsis;
397
+ white-space: nowrap;
398
+ @include tip1;
399
+
400
+ @include hover {
401
+ background-color: var(--o-color-control2-light);
402
+ color: var(--o-color-primary1);
403
+ }
404
+ }
405
+
406
+ .o-search-panel-hot-list {
407
+ display: flex;
408
+ flex-wrap: wrap;
409
+ gap: var(--o-gap-3) var(--o-gap-4);
410
+ margin-top: var(--o-gap-3);
411
+ @include tip1;
412
+
413
+ @include respond-to('<=pad_v') {
414
+ display: block;
415
+ @include text1;
416
+ }
417
+ }
418
+
419
+ .o-search-panel-hot-item {
420
+ color: var(--o-color-info1);
421
+ cursor: pointer;
422
+
423
+ @include respond-to('<=pad_v') {
424
+ margin-top: var(--o-gap-3);
425
+ }
426
+
427
+ @include hover {
428
+ color: var(--o-color-primary1);
429
+ }
430
+ }
431
+ </style>
@@ -0,0 +1,25 @@
1
+ export interface OSearchRecommendItem {
2
+ key: string;
3
+ path?: string;
4
+ type?: string;
5
+ count?: number;
6
+ }
7
+
8
+ export interface OSearchPayload {
9
+ keyword: string;
10
+ imageUrl?: string;
11
+ }
12
+
13
+ export interface OSearchImageUploadErrorPayload {
14
+ file: File;
15
+ error: unknown;
16
+ }
17
+
18
+ export type OSearchUploadImageFn = (file: File) => Promise<string>;
19
+
20
+ export type OSearchItemClickType = 'history' | 'hot' | 'suggest' | 'onestep';
21
+
22
+ export interface OSearchHighlightPart {
23
+ text: string;
24
+ match: boolean;
25
+ }
package/src/i18n/en.ts CHANGED
@@ -4,6 +4,16 @@ export default {
4
4
  'search.placeholder': 'Please enter the content',
5
5
  'search.expandedPlaceholder': 'Please enter the content',
6
6
  'search.history': 'History',
7
+ 'search.imagePlaceholder': 'Search by text or upload image of any error',
8
+ 'search.extendedPlaceholder': 'Press Enter to start, or refine your search with more info',
9
+ 'search.imageUploadTooltip': 'JPG, PNG, JPEG supported (max 10 MB)',
10
+ 'search.imageUploadFailed': 'Upload failed. Check connection and try again.',
11
+ 'search.imageSizeExceeded': 'Image size exceeds the limit',
12
+ 'search.imageInvalidType': 'Please upload an image file',
13
+ 'search.onestep': 'Quick Navigation',
14
+ 'search.suggest': 'Suggestions',
15
+ 'search.noData': 'No data',
16
+ 'search.suggestListLabel': 'Did you mean: ',
7
17
  'meeting.audioToText': 'Speech to Text',
8
18
  'meeting.item1': 'Convener: ',
9
19
  'meeting.item2': 'SIG: ',
@@ -105,8 +115,10 @@ export default {
105
115
  'meeting.meetingDate': 'Date',
106
116
  'meeting.startTime': 'Start time',
107
117
  'meeting.endTime': 'End time',
108
- 'meeting.meetingRecord': 'Recording',
118
+ 'meeting.meetingRecord': 'AI Recording',
109
119
  'meeting.meetingRecordDesc': 'Enables auto screen recording. This service is provided by {0} Meeting. AI-powered playback will be automatically uploaded within one working day.',
120
+ 'meeting.meetingRecordDesc1': '1. Meeting AI recording is now enabled. Turning on Meeting AI Listen automatically activates cloud recording as well. After the meeting, you can replay the recording, and voice-to-text transcripts along with AI meeting minutes will be automatically generated.',
121
+ 'meeting.meetingRecordDesc2': '2. The AI-generated meeting replay link will be automatically generated and uploaded within 1 business day.',
110
122
  'meeting.day0': 'day(s)',
111
123
  'meeting.week0': 'week(s)',
112
124
  'meeting.month0': 'month(s)',
package/src/i18n/zh.ts CHANGED
@@ -4,6 +4,16 @@ export default {
4
4
  'search.placeholder': '搜索',
5
5
  'search.expandedPlaceholder': '请输入搜索内容',
6
6
  'search.history': '历史搜索',
7
+ 'search.imagePlaceholder': '输入文字搜索,支持粘贴或上传报错截图',
8
+ 'search.extendedPlaceholder': '按下回车立即搜索,或补充更多信息进行搜索',
9
+ 'search.imageUploadTooltip': '报错截图搜索,支持jpg、png、jpeg等,最大10M',
10
+ 'search.imageUploadFailed': '图片上传失败,请检查网络后重试',
11
+ 'search.imageSizeExceeded': '图片大小超出限制',
12
+ 'search.imageInvalidType': '请上传图片文件',
13
+ 'search.onestep': '导航搜索直达',
14
+ 'search.suggest': '搜索建议',
15
+ 'search.noData': '暂无数据',
16
+ 'search.suggestListLabel': '您是不是在寻找:',
7
17
  'meeting.audioToText': '语音转文字',
8
18
  'meeting.item1': '发起人:',
9
19
  'meeting.item2': 'SIG组:',
@@ -32,7 +42,7 @@ export default {
32
42
  'meeting.cycleMeetingText': '{startDate} 至 {endDate} {cycleType} {startTime} 到 {endTime}的周期会议',
33
43
  'meeting.cycleMeetingText2': '{cycleType} {startTime} 到 {endTime} (UTC+08:00)Beijing 有效期从{startDate} 至 {endDate}',
34
44
  'meeting.cycleDay': '每天',
35
- 'meeting.cycleWeek.one': '{1}周{0}',
45
+ 'meeting.cycleWeek.one': '每周{0}',
36
46
  'meeting.cycleWeek.other': '每{1}周{0}',
37
47
  'meeting.cycleSplit': '、',
38
48
  'meeting.cycleMonth': '每月{0}号',
@@ -105,8 +115,9 @@ export default {
105
115
  'meeting.meetingDate': '会议日期',
106
116
  'meeting.startTime': '开始时间',
107
117
  'meeting.endTime': '结束时间',
108
- 'meeting.meetingRecord': '会议录制',
109
- 'meeting.meetingRecordDesc': '开启后将自动录屏,本服务由{0}会议提供。并将在1个工作日内自动上传会议AI版本的链接回放。',
118
+ 'meeting.meetingRecord': '会议AI录制',
119
+ 'meeting.meetingRecordDesc1': '1、会议AI录制已开启,开启会议AI听即开启云录制,会后可回放会议录制并生成语音文字和AI纪要。',
120
+ 'meeting.meetingRecordDesc2': '2、AI生成的会议回放链接将在 1 个工作日内自动生成并上传。',
110
121
  'meeting.day0': '天',
111
122
  'meeting.week0': '周',
112
123
  'meeting.month0': '月',
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  // OpenDesignPlus Components 库入口文件
2
2
  // 此文件由 scripts/generate-components-index.js 自动生成
3
3
 
4
- import OBanner from './components/OBanner.vue';
5
4
  import OCookieNotice from './components/OCookieNotice.vue';
6
5
  import OFooter from './components/OFooter.vue';
7
6
  import OHeaderSearch from './components/OHeaderSearch.vue';
8
7
  import OHeaderUser from './components/OHeaderUser.vue';
8
+ import OLanguageSwitcher from './components/OLanguageSwitcher.vue';
9
9
  import OPlusConfigProvider from './components/OPlusConfigProvider.vue';
10
10
  import OSection from './components/OSection.vue';
11
11
  import OSourceCode from './components/OSourceCode.vue';
@@ -13,11 +13,11 @@ import OThemeSwitcher from './components/OThemeSwitcher.vue';
13
13
 
14
14
  // 导出组件
15
15
  const components = {
16
- OBanner,
17
16
  OCookieNotice,
18
17
  OFooter,
19
18
  OHeaderSearch,
20
19
  OHeaderUser,
20
+ OLanguageSwitcher,
21
21
  OPlusConfigProvider,
22
22
  OSection,
23
23
  OSourceCode,
@@ -25,14 +25,16 @@ const components = {
25
25
  };
26
26
 
27
27
  // 导出单个组件
28
- export { OBanner, OCookieNotice, OFooter, OHeaderSearch, OHeaderUser, OPlusConfigProvider, OSection, OSourceCode, OThemeSwitcher };
28
+ export { OCookieNotice, OFooter, OHeaderSearch, OHeaderUser, OLanguageSwitcher, OPlusConfigProvider, OSection, OSourceCode, OThemeSwitcher };
29
29
 
30
30
  // 重新导出子目录中的组件
31
31
  export * from './components/activity';
32
+ export * from './components/banner';
32
33
  export * from './components/element-plus';
33
34
  export * from './components/events';
34
35
  export * from './components/header';
35
36
  export * from './components/meeting';
37
+ export * from './components/search';
36
38
 
37
39
  // 默认导出(用于Vue插件安装)
38
40
  export default {
package/vite.config.ts CHANGED
@@ -36,6 +36,10 @@ export default defineConfig(({ mode }) => {
36
36
  ) {
37
37
  return false;
38
38
  }
39
+ // locale 子路径打包进库,避免消费方路径解析问题
40
+ if (id.startsWith('@opensig/opendesign/es/locale/')) {
41
+ return false;
42
+ }
39
43
  // element-plus JS 保持外部化
40
44
  if (/^element-plus/.test(id)) return true;
41
45
  // 其他外部依赖
@@ -1,11 +0,0 @@
1
- type __VLS_Props = {
2
- options: any;
3
- size: string;
4
- contentJustifyCenter: boolean;
5
- };
6
- declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- options: any;
8
- size: string;
9
- contentJustifyCenter: boolean;
10
- }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
- export default _default;