@opendesign-plus-test/components 0.0.1-rc.51 → 0.0.1-rc.53

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 (73) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +49 -69
  3. package/dist/components/OHeaderSearch.vue.d.ts +534 -814
  4. package/dist/components/OThemeSwitcher.vue.d.ts +2 -5
  5. package/dist/components/activity/index.d.ts +2 -2
  6. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +3 -1
  7. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +50 -1
  8. package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +16 -1
  9. package/dist/components/meeting/composables/useMeetingConfig.d.ts +1 -1
  10. package/dist/components/meeting/index.d.ts +17 -7
  11. package/dist/components/meeting/types.d.ts +1 -1
  12. package/dist/components.cjs.js +42 -42
  13. package/dist/components.css +1 -1
  14. package/dist/components.es.js +10590 -11551
  15. package/dist/index.d.ts +0 -1
  16. package/package.json +2 -4
  17. package/src/assets/styles/element-plus.scss +211 -0
  18. package/src/assets/svg-icons/icon-delete.svg +1 -5
  19. package/src/components/OHeaderSearch.vue +415 -437
  20. package/src/components/OThemeSwitcher.vue +51 -27
  21. package/src/components/activity/OActivityApproval.vue +10 -6
  22. package/src/components/activity/OActivityForm.vue +12 -6
  23. package/src/components/activity/{OMyActivityCalendar.vue → OActivityMyCalendar.vue} +59 -28
  24. package/src/components/activity/index.ts +4 -4
  25. package/src/components/events/OEventsApply.vue +2 -1
  26. package/src/components/events/OEventsCalendar.vue +7 -5
  27. package/src/components/events/OEventsList.vue +6 -4
  28. package/src/components/meeting/OMeetingCalendar.vue +26 -18
  29. package/src/components/meeting/OMeetingForm.vue +61 -17
  30. package/src/components/meeting/{OMyMeetingCalendar.vue → OMeetingMyCalendar.vue} +90 -52
  31. package/src/components/meeting/OMeetingPlayback.vue +42 -12
  32. package/src/components/meeting/{OSigMeetingCalendar.vue → OMeetingSigCalendar.vue} +7 -4
  33. package/src/components/meeting/components/OMeetingCalendarList.vue +60 -24
  34. package/src/components/meeting/components/OMeetingCalendarSelector.vue +12 -9
  35. package/src/components/meeting/components/OMeetingDetail.vue +1 -1
  36. package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +17 -13
  37. package/src/components/meeting/components/OMeetingPlaybackVideo.vue +6 -6
  38. package/src/components/meeting/components/{OSigMeetingAside.vue → OMeetingSigAside.vue} +1 -1
  39. package/src/components/meeting/composables/useMeetingConfig.ts +5 -5
  40. package/src/components/meeting/config.ts +1 -1
  41. package/src/components/meeting/index.ts +8 -8
  42. package/src/components/meeting/types.ts +1 -1
  43. package/src/i18n/en.ts +2 -12
  44. package/src/i18n/zh.ts +1 -11
  45. package/src/index.ts +0 -1
  46. package/vite.config.ts +1 -5
  47. package/dist/components/search/OSearchInput.vue.d.ts +0 -1003
  48. package/dist/components/search/composables/useImageSearch.d.ts +0 -48
  49. package/dist/components/search/composables/useKeywordHighlight.d.ts +0 -2
  50. package/dist/components/search/composables/useSearchHistory.d.ts +0 -14
  51. package/dist/components/search/index.d.ts +0 -590
  52. package/dist/components/search/internal/HighlightText.vue.d.ts +0 -9
  53. package/dist/components/search/internal/SearchImageInput.vue.d.ts +0 -716
  54. package/dist/components/search/internal/SearchPanel.vue.d.ts +0 -100
  55. package/dist/components/search/types.d.ts +0 -20
  56. package/src/assets/svg-icons/icon-delete-hover.svg +0 -4
  57. package/src/assets/svg-icons/icon-image-close.svg +0 -4
  58. package/src/assets/svg-icons/icon-image-upload.svg +0 -3
  59. package/src/assets/svg-icons/icon-image-zoomin.svg +0 -3
  60. package/src/assets/svg-icons/icon-refresh.svg +0 -3
  61. package/src/components/search/OSearchInput.vue +0 -463
  62. package/src/components/search/composables/useImageSearch.ts +0 -157
  63. package/src/components/search/composables/useKeywordHighlight.ts +0 -30
  64. package/src/components/search/composables/useSearchHistory.ts +0 -75
  65. package/src/components/search/index.ts +0 -23
  66. package/src/components/search/internal/HighlightText.vue +0 -37
  67. package/src/components/search/internal/SearchImageInput.vue +0 -488
  68. package/src/components/search/internal/SearchPanel.vue +0 -430
  69. package/src/components/search/types.ts +0 -25
  70. /package/dist/components/activity/{OMyActivityCalendar.vue.d.ts → OActivityMyCalendar.vue.d.ts} +0 -0
  71. /package/dist/components/meeting/{OMyMeetingCalendar.vue.d.ts → OMeetingMyCalendar.vue.d.ts} +0 -0
  72. /package/dist/components/meeting/{OSigMeetingCalendar.vue.d.ts → OMeetingSigCalendar.vue.d.ts} +0 -0
  73. /package/dist/components/meeting/components/{OSigMeetingAside.vue.d.ts → OMeetingSigAside.vue.d.ts} +0 -0
