@milaboratories/uikit 2.10.26 → 2.10.27
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 +47 -48
- 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 +6 -0
- package/dist/components/DataTable/TableComponent.vue.js +15 -16
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- 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/PlSlideModal/PlPureSlideModal.vue.js +2 -3
- 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 +4 -4
- 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/PlTooltip/PlTooltip.vue +227 -32
- 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),
|
|
@@ -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";
|
|
@@ -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")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as E, useSlots as S, ref as v, computed as a, onMounted as
|
|
1
|
+
import { defineComponent as E, useSlots as S, ref as v, computed as a, onMounted as C, createElementBlock as s, openBlock as o, createElementVNode as n, createCommentVNode as i, normalizeClass as N, withDirectives as $, createVNode as q, createBlock as g, unref as d, toDisplayString as c, withCtx as D, renderSlot as b, vModelText as M } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import P from "../PlTooltip/PlTooltip.vue.js";
|
|
4
|
+
import T from "../../utils/DoubleContour.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { useLabelNotch as
|
|
7
|
-
import { useValidation as
|
|
6
|
+
import { useLabelNotch as j } from "../../utils/useLabelNotch.js";
|
|
7
|
+
import { useValidation as H } from "../../utils/useValidation.js";
|
|
8
8
|
import { getErrorMessage as z } from "../../helpers/error.js";
|
|
9
9
|
import A from "../PlSvg/PlSvg.vue.js";
|
|
10
10
|
import I from "../../assets/images/required.svg.js";
|
|
@@ -19,7 +19,7 @@ const L = { class: "ui-text-area__envelope" }, R = {
|
|
|
19
19
|
class: "ui-text-area__helper"
|
|
20
20
|
}, K = {
|
|
21
21
|
name: "PlTextArea"
|
|
22
|
-
},
|
|
22
|
+
}, re = /* @__PURE__ */ E({
|
|
23
23
|
...K,
|
|
24
24
|
props: {
|
|
25
25
|
modelValue: {},
|
|
@@ -37,31 +37,31 @@ const L = { class: "ui-text-area__envelope" }, R = {
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:modelValue"],
|
|
39
39
|
setup(t, { emit: k }) {
|
|
40
|
-
const x = S(),
|
|
40
|
+
const x = S(), V = k, l = t, m = v(), p = v(), u = a({
|
|
41
41
|
get() {
|
|
42
|
-
return
|
|
42
|
+
return l.modelValue ?? "";
|
|
43
43
|
},
|
|
44
44
|
set(e) {
|
|
45
|
-
|
|
45
|
+
V("update:modelValue", e);
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
48
|
-
|
|
47
|
+
}), _ = a(() => !!l.modelValue), w = H(u, l.rules || []);
|
|
48
|
+
j(m);
|
|
49
49
|
const h = a(() => {
|
|
50
|
-
const e = [],
|
|
51
|
-
return
|
|
50
|
+
const e = [], r = z(l.error);
|
|
51
|
+
return r && e.push(r), e.push(...w.value.errors), e;
|
|
52
52
|
}), f = a(() => h.value.length > 0), y = () => {
|
|
53
|
-
if (!
|
|
53
|
+
if (!l.autogrow)
|
|
54
54
|
return;
|
|
55
55
|
const e = p.value;
|
|
56
56
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
57
57
|
};
|
|
58
|
-
return
|
|
58
|
+
return C(() => {
|
|
59
59
|
y();
|
|
60
|
-
}), (e,
|
|
60
|
+
}), (e, r) => (o(), s("div", L, [
|
|
61
61
|
n("div", {
|
|
62
62
|
ref_key: "root",
|
|
63
63
|
ref: m,
|
|
64
|
-
class:
|
|
64
|
+
class: N(["ui-text-area", { error: f.value, disabled: t.disabled, dashed: t.dashed, nonEmpty: _.value }])
|
|
65
65
|
}, [
|
|
66
66
|
t.label ? (o(), s("label", R, [
|
|
67
67
|
t.required ? (o(), g(d(A), {
|
|
@@ -69,7 +69,7 @@ const L = { class: "ui-text-area__envelope" }, R = {
|
|
|
69
69
|
uri: d(I)
|
|
70
70
|
}, null, 8, ["uri"])) : i("", !0),
|
|
71
71
|
n("span", null, c(t.label), 1),
|
|
72
|
-
d(x).tooltip ? (o(), g(d(
|
|
72
|
+
d(x).tooltip ? (o(), g(d(P), {
|
|
73
73
|
key: 1,
|
|
74
74
|
class: "info",
|
|
75
75
|
position: "top"
|
|
@@ -80,10 +80,10 @@ const L = { class: "ui-text-area__envelope" }, R = {
|
|
|
80
80
|
_: 3
|
|
81
81
|
})) : i("", !0)
|
|
82
82
|
], 512)) : i("", !0),
|
|
83
|
-
|
|
83
|
+
$(n("textarea", {
|
|
84
84
|
ref_key: "input",
|
|
85
85
|
ref: p,
|
|
86
|
-
"onUpdate:modelValue":
|
|
86
|
+
"onUpdate:modelValue": r[0] || (r[0] = (B) => u.value = B),
|
|
87
87
|
readonly: t.readonly,
|
|
88
88
|
rows: t.rows,
|
|
89
89
|
disabled: t.disabled,
|
|
@@ -96,13 +96,13 @@ const L = { class: "ui-text-area__envelope" }, R = {
|
|
|
96
96
|
n("div", F, [
|
|
97
97
|
b(e.$slots, "append")
|
|
98
98
|
]),
|
|
99
|
-
q(
|
|
99
|
+
q(T, { class: "ui-text-area__contour" })
|
|
100
100
|
], 2),
|
|
101
101
|
f.value ? (o(), s("div", G, c(h.value.join(" ")), 1)) : t.helper ? (o(), s("div", J, c(t.helper), 1)) : i("", !0)
|
|
102
102
|
]));
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
export {
|
|
106
|
-
|
|
106
|
+
re as default
|
|
107
107
|
};
|
|
108
108
|
//# sourceMappingURL=PlTextArea.vue.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, mergeModels as N, useSlots as
|
|
1
|
+
import { defineComponent as I, mergeModels as N, useSlots as T, useModel as $, ref as h, reactive as O, computed as i, createElementBlock as d, openBlock as a, createElementVNode as p, createCommentVNode as n, normalizeClass as j, withDirectives as z, createVNode as L, createBlock as f, unref as c, toDisplayString as v, withCtx as U, renderSlot as E, vModelDynamic as A, withModifiers as V } from "vue";
|
|
2
2
|
import G from "../../assets/images/required.svg.js";
|
|
3
3
|
import { getErrorMessage as H } from "../../helpers/error.js";
|
|
4
4
|
import J from "../../utils/DoubleContour.vue.js";
|
|
@@ -48,9 +48,9 @@ const ee = { class: "pl-text-field__envelope" }, le = {
|
|
|
48
48
|
}),
|
|
49
49
|
emits: ["update:modelValue"],
|
|
50
50
|
setup(l) {
|
|
51
|
-
const
|
|
51
|
+
const P = T(), o = $(l, "modelValue"), e = l, y = h(void 0), b = h(), u = h(!1), s = O({
|
|
52
52
|
cached: void 0
|
|
53
|
-
}),
|
|
53
|
+
}), m = i({
|
|
54
54
|
get() {
|
|
55
55
|
return s.cached ? s.cached.value : o.value === void 0 || o.value === null ? "" : String(o.value);
|
|
56
56
|
},
|
|
@@ -67,12 +67,12 @@ const ee = { class: "pl-text-field__envelope" }, le = {
|
|
|
67
67
|
else
|
|
68
68
|
o.value = t;
|
|
69
69
|
}
|
|
70
|
-
}), C = i(() => e.type && e.type === "password" ? u.value ? "text" : e.type : "text"), M = i(() => u.value ? "view-show" : "view-hide"),
|
|
70
|
+
}), C = i(() => e.type && e.type === "password" ? u.value ? "text" : e.type : "text"), M = i(() => u.value ? "view-show" : "view-hide"), S = () => {
|
|
71
71
|
e.clearable && (s.cached = void 0, o.value = e.clearable === !0 ? "" : e.clearable());
|
|
72
|
-
}, k = Q(
|
|
72
|
+
}, k = Q(m, e.rules || []), B = i(() => e.clearable ? e.clearable === !0 ? o.value === "" : o.value === e.clearable() : o.value === ""), g = i(() => !B.value), x = i(() => {
|
|
73
73
|
const t = [], r = H(e.error);
|
|
74
74
|
return r && t.push(r), s.cached && t.push(s.cached.error), k.value.isValid || t.push(...k.value.errors), t;
|
|
75
|
-
}), w = i(() => x.value.length > 0),
|
|
75
|
+
}), w = i(() => x.value.length > 0), _ = i(
|
|
76
76
|
() => e.clearable && g.value && e.type !== "password" && !e.disabled
|
|
77
77
|
), F = () => u.value = !u.value, R = () => {
|
|
78
78
|
s.cached = void 0;
|
|
@@ -96,8 +96,8 @@ const ee = { class: "pl-text-field__envelope" }, le = {
|
|
|
96
96
|
key: 0,
|
|
97
97
|
uri: c(G)
|
|
98
98
|
}, null, 8, ["uri"])) : n("", !0),
|
|
99
|
-
p("span", null,
|
|
100
|
-
c(
|
|
99
|
+
p("span", null, v(l.label), 1),
|
|
100
|
+
c(P).tooltip ? (a(), f(c(Z), {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "info",
|
|
103
103
|
position: "top"
|
|
@@ -108,28 +108,28 @@ const ee = { class: "pl-text-field__envelope" }, le = {
|
|
|
108
108
|
_: 3
|
|
109
109
|
})) : n("", !0)
|
|
110
110
|
], 512)) : n("", !0),
|
|
111
|
-
l.prefix ? (a(), d("div", te,
|
|
111
|
+
l.prefix ? (a(), d("div", te, v(l.prefix), 1)) : n("", !0),
|
|
112
112
|
z(p("input", {
|
|
113
113
|
ref_key: "inputRef",
|
|
114
114
|
ref: b,
|
|
115
|
-
"onUpdate:modelValue": r[0] || (r[0] = (D) =>
|
|
115
|
+
"onUpdate:modelValue": r[0] || (r[0] = (D) => m.value = D),
|
|
116
116
|
disabled: l.disabled,
|
|
117
117
|
placeholder: l.placeholder || "...",
|
|
118
118
|
type: C.value,
|
|
119
119
|
spellcheck: "false",
|
|
120
120
|
onFocusout: R
|
|
121
121
|
}, null, 40, oe), [
|
|
122
|
-
[A,
|
|
122
|
+
[A, m.value]
|
|
123
123
|
]),
|
|
124
124
|
p("div", {
|
|
125
125
|
class: "pl-text-field__append",
|
|
126
126
|
onClick: q
|
|
127
127
|
}, [
|
|
128
|
-
|
|
128
|
+
_.value ? (a(), f(c(W), {
|
|
129
129
|
key: 0,
|
|
130
130
|
class: "pl-text-field__clearable",
|
|
131
131
|
name: "delete-clear",
|
|
132
|
-
onClick: V(
|
|
132
|
+
onClick: V(S, ["stop"])
|
|
133
133
|
})) : n("", !0),
|
|
134
134
|
l.type === "password" ? (a(), f(c(X), {
|
|
135
135
|
key: 1,
|
|
@@ -144,7 +144,7 @@ const ee = { class: "pl-text-field__envelope" }, le = {
|
|
|
144
144
|
"group-position": l.groupPosition
|
|
145
145
|
}, null, 8, ["group-position"])
|
|
146
146
|
], 2),
|
|
147
|
-
w.value ? (a(), d("div", re,
|
|
147
|
+
w.value ? (a(), d("div", re, v(x.value.join(" ")), 1)) : l.helper ? (a(), d("div", ae, v(l.helper), 1)) : n("", !0)
|
|
148
148
|
]));
|
|
149
149
|
}
|
|
150
150
|
});
|