eco-vue-js 0.5.24 → 0.5.25
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAoEA;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAoEA;;;;;;;;;;;;;;;;;;;;WAqUY,MAAM;oBACG,MAAM;;AAR3B,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -12,9 +12,9 @@ const _hoisted_1 = { class: "grid grid-cols-[1fr,auto] h-12 pb-3 w-full" };
|
|
12
12
|
const _hoisted_2 = { class: "flex" };
|
13
13
|
const _hoisted_3 = {
|
14
14
|
key: 0,
|
15
|
-
class: "
|
15
|
+
class: "grid grid-cols-[1fr,auto] gap-3 sm-not:gap-1"
|
16
16
|
};
|
17
|
-
const _hoisted_4 = { class: "
|
17
|
+
const _hoisted_4 = { class: "self-center font-normal text-base sm-not:text-xs text-description whitespace-nowrap truncate" };
|
18
18
|
const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", { class: "sm-not:hidden" }, "Selected ", -1);
|
19
19
|
const _hoisted_6 = { class: "text-primary-default dark:text-primary-dark font-semibold" };
|
20
20
|
const _hoisted_7 = { class: "sm-not:text-xs" };
|
@@ -100,12 +100,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
100
100
|
createElementVNode("span", _hoisted_6, toDisplayString(unref(numberFormatter).format(unref(selectedCount))), 1),
|
101
101
|
createElementVNode("span", _hoisted_7, " " + toDisplayString(_ctx.title) + toDisplayString(unref(selectedCount) === 1 ? "" : "s"), 1)
|
102
102
|
]),
|
103
|
-
createElementVNode("
|
104
|
-
class: "relative text-description
|
103
|
+
createElementVNode("button", {
|
104
|
+
class: "relative text-description flex items-center justify-self-end cursor-pointer select-none w-ripple w-ripple-hover",
|
105
105
|
onClick: _cache[2] || (_cache[2] = //@ts-ignore
|
106
106
|
(...args) => unref(clearSelected) && unref(clearSelected)(...args))
|
107
107
|
}, [
|
108
|
-
createVNode(unref(IconCancel))
|
108
|
+
createVNode(unref(IconCancel), { class: "square-5 sm-not:-mx--inner-margin mx-[1.125rem]" })
|
109
109
|
])
|
110
110
|
])) : createCommentVNode("", true)
|
111
111
|
]),
|
@@ -38,12 +38,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
38
|
if (selected) {
|
39
39
|
watch(selected, (value) => {
|
40
40
|
emit("update:selected", value);
|
41
|
-
});
|
41
|
+
}, { immediate: true });
|
42
42
|
}
|
43
43
|
if (allowSelectHover) {
|
44
44
|
watch(allowSelectHover, (value) => {
|
45
45
|
emit("update:selected-hover", value);
|
46
|
-
});
|
46
|
+
}, { immediate: true });
|
47
47
|
}
|
48
48
|
__expose({
|
49
49
|
updateSelected
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
90
90
|
key: 0,
|
91
91
|
text: unref(selected) ? "Unselect" : "Select",
|
92
92
|
icon: unref(selected) ? markRaw(unref(IconMinusCircle)) : markRaw(unref(IconAddCircle)),
|
93
|
-
onClick: _cache[3] || (_cache[3] = ($event) =>
|
93
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(updateSelected)?.(!unref(selected)))
|
94
94
|
}, null, 8, ["text", "icon"])) : createCommentVNode("", true),
|
95
95
|
renderSlot(_ctx.$slots, "more")
|
96
96
|
]),
|