@opendesign-plus-test/components 0.0.1-rc.90 → 0.0.1-rc.92

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.
@@ -107,20 +107,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
107
  eventsData.value = [];
108
108
  }
109
109
  };
110
+ const datesLoadedStatus = ref([false, false, false]);
111
+ const allDatesLoaded = computed(() => datesLoadedStatus.value.every((v) => !!v));
110
112
  const getDateList = async (date) => {
111
113
  if (props.getDateListRequest) {
112
114
  props.getDateListRequest(date, group.value || "").then((res) => {
113
115
  dateList.value = res;
116
+ }).finally(() => {
117
+ datesLoadedStatus.value[0] = true;
114
118
  });
115
119
  }
116
120
  if (props.getEventsDatesRequest) {
117
121
  props.getEventsDatesRequest(date).then((res) => {
118
122
  eventsDates.value = res;
123
+ }).finally(() => {
124
+ datesLoadedStatus.value[1] = true;
119
125
  });
120
126
  }
121
127
  if (props.getSummitDatesRequest) {
122
128
  props.getSummitDatesRequest(date).then((res) => {
123
129
  summitDates.value = res;
130
+ }).finally(() => {
131
+ datesLoadedStatus.value[2] = true;
124
132
  });
125
133
  }
126
134
  };
@@ -173,9 +181,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
173
181
  });
174
182
  };
175
183
  const allDates = computed(() => {
176
- console.log("dateList", dateList.value);
177
- console.log("summitDates", dateList.value);
178
- console.log("eventsDates", dateList.value);
184
+ if (!allDatesLoaded.value) {
185
+ return [];
186
+ }
179
187
  return [.../* @__PURE__ */ new Set([...dateList.value, ...summitDates.value, ...eventsDates.value])].flat().sort((a, b) => dayjs(a).isAfter(dayjs(b)) ? 1 : -1);
180
188
  });
181
189
  const latestDayLoaded = ref("");
@@ -183,7 +191,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
183
191
  if (latestDayLoaded.value) {
184
192
  return latestDayLoaded.value;
185
193
  }
186
- console.log(allDates.value);
187
194
  const dates = allDates.value;
188
195
  if (!dates.length) return null;
189
196
  const today = dayjs().format("YYYY-MM-DD");
@@ -216,10 +223,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
216
223
  if (latestDay.value) {
217
224
  latestDayLoaded.value = latestDay.value;
218
225
  (_a = calendar.value) == null ? void 0 : _a.pickDay(dayjs(latestDay.value));
219
- console.log("latestDay", 1, latestDay.value);
220
226
  changeMeetingDay(latestDay.value);
221
227
  } else {
222
- console.log("latestDay", 2, latestDay.value);
223
228
  changeMeetingDay(formatDate());
224
229
  }
225
230
  },
@@ -234,7 +239,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
234
239
  }
235
240
  isLimit.value = false;
236
241
  calendar.value.selectDate(val);
237
- console.log("selectDate", calendar.value.selectedDay);
238
242
  changeMeetingDay(formatDate(calendar.value.selectedDay));
239
243
  };
240
244
  const changeGroup = () => {
@@ -68,7 +68,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  setup(__props, { expose: __expose, emit: __emit }) {
69
69
  const { t, locale, cycleTypeOptions0, intervalWeekOptions, getPlatformLabel } = useMeetingConfig();
70
70
  const props = __props;
71
- console.log(props);
72
71
  const message = useMessage(null);
73
72
  const cycleTypeOptions = cycleTypeOptions0;
74
73
  const weekOptions = intervalWeekOptions;
@@ -98,6 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
97
  };
99
98
  const form = ref(Object.assign({}, initForm));
100
99
  const formRef = ref(null);
100
+ const privateVisible = ref(false);
101
101
  const loading = ref(false);
102
102
  const rules = computed(() => {
103
103
  return {
@@ -390,7 +390,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
390
390
  (_d = (_c = formRef.value) == null ? void 0 : _c.resetFields) == null ? void 0 : _d.call(_c);
391
391
  emits("cancel");
392
392
  };
393
- const privateVisible = ref(false);
394
393
  const changeIsPrivate = () => {
395
394
  if (form.value.is_private) {
396
395
  form.value.is_cycle = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.90",
3
+ "version": "0.0.1-rc.92",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,8 +44,8 @@
44
44
  "vue-dompurify-html": "^3.1.2",
45
45
  "vue": "^3.5.13",
46
46
  "element-plus": "2.13.1",
47
- "@opendesign-plus/composables": "0.0.1-rc.10",
48
- "@opendesign-plus/styles": "0.0.1-rc.2"
47
+ "@opendesign-plus/styles": "0.0.1-rc.2",
48
+ "@opendesign-plus/composables": "0.0.1-rc.10"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@vitejs/plugin-vue": "^5.2.1",