@@ -286,6 +286,10 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
286
286
  }
287
287
  return false;
288
288
  };
289
+
290
+ defineExpose({
291
+ refresh: getDateData,
292
+ });
289
293
  </script>
290
294
  <template>
291
295
  <div class="o-meeting-calendar">
@@ -372,7 +376,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
372
376
  >
373
377
  <OOption v-for="t in groups" :value="t" :key="t">{{ t }}</OOption>
374
378
  </OSelect>
375
- <OTab v-model="tabType" :line="false">
379
+ <OTab v-model="tabType" :line="false" :max-show="9999">
376
380
  <OTabPane v-for="item in tabs" :key="item.value" :value="item.value">
377
381
  <template #nav>
378
382
  <OIcon>
@@ -402,11 +406,14 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
402
406
  </template>
403
407
  <style lang="scss">
404
408
  .o-meeting-calendar {
409
+ --meeting-card-radius: var(--o-radius-xs);
410
+ --meeting-input-radius: var(--o-radius-xs);
411
+ --meeting-cell-radius: var(--o-radius-xs);
405
412
 
406
413
  .o-select {
407
414
  flex-grow: 1;
408
415
  max-width: 320px;
409
- --select-radius: var(--o-radius-xs);
416
+ --select-radius: var(--meeting-input-radius);
410
417
  }
411
418
 
412
419
  .el-calendar-table {
@@ -417,7 +424,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
417
424
 
418
425
  .calendar-body {
419
426
  display: flex;
420
- border-radius: var(--o-radius-xs);
427
+ border-radius: var(--meeting-card-radius);
421
428
  background-color: var(--o-color-fill2);
422
429
  overflow: hidden;
423
430
  @include respond('<=pad_v') {
@@ -433,7 +440,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
433
440
  width: 100%;
434
441
  flex-direction: column;
435
442
  background-color: var(--o-color-fill2);
436
- border-radius: var(--o-radius-xs);
443
+ border-radius: var(--meeting-card-radius);
437
444
  }
438
445
 
439
446
  .el-calendar__header {
@@ -548,13 +555,13 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
548
555
  }
549
556
 
550
557
  th:first-child {
551
- border-top-left-radius: var(--o-radius-xs);
552
- border-bottom-left-radius: var(--o-radius-xs);
558
+ border-top-left-radius: var(--meeting-cell-radius);
559
+ border-bottom-left-radius: var(--meeting-cell-radius);
553
560
  }
554
561
 
555
562
  th:last-child {
556
- border-top-right-radius: var(--o-radius-xs);
557
- border-bottom-right-radius: var(--o-radius-xs);
563
+ border-top-right-radius: var(--meeting-cell-radius);
564
+ border-bottom-right-radius: var(--meeting-cell-radius);
558
565
  }
559
566
  }
560
567
  tr:last-child {
@@ -584,7 +591,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
584
591
 
585
592
  .out-box {
586
593
  position: relative;
587
- border-radius: var(--o-radius-xs);
594
+ border-radius: var(--meeting-cell-radius);
588
595
  padding: 8px 12px;
589
596
  width: 100%;
590
597
  height: 100%;
@@ -709,7 +716,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
709
716
  height: 24px;
710
717
  width: 40px;
711
718
  background-color: var(--o-color-control3-light);
712
- border-radius: var(--o-radius-l);
719
+ border-radius: var(--meeting-cell-radius);
713
720
  border: 1px solid var(--o-color-primary1);
714
721
  }
715
722
  }
@@ -745,7 +752,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
745
752
  transform: translate(-50%, -50%);
746
753
  height: 24px;
747
754
  width: 40px;
748
- border-radius: var(--o-radius-l);
755
+ border-radius: var(--meeting-cell-radius);
749
756
  z-index: -1;
750
757
  }
751
758
  }
