sep-yui 0.1.16 → 0.1.17
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.
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
6
6
|
options: () => never[];
|
7
7
|
selectedValues: () => never[];
|
8
8
|
maxShowCount: number;
|
9
|
+
multiply: boolean;
|
9
10
|
showClearButton: boolean;
|
10
11
|
dataTestid: string;
|
11
12
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
@@ -15,6 +16,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
15
16
|
options: () => never[];
|
16
17
|
selectedValues: () => never[];
|
17
18
|
maxShowCount: number;
|
19
|
+
multiply: boolean;
|
18
20
|
showClearButton: boolean;
|
19
21
|
dataTestid: string;
|
20
22
|
}>>> & {
|
@@ -23,6 +25,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
23
25
|
dataTestid: string;
|
24
26
|
iconName: IconNameEnum;
|
25
27
|
options: IFilterTagOption[];
|
28
|
+
multiply: boolean;
|
26
29
|
selectedValues: string[];
|
27
30
|
maxShowCount: number;
|
28
31
|
showClearButton: boolean;
|
package/dist/sep-yui.es.ts
CHANGED
@@ -16028,6 +16028,7 @@ const gV = ["id", "data-testid"], mV = ["data-testid"], _V = ["data-testid"], yV
|
|
16028
16028
|
iconName: { default: Le.filter },
|
16029
16029
|
options: { default: () => [] },
|
16030
16030
|
selectedValues: { default: () => [] },
|
16031
|
+
multiply: { type: Boolean, default: !0 },
|
16031
16032
|
maxShowCount: { default: 5 },
|
16032
16033
|
showClearButton: { type: Boolean, default: !1 },
|
16033
16034
|
dataTestid: { default: "FilterTag" }
|
@@ -16043,7 +16044,10 @@ const gV = ["id", "data-testid"], mV = ["data-testid"], _V = ["data-testid"], yV
|
|
16043
16044
|
})), u = () => i.isShow = !i.isShow, c = () => {
|
16044
16045
|
i.isShow = !1;
|
16045
16046
|
}, f = x(() => i.options.filter((g) => g.chose)), h = x(() => i.options.filter((g) => !g.chose)), p = (g) => {
|
16046
|
-
g.chose = !g.chose,
|
16047
|
+
g.chose = !g.chose, n.multiply || (i.options = i.options.map((C) => ({
|
16048
|
+
...C,
|
16049
|
+
chose: g.value === C.value && g.chose
|
16050
|
+
}))), i.options.every((C) => C.chose) && (i.options = i.options.map((C) => ({ ...C, chose: !1 }))), s(
|
16047
16051
|
"change",
|
16048
16052
|
f.value.map((C) => C.value)
|
16049
16053
|
);
|
@@ -16055,7 +16059,7 @@ const gV = ["id", "data-testid"], mV = ["data-testid"], _V = ["data-testid"], yV
|
|
16055
16059
|
chose: n.selectedValues.includes(g.value)
|
16056
16060
|
})), i.options.every((g) => g.chose) && (i.options = i.options.map((g) => ({ ...g, chose: !1 })));
|
16057
16061
|
};
|
16058
|
-
return
|
16062
|
+
return $e(() => n.options, w), $e(() => JSON.stringify(n.selectedValues), w), je(w), (g, C) => Ut((S(), I("div", {
|
16059
16063
|
class: "filter-yui-kit",
|
16060
16064
|
"data-testid": n.dataTestid
|
16061
16065
|
}, [
|
@@ -16200,7 +16204,7 @@ const gV = ["id", "data-testid"], mV = ["data-testid"], _V = ["data-testid"], yV
|
|
16200
16204
|
]
|
16201
16205
|
]);
|
16202
16206
|
}
|
16203
|
-
}), $p = /* @__PURE__ */ Ce(NV, [["__scopeId", "data-v-
|
16207
|
+
}), $p = /* @__PURE__ */ Ce(NV, [["__scopeId", "data-v-ce6b2c6f"]]), Mu = (e) => (is("data-v-e50e4774"), e = e(), ss(), e), FV = ["data-testid"], jV = ["data-testid"], UV = ["data-testid"], zV = ["data-testid"], ZV = /* @__PURE__ */ Mu(() => /* @__PURE__ */ V("path", {
|
16204
16208
|
d: "M8 1C4.136 1 1 4.136 1 8C1 11.864 4.136 15 8 15C11.864 15 15 11.864 15 8C15 4.136 11.864 1 8 1ZM8 13.6C4.906 13.6 2.4 11.094 2.4 8C2.4 4.906 4.906 2.4 8 2.4C11.094 2.4 13.6 4.906 13.6 8C13.6 11.094 11.094 13.6 8 13.6Z",
|
16205
16209
|
fill: "#3BC648"
|
16206
16210
|
}, null, -1)), qV = /* @__PURE__ */ Mu(() => /* @__PURE__ */ V("circle", {
|