@opendesign-plus-test/components 0.0.1-rc.152 → 0.0.1-rc.153
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.
- package/dist/components/meeting/OMeetingMinutes.vue.d.ts +2 -348
- package/dist/components/meeting/index.d.ts +1 -174
- package/dist/components/meeting/types.d.ts +0 -1
- package/dist/components/sig/OSigDetail.vue.d.ts +1 -1
- package/dist/components/sig/OSigList.vue.d.ts +2 -0
- package/dist/components/sig/components/OSigItem.vue.d.ts +4 -1
- package/dist/components.cjs.js +34 -34
- package/dist/components.css +1 -1
- package/dist/components.es.js +4951 -4939
- package/dist/treeshaking/components/activity/OActivityApproval.css +8 -8
- package/dist/treeshaking/components/footer/components/FooterList.css +109 -96
- package/dist/treeshaking/components/footer/components/FooterList.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderContent.css +185 -185
- package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/OMeetingMinutes.css +223 -176
- package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.d.ts +2 -348
- package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.mjs +6 -373
- package/dist/treeshaking/components/meeting/OMeetingMinutes.vue2.mjs +356 -0
- package/dist/treeshaking/components/meeting/OMeetingMinutes2.css +11 -0
- package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.css +53 -53
- package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +1 -174
- package/dist/treeshaking/components/meeting/index.mjs +12 -13
- package/dist/treeshaking/components/meeting/types.d.ts +0 -1
- package/dist/treeshaking/components/sig/OSigDetail.css +7 -3
- package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +1 -1
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +6 -3
- package/dist/treeshaking/components/sig/OSigList.css +135 -134
- package/dist/treeshaking/components/sig/OSigList.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +106 -94
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +1 -1
- package/dist/treeshaking/components/sig/components/OSigItem.css +31 -367
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +4 -1
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +6 -4
- package/dist/treeshaking/components/sig/components/OSigMember.css +1 -1
- package/dist/treeshaking/components/sig/components/OSigRepo.css +15 -2
- package/dist/treeshaking/components/sig/components/OSigUserContribute.css +7 -0
- package/dist/treeshaking/components/video/OVideoDetail.css +7 -7
- package/package.json +3 -3
- package/dist/treeshaking/components/meeting/OMeetingMinutes.vue3.mjs +0 -5
|
@@ -1,58 +1,49 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch,
|
|
1
|
+
import { defineComponent, computed, ref, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, unref, toDisplayString, createVNode, withCtx, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
|
|
2
2
|
import { ElSelect, ElOption } from "element-plus";
|
|
3
3
|
import "element-plus/es/components/select/style/css";
|
|
4
4
|
import "element-plus/es/components/option/style/css";
|
|
5
|
-
import { useDebounceFn,
|
|
5
|
+
import { useDebounceFn, useIntersectionObserver } from "@vueuse/core";
|
|
6
6
|
import { useScreen } from "@opendesign-plus/composables";
|
|
7
7
|
import { useI18n } from "../../i18n/index.mjs";
|
|
8
|
-
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
8
|
+
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, OPopover, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
9
9
|
import OEmpty from "../empty/OEmpty.vue.mjs";
|
|
10
10
|
import _sfc_main$1 from "./components/OSigItem.vue.mjs";
|
|
11
11
|
import './components/OSigItem.css';
|
|
12
12
|
import IconSearch from "../../_virtual/icon-search.mjs";
|
|
13
13
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
14
|
-
const _hoisted_1 = {
|
|
15
|
-
const _hoisted_2 = {
|
|
14
|
+
const _hoisted_1 = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "o-sig-filter-type"
|
|
18
17
|
};
|
|
19
|
-
const
|
|
20
|
-
const
|
|
18
|
+
const _hoisted_2 = { class: "o-sig-filter-title" };
|
|
19
|
+
const _hoisted_3 = {
|
|
21
20
|
key: 1,
|
|
22
21
|
class: "o-sig-filter-input"
|
|
23
22
|
};
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "o-sig-search-data"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_7 = {
|
|
23
|
+
const _hoisted_4 = { class: "o-sig-filter-select-box" };
|
|
24
|
+
const _hoisted_5 = {
|
|
30
25
|
key: 0,
|
|
31
26
|
class: "o-sig-search-label"
|
|
32
27
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
28
|
+
const _hoisted_6 = ["onClick"];
|
|
29
|
+
const _hoisted_7 = ["title"];
|
|
30
|
+
const _hoisted_8 = {
|
|
36
31
|
key: 2,
|
|
37
32
|
class: "o-sig-no-result"
|
|
38
33
|
};
|
|
39
|
-
const
|
|
34
|
+
const _hoisted_9 = {
|
|
40
35
|
key: 0,
|
|
41
36
|
class: "o-sig-filter-result-tip"
|
|
42
37
|
};
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
38
|
+
const _hoisted_10 = { key: 0 };
|
|
39
|
+
const _hoisted_11 = { class: "o-sig-num" };
|
|
40
|
+
const _hoisted_12 = {
|
|
46
41
|
key: 0,
|
|
47
42
|
class: "o-sig-num"
|
|
48
43
|
};
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
key: 3,
|
|
53
|
-
class: "o-sig-loading"
|
|
54
|
-
};
|
|
55
|
-
const _hoisted_18 = {
|
|
44
|
+
const _hoisted_13 = { key: 1 };
|
|
45
|
+
const _hoisted_14 = { class: "o-sig-num" };
|
|
46
|
+
const _hoisted_15 = {
|
|
56
47
|
key: 4,
|
|
57
48
|
class: "o-sig-pagination"
|
|
58
49
|
};
|
|
@@ -201,18 +192,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
201
192
|
const stripHtml = (val) => (val == null ? void 0 : val.replace(/<[^>]+>/g, "")) ?? "";
|
|
202
193
|
const clickItem = (val) => {
|
|
203
194
|
sigInput.value = stripHtml(val);
|
|
204
|
-
showPanel.value = false;
|
|
205
195
|
enterSearchType.value = searchType.value;
|
|
206
196
|
enterSearchInput.value = sigInput.value;
|
|
197
|
+
nextTick(() => {
|
|
198
|
+
showPanel.value = false;
|
|
199
|
+
});
|
|
207
200
|
};
|
|
208
201
|
const clearInput = () => {
|
|
209
202
|
sigInput.value = "";
|
|
210
203
|
enterSearchInput.value = "";
|
|
211
204
|
};
|
|
205
|
+
const rootRef = ref();
|
|
212
206
|
const panelRef = ref();
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
const popoverVisible = computed(() => showPanel.value && !!sigInput.value);
|
|
208
|
+
const onPopoverVisibleChange = (val) => {
|
|
209
|
+
showPanel.value = val;
|
|
210
|
+
};
|
|
216
211
|
const toSigDetail = (sigName) => emit("to-sig-detail", sigName);
|
|
217
212
|
watch(
|
|
218
213
|
() => sigInput.value,
|
|
@@ -223,7 +218,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
223
218
|
);
|
|
224
219
|
const filterSigData = ref([]);
|
|
225
220
|
const filterSearchData = ref([]);
|
|
226
|
-
const filterDataMb = ref([]);
|
|
227
221
|
const featureType = ref("all");
|
|
228
222
|
const matchKw = (text, kw) => !!text && text.toLowerCase().includes(kw);
|
|
229
223
|
watch(
|
|
@@ -275,6 +269,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
269
|
if (lePadV.value) return "0 12px";
|
|
276
270
|
return "32px 32px";
|
|
277
271
|
});
|
|
272
|
+
watch(lePadV, () => {
|
|
273
|
+
sigQuery.value.page = 1;
|
|
274
|
+
});
|
|
278
275
|
const clearChecked = (val) => {
|
|
279
276
|
resetSigQuery();
|
|
280
277
|
if (val) {
|
|
@@ -283,43 +280,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
280
|
});
|
|
284
281
|
}
|
|
285
282
|
};
|
|
283
|
+
const loadingRef = ref(null);
|
|
286
284
|
const getMoreDataMo = () => {
|
|
287
|
-
filterDataMb.value = filterSearchData.value.slice(
|
|
288
|
-
0,
|
|
289
|
-
sigQuery.value.page * sigQuery.value.pageSize
|
|
290
|
-
);
|
|
291
285
|
sigQuery.value.page++;
|
|
292
286
|
};
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
var _a;
|
|
298
|
-
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
299
|
-
const scrollHeight = document.body.scrollHeight;
|
|
300
|
-
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
301
|
-
const footerHeight = ((_a = footer.value) == null ? void 0 : _a.clientHeight) ?? 0;
|
|
302
|
-
if (scrollTop + clientHeight + footerHeight >= scrollHeight && filterDataMb.value.length < filterSearchData.value.length) {
|
|
287
|
+
useIntersectionObserver(
|
|
288
|
+
loadingRef,
|
|
289
|
+
([entry]) => {
|
|
290
|
+
if ((entry == null ? void 0 : entry.isIntersecting) && filterSigData.value.length < filterSearchData.value.length) {
|
|
303
291
|
getMoreDataMo();
|
|
304
292
|
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
onMounted(() => {
|
|
309
|
-
footer.value = document.querySelector(props.footerSelector);
|
|
310
|
-
window.addEventListener("scroll", throttleEvent);
|
|
311
|
-
});
|
|
312
|
-
onUnmounted(() => {
|
|
313
|
-
window.removeEventListener("scroll", throttleEvent);
|
|
314
|
-
});
|
|
293
|
+
},
|
|
294
|
+
{ rootMargin: "200px" }
|
|
295
|
+
);
|
|
315
296
|
return (_ctx, _cache) => {
|
|
316
|
-
return openBlock(), createElementBlock("div",
|
|
297
|
+
return openBlock(), createElementBlock("div", {
|
|
298
|
+
ref_key: "rootRef",
|
|
299
|
+
ref: rootRef,
|
|
300
|
+
class: "o-sig-list"
|
|
301
|
+
}, [
|
|
317
302
|
createElementVNode("div", {
|
|
318
|
-
class: normalizeClass(
|
|
303
|
+
class: normalizeClass({
|
|
304
|
+
"o-sig-filter-box": true,
|
|
305
|
+
[`o-sig-filter-box-${locale.value}`]: true,
|
|
306
|
+
"o-sig-filter-box--no-filter-type": !featureArr.value.length
|
|
307
|
+
})
|
|
319
308
|
}, [
|
|
320
309
|
featureArr.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
321
|
-
!unref(isPhone) ? (openBlock(), createElementBlock("div",
|
|
322
|
-
createElementVNode("p",
|
|
310
|
+
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
311
|
+
createElementVNode("p", _hoisted_2, toDisplayString(unref(t)("sig.type")), 1),
|
|
323
312
|
createVNode(unref(ORadioGroup), {
|
|
324
313
|
modelValue: featureType.value,
|
|
325
314
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
|
|
@@ -349,7 +338,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
349
338
|
_: 1
|
|
350
339
|
}, 8, ["modelValue"])
|
|
351
340
|
])) : createCommentVNode("", true),
|
|
352
|
-
unref(isPhone) ? (openBlock(), createElementBlock("div",
|
|
341
|
+
unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
353
342
|
createVNode(unref(ElSelect), {
|
|
354
343
|
modelValue: featureType.value,
|
|
355
344
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
|
|
@@ -371,7 +360,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
371
360
|
])) : createCommentVNode("", true),
|
|
372
361
|
createVNode(unref(ODivider), { direction: "h" })
|
|
373
362
|
], 64)) : createCommentVNode("", true),
|
|
374
|
-
createElementVNode("div",
|
|
363
|
+
createElementVNode("div", _hoisted_4, [
|
|
375
364
|
createElementVNode("div", {
|
|
376
365
|
ref_key: "panelRef",
|
|
377
366
|
ref: panelRef,
|
|
@@ -416,43 +405,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
405
|
]),
|
|
417
406
|
_: 1
|
|
418
407
|
}, 8, ["modelValue", "placeholder"]),
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
408
|
+
createVNode(unref(OPopover), {
|
|
409
|
+
target: panelRef.value,
|
|
410
|
+
wrapper: rootRef.value,
|
|
411
|
+
visible: popoverVisible.value,
|
|
412
|
+
disabled: !sigInput.value,
|
|
413
|
+
position: "br",
|
|
414
|
+
trigger: "click-outclick",
|
|
415
|
+
"adjust-min-width": false,
|
|
416
|
+
"adjust-width": false,
|
|
417
|
+
"onUpdate:visible": onPopoverVisibleChange
|
|
418
|
+
}, {
|
|
419
|
+
default: withCtx(() => [
|
|
420
|
+
createElementVNode("div", {
|
|
421
|
+
class: normalizeClass(["o-sig-search-data", `o-sig-search-data-${locale.value}`])
|
|
424
422
|
}, [
|
|
425
|
-
|
|
426
|
-
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
423
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
427
424
|
return openBlock(), createElementBlock("div", {
|
|
428
|
-
key:
|
|
429
|
-
class: "o-sig-search-
|
|
430
|
-
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
425
|
+
key: item.id,
|
|
426
|
+
class: "o-sig-search-group"
|
|
431
427
|
}, [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
428
|
+
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
429
|
+
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
430
|
+
return openBlock(), createElementBlock("div", {
|
|
431
|
+
key: it.name,
|
|
432
|
+
class: "o-sig-search-item",
|
|
433
|
+
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
434
|
+
}, [
|
|
435
|
+
withDirectives(createElementVNode("span", {
|
|
436
|
+
title: stripHtml(it == null ? void 0 : it.name),
|
|
437
|
+
class: "o-sig-search-title"
|
|
438
|
+
}, null, 8, _hoisted_7), [
|
|
439
|
+
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
440
|
+
])
|
|
441
|
+
], 8, _hoisted_6);
|
|
442
|
+
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
443
|
+
]);
|
|
444
|
+
}), 128))
|
|
445
|
+
], 2)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["target", "wrapper", "visible", "disabled"])
|
|
443
449
|
], 2)
|
|
444
450
|
])
|
|
445
451
|
], 2),
|
|
446
|
-
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div",
|
|
447
|
-
sigInput.value ? (openBlock(), createElementBlock("div",
|
|
452
|
+
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
453
|
+
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
448
454
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
449
|
-
createElementVNode("span",
|
|
455
|
+
createElementVNode("span", _hoisted_11, toDisplayString(filterSearchData.value.length), 1),
|
|
450
456
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
451
|
-
locale.value === "zh" ? (openBlock(), createElementBlock("span",
|
|
457
|
+
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
452
458
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
453
|
-
])) : (openBlock(), createElementBlock("div",
|
|
459
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
454
460
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
455
|
-
createElementVNode("span",
|
|
461
|
+
createElementVNode("span", _hoisted_14, toDisplayString(filterSearchData.value.length), 1),
|
|
456
462
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
457
463
|
]))
|
|
458
464
|
])) : createCommentVNode("", true),
|
|
@@ -471,8 +477,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
471
477
|
default: withCtx(() => [
|
|
472
478
|
createVNode(_sfc_main$1, {
|
|
473
479
|
sig,
|
|
474
|
-
onToSigDetail: toSigDetail
|
|
475
|
-
|
|
480
|
+
onToSigDetail: toSigDetail,
|
|
481
|
+
showFeature: __props.sigLandscape.length > 0
|
|
482
|
+
}, null, 8, ["sig", "showFeature"])
|
|
476
483
|
]),
|
|
477
484
|
_: 2
|
|
478
485
|
}, 1032, ["flex"]);
|
|
@@ -487,8 +494,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
487
494
|
"--result-image-height": "170px"
|
|
488
495
|
}
|
|
489
496
|
})),
|
|
490
|
-
unref(lePadV) &&
|
|
491
|
-
|
|
497
|
+
unref(lePadV) && filterSigData.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", {
|
|
498
|
+
key: 3,
|
|
499
|
+
ref_key: "loadingRef",
|
|
500
|
+
ref: loadingRef,
|
|
501
|
+
class: "o-sig-loading"
|
|
502
|
+
}, toDisplayString(unref(t)("sig.loading")), 513)) : createCommentVNode("", true),
|
|
503
|
+
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
492
504
|
createVNode(unref(OPagination), {
|
|
493
505
|
page: sigQuery.value.page,
|
|
494
506
|
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
@@ -500,7 +512,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
500
512
|
"show-more": true
|
|
501
513
|
}, null, 8, ["page", "page-size", "total"])
|
|
502
514
|
])) : createCommentVNode("", true)
|
|
503
|
-
]);
|
|
515
|
+
], 512);
|
|
504
516
|
};
|
|
505
517
|
}
|
|
506
518
|
});
|