@@ -762,7 +769,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
762
769
  padding-top: 16px;
763
770
  background-color: var(--o-color-fill2);
764
771
  width: 100%;
765
- border-radius: var(--o-radius-xs);
772
+ border-radius: var(--meeting-card-radius);
766
773
  }
767
774
  @include respond('phone') {
768
775
 
@@ -780,7 +787,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
780
787
  margin: 16px 16px 12px;
781
788
  padding: 7px 12px;
782
789
  justify-content: center;
783
- border-radius: var(--o-radius-xs);
790
+ border-radius: var(--meeting-card-radius);
784
791
  background-color: var(--o-color-control4-light);
785
792
  @include text2;
786
793
  }
@@ -819,6 +826,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
819
826
 
820
827
  .o-select {
821
828
  display: none;
829
+ margin-bottom: var(--o-gap-2);
822
830
  @include respond('<=pad_v') {
823
831
  display: inline-flex;
824
832
  }
@@ -826,6 +834,7 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
826
834
  display: flex;
827
835
  width: 100%;
828
836
  max-width: 100%;
837
+ margin-bottom: 0;
829
838
  }
830
839
  }
831
840
 
@@ -854,17 +863,16 @@ const checkSelectedDay = (type: CalendarDataType, date: string) => {
854
863
  .o-icon {
855
864
  display: none;
856
865
  }
857
- .o-tab-navs-wrap {
858
- height: 40px;
866
+ .o-tab-navs-container {
859
867
 
860
868
  .o-tab-nav {
861
- line-height: 2;
869
+ line-height: 32px;
862
870
  }
863
871
  }
864
872
  }
865
873
  @include respond('phone') {
866
- .o-tab-navs-wrap {
867
- height: auto;
874
+ .o-tab-nav {
875
+ line-height: 2;
868
876
  }
869
877
  }
870
878
 
@@ -45,7 +45,7 @@ const intervalTypeMax = computed(() => {
45
45
  return findLabelFromOptions(form.value.cycle_type, cycleTypeOptions.value, 'max');
46
46
  });
47
47
  const initForm: MeetingPostT = {
48
- is_record: false,
48
+ is_record: true,
49
49
  agenda: '',
50
50
  email_list: '',
51
51
  platform: 'WELINK',
@@ -265,15 +265,48 @@ const getPlatformOptions = async () => {
265
265
  };
266
266
 
267
267
  const emits = defineEmits(['confirm', 'cancel']);
268
+
269
+ const getPropData = () => {
270
+ if (!props.data) {
271
+ return {};
272
+ }
273
+ const {
274
+ start,
275
+ end,
276
+ is_cycle,
277
+ cycle_start_date,
278
+ cycle_end_date,
279
+ cycle_point,
280
+ cycle_interval,
281
+ cycle_start,
282
+ cycle_end,
283
+ } = props.data;
284
+ return {
285
+ ...props.data,
286
+ time: `${ start }-${ end }`,
287
+ ...(is_cycle
288
+ ? {
289
+ date_range: [cycle_start_date, cycle_end_date],
290
+ cycle_point: cycle_point?.map((v) => parseInt(v)) || [],
291
+ cycle_interval: cycle_interval || 1,
292
+ time: `${ cycle_start }-${ cycle_end }`,
293
+ start: cycle_start,
294
+ end: cycle_end,
295
+ }
296
+ : {}),
297
+ };
298
+ };
299
+
268
300
  watch(
269
301
  () => props.data,
270
302
  (data) => {
271
303
  if (data) {
272
- const sub = data?.cycle_sub?.find((v) => v.sub_id === props.subId) || {} as unknown as CycleSubItemT;
304
+ const propData = getPropData() as unknown as CycleSubItemT;
305
+ const sub = propData?.cycle_sub?.find((v) => v.sub_id === (props.subId || propData.sub_id)) || {} as unknown as CycleSubItemT;
273
306
  const { mid, date, start, end, sub_id } = sub;
274
307
  Object.assign(
275
308
  form.value,
276
- data,
309
+ propData,
277
310
  props.isSub
278
311
  ? {
279
312
  is_cycle: false,
@@ -373,6 +406,7 @@ const confirm = async () => {
373
406
  platform,
374
407
  is_cycle,
375
408
  } as MeetingPostT as unknown as any;
409
+ let flag = undefined;
376
410
  if (is_cycle) {
377
411
  params = {
378
412
  ...params,
@@ -401,7 +435,7 @@ const confirm = async () => {
401
435
  if (props.isSub) {
402
436
  const { mid, sub_id } = form.value;
403
437
  const { date, start, end } = params;
404
- await props?.editSubMeetingRequest(sub_id, {
438
+ flag = await props?.editSubMeetingRequest(sub_id, {
405
439
  mid,
406
440
  date,
407
441
  start,
@@ -416,17 +450,21 @@ const confirm = async () => {
416
450
  etherpad: _etherpad,
417
451
  ...data
418
452
  } = params;
419
- await props?.editMeetingRequest(props.data?.id as unknown as number, {
453
+ flag = await props?.editMeetingRequest(props.data?.id as unknown as number, {
420
454
  ...data,
421
455
  is_notify: true,
422
456
  });
423
457
  }
424
458
  } else {
425
- await props?.createMeetingRequest({
459
+ flag = await props?.createMeetingRequest({
426
460
  ...params,
427
461
  email_list: form.value.email_list.replaceAll(' ', ''),
428
462
  });
429
463
  }
464
+ // 如果返回的是boolean,只有true表示回调成功
465
+ if (typeof flag === 'boolean' && !flag) {
466
+ return;
467
+ }
430
468
  const msg = t('meeting.meetingHandleSuccess', [form.value.topic, type]);
431
469
  message.success({
432
470
  content: msg,
@@ -695,7 +733,7 @@ defineExpose({
695
733
  </OForm>
696
734
  <div class="form-btns" v-if="showBtns">
697
735
  <OButton color="primary" variant="solid" size="large" @click="confirm" :loading="loading">
698
- {{ isEdit ? t('common.save') : (bookText || t('meeting.book')) }}
736
+ {{ isEdit ? t('common.save') : (confirmText || t('meeting.book')) }}
699
737
  </OButton>
700
738
  <OButton color="primary" variant="outline" size="large" @click="cancel">{{ t('common.cancel') }}</OButton>
701
739
  </div>
@@ -704,6 +742,9 @@ defineExpose({
704
742
 
705
743
  <style lang="scss">
706
744
  .o-meeting-form {
745
+ --meeting-card-radius: var(--o-radius-xs);
746
+ --meeting-input-radius: var(--o-radius-xs);
747
+ --meeting-cell-radius: var(--o-radius-xs);
707
748
  .form-wrapper {
708
749
  & > .o-form-item {
709
750
  max-width: 592px;
@@ -733,7 +774,7 @@ defineExpose({
733
774
  }
734
775
 
735
776
  .o-textarea {
736
- --_box-radius: var(--o-radius-xs);
777
+ --_box-radius: var(--meeting-input-radius);
737
778
  }
738
779
 
739
780
  input,
@@ -741,8 +782,17 @@ defineExpose({
741
782
  color: var(--o-input-color);
742
783
  @include text1;
743
784
 
785
+ @include respond('phone') {
786
+ @include text2;
787
+ }
788
+
744
789
  &::placeholder {
745
790
  color: var(--o-placeholder-color);
791
+ @include text1;
792
+
793
+ @include respond('phone') {
794
+ font-size: 14px !important;
795
+ }
746
796
  }
747
797
  }
748
798
 
@@ -854,11 +904,8 @@ defineExpose({
854
904
  align-items: center;
855
905
 
856
906
  .o-btn {
857
- height: 40px !important;
858
- font-size: 16px !important;
859
- line-height: 24px !important;
860
- border-radius: 20px !important;
861
907
  --btn-min-width: 90px;
908
+ --btn-radius: calc(var(--btn-height) / 2);
862
909
  }
863
910
  }
864
911
 
@@ -867,7 +914,7 @@ defineExpose({
867
914
  display: flex;
868
915
  align-items: center;
869
916
  border: 1px solid var(--o-color-control1);
870
- border-radius: var(--o-radius-xs);
917
+ border-radius: var(--meeting-card-radius);
871
918
  padding: 0 15px;
872
919
  background-color: var(--o-color-fill2);
873
920
 
@@ -899,9 +946,6 @@ defineExpose({
899
946
  gap: 0;
900
947
  }
901
948
 
902
- .el-select__placeholder {
903
- @include text1;
904
- }
905
949
 
906
950
  .el-select__caret,
907
951
  .el-input__prefix-icon {
@@ -955,7 +999,7 @@ defineExpose({
955
999
  .repeat-config {
956
1000
  background-color: color-mix(in srgb, var(--o-color-control2-light) 40%, transparent);
957
1001
  padding: var(--o-gap-5);
958
- border-radius: var(--o-radius-xs);
1002
+ border-radius: var(--meeting-card-radius);
959
1003
  @include respond('<=pad_v') {
960
1004
  padding: var(--o-gap-4);
961
1005
  }