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

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 +43 -43
  13. package/dist/components.css +1 -1
  14. package/dist/components.es.js +10946 -11901
  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 +65 -17
  30. package/src/components/meeting/{OMyMeetingCalendar.vue → OMeetingMyCalendar.vue} +87 -46
  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 +56 -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,51 @@ 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
+ console.log(1, propData);
306
+ console.log(props.subId, propData.sub_id);
307
+ const sub = propData?.cycle_sub?.find((v) => v.sub_id === props.subId || propData.sub_id) || {} as unknown as CycleSubItemT;
308
+ console.log(2, sub);
273
309
  const { mid, date, start, end, sub_id } = sub;
274
310
  Object.assign(
275
311
  form.value,
276
- data,
312
+ propData,
277
313
  props.isSub
278
314
  ? {
279
315
  is_cycle: false,
@@ -285,6 +321,7 @@ watch(
285
321
  }
286
322
  : {},
287
323
  );
324
+ console.log(form.value);
288
325
  } else {
289
326
  const today = dayjs().format('YYYY-MM-DD');
290
327
  const now = dayjs().format('HH:mm');
@@ -373,6 +410,7 @@ const confirm = async () => {
373
410
  platform,
374
411
  is_cycle,
375
412
  } as MeetingPostT as unknown as any;
413
+ let flag = undefined;
376
414
  if (is_cycle) {
377
415
  params = {
378
416
  ...params,
@@ -401,7 +439,7 @@ const confirm = async () => {
401
439
  if (props.isSub) {
402
440
  const { mid, sub_id } = form.value;
403
441
  const { date, start, end } = params;
404
- await props?.editSubMeetingRequest(sub_id, {
442
+ flag = await props?.editSubMeetingRequest(sub_id, {
405
443
  mid,
406
444
  date,
407
445
  start,
@@ -416,17 +454,21 @@ const confirm = async () => {
416
454
  etherpad: _etherpad,
417
455
  ...data
418
456
  } = params;
419
- await props?.editMeetingRequest(props.data?.id as unknown as number, {
457
+ flag = await props?.editMeetingRequest(props.data?.id as unknown as number, {
420
458
  ...data,
421
459
  is_notify: true,
422
460
  });
423
461
  }
424
462
  } else {
425
- await props?.createMeetingRequest({
463
+ flag = await props?.createMeetingRequest({
426
464
  ...params,
427
465
  email_list: form.value.email_list.replaceAll(' ', ''),
428
466
  });
429
467
  }
468
+ // 如果返回的是boolean,只有true表示回调成功
469
+ if (typeof flag === 'boolean' && !flag) {
470
+ return;
471
+ }
430
472
  const msg = t('meeting.meetingHandleSuccess', [form.value.topic, type]);
431
473
  message.success({
432
474
  content: msg,
@@ -695,7 +737,7 @@ defineExpose({
695
737
  </OForm>
696
738
  <div class="form-btns" v-if="showBtns">
697
739
  <OButton color="primary" variant="solid" size="large" @click="confirm" :loading="loading">
698
- {{ isEdit ? t('common.save') : (bookText || t('meeting.book')) }}
740
+ {{ isEdit ? t('common.save') : (confirmText || t('meeting.book')) }}
699
741
  </OButton>
700
742
  <OButton color="primary" variant="outline" size="large" @click="cancel">{{ t('common.cancel') }}</OButton>
701
743
  </div>
@@ -704,6 +746,9 @@ defineExpose({
704
746
 
705
747
  <style lang="scss">
706
748
  .o-meeting-form {
749
+ --meeting-card-radius: var(--o-radius-xs);
750
+ --meeting-input-radius: var(--o-radius-xs);
751
+ --meeting-cell-radius: var(--o-radius-xs);
707
752
  .form-wrapper {
708
753
  & > .o-form-item {
709
754
  max-width: 592px;
@@ -733,7 +778,7 @@ defineExpose({
733
778
  }
734
779
 
735
780
  .o-textarea {
736
- --_box-radius: var(--o-radius-xs);
781
+ --_box-radius: var(--meeting-input-radius);
737
782
  }
738
783
 
739
784
  input,
@@ -741,8 +786,17 @@ defineExpose({
741
786
  color: var(--o-input-color);
742
787
  @include text1;
743
788
 
789
+ @include respond('phone') {
790
+ @include text2;
791
+ }
792
+
744
793
  &::placeholder {
745
794
  color: var(--o-placeholder-color);
795
+ @include text1;
796
+
797
+ @include respond('phone') {
798
+ font-size: 14px !important;
799
+ }
746
800
  }
747
801
  }
748
802
 
@@ -854,11 +908,8 @@ defineExpose({
854
908
  align-items: center;
855
909
 
856
910
  .o-btn {
857
- height: 40px !important;
858
- font-size: 16px !important;
859
- line-height: 24px !important;
860
- border-radius: 20px !important;
861
911
  --btn-min-width: 90px;
912
+ --btn-radius: calc(var(--btn-height) / 2);
862
913
  }
863
914
  }
864
915
 
@@ -867,7 +918,7 @@ defineExpose({
867
918
  display: flex;
868
919
  align-items: center;
869
920
  border: 1px solid var(--o-color-control1);
870
- border-radius: var(--o-radius-xs);
921
+ border-radius: var(--meeting-card-radius);
871
922
  padding: 0 15px;
872
923
  background-color: var(--o-color-fill2);
873
924
 
@@ -899,9 +950,6 @@ defineExpose({
899
950
  gap: 0;
900
951
  }
901
952
 
902
- .el-select__placeholder {
903
- @include text1;
904
- }
905
953
 
906
954
  .el-select__caret,
907
955
  .el-input__prefix-icon {
@@ -955,7 +1003,7 @@ defineExpose({
955
1003
  .repeat-config {
956
1004
  background-color: color-mix(in srgb, var(--o-color-control2-light) 40%, transparent);
957
1005
  padding: var(--o-gap-5);
958
- border-radius: var(--o-radius-xs);
1006
+ border-radius: var(--meeting-card-radius);
959
1007
  @include respond('<=pad_v') {
960
1008
  padding: var(--o-gap-4);
961
1009
  }