@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.
- package/dist/DataTable/DataTable.d.ts +3 -1
- package/dist/DataTable/DataTable.vue.js +2 -2
- package/dist/DataTable/DataTable.vue2.js +46 -40
- package/dist/DataTable/index.d.ts +3 -1
- package/dist/Input/Input.core.d.ts +4 -1
- package/dist/Input/Input.core.vue.js +8 -7
- package/dist/Input/Input.core.vue2.js +88 -73
- package/dist/Input/Input.core.vue3.js +2 -2
- package/dist/Input/index.d.ts +4 -1
- package/dist/Select/Select.core.d.ts +26 -0
- package/dist/Select/Select.core.vue.js +48 -34
- package/dist/Select/Select.core.vue2.js +53 -25
- package/dist/Select/Select.core.vue3.js +4 -0
- package/dist/Select/Single/Select.single.d.ts +11 -0
- package/dist/Select/Single/Select.single.vue.js +22 -21
- package/dist/Select/Single/Select.single.vue2.js +26 -21
- package/dist/Select/index.d.ts +11 -0
- package/dist/Tooltip/Tooltip.d.ts +12 -0
- package/dist/Tooltip/Tooltip.vue.js +20 -17
- package/dist/Tooltip/Tooltip.vue2.js +44 -39
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,37 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
e.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
|
48
|
+
const A = /* @__PURE__ */ m(i, [["render", c], ["__scopeId", "data-v-ade5f307"]]);
|
|
35
49
|
export {
|
|
36
|
-
|
|
50
|
+
A as default
|
|
37
51
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AtInput as
|
|
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
|
|
6
|
+
const A = h({
|
|
6
7
|
name: "AtSelect",
|
|
7
8
|
components: {
|
|
8
|
-
AtInput:
|
|
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
|
|
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
|
-
}),
|
|
92
|
+
}), i = o(!1), f = u(() => {
|
|
69
93
|
if (!e.isTypable)
|
|
70
94
|
return "button";
|
|
71
|
-
}),
|
|
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
|
-
},
|
|
78
|
-
var
|
|
101
|
+
}, n = () => {
|
|
102
|
+
var s;
|
|
79
103
|
if (e.isMultiple)
|
|
80
104
|
return "";
|
|
81
|
-
const t = (
|
|
82
|
-
(
|
|
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
|
-
|
|
114
|
+
g(
|
|
89
115
|
() => e.value,
|
|
90
116
|
() => {
|
|
91
|
-
e.value !== "" && (l.value =
|
|
117
|
+
e.value !== "" && (l.value = n() || "");
|
|
92
118
|
}
|
|
93
|
-
), l.value =
|
|
94
|
-
const y =
|
|
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:
|
|
123
|
+
handleValue: n,
|
|
98
124
|
getError: y,
|
|
99
|
-
atInput:
|
|
125
|
+
atInput: d,
|
|
100
126
|
inputModelValue: l,
|
|
101
|
-
handleTyping:
|
|
102
|
-
handleClearInput:
|
|
103
|
-
handleClickOutside:
|
|
104
|
-
type:
|
|
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
|
-
|
|
139
|
+
A as default
|
|
112
140
|
};
|
|
@@ -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
|
|
2
|
-
import { resolveComponent as l, openBlock as
|
|
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
|
|
5
|
-
const
|
|
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
|
|
10
|
-
const
|
|
11
|
-
return e.isLoading ? (
|
|
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
|
-
})) : (
|
|
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:
|
|
20
|
+
onClick: a[1] || (a[1] = (o) => {
|
|
21
21
|
e.open = !e.open, e.rotateIcon();
|
|
22
22
|
})
|
|
23
23
|
}, [
|
|
24
|
-
i(
|
|
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 ? (
|
|
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:
|
|
43
|
+
onClick: a[0] || (a[0] = C((o) => {
|
|
43
44
|
e.open = !1, e.rotateIcon();
|
|
44
45
|
}, ["stop"]))
|
|
45
46
|
}, [
|
|
46
|
-
e.showNoResult ? (
|
|
47
|
+
e.showNoResult ? (t(), n("section", I, [
|
|
47
48
|
i(c, { size: "p2" }, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
49
|
+
default: b(() => [
|
|
50
|
+
m(g(e.msgNoResult), 1)
|
|
50
51
|
]),
|
|
51
52
|
_: 1
|
|
52
53
|
})
|
|
53
54
|
])) : d("", !0),
|
|
54
|
-
(
|
|
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 (
|
|
64
|
+
"on-click": async (h) => {
|
|
64
65
|
var s;
|
|
65
|
-
e.isInternalChange = !0, await e.onSelectedValueChange(o), (s = o.onClick) == null || s.call(o,
|
|
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,
|
|
70
|
+
], 8, A));
|
|
70
71
|
}
|
|
71
|
-
const q = /* @__PURE__ */
|
|
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
|
|
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((
|
|
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:
|
|
66
|
-
const n = r(null), o = r(!1), l = r(t.modelValue), u = r(""),
|
|
67
|
-
|
|
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
|
|
77
|
-
l.value = e, o.value = !1,
|
|
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(),
|
|
94
|
+
u.value = "", l.value = "", m(), f("clearValue");
|
|
90
95
|
};
|
|
91
96
|
function d(e, a) {
|
|
92
|
-
return e.sort((i,
|
|
93
|
-
const p = i.text.toLowerCase(),
|
|
97
|
+
return e.sort((i, O) => {
|
|
98
|
+
const p = i.text.toLowerCase(), w = O.text.toLowerCase();
|
|
94
99
|
if (a) {
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
100
|
+
const C = p.startsWith(a.toLowerCase()), A = w.startsWith(a.toLowerCase());
|
|
101
|
+
if (C && !A)
|
|
97
102
|
return -1;
|
|
98
|
-
if (!
|
|
103
|
+
if (!C && A)
|
|
99
104
|
return 1;
|
|
100
105
|
}
|
|
101
|
-
return p.localeCompare(
|
|
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
|
-
|
|
122
|
+
x(() => {
|
|
118
123
|
document.addEventListener("click", B);
|
|
119
124
|
}), v(
|
|
120
125
|
() => t.modelValue,
|
|
121
126
|
async (e) => {
|
|
122
|
-
if (
|
|
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
|
-
|
|
138
|
+
c.value = !0, await h(a), c.value = !1;
|
|
134
139
|
}
|
|
135
140
|
);
|
|
136
|
-
const
|
|
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:
|
|
147
|
+
onSelectedValueChange: h,
|
|
143
148
|
selectedValue: l,
|
|
144
149
|
open: o,
|
|
145
150
|
valueOfModel: V,
|
|
146
151
|
containerRef: n,
|
|
147
|
-
isInternalChange:
|
|
148
|
-
rotateIcon:
|
|
152
|
+
isInternalChange: c,
|
|
153
|
+
rotateIcon: g,
|
|
149
154
|
handleTyping: L,
|
|
150
155
|
filteredItems: y(() => s),
|
|
151
156
|
textValue: u,
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
5
|
-
const
|
|
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
|
|
13
|
-
const p =
|
|
14
|
-
return
|
|
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",
|
|
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
|
-
(
|
|
25
|
-
|
|
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:
|
|
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
|
-
|
|
35
|
+
i(d, {
|
|
33
36
|
size: "p3",
|
|
34
37
|
weight: "regular",
|
|
35
38
|
class: "m-0"
|
|
36
39
|
}, {
|
|
37
|
-
default:
|
|
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 ? (
|
|
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
|
-
|
|
51
|
+
i(p, {
|
|
49
52
|
color: "#FFF",
|
|
50
53
|
size: "16"
|
|
51
54
|
})
|
|
52
|
-
])) :
|
|
55
|
+
])) : n("", !0)
|
|
53
56
|
]),
|
|
54
57
|
_: 1
|
|
55
58
|
})
|
|
56
|
-
], 38)) :
|
|
59
|
+
], 38)) : n("", !0)
|
|
57
60
|
]))
|
|
58
61
|
], 32);
|
|
59
62
|
}
|
|
60
|
-
const F = /* @__PURE__ */
|
|
63
|
+
const F = /* @__PURE__ */ C(u, [["render", $], ["__scopeId", "data-v-ce5b904e"]]);
|
|
61
64
|
export {
|
|
62
65
|
F as default
|
|
63
66
|
};
|