@milaboratories/uikit 2.10.26 → 2.10.28
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/.turbo/turbo-build.log +40 -41
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/components/DataTable/TableComponent.vue.js +16 -17
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +2 -2
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +2 -2
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +33 -33
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +17 -17
- package/dist/components/PlBtnGroup/PlBtnGroup.vue.js +17 -17
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.js +12 -12
- package/dist/components/PlChip/PlChip.vue.js +8 -8
- package/dist/components/PlDropdown/PlDropdown.vue.js +27 -27
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +39 -39
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +20 -20
- package/dist/components/PlFileDialog/PlFileDialog.vue.d.ts +3 -1
- package/dist/components/PlFileDialog/PlFileDialog.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.d.ts +3 -1
- package/dist/components/PlFileDialog/Remote.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.js +80 -76
- package/dist/components/PlFileDialog/Remote.vue.js.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue.d.ts +4 -1
- package/dist/components/PlFileDialog/Shortcuts.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue2.js +18 -14
- package/dist/components/PlFileDialog/Shortcuts.vue2.js.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js +17 -17
- package/dist/components/PlLogView/PlLogView.vue.js +22 -22
- package/dist/components/PlNumberField/PlNumberField.vue.js +8 -8
- package/dist/components/PlSearchField/PlSearchField.vue.d.ts +28 -4
- package/dist/components/PlSearchField/PlSearchField.vue.d.ts.map +1 -1
- package/dist/components/PlSearchField/PlSearchField.vue2.js +40 -30
- package/dist/components/PlSearchField/PlSearchField.vue2.js.map +1 -1
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +3 -4
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
- package/dist/components/PlTabs/Tab.vue.d.ts +42 -12
- package/dist/components/PlTabs/Tab.vue.d.ts.map +1 -1
- package/dist/components/PlTabs/Tab.vue.js +6 -6
- package/dist/components/PlTextArea/PlTextArea.vue.js +22 -22
- package/dist/components/PlTextField/PlTextField.vue.js +14 -14
- package/dist/components/PlTooltip/PlTooltip.vue.d.ts +30 -3
- package/dist/components/PlTooltip/PlTooltip.vue.d.ts.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue.js +7 -110
- package/dist/components/PlTooltip/PlTooltip.vue.js.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue2.js +132 -2
- package/dist/components/PlTooltip/PlTooltip.vue2.js.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue3.js +26 -0
- package/dist/components/PlTooltip/PlTooltip.vue3.js.map +1 -0
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider.vue.js +21 -21
- package/dist/components/SliderRange.vue.d.ts +1 -1
- package/dist/components/SliderRange.vue.d.ts.map +1 -1
- package/dist/components/SliderRange.vue.js +31 -31
- package/dist/components/SliderRangeTriple.vue.d.ts +1 -1
- package/dist/components/SliderRangeTriple.vue.d.ts.map +1 -1
- package/dist/components/SliderRangeTriple.vue.js +23 -23
- package/dist/index.js +1 -1
- package/dist/utils/DoubleContour.vue2.js +23 -0
- package/dist/utils/DoubleContour.vue2.js.map +1 -0
- package/package.json +3 -3
- package/src/assets/base.scss +4 -1
- package/src/assets/mixins.scss +1 -2
- package/src/assets/utils.scss +1 -1
- package/src/components/PlFileDialog/Remote.vue +5 -3
- package/src/components/PlFileDialog/Shortcuts.vue +5 -1
- package/src/components/PlSearchField/PlSearchField.vue +22 -17
- package/src/components/PlTooltip/PlTooltip.vue +228 -33
- package/dist/components/PlTooltip/Beak.vue.d.ts +0 -3
- package/dist/components/PlTooltip/Beak.vue.d.ts.map +0 -1
- package/dist/components/PlTooltip/Beak.vue.js +0 -23
- package/dist/components/PlTooltip/Beak.vue.js.map +0 -1
- package/dist/components/PlTooltip/useTooltipPosition.d.ts +0 -12
- package/dist/components/PlTooltip/useTooltipPosition.d.ts.map +0 -1
- package/dist/components/PlTooltip/useTooltipPosition.js +0 -18
- package/dist/components/PlTooltip/useTooltipPosition.js.map +0 -1
- package/src/components/PlTooltip/Beak.vue +0 -12
- package/src/components/PlTooltip/pl-tooltip.scss +0 -117
- package/src/components/PlTooltip/useTooltipPosition.ts +0 -59
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, useSlots as E, ref as c, computed as u, watch as F, createElementBlock as p, openBlock as l, normalizeClass as L, createCommentVNode as v, createVNode as d, createElementVNode as b, createBlock as T, toDisplayString as m, unref as r, withCtx as i, renderSlot as R, createTextVNode as S } from "vue";
|
|
2
2
|
import h from "../PlIcon24/PlIcon24.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { okOptional as
|
|
5
|
-
import { useLogHandle as
|
|
4
|
+
import { okOptional as I, tapIf as O } from "@milaboratories/helpers";
|
|
5
|
+
import { useLogHandle as $ } from "./useLogHandle.js";
|
|
6
6
|
import { useLabelNotch as j } from "../../utils/useLabelNotch.js";
|
|
7
7
|
import q from "../../utils/DoubleContour.vue.js";
|
|
8
8
|
/* empty css */
|
|
@@ -13,7 +13,7 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
13
13
|
class: "pl-log-view__error"
|
|
14
14
|
}, K = {
|
|
15
15
|
name: "PlLogView"
|
|
16
|
-
}, ro = /* @__PURE__ */
|
|
16
|
+
}, ro = /* @__PURE__ */ D({
|
|
17
17
|
...K,
|
|
18
18
|
props: {
|
|
19
19
|
value: {},
|
|
@@ -33,7 +33,7 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
33
33
|
if (o && o.ok === !1)
|
|
34
34
|
return o.errors.join(`
|
|
35
35
|
`);
|
|
36
|
-
}, V =
|
|
36
|
+
}, V = E(), t = n, g = $(t), k = c(!0), w = c(), C = c(), f = u(
|
|
37
37
|
() => {
|
|
38
38
|
var o;
|
|
39
39
|
return ((o = g.value) == null ? void 0 : o.error) ?? t.error ?? x(t.output);
|
|
@@ -41,50 +41,50 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
41
41
|
), a = u(
|
|
42
42
|
() => {
|
|
43
43
|
var o;
|
|
44
|
-
return ((o = g.value) == null ? void 0 : o.lines) ?? t.value ??
|
|
44
|
+
return ((o = g.value) == null ? void 0 : o.lines) ?? t.value ?? I(t.output);
|
|
45
45
|
}
|
|
46
|
-
),
|
|
46
|
+
), _ = u(() => {
|
|
47
47
|
if (t.valueToCopy)
|
|
48
48
|
return t.valueToCopy;
|
|
49
49
|
if (a.value && typeof a.value == "string")
|
|
50
50
|
return a.value;
|
|
51
51
|
}), s = c(!1);
|
|
52
|
-
j(
|
|
52
|
+
j(C);
|
|
53
53
|
const N = u(() => s.value ? "clipboard-copied" : "clipboard"), A = () => {
|
|
54
54
|
s.value = !0, setTimeout(() => {
|
|
55
55
|
s.value = !1;
|
|
56
56
|
}, 1200);
|
|
57
|
-
const o =
|
|
57
|
+
const o = _.value;
|
|
58
58
|
o !== void 0 && navigator.clipboard.writeText(o);
|
|
59
59
|
}, H = (o) => {
|
|
60
|
-
const e =
|
|
60
|
+
const e = _.value;
|
|
61
61
|
e !== void 0 && z([e, "text/plain"], o);
|
|
62
|
-
},
|
|
63
|
-
t.disableAutoScroll ||
|
|
62
|
+
}, P = () => {
|
|
63
|
+
t.disableAutoScroll || O(w.value, (o) => {
|
|
64
64
|
k.value && o.scrollTo(o.scrollLeft, o.scrollHeight);
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
F(
|
|
68
68
|
a,
|
|
69
69
|
() => {
|
|
70
70
|
requestAnimationFrame(() => {
|
|
71
|
-
|
|
71
|
+
P();
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
{ immediate: !0 }
|
|
75
75
|
);
|
|
76
|
-
const
|
|
76
|
+
const B = (o) => {
|
|
77
77
|
const e = o.target;
|
|
78
78
|
k.value = e.scrollTop + 20 >= e.scrollHeight - e.offsetHeight;
|
|
79
79
|
};
|
|
80
80
|
return (o, e) => (l(), p("div", {
|
|
81
81
|
ref_key: "root",
|
|
82
|
-
ref:
|
|
83
|
-
class:
|
|
82
|
+
ref: C,
|
|
83
|
+
class: L(["pl-log-view", { "has-error": f.value }])
|
|
84
84
|
}, [
|
|
85
85
|
n.label ? (l(), p("label", M, [
|
|
86
86
|
b("span", null, m(n.label), 1),
|
|
87
|
-
r(V).tooltip ? (l(),
|
|
87
|
+
r(V).tooltip ? (l(), T(r(y), {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "info",
|
|
90
90
|
position: "top"
|
|
@@ -102,7 +102,7 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
102
102
|
position: "top"
|
|
103
103
|
}, {
|
|
104
104
|
tooltip: i(() => [
|
|
105
|
-
|
|
105
|
+
S(m(s.value ? "copied" : "copy"), 1)
|
|
106
106
|
]),
|
|
107
107
|
default: i(() => [
|
|
108
108
|
d(r(h), {
|
|
@@ -113,13 +113,13 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
115
|
}),
|
|
116
|
-
n.downloadFilename ? (l(),
|
|
116
|
+
n.downloadFilename ? (l(), T(r(y), {
|
|
117
117
|
key: 0,
|
|
118
118
|
"close-delay": 800,
|
|
119
119
|
position: "top"
|
|
120
120
|
}, {
|
|
121
121
|
tooltip: i(() => [...e[1] || (e[1] = [
|
|
122
|
-
|
|
122
|
+
S("download", -1)
|
|
123
123
|
])]),
|
|
124
124
|
default: i(() => [
|
|
125
125
|
d(r(h), {
|
|
@@ -135,7 +135,7 @@ const M = { key: 0 }, G = { class: "pl-log-view__copy" }, J = {
|
|
|
135
135
|
ref_key: "contentRef",
|
|
136
136
|
ref: w,
|
|
137
137
|
class: "pl-log-view__content",
|
|
138
|
-
onScroll:
|
|
138
|
+
onScroll: B
|
|
139
139
|
}, m(a.value), 545))
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as A, mergeModels as P, useModel as R, useSlots as F, ref as c, computed as s, watch as T, createElementBlock as m, openBlock as v, normalizeClass as p, createElementVNode as r, createCommentVNode as g, createVNode as _, withDirectives as $, createTextVNode as j, createBlock as U, toDisplayString as M, unref as C, withCtx as K, renderSlot as Z, vModelText as q } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import z from "../../utils/DoubleContour.vue.js";
|
|
4
4
|
/* empty css */
|
|
@@ -13,9 +13,9 @@ const J = { class: "pl-number-field__main-wrapper d-flex" }, Q = {
|
|
|
13
13
|
class: "pl-number-field__error"
|
|
14
14
|
}, Y = {
|
|
15
15
|
name: "PlNumberField"
|
|
16
|
-
}, ie = /* @__PURE__ */
|
|
16
|
+
}, ie = /* @__PURE__ */ A({
|
|
17
17
|
...Y,
|
|
18
|
-
props: /* @__PURE__ */
|
|
18
|
+
props: /* @__PURE__ */ P({
|
|
19
19
|
disabled: { type: Boolean },
|
|
20
20
|
label: { default: void 0 },
|
|
21
21
|
placeholder: { default: void 0 },
|
|
@@ -33,13 +33,13 @@ const J = { class: "pl-number-field__main-wrapper d-flex" }, Q = {
|
|
|
33
33
|
}),
|
|
34
34
|
emits: ["update:modelValue"],
|
|
35
35
|
setup(n) {
|
|
36
|
-
const t = n, u = R(n, "modelValue"), O =
|
|
36
|
+
const t = n, u = R(n, "modelValue"), O = F(), V = c(), f = c();
|
|
37
37
|
G(V);
|
|
38
38
|
function b(e) {
|
|
39
39
|
return e === void 0 ? "" : String(+e);
|
|
40
40
|
}
|
|
41
41
|
const i = s(() => D(t, d.value)), w = c(void 0), E = () => w.value = void 0;
|
|
42
|
-
|
|
42
|
+
T(u, (e) => {
|
|
43
43
|
const l = i.value;
|
|
44
44
|
(l.error || e !== l.value) && E();
|
|
45
45
|
});
|
|
@@ -104,7 +104,7 @@ const J = { class: "pl-number-field__main-wrapper d-flex" }, Q = {
|
|
|
104
104
|
onKeydown: l[3] || (l[3] = (o) => N(o))
|
|
105
105
|
}, [
|
|
106
106
|
r("div", J, [
|
|
107
|
-
|
|
107
|
+
_(z, {
|
|
108
108
|
class: "pl-number-field__contour",
|
|
109
109
|
"group-position": n.groupPosition
|
|
110
110
|
}, null, 8, ["group-position"]),
|
|
@@ -112,7 +112,7 @@ const J = { class: "pl-number-field__main-wrapper d-flex" }, Q = {
|
|
|
112
112
|
class: p(["pl-number-field__wrapper flex-grow d-flex flex-align-center", { withoutArrows: !n.useIncrementButtons }])
|
|
113
113
|
}, [
|
|
114
114
|
n.label ? (v(), m("label", Q, [
|
|
115
|
-
|
|
115
|
+
j(M(n.label) + " ", 1),
|
|
116
116
|
C(O).tooltip ? (v(), U(C(H), {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: "info",
|
|
@@ -124,7 +124,7 @@ const J = { class: "pl-number-field__main-wrapper d-flex" }, Q = {
|
|
|
124
124
|
_: 3
|
|
125
125
|
})) : g("", !0)
|
|
126
126
|
])) : g("", !0),
|
|
127
|
-
|
|
127
|
+
$(r("input", {
|
|
128
128
|
ref_key: "inputRef",
|
|
129
129
|
ref: f,
|
|
130
130
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => d.value = o),
|
|
@@ -3,14 +3,38 @@ type __VLS_Props = {
|
|
|
3
3
|
clearable?: boolean;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
helper?: string;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
modelValue: string;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: Readonly<{
|
|
14
|
+
helper: () => unknown;
|
|
15
|
+
}> & {
|
|
16
|
+
helper: () => unknown;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
root: HTMLDivElement;
|
|
20
|
+
input: HTMLInputElement;
|
|
21
|
+
};
|
|
22
|
+
rootEl: HTMLDivElement;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: string) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
30
|
root: HTMLDivElement;
|
|
13
31
|
input: HTMLInputElement;
|
|
14
32
|
}, HTMLDivElement>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
34
|
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
16
40
|
//# sourceMappingURL=PlSearchField.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlSearchField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlSearchField/PlSearchField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlSearchField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlSearchField/PlSearchField.vue"],"names":[],"mappings":"AA6GA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;CAClB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4FT,OAAO,IAA6B;;gBA9GxC,MAAM,OAAO;;gBAAb,MAAM,OAAO;;;;;;;EAmHtB;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,49 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as v, mergeModels as k, useModel as y, useSlots as V, computed as s, createElementBlock as b, openBlock as t, normalizeClass as n, createVNode as M, withDirectives as B, createBlock as d, createCommentVNode as c, unref as i, createElementVNode as C, vModelText as N, withModifiers as P, withCtx as S, renderSlot as g, createTextVNode as w, toDisplayString as x } from "vue";
|
|
2
|
+
import E from "../PlIcon16/PlIcon16.vue.js";
|
|
3
|
+
import T from "../PlIcon24/PlIcon24.vue.js";
|
|
4
|
+
import $ from "../PlTooltip/PlTooltip.vue.js";
|
|
5
|
+
const D = ["disabled", "placeholder"], z = /* @__PURE__ */ v({
|
|
5
6
|
__name: "PlSearchField",
|
|
6
|
-
props: {
|
|
7
|
+
props: /* @__PURE__ */ k({
|
|
7
8
|
modelValue: {},
|
|
8
9
|
clearable: { type: Boolean },
|
|
9
10
|
placeholder: {},
|
|
10
|
-
disabled: { type: Boolean }
|
|
11
|
-
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
helper: {}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: { required: !0 },
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
12
17
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
return a.modelValue ?? "";
|
|
17
|
-
},
|
|
18
|
-
set(l) {
|
|
19
|
-
t("update:modelValue", l);
|
|
20
|
-
}
|
|
21
|
-
}), i = d(() => !!a.modelValue), u = () => t("update:modelValue", "");
|
|
22
|
-
return (l, n) => (r(), h("div", {
|
|
18
|
+
setup(a) {
|
|
19
|
+
const e = y(a, "modelValue"), l = a, p = V(), u = s(() => e.value != null && e.value.length > 0), m = s(() => l.helper != null || p.helper != null), h = () => e.value = "";
|
|
20
|
+
return (o, r) => (t(), b("div", {
|
|
23
21
|
ref: "root",
|
|
24
|
-
class:
|
|
22
|
+
class: n(o.$style.component)
|
|
25
23
|
}, [
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
M(i(T), { name: "search" }),
|
|
25
|
+
B(C("input", {
|
|
28
26
|
ref: "input",
|
|
29
|
-
"onUpdate:modelValue":
|
|
30
|
-
disabled:
|
|
31
|
-
placeholder:
|
|
27
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
|
|
28
|
+
disabled: l.disabled,
|
|
29
|
+
placeholder: l.placeholder || "Find...",
|
|
32
30
|
type: "text",
|
|
33
31
|
spellcheck: "false"
|
|
34
|
-
}, null, 8,
|
|
35
|
-
[
|
|
32
|
+
}, null, 8, D), [
|
|
33
|
+
[N, e.value]
|
|
36
34
|
]),
|
|
37
|
-
|
|
35
|
+
l.clearable && u.value ? (t(), d(i(E), {
|
|
38
36
|
key: 0,
|
|
39
|
-
class:
|
|
37
|
+
class: n(o.$style.clear),
|
|
40
38
|
name: "delete-clear",
|
|
41
|
-
onClick:
|
|
42
|
-
}, null, 8, ["class"])) :
|
|
39
|
+
onClick: P(h, ["stop"])
|
|
40
|
+
}, null, 8, ["class"])) : c("", !0),
|
|
41
|
+
m.value ? (t(), d($, {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "info",
|
|
44
|
+
position: "bottom"
|
|
45
|
+
}, {
|
|
46
|
+
tooltip: S(() => [
|
|
47
|
+
g(o.$slots, "helper", {}, () => [
|
|
48
|
+
w(x(l.helper), 1)
|
|
49
|
+
])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
})) : c("", !0)
|
|
43
53
|
], 2));
|
|
44
54
|
}
|
|
45
55
|
});
|
|
46
56
|
export {
|
|
47
|
-
|
|
57
|
+
z as default
|
|
48
58
|
};
|
|
49
59
|
//# sourceMappingURL=PlSearchField.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlSearchField.vue2.js","sources":["../../../src/components/PlSearchField/PlSearchField.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { PlIcon16 } from \"../PlIcon16\";\nimport { PlIcon24 } from \"../PlIcon24\";\nimport { computed } from \"vue\";\n\nconst
|
|
1
|
+
{"version":3,"file":"PlSearchField.vue2.js","sources":["../../../src/components/PlSearchField/PlSearchField.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { PlIcon16 } from \"../PlIcon16\";\nimport { PlIcon24 } from \"../PlIcon24\";\nimport { computed } from \"vue\";\nimport PlTooltip from \"../PlTooltip/PlTooltip.vue\";\n\nconst model = defineModel<string>({ required: true });\n\nconst props = defineProps<{\n modelValue?: string;\n clearable?: boolean;\n placeholder?: string;\n disabled?: boolean;\n helper?: string;\n}>();\nconst slots = defineSlots<{\n helper: () => unknown;\n}>();\n\nconst nonEmpty = computed(() => model.value != null && model.value.length > 0);\nconst hasHelper = computed(() => props.helper != null || slots.helper != null);\n\nconst clear = () => (model.value = \"\");\n</script>\n\n<template>\n <div ref=\"root\" :class=\"$style.component\">\n <PlIcon24 name=\"search\" />\n <input\n ref=\"input\"\n v-model=\"model\"\n :disabled=\"props.disabled\"\n :placeholder=\"props.placeholder || 'Find...'\"\n type=\"text\"\n spellcheck=\"false\"\n />\n <PlIcon16\n v-if=\"props.clearable && nonEmpty\"\n :class=\"$style.clear\"\n name=\"delete-clear\"\n @click.stop=\"clear\"\n />\n\n <PlTooltip v-if=\"hasHelper\" class=\"info\" position=\"bottom\">\n <template #tooltip>\n <slot name=\"helper\">\n {{ props.helper }}\n </slot>\n </template>\n </PlTooltip>\n </div>\n</template>\n\n<style lang=\"scss\" module>\n.component {\n --pl-search-field-border-bottom-color: var(--txt-01);\n --pl-search-field-bg: transparent;\n --pl-search-field-caret-color: auto;\n --pl-search-field-clear-display: none;\n\n position: relative;\n display: flex;\n align-items: center;\n min-height: calc(var(--control-height) - 2px);\n line-height: calc(var(--control-height) - 2px);\n background-color: var(--pl-search-field-bg);\n padding: 0 0 0 0;\n border-bottom: 1px solid var(--pl-search-field-border-bottom-color);\n\n input {\n margin-left: 8px;\n width: 100%;\n height: 20px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n caret-color: var(--pl-search-field-caret-color);\n }\n\n &:focus-within {\n --pl-search-field-border-bottom-color: var(--txt-focus);\n --pl-search-field-caret-color: var(--border-color-focus);\n --pl-search-field-clear-display: block;\n }\n\n &:hover {\n --pl-search-field-clear-display: block;\n }\n\n .clear {\n --icon-color: var(--ic-02);\n cursor: pointer;\n margin-left: auto;\n display: var(--pl-search-field-clear-display);\n }\n}\n</style>\n"],"names":["model","_useModel","__props","props","slots","_useSlots","nonEmpty","computed","hasHelper","clear","_createElementBlock","_normalizeClass","$style","_createVNode","_unref","PlIcon24","_createElementVNode","$event","_createBlock","PlIcon16","PlTooltip","_renderSlot","_ctx","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,UAAMA,IAAQC,EAAmBC,GAAA,YAAmB,GAE9CC,IAAQD,GAORE,IAAQC,EAAA,GAIRC,IAAWC,EAAS,MAAMP,EAAM,SAAS,QAAQA,EAAM,MAAM,SAAS,CAAC,GACvEQ,IAAYD,EAAS,MAAMJ,EAAM,UAAU,QAAQC,EAAM,UAAU,IAAI,GAEvEK,IAAQ,MAAOT,EAAM,QAAQ;2BAIjCU,EAwBM,OAAA;AAAA,MAxBD,KAAI;AAAA,MAAQ,OAAKC,EAAEC,EAAAA,OAAO,SAAS;AAAA,IAAA;MACtCC,EAA0BC,EAAAC,CAAA,GAAA,EAAhB,MAAK,UAAQ;AAAA,QACvBC,EAOE,SAAA;AAAA,QANA,KAAI;AAAA,sDACKhB,EAAK,QAAAiB;AAAA,QACb,UAAUd,EAAM;AAAA,QAChB,aAAaA,EAAM,eAAW;AAAA,QAC/B,MAAK;AAAA,QACL,YAAW;AAAA,MAAA;YAJFH,EAAA,KAAK;AAAA,MAAA;MAORG,EAAM,aAAaG,EAAA,cAD3BY,EAKEJ,EAAAK,CAAA,GAAA;AAAA;QAHC,OAAKR,EAAEC,EAAAA,OAAO,KAAK;AAAA,QACpB,MAAK;AAAA,QACJ,WAAYH,GAAK,CAAA,MAAA,CAAA;AAAA,MAAA;MAGHD,EAAA,cAAjBU,EAMYE,GAAA;AAAA;QANgB,OAAM;AAAA,QAAO,UAAS;AAAA,MAAA;QACrC,WACT,MAEO;AAAA,UAFPC,EAEOC,wBAFP,MAEO;AAAA,YADFC,EAAAC,EAAArB,EAAM,MAAM,GAAA,CAAA;AAAA,UAAA;;;;;;;"}
|
|
@@ -7,7 +7,6 @@ import "@milaboratories/helpers";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { useEventListener as E } from "../../composition/useEventListener.js";
|
|
9
9
|
import "../../composition/useTheme.js";
|
|
10
|
-
/* empty css */
|
|
11
10
|
import { useClickOutside as P } from "../../composition/useClickOutside.js";
|
|
12
11
|
/* empty css */
|
|
13
12
|
import "../../global/resizeObserver.js";
|
|
@@ -20,7 +19,7 @@ import "../../layout/PlPlaceholder/PlPlaceholder.vue2.js";
|
|
|
20
19
|
/* empty css */
|
|
21
20
|
/* empty css */
|
|
22
21
|
/* empty css */
|
|
23
|
-
/* empty css
|
|
22
|
+
/* empty css */
|
|
24
23
|
/* empty css */
|
|
25
24
|
/* empty css */
|
|
26
25
|
/* empty css */
|
|
@@ -65,7 +64,7 @@ import "../../colors/gradient.js";
|
|
|
65
64
|
const K = {
|
|
66
65
|
name: "PlPureSlideModal",
|
|
67
66
|
inheritAttrs: !1
|
|
68
|
-
},
|
|
67
|
+
}, jt = /* @__PURE__ */ f({
|
|
69
68
|
...K,
|
|
70
69
|
props: /* @__PURE__ */ c({
|
|
71
70
|
modelValue: { type: Boolean },
|
|
@@ -110,6 +109,6 @@ const K = {
|
|
|
110
109
|
}
|
|
111
110
|
});
|
|
112
111
|
export {
|
|
113
|
-
|
|
112
|
+
jt as default
|
|
114
113
|
};
|
|
115
114
|
//# sourceMappingURL=PlPureSlideModal.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlPureSlideModal.vue.js","sources":["../../../src/components/PlSlideModal/PlPureSlideModal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport default {\n name: \"PlPureSlideModal\",\n inheritAttrs: false,\n};\n</script>\n\n<script lang=\"ts\" setup>\nimport \"./pl-slide-modal.scss\";\nimport { ref, useAttrs } from \"vue\";\nimport TransitionSlidePanel from \"../TransitionSlidePanel.vue\";\nimport { useClickOutside, useEventListener } from \"../../index\";\nimport type { Props } from \"./props\";\nimport { defaultProps } from \"./props\";\n\nconst emit = defineEmits<{\n (e: \"update:modelValue\", value: boolean): void;\n}>();\n\nconst modal = ref();\nconst attrs = useAttrs();\nconst props = withDefaults(defineProps<Props>(), defaultProps);\n\nuseClickOutside(modal, () => {\n if (props.modelValue && props.closeOnOutsideClick) {\n emit(\"update:modelValue\", false);\n }\n});\n\nuseEventListener(document, \"keydown\", (evt: KeyboardEvent) => {\n if (evt.key === \"Escape\") {\n emit(\"update:modelValue\", false);\n }\n});\n</script>\n\n<template>\n <Teleport to=\"body\">\n <TransitionSlidePanel>\n <div\n v-if=\"props.modelValue\"\n ref=\"modal\"\n class=\"pl-slide-modal\"\n :style=\"{ width: props.width }\"\n v-bind=\"attrs\"\n @keyup.esc=\"emit('update:modelValue', false)\"\n >\n <div class=\"close-dialog-btn\" @click=\"emit('update:modelValue', false)\" />\n <slot />\n </div>\n </TransitionSlidePanel>\n <div\n v-if=\"props.modelValue && props.shadow\"\n class=\"pl-slide-modal__shadow\"\n @keyup.esc=\"emit('update:modelValue', false)\"\n />\n </Teleport>\n</template>\n"],"names":["__default__","emit","__emit","modal","ref","attrs","useAttrs","props","__props","useClickOutside","useEventListener","evt","_createBlock","_Teleport","_createVNode","TransitionSlidePanel","_openBlock","_createElementBlock","_mergeProps","_unref","_createElementVNode","_renderSlot","_ctx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlPureSlideModal.vue.js","sources":["../../../src/components/PlSlideModal/PlPureSlideModal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport default {\n name: \"PlPureSlideModal\",\n inheritAttrs: false,\n};\n</script>\n\n<script lang=\"ts\" setup>\nimport \"./pl-slide-modal.scss\";\nimport { ref, useAttrs } from \"vue\";\nimport TransitionSlidePanel from \"../TransitionSlidePanel.vue\";\nimport { useClickOutside, useEventListener } from \"../../index\";\nimport type { Props } from \"./props\";\nimport { defaultProps } from \"./props\";\n\nconst emit = defineEmits<{\n (e: \"update:modelValue\", value: boolean): void;\n}>();\n\nconst modal = ref();\nconst attrs = useAttrs();\nconst props = withDefaults(defineProps<Props>(), defaultProps);\n\nuseClickOutside(modal, () => {\n if (props.modelValue && props.closeOnOutsideClick) {\n emit(\"update:modelValue\", false);\n }\n});\n\nuseEventListener(document, \"keydown\", (evt: KeyboardEvent) => {\n if (evt.key === \"Escape\") {\n emit(\"update:modelValue\", false);\n }\n});\n</script>\n\n<template>\n <Teleport to=\"body\">\n <TransitionSlidePanel>\n <div\n v-if=\"props.modelValue\"\n ref=\"modal\"\n class=\"pl-slide-modal\"\n :style=\"{ width: props.width }\"\n v-bind=\"attrs\"\n @keyup.esc=\"emit('update:modelValue', false)\"\n >\n <div class=\"close-dialog-btn\" @click=\"emit('update:modelValue', false)\" />\n <slot />\n </div>\n </TransitionSlidePanel>\n <div\n v-if=\"props.modelValue && props.shadow\"\n class=\"pl-slide-modal__shadow\"\n @keyup.esc=\"emit('update:modelValue', false)\"\n />\n </Teleport>\n</template>\n"],"names":["__default__","emit","__emit","modal","ref","attrs","useAttrs","props","__props","useClickOutside","useEventListener","evt","_createBlock","_Teleport","_createVNode","TransitionSlidePanel","_openBlock","_createElementBlock","_mergeProps","_unref","_createElementVNode","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAAA,IAAe;AAAA,EACb,MAAM;AAAA,EACN,cAAc;AAChB;;;;;;;;;;AAWA,UAAMC,IAAOC,GAIPC,IAAQC,EAAA,GACRC,IAAQC,EAAA,GACRC,IAAQC;AAEd,WAAAC,EAAgBN,GAAO,MAAM;AAC3B,MAAII,EAAM,cAAcA,EAAM,uBAC5BN,EAAK,qBAAqB,EAAK;AAAA,IAEnC,CAAC,GAEDS,EAAiB,UAAU,WAAW,CAACC,MAAuB;AAC5D,MAAIA,EAAI,QAAQ,YACdV,EAAK,qBAAqB,EAAK;AAAA,IAEnC,CAAC,mBAICW,EAmBWC,GAAA,EAnBD,IAAG,UAAM;AAAA,MACjBC,EAYuBC,GAAA,MAAA;AAAA,mBAXrB,MAUM;AAAA,UATER,EAAM,cADdS,EAAA,GAAAC,EAUM,OAVNC,EAUM;AAAA;qBARA;AAAA,YAAJ,KAAIf;AAAA,YACJ,OAAM;AAAA,YACL,OAAK,EAAA,OAAWI,EAAM,MAAA;AAAA,UAAK,GACpBY,EAAAd,CAAA,GAAK;AAAA,YACZ,kCAAWJ,EAAI,qBAAA,EAAA,GAAA,CAAA,KAAA,CAAA;AAAA,UAAA;YAEhBmB,EAA0E,OAAA;AAAA,cAArE,OAAM;AAAA,cAAoB,gCAAOnB,EAAI,qBAAA,EAAA;AAAA,YAAA;YAC1CoB,EAAQC,EAAA,QAAA,SAAA;AAAA,UAAA;;;;MAIJf,EAAM,cAAcA,EAAM,eADlCU,EAIE,OAAA;AAAA;QAFA,OAAM;AAAA,QACL,kCAAWhB,EAAI,qBAAA,EAAA,GAAA,CAAA,KAAA,CAAA;AAAA,MAAA;;;;"}
|
|
@@ -14,11 +14,14 @@ declare function __VLS_template(): {
|
|
|
14
14
|
$props: {
|
|
15
15
|
readonly openDelay?: number | undefined;
|
|
16
16
|
readonly closeDelay?: number | undefined;
|
|
17
|
-
readonly position?: ("top
|
|
17
|
+
readonly position?: ("top" | "left" | "bottom" | "right" | "top-left") | undefined;
|
|
18
18
|
readonly hide?: boolean | undefined;
|
|
19
19
|
readonly gap?: number | undefined;
|
|
20
|
+
readonly offsetToTheEdge?: number | undefined;
|
|
20
21
|
readonly element?: ("div" | "span" | "a" | "p" | "h1" | "h2" | "h3") | undefined;
|
|
21
22
|
readonly maxWidth?: string | undefined;
|
|
23
|
+
readonly container?: ("body" | HTMLElement) | undefined;
|
|
24
|
+
readonly hoverable?: boolean | undefined;
|
|
22
25
|
readonly "onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
23
26
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
24
27
|
$attrs: {
|
|
@@ -41,22 +44,28 @@ declare function __VLS_template(): {
|
|
|
41
44
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
42
45
|
openDelay?: number;
|
|
43
46
|
closeDelay?: number;
|
|
44
|
-
position?: "top
|
|
47
|
+
position?: "top" | "left" | "bottom" | "right" | "top-left";
|
|
45
48
|
hide?: boolean;
|
|
46
49
|
gap?: number;
|
|
50
|
+
offsetToTheEdge?: number;
|
|
47
51
|
element?: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
48
52
|
maxWidth?: string;
|
|
53
|
+
container?: "body" | HTMLElement;
|
|
54
|
+
hoverable?: boolean;
|
|
49
55
|
}> & Readonly<{
|
|
50
56
|
"onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
51
57
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
58
|
"tooltip:close": (...args: any[]) => void;
|
|
53
59
|
}, string, {
|
|
54
60
|
gap: number;
|
|
61
|
+
container: "body" | HTMLElement;
|
|
55
62
|
openDelay: number;
|
|
56
63
|
closeDelay: number;
|
|
57
|
-
position: "top
|
|
64
|
+
position: "top" | "left" | "bottom" | "right" | "top-left";
|
|
65
|
+
offsetToTheEdge: number;
|
|
58
66
|
element: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
59
67
|
maxWidth: string;
|
|
68
|
+
hoverable: boolean;
|
|
60
69
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
61
70
|
beforeCreate?: (() => void) | (() => void)[];
|
|
62
71
|
created?: (() => void) | (() => void)[];
|
|
@@ -79,22 +88,28 @@ declare function __VLS_template(): {
|
|
|
79
88
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
80
89
|
} & Readonly<{
|
|
81
90
|
gap: number;
|
|
91
|
+
container: "body" | HTMLElement;
|
|
82
92
|
openDelay: number;
|
|
83
93
|
closeDelay: number;
|
|
84
|
-
position: "top
|
|
94
|
+
position: "top" | "left" | "bottom" | "right" | "top-left";
|
|
95
|
+
offsetToTheEdge: number;
|
|
85
96
|
element: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
86
97
|
maxWidth: string;
|
|
98
|
+
hoverable: boolean;
|
|
87
99
|
}> & Omit<Readonly<{
|
|
88
100
|
openDelay?: number;
|
|
89
101
|
closeDelay?: number;
|
|
90
|
-
position?: "top
|
|
102
|
+
position?: "top" | "left" | "bottom" | "right" | "top-left";
|
|
91
103
|
hide?: boolean;
|
|
92
104
|
gap?: number;
|
|
105
|
+
offsetToTheEdge?: number;
|
|
93
106
|
element?: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
94
107
|
maxWidth?: string;
|
|
108
|
+
container?: "body" | HTMLElement;
|
|
109
|
+
hoverable?: boolean;
|
|
95
110
|
}> & Readonly<{
|
|
96
111
|
"onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
}>, "gap" | "openDelay" | "closeDelay" | "position" | "element" | "maxWidth"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
112
|
+
}>, "gap" | "container" | "openDelay" | "closeDelay" | "position" | "offsetToTheEdge" | "element" | "maxWidth" | "hoverable"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
98
113
|
$slots: {
|
|
99
114
|
default?(_: {}): any;
|
|
100
115
|
tooltip?(_: {}): any;
|
|
@@ -111,11 +126,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
111
126
|
$props: {
|
|
112
127
|
readonly openDelay?: number | undefined;
|
|
113
128
|
readonly closeDelay?: number | undefined;
|
|
114
|
-
readonly position?: ("top
|
|
129
|
+
readonly position?: ("top" | "left" | "bottom" | "right" | "top-left") | undefined;
|
|
115
130
|
readonly hide?: boolean | undefined;
|
|
116
131
|
readonly gap?: number | undefined;
|
|
132
|
+
readonly offsetToTheEdge?: number | undefined;
|
|
117
133
|
readonly element?: ("div" | "span" | "a" | "p" | "h1" | "h2" | "h3") | undefined;
|
|
118
134
|
readonly maxWidth?: string | undefined;
|
|
135
|
+
readonly container?: ("body" | HTMLElement) | undefined;
|
|
136
|
+
readonly hoverable?: boolean | undefined;
|
|
119
137
|
readonly "onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
120
138
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
121
139
|
$attrs: {
|
|
@@ -138,22 +156,28 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
138
156
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
139
157
|
openDelay?: number;
|
|
140
158
|
closeDelay?: number;
|
|
141
|
-
position?: "top
|
|
159
|
+
position?: "top" | "left" | "bottom" | "right" | "top-left";
|
|
142
160
|
hide?: boolean;
|
|
143
161
|
gap?: number;
|
|
162
|
+
offsetToTheEdge?: number;
|
|
144
163
|
element?: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
145
164
|
maxWidth?: string;
|
|
165
|
+
container?: "body" | HTMLElement;
|
|
166
|
+
hoverable?: boolean;
|
|
146
167
|
}> & Readonly<{
|
|
147
168
|
"onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
148
169
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
149
170
|
"tooltip:close": (...args: any[]) => void;
|
|
150
171
|
}, string, {
|
|
151
172
|
gap: number;
|
|
173
|
+
container: "body" | HTMLElement;
|
|
152
174
|
openDelay: number;
|
|
153
175
|
closeDelay: number;
|
|
154
|
-
position: "top
|
|
176
|
+
position: "top" | "left" | "bottom" | "right" | "top-left";
|
|
177
|
+
offsetToTheEdge: number;
|
|
155
178
|
element: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
156
179
|
maxWidth: string;
|
|
180
|
+
hoverable: boolean;
|
|
157
181
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
158
182
|
beforeCreate?: (() => void) | (() => void)[];
|
|
159
183
|
created?: (() => void) | (() => void)[];
|
|
@@ -176,22 +200,28 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
176
200
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
177
201
|
} & Readonly<{
|
|
178
202
|
gap: number;
|
|
203
|
+
container: "body" | HTMLElement;
|
|
179
204
|
openDelay: number;
|
|
180
205
|
closeDelay: number;
|
|
181
|
-
position: "top
|
|
206
|
+
position: "top" | "left" | "bottom" | "right" | "top-left";
|
|
207
|
+
offsetToTheEdge: number;
|
|
182
208
|
element: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
183
209
|
maxWidth: string;
|
|
210
|
+
hoverable: boolean;
|
|
184
211
|
}> & Omit<Readonly<{
|
|
185
212
|
openDelay?: number;
|
|
186
213
|
closeDelay?: number;
|
|
187
|
-
position?: "top
|
|
214
|
+
position?: "top" | "left" | "bottom" | "right" | "top-left";
|
|
188
215
|
hide?: boolean;
|
|
189
216
|
gap?: number;
|
|
217
|
+
offsetToTheEdge?: number;
|
|
190
218
|
element?: "div" | "span" | "a" | "p" | "h1" | "h2" | "h3";
|
|
191
219
|
maxWidth?: string;
|
|
220
|
+
container?: "body" | HTMLElement;
|
|
221
|
+
hoverable?: boolean;
|
|
192
222
|
}> & Readonly<{
|
|
193
223
|
"onTooltip:close"?: ((...args: any[]) => any) | undefined;
|
|
194
|
-
}>, "gap" | "openDelay" | "closeDelay" | "position" | "element" | "maxWidth"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
224
|
+
}>, "gap" | "container" | "openDelay" | "closeDelay" | "position" | "offsetToTheEdge" | "element" | "maxWidth" | "hoverable"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
195
225
|
$slots: {
|
|
196
226
|
default?(_: {}): any;
|
|
197
227
|
tooltip?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlTabs/Tab.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AA6BF,iBAAS,cAAc;WAkDT,OAAO,IAA6B;;yBAXrB,GAAG
|
|
1
|
+
{"version":3,"file":"Tab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlTabs/Tab.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AA6BF,iBAAS,cAAc;WAkDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmDqnqB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnC1wqB;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuBgoqB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAfzwqB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const y = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as f, ref as s, reactive as a, onMounted as c, unref as n, createBlock as d, openBlock as p, withCtx as i, renderSlot as u, createTextVNode as m, toDisplayString as v } from "vue";
|
|
2
|
+
import w from "../PlTooltip/PlTooltip.vue.js";
|
|
3
|
+
const y = /* @__PURE__ */ f({
|
|
4
4
|
__name: "Tab",
|
|
5
5
|
props: {
|
|
6
6
|
option: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
8
|
+
setup(l) {
|
|
9
9
|
const r = s(), t = a({
|
|
10
10
|
isOverflown: !1
|
|
11
11
|
});
|
|
@@ -17,7 +17,7 @@ const y = /* @__PURE__ */ l({
|
|
|
17
17
|
o && requestAnimationFrame(() => {
|
|
18
18
|
o.offsetWidth < o.scrollWidth && (t.isOverflown = !0);
|
|
19
19
|
});
|
|
20
|
-
}), (e, o) => (p(), d(n(
|
|
20
|
+
}), (e, o) => (p(), d(n(w), {
|
|
21
21
|
ref_key: "rootRef",
|
|
22
22
|
ref: r,
|
|
23
23
|
element: "div",
|
|
@@ -27,7 +27,7 @@ const y = /* @__PURE__ */ l({
|
|
|
27
27
|
"data-is-overflown": t.isOverflown ? "true" : "false"
|
|
28
28
|
}, {
|
|
29
29
|
tooltip: i(() => [
|
|
30
|
-
m(
|
|
30
|
+
m(v(l.option.label), 1)
|
|
31
31
|
]),
|
|
32
32
|
default: i(() => [
|
|
33
33
|
u(e.$slots, "default")
|