@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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as ue, useModel as se, useSlots as ce, ref as h, useTemplateRef as de, reactive as pe, computed as v, unref as c, watch as g, watchPostEffect as ve, createElementBlock as u, openBlock as n, withModifiers as S, createElementVNode as _, createCommentVNode as d, normalizeClass as
|
|
1
|
+
import { defineComponent as ie, mergeModels as ue, useModel as se, useSlots as ce, ref as h, useTemplateRef as de, reactive as pe, computed as v, unref as c, watch as g, watchPostEffect as ve, createElementBlock as u, openBlock as n, withModifiers as S, createElementVNode as _, createCommentVNode as d, normalizeClass as P, createBlock as w, createVNode as z, withDirectives as fe, vModelText as me, withCtx as R, createTextVNode as he, toDisplayString as x, renderSlot as N, Fragment as ge, renderList as _e } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { tap as ye } from "../../helpers/functions.js";
|
|
4
4
|
import ke from "../PlTooltip/PlTooltip.vue.js";
|
|
@@ -16,12 +16,12 @@ import Ee from "../../utils/DropdownOverlay/DropdownOverlay.vue.js";
|
|
|
16
16
|
import { refDebounced as Ve } from "@vueuse/core";
|
|
17
17
|
import { useWatchFetch as H } from "../../composition/useWatchFetch.js";
|
|
18
18
|
import { getErrorMessage as Ae } from "../../helpers/error.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const
|
|
19
|
+
import Ce from "../PlSvg/PlSvg.vue.js";
|
|
20
|
+
import De from "../../assets/images/required.svg.js";
|
|
21
|
+
const Me = ["tabindex"], Pe = { class: "pl-autocomplete__container" }, Re = { class: "pl-autocomplete__field" }, $e = ["disabled", "placeholder"], Be = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "input-value"
|
|
24
|
-
},
|
|
24
|
+
}, Fe = { class: "pl-autocomplete__controls" }, Le = {
|
|
25
25
|
key: 2,
|
|
26
26
|
class: "arrow-icon arrow-icon-default"
|
|
27
27
|
}, qe = { key: 0 }, ze = {
|
|
@@ -61,7 +61,7 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
61
61
|
}),
|
|
62
62
|
emits: ["update:modelValue"],
|
|
63
63
|
setup(a) {
|
|
64
|
-
const r = se(a, "modelValue"), f = a, U = ce(), p = h(), O = h(),
|
|
64
|
+
const r = se(a, "modelValue"), f = a, U = ce(), p = h(), O = h(), $ = de("overlay"), s = h(null), t = pe({
|
|
65
65
|
activeIndex: -1,
|
|
66
66
|
open: !1
|
|
67
67
|
}), K = () => ye(
|
|
@@ -72,17 +72,17 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
72
72
|
index: o,
|
|
73
73
|
isSelected: o === j.value,
|
|
74
74
|
isActive: o === t.activeIndex
|
|
75
|
-
}))), b = h(!0), V = h(!1), A = v(() => f.disabled), j = v(() => E.value.findIndex((e) => I(e.value, r.value))),
|
|
75
|
+
}))), b = h(!0), V = h(!1), A = v(() => f.disabled), j = v(() => E.value.findIndex((e) => I(e.value, r.value))), C = v(() => {
|
|
76
76
|
if (!b.value) {
|
|
77
77
|
if (f.error)
|
|
78
78
|
return Ae(f.error);
|
|
79
79
|
if (V.value)
|
|
80
80
|
return "Data loading error";
|
|
81
81
|
}
|
|
82
|
-
}),
|
|
82
|
+
}), B = v(() => {
|
|
83
83
|
const e = c(y), o = c(k), l = e ?? o.find((i) => I(i.value, r.value)) ?? o.find((i) => I(i.value, r.value));
|
|
84
84
|
return (l == null ? void 0 : l.label) || (r.value ? f.formatValue(r.value) : "");
|
|
85
|
-
}), G = v(() => !t.open && r.value ? "" : r.value ? String(
|
|
85
|
+
}), G = v(() => !t.open && r.value ? "" : r.value ? String(B.value) : f.placeholder), J = v(() => r.value !== void 0 && r.value !== null), Q = v(() => A.value ? void 0 : "0"), F = (e) => {
|
|
86
86
|
var o;
|
|
87
87
|
r.value = e == null ? void 0 : e.value, y.value = e, s.value = null, t.open = !1, (o = p == null ? void 0 : p.value) == null || o.focus();
|
|
88
88
|
}, X = () => {
|
|
@@ -104,7 +104,7 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
104
104
|
}, oe = (e) => {
|
|
105
105
|
var l, i, m;
|
|
106
106
|
const o = e.relatedTarget;
|
|
107
|
-
!((l = p.value) != null && l.contains(o)) && !((m = (i =
|
|
107
|
+
!((l = p.value) != null && l.contains(o)) && !((m = (i = $.value) == null ? void 0 : i.listRef) != null && m.contains(o)) && (s.value = null, t.open = !1);
|
|
108
108
|
}, te = (e) => {
|
|
109
109
|
var q;
|
|
110
110
|
if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(e.code))
|
|
@@ -120,8 +120,8 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
120
120
|
const i = c(k), { length: m } = i;
|
|
121
121
|
if (!m)
|
|
122
122
|
return;
|
|
123
|
-
e.code === "Enter" &&
|
|
124
|
-
const ae = i.findIndex((
|
|
123
|
+
e.code === "Enter" && F(i.find((M) => M.index === l));
|
|
124
|
+
const ae = i.findIndex((M) => M.index === l) ?? -1, ne = e.code === "ArrowDown" ? 1 : e.code === "ArrowUp" ? -1 : 0, re = Math.abs(ae + ne + m) % m;
|
|
125
125
|
t.activeIndex = k.value[re].index ?? -1;
|
|
126
126
|
};
|
|
127
127
|
xe(p), g(() => r.value, W, { immediate: !0 }), g(
|
|
@@ -132,15 +132,15 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
132
132
|
}
|
|
133
133
|
), ve(() => {
|
|
134
134
|
var e;
|
|
135
|
-
s.value, t.activeIndex >= 0 && t.open && ((e =
|
|
135
|
+
s.value, t.activeIndex >= 0 && t.open && ((e = $.value) == null || e.scrollIntoActive());
|
|
136
136
|
});
|
|
137
|
-
const le = Ve(s, 300, { maxWait: 1e3 }),
|
|
137
|
+
const le = Ve(s, 300, { maxWait: 1e3 }), D = H(
|
|
138
138
|
() => le.value,
|
|
139
139
|
async (e) => {
|
|
140
140
|
if (e !== null)
|
|
141
141
|
return f.optionsSearch(e, "label");
|
|
142
142
|
}
|
|
143
|
-
),
|
|
143
|
+
), L = H(
|
|
144
144
|
() => r.value,
|
|
145
145
|
async (e) => {
|
|
146
146
|
var o, l;
|
|
@@ -148,22 +148,22 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
return g(
|
|
151
|
-
() =>
|
|
151
|
+
() => D.value,
|
|
152
152
|
(e) => {
|
|
153
153
|
e && (E.value = e, s.value !== null && (V.value = !1));
|
|
154
154
|
}
|
|
155
155
|
), g(
|
|
156
|
-
() =>
|
|
156
|
+
() => L.value,
|
|
157
157
|
(e) => {
|
|
158
158
|
e && (y.value = T([e])[0]);
|
|
159
159
|
}
|
|
160
160
|
), g(
|
|
161
|
-
() =>
|
|
161
|
+
() => D.error,
|
|
162
162
|
(e) => {
|
|
163
163
|
e && (V.value = !!e);
|
|
164
164
|
}
|
|
165
165
|
), g(
|
|
166
|
-
() =>
|
|
166
|
+
() => D.loading || L.loading,
|
|
167
167
|
(e) => {
|
|
168
168
|
b.value = e;
|
|
169
169
|
}
|
|
@@ -175,11 +175,11 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
175
175
|
ref_key: "rootRef",
|
|
176
176
|
ref: p,
|
|
177
177
|
tabindex: Q.value,
|
|
178
|
-
class:
|
|
178
|
+
class: P(["pl-autocomplete", { open: t.open, error: !!C.value, disabled: A.value }]),
|
|
179
179
|
onKeydown: te,
|
|
180
180
|
onFocusout: oe
|
|
181
181
|
}, [
|
|
182
|
-
_("div",
|
|
182
|
+
_("div", Pe, [
|
|
183
183
|
_("div", Re, [
|
|
184
184
|
fe(_("input", {
|
|
185
185
|
ref_key: "input",
|
|
@@ -192,18 +192,18 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
192
192
|
spellcheck: "false",
|
|
193
193
|
autocomplete: "chrome-off",
|
|
194
194
|
onFocus: ee
|
|
195
|
-
}, null, 40,
|
|
195
|
+
}, null, 40, $e), [
|
|
196
196
|
[me, s.value]
|
|
197
197
|
]),
|
|
198
|
-
t.open ? d("", !0) : (n(), u("div",
|
|
198
|
+
t.open ? d("", !0) : (n(), u("div", Be, [
|
|
199
199
|
z(be, null, {
|
|
200
200
|
default: R(() => [
|
|
201
|
-
he(x(
|
|
201
|
+
he(x(B.value), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
})
|
|
205
205
|
])),
|
|
206
|
-
_("div",
|
|
206
|
+
_("div", Fe, [
|
|
207
207
|
b.value ? (n(), w(c(Oe), {
|
|
208
208
|
key: 0,
|
|
209
209
|
name: "loading"
|
|
@@ -221,18 +221,18 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
221
221
|
}, [
|
|
222
222
|
a.arrowIconLarge ? (n(), u("div", {
|
|
223
223
|
key: 0,
|
|
224
|
-
class:
|
|
224
|
+
class: P(["arrow-icon", [`icon-24 ${a.arrowIconLarge}`]])
|
|
225
225
|
}, null, 2)) : a.arrowIcon ? (n(), u("div", {
|
|
226
226
|
key: 1,
|
|
227
|
-
class:
|
|
228
|
-
}, null, 2)) : (n(), u("div",
|
|
227
|
+
class: P(["arrow-icon", [`icon-16 ${a.arrowIcon}`]])
|
|
228
|
+
}, null, 2)) : (n(), u("div", Le))
|
|
229
229
|
])
|
|
230
230
|
])
|
|
231
231
|
]),
|
|
232
232
|
a.label ? (n(), u("label", qe, [
|
|
233
|
-
a.required ? (n(), w(c(
|
|
233
|
+
a.required ? (n(), w(c(Ce), {
|
|
234
234
|
key: 0,
|
|
235
|
-
uri: c(
|
|
235
|
+
uri: c(De)
|
|
236
236
|
}, null, 8, ["uri"])) : d("", !0),
|
|
237
237
|
_("span", null, x(a.label), 1),
|
|
238
238
|
U.tooltip ? (n(), w(c(ke), {
|
|
@@ -261,7 +261,7 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
261
261
|
"is-selected": l.isSelected,
|
|
262
262
|
"is-hovered": l.isActive,
|
|
263
263
|
size: a.optionSize,
|
|
264
|
-
onClick: S((m) =>
|
|
264
|
+
onClick: S((m) => F(l), ["stop"])
|
|
265
265
|
}, null, 8, ["option", "is-selected", "is-hovered", "size", "onClick"]))), 128)),
|
|
266
266
|
k.value.length ? d("", !0) : (n(), u("div", ze, "Nothing found"))
|
|
267
267
|
]),
|
|
@@ -272,8 +272,8 @@ const De = ["tabindex"], Me = { class: "pl-autocomplete__container" }, Re = { cl
|
|
|
272
272
|
"group-position": a.groupPosition
|
|
273
273
|
}, null, 8, ["group-position"])
|
|
274
274
|
])
|
|
275
|
-
], 42,
|
|
276
|
-
|
|
275
|
+
], 42, Me),
|
|
276
|
+
C.value ? (n(), u("div", Ne, x(C.value), 1)) : b.value && a.loadingOptionsHelper ? (n(), u("div", Te, x(a.loadingOptionsHelper), 1)) : a.helper ? (n(), u("div", He, x(a.helper), 1)) : d("", !0)
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
279
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, useSlots as re, ref as z, useTemplateRef as se, reactive as ae, watch as L, computed as u, toRef as ie, unref as i, createElementBlock as c, openBlock as s, createElementVNode as d, createCommentVNode as f, normalizeClass as ue, createBlock as m, createVNode as ce, withDirectives as de, vModelText as pe, Fragment as E, renderList as
|
|
1
|
+
import { defineComponent as ne, useSlots as re, ref as z, useTemplateRef as se, reactive as ae, watch as L, computed as u, toRef as ie, unref as i, createElementBlock as c, openBlock as s, createElementVNode as d, createCommentVNode as f, normalizeClass as ue, createBlock as m, createVNode as ce, withDirectives as de, vModelText as pe, Fragment as E, renderList as T, withModifiers as F, withCtx as V, createTextVNode as U, toDisplayString as v, renderSlot as K } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import fe from "canonicalize";
|
|
4
4
|
import { useWatchFetch as W } from "../../composition/useWatchFetch.js";
|
|
@@ -23,13 +23,13 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
23
23
|
}, Ee = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "pl-autocomplete-multi__error"
|
|
26
|
-
},
|
|
26
|
+
}, Te = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "pl-autocomplete-multi__helper"
|
|
29
|
-
},
|
|
29
|
+
}, Fe = {
|
|
30
30
|
name: "PlAutocompleteMulti"
|
|
31
31
|
}, Qe = /* @__PURE__ */ ne({
|
|
32
|
-
...
|
|
32
|
+
...Fe,
|
|
33
33
|
props: {
|
|
34
34
|
modelValue: { default: () => [] },
|
|
35
35
|
optionsSearch: {},
|
|
@@ -93,10 +93,10 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
93
93
|
var o;
|
|
94
94
|
const t = i(O);
|
|
95
95
|
M(H(t, e) ? t.filter((r) => !I(r, e)) : [...t, e]), n.resetSearchOnSelect && (l.search = ""), (o = k.value) == null || o.focus();
|
|
96
|
-
},
|
|
96
|
+
}, P = (e) => M(i(O).filter((t) => !I(t, e))), oe = () => {
|
|
97
97
|
var e;
|
|
98
98
|
return (e = k.value) == null ? void 0 : e.focus();
|
|
99
|
-
}, te = () => l.open = !l.open,
|
|
99
|
+
}, te = () => l.open = !l.open, q = (e) => {
|
|
100
100
|
var o, r, a;
|
|
101
101
|
const t = e.relatedTarget;
|
|
102
102
|
!((o = b.value) != null && o.contains(t)) && !((a = (r = w.value) == null ? void 0 : r.listRef) != null && a.contains(t)) && (l.open = !1);
|
|
@@ -145,7 +145,7 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
145
145
|
tabindex: Z.value,
|
|
146
146
|
class: ue(["pl-autocomplete-multi", { open: l.open, error: !!$.value, disabled: S.value }]),
|
|
147
147
|
onKeydown: le,
|
|
148
|
-
onFocusout:
|
|
148
|
+
onFocusout: q
|
|
149
149
|
}, [
|
|
150
150
|
d("div", Ve, [
|
|
151
151
|
d("div", we, [
|
|
@@ -164,12 +164,12 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
164
164
|
[pe, l.search]
|
|
165
165
|
]),
|
|
166
166
|
l.open ? f("", !0) : (s(), c("div", xe, [
|
|
167
|
-
(s(!0), c(E, null,
|
|
167
|
+
(s(!0), c(E, null, T(R.value, (o, r) => (s(), m(i(j), {
|
|
168
168
|
key: r,
|
|
169
169
|
closeable: "",
|
|
170
170
|
small: "",
|
|
171
|
-
onClick: t[2] || (t[2] =
|
|
172
|
-
onClose: (a) =>
|
|
171
|
+
onClick: t[2] || (t[2] = F((a) => l.open = !0, ["stop"])),
|
|
172
|
+
onClose: (a) => P(o.value)
|
|
173
173
|
}, {
|
|
174
174
|
default: V(() => [
|
|
175
175
|
U(v(o.label || o.value), 1)
|
|
@@ -185,7 +185,7 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
185
185
|
K(e.$slots, "append"),
|
|
186
186
|
d("div", {
|
|
187
187
|
class: "pl-autocomplete-multi__arrow-wrapper",
|
|
188
|
-
onClick:
|
|
188
|
+
onClick: F(te, ["stop"])
|
|
189
189
|
}, [...t[3] || (t[3] = [
|
|
190
190
|
d("div", { class: "arrow-icon arrow-icon-default" }, null, -1)
|
|
191
191
|
])])
|
|
@@ -216,15 +216,15 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
216
216
|
class: "pl-autocomplete-multi__options",
|
|
217
217
|
gap: 5,
|
|
218
218
|
tabindex: "-1",
|
|
219
|
-
onFocusout:
|
|
219
|
+
onFocusout: q
|
|
220
220
|
}, {
|
|
221
221
|
default: V(() => [
|
|
222
222
|
d("div", $e, [
|
|
223
|
-
(s(!0), c(E, null,
|
|
223
|
+
(s(!0), c(E, null, T(R.value, (o, r) => (s(), m(i(j), {
|
|
224
224
|
key: r,
|
|
225
225
|
closeable: "",
|
|
226
226
|
small: "",
|
|
227
|
-
onClose: (a) =>
|
|
227
|
+
onClose: (a) => P(o.value)
|
|
228
228
|
}, {
|
|
229
229
|
default: V(() => [
|
|
230
230
|
U(v(o.label || o.value), 1)
|
|
@@ -232,7 +232,7 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
232
232
|
_: 2
|
|
233
233
|
}, 1032, ["onClose"]))), 128))
|
|
234
234
|
]),
|
|
235
|
-
(s(!0), c(E, null,
|
|
235
|
+
(s(!0), c(E, null, T(x.value, (o, r) => (s(), m(_e, {
|
|
236
236
|
key: r,
|
|
237
237
|
option: o,
|
|
238
238
|
"text-item": "text",
|
|
@@ -240,7 +240,7 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
240
240
|
"is-hovered": l.activeOption == r,
|
|
241
241
|
size: "medium",
|
|
242
242
|
"use-checkbox": "",
|
|
243
|
-
onClick:
|
|
243
|
+
onClick: F((a) => N(o.value), ["stop"])
|
|
244
244
|
}, null, 8, ["option", "is-selected", "is-hovered", "onClick"]))), 128)),
|
|
245
245
|
!x.value.length && !C.value ? (s(), c("div", Ae, v(p.emptyOptionsText), 1)) : f("", !0)
|
|
246
246
|
]),
|
|
@@ -252,7 +252,7 @@ const Oe = ["tabindex"], Ve = { class: "pl-autocomplete-multi__container" }, we
|
|
|
252
252
|
}, null, 8, ["group-position"])
|
|
253
253
|
])
|
|
254
254
|
], 42, Oe),
|
|
255
|
-
$.value ? (s(), c("div", Ee, v($.value), 1)) : p.helper ? (s(), c("div",
|
|
255
|
+
$.value ? (s(), c("div", Ee, v($.value), 1)) : p.helper ? (s(), c("div", Te, v(p.helper), 1)) : f("", !0)
|
|
256
256
|
]));
|
|
257
257
|
}
|
|
258
258
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as k, computed as g, createElementBlock as o, openBlock as l, normalizeClass as d, createCommentVNode as r, createVNode as V, createElementVNode as B, createBlock as x, toDisplayString as a, unref as i, withCtx as c, renderSlot as C, Fragment as
|
|
1
|
+
import { defineComponent as y, useSlots as k, computed as g, createElementBlock as o, openBlock as l, normalizeClass as d, createCommentVNode as r, createVNode as V, createElementVNode as B, createBlock as x, toDisplayString as a, unref as i, withCtx as c, renderSlot as C, Fragment as w, renderList as E, withKeys as K } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { getErrorMessage as
|
|
6
|
-
const
|
|
3
|
+
import N from "../PlTooltip/PlTooltip.vue.js";
|
|
4
|
+
import S from "../../utils/InnerBorder.vue.js";
|
|
5
|
+
import { getErrorMessage as _ } from "../../helpers/error.js";
|
|
6
|
+
const $ = { key: 0 }, z = ["tabindex", "onKeydown", "onClick"], M = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "pl-btn-group__helper"
|
|
9
|
-
},
|
|
9
|
+
}, P = {
|
|
10
10
|
key: 2,
|
|
11
11
|
class: "pl-btn-group__error"
|
|
12
|
-
},
|
|
12
|
+
}, D = {
|
|
13
13
|
name: "PlBtnGroup"
|
|
14
|
-
},
|
|
15
|
-
...
|
|
14
|
+
}, j = /* @__PURE__ */ y({
|
|
15
|
+
...D,
|
|
16
16
|
props: {
|
|
17
17
|
modelValue: {},
|
|
18
18
|
label: {},
|
|
@@ -30,12 +30,12 @@ const S = { key: 0 }, z = ["tabindex", "onKeydown", "onClick"], M = {
|
|
|
30
30
|
value: t.value
|
|
31
31
|
}))
|
|
32
32
|
);
|
|
33
|
-
return (t,
|
|
33
|
+
return (t, F) => (l(), o("div", {
|
|
34
34
|
class: d(["pl-btn-group", { disabled: e.disabled, compact: e.compact }])
|
|
35
35
|
}, [
|
|
36
|
-
e.label ? (l(), o("label",
|
|
36
|
+
e.label ? (l(), o("label", $, [
|
|
37
37
|
B("span", null, a(e.label), 1),
|
|
38
|
-
i(m).tooltip ? (l(), x(i(
|
|
38
|
+
i(m).tooltip ? (l(), x(i(N), {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "info",
|
|
41
41
|
position: "top"
|
|
@@ -46,23 +46,23 @@ const S = { key: 0 }, z = ["tabindex", "onKeydown", "onClick"], M = {
|
|
|
46
46
|
_: 3
|
|
47
47
|
})) : r("", !0)
|
|
48
48
|
])) : r("", !0),
|
|
49
|
-
V(
|
|
49
|
+
V(S, { class: "pl-btn-group__container" }, {
|
|
50
50
|
default: c(() => [
|
|
51
|
-
(l(!0), o(
|
|
51
|
+
(l(!0), o(w, null, E(v.value, (n, f) => (l(), o("div", {
|
|
52
52
|
key: f,
|
|
53
53
|
class: d(["pl-btn-group__option text-s", { active: e.modelValue === n.value }]),
|
|
54
54
|
tabindex: e.modelValue === n.value || e.disabled ? void 0 : 0,
|
|
55
|
-
onKeydown:
|
|
55
|
+
onKeydown: K((h) => s(n.value), ["enter"]),
|
|
56
56
|
onClick: (h) => s(n.value)
|
|
57
57
|
}, a(n.label), 43, z))), 128))
|
|
58
58
|
]),
|
|
59
59
|
_: 1
|
|
60
60
|
}),
|
|
61
|
-
e.helper ? (l(), o("div", M, a(e.helper), 1)) : e.error ? (l(), o("div",
|
|
61
|
+
e.helper ? (l(), o("div", M, a(e.helper), 1)) : e.error ? (l(), o("div", P, a(i(_)(e.error)), 1)) : r("", !0)
|
|
62
62
|
], 2));
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
j as default
|
|
67
67
|
};
|
|
68
68
|
//# sourceMappingURL=PlBtnGroup.vue.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, useSlots as h, createElementBlock as a, openBlock as t, normalizeClass as v, createCommentVNode as u, createElementVNode as r, createBlock as C, toDisplayString as c, unref as m, withCtx as
|
|
1
|
+
import { defineComponent as k, useSlots as h, createElementBlock as a, openBlock as t, normalizeClass as v, createCommentVNode as u, createElementVNode as r, createBlock as C, toDisplayString as c, unref as m, withCtx as x, renderSlot as y, Fragment as B, renderList as _, createVNode as g, withModifiers as N } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import S from "../PlCheckbox/PlCheckboxBase.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import w from "../PlTooltip/PlTooltip.vue.js";
|
|
5
|
+
const E = { key: 0 }, M = ["onClick"], P = {
|
|
6
6
|
name: "PlCheckboxGroup"
|
|
7
|
-
},
|
|
8
|
-
...
|
|
7
|
+
}, F = /* @__PURE__ */ k({
|
|
8
|
+
...P,
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: {},
|
|
11
11
|
label: {},
|
|
@@ -24,20 +24,20 @@ const w = { key: 0 }, E = ["onClick"], M = {
|
|
|
24
24
|
return (l, n) => (t(), a("div", {
|
|
25
25
|
class: v(["pl-checkbox-group", { disabled: o.disabled }])
|
|
26
26
|
}, [
|
|
27
|
-
o.label ? (t(), a("label",
|
|
27
|
+
o.label ? (t(), a("label", E, [
|
|
28
28
|
r("span", null, c(o.label), 1),
|
|
29
|
-
m(p).tooltip ? (t(), C(m(
|
|
29
|
+
m(p).tooltip ? (t(), C(m(w), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "info",
|
|
32
32
|
position: "top"
|
|
33
33
|
}, {
|
|
34
|
-
tooltip:
|
|
35
|
-
|
|
34
|
+
tooltip: x(() => [
|
|
35
|
+
y(l.$slots, "tooltip")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
})) : u("", !0)
|
|
39
39
|
])) : u("", !0),
|
|
40
|
-
(t(!0), a(
|
|
40
|
+
(t(!0), a(B, null, _(o.options.map((e) => ({
|
|
41
41
|
label: "label" in e ? e.label : e.text,
|
|
42
42
|
value: e.value
|
|
43
43
|
})), (e, V) => (t(), a("div", { key: V }, [
|
|
@@ -49,12 +49,12 @@ const w = { key: 0 }, E = ["onClick"], M = {
|
|
|
49
49
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]),
|
|
50
50
|
r("label", {
|
|
51
51
|
onClick: N(() => i(e.value), ["stop"])
|
|
52
|
-
}, c(e.label), 9,
|
|
52
|
+
}, c(e.label), 9, M)
|
|
53
53
|
]))), 128))
|
|
54
54
|
], 2));
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
F as default
|
|
59
59
|
};
|
|
60
60
|
//# sourceMappingURL=PlCheckboxGroup.vue.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, ref as n, onMounted as m, createBlock as f, openBlock as a, unref as u, createSlots as v, withCtx as p, createElementVNode as t, normalizeClass as h, createElementBlock as y, createCommentVNode as k, renderSlot as r, withModifiers as C, withKeys as $ } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import w from "../PlTooltip/PlTooltip.vue.js";
|
|
4
|
+
const B = { class: "pl-chip__text" }, E = /* @__PURE__ */ d({
|
|
5
5
|
__name: "PlChip",
|
|
6
6
|
props: {
|
|
7
7
|
closeable: { type: Boolean },
|
|
@@ -10,10 +10,10 @@ const w = { class: "pl-chip__text" }, E = /* @__PURE__ */ m({
|
|
|
10
10
|
emits: ["close"],
|
|
11
11
|
setup(s) {
|
|
12
12
|
const o = n(), i = n(!1);
|
|
13
|
-
return
|
|
13
|
+
return m(() => {
|
|
14
14
|
var e;
|
|
15
15
|
o.value && (i.value = ((e = o.value) == null ? void 0 : e.clientWidth) >= 256);
|
|
16
|
-
}), (e, l) => (a(), f(u(
|
|
16
|
+
}), (e, l) => (a(), f(u(w), {
|
|
17
17
|
position: "top",
|
|
18
18
|
class: "pl-chip-tooltip",
|
|
19
19
|
delay: 500
|
|
@@ -24,15 +24,15 @@ const w = { class: "pl-chip__text" }, E = /* @__PURE__ */ m({
|
|
|
24
24
|
ref: o,
|
|
25
25
|
class: h(["pl-chip", { small: s.small }])
|
|
26
26
|
}, [
|
|
27
|
-
t("div",
|
|
27
|
+
t("div", B, [
|
|
28
28
|
r(e.$slots, "default")
|
|
29
29
|
]),
|
|
30
30
|
s.closeable ? (a(), y("div", {
|
|
31
31
|
key: 0,
|
|
32
32
|
tabindex: "0",
|
|
33
33
|
class: "pl-chip__close",
|
|
34
|
-
onKeydown: l[0] || (l[0] =
|
|
35
|
-
onClick: l[1] || (l[1] =
|
|
34
|
+
onKeydown: l[0] || (l[0] = $((c) => e.$emit("close"), ["enter"])),
|
|
35
|
+
onClick: l[1] || (l[1] = C((c) => e.$emit("close"), ["stop"]))
|
|
36
36
|
}, [...l[2] || (l[2] = [
|
|
37
37
|
t("div", { class: "pl-chip__close--icon" }, null, -1)
|
|
38
38
|
])], 32)) : k("", !0)
|