@aplus-frontend/ui 7.7.0 → 7.7.1

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.
@@ -2,5 +2,5 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  type __VLS_Props = {
3
3
  params: any;
4
4
  };
5
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1,29 +1,30 @@
1
- import { defineComponent as p, ref as m, onMounted as u, createElementBlock as d, createCommentVNode as f, openBlock as g, normalizeClass as v, unref as C, toDisplayString as _ } from "vue";
1
+ import { defineComponent as p, ref as u, onMounted as m, withDirectives as d, openBlock as v, createElementBlock as f, normalizeClass as g, unref as h, toDisplayString as w, vShow as _ } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useNamespace as x } from "../../../config-provider/hooks/use-namespace.mjs";
4
- const w = /* @__PURE__ */ p({
4
+ const k = /* @__PURE__ */ p({
5
5
  __name: "index",
6
6
  props: {
7
7
  params: {}
8
8
  },
9
9
  setup(l) {
10
- const n = l, e = m(!1), { e: s } = x("ag-grid");
11
- return u(() => {
12
- const { rowIndex: o, column: t, gridWrapperRef: c, lineClamp: i } = n.params, r = c.value?.querySelector(
10
+ const n = l, e = u(!1), { e: i } = x("ag-grid");
11
+ return m(() => {
12
+ const { rowIndex: o, column: t, gridWrapperRef: s, lineClamp: c } = n.params, r = s.value?.querySelector(
13
13
  `div.ag-row[row-index="${o}"] .ag-cell[col-id="${t.colId}"] span.ag-cell-value`
14
14
  );
15
15
  if (!r) {
16
16
  e.value = !0;
17
17
  return;
18
18
  }
19
- const a = i === 1 ? "Width" : "Height";
19
+ const a = c === 1 ? "Width" : "Height";
20
20
  e.value = r[`scroll${a}`] > r[`client${a}`];
21
- }), (o, t) => e.value ? (g(), d("div", {
22
- key: 0,
23
- class: v(C(s)("tooltip"))
24
- }, _(o.params.value), 3)) : f("", !0);
21
+ }), (o, t) => d((v(), f("div", {
22
+ class: g(h(i)("tooltip"))
23
+ }, w(o.params.value), 3)), [
24
+ [_, e.value]
25
+ ]);
25
26
  }
26
27
  });
27
28
  export {
28
- w as default
29
+ k as default
29
30
  };
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.0";
1
+ declare const _default: "7.7.1";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.7.0";
1
+ const e = "7.7.1";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -2,5 +2,5 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  type __VLS_Props = {
3
3
  params: any;
4
4
  };
5
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const p=require("../../../config-provider/hooks/use-namespace.js"),d=e.defineComponent({__name:"index",props:{params:{}},setup(n){const s=n,r=e.ref(!1),{e:c}=p.useNamespace("ag-grid");return e.onMounted(()=>{const{rowIndex:t,column:o,gridWrapperRef:i,lineClamp:u}=s.params,a=i.value?.querySelector(`div.ag-row[row-index="${t}"] .ag-cell[col-id="${o.colId}"] span.ag-cell-value`);if(!a){r.value=!0;return}const l=u===1?"Width":"Height";r.value=a[`scroll${l}`]>a[`client${l}`]}),(t,o)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c)("tooltip"))},e.toDisplayString(t.params.value),3)):e.createCommentVNode("",!0)}});exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const p=require("../../../config-provider/hooks/use-namespace.js"),d=e.defineComponent({__name:"index",props:{params:{}},setup(n){const s=n,r=e.ref(!1),{e:i}=p.useNamespace("ag-grid");return e.onMounted(()=>{const{rowIndex:t,column:l,gridWrapperRef:c,lineClamp:u}=s.params,a=c.value?.querySelector(`div.ag-row[row-index="${t}"] .ag-cell[col-id="${l.colId}"] span.ag-cell-value`);if(!a){r.value=!0;return}const o=u===1?"Width":"Height";r.value=a[`scroll${o}`]>a[`client${o}`]}),(t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i)("tooltip"))},e.toDisplayString(t.params.value),3)),[[e.vShow,r.value]])}});exports.default=d;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.0";
1
+ declare const _default: "7.7.1";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.0";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.1";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.7.0",
3
+ "version": "7.7.1",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [