eco-vue-js 0.5.14 → 0.5.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,12 +5,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
5
5
  contentMaxWidth?: number | undefined;
6
6
  horizontalAlign?: HorizontalAlign | undefined;
7
7
  disabled?: boolean | undefined;
8
+ teleport?: boolean | undefined;
8
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
10
  semanticType?: SemanticType | undefined;
10
11
  contentMaxHeight?: number | undefined;
11
12
  contentMaxWidth?: number | undefined;
12
13
  horizontalAlign?: HorizontalAlign | undefined;
13
14
  disabled?: boolean | undefined;
15
+ teleport?: boolean | undefined;
14
16
  }>>>, {}, {}>, {
15
17
  content?(_: {
16
18
  close: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AAgDA;AAEA,OAAO,EAAC,eAAe,EAAE,KAAK,YAAY,EAAC,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;AA2MzD,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
+ {"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AAiDA;AAEA,OAAO,EAAC,eAAe,EAAE,KAAK,YAAY,EAAC,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;AA8MzD,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"}
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  contentMaxHeight: {},
21
21
  contentMaxWidth: {},
22
22
  horizontalAlign: {},
23
- disabled: { type: Boolean }
23
+ disabled: { type: Boolean },
24
+ teleport: { type: Boolean }
24
25
  },
25
26
  setup(__props) {
26
27
  const isOpen = ref(false);
@@ -34,14 +35,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
35
  "max-width": _ctx.contentMaxWidth ?? 320,
35
36
  "horizontal-align": _ctx.horizontalAlign ?? unref(HorizontalAlign).LEFT_INNER,
36
37
  "update-align": "",
37
- teleport: ""
38
+ teleport: _ctx.teleport
38
39
  }, {
39
40
  toggle: withCtx(() => [
40
41
  createElementVNode("div", _hoisted_1, [
41
42
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.button?.(), (item, index) => {
42
43
  return openBlock(), createBlock(resolveDynamicComponent(item), {
43
44
  key: index,
44
- join: ""
45
+ join: "",
46
+ class: "flex-1"
45
47
  });
46
48
  }), 128)),
47
49
  createVNode(_sfc_main$2, {
@@ -71,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
73
  })
72
74
  ]),
73
75
  _: 3
74
- }, 8, ["is-open", "max-height", "max-width", "horizontal-align"]);
76
+ }, 8, ["is-open", "max-height", "max-width", "horizontal-align", "teleport"]);
75
77
  };
76
78
  }
77
79
  });
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAqCA;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;;;;;WA0KZ,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAxH3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;yCAgJ9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;cAvJjD,MAAM,EAAE;4CACsB,MAAM,KAAK,KAAK;oBAnBxC,KAAK;;;;;;;;;;;;cAaX,KAAK,EAAE;sBACC,WAAW,GAAG,SAAS;oBAdzB,KAAK;;;;;oBAyK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tC,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 items-start": _ctx.col
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
  }),
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.5.14",
7
+ "version": "0.5.16",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",