@v1nt1248/3nclient-lib 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{ui3n-tooltip-DBivQBoy.js → ui3n-tooltip-BvWcGgmA.js} +5 -5
- package/dist/src/components/ui3n-text/types.d.ts +8 -0
- package/dist/src/components/ui3n-text/ui3n-text.d.ts +10 -0
- package/dist/ui3n-components.js +53 -42
- package/dist/ui3n-plugins.js +3 -3
- package/package.json +32 -32
- package/src/components/ui3n-text/types.ts +4 -0
- package/src/components/ui3n-text/ui3n-text.vue +12 -1
|
@@ -31,7 +31,7 @@ var N = {
|
|
|
31
31
|
beforeUnmount(e) {
|
|
32
32
|
A.get(e)?.controller.abort(), A.delete(e);
|
|
33
33
|
}
|
|
34
|
-
}, P = ["id", "title"], F =
|
|
34
|
+
}, P = ["id", "title"], F = /*@__PURE__*/ u({
|
|
35
35
|
__name: "ui3n-icon",
|
|
36
36
|
props: {
|
|
37
37
|
id: {},
|
|
@@ -68,11 +68,11 @@ var N = {
|
|
|
68
68
|
let n = e.__vccOpts || e;
|
|
69
69
|
for (let [e, r] of t) n[e] = r;
|
|
70
70
|
return n;
|
|
71
|
-
}, R =
|
|
71
|
+
}, R = /*#__PURE__*/ L(F, [["__cssModules", { $style: I }]]), z = {
|
|
72
72
|
small: 12,
|
|
73
73
|
regular: 16,
|
|
74
74
|
large: 24
|
|
75
|
-
}, B = ["id", "disabled"], V =
|
|
75
|
+
}, B = ["id", "disabled"], V = /*#__PURE__*/ L(/* @__PURE__ */ u({
|
|
76
76
|
__name: "ui3n-button",
|
|
77
77
|
props: {
|
|
78
78
|
id: {},
|
|
@@ -163,7 +163,7 @@ var N = {
|
|
|
163
163
|
icon: "_icon_t26g4_313",
|
|
164
164
|
custom: "_custom_t26g4_333",
|
|
165
165
|
buttonIcon: "_buttonIcon_t26g4_365"
|
|
166
|
-
} }]]), H = ["id"], U =
|
|
166
|
+
} }]]), H = ["id"], U = /*#__PURE__*/ L(/* @__PURE__ */ u({
|
|
167
167
|
__name: "ui3n-notification",
|
|
168
168
|
props: {
|
|
169
169
|
id: {},
|
|
@@ -269,7 +269,7 @@ var N = {
|
|
|
269
269
|
leftPosition: "_leftPosition_152ae_103",
|
|
270
270
|
centerPosition: "_centerPosition_152ae_108",
|
|
271
271
|
rightPosition: "_rightPosition_152ae_113"
|
|
272
|
-
} }]]), W = 8, G =
|
|
272
|
+
} }]]), W = 8, G = /*#__PURE__*/ L(/* @__PURE__ */ u({
|
|
273
273
|
__name: "ui3n-tooltip",
|
|
274
274
|
props: {
|
|
275
275
|
id: {},
|
|
@@ -47,6 +47,14 @@ export interface Ui3nTextEmits {
|
|
|
47
47
|
* Called when text is initialized
|
|
48
48
|
*/
|
|
49
49
|
(event: 'init', value: HTMLTextAreaElement): void;
|
|
50
|
+
/**
|
|
51
|
+
* Called when the textarea height changes due to text input or deletion
|
|
52
|
+
*/
|
|
53
|
+
(event: 'resize', value: {
|
|
54
|
+
height: number;
|
|
55
|
+
rows: number;
|
|
56
|
+
element: HTMLTextAreaElement;
|
|
57
|
+
}): void;
|
|
50
58
|
/**
|
|
51
59
|
* Called when text value changes
|
|
52
60
|
*/
|
|
@@ -14,6 +14,11 @@ declare const _default: import('vue').DefineComponent<Ui3nTextProps, {
|
|
|
14
14
|
change: (value: string) => any;
|
|
15
15
|
focus: (value: Event) => any;
|
|
16
16
|
keydown: (value: KeyboardEvent) => any;
|
|
17
|
+
resize: (value: {
|
|
18
|
+
height: number;
|
|
19
|
+
rows: number;
|
|
20
|
+
element: HTMLTextAreaElement;
|
|
21
|
+
}) => any;
|
|
17
22
|
init: (value: HTMLTextAreaElement) => any;
|
|
18
23
|
"update:modelValue": (value: string) => any;
|
|
19
24
|
escape: (value: Event) => any;
|
|
@@ -31,6 +36,11 @@ declare const _default: import('vue').DefineComponent<Ui3nTextProps, {
|
|
|
31
36
|
onChange?: ((value: string) => any) | undefined;
|
|
32
37
|
onFocus?: ((value: Event) => any) | undefined;
|
|
33
38
|
onKeydown?: ((value: KeyboardEvent) => any) | undefined;
|
|
39
|
+
onResize?: ((value: {
|
|
40
|
+
height: number;
|
|
41
|
+
rows: number;
|
|
42
|
+
element: HTMLTextAreaElement;
|
|
43
|
+
}) => any) | undefined;
|
|
34
44
|
onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
|
|
35
45
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
36
46
|
onEscape?: ((value: Event) => any) | undefined;
|
package/dist/ui3n-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as e, H as t, O as n, U as r, V as i, W as a, _t as o, at as s, b as c, c as l, ct as u, dt as d, et as f, ft as p, gt as m, ht as h, it as g, lt as _, mt as v, nt as y, ot as b, pt as x, rt as S, st as C, t as w, tt as T, ut as E, vt as D, x as O } from "./chunks/plugins-keys-DY2USp8H.js";
|
|
2
|
-
import { a as k, i as A, n as ee, o as j, r as M, t as te } from "./chunks/ui3n-tooltip-
|
|
2
|
+
import { a as k, i as A, n as ee, o as j, r as M, t as te } from "./chunks/ui3n-tooltip-BvWcGgmA.js";
|
|
3
3
|
import { t as ne } from "./chunks/emoticons-DMgiBINj.js";
|
|
4
4
|
import re from "sanitize-html";
|
|
5
5
|
import { autoUpdate as ie, computePosition as ae, offset as oe } from "@floating-ui/dom";
|
|
@@ -1069,7 +1069,7 @@ var er = {
|
|
|
1069
1069
|
}, a = Xn(t);
|
|
1070
1070
|
n.removeEventListener("pointerdown", a.pointerdownEvent, i), n.removeEventListener("pointerup", a.pointerupEvent, i), n.removeEventListener("pointermove", a.pointermoveEvent, i);
|
|
1071
1071
|
}
|
|
1072
|
-
}, tr = ["id"], nr = 24, rr = "var(--color-text-control-primary-default)", ir =
|
|
1072
|
+
}, tr = ["id"], nr = 24, rr = "var(--color-text-control-primary-default)", ir = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1073
1073
|
__name: "ui3n-chip",
|
|
1074
1074
|
props: {
|
|
1075
1075
|
id: {},
|
|
@@ -1141,7 +1141,7 @@ var er = {
|
|
|
1141
1141
|
ui3nChipIcon: "_ui3nChipIcon_1l6yq_40",
|
|
1142
1142
|
round: "_round_1l6yq_48",
|
|
1143
1143
|
plain: "_plain_1l6yq_57"
|
|
1144
|
-
} }]]), ar = ["name"], or = ["width", "height"], sr =
|
|
1144
|
+
} }]]), ar = ["name"], or = ["width", "height"], sr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1145
1145
|
__name: "ui3n-drop-files",
|
|
1146
1146
|
props: {
|
|
1147
1147
|
name: { default: void 0 },
|
|
@@ -1250,7 +1250,7 @@ var er = {
|
|
|
1250
1250
|
ui3nDropFilesDropzoneTitle: "_ui3nDropFilesDropzoneTitle_zyij9_33",
|
|
1251
1251
|
ui3nDropFilesDropzoneIcon: "_ui3nDropFilesDropzoneIcon_zyij9_41",
|
|
1252
1252
|
ui3nDropFilesDropzoneAdditional: "_ui3nDropFilesDropzoneAdditional_zyij9_53"
|
|
1253
|
-
} }]]), cr =
|
|
1253
|
+
} }]]), cr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1254
1254
|
__name: "ui3n-emoji",
|
|
1255
1255
|
props: {
|
|
1256
1256
|
emoji: {},
|
|
@@ -1295,7 +1295,7 @@ var er = {
|
|
|
1295
1295
|
"maxlength",
|
|
1296
1296
|
"minlength",
|
|
1297
1297
|
"value"
|
|
1298
|
-
], dr =
|
|
1298
|
+
], dr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1299
1299
|
__name: "ui3n-input",
|
|
1300
1300
|
props: {
|
|
1301
1301
|
id: {},
|
|
@@ -1487,7 +1487,7 @@ var er = {
|
|
|
1487
1487
|
onTouchstart: n[1] ||= $(() => {}, ["prevent"]),
|
|
1488
1488
|
onClick: O
|
|
1489
1489
|
}, null, 8, ["class"])) : I("", !0),
|
|
1490
|
-
f.value ? J(t.$slots, "append-icon", {
|
|
1490
|
+
f.value ? J(t.$slots, "append-icon", {}, void 0, void 0, 2) : I("", !0)
|
|
1491
1491
|
], 2)) : I("", !0)
|
|
1492
1492
|
], 2),
|
|
1493
1493
|
g.value ? (G(), L("div", {
|
|
@@ -1658,7 +1658,7 @@ var er = {
|
|
|
1658
1658
|
"multiple",
|
|
1659
1659
|
"accept",
|
|
1660
1660
|
"disabled"
|
|
1661
|
-
], Fr =
|
|
1661
|
+
], Fr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1662
1662
|
__name: "ui3n-input-file",
|
|
1663
1663
|
props: {
|
|
1664
1664
|
id: {},
|
|
@@ -1745,7 +1745,7 @@ var er = {
|
|
|
1745
1745
|
"rows",
|
|
1746
1746
|
"max-rows",
|
|
1747
1747
|
"disabled"
|
|
1748
|
-
], Rr =
|
|
1748
|
+
], Rr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1749
1749
|
__name: "ui3n-text",
|
|
1750
1750
|
props: {
|
|
1751
1751
|
id: {},
|
|
@@ -1767,6 +1767,7 @@ var er = {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: [
|
|
1769
1769
|
"init",
|
|
1770
|
+
"resize",
|
|
1770
1771
|
"input",
|
|
1771
1772
|
"change",
|
|
1772
1773
|
"keydown",
|
|
@@ -1821,8 +1822,18 @@ var er = {
|
|
|
1821
1822
|
function v() {
|
|
1822
1823
|
s.value = "", u.value = "", c.value = !1, o.value && (o.value.value = ""), a("update:modelValue", ""), a("input", ""), a("change", ""), a("update:valid", !0);
|
|
1823
1824
|
}
|
|
1825
|
+
function y(e) {
|
|
1826
|
+
let t = e.target, { rows: n } = e.detail;
|
|
1827
|
+
a("resize", {
|
|
1828
|
+
height: t.offsetHeight,
|
|
1829
|
+
rows: n,
|
|
1830
|
+
element: t
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1824
1833
|
return n({ clear: v }), me(() => {
|
|
1825
|
-
o.value && (t(o.value), a("init", o.value)), i.validateAtStartup && d(s.value);
|
|
1834
|
+
o.value && (t(o.value), o.value.addEventListener("rows-change", y), a("init", o.value)), i.validateAtStartup && d(s.value);
|
|
1835
|
+
}), pe(() => {
|
|
1836
|
+
o.value?.removeEventListener("rows-change", y);
|
|
1826
1837
|
}), Z(() => i.name, (e) => {
|
|
1827
1838
|
e || v();
|
|
1828
1839
|
}), Z(() => i.modelValue, (e, t) => {
|
|
@@ -1883,7 +1894,7 @@ var er = {
|
|
|
1883
1894
|
"disabled",
|
|
1884
1895
|
"checked",
|
|
1885
1896
|
"value"
|
|
1886
|
-
], Vr = ["tabindex"], Hr = ["width", "height"], Ur = ["width", "height"], Wr =
|
|
1897
|
+
], Vr = ["tabindex"], Hr = ["width", "height"], Ur = ["width", "height"], Wr = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
1887
1898
|
__name: "ui3n-checkbox",
|
|
1888
1899
|
props: {
|
|
1889
1900
|
id: {},
|
|
@@ -2241,7 +2252,7 @@ function $r(e, t, n) {
|
|
|
2241
2252
|
}
|
|
2242
2253
|
//#endregion
|
|
2243
2254
|
//#region src/components/ui3n-scrollbar/ui3n-scrollbar.vue?vue&type=script&setup=true&lang.ts
|
|
2244
|
-
var ei = 2, ti = 2, ni =
|
|
2255
|
+
var ei = 2, ti = 2, ni = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
2245
2256
|
__name: "ui3n-scrollbar",
|
|
2246
2257
|
props: {
|
|
2247
2258
|
axes: { default: "both" },
|
|
@@ -2461,7 +2472,7 @@ var ei = 2, ti = 2, ni = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2461
2472
|
thumbVertical: "_thumbVertical_1vb08_79",
|
|
2462
2473
|
active: "_active_1vb08_93",
|
|
2463
2474
|
thumbHorizontal: "_thumbHorizontal_1vb08_97"
|
|
2464
|
-
} }]]), ri = ["name", "value"], ii = ["name", "value"], ai =
|
|
2475
|
+
} }]]), ri = ["name", "value"], ii = ["name", "value"], ai = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
2465
2476
|
__name: "ui3n-table",
|
|
2466
2477
|
props: {
|
|
2467
2478
|
config: {},
|
|
@@ -2586,7 +2597,7 @@ var ei = 2, ti = 2, ni = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2586
2597
|
value: X(p).sortOrder?.direction,
|
|
2587
2598
|
size: "16"
|
|
2588
2599
|
}, null, 8, ["value"])) : I("", !0)], 16)], 6))), 128))], 2),
|
|
2589
|
-
R("div", { class: H(t.$style.body) }, [e.config?.showNoDataMessage && !X(Ar.default)(e.body.content) ? J(t.$slots, "no-data", {
|
|
2600
|
+
R("div", { class: H(t.$style.body) }, [e.config?.showNoDataMessage && !X(Ar.default)(e.body.content) ? J(t.$slots, "no-data", {}, () => [R("div", { class: H(t.$style.noData) }, "No data", 2)], void 0, 0) : (G(), L(N, { key: 1 }, [t.$slots.row ? (G(!0), L(N, { key: 0 }, q(e.body.content, (n, r) => (G(), L("div", {
|
|
2590
2601
|
key: X(T)(n, r),
|
|
2591
2602
|
class: H([
|
|
2592
2603
|
t.$style.row,
|
|
@@ -2708,7 +2719,7 @@ var ei = 2, ti = 2, ni = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2708
2719
|
value: X(p).sortOrder?.direction,
|
|
2709
2720
|
size: "16"
|
|
2710
2721
|
}, null, 8, ["value"])) : I("", !0)], 16)], 6))), 128))], 2),
|
|
2711
|
-
R("div", { class: H(t.$style.body) }, [e.config?.showNoDataMessage && !X(Ar.default)(e.body.content) ? J(t.$slots, "no-data", {
|
|
2722
|
+
R("div", { class: H(t.$style.body) }, [e.config?.showNoDataMessage && !X(Ar.default)(e.body.content) ? J(t.$slots, "no-data", {}, () => [R("div", { class: H(t.$style.noData) }, "No data", 2)], void 0, 0) : (G(), L(N, { key: 1 }, [t.$slots.row ? (G(!0), L(N, { key: 0 }, q(e.body.content, (n, r) => (G(), L("div", {
|
|
2712
2723
|
key: X(T)(n, r),
|
|
2713
2724
|
class: H([
|
|
2714
2725
|
t.$style.row,
|
|
@@ -2792,7 +2803,7 @@ var ei = 2, ti = 2, ni = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2792
2803
|
headerItemSticky: "_headerItemSticky_18jcf_236",
|
|
2793
2804
|
headerItemFirst: "_headerItemFirst_18jcf_240",
|
|
2794
2805
|
bodyItemSticky: "_bodyItemSticky_18jcf_246"
|
|
2795
|
-
} }]]), oi = ["id", "onClick"], si =
|
|
2806
|
+
} }]]), oi = ["id", "onClick"], si = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
2796
2807
|
__name: "ui3n-dialog-provider",
|
|
2797
2808
|
setup(e) {
|
|
2798
2809
|
let t = ue(w);
|
|
@@ -2822,7 +2833,7 @@ function ci({ width: e, style: t, defaultValue: n = 380 }) {
|
|
|
2822
2833
|
}
|
|
2823
2834
|
//#endregion
|
|
2824
2835
|
//#region src/components/ui3n-dialog/ui3n-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
2825
|
-
var li = ["id"], ui =
|
|
2836
|
+
var li = ["id"], ui = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
2826
2837
|
__name: "ui3n-dialog",
|
|
2827
2838
|
props: {
|
|
2828
2839
|
id: {},
|
|
@@ -3010,7 +3021,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3010
3021
|
actions: "_actions_2e2c0_74",
|
|
3011
3022
|
actionsDefault: "_actionsDefault_2e2c0_81",
|
|
3012
3023
|
loading: "_loading_2e2c0_89"
|
|
3013
|
-
} }]]), di = ["id"], fi =
|
|
3024
|
+
} }]]), di = ["id"], fi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3014
3025
|
__name: "ui3n-menu",
|
|
3015
3026
|
props: {
|
|
3016
3027
|
id: {},
|
|
@@ -3164,7 +3175,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3164
3175
|
ui3nMenuTrigger: "_ui3nMenuTrigger_1ho7o_10",
|
|
3165
3176
|
ui3nMenuTriggerDisabled: "_ui3nMenuTriggerDisabled_1ho7o_14",
|
|
3166
3177
|
ui3nMenuContent: "_ui3nMenuContent_1ho7o_19"
|
|
3167
|
-
} }]]), pi = ["id"], mi = ["onClick"], hi =
|
|
3178
|
+
} }]]), pi = ["id"], mi = ["onClick"], hi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3168
3179
|
__name: "ui3n-list",
|
|
3169
3180
|
props: {
|
|
3170
3181
|
id: {},
|
|
@@ -3214,7 +3225,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3214
3225
|
ui3nListItem: "_ui3nListItem_1s0e7_26",
|
|
3215
3226
|
ui3nListItemContent: "_ui3nListItemContent_1s0e7_43",
|
|
3216
3227
|
ui3nListItemContentDisabled: "_ui3nListItemContentDisabled_1s0e7_50"
|
|
3217
|
-
} }]]), gi = 32, _i =
|
|
3228
|
+
} }]]), gi = 32, _i = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3218
3229
|
__name: "ui3n-scrollbar-vertical",
|
|
3219
3230
|
props: {
|
|
3220
3231
|
thumbMinHeight: { default: gi },
|
|
@@ -3325,7 +3336,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3325
3336
|
trackVisible: "_trackVisible_1taw9_45",
|
|
3326
3337
|
thumb: "_thumb_1taw9_51",
|
|
3327
3338
|
active: "_active_1taw9_64"
|
|
3328
|
-
} }]]), vi =
|
|
3339
|
+
} }]]), vi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3329
3340
|
__name: "ui3n-virtual-scroll",
|
|
3330
3341
|
props: {
|
|
3331
3342
|
items: {},
|
|
@@ -3548,7 +3559,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3548
3559
|
viewport: "_viewport_1mjyl_5",
|
|
3549
3560
|
content: "_content_1mjyl_14",
|
|
3550
3561
|
item: "_item_1mjyl_18"
|
|
3551
|
-
} }]]), yi = ["id"], bi =
|
|
3562
|
+
} }]]), yi = ["id"], bi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3552
3563
|
__name: "ui3n-tabs",
|
|
3553
3564
|
props: {
|
|
3554
3565
|
id: {},
|
|
@@ -3604,7 +3615,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3604
3615
|
item: "_item_w6rub_15",
|
|
3605
3616
|
active: "_active_w6rub_40",
|
|
3606
3617
|
vertical: "_vertical_w6rub_48"
|
|
3607
|
-
} }]]), xi = ["id"], Si =
|
|
3618
|
+
} }]]), xi = ["id"], Si = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3608
3619
|
__name: "ui3n-badge-simple",
|
|
3609
3620
|
props: {
|
|
3610
3621
|
id: {},
|
|
@@ -3648,7 +3659,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3648
3659
|
ui3nBadgeSimple: "_ui3nBadgeSimple_rx5l6_1",
|
|
3649
3660
|
ui3nBadgeDot: "_ui3nBadgeDot_rx5l6_12",
|
|
3650
3661
|
ui3nBadgeText: "_ui3nBadgeText_rx5l6_30"
|
|
3651
|
-
} }]]), Ci =
|
|
3662
|
+
} }]]), Ci = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3652
3663
|
__name: "ui3n-badge",
|
|
3653
3664
|
props: {
|
|
3654
3665
|
id: {},
|
|
@@ -3711,7 +3722,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3711
3722
|
ui3nBadge: "_ui3nBadge_jkakg_1",
|
|
3712
3723
|
ui3nBadgeWrapper: "_ui3nBadgeWrapper_jkakg_6",
|
|
3713
3724
|
ui3nBadgeContent: "_ui3nBadgeContent_jkakg_12"
|
|
3714
|
-
} }]]), wi = { key: 2 }, Ti =
|
|
3725
|
+
} }]]), wi = { key: 2 }, Ti = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3715
3726
|
__name: "ui3n-breadcrumb",
|
|
3716
3727
|
props: {
|
|
3717
3728
|
separator: { default: void 0 },
|
|
@@ -3736,7 +3747,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3736
3747
|
return (t, n) => (G(), L("div", de({
|
|
3737
3748
|
"data-ui3n": "breadcrumb",
|
|
3738
3749
|
class: l.value
|
|
3739
|
-
}, ye(e.isActive && !(e.disabled || c.value) ? { click: u } : {}, !0)), [R("span", { class: H(t.$style.content) }, [J(t.$slots, "default")], 2), R("div", { class: H(t.$style.ui3nBreadcrumbSeparator) }, [typeof X(i).separator == "function" ? J(t.$slots, "separator", {
|
|
3750
|
+
}, ye(e.isActive && !(e.disabled || c.value) ? { click: u } : {}, !0)), [R("span", { class: H(t.$style.content) }, [J(t.$slots, "default")], 2), R("div", { class: H(t.$style.ui3nBreadcrumbSeparator) }, [typeof X(i).separator == "function" ? J(t.$slots, "separator", {}, void 0, void 0, 0) : X(o)?.customSeparatorSlot ? (G(), F(_e(X(o).customSeparatorSlot), { key: 1 })) : (G(), L("span", wi, Y(s.value), 1))], 2)], 16));
|
|
3740
3751
|
}
|
|
3741
3752
|
}), [["__cssModules", { $style: {
|
|
3742
3753
|
ui3nBreadcrumb: "_ui3nBreadcrumb_1p4ld_1",
|
|
@@ -3744,7 +3755,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3744
3755
|
content: "_content_1p4ld_14",
|
|
3745
3756
|
ui3nBreadcrumbActive: "_ui3nBreadcrumbActive_1p4ld_28",
|
|
3746
3757
|
ui3nBreadcrumbDisabled: "_ui3nBreadcrumbDisabled_1p4ld_33"
|
|
3747
|
-
} }]]), Ei =
|
|
3758
|
+
} }]]), Ei = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3748
3759
|
__name: "ui3n-breadcrumbs",
|
|
3749
3760
|
props: {
|
|
3750
3761
|
separator: { default: "/" },
|
|
@@ -3769,7 +3780,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3769
3780
|
"checked",
|
|
3770
3781
|
"disabled",
|
|
3771
3782
|
"value"
|
|
3772
|
-
], ki =
|
|
3783
|
+
], ki = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3773
3784
|
__name: "ui3n-switch",
|
|
3774
3785
|
props: {
|
|
3775
3786
|
id: {},
|
|
@@ -3833,7 +3844,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3833
3844
|
right: "_right_gc1zr_57",
|
|
3834
3845
|
label: "_label_gc1zr_61",
|
|
3835
3846
|
disabled: "_disabled_gc1zr_68"
|
|
3836
|
-
} }]]), Ai = ["id"], ji =
|
|
3847
|
+
} }]]), Ai = ["id"], ji = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3837
3848
|
__name: "ui3n-step-line-bar",
|
|
3838
3849
|
props: {
|
|
3839
3850
|
id: {},
|
|
@@ -3858,7 +3869,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3858
3869
|
body: "_body_19xgk_19",
|
|
3859
3870
|
step: "_step_19xgk_27",
|
|
3860
3871
|
active: "_active_19xgk_35"
|
|
3861
|
-
} }]]), Mi = 12, Ni = 5, Pi =
|
|
3872
|
+
} }]]), Mi = 12, Ni = 5, Pi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3862
3873
|
__name: "ui3n-progress-linear",
|
|
3863
3874
|
props: {
|
|
3864
3875
|
value: { default: 0 },
|
|
@@ -3911,7 +3922,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3911
3922
|
above: "_above_s0kwl_39",
|
|
3912
3923
|
indeterminate: "_indeterminate_s0kwl_49",
|
|
3913
3924
|
"linear-fly": "_linear-fly_s0kwl_1"
|
|
3914
|
-
} }]]), Fi = ["height", "width"], Ii = ["r"], Li = ["r", "stroke-dasharray"], Ri =
|
|
3925
|
+
} }]]), Fi = ["height", "width"], Ii = ["r"], Li = ["r", "stroke-dasharray"], Ri = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3915
3926
|
__name: "ui3n-progress-circular",
|
|
3916
3927
|
props: {
|
|
3917
3928
|
value: { default: 0 },
|
|
@@ -3982,7 +3993,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3982
3993
|
"checked",
|
|
3983
3994
|
"value",
|
|
3984
3995
|
"disabled"
|
|
3985
|
-
], Bi = ["tabindex"], Vi = ["width", "height"], Hi = ["width", "height"], Ui =
|
|
3996
|
+
], Bi = ["tabindex"], Vi = ["width", "height"], Hi = ["width", "height"], Ui = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
3986
3997
|
__name: "ui3n-radio",
|
|
3987
3998
|
props: {
|
|
3988
3999
|
id: {},
|
|
@@ -4065,7 +4076,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4065
4076
|
tabindex: e.disabled ? -1 : 0,
|
|
4066
4077
|
onKeydown: [Q(p, ["enter"]), Q(p, ["space"])],
|
|
4067
4078
|
onClick: p
|
|
4068
|
-
}, [d.value ? J(t.$slots, "checkedIcon", {
|
|
4079
|
+
}, [d.value ? J(t.$slots, "checkedIcon", {}, () => [(G(), L("svg", {
|
|
4069
4080
|
width: Number(e.size) - 4,
|
|
4070
4081
|
height: Number(e.size) - 4,
|
|
4071
4082
|
viewBox: "0 0 24 24",
|
|
@@ -4073,7 +4084,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4073
4084
|
}, [...n[0] ||= [R("path", {
|
|
4074
4085
|
fill: "currentColor",
|
|
4075
4086
|
d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
|
|
4076
|
-
}, null, -1)]], 10, Vi))]) : J(t.$slots, "uncheckedIcon", {
|
|
4087
|
+
}, null, -1)]], 10, Vi))], void 0, 0) : J(t.$slots, "uncheckedIcon", {}, () => [(G(), L("svg", {
|
|
4077
4088
|
width: Number(e.size) - 4,
|
|
4078
4089
|
height: Number(e.size) - 4,
|
|
4079
4090
|
viewBox: "0 0 24 24",
|
|
@@ -4081,7 +4092,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4081
4092
|
}, [...n[1] ||= [R("path", {
|
|
4082
4093
|
fill: "currentColor",
|
|
4083
4094
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
|
|
4084
|
-
}, null, -1)]], 10, Hi))])], 42, Bi)), [[X(r)]]),
|
|
4095
|
+
}, null, -1)]], 10, Hi))], void 0, 1)], 42, Bi)), [[X(r)]]),
|
|
4085
4096
|
R("div", { class: H(t.$style.label) }, [J(t.$slots, "default")], 2)
|
|
4086
4097
|
], 6));
|
|
4087
4098
|
}
|
|
@@ -4094,7 +4105,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4094
4105
|
icon: "_icon_1578r_47",
|
|
4095
4106
|
bodyDisabled: "_bodyDisabled_1578r_56",
|
|
4096
4107
|
iconDisabled: "_iconDisabled_1578r_57"
|
|
4097
|
-
} }]]), Wi =
|
|
4108
|
+
} }]]), Wi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
4098
4109
|
__name: "ui3n-radio-group",
|
|
4099
4110
|
props: {
|
|
4100
4111
|
id: {},
|
|
@@ -4140,7 +4151,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4140
4151
|
"value",
|
|
4141
4152
|
"placeholder",
|
|
4142
4153
|
"disabled"
|
|
4143
|
-
], Ji = ["title"], Yi = 60, Xi =
|
|
4154
|
+
], Ji = ["title"], Yi = 60, Xi = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
4144
4155
|
__name: "ui3n-editable",
|
|
4145
4156
|
props: {
|
|
4146
4157
|
id: {},
|
|
@@ -4298,7 +4309,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4298
4309
|
"id",
|
|
4299
4310
|
"aria-disabled",
|
|
4300
4311
|
"onClick"
|
|
4301
|
-
], na =
|
|
4312
|
+
], na = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
4302
4313
|
__name: "ui3n-autocomplete",
|
|
4303
4314
|
props: {
|
|
4304
4315
|
name: {},
|
|
@@ -4601,7 +4612,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4601
4612
|
noData: "_noData_nfk6j_101",
|
|
4602
4613
|
chipsContainer: "_chipsContainer_nfk6j_114",
|
|
4603
4614
|
chipWrapper: "_chipWrapper_nfk6j_124"
|
|
4604
|
-
} }]]), ra = ["id"], ia = ["name", "value"], aa = ["name", "value"], oa = ["name", "value"], sa =
|
|
4615
|
+
} }]]), ra = ["id"], ia = ["name", "value"], aa = ["name", "value"], oa = ["name", "value"], sa = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
4605
4616
|
__name: "ui3n-slider",
|
|
4606
4617
|
props: {
|
|
4607
4618
|
id: {},
|
|
@@ -4793,7 +4804,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4793
4804
|
selected: "_selected_1wfp2_62",
|
|
4794
4805
|
pointer1: "_pointer1_1wfp2_76",
|
|
4795
4806
|
pointer2: "_pointer2_1wfp2_80"
|
|
4796
|
-
} }]]), ca = ["id"], la = ["name", "value"], ua = ["tabindex"], da = ["id", "onClick"], fa =
|
|
4807
|
+
} }]]), ca = ["id"], la = ["name", "value"], ua = ["tabindex"], da = ["id", "onClick"], fa = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
4797
4808
|
__name: "ui3n-selector",
|
|
4798
4809
|
props: {
|
|
4799
4810
|
id: {},
|
|
@@ -5035,7 +5046,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5035
5046
|
item: "_item_17xt0_109",
|
|
5036
5047
|
itemSelected: "_itemSelected_17xt0_123",
|
|
5037
5048
|
itemDisabled: "_itemDisabled_17xt0_127"
|
|
5038
|
-
} }]]), pa =
|
|
5049
|
+
} }]]), pa = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
5039
5050
|
__name: "ui3n-mobile-menu",
|
|
5040
5051
|
props: {
|
|
5041
5052
|
modelValue: { type: Boolean },
|
|
@@ -5098,7 +5109,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5098
5109
|
menuButton: "_menuButton_1vxq4_65",
|
|
5099
5110
|
closeBtn: "_closeBtn_1vxq4_70",
|
|
5100
5111
|
overlay: "_overlay_1vxq4_78"
|
|
5101
|
-
} }]]), ma =
|
|
5112
|
+
} }]]), ma = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
5102
5113
|
__name: "ui3n-mobile-menu-item",
|
|
5103
5114
|
props: {
|
|
5104
5115
|
item: {},
|
|
@@ -5126,7 +5137,7 @@ var li = ["id"], ui = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5126
5137
|
menuItemName: "_menuItemName_qaa58_15",
|
|
5127
5138
|
menuItemSelected: "_menuItemSelected_qaa58_21",
|
|
5128
5139
|
bounceOnce: "_bounceOnce_qaa58_1"
|
|
5129
|
-
} }]]), ha = 32, ga =
|
|
5140
|
+
} }]]), ha = 32, ga = /*#__PURE__*/ k(/* @__PURE__ */ V({
|
|
5130
5141
|
__name: "ui3n-scrollbar-horizontal",
|
|
5131
5142
|
props: {
|
|
5132
5143
|
thumbMinWidth: { default: ha },
|
package/dist/ui3n-plugins.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { U as e, a as t, i as n, n as r, r as i, t as a } from "./chunks/plugins-keys-DY2USp8H.js";
|
|
2
|
-
import { a as o, n as s, t as c } from "./chunks/ui3n-tooltip-
|
|
2
|
+
import { a as o, n as s, t as c } from "./chunks/ui3n-tooltip-BvWcGgmA.js";
|
|
3
3
|
import { Fragment as l, createApp as u, createBlock as d, createElementBlock as f, defineComponent as p, markRaw as m, mergeProps as h, normalizeClass as g, openBlock as _, ref as v, renderList as y } from "vue";
|
|
4
4
|
import "pinia";
|
|
5
5
|
import b from "mitt";
|
|
6
|
-
var x =
|
|
6
|
+
var x = /*#__PURE__*/ o(/* @__PURE__ */ p({
|
|
7
7
|
__name: "ui3n-notification-container",
|
|
8
8
|
setup(e, { expose: t }) {
|
|
9
9
|
let n = v([]);
|
|
@@ -156,7 +156,7 @@ function I(e) {
|
|
|
156
156
|
let { app: t = {} } = e, { config: n = {} } = t, { globalProperties: r = {} } = n, { $theme: i } = r;
|
|
157
157
|
return { $theme: i };
|
|
158
158
|
}
|
|
159
|
-
var L =
|
|
159
|
+
var L = /*#__PURE__*/ o(/* @__PURE__ */ p({
|
|
160
160
|
__name: "ui3n-tooltip-container",
|
|
161
161
|
setup(e, { expose: t }) {
|
|
162
162
|
let n = v([]);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@v1nt1248/3nclient-lib",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"author": "v1nt1248",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.5",
|
|
6
6
|
"description": "Library for 3NWeb clients",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
@@ -47,68 +47,68 @@
|
|
|
47
47
|
"eslint:fix": "eslint --fix src"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@floating-ui/dom": "1.
|
|
50
|
+
"@floating-ui/dom": "1.8.0",
|
|
51
51
|
"@floating-ui/vue": "1.1.11",
|
|
52
|
-
"dayjs": "1.11.
|
|
52
|
+
"dayjs": "1.11.23",
|
|
53
53
|
"lodash": "4.18.1",
|
|
54
54
|
"mitt": "3.0.1",
|
|
55
|
-
"sanitize-html": "2.17.
|
|
55
|
+
"sanitize-html": "2.17.7",
|
|
56
56
|
"vuedraggable": "4.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"pinia": "3.0.4",
|
|
60
|
-
"vue": "3.5.
|
|
60
|
+
"vue": "3.5.43"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@eslint/eslintrc": "3.3.
|
|
63
|
+
"@eslint/eslintrc": "3.3.7",
|
|
64
64
|
"@eslint/js": "10.0.1",
|
|
65
|
-
"@types/lodash": "4.17.
|
|
66
|
-
"@types/node": "24.
|
|
67
|
-
"@types/sanitize-html": "2.16.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
69
|
-
"@typescript-eslint/parser": "8.
|
|
70
|
-
"@vitejs/plugin-vue": "6.0.
|
|
71
|
-
"@vue/compiler-core": "3.5.
|
|
72
|
-
"@vue/eslint-config-typescript": "14.
|
|
73
|
-
"@vue/runtime-core": "3.5.
|
|
74
|
-
"@vue/test-utils": "2.5.
|
|
75
|
-
"eslint": "10.
|
|
65
|
+
"@types/lodash": "4.17.26",
|
|
66
|
+
"@types/node": "24.19.2",
|
|
67
|
+
"@types/sanitize-html": "2.16.2",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "8.71.1",
|
|
69
|
+
"@typescript-eslint/parser": "8.71.1",
|
|
70
|
+
"@vitejs/plugin-vue": "6.0.10",
|
|
71
|
+
"@vue/compiler-core": "3.5.43",
|
|
72
|
+
"@vue/eslint-config-typescript": "14.9.0",
|
|
73
|
+
"@vue/runtime-core": "3.5.43",
|
|
74
|
+
"@vue/test-utils": "2.5.1",
|
|
75
|
+
"eslint": "10.12.0",
|
|
76
76
|
"eslint-config-prettier": "10.1.8",
|
|
77
77
|
"eslint-plugin-import": "2.32.0",
|
|
78
78
|
"eslint-plugin-node": "11.1.0",
|
|
79
79
|
"eslint-plugin-prettier": "5.5.6",
|
|
80
80
|
"eslint-plugin-promise": "7.3.0",
|
|
81
|
-
"eslint-plugin-vue": "10.
|
|
82
|
-
"globals": "17.
|
|
81
|
+
"eslint-plugin-vue": "10.11.1",
|
|
82
|
+
"globals": "17.13.0",
|
|
83
83
|
"jackspeak": "4.2.3",
|
|
84
|
-
"jsdom": "30.
|
|
84
|
+
"jsdom": "30.1.2",
|
|
85
85
|
"path": "0.12.7",
|
|
86
86
|
"pinia": "3.0.4",
|
|
87
87
|
"postcss-html": "1.8.1",
|
|
88
|
-
"prettier": "3.
|
|
89
|
-
"sass": "1.
|
|
90
|
-
"shiki": "4.
|
|
91
|
-
"stylelint": "17.
|
|
88
|
+
"prettier": "3.9.10",
|
|
89
|
+
"sass": "1.105.1",
|
|
90
|
+
"shiki": "4.5.0",
|
|
91
|
+
"stylelint": "17.16.0",
|
|
92
92
|
"stylelint-config-recommended-scss": "17.0.1",
|
|
93
93
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
94
94
|
"stylelint-config-standard": "39.0.1",
|
|
95
|
-
"stylelint-scss": "7.
|
|
95
|
+
"stylelint-scss": "7.3.0",
|
|
96
96
|
"tslib": "2.8.1",
|
|
97
97
|
"typescript": "6.0.3",
|
|
98
|
-
"typescript-eslint": "8.
|
|
99
|
-
"vite": "8.0.
|
|
98
|
+
"typescript-eslint": "8.71.1",
|
|
99
|
+
"vite": "8.0.16",
|
|
100
100
|
"vite-plugin-css-injected-by-js": "4.0.1",
|
|
101
101
|
"vite-plugin-dts": "4.5.4",
|
|
102
102
|
"vite-plugin-node-polyfills": "^0.28.0",
|
|
103
103
|
"vite-plugin-static-copy": "^4.1.1",
|
|
104
|
-
"vite-plugin-vue-devtools": "8.1
|
|
104
|
+
"vite-plugin-vue-devtools": "8.2.1",
|
|
105
105
|
"vitepress": "1.6.4",
|
|
106
106
|
"vitest": "4.1.11",
|
|
107
|
-
"vue": "3.5.
|
|
108
|
-
"vue-component-meta": "3.3.
|
|
107
|
+
"vue": "3.5.43",
|
|
108
|
+
"vue-component-meta": "3.3.12",
|
|
109
109
|
"vue-docgen-api": "4.79.2",
|
|
110
|
-
"vue-eslint-parser": "10.4.
|
|
111
|
-
"vue-tsc": "3.3.
|
|
110
|
+
"vue-eslint-parser": "10.4.1",
|
|
111
|
+
"vue-tsc": "3.3.12"
|
|
112
112
|
},
|
|
113
113
|
"packageManager": "pnpm@12.6.0"
|
|
114
114
|
}
|
|
@@ -48,6 +48,10 @@ export interface Ui3nTextEmits {
|
|
|
48
48
|
* Called when text is initialized
|
|
49
49
|
*/
|
|
50
50
|
(event: 'init', value: HTMLTextAreaElement): void;
|
|
51
|
+
/**
|
|
52
|
+
* Called when the textarea height changes due to text input or deletion
|
|
53
|
+
*/
|
|
54
|
+
(event: 'resize', value: { height: number; rows: number; element: HTMLTextAreaElement }): void;
|
|
51
55
|
/**
|
|
52
56
|
* Called when text value changes
|
|
53
57
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- @strictTemplates false -->
|
|
2
2
|
<script lang="ts" setup>
|
|
3
|
-
import { onMounted, ref, watch } from 'vue';
|
|
3
|
+
import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
4
4
|
import { patchTextareaMaxRowsSupport } from '../../utils';
|
|
5
5
|
import type { Ui3nTextEmits, Ui3nTextProps, Ui3nTextExpose } from './types';
|
|
6
6
|
|
|
@@ -102,6 +102,12 @@
|
|
|
102
102
|
emits('update:valid', true);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
function onRowsChange(event: Event) {
|
|
106
|
+
const element = event.target as HTMLTextAreaElement;
|
|
107
|
+
const { rows } = (event as CustomEvent<{ rows: number }>).detail;
|
|
108
|
+
emits('resize', { height: element.offsetHeight, rows, element });
|
|
109
|
+
}
|
|
110
|
+
|
|
105
111
|
defineExpose<Ui3nTextExpose>({
|
|
106
112
|
clear,
|
|
107
113
|
});
|
|
@@ -109,6 +115,7 @@
|
|
|
109
115
|
onMounted(() => {
|
|
110
116
|
if (textareaElement.value) {
|
|
111
117
|
patchTextareaMaxRowsSupport(textareaElement.value!);
|
|
118
|
+
textareaElement.value.addEventListener('rows-change', onRowsChange);
|
|
112
119
|
emits('init', textareaElement.value!);
|
|
113
120
|
}
|
|
114
121
|
|
|
@@ -117,6 +124,10 @@
|
|
|
117
124
|
}
|
|
118
125
|
});
|
|
119
126
|
|
|
127
|
+
onBeforeUnmount(() => {
|
|
128
|
+
textareaElement.value?.removeEventListener('rows-change', onRowsChange);
|
|
129
|
+
});
|
|
130
|
+
|
|
120
131
|
watch(
|
|
121
132
|
() => props.name,
|
|
122
133
|
newName => {
|