@opendesign-plus-test/components 0.0.1-rc.131 → 0.0.1-rc.133

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 (58) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +17 -11
  3. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +1 -0
  4. package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +8 -1
  5. package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  6. package/dist/components/meeting/index.d.ts +25 -3
  7. package/dist/components/meeting/types.d.ts +1 -0
  8. package/dist/components/sig/OSigList.vue.d.ts +2 -1
  9. package/dist/components/sig/types.d.ts +2 -0
  10. package/dist/components.cjs.js +38 -38
  11. package/dist/components.css +1 -1
  12. package/dist/components.es.js +9258 -9328
  13. package/dist/treeshaking/_virtual/icon-filter.mjs +6 -5
  14. package/dist/treeshaking/_virtual/icon-forum.mjs +21 -0
  15. package/dist/treeshaking/components/activity/OActivityApproval.css +3 -6
  16. package/dist/treeshaking/components/activity/OActivityApproval2.css +3 -6
  17. package/dist/treeshaking/components/activity/OActivityForm.css +3 -6
  18. package/dist/treeshaking/components/activity/OActivityForm2.css +3 -6
  19. package/dist/treeshaking/components/activity/OActivityMyCalendar.css +3 -6
  20. package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +3 -6
  21. package/dist/treeshaking/components/common/ThFilter.vue.mjs +1 -1
  22. package/dist/treeshaking/components/common/TooltipText.vue.mjs +3 -2
  23. package/dist/treeshaking/components/element-plus/OElCookieNotice.css +3 -6
  24. package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +3 -6
  25. package/dist/treeshaking/components/meeting/OMeetingCalendar.css +3 -6
  26. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.d.ts +1 -0
  27. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +5 -3
  28. package/dist/treeshaking/components/meeting/OMeetingForm.css +3 -6
  29. package/dist/treeshaking/components/meeting/OMeetingForm2.css +3 -6
  30. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.css +3 -6
  31. package/dist/treeshaking/components/meeting/OMeetingMyCalendar2.css +3 -6
  32. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.d.ts +8 -1
  33. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +8 -3
  34. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  35. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +4 -3
  36. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.css +3 -6
  37. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector2.css +3 -6
  38. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +3 -6
  39. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles2.css +3 -6
  40. package/dist/treeshaking/components/meeting/index.d.ts +25 -3
  41. package/dist/treeshaking/components/meeting/types.d.ts +1 -0
  42. package/dist/treeshaking/components/sig/OSigDetail.css +3 -0
  43. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +2 -1
  44. package/dist/treeshaking/components/sig/OSigList.css +317 -81
  45. package/dist/treeshaking/components/sig/OSigList.vue.d.ts +2 -1
  46. package/dist/treeshaking/components/sig/OSigList.vue.mjs +205 -293
  47. package/dist/treeshaking/components/sig/components/OSigItem.css +68 -63
  48. package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +2 -1
  49. package/dist/treeshaking/components/sig/components/OSigMember.css +3 -0
  50. package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +2 -2
  51. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +2 -2
  52. package/dist/treeshaking/components/sig/components/OSigUserContribute.css +47 -315
  53. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +69 -72
  54. package/dist/treeshaking/components/sig/types.d.ts +2 -0
  55. package/dist/treeshaking/i18n/en.mjs +4 -1
  56. package/dist/treeshaking/i18n/zh.mjs +3 -0
  57. package/package.json +3 -3
  58. package/dist/treeshaking/_virtual/icon-filter2.mjs +0 -21
@@ -1,13 +1,15 @@
1
- import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
1
+ import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
2
+ import { ElSelect, ElOption } from "element-plus";
3
+ import "element-plus/es/components/select/style/css";
4
+ import "element-plus/es/components/option/style/css";
2
5
  import { useDebounceFn, onClickOutside, useThrottleFn } from "@vueuse/core";
3
6
  import { useScreen } from "@opendesign-plus/composables";
4
7
  import { useI18n } from "../../i18n/index.mjs";
5
- import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, OButton, ORow, OCol, OPagination, ODialog } from "@opensig/opendesign";
8
+ import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, ORow, OCol, OPagination } from "@opensig/opendesign";
6
9
  import OEmpty from "../empty/OEmpty.vue.mjs";
7
10
  import _sfc_main$1 from "./components/OSigItem.vue.mjs";
8
11
  import './components/OSigItem.css';
9
12
  import IconSearch from "../../_virtual/icon-search.mjs";
10
- import IconFilter from "../../_virtual/icon-filter.mjs";
11
13
  import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
12
14
  const _hoisted_1 = { class: "o-sig-list" };
13
15
  const _hoisted_2 = {
@@ -15,64 +17,60 @@ const _hoisted_2 = {
15
17
  class: "o-sig-filter-type"
16
18
  };
17
19
  const _hoisted_3 = { class: "o-sig-filter-title" };
18
- const _hoisted_4 = { class: "o-sig-filter-select-box" };
19
- const _hoisted_5 = {
20
+ const _hoisted_4 = {
21
+ key: 1,
22
+ class: "o-sig-filter-input"
23
+ };
24
+ const _hoisted_5 = { class: "o-sig-filter-select-box" };
25
+ const _hoisted_6 = {
20
26
  key: 0,
21
27
  class: "o-sig-search-data"
22
28
  };
23
- const _hoisted_6 = {
29
+ const _hoisted_7 = {
24
30
  key: 0,
25
31
  class: "o-sig-search-label"
26
32
  };
27
- const _hoisted_7 = ["onClick"];
28
- const _hoisted_8 = ["title"];
29
- const _hoisted_9 = {
30
- key: 2,
31
- class: "o-sig-no-result"
32
- };
33
+ const _hoisted_8 = ["onClick"];
34
+ const _hoisted_9 = ["title"];
33
35
  const _hoisted_10 = {
34
36
  key: 2,
35
- class: "o-sig-filter-btn"
37
+ class: "o-sig-no-result"
36
38
  };
37
- const _hoisted_11 = { class: "o-sig-filter-text" };
38
- const _hoisted_12 = {
39
+ const _hoisted_11 = {
39
40
  key: 0,
40
41
  class: "o-sig-filter-result-tip"
41
42
  };
42
- const _hoisted_13 = { key: 0 };
43
- const _hoisted_14 = { class: "o-sig-num" };
44
- const _hoisted_15 = {
43
+ const _hoisted_12 = { key: 0 };
44
+ const _hoisted_13 = { class: "o-sig-num" };
45
+ const _hoisted_14 = {
45
46
  key: 0,
46
47
  class: "o-sig-num"
47
48
  };
48
- const _hoisted_16 = { key: 1 };
49
- const _hoisted_17 = { class: "o-sig-num" };
50
- const _hoisted_18 = {
49
+ const _hoisted_15 = { key: 1 };
50
+ const _hoisted_16 = { class: "o-sig-num" };
51
+ const _hoisted_17 = {
51
52
  key: 3,
52
53
  class: "o-sig-loading"
53
54
  };
54
- const _hoisted_19 = {
55
+ const _hoisted_18 = {
55
56
  key: 4,
56
57
  class: "o-sig-pagination"
57
58
  };
58
- const _hoisted_20 = { class: "o-sig-dialog-title" };
59
- const _hoisted_21 = { class: "o-sig-dialog-body" };
60
- const _hoisted_22 = { class: "o-sig-filter-title" };
61
- const _hoisted_23 = { class: "o-sig-dialog-btn" };
62
59
  const PAGE_SIZE_DEFAULT = 10;
63
60
  const _sfc_main = /* @__PURE__ */ defineComponent({
64
61
  __name: "OSigList",
65
62
  props: {
66
63
  sigLandscape: { default: () => [] },
67
64
  sigList: { default: () => [] },
68
- searchFn: {}
65
+ searchFn: {},
66
+ footerSelector: { default: "#app > .footer" }
69
67
  },
70
68
  emits: ["to-sig-detail"],
71
69
  setup(__props, { emit: __emit }) {
72
70
  const vDompurifyHtml = buildVueDompurifyHTMLDirective();
73
71
  const { locale: localeRef, t } = useI18n();
74
72
  const locale = computed(() => localeRef.value);
75
- const { isLaptop, isPadH, lePadV } = useScreen();
73
+ const { isLaptop, isPadH, lePadV, isPhone } = useScreen();
76
74
  const COUNT_PER_PAGE = [10, 20, 30];
77
75
  const props = __props;
78
76
  const emit = __emit;
@@ -115,6 +113,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
113
  constructLandscapeMap();
116
114
  mergeSigList();
117
115
  };
116
+ watch(
117
+ () => [props.sigList, props.sigLandscape],
118
+ () => {
119
+ initData();
120
+ },
121
+ { immediate: true }
122
+ );
118
123
  const searchType = ref("all");
119
124
  const placeholderType = ref(t("sig.searchSig"));
120
125
  const sigOptions = [
@@ -216,9 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
216
221
  const filterSigData = ref([]);
217
222
  const filterSearchData = ref([]);
218
223
  const filterDataMb = ref([]);
219
- const filterVisible = ref(false);
220
224
  const featureType = ref("all");
221
- const featureTypeMb = ref("all");
222
225
  const matchKw = (text, kw) => !!text && text.toLowerCase().includes(kw);
223
226
  watch(
224
227
  () => [
@@ -271,7 +274,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
271
274
  });
272
275
  const clearChecked = (val) => {
273
276
  resetSigQuery();
274
- filterVisible.value = false;
275
277
  if (val) {
276
278
  nextTick(() => {
277
279
  featureType.value = "all";
@@ -285,15 +287,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
285
287
  );
286
288
  sigQuery.value.page++;
287
289
  };
288
- const resetVersion = () => {
289
- featureType.value = "all";
290
- filterVisible.value = false;
291
- };
292
- const confirmVersion = () => {
293
- resetSigQuery();
294
- filterVisible.value = false;
295
- featureType.value = featureTypeMb.value;
296
- };
297
290
  const footer = ref(null);
298
291
  const listenScroll = () => {
299
292
  if (!lePadV.value) return;
@@ -310,283 +303,202 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
310
303
  };
311
304
  const throttleEvent = useThrottleFn(listenScroll, 300);
312
305
  onMounted(() => {
313
- initData();
314
- footer.value = document.querySelector("#app > .footer");
306
+ footer.value = document.querySelector(props.footerSelector);
315
307
  window.addEventListener("scroll", throttleEvent);
316
308
  });
317
309
  onUnmounted(() => {
318
310
  window.removeEventListener("scroll", throttleEvent);
319
311
  });
320
312
  return (_ctx, _cache) => {
321
- return openBlock(), createElementBlock(Fragment, null, [
322
- createElementVNode("div", _hoisted_1, [
323
- createElementVNode("div", {
324
- class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
325
- }, [
326
- !unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_2, [
327
- createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
328
- createVNode(unref(ORadioGroup), {
329
- modelValue: featureType.value,
330
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
313
+ return openBlock(), createElementBlock("div", _hoisted_1, [
314
+ createElementVNode("div", {
315
+ class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
316
+ }, [
317
+ !unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
318
+ createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
319
+ createVNode(unref(ORadioGroup), {
320
+ modelValue: featureType.value,
321
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
322
+ }, {
323
+ default: withCtx(() => [
324
+ (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
325
+ return openBlock(), createBlock(unref(ORadio), {
326
+ key: option.value,
327
+ value: option.value
328
+ }, {
329
+ radio: withCtx(({ checked }) => [
330
+ createVNode(unref(OToggle), {
331
+ class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
332
+ checked,
333
+ onClick: ($event) => clearChecked(checked)
334
+ }, {
335
+ default: withCtx(() => [
336
+ createTextVNode(toDisplayString(option.label[locale.value]), 1)
337
+ ]),
338
+ _: 2
339
+ }, 1032, ["class", "checked", "onClick"])
340
+ ]),
341
+ _: 2
342
+ }, 1032, ["value"]);
343
+ }), 128))
344
+ ]),
345
+ _: 1
346
+ }, 8, ["modelValue"])
347
+ ])) : createCommentVNode("", true),
348
+ unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_4, [
349
+ createVNode(unref(ElSelect), {
350
+ modelValue: featureType.value,
351
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
352
+ filterable: "",
353
+ size: "large",
354
+ placeholder: unref(t)("sig.selectOrSearchCate")
355
+ }, {
356
+ default: withCtx(() => [
357
+ (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
358
+ return openBlock(), createBlock(unref(ElOption), {
359
+ key: option.value,
360
+ label: option.label[locale.value] ?? option.value,
361
+ value: option.value
362
+ }, null, 8, ["label", "value"]);
363
+ }), 128))
364
+ ]),
365
+ _: 1
366
+ }, 8, ["modelValue", "placeholder"])
367
+ ])) : createCommentVNode("", true),
368
+ createVNode(unref(ODivider), { direction: "h" }),
369
+ createElementVNode("div", _hoisted_5, [
370
+ createElementVNode("div", {
371
+ ref_key: "panelRef",
372
+ ref: panelRef,
373
+ class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
374
+ }, [
375
+ createVNode(unref(OSelect), {
376
+ modelValue: searchType.value,
377
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchType.value = $event),
378
+ size: "large",
379
+ trigger: "click",
380
+ variant: "outline",
381
+ onChange: getSearchType
331
382
  }, {
332
383
  default: withCtx(() => [
333
- (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
334
- return openBlock(), createBlock(unref(ORadio), {
335
- key: option.value,
336
- value: option.value
337
- }, {
338
- radio: withCtx(({ checked }) => [
339
- createVNode(unref(OToggle), {
340
- class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
341
- checked,
342
- onClick: ($event) => clearChecked(checked)
343
- }, {
344
- default: withCtx(() => [
345
- createTextVNode(toDisplayString(option.label[locale.value]), 1)
346
- ]),
347
- _: 2
348
- }, 1032, ["class", "checked", "onClick"])
349
- ]),
350
- _: 2
351
- }, 1032, ["value"]);
352
- }), 128))
384
+ (openBlock(), createElementBlock(Fragment, null, renderList(sigOptions, (item) => {
385
+ return createVNode(unref(OOption), {
386
+ key: item.value,
387
+ label: item.label,
388
+ value: item.value
389
+ }, null, 8, ["label", "value"]);
390
+ }), 64))
353
391
  ]),
354
392
  _: 1
355
- }, 8, ["modelValue"])
356
- ])) : createCommentVNode("", true),
357
- !unref(lePadV) ? (openBlock(), createBlock(unref(ODivider), {
358
- key: 1,
359
- direction: "h"
360
- })) : createCommentVNode("", true),
361
- createElementVNode("div", _hoisted_4, [
362
- createElementVNode("div", {
363
- ref_key: "panelRef",
364
- ref: panelRef,
365
- class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
366
- }, [
367
- createVNode(unref(OSelect), {
368
- modelValue: searchType.value,
369
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchType.value = $event),
370
- size: "large",
371
- trigger: "click",
372
- variant: "outline",
373
- onChange: getSearchType
374
- }, {
375
- default: withCtx(() => [
376
- (openBlock(), createElementBlock(Fragment, null, renderList(sigOptions, (item) => {
377
- return createVNode(unref(OOption), {
378
- key: item.value,
379
- label: item.label,
380
- value: item.value
381
- }, null, 8, ["label", "value"]);
382
- }), 64))
383
- ]),
384
- _: 1
385
- }, 8, ["modelValue"]),
386
- createVNode(unref(OInput), {
387
- modelValue: debounceSig.value,
388
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => debounceSig.value = $event),
389
- size: "large",
390
- clearable: "",
391
- placeholder: placeholderType.value,
392
- onFocusCapture: _cache[3] || (_cache[3] = ($event) => showPanel.value = true),
393
- onPressEnter: changeSearchInput,
394
- onClear: clearInput
395
- }, {
396
- prefix: withCtx(() => [
397
- createVNode(unref(OIcon), null, {
398
- default: withCtx(() => [
399
- createVNode(unref(IconSearch))
400
- ]),
401
- _: 1
402
- })
403
- ]),
404
- _: 1
405
- }, 8, ["modelValue", "placeholder"]),
406
- showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
407
- (openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
408
- return openBlock(), createElementBlock("div", {
409
- key: item.id,
410
- class: "o-sig-search-group"
411
- }, [
412
- searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(item.label), 1)) : createCommentVNode("", true),
413
- item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
414
- return openBlock(), createElementBlock("div", {
415
- key: it.name,
416
- class: "o-sig-search-item",
417
- onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
418
- }, [
419
- withDirectives(createElementVNode("span", {
420
- title: stripHtml(it == null ? void 0 : it.name),
421
- class: "o-sig-search-title"
422
- }, null, 8, _hoisted_8), [
423
- [unref(vDompurifyHtml), it == null ? void 0 : it.name]
424
- ])
425
- ], 8, _hoisted_7);
426
- }), 128)) : (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(unref(t)("sig.noResult")), 1))
427
- ]);
428
- }), 128))
429
- ])) : createCommentVNode("", true)
430
- ], 2)
431
- ]),
432
- unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_10, [
433
- createVNode(unref(OButton), {
434
- variant: "text",
435
- color: "normal",
436
- class: "o-sig-select-btn",
437
- onClick: _cache[4] || (_cache[4] = ($event) => filterVisible.value = true)
393
+ }, 8, ["modelValue"]),
394
+ createVNode(unref(OInput), {
395
+ modelValue: debounceSig.value,
396
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => debounceSig.value = $event),
397
+ size: "large",
398
+ clearable: "",
399
+ placeholder: placeholderType.value,
400
+ onFocusCapture: _cache[4] || (_cache[4] = ($event) => showPanel.value = true),
401
+ onPressEnter: changeSearchInput,
402
+ onClear: clearInput
438
403
  }, {
439
- default: withCtx(() => [
404
+ prefix: withCtx(() => [
440
405
  createVNode(unref(OIcon), null, {
441
406
  default: withCtx(() => [
442
- createVNode(unref(IconFilter))
407
+ createVNode(unref(IconSearch))
443
408
  ]),
444
409
  _: 1
445
- }),
446
- createElementVNode("span", _hoisted_11, toDisplayString(unref(t)("sig.filter")), 1)
410
+ })
447
411
  ]),
448
412
  _: 1
449
- })
450
- ])) : createCommentVNode("", true)
451
- ], 2),
452
- featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
453
- sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
454
- createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
455
- createElementVNode("span", _hoisted_14, toDisplayString(filterSearchData.value.length), 1),
456
- createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
457
- locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
458
- createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
459
- ])) : (openBlock(), createElementBlock("div", _hoisted_16, [
460
- createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
461
- createElementVNode("span", _hoisted_17, toDisplayString(filterSearchData.value.length), 1),
462
- createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
463
- ]))
464
- ])) : createCommentVNode("", true),
465
- filterSigData.value.length ? (openBlock(), createBlock(unref(ORow), {
466
- key: 1,
467
- gap: gap.value,
468
- wrap: "wrap",
469
- class: normalizeClass(["o-sig-card-list", { "o-sig-card-list-tip": featureType.value !== "all" || enterSearchInput.value }])
470
- }, {
471
- default: withCtx(() => [
472
- (openBlock(true), createElementBlock(Fragment, null, renderList(filterSigData.value, (sig) => {
473
- return openBlock(), createBlock(unref(OCol), {
474
- key: sig.name,
475
- flex: unref(lePadV) ? "0 0 100%" : "0 0 50%"
476
- }, {
477
- default: withCtx(() => [
478
- createVNode(_sfc_main$1, {
479
- sig,
480
- locale: locale.value,
481
- mobile: unref(lePadV),
482
- "active-repo": activeRepo.value,
483
- onToSigDetail: toSigDetail
484
- }, null, 8, ["sig", "locale", "mobile", "active-repo"])
485
- ]),
486
- _: 2
487
- }, 1032, ["flex"]);
488
- }), 128))
489
- ]),
490
- _: 1
491
- }, 8, ["gap", "class"])) : (openBlock(), createBlock(OEmpty, {
492
- key: 2,
493
- style: {
494
- "margin-top": "40px",
495
- "--result-image-width": "140px",
496
- "--result-image-height": "170px"
497
- }
498
- })),
499
- unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_18, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
500
- filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_19, [
501
- createVNode(unref(OPagination), {
502
- page: sigQuery.value.page,
503
- "onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
504
- "page-size": sigQuery.value.pageSize,
505
- "onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
506
- layout: ["total", "pagesize", "pager", "jumper"],
507
- total: filterSearchData.value.length,
508
- "page-sizes": COUNT_PER_PAGE,
509
- "show-more": true
510
- }, null, 8, ["page", "page-size", "total"])
511
- ])) : createCommentVNode("", true)
512
- ]),
513
- createVNode(unref(ODialog), {
514
- visible: filterVisible.value,
515
- "onUpdate:visible": _cache[8] || (_cache[8] = ($event) => filterVisible.value = $event),
516
- "phone-half-full": unref(lePadV),
517
- scrollbar: { showType: "always", size: "small" },
518
- size: "medium",
519
- style: { "--dlg-radius": "4px 4px 0 0" },
520
- class: "o-sig-filter-dialog"
413
+ }, 8, ["modelValue", "placeholder"]),
414
+ showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
415
+ (openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
416
+ return openBlock(), createElementBlock("div", {
417
+ key: item.id,
418
+ class: "o-sig-search-group"
419
+ }, [
420
+ searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(item.label), 1)) : createCommentVNode("", true),
421
+ item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
422
+ return openBlock(), createElementBlock("div", {
423
+ key: it.name,
424
+ class: "o-sig-search-item",
425
+ onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
426
+ }, [
427
+ withDirectives(createElementVNode("span", {
428
+ title: stripHtml(it == null ? void 0 : it.name),
429
+ class: "o-sig-search-title"
430
+ }, null, 8, _hoisted_9), [
431
+ [unref(vDompurifyHtml), it == null ? void 0 : it.name]
432
+ ])
433
+ ], 8, _hoisted_8);
434
+ }), 128)) : (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(unref(t)("sig.noResult")), 1))
435
+ ]);
436
+ }), 128))
437
+ ])) : createCommentVNode("", true)
438
+ ], 2)
439
+ ])
440
+ ], 2),
441
+ featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
442
+ sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
443
+ createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
444
+ createElementVNode("span", _hoisted_13, toDisplayString(filterSearchData.value.length), 1),
445
+ createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
446
+ locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
447
+ createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
448
+ ])) : (openBlock(), createElementBlock("div", _hoisted_15, [
449
+ createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
450
+ createElementVNode("span", _hoisted_16, toDisplayString(filterSearchData.value.length), 1),
451
+ createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
452
+ ]))
453
+ ])) : createCommentVNode("", true),
454
+ filterSigData.value.length ? (openBlock(), createBlock(unref(ORow), {
455
+ key: 1,
456
+ gap: gap.value,
457
+ wrap: "wrap",
458
+ class: normalizeClass(["o-sig-card-list", { "o-sig-card-list-tip": featureType.value !== "all" || enterSearchInput.value }])
521
459
  }, {
522
- header: withCtx(() => [
523
- createElementVNode("span", _hoisted_20, toDisplayString(unref(t)("sig.type")), 1)
524
- ]),
525
460
  default: withCtx(() => [
526
- createElementVNode("div", _hoisted_21, [
527
- createElementVNode("p", _hoisted_22, toDisplayString(unref(t)("sig.type")), 1),
528
- createVNode(unref(ORadioGroup), {
529
- modelValue: featureTypeMb.value,
530
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => featureTypeMb.value = $event),
531
- style: { gap: "8px 8px" }
532
- }, {
533
- default: withCtx(() => [
534
- (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
535
- return openBlock(), createBlock(unref(ORadio), {
536
- key: option.value,
537
- value: option.value
538
- }, {
539
- radio: withCtx(({ checked }) => [
540
- createVNode(unref(OToggle), {
541
- class: normalizeClass({ active: checked }),
542
- checked,
543
- style: { "--toggle-size": "28px", "--toggle-padding": "6px 16px", "--toggle-radius": "4px" }
544
- }, {
545
- default: withCtx(() => [
546
- createTextVNode(toDisplayString(option.label[locale.value]), 1)
547
- ]),
548
- _: 2
549
- }, 1032, ["class", "checked"])
550
- ]),
551
- _: 2
552
- }, 1032, ["value"]);
553
- }), 128))
554
- ]),
555
- _: 1
556
- }, 8, ["modelValue"])
557
- ]),
558
- createElementVNode("div", _hoisted_23, [
559
- createVNode(unref(OButton), {
560
- color: "normal",
561
- variant: "text",
562
- size: "large",
563
- onClick: resetVersion
461
+ (openBlock(true), createElementBlock(Fragment, null, renderList(filterSigData.value, (sig) => {
462
+ return openBlock(), createBlock(unref(OCol), {
463
+ key: sig.name,
464
+ flex: unref(lePadV) ? "0 0 100%" : "0 0 50%"
564
465
  }, {
565
466
  default: withCtx(() => [
566
- createTextVNode(toDisplayString(unref(t)("common.reset")), 1)
467
+ createVNode(_sfc_main$1, {
468
+ sig,
469
+ locale: locale.value,
470
+ mobile: unref(lePadV),
471
+ "active-repo": activeRepo.value,
472
+ onToSigDetail: toSigDetail
473
+ }, null, 8, ["sig", "locale", "mobile", "active-repo"])
567
474
  ]),
568
- _: 1
569
- }),
570
- createVNode(unref(ODivider), {
571
- class: "o-sig-dialog-divider",
572
- direction: "v"
573
- }),
574
- createVNode(unref(OButton), {
575
- color: "normal",
576
- variant: "text",
577
- size: "large",
578
- onClick: confirmVersion
579
- }, {
580
- default: withCtx(() => [
581
- createTextVNode(toDisplayString(unref(t)("common.confirm2")), 1)
582
- ]),
583
- _: 1
584
- })
585
- ])
475
+ _: 2
476
+ }, 1032, ["flex"]);
477
+ }), 128))
586
478
  ]),
587
479
  _: 1
588
- }, 8, ["visible", "phone-half-full"])
589
- ], 64);
480
+ }, 8, ["gap", "class"])) : (openBlock(), createBlock(OEmpty, {
481
+ key: 2,
482
+ style: {
483
+ "margin-top": "40px",
484
+ "--result-image-width": "140px",
485
+ "--result-image-height": "170px"
486
+ }
487
+ })),
488
+ unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_17, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
489
+ filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_18, [
490
+ createVNode(unref(OPagination), {
491
+ page: sigQuery.value.page,
492
+ "onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
493
+ "page-size": sigQuery.value.pageSize,
494
+ "onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
495
+ layout: ["total", "pagesize", "pager", "jumper"],
496
+ total: filterSearchData.value.length,
497
+ "page-sizes": COUNT_PER_PAGE,
498
+ "show-more": true
499
+ }, null, 8, ["page", "page-size", "total"])
500
+ ])) : createCommentVNode("", true)
501
+ ]);
590
502
  };
591
503
  }
592
504
  });