vft 0.0.158 → 0.0.159

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.
@@ -1,7 +1,8 @@
1
- import { defineComponent as c, ref as u, resolveComponent as d, openBlock as t, createElementBlock as _, Fragment as C, createVNode as l, unref as o, withCtx as r, mergeProps as m, createBlock as i } from "vue";
2
- import { createReusableTemplate as k } from "@vueuse/core";
3
- import { VftClamp as y } from "../clamp/index.js";
4
- const v = /* @__PURE__ */ c({
1
+ import { defineComponent as f, ref as c, openBlock as t, createElementBlock as u, Fragment as d, createVNode as l, unref as e, withCtx as r, mergeProps as m, createBlock as i } from "vue";
2
+ import { createReusableTemplate as _ } from "@vueuse/core";
3
+ import { VftClamp as k } from "../clamp/index.js";
4
+ import { VftTooltip as y } from "../tooltip/index.js";
5
+ const x = /* @__PURE__ */ f({
5
6
  __name: "clamp-tooltip",
6
7
  props: {
7
8
  showTooltip: { type: Boolean },
@@ -15,34 +16,33 @@ const v = /* @__PURE__ */ c({
15
16
  location: {}
16
17
  },
17
18
  setup(B) {
18
- const p = u(), [s, n] = k();
19
- return (e, g) => {
20
- var a;
21
- const f = d("vft-tooltip");
22
- return t(), _(C, null, [
23
- l(o(s), null, {
19
+ const p = c(), [s, a] = _();
20
+ return (o, C) => {
21
+ var n;
22
+ return t(), u(d, null, [
23
+ l(e(s), null, {
24
24
  default: r(() => [
25
- l(o(y), m({
25
+ l(e(k), m({
26
26
  ref_key: "clampRef",
27
27
  ref: p
28
- }, e.$props), null, 16)
28
+ }, o.$props), null, 16)
29
29
  ]),
30
30
  _: 1
31
31
  }),
32
- e.showTooltip ? (t(), i(f, m({
32
+ o.showTooltip ? (t(), i(e(y), m({
33
33
  key: 0,
34
- disabled: !((a = p.value) != null && a.isClamped),
35
- content: e.text
36
- }, e.tooltipCfg), {
34
+ disabled: !((n = p.value) != null && n.isClamped),
35
+ content: o.text
36
+ }, o.tooltipCfg), {
37
37
  default: r(() => [
38
- l(o(n))
38
+ l(e(a))
39
39
  ]),
40
40
  _: 1
41
- }, 16, ["disabled", "content"])) : (t(), i(o(n), { key: 1 }))
41
+ }, 16, ["disabled", "content"])) : (t(), i(e(a), { key: 1 }))
42
42
  ], 64);
43
43
  };
44
44
  }
45
45
  });
46
46
  export {
47
- v as default
47
+ x as default
48
48
  };
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.158";
1
+ const o = "0.0.159";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@vueuse/core"),c=require("../clamp/index.cjs"),s=e.defineComponent({__name:"clamp-tooltip",props:{showTooltip:{type:Boolean},tooltipCfg:{},text:{},maxHeight:{},maxLines:{},expanded:{type:Boolean},ellipsis:{},autoResize:{type:Boolean},location:{}},setup(i){const o=e.ref(),[r,l]=p.createReusableTemplate();return(t,u)=>{var n;const a=e.resolveComponent("vft-tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(r),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.VftClamp),e.mergeProps({ref_key:"clampRef",ref:o},t.$props),null,16)]),_:1}),t.showTooltip?(e.openBlock(),e.createBlock(a,e.mergeProps({key:0,disabled:!((n=o.value)!=null&&n.isClamped),content:t.text},t.tooltipCfg),{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},16,["disabled","content"])):(e.openBlock(),e.createBlock(e.unref(l),{key:1}))],64)}}});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@vueuse/core"),p=require("../clamp/index.cjs"),i=require("../tooltip/index.cjs"),c=e.defineComponent({__name:"clamp-tooltip",props:{showTooltip:{type:Boolean},tooltipCfg:{},text:{},maxHeight:{},maxLines:{},expanded:{type:Boolean},ellipsis:{},autoResize:{type:Boolean},location:{}},setup(s){const o=e.ref(),[r,l]=a.createReusableTemplate();return(t,u)=>{var n;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(r),null,{default:e.withCtx(()=>[e.createVNode(e.unref(p.VftClamp),e.mergeProps({ref_key:"clampRef",ref:o},t.$props),null,16)]),_:1}),t.showTooltip?(e.openBlock(),e.createBlock(e.unref(i.VftTooltip),e.mergeProps({key:0,disabled:!((n=o.value)!=null&&n.isClamped),content:t.text},t.tooltipCfg),{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},16,["disabled","content"])):(e.openBlock(),e.createBlock(e.unref(l),{key:1}))],64)}}});exports.default=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.158";exports.version=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.159";exports.version=e;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vft",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -54,12 +54,12 @@
54
54
  "qrcode": "1.5.3",
55
55
  "resize-detector": "0.3.0",
56
56
  "sortablejs": "1.15.0",
57
- "@vft/constants": "0.0.65",
58
57
  "@vft/router": "0.0.41",
59
- "@vft/use": "0.0.42",
60
58
  "@vft/utils": "0.0.61",
61
59
  "@vft/store": "0.0.33",
62
- "@vft/directives": "0.0.28"
60
+ "@vft/use": "0.0.42",
61
+ "@vft/directives": "0.0.28",
62
+ "@vft/constants": "0.0.65"
63
63
  },
64
64
  "vetur": {
65
65
  "tags": "tags.json",