@opendesign-plus-test/components 0.0.1-rc.97 → 0.0.1-rc.98

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.
@@ -302,6 +302,35 @@
302
302
  --meeting-input-radius: var(--o-radius-xs);
303
303
  --meeting-cell-radius: var(--o-radius-xs);
304
304
  }
305
+ .o-meeting-calendar .o-meeting-calendar-desc {
306
+ display: flex;
307
+ justify-content: flex-end;
308
+ align-items: center;
309
+ color: var(--o-color-info2);
310
+ --gap: var(--o-gap-5);
311
+ column-gap: var(--gap);
312
+ margin-bottom: var(--gap);
313
+ }
314
+ @media (max-width: 1680px) {
315
+ .o-meeting-calendar .o-meeting-calendar-desc {
316
+ --gap: var(--o-gap-4);
317
+ }
318
+ }
319
+ @media (max-width: 840px) {
320
+ .o-meeting-calendar .o-meeting-calendar-desc {
321
+ --gap: var(--o-gap-2);
322
+ row-gap: var(--gap);
323
+ flex-direction: column-reverse;
324
+ justify-content: center;
325
+ margin-bottom: var(--o-gap-3);
326
+ }
327
+ }
328
+ .o-meeting-calendar .o-meeting-calendar-desc .o-btn {
329
+ flex-shrink: 0;
330
+ }
331
+ .o-meeting-calendar .o-meeting-calendar-desc span {
332
+ color: var(--o-color-info2);
333
+ }
305
334
  .o-meeting-calendar .o-select {
306
335
  flex-grow: 1;
307
336
  max-width: 320px;
@@ -146,13 +146,18 @@ declare function __VLS_template(): {
146
146
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
147
147
  declare const __VLS_component: import('vue').DefineComponent<MeetingCalendarPropsT, {
148
148
  refresh: (day?: string) => Promise<void>;
149
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeetingCalendarPropsT> & Readonly<{}>, {
149
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
150
+ create: (...args: any[]) => void;
151
+ }, string, import('vue').PublicProps, Readonly<MeetingCalendarPropsT> & Readonly<{
152
+ onCreate?: ((...args: any[]) => any) | undefined;
153
+ }>, {
150
154
  groupType: MeetingGroupType;
151
155
  getSummitListRequest: any;
152
156
  getEventsListRequest: any;
153
157
  hiddenEvents: boolean;
154
158
  hiddenSummit: boolean;
155
159
  groups: string[];
160
+ showDesc: boolean;
156
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
157
162
  calendar: ({
158
163
  $: import('vue').ComponentInternalInstance;
@@ -1,5 +1,5 @@
1
- import { defineComponent, computed, ref, watch, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, normalizeClass, toDisplayString, createBlock, normalizeStyle, createCommentVNode, Fragment, renderList, createTextVNode, resolveDynamicComponent, renderSlot } from "vue";
2
- import { isClient, OIcon, OIconChevronLeft, OIconChevronRight, OSelect, OOption, OTab, OTabPane, OScroller, OResult, OFigure } from "@opensig/opendesign";
1
+ import { defineComponent, computed, ref, watch, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, withCtx, createTextVNode, createCommentVNode, normalizeClass, createBlock, normalizeStyle, Fragment, renderList, resolveDynamicComponent, renderSlot } from "vue";
2
+ import { isClient, OButton, OIcon, OIconChevronLeft, OIconChevronRight, OSelect, OOption, OTab, OTabPane, OScroller, OResult, OFigure } from "@opensig/opendesign";
3
3
  import dayjs from "dayjs";
4
4
  import { ElCalendar } from "element-plus";
5
5
  import "element-plus/es/components/calendar/style/css";
@@ -15,18 +15,22 @@ import { MeetingGroupType, CalendarDataType } from "./types.mjs";
15
15
  import { formatDate } from "./utils.mjs";
16
16
  import { useDebounceFn } from "@vueuse/core";
17
17
  const _hoisted_1 = { class: "o-meeting-calendar" };
18
- const _hoisted_2 = { class: "calendar-body" };
19
- const _hoisted_3 = { class: "calender-header-left" };
20
- const _hoisted_4 = { class: "left-title" };
21
- const _hoisted_5 = { class: "month-date" };
22
- const _hoisted_6 = { class: "right-title" };
23
- const _hoisted_7 = ["onClick"];
24
- const _hoisted_8 = { class: "day-box" };
25
- const _hoisted_9 = { class: "icon-box" };
26
- const _hoisted_10 = { class: "detail-list" };
27
- const _hoisted_11 = { class: "current-day" };
28
- const _hoisted_12 = { class: "right-title" };
29
- const _hoisted_13 = { class: "title-list" };
18
+ const _hoisted_2 = {
19
+ key: 0,
20
+ class: "o-meeting-calendar-desc"
21
+ };
22
+ const _hoisted_3 = { class: "calendar-body" };
23
+ const _hoisted_4 = { class: "calender-header-left" };
24
+ const _hoisted_5 = { class: "left-title" };
25
+ const _hoisted_6 = { class: "month-date" };
26
+ const _hoisted_7 = { class: "right-title" };
27
+ const _hoisted_8 = ["onClick"];
28
+ const _hoisted_9 = { class: "day-box" };
29
+ const _hoisted_10 = { class: "icon-box" };
30
+ const _hoisted_11 = { class: "detail-list" };
31
+ const _hoisted_12 = { class: "current-day" };
32
+ const _hoisted_13 = { class: "right-title" };
33
+ const _hoisted_14 = { class: "title-list" };
30
34
  const limitTime = "2021-01-01";
31
35
  const _sfc_main = /* @__PURE__ */ defineComponent({
32
36
  __name: "OMeetingCalendar",
@@ -43,9 +47,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
47
  groups: { default: () => [] },
44
48
  disableFormat: { type: Boolean },
45
49
  emptyImg: {},
46
- emptyText: {}
50
+ emptyText: {},
51
+ showDesc: { type: Boolean, default: false }
47
52
  },
48
- setup(__props, { expose: __expose }) {
53
+ emits: ["create"],
54
+ setup(__props, { expose: __expose, emit: __emit }) {
49
55
  const props = __props;
50
56
  const { t, locale, meetingTabs, getConfig } = useMeetingConfig();
51
57
  const isEn = computed(() => locale.value === Locales.EN);
@@ -308,12 +314,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
308
314
  }
309
315
  return false;
310
316
  };
317
+ const emits = __emit;
311
318
  __expose({
312
319
  refresh: getDateData
313
320
  });
321
+ const create = () => {
322
+ emits("create");
323
+ };
314
324
  return (_ctx, _cache) => {
315
325
  return openBlock(), createElementBlock("div", _hoisted_1, [
316
- createElementVNode("div", _hoisted_2, [
326
+ __props.showDesc ? (openBlock(), createElementBlock("div", _hoisted_2, [
327
+ createElementVNode("span", null, toDisplayString(__props.groupType === unref(MeetingGroupType).GROUP ? unref(t)("meeting.meetingDescGroup") : unref(t)("meeting.meetingDesc")), 1),
328
+ createVNode(unref(OButton), {
329
+ color: "primary",
330
+ variant: "solid",
331
+ round: "pill",
332
+ onClick: create
333
+ }, {
334
+ default: withCtx(() => [
335
+ createTextVNode(toDisplayString(unref(t)("meeting.meetingCreate")), 1)
336
+ ]),
337
+ _: 1
338
+ })
339
+ ])) : createCommentVNode("", true),
340
+ createElementVNode("div", _hoisted_3, [
317
341
  createVNode(unref(ElCalendar), {
318
342
  ref_key: "calendar",
319
343
  ref: calendar,
@@ -322,8 +346,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
322
346
  header: withCtx(({ date }) => {
323
347
  var _a;
324
348
  return [
325
- createElementVNode("div", _hoisted_3, [
326
- createElementVNode("div", _hoisted_4, [
349
+ createElementVNode("div", _hoisted_4, [
350
+ createElementVNode("div", _hoisted_5, [
327
351
  createVNode(unref(OIcon), {
328
352
  onClick: ($event) => selectDate("prev-month", date)
329
353
  }, {
@@ -334,7 +358,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
334
358
  ]),
335
359
  _: 1
336
360
  }, 8, ["onClick"]),
337
- createElementVNode("span", _hoisted_5, toDisplayString(formatYearMonth(date)), 1),
361
+ createElementVNode("span", _hoisted_6, toDisplayString(formatYearMonth(date)), 1),
338
362
  createVNode(unref(OIcon), {
339
363
  onClick: ($event) => selectDate("next-month", date)
340
364
  }, {
@@ -368,7 +392,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
368
392
  _: 1
369
393
  }, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true)
370
394
  ]),
371
- createElementVNode("div", _hoisted_6, [
395
+ createElementVNode("div", _hoisted_7, [
372
396
  createElementVNode("span", null, toDisplayString(unref(t)("meeting.latestMeeting")) + " ", 1),
373
397
  createElementVNode("span", null, toDisplayString(unref(formatDate)(unref(dayjs)(latestDay.value))), 1)
374
398
  ])
@@ -379,11 +403,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
379
403
  class: normalizeClass(["out-box", { "has-calender": allDates.value.includes(data.day) }]),
380
404
  onClick: ($event) => unref(changeMeetingDay)(data.day, $event)
381
405
  }, [
382
- createElementVNode("div", _hoisted_8, [
406
+ createElementVNode("div", _hoisted_9, [
383
407
  createElementVNode("p", {
384
408
  class: normalizeClass([data.isSelected ? "is-selected" : "", "date-calender"])
385
409
  }, toDisplayString(removeLeadingZero(data.day.split("-").at(-1) || "")), 3),
386
- createElementVNode("div", _hoisted_9, [
410
+ createElementVNode("div", _hoisted_10, [
387
411
  checkSelectedDay(unref(CalendarDataType).MEETING, data.day) ? (openBlock(), createBlock(unref(OIcon), {
388
412
  key: 0,
389
413
  class: "meeting",
@@ -425,17 +449,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
425
449
  }, 8, ["style"])) : createCommentVNode("", true)
426
450
  ])
427
451
  ])
428
- ], 10, _hoisted_7)
452
+ ], 10, _hoisted_8)
429
453
  ]),
430
454
  _: 1
431
455
  }, 512),
432
- createElementVNode("div", _hoisted_10, [
433
- createElementVNode("div", _hoisted_11, [
456
+ createElementVNode("div", _hoisted_11, [
457
+ createElementVNode("div", _hoisted_12, [
434
458
  createTextVNode(toDisplayString(unref(t)("meeting.latestMeeting")) + "  ", 1),
435
459
  createElementVNode("span", null, toDisplayString(unref(formatDate)(unref(dayjs)(latestDay.value))), 1)
436
460
  ]),
437
- createElementVNode("div", _hoisted_12, [
438
- createElementVNode("div", _hoisted_13, [
461
+ createElementVNode("div", _hoisted_13, [
462
+ createElementVNode("div", _hoisted_14, [
439
463
  createVNode(unref(OSelect), {
440
464
  modelValue: group.value,
441
465
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => group.value = $event),
@@ -411,7 +411,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
411
411
  const { lePadV } = useScreen();
412
412
  const confirm = async () => {
413
413
  var _a;
414
- let type = isEdit.value ? t("meeting.editSuccess") : t("meeting.booSuccess");
414
+ let type = isEdit.value ? t("meeting.editSuccess") : t("meeting.createSuccess");
415
415
  try {
416
416
  loading.value = true;
417
417
  const valid = await formRef.value.validate();
@@ -1051,7 +1051,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1051
1051
  loading: loading.value
1052
1052
  }, {
1053
1053
  default: withCtx(() => [
1054
- createTextVNode(toDisplayString(isEdit.value ? unref(t)("common.save") : __props.confirmText || unref(t)("meeting.book")), 1)
1054
+ createTextVNode(toDisplayString(isEdit.value ? unref(t)("common.save") : __props.confirmText || unref(t)("meeting.create")), 1)
1055
1055
  ]),
1056
1056
  _: 1
1057
1057
  }, 8, ["loading"]),
@@ -1,14 +1,19 @@
1
1
  import { App } from 'vue';
2
2
  declare const OMeetingCalendar: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{}>, {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{
4
+ onCreate?: ((...args: any[]) => any) | undefined;
5
+ }>, {
4
6
  refresh: (day?: string) => Promise<void>;
5
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ create: (...args: any[]) => void;
9
+ }, import('vue').PublicProps, {
6
10
  groupType: import('./types').MeetingGroupType;
7
11
  getSummitListRequest: any;
8
12
  getEventsListRequest: any;
9
13
  hiddenEvents: boolean;
10
14
  hiddenSummit: boolean;
11
15
  groups: string[];
16
+ showDesc: boolean;
12
17
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
13
18
  calendar: ({
14
19
  $: import('vue').ComponentInternalInstance;
@@ -150,7 +155,9 @@ declare const OMeetingCalendar: {
150
155
  C: {};
151
156
  M: {};
152
157
  Defaults: {};
153
- }, Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{}>, {
158
+ }, Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{
159
+ onCreate?: ((...args: any[]) => any) | undefined;
160
+ }>, {
154
161
  refresh: (day?: string) => Promise<void>;
155
162
  }, {}, {}, {}, {
156
163
  groupType: import('./types').MeetingGroupType;
@@ -159,19 +166,25 @@ declare const OMeetingCalendar: {
159
166
  hiddenEvents: boolean;
160
167
  hiddenSummit: boolean;
161
168
  groups: string[];
169
+ showDesc: boolean;
162
170
  }>;
163
171
  __isFragment?: never;
164
172
  __isTeleport?: never;
165
173
  __isSuspense?: never;
166
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{}>, {
174
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').MeetingCalendarPropsT> & Readonly<{
175
+ onCreate?: ((...args: any[]) => any) | undefined;
176
+ }>, {
167
177
  refresh: (day?: string) => Promise<void>;
168
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
178
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
179
+ create: (...args: any[]) => void;
180
+ }, string, {
169
181
  groupType: import('./types').MeetingGroupType;
170
182
  getSummitListRequest: any;
171
183
  getEventsListRequest: any;
172
184
  hiddenEvents: boolean;
173
185
  hiddenSummit: boolean;
174
186
  groups: string[];
187
+ showDesc: boolean;
175
188
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
176
189
  $slots: {
177
190
  empty?(_: {}): any;
@@ -47,6 +47,7 @@ export interface MeetingCalendarPropsT {
47
47
  disableFormat?: boolean;
48
48
  emptyImg?: any;
49
49
  emptyText?: string;
50
+ showDesc?: boolean;
50
51
  }
51
52
  export interface MeetingPostT {
52
53
  id?: number;
@@ -53,8 +53,8 @@ const en = {
53
53
  "meeting.offline": "Offline",
54
54
  "meeting.meetingSingle": "This meeting",
55
55
  "meeting.meetingCycle": "All recurring meetings",
56
- "meeting.bookMeeting": "Book Meeting",
57
- "meeting.book": "Book",
56
+ "meeting.createMeeting": "Create Meeting",
57
+ "meeting.create": "Create",
58
58
  "meeting.meetingCancelled": "[Canceled]",
59
59
  "meeting.cycle": "Recurrence",
60
60
  "meeting.joinMeeting": "Join",
@@ -101,7 +101,7 @@ const en = {
101
101
  "meeting.emailCountTooLong": "Enter a maximum of 20 email addresses.",
102
102
  "meeting.meetingHandleSuccess": '"{0}" meeting {1}.',
103
103
  "meeting.editSuccess": "edited",
104
- "meeting.booSuccess": "booked",
104
+ "meeting.createSuccess": "created",
105
105
  "meeting.meetingName": "Title",
106
106
  "meeting.meetingTime": "Time",
107
107
  "meeting.nonRepeat": "Once",
@@ -125,8 +125,9 @@ const en = {
125
125
  "meeting.day": " day",
126
126
  "meeting.week": " week",
127
127
  "meeting.month": " month",
128
- "meeting.meetingDesc": "To book a meeting, the SIG Maintainer or Committer access is required.",
129
- "meeting.meetingBook": "Book Meeting",
128
+ "meeting.meetingDesc": "To create a meeting, the SIG Maintainer or Committer access is required.",
129
+ "meeting.meetingDescGroup": "To create a meeting, the work group permission is required.",
130
+ "meeting.meetingCreate": "Create",
130
131
  "meeting.latestMeeting": "Latest Schedule:",
131
132
  "meeting.meetingTypeAll": "All",
132
133
  "meeting.meetingTypeMeet": "Meetings",
@@ -179,8 +180,6 @@ const en = {
179
180
  "cookie.analyticalCookieDetail": "We will use these cookies only with your consent. These cookies help us make improvements by collecting statistics such as the number of visits and traffic sources.",
180
181
  "cookie.saveSetting": "Save Settings",
181
182
  "cookie.setting": "Cookie settings",
182
- "meeting.create": "Create",
183
- "meeting.createMeeting": "Create Meeting",
184
183
  "meeting.createActivity": "Create Event",
185
184
  "meeting.createPermission": "Workspace role required to create meetings or events",
186
185
  "meeting.createActivityPermission": "Workspace role required to create events",
@@ -53,8 +53,8 @@ const zh = {
53
53
  "meeting.offline": "线下",
54
54
  "meeting.meetingSingle": "仅此会议",
55
55
  "meeting.meetingCycle": "整个周期会议",
56
- "meeting.bookMeeting": "创建会议",
57
- "meeting.book": "创建",
56
+ "meeting.createMeeting": "创建会议",
57
+ "meeting.create": "创建",
58
58
  "meeting.meetingCancelled": "【已取消】",
59
59
  "meeting.cycle": "周期",
60
60
  "meeting.joinMeeting": "加入会议",
@@ -101,7 +101,7 @@ const zh = {
101
101
  "meeting.emailCountTooLong": "最多添加20个邮箱地址",
102
102
  "meeting.meetingHandleSuccess": "“{0}”会议{1}",
103
103
  "meeting.editSuccess": "编辑成功",
104
- "meeting.booSuccess": "创建成功",
104
+ "meeting.createSuccess": "创建成功",
105
105
  "meeting.meetingName": "会议名称",
106
106
  "meeting.meetingTime": "会议时间",
107
107
  "meeting.nonRepeat": "不重复",
@@ -124,8 +124,9 @@ const zh = {
124
124
  "meeting.day": "天",
125
125
  "meeting.week": "周",
126
126
  "meeting.month": "月",
127
- "meeting.meetingDesc": "使用openUBMC会议创建功能需要SIG组Maintainer或Committer身份权限",
128
- "meeting.meetingBook": "创建会议",
127
+ "meeting.meetingDesc": "创建会议需要SIG组Maintainer或Committer身份权限",
128
+ "meeting.meetingDescGroup": "创建会议需要工作组Maintainer或Committer身份权限",
129
+ "meeting.meetingCreate": "创建",
129
130
  "meeting.latestMeeting": "最新日程:",
130
131
  "meeting.meetingTypeAll": "全部",
131
132
  "meeting.meetingTypeMeet": "会议",
@@ -169,8 +170,6 @@ const zh = {
169
170
  "cookie.about": "查看详情",
170
171
  "cookie.acceptAll": "全部接受",
171
172
  "cookie.saveSetting": "保存设置",
172
- "meeting.create": "创建",
173
- "meeting.createMeeting": "创建会议",
174
173
  "meeting.createActivity": "创建活动",
175
174
  "meeting.createPermission": "创建会议或活动需要工作组角色权限",
176
175
  "meeting.createActivityPermission": "创建活动需要工作组角色权限",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.97",
3
+ "version": "0.0.1-rc.98",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",