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

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