@agrotools1/at-components 0.6.93 → 0.6.95

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,37 +1,51 @@
1
- import n from "./Select.core.vue2.js";
2
- import { resolveComponent as a, openBlock as t, createBlock as i, mergeProps as s } from "vue";
3
- import d from "../_virtual/_plugin-vue_export-helper.js";
4
- function p(e, o, u, m, c, b) {
5
- const l = a("AtInput");
6
- return t(), i(l, s(e.$props, {
7
- ref: "atInput",
8
- modelValue: e.inputModelValue,
9
- "onUpdate:modelValue": [
10
- o[0] || (o[0] = (r) => e.inputModelValue = r),
11
- e.handleTyping
12
- ],
13
- role: "combobox",
14
- type: e.type,
15
- cursor: "pointer",
16
- "prevent-input-event": !0,
17
- "on-selected-item-click": e.onSelectedItemClick,
18
- "selected-items": e.selectedItems,
19
- label: e.label,
20
- "aria-controls": e.id,
21
- "aria-label": e.label,
22
- separator: e.separator,
23
- required: e.required,
24
- disabled: e.disabled,
25
- error: e.getError,
26
- icon: { name: "AtAngleDownSolidIcon" },
27
- "aria-autocomplete": "none",
28
- class: ["AT-SELECT_container", e.inputClass],
29
- "use-side-clear-button": e.showClearButton,
30
- onClearInput: e.handleClearInput,
31
- onClickOutside: e.handleClickOutside
32
- }), null, 16, ["modelValue", "type", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "required", "disabled", "error", "class", "use-side-clear-button", "onUpdate:modelValue", "onClearInput", "onClickOutside"]);
1
+ import i from "./Select.core.vue2.js";
2
+ import { resolveComponent as l, openBlock as s, createElementBlock as d, createVNode as t, withCtx as p, mergeProps as u } from "vue";
3
+ import "./Select.core.vue3.js";
4
+ import m from "../_virtual/_plugin-vue_export-helper.js";
5
+ function c(e, o, f, b, C, v) {
6
+ const n = l("AtInput"), r = l("AtTooltip");
7
+ return s(), d("div", null, [
8
+ t(r, {
9
+ disable: !e.isOverflowing || !e.showTooltipOnOverflow,
10
+ text: e.inputModelValue,
11
+ position: e.tooltipPosition,
12
+ style: { width: "100%" }
13
+ }, {
14
+ default: p(() => [
15
+ t(n, u(e.$props, {
16
+ ref: "atInput",
17
+ modelValue: e.inputModelValue,
18
+ "onUpdate:modelValue": [
19
+ o[0] || (o[0] = (a) => e.inputModelValue = a),
20
+ e.handleTyping
21
+ ],
22
+ role: "combobox",
23
+ type: e.type,
24
+ cursor: "pointer",
25
+ "prevent-input-event": !0,
26
+ "on-selected-item-click": e.onSelectedItemClick,
27
+ "selected-items": e.selectedItems,
28
+ label: e.label,
29
+ "aria-controls": e.id,
30
+ "aria-label": e.label,
31
+ separator: e.separator,
32
+ required: e.required,
33
+ disabled: e.disabled,
34
+ error: e.getError,
35
+ icon: { name: "AtAngleDownSolidIcon" },
36
+ "aria-autocomplete": "none",
37
+ class: ["AT-SELECT_container", e.inputClass],
38
+ "use-side-clear-button": e.showClearButton,
39
+ onClearInput: e.handleClearInput,
40
+ onClickOutside: e.handleClickOutside,
41
+ onOverflow: e.handleOverflow
42
+ }), null, 16, ["modelValue", "type", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "required", "disabled", "error", "class", "use-side-clear-button", "onUpdate:modelValue", "onClearInput", "onClickOutside", "onOverflow"])
43
+ ]),
44
+ _: 1
45
+ }, 8, ["disable", "text", "position"])
46
+ ]);
33
47
  }
34
- const k = /* @__PURE__ */ d(n, [["render", p]]);
48
+ const A = /* @__PURE__ */ m(i, [["render", c], ["__scopeId", "data-v-ade5f307"]]);
35
49
  export {
36
- k as default
50
+ A as default
37
51
  };
@@ -1,11 +1,13 @@
1
- import { defineComponent as m, ref as s, computed as n, watch as b, inject as I } from "vue";
2
- import { AtInput as h } from "../Input/index.js";
1
+ import { defineComponent as h, ref as o, computed as u, watch as g, inject as I } from "vue";
2
+ import { AtInput as T } from "../Input/index.js";
3
+ import q from "../Tooltip/Tooltip.vue.js";
3
4
  import "./Item/Item.vue2.js";
4
5
  import "./Item/Item.vue3.js";
5
- const S = m({
6
+ const A = h({
6
7
  name: "AtSelect",
7
8
  components: {
8
- AtInput: h.Text
9
+ AtInput: T.Text,
10
+ AtTooltip: q
9
11
  },
10
12
  props: {
11
13
  value: {
@@ -58,55 +60,81 @@ const S = m({
58
60
  type: Boolean,
59
61
  required: !1,
60
62
  default: !1
63
+ },
64
+ showTooltipOnOverflow: {
65
+ type: Boolean,
66
+ required: !1,
67
+ default: !1
68
+ },
69
+ tooltipPosition: {
70
+ required: !1,
71
+ type: String,
72
+ default: "bottom-center",
73
+ validator: (e) => [
74
+ "bottom-left",
75
+ "bottom-center",
76
+ "bottom-right",
77
+ "top-left",
78
+ "top-center",
79
+ "top-right",
80
+ "left-bottom",
81
+ "left-center",
82
+ "right-bottom",
83
+ "right-center"
84
+ ].includes(e)
61
85
  }
62
86
  },
63
87
  emits: ["update:model-value", "clearInput"],
64
88
  setup(e, { emit: a }) {
65
- const o = s(null), l = s(""), r = n(() => {
89
+ const d = o(null), l = o(""), r = u(() => {
66
90
  var t;
67
91
  return typeof e.value == "string" ? e.value : (t = e.value) == null ? void 0 : t.value;
68
- }), d = n(() => {
92
+ }), i = o(!1), f = u(() => {
69
93
  if (!e.isTypable)
70
94
  return "button";
71
- }), f = (t) => {
95
+ }), c = (t) => {
72
96
  a("update:model-value", t);
73
- }, c = () => {
74
- a("clearInput");
75
97
  }, p = () => {
98
+ a("clearInput");
99
+ }, m = () => {
76
100
  !e.value && e.isTypable && (l.value = "", a("clearInput"));
77
- }, u = () => {
78
- var i;
101
+ }, n = () => {
102
+ var s;
79
103
  if (e.isMultiple)
80
104
  return "";
81
- const t = (i = e.items) == null ? void 0 : i.find(
82
- (v) => v.value === r.value
105
+ const t = (s = e.items) == null ? void 0 : s.find(
106
+ (b) => b.value === r.value
83
107
  );
84
108
  return t ? t.text : (console.warn(
85
109
  `The default value "${r.value}" is not included in the items array.`
86
110
  ), "");
111
+ }, v = (t) => {
112
+ i.value = t;
87
113
  };
88
- b(
114
+ g(
89
115
  () => e.value,
90
116
  () => {
91
- e.value !== "" && (l.value = u() || "");
117
+ e.value !== "" && (l.value = n() || "");
92
118
  }
93
- ), l.value = u() || "";
94
- const y = n(() => I("error"));
119
+ ), l.value = n() || "";
120
+ const y = u(() => I("error"));
95
121
  return {
96
122
  id: `at-select-${Math.random().toString(36).substr(2, 9)}`,
97
- handleValue: u,
123
+ handleValue: n,
98
124
  getError: y,
99
- atInput: o,
125
+ atInput: d,
100
126
  inputModelValue: l,
101
- handleTyping: f,
102
- handleClearInput: c,
103
- handleClickOutside: p,
104
- type: d,
127
+ handleTyping: c,
128
+ handleClearInput: p,
129
+ handleClickOutside: m,
130
+ type: f,
105
131
  inputClass: e.customClass,
106
- isTypable: e.isTypable
132
+ isTypable: e.isTypable,
133
+ isOverflowing: i,
134
+ handleOverflow: v
107
135
  };
108
136
  }
109
137
  });
110
138
  export {
111
- S as default
139
+ A as default
112
140
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -44,6 +44,11 @@ declare const _default: import('vue').DefineComponent<{
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
46
46
  };
47
+ showTooltipOnOverflow: {
48
+ type: BooleanConstructor;
49
+ required: false;
50
+ default: boolean;
51
+ };
47
52
  error: {
48
53
  type: ObjectConstructor;
49
54
  default: () => void;
@@ -125,6 +130,11 @@ declare const _default: import('vue').DefineComponent<{
125
130
  type: BooleanConstructor;
126
131
  default: boolean;
127
132
  };
133
+ showTooltipOnOverflow: {
134
+ type: BooleanConstructor;
135
+ required: false;
136
+ default: boolean;
137
+ };
128
138
  error: {
129
139
  type: ObjectConstructor;
130
140
  default: () => void;
@@ -146,6 +156,7 @@ declare const _default: import('vue').DefineComponent<{
146
156
  items: SelectItemProps[];
147
157
  showClearButton: boolean;
148
158
  msgNoResult: string;
159
+ showTooltipOnOverflow: boolean;
149
160
  emitValue: boolean;
150
161
  hasAutocomplete: boolean;
151
162
  }, {}>;
@@ -1,27 +1,27 @@
1
- import f from "./Select.single.vue2.js";
2
- import { resolveComponent as l, openBlock as a, createBlock as r, createElementBlock as n, createVNode as i, withModifiers as m, withCtx as h, createTextVNode as v, toDisplayString as g, createCommentVNode as d, Fragment as k, renderList as y } from "vue";
1
+ import v from "./Select.single.vue2.js";
2
+ import { resolveComponent as l, openBlock as t, createBlock as r, createElementBlock as n, createVNode as i, withModifiers as C, withCtx as b, createTextVNode as m, toDisplayString as g, createCommentVNode as d, Fragment as k, renderList as w } from "vue";
3
3
  import "./Select.single.vue3.js";
4
- import A from "../../_virtual/_plugin-vue_export-helper.js";
5
- const I = ["aria-disabled"], S = {
4
+ import y from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const A = ["aria-disabled"], I = {
6
6
  key: 0,
7
7
  class: "noResult"
8
8
  };
9
- function w(e, t, V, T, $, E) {
10
- const u = l("AtSkeleton"), p = l("AtSingleCore"), c = l("AtParagraph"), b = l("AtItem");
11
- return e.isLoading ? (a(), r(u, {
9
+ function S(e, a, T, V, $, E) {
10
+ const p = l("AtSkeleton"), u = l("AtSingleCore"), c = l("AtParagraph"), f = l("AtItem");
11
+ return e.isLoading ? (t(), r(p, {
12
12
  key: 0,
13
13
  class: "col",
14
14
  height: "43px"
15
- })) : (a(), n("div", {
15
+ })) : (t(), n("div", {
16
16
  key: 1,
17
17
  ref: "containerRef",
18
18
  class: "AT-SELECT_wrapper",
19
19
  "aria-disabled": e.disabled,
20
- onClick: t[1] || (t[1] = (o) => {
20
+ onClick: a[1] || (a[1] = (o) => {
21
21
  e.open = !e.open, e.rotateIcon();
22
22
  })
23
23
  }, [
24
- i(p, {
24
+ i(u, {
25
25
  value: e.selectedValue,
26
26
  required: e.required,
27
27
  disabled: e.disabled,
@@ -30,28 +30,29 @@ function w(e, t, V, T, $, E) {
30
30
  "custom-class": e.hasAutocomplete ? "showCaret" : "",
31
31
  "is-typable": !!e.hasAutocomplete,
32
32
  "show-clear-button": e.showClearButton,
33
+ "show-tooltip-on-overflow": e.showTooltipOnOverflow,
33
34
  "onUpdate:modelValue": e.handleTyping,
34
35
  onClearInput: e.handleClearInput
35
- }, null, 8, ["value", "required", "disabled", "label", "items", "custom-class", "is-typable", "show-clear-button", "onUpdate:modelValue", "onClearInput"]),
36
- e.open ? (a(), n("div", {
36
+ }, null, 8, ["value", "required", "disabled", "label", "items", "custom-class", "is-typable", "show-clear-button", "show-tooltip-on-overflow", "onUpdate:modelValue", "onClearInput"]),
37
+ e.open ? (t(), n("div", {
37
38
  key: 0,
38
39
  role: "group",
39
40
  "aria-orientation": "vertical",
40
41
  tabindex: "-1",
41
42
  class: "AT-SELECT_items-container",
42
- onClick: t[0] || (t[0] = m((o) => {
43
+ onClick: a[0] || (a[0] = C((o) => {
43
44
  e.open = !1, e.rotateIcon();
44
45
  }, ["stop"]))
45
46
  }, [
46
- e.showNoResult ? (a(), n("section", S, [
47
+ e.showNoResult ? (t(), n("section", I, [
47
48
  i(c, { size: "p2" }, {
48
- default: h(() => [
49
- v(g(e.msgNoResult), 1)
49
+ default: b(() => [
50
+ m(g(e.msgNoResult), 1)
50
51
  ]),
51
52
  _: 1
52
53
  })
53
54
  ])) : d("", !0),
54
- (a(!0), n(k, null, y(e.filteredItems.value, (o) => (a(), r(b, {
55
+ (t(!0), n(k, null, w(e.filteredItems.value, (o) => (t(), r(f, {
55
56
  key: o.value,
56
57
  text: o.text,
57
58
  value: o.value,
@@ -60,15 +61,15 @@ function w(e, t, V, T, $, E) {
60
61
  "aria-selected": o.value === e.valueOfModel,
61
62
  "data-text": o.text,
62
63
  "btn-class": o.btnClass,
63
- "on-click": async (C) => {
64
+ "on-click": async (h) => {
64
65
  var s;
65
- e.isInternalChange = !0, await e.onSelectedValueChange(o), (s = o.onClick) == null || s.call(o, C), e.isInternalChange = !1;
66
+ e.isInternalChange = !0, await e.onSelectedValueChange(o), (s = o.onClick) == null || s.call(o, h), e.isInternalChange = !1;
66
67
  }
67
68
  }, null, 8, ["text", "value", "type", "icon", "aria-selected", "data-text", "btn-class", "on-click"]))), 128))
68
69
  ])) : d("", !0)
69
- ], 8, I));
70
+ ], 8, A));
70
71
  }
71
- const q = /* @__PURE__ */ A(f, [["render", w], ["__scopeId", "data-v-b990bbbf"]]);
72
+ const q = /* @__PURE__ */ y(v, [["render", S], ["__scopeId", "data-v-e406213b"]]);
72
73
  export {
73
74
  q as default
74
75
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as r, provide as w, watch as v, computed as y, onMounted as O } from "vue";
1
+ import { defineComponent as q, ref as r, provide as S, watch as v, computed as y, onMounted as x } from "vue";
2
2
  import T from "../../Skeleton/Skeleton.vue.js";
3
3
  import { AtTipograph as _ } from "../../Tipograph/index.js";
4
4
  import j from "../Item/Item.vue.js";
@@ -29,7 +29,7 @@ const W = q({
29
29
  items: {
30
30
  type: Array,
31
31
  default: () => [],
32
- validator: (t) => Array.isArray(t) && t.every((c) => typeof c == "object")
32
+ validator: (t) => Array.isArray(t) && t.every((f) => typeof f == "object")
33
33
  },
34
34
  emitValue: {
35
35
  type: Boolean,
@@ -51,6 +51,11 @@ const W = q({
51
51
  type: Boolean,
52
52
  default: !1
53
53
  },
54
+ showTooltipOnOverflow: {
55
+ type: Boolean,
56
+ required: !1,
57
+ default: !1
58
+ },
54
59
  error: {
55
60
  type: Object,
56
61
  default: () => {
@@ -62,9 +67,9 @@ const W = q({
62
67
  }
63
68
  },
64
69
  emits: ["update:modelValue", "clearValue"],
65
- setup(t, { emit: c }) {
66
- const n = r(null), o = r(!1), l = r(t.modelValue), u = r(""), f = r(!1), s = r(d(t.items));
67
- w("error", t.error), v(t.error, () => w("error", t.error)), v(
70
+ setup(t, { emit: f }) {
71
+ const n = r(null), o = r(!1), l = r(t.modelValue), u = r(""), c = r(!1), s = r(d(t.items));
72
+ S("error", t.error), v(t.error, () => S("error", t.error)), v(
68
73
  t.items,
69
74
  () => {
70
75
  s.value = d(t.items);
@@ -73,8 +78,8 @@ const W = q({
73
78
  deep: !0
74
79
  }
75
80
  );
76
- const g = (e) => {
77
- l.value = e, o.value = !1, h(), c(
81
+ const h = (e) => {
82
+ l.value = e, o.value = !1, g(), f(
78
83
  "update:modelValue",
79
84
  t.emitValue ? l.value.value : l.value
80
85
  );
@@ -86,19 +91,19 @@ const W = q({
86
91
  var e;
87
92
  return typeof l.value == "string" ? l.value : (e = l.value) == null ? void 0 : e.value;
88
93
  }), I = () => {
89
- u.value = "", l.value = "", m(), c("clearValue");
94
+ u.value = "", l.value = "", m(), f("clearValue");
90
95
  };
91
96
  function d(e, a) {
92
- return e.sort((i, x) => {
93
- const p = i.text.toLowerCase(), C = x.text.toLowerCase();
97
+ return e.sort((i, O) => {
98
+ const p = i.text.toLowerCase(), w = O.text.toLowerCase();
94
99
  if (a) {
95
- const A = p.startsWith(a.toLowerCase()), S = C.startsWith(a.toLowerCase());
96
- if (A && !S)
100
+ const C = p.startsWith(a.toLowerCase()), A = w.startsWith(a.toLowerCase());
101
+ if (C && !A)
97
102
  return -1;
98
- if (!A && S)
103
+ if (!C && A)
99
104
  return 1;
100
105
  }
101
- return p.localeCompare(C);
106
+ return p.localeCompare(w);
102
107
  });
103
108
  }
104
109
  const b = y(
@@ -114,12 +119,12 @@ const W = q({
114
119
  const m = () => {
115
120
  s.value = d(t.items);
116
121
  };
117
- O(() => {
122
+ x(() => {
118
123
  document.addEventListener("click", B);
119
124
  }), v(
120
125
  () => t.modelValue,
121
126
  async (e) => {
122
- if (f.value)
127
+ if (c.value)
123
128
  return;
124
129
  const a = t.items.find(
125
130
  (i) => i.value === (typeof e == "string" ? e : e.value)
@@ -130,22 +135,22 @@ const W = q({
130
135
  ), l.value = "";
131
136
  return;
132
137
  }
133
- f.value = !0, await g(a), f.value = !1;
138
+ c.value = !0, await h(a), c.value = !1;
134
139
  }
135
140
  );
136
- const h = () => {
141
+ const g = () => {
137
142
  var a;
138
143
  const e = (a = n.value) == null ? void 0 : a.querySelector(".AT_INPUT_icon_slot");
139
144
  e instanceof HTMLElement && e.setAttribute("data-rotate", o.value.toString());
140
145
  };
141
146
  return {
142
- onSelectedValueChange: g,
147
+ onSelectedValueChange: h,
143
148
  selectedValue: l,
144
149
  open: o,
145
150
  valueOfModel: V,
146
151
  containerRef: n,
147
- isInternalChange: f,
148
- rotateIcon: h,
152
+ isInternalChange: c,
153
+ rotateIcon: g,
149
154
  handleTyping: L,
150
155
  filteredItems: y(() => s),
151
156
  textValue: u,
@@ -44,6 +44,11 @@ export declare const AtSelect: {
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
46
46
  };
47
+ showTooltipOnOverflow: {
48
+ type: BooleanConstructor;
49
+ required: false;
50
+ default: boolean;
51
+ };
47
52
  error: {
48
53
  type: ObjectConstructor;
49
54
  default: () => void;
@@ -125,6 +130,11 @@ export declare const AtSelect: {
125
130
  type: BooleanConstructor;
126
131
  default: boolean;
127
132
  };
133
+ showTooltipOnOverflow: {
134
+ type: BooleanConstructor;
135
+ required: false;
136
+ default: boolean;
137
+ };
128
138
  error: {
129
139
  type: ObjectConstructor;
130
140
  default: () => void;
@@ -146,6 +156,7 @@ export declare const AtSelect: {
146
156
  items: ISelectItemProps[];
147
157
  showClearButton: boolean;
148
158
  msgNoResult: string;
159
+ showTooltipOnOverflow: boolean;
149
160
  emitValue: boolean;
150
161
  hasAutocomplete: boolean;
151
162
  }, {}>;
@@ -5,6 +5,7 @@ export interface TooltipProps {
5
5
  text: string;
6
6
  copy: boolean;
7
7
  maxTextLength: number;
8
+ disable: boolean;
8
9
  }
9
10
  declare const _default: import('vue').DefineComponent<{
10
11
  text: {
@@ -28,6 +29,11 @@ declare const _default: import('vue').DefineComponent<{
28
29
  default: string;
29
30
  validator: (value: string) => boolean;
30
31
  };
32
+ disable: {
33
+ type: () => TooltipProps["disable"];
34
+ required: false;
35
+ default: boolean;
36
+ };
31
37
  }, {
32
38
  tooltipChildren: import('vue').Ref<HTMLDivElement | undefined>;
33
39
  contentPosition: import('vue').Ref<{
@@ -66,12 +72,18 @@ declare const _default: import('vue').DefineComponent<{
66
72
  default: string;
67
73
  validator: (value: string) => boolean;
68
74
  };
75
+ disable: {
76
+ type: () => TooltipProps["disable"];
77
+ required: false;
78
+ default: boolean;
79
+ };
69
80
  }>> & {
70
81
  onCopiedText?: ((...args: any[]) => any) | undefined;
71
82
  }, {
72
83
  text: string;
73
84
  copy: boolean;
74
85
  position: "bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right" | "left-bottom" | "left-center" | "right-bottom" | "right-center";
86
+ disable: boolean;
75
87
  maxTextLength: number;
76
88
  }, {}>;
77
89
  export default _default;
@@ -1,63 +1,66 @@
1
1
  import u from "./Tooltip.vue2.js";
2
- import { resolveComponent as n, openBlock as l, createElementBlock as s, createElementVNode as r, renderSlot as m, createBlock as f, Teleport as c, normalizeClass as y, normalizeStyle as v, createVNode as a, withCtx as C, createCommentVNode as i } from "vue";
2
+ import { resolveComponent as a, openBlock as s, createElementBlock as l, createElementVNode as r, renderSlot as m, createBlock as f, Teleport as y, normalizeClass as c, normalizeStyle as v, createVNode as i, withCtx as k, createCommentVNode as n } from "vue";
3
3
  import "./Tooltip.vue3.js";
4
- import M from "../_virtual/_plugin-vue_export-helper.js";
5
- const k = {
4
+ import C from "../_virtual/_plugin-vue_export-helper.js";
5
+ const M = {
6
6
  ref: "wrapper",
7
7
  class: "at-tooltip-wrapper"
8
8
  }, h = {
9
9
  ref: "tooltipChildren",
10
10
  class: "at-slot-content"
11
11
  }, w = ["innerHTML"];
12
- function T(o, e, $, b, S, g) {
13
- const p = n("AtCopySolidIcon"), d = n("AtParagraph");
14
- return l(), s("div", {
12
+ function $(o, e, b, T, A, S) {
13
+ const p = a("AtCopySolidIcon"), d = a("AtParagraph");
14
+ return s(), l("div", {
15
15
  class: "at-tooltip-container",
16
16
  onMouseenter: e[2] || (e[2] = (...t) => o.show && o.show(...t)),
17
17
  onMouseleave: e[3] || (e[3] = (...t) => o.handleMouseOut && o.handleMouseOut(...t))
18
18
  }, [
19
- r("div", k, [
19
+ r("div", M, [
20
20
  r("div", h, [
21
21
  m(o.$slots, "default", {}, void 0, !0)
22
22
  ], 512)
23
23
  ], 512),
24
- (l(), f(c, { to: "body" }, [
25
- o.visible ? (l(), s("div", {
24
+ o.$props.disable ? n("", !0) : (s(), f(y, {
25
+ key: 0,
26
+ to: "body"
27
+ }, [
28
+ o.visible ? (s(), l("div", {
26
29
  key: 0,
27
30
  ref: "tooltip",
28
- class: y(["at-tooltip", o.tooltipClass]),
31
+ class: c(["at-tooltip", o.tooltipClass]),
29
32
  style: v(o.tooltipStyle),
30
33
  onMouseleave: e[1] || (e[1] = (...t) => o.handleMouseOut && o.handleMouseOut(...t))
31
34
  }, [
32
- a(d, {
35
+ i(d, {
33
36
  size: "p3",
34
37
  weight: "regular",
35
38
  class: "m-0"
36
39
  }, {
37
- default: C(() => [
40
+ default: k(() => [
38
41
  r("span", {
39
42
  class: "at-tooltip-text",
40
43
  style: { "word-break": "break-all" },
41
44
  innerHTML: o.formatedText
42
45
  }, null, 8, w),
43
- o.copy ? (l(), s("span", {
46
+ o.copy ? (s(), l("span", {
44
47
  key: 0,
45
48
  class: "at-tooltip-copy-icon",
46
49
  onClick: e[0] || (e[0] = (t) => o.copyText(o.text))
47
50
  }, [
48
- a(p, {
51
+ i(p, {
49
52
  color: "#FFF",
50
53
  size: "16"
51
54
  })
52
- ])) : i("", !0)
55
+ ])) : n("", !0)
53
56
  ]),
54
57
  _: 1
55
58
  })
56
- ], 38)) : i("", !0)
59
+ ], 38)) : n("", !0)
57
60
  ]))
58
61
  ], 32);
59
62
  }
60
- const F = /* @__PURE__ */ M(u, [["render", T], ["__scopeId", "data-v-ffacb6ec"]]);
63
+ const F = /* @__PURE__ */ C(u, [["render", $], ["__scopeId", "data-v-ce5b904e"]]);
61
64
  export {
62
65
  F as default
63
66
  };