@opendesign-plus-test/components 0.0.1-rc.134 → 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.
@@ -47966,7 +47966,7 @@ const rw = { name: "sig-icon-filter", render: nw }, aw = { class: "o-sig-list" }
47966
47966
  key: 2,
47967
47967
  class: "o-sig-no-result"
47968
47968
  }, gw = {
47969
- key: 2,
47969
+ key: 1,
47970
47970
  class: "o-sig-filter-btn"
47971
47971
  }, mw = { class: "o-sig-filter-text" }, vw = {
47972
47972
  key: 0,
@@ -47993,6 +47993,10 @@ const rw = { name: "sig-icon-filter", render: nw }, aw = { class: "o-sig-list" }
47993
47993
  const t = ma(), { locale: i, t: n } = Bt(), r = xe(() => i.value), { isLaptop: a, isPadH: o, lePadV: u } = Kt(), d = [10, 20, 30], g = s, m = e, E = ae({ pageSize: nf, page: 1 }), T = () => {
47994
47994
  E.value.page = 1, E.value.pageSize = nf;
47995
47995
  }, O = ae([]), v = ae(""), A = ae([]), w = ae([]), P = ae([]), M = () => {
47996
+ if (!g.sigLandscape.length) {
47997
+ w.value = [];
47998
+ return;
47999
+ }
47996
48000
  A.value = g.sigLandscape.map(({ created_at: ge, ...De }) => De);
47997
48001
  const Ve = /* @__PURE__ */ new Set(), fe = [];
47998
48002
  for (const ge of A.value)
@@ -48127,41 +48131,43 @@ const rw = { name: "sig-icon-filter", render: nw }, aw = { class: "o-sig-list" }
48127
48131
  }), (Ve, fe) => (y(), I(we, null, [
48128
48132
  _("div", aw, [
48129
48133
  _("div", {
48130
- class: Me(["o-sig-filter-box", `o-sig-filter-box-${r.value}`])
48134
+ class: Me(["o-sig-filter-box", `o-sig-filter-box-${r.value} ${w.value.length ? "" : "o-sig-filter-box--no-filter-type"}`])
48131
48135
  }, [
48132
- c(u) ? le("", !0) : (y(), I("div", ow, [
48133
- _("p", lw, L(c(n)("sig.type")), 1),
48134
- D(c(Hs), {
48135
- modelValue: $e.value,
48136
- "onUpdate:modelValue": fe[0] || (fe[0] = (ge) => $e.value = ge)
48137
- }, {
48138
- default: x(() => [
48139
- (y(!0), I(we, null, qe(w.value, (ge) => (y(), he(c(fs), {
48140
- key: ge.value,
48141
- value: ge.value
48142
- }, {
48143
- radio: x(({ checked: De }) => [
48144
- D(c(ho), {
48145
- class: Me(["o-sig-tag-normal", { active: De }]),
48146
- checked: De,
48147
- onClick: (_e) => ht(De)
48148
- }, {
48149
- default: x(() => [
48150
- ke(L(ge.label[r.value]), 1)
48151
- ]),
48152
- _: 2
48153
- }, 1032, ["class", "checked", "onClick"])
48154
- ]),
48155
- _: 2
48156
- }, 1032, ["value"]))), 128))
48157
- ]),
48158
- _: 1
48159
- }, 8, ["modelValue"])
48160
- ])),
48161
- c(u) ? le("", !0) : (y(), he(c(ni), {
48162
- key: 1,
48163
- direction: "h"
48164
- })),
48136
+ w.value.length ? (y(), I(we, { key: 0 }, [
48137
+ c(u) ? le("", !0) : (y(), I("div", ow, [
48138
+ _("p", lw, L(c(n)("sig.type")), 1),
48139
+ D(c(Hs), {
48140
+ modelValue: $e.value,
48141
+ "onUpdate:modelValue": fe[0] || (fe[0] = (ge) => $e.value = ge)
48142
+ }, {
48143
+ default: x(() => [
48144
+ (y(!0), I(we, null, qe(w.value, (ge) => (y(), he(c(fs), {
48145
+ key: ge.value,
48146
+ value: ge.value
48147
+ }, {
48148
+ radio: x(({ checked: De }) => [
48149
+ D(c(ho), {
48150
+ class: Me(["o-sig-tag-normal", { active: De }]),
48151
+ checked: De,
48152
+ onClick: (_e) => ht(De)
48153
+ }, {
48154
+ default: x(() => [
48155
+ ke(L(ge.label[r.value]), 1)
48156
+ ]),
48157
+ _: 2
48158
+ }, 1032, ["class", "checked", "onClick"])
48159
+ ]),
48160
+ _: 2
48161
+ }, 1032, ["value"]))), 128))
48162
+ ]),
48163
+ _: 1
48164
+ }, 8, ["modelValue"])
48165
+ ])),
48166
+ c(u) ? le("", !0) : (y(), he(c(ni), {
48167
+ key: 1,
48168
+ direction: "h"
48169
+ }))
48170
+ ], 64)) : le("", !0),
48165
48171
  _("div", uw, [
48166
48172
  _("div", {
48167
48173
  ref_key: "panelRef",
@@ -48227,7 +48233,7 @@ const rw = { name: "sig-icon-filter", render: nw }, aw = { class: "o-sig-list" }
48227
48233
  ])) : le("", !0)
48228
48234
  ], 2)
48229
48235
  ]),
48230
- c(u) ? (y(), I("div", gw, [
48236
+ c(u) && w.value.length ? (y(), I("div", gw, [
48231
48237
  D(c(Et), {
48232
48238
  variant: "text",
48233
48239
  color: "normal",
@@ -21,6 +21,9 @@
21
21
  padding: var(--o-gap-3);
22
22
  }
23
23
  }
24
+ .o-sig-list .o-sig-filter-box.o-sig-filter-box--no-filter-type .o-sig-filter-select-box {
25
+ justify-content: flex-end;
26
+ }
24
27
  .o-sig-list .o-sig-filter-box .o-sig-filter-type {
25
28
  display: flex;
26
29
  align-items: flex-start;
@@ -169,6 +172,11 @@
169
172
  .o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input {
170
173
  width: 320px;
171
174
  }
175
+ @media (max-width: 840px) {
176
+ .o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input {
177
+ flex: 1;
178
+ }
179
+ }
172
180
  .o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input .o_box-main {
173
181
  border: none;
174
182
  }
@@ -31,7 +31,7 @@ const _hoisted_9 = {
31
31
  class: "o-sig-no-result"
32
32
  };
33
33
  const _hoisted_10 = {
34
- key: 2,
34
+ key: 1,
35
35
  class: "o-sig-filter-btn"
36
36
  };
37
37
  const _hoisted_11 = { class: "o-sig-filter-text" };
@@ -88,6 +88,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
88
  const featureArr = ref([]);
89
89
  const mergedSigList = ref([]);
90
90
  const constructLandscapeMap = () => {
91
+ if (!props.sigLandscape.length) {
92
+ featureArr.value = [];
93
+ return;
94
+ }
91
95
  landscapeList.value = props.sigLandscape.map(({ created_at: _created, ...rest }) => rest);
92
96
  const seen = /* @__PURE__ */ new Set();
93
97
  const features = [];
@@ -322,43 +326,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
322
326
  return openBlock(), createElementBlock(Fragment, null, [
323
327
  createElementVNode("div", _hoisted_1, [
324
328
  createElementVNode("div", {
325
- class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
329
+ class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value} ${featureArr.value.length ? "" : "o-sig-filter-box--no-filter-type"}`])
326
330
  }, [
327
- !unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_2, [
328
- createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
329
- createVNode(unref(ORadioGroup), {
330
- modelValue: featureType.value,
331
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
332
- }, {
333
- default: withCtx(() => [
334
- (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
335
- return openBlock(), createBlock(unref(ORadio), {
336
- key: option.value,
337
- value: option.value
338
- }, {
339
- radio: withCtx(({ checked }) => [
340
- createVNode(unref(OToggle), {
341
- class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
342
- checked,
343
- onClick: ($event) => clearChecked(checked)
344
- }, {
345
- default: withCtx(() => [
346
- createTextVNode(toDisplayString(option.label[locale.value]), 1)
347
- ]),
348
- _: 2
349
- }, 1032, ["class", "checked", "onClick"])
350
- ]),
351
- _: 2
352
- }, 1032, ["value"]);
353
- }), 128))
354
- ]),
355
- _: 1
356
- }, 8, ["modelValue"])
357
- ])) : createCommentVNode("", true),
358
- !unref(lePadV) ? (openBlock(), createBlock(unref(ODivider), {
359
- key: 1,
360
- direction: "h"
361
- })) : createCommentVNode("", true),
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
343
+ }, {
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"])
355
+ ]),
356
+ _: 2
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),
362
368
  createElementVNode("div", _hoisted_4, [
363
369
  createElementVNode("div", {
364
370
  ref_key: "panelRef",
@@ -430,7 +436,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
430
436
  ])) : createCommentVNode("", true)
431
437
  ], 2)
432
438
  ]),
433
- unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_10, [
439
+ unref(lePadV) && featureArr.value.length ? (openBlock(), createElementBlock("div", _hoisted_10, [
434
440
  createVNode(unref(OButton), {
435
441
  variant: "text",
436
442
  color: "normal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.134",
3
+ "version": "0.0.1-rc.135",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",