eco-vue-js 0.5.15 → 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/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +3 -2
- 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(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAsCA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;UA4BzC,MAAM,EAAE;wCACsB,MAAM,KAAK,KAAK;gBAnBxC,KAAK;;;;;;;;;;;;UAaX,KAAK,EAAE;kBACC,WAAW,GAAG,SAAS;gBAdzB,KAAK;;;;;WA2KZ,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAzH3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;yCAiJ9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;cAxJjD,MAAM,EAAE;4CACsB,MAAM,KAAK,KAAK;oBAnBxC,KAAK;;;;;;;;;;;;cAaX,KAAK,EAAE;sBACC,WAAW,GAAG,SAAS;oBAdzB,KAAK;;;;;oBA0KH,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAzH3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;;;;;;;;;;kBAPtC,MAAM,EAAE;gDACsB,MAAM,KAAK,KAAK;wBAnBxC,KAAK;;;;;;;;;;;;kBAaX,KAAK,EAAE;0BACC,WAAW,GAAG,SAAS;wBAdzB,KAAK;;;;;wBA0KH,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;2BA1BkB,GAAG;;;gBACD,GAAG;;kBAzH3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;AAhC9C,wBAuL2E"}
|
@@ -41,7 +41,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
createElementVNode("div", {
|
42
42
|
class: normalizeClass(["flex", {
|
43
43
|
"flex-wrap gap-2": _ctx.wrap,
|
44
|
-
"flex-col gap-2
|
44
|
+
"flex-col gap-2": _ctx.col,
|
45
|
+
"items-start": _ctx.col && !_ctx.stretch
|
45
46
|
}])
|
46
47
|
}, [
|
47
48
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
|
@@ -51,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
52
|
loading: getValue(item) === _ctx.loading,
|
52
53
|
disabled: _ctx.disabled || _ctx.loading !== void 0 && getValue(item) !== _ctx.loading,
|
53
54
|
minimize: _ctx.minimize,
|
54
|
-
join: !_ctx.wrap,
|
55
|
+
join: !_ctx.wrap && !_ctx.col,
|
55
56
|
class: normalizeClass({
|
56
57
|
"flex-1": _ctx.stretch
|
57
58
|
}),
|
@@ -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" });
|