eco-vue-js 0.5.16 → 0.5.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonDropdown.vue.d.ts +2 -0
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +20 -4
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +2 -1
- package/package.json +1 -1
@@ -4,6 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
4
4
|
contentMaxHeight?: number | undefined;
|
5
5
|
contentMaxWidth?: number | undefined;
|
6
6
|
horizontalAlign?: HorizontalAlign | undefined;
|
7
|
+
leftToggle?: boolean | undefined;
|
7
8
|
disabled?: boolean | undefined;
|
8
9
|
teleport?: boolean | undefined;
|
9
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
@@ -11,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
11
12
|
contentMaxHeight?: number | undefined;
|
12
13
|
contentMaxWidth?: number | undefined;
|
13
14
|
horizontalAlign?: HorizontalAlign | undefined;
|
15
|
+
leftToggle?: boolean | undefined;
|
14
16
|
disabled?: boolean | undefined;
|
15
17
|
teleport?: boolean | undefined;
|
16
18
|
}>>>, {}, {}>, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AA+DA;AAEA,OAAO,EAAC,eAAe,EAAE,KAAK,YAAY,EAAC,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;AAqPzD,wBAAwG;AACxG,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, resolveDynamicComponent,
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeClass, createCommentVNode, createElementBlock, Fragment, renderList, resolveDynamicComponent, renderSlot } from 'vue';
|
2
2
|
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
3
3
|
import './WButtonAction.vue.js';
|
4
4
|
import _sfc_main$2 from './WButton.vue.js';
|
@@ -20,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
contentMaxHeight: {},
|
21
21
|
contentMaxWidth: {},
|
22
22
|
horizontalAlign: {},
|
23
|
+
leftToggle: { type: Boolean },
|
23
24
|
disabled: { type: Boolean },
|
24
25
|
teleport: { type: Boolean }
|
25
26
|
},
|
@@ -39,6 +40,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
40
|
}, {
|
40
41
|
toggle: withCtx(() => [
|
41
42
|
createElementVNode("div", _hoisted_1, [
|
43
|
+
_ctx.leftToggle ? (openBlock(), createBlock(_sfc_main$2, {
|
44
|
+
key: 0,
|
45
|
+
"semantic-type": _ctx.semanticType,
|
46
|
+
disabled: _ctx.disabled,
|
47
|
+
join: "",
|
48
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
49
|
+
}, {
|
50
|
+
default: withCtx(() => [
|
51
|
+
createVNode(unref(IconArrow), {
|
52
|
+
class: normalizeClass(["square-4 transition-transform", { "rotate-180": isOpen.value }])
|
53
|
+
}, null, 8, ["class"])
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
}, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true),
|
42
57
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.button?.(), (item, index) => {
|
43
58
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
44
59
|
key: index,
|
@@ -46,11 +61,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
61
|
class: "flex-1"
|
47
62
|
});
|
48
63
|
}), 128)),
|
49
|
-
|
64
|
+
!_ctx.leftToggle ? (openBlock(), createBlock(_sfc_main$2, {
|
65
|
+
key: 1,
|
50
66
|
"semantic-type": _ctx.semanticType,
|
51
67
|
disabled: _ctx.disabled,
|
52
68
|
join: "",
|
53
|
-
onClick: _cache[
|
69
|
+
onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = !isOpen.value)
|
54
70
|
}, {
|
55
71
|
default: withCtx(() => [
|
56
72
|
createVNode(unref(IconArrow), {
|
@@ -58,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
58
74
|
}, null, 8, ["class"])
|
59
75
|
]),
|
60
76
|
_: 1
|
61
|
-
}, 8, ["semantic-type", "disabled"])
|
77
|
+
}, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true)
|
62
78
|
])
|
63
79
|
]),
|
64
80
|
content: withCtx(() => [
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
const isMobile = getIsMobile();
|
53
53
|
const focused = ref(false);
|
54
54
|
const isFetchingPrefix = ref(false);
|
55
|
-
const isDisabled = computed(() => props.loading ||
|
55
|
+
const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
|
56
56
|
const close = () => {
|
57
57
|
isOpen.value = false;
|
58
58
|
focused.value = false;
|
@@ -27,11 +27,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
const emit = __emit;
|
28
28
|
const element = ref();
|
29
29
|
const toggle = () => {
|
30
|
+
if (props.skeleton || props.loading)
|
31
|
+
return;
|
30
32
|
if (props.isSelected)
|
31
33
|
emit("unselect");
|
32
34
|
else
|
33
35
|
emit("select");
|
34
|
-
return false;
|
35
36
|
};
|
36
37
|
const scrollIntoView = () => {
|
37
38
|
element.value?.scrollIntoView({ behavior: "auto", block: "center" });
|