vlite3 1.5.15 → 1.5.16

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.
Files changed (30) hide show
  1. package/components/CategoryManager/CategoryManager2.vue.js +3 -3
  2. package/components/Clock/Clock.vue.d.ts +1 -1
  3. package/components/EditableTitle/EditableTitle.vue.d.ts +200 -0
  4. package/components/EditableTitle/EditableTitle.vue.js +7 -0
  5. package/components/EditableTitle/EditableTitle2.vue.js +225 -0
  6. package/components/EditableTitle/index.d.ts +2 -0
  7. package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
  8. package/components/Form/index2.vue.js +1 -1
  9. package/components/Input.vue.d.ts +11 -15
  10. package/components/Input.vue.js +160 -125
  11. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  12. package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
  13. package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
  14. package/components/Screen/ScreenFilter.vue.js +3 -3
  15. package/components/TagInput/TagInput.vue.d.ts +15 -12
  16. package/components/Textarea.vue.d.ts +9 -2
  17. package/components/Textarea.vue.js +40 -25
  18. package/components/index.d.ts +1 -0
  19. package/docs/component-index.md +4 -2
  20. package/docs/components/editable-title.md +125 -0
  21. package/docs/components/input.md +11 -0
  22. package/docs-manifest.json +7 -4
  23. package/index.d.ts +1 -0
  24. package/index.js +131 -129
  25. package/package.json +1 -1
  26. package/style.css +1 -1
  27. package/types/editable-title.type.d.ts +43 -0
  28. package/types/index.d.ts +1 -0
  29. /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
  30. /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { defineComponent as ee, computed as a, useSlots as te, ref as b, onMounted as ne, nextTick as R, openBlock as s, createElementBlock as u, normalizeClass as r, createBlock as j, withCtx as oe, createTextVNode as S, toDisplayString as w, createCommentVNode as i, createElementVNode as A, renderSlot as D, createVNode as C } from "vue";
2
- import g from "./Icon.vue.js";
3
- import le from "./Label.vue.js";
4
- import ae from "./Textarea.vue.js";
5
- import { resolveI18nText as E } from "../utils/i18n.js";
6
- import { useRtl as de } from "../composables/useRtl.js";
7
- const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disabled", "readonly", "min", "max", "dir", "data-testid"], ie = { class: "absolute end-3 top-1/2 -translate-y-1/2 flex items-center justify-center gap-2 z-20" }, ye = /* @__PURE__ */ ee({
1
+ import { defineComponent as le, computed as a, useSlots as oe, ref as v, onMounted as ae, nextTick as j, openBlock as r, createElementBlock as i, normalizeClass as u, createBlock as S, withCtx as de, createTextVNode as A, toDisplayString as C, createCommentVNode as c, createElementVNode as L, renderSlot as H, createVNode as k } from "vue";
2
+ import x from "./Icon.vue.js";
3
+ import re from "./Label.vue.js";
4
+ import ue from "./Textarea.vue.js";
5
+ import { resolveI18nText as U } from "../utils/i18n.js";
6
+ import { useRtl as se } from "../composables/useRtl.js";
7
+ const ie = ["dir"], ce = ["for"], fe = ["type", "value", "placeholder", "disabled", "readonly", "min", "max", "dir", "data-testid"], me = { class: "absolute end-3 top-1/2 -translate-y-1/2 flex items-center justify-center gap-2 z-20" }, we = /* @__PURE__ */ le({
8
8
  __name: "Input",
9
9
  props: {
10
10
  modelValue: { default: "" },
@@ -39,30 +39,30 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
39
39
  max: {}
40
40
  },
41
41
  emits: ["update:modelValue", "focus", "blur", "change", "click:icon", "click:icon-right"],
42
- setup(t, { emit: H }) {
43
- const e = t, c = H, d = a(() => E(e.labelI18n, e.label)), L = a(
44
- () => E(e.placeholderI18n, e.placeholder)
45
- ), x = te(), m = b(null), y = b(!1), U = de(), k = a(() => U.value ? "rtl" : "ltr"), p = b(!1), W = a(() => e.type === "password" && y.value ? "text" : e.type), $ = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), V = a(() => v.value || $.value || p.value), h = a(() => !!e.addonLeft || !!x["addon-left"]), z = a(() => !!e.addonRight || !!x["addon-right"]), q = a(() => [
42
+ setup(t, { expose: W, emit: q }) {
43
+ const e = t, f = q, d = a(() => U(e.labelI18n, e.label)), I = a(
44
+ () => U(e.placeholderI18n, e.placeholder)
45
+ ), y = oe(), s = v(null), b = v(null), p = v(!1), G = se(), $ = a(() => G.value ? "rtl" : "ltr"), h = v(!1), J = a(() => e.type === "password" && p.value ? "text" : e.type), V = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), z = a(() => g.value || V.value || h.value), w = a(() => !!e.addonLeft || !!y["addon-left"]), R = a(() => !!e.addonRight || !!y["addon-right"]), K = a(() => [
46
46
  "relative w-full",
47
47
  e.class,
48
48
  e.labelPosition === "left" ? "flex items-center gap-4" : "",
49
49
  e.labelPosition === "right" ? "flex flex-row-reverse items-center gap-4" : "space-y-2"
50
- ].join(" ")), G = a(() => [
50
+ ].join(" ")), O = a(() => [
51
51
  "input-addon-group relative flex w-full items-stretch",
52
52
  e.labelPosition !== "top" ? "flex-1" : ""
53
- ].join(" ")), I = a(() => {
54
- const n = "block w-full bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/70 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none relative focus:z-10", o = {
53
+ ].join(" ")), F = a(() => {
54
+ const n = "block w-full bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/70 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none relative focus:z-10", l = {
55
55
  solid: "bg-muted border-transparent focus-visible:border-black",
56
56
  outline: "border border-input focus-visible:border-black",
57
57
  "outline-b": "border-b border-input bg-transparent rounded-none focus-visible:border-black",
58
58
  transparent: "border-none bg-transparent shadow-none",
59
59
  floating: "border border-input focus-visible:border-black"
60
- }, f = {
60
+ }, m = {
61
61
  sm: "h-7.5 text-xs",
62
62
  md: "h-9 text-sm",
63
63
  lg: "h-10 text-base"
64
64
  };
65
- let l = {
65
+ let o = {
66
66
  none: "rounded-none",
67
67
  sm: "rounded-sm",
68
68
  md: "rounded-md",
@@ -71,8 +71,8 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
71
71
  "2xl": "rounded-2xl",
72
72
  full: "rounded-full"
73
73
  }[e.rounded];
74
- h.value && (e.rounded === "md" ? l = "rounded-e-md rounded-s-none" : e.rounded === "sm" ? l = "rounded-e-sm rounded-s-none" : e.rounded === "lg" ? l = "rounded-e-lg rounded-s-none" : e.rounded === "full" ? l = "rounded-e-full rounded-s-none" : e.rounded !== "none" && (l = l.replace("rounded-", "rounded-e-").replace("rounded-s-", ""))), z.value && (h.value ? l = "rounded-none" : e.rounded === "md" ? l = "rounded-s-md rounded-e-none" : e.rounded === "sm" ? l = "rounded-s-sm rounded-e-none" : e.rounded === "lg" ? l = "rounded-s-lg rounded-e-none" : e.rounded === "full" ? l = "rounded-s-full rounded-e-none" : e.rounded !== "none" && (l = l.replace("rounded-", "rounded-s-").replace("rounded-e-", ""))), e.variant === "outline-b" && (l = "rounded-none");
75
- const M = e.variant === "outline-b" || e.variant === "transparent", _ = {
74
+ w.value && (e.rounded === "md" ? o = "rounded-e-md rounded-s-none" : e.rounded === "sm" ? o = "rounded-e-sm rounded-s-none" : e.rounded === "lg" ? o = "rounded-e-lg rounded-s-none" : e.rounded === "full" ? o = "rounded-e-full rounded-s-none" : e.rounded !== "none" && (o = o.replace("rounded-", "rounded-e-").replace("rounded-s-", ""))), R.value && (w.value ? o = "rounded-none" : e.rounded === "md" ? o = "rounded-s-md rounded-e-none" : e.rounded === "sm" ? o = "rounded-s-sm rounded-e-none" : e.rounded === "lg" ? o = "rounded-s-lg rounded-e-none" : e.rounded === "full" ? o = "rounded-s-full rounded-e-none" : e.rounded !== "none" && (o = o.replace("rounded-", "rounded-s-").replace("rounded-e-", ""))), e.variant === "outline-b" && (o = "rounded-none");
75
+ const D = e.variant === "outline-b" || e.variant === "transparent", ne = {
76
76
  xs: "ps-6",
77
77
  sm: "ps-8",
78
78
  md: "ps-9",
@@ -81,12 +81,12 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
81
81
  };
82
82
  return [
83
83
  n,
84
- o[e.variant],
85
- e.type === "textarea" ? "" : f[e.size],
86
- l,
84
+ l[e.variant],
85
+ e.type === "textarea" ? "" : m[e.size],
86
+ o,
87
87
  e.error ? "border-destructive focus-visible:ring-destructive" : "",
88
- e.icon ? _[e?.size] : M && !h.value ? "ps-0" : "",
89
- e.showClearButton && $.value || e.type === "password" || e.loading || e.iconRight ? "pe-9" : M && !z.value ? "pe-0" : "",
88
+ e.icon ? ne[e?.size] : D && !w.value ? "ps-0" : "",
89
+ e.showClearButton && V.value || e.type === "password" || e.loading || e.iconRight ? "pe-9" : D && !R.value ? "pe-0" : "",
90
90
  // Keyframe name used to detect browser autofill via animationstart event
91
91
  e.variant === "floating" ? "autofill-detect" : "",
92
92
  e.inputClass
@@ -95,20 +95,20 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
95
95
  sm: "text-xs",
96
96
  md: "text-sm",
97
97
  lg: "text-base"
98
- }, F = (n) => {
99
- const o = n === "start";
98
+ }, N = (n) => {
99
+ const l = n === "start";
100
100
  return [
101
101
  "[&_button]:w-full [&_a]:w-full! [&_.v-btn]:w-full! [&_.tooltip-trigger]:w-full",
102
- o ? "[&_button]:rounded-e-none [&_a]:rounded-e-none [&_.v-btn]:rounded-e-none" : "[&_button]:rounded-s-none [&_a]:rounded-s-none [&_.v-btn]:rounded-s-none",
102
+ l ? "[&_button]:rounded-e-none [&_a]:rounded-e-none [&_.v-btn]:rounded-e-none" : "[&_button]:rounded-s-none [&_a]:rounded-s-none [&_.v-btn]:rounded-s-none",
103
103
  "[&_button]:relative [&_button]:focus:z-20",
104
- o ? "-me-px" : "-ms-px",
104
+ l ? "-me-px" : "-ms-px",
105
105
  "z-10"
106
106
  ].join(" ");
107
- }, J = a(() => {
108
- const n = !!x["addon-left"];
107
+ }, Q = a(() => {
108
+ const n = !!y["addon-left"];
109
109
  return [
110
110
  "flex items-center justify-center whitespace-nowrap",
111
- n ? `border-none ${F("start")}` : `bg-muted border border-input border-e-0! px-3 text-muted-foreground ${{
111
+ n ? `border-none ${N("start")}` : `bg-muted border border-input border-e-0! px-3 text-muted-foreground ${{
112
112
  sm: "rounded-s-sm",
113
113
  md: "rounded-s-md",
114
114
  lg: "rounded-s-lg",
@@ -121,11 +121,11 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
121
121
  e.addonLeftClass,
122
122
  e.disabled ? "opacity-50 cursor-not-allowed" : ""
123
123
  ].join(" ");
124
- }), K = a(() => {
125
- const n = !!x["addon-right"];
124
+ }), X = a(() => {
125
+ const n = !!y["addon-right"];
126
126
  return [
127
127
  "flex items-center justify-center whitespace-nowrap",
128
- n ? `border-none ${F("end")}` : `bg-muted border border-input border-s-0! px-3 text-muted-foreground ${{
128
+ n ? `border-none ${N("end")}` : `bg-muted border border-input border-s-0! px-3 text-muted-foreground ${{
129
129
  sm: "rounded-e-sm",
130
130
  md: "rounded-e-md",
131
131
  lg: "rounded-e-lg",
@@ -138,176 +138,211 @@ const se = ["dir"], re = ["for"], ue = ["type", "value", "placeholder", "disable
138
138
  e.addonRightClass,
139
139
  e.disabled ? "opacity-50 cursor-not-allowed" : ""
140
140
  ].join(" ");
141
- }), O = (n) => {
142
- const o = n.target;
143
- c("update:modelValue", o.value);
144
- }, Q = (n) => {
145
- const o = n.target;
146
- c("change", o.value);
147
- }, X = () => {
148
- e.disabled || e.readonly || (y.value = !y.value);
149
- }, Y = () => {
150
- e.disabled || e.readonly || (c("update:modelValue", ""), R(() => {
151
- m.value?.focus();
152
- }));
153
- }, v = b(!1), B = b(!1), N = (n) => {
154
- v.value = !0, c("focus", n);
155
- }, T = (n) => {
156
- v.value = !1, c("blur", n);
141
+ }), Y = (n) => {
142
+ const l = n.target;
143
+ f("update:modelValue", l.value);
157
144
  }, Z = (n) => {
158
- n.animationName === "onAutoFillStart" ? p.value = !0 : n.animationName === "onAutoFillCancel" && (p.value = !1);
145
+ const l = n.target;
146
+ f("change", l.value);
147
+ }, _ = () => {
148
+ e.disabled || e.readonly || (p.value = !p.value);
149
+ }, ee = () => {
150
+ e.disabled || e.readonly || (f("update:modelValue", ""), j(() => {
151
+ s.value?.focus();
152
+ }));
153
+ }, g = v(!1), B = v(!1), T = (n) => {
154
+ g.value = !0, f("focus", n);
155
+ }, M = (n) => {
156
+ g.value = !1, f("blur", n);
157
+ }, te = (n) => {
158
+ n.animationName === "onAutoFillStart" ? h.value = !0 : n.animationName === "onAutoFillCancel" && (h.value = !1);
159
159
  };
160
- return ne(() => {
161
- e.autofocus && R(() => {
160
+ ae(() => {
161
+ e.autofocus && j(() => {
162
162
  setTimeout(() => {
163
- m.value?.focus(), v.value = !0;
163
+ E()?.focus(), g.value = !0;
164
164
  }, 100);
165
- }), R(() => {
166
- m.value && m.value.value && !e.modelValue && (p.value = !0);
165
+ }), j(() => {
166
+ s.value && s.value.value && !e.modelValue && (h.value = !0);
167
167
  });
168
- }), (n, o) => (s(), u("div", {
169
- class: r(q.value)
168
+ });
169
+ function E() {
170
+ return s.value ?? b.value?.el ?? null;
171
+ }
172
+ return W({
173
+ /** Focus the underlying native input or textarea. */
174
+ focus: (n) => {
175
+ if (s.value) {
176
+ s.value.focus(n);
177
+ return;
178
+ }
179
+ b.value?.focus(n);
180
+ },
181
+ /** Select the contents of the underlying native input or textarea. */
182
+ select: () => {
183
+ if (s.value) {
184
+ s.value.select();
185
+ return;
186
+ }
187
+ b.value?.select();
188
+ },
189
+ /** Blur the underlying native input or textarea. */
190
+ blur: () => {
191
+ if (s.value) {
192
+ s.value.blur();
193
+ return;
194
+ }
195
+ b.value?.blur();
196
+ },
197
+ /** Native field element when mounted (`HTMLInputElement` or `HTMLTextAreaElement`). */
198
+ get el() {
199
+ return E();
200
+ }
201
+ }), (n, l) => (r(), i("div", {
202
+ class: u(K.value)
170
203
  }, [
171
- d.value && t.variant !== "floating" ? (s(), j(le, {
204
+ d.value && t.variant !== "floating" ? (r(), S(re, {
172
205
  key: 0,
173
206
  size: "xs",
174
207
  for: d.value,
175
- class: r(["mb-1.5", t.labelPosition !== "top" ? "mb-0" : ""].join(" "))
208
+ class: u(["mb-1.5", t.labelPosition !== "top" ? "mb-0" : ""].join(" "))
176
209
  }, {
177
- default: oe(() => [
178
- S(w(d.value), 1)
210
+ default: de(() => [
211
+ A(C(d.value), 1)
179
212
  ]),
180
213
  _: 1
181
- }, 8, ["for", "class"])) : i("", !0),
182
- A("div", {
183
- class: r(G.value),
214
+ }, 8, ["for", "class"])) : c("", !0),
215
+ L("div", {
216
+ class: u(O.value),
184
217
  dir: "ltr"
185
218
  }, [
186
- h.value ? (s(), u("div", {
219
+ w.value ? (r(), i("div", {
187
220
  key: 0,
188
- class: r(J.value)
221
+ class: u(Q.value)
189
222
  }, [
190
- D(n.$slots, "addon-left", {}, () => [
191
- S(w(t.addonLeft), 1)
223
+ H(n.$slots, "addon-left", {}, () => [
224
+ A(C(t.addonLeft), 1)
192
225
  ])
193
- ], 2)) : i("", !0),
194
- A("div", {
226
+ ], 2)) : c("", !0),
227
+ L("div", {
195
228
  class: "input-field-chrome relative w-full",
196
- dir: k.value,
197
- onMouseenter: o[2] || (o[2] = (f) => B.value = !0),
198
- onMouseleave: o[3] || (o[3] = (f) => B.value = !1)
229
+ dir: $.value,
230
+ onMouseenter: l[2] || (l[2] = (m) => B.value = !0),
231
+ onMouseleave: l[3] || (l[3] = (m) => B.value = !1)
199
232
  }, [
200
- d.value && t.variant === "floating" ? (s(), u("label", {
233
+ d.value && t.variant === "floating" ? (r(), i("label", {
201
234
  key: 0,
202
235
  for: d.value,
203
- class: r([
236
+ class: u([
204
237
  "absolute transition-all duration-200 ease-in-out pointer-events-none z-20",
205
- V.value ? "-top-2.5 start-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background] translate-y-0" : t.type === "textarea" ? `top-2 text-sm text-muted-foreground/70 ${t.icon ? "start-9" : "start-3"} translate-y-0` : `top-1/2 -translate-y-1/2 text-sm text-muted-foreground/70 ${t.icon ? "start-9" : "start-3"}`
238
+ z.value ? "-top-2.5 start-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background] translate-y-0" : t.type === "textarea" ? `top-2 text-sm text-muted-foreground/70 ${t.icon ? "start-9" : "start-3"} translate-y-0` : `top-1/2 -translate-y-1/2 text-sm text-muted-foreground/70 ${t.icon ? "start-9" : "start-3"}`
206
239
  ])
207
- }, w(d.value), 11, re)) : i("", !0),
208
- t.type === "textarea" ? (s(), j(ae, {
240
+ }, C(d.value), 11, ce)) : c("", !0),
241
+ t.type === "textarea" ? (r(), S(ue, {
209
242
  key: 1,
243
+ ref_key: "textareaRef",
244
+ ref: b,
210
245
  "model-value": String(t.modelValue),
211
- placeholder: t.variant === "floating" && d.value && !V.value ? "" : L.value,
246
+ placeholder: t.variant === "floating" && d.value && !z.value ? "" : I.value,
212
247
  disabled: t.disabled,
213
248
  readonly: t.readonly,
214
249
  rows: t.rows,
215
- class: r(I.value),
216
- dir: k.value,
217
- "onUpdate:modelValue": o[0] || (o[0] = (f) => c("update:modelValue", f)),
218
- onBlur: T,
219
- onFocus: N,
250
+ class: u(F.value),
251
+ dir: $.value,
252
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => f("update:modelValue", m)),
253
+ onBlur: M,
254
+ onFocus: T,
220
255
  "data-testid": n.$attrs["data-testid"] || (n.$attrs.name ? `input-${n.$attrs.name}` : d.value ? `input-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "textarea")
221
- }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "rows", "class", "dir", "data-testid"])) : (s(), u("input", {
256
+ }, null, 8, ["model-value", "placeholder", "disabled", "readonly", "rows", "class", "dir", "data-testid"])) : (r(), i("input", {
222
257
  key: 2,
223
258
  ref_key: "inputRef",
224
- ref: m,
225
- type: W.value,
259
+ ref: s,
260
+ type: J.value,
226
261
  value: t.modelValue,
227
- placeholder: t.variant === "floating" && d.value && !V.value ? "" : L.value,
262
+ placeholder: t.variant === "floating" && d.value && !z.value ? "" : I.value,
228
263
  disabled: t.disabled,
229
264
  readonly: t.readonly,
230
265
  min: t.min,
231
266
  max: t.max,
232
- class: r(I.value),
233
- dir: k.value,
234
- onInput: O,
235
- onChange: Q,
236
- onBlur: T,
237
- onFocus: N,
238
- onAnimationstart: Z,
267
+ class: u(F.value),
268
+ dir: $.value,
269
+ onInput: Y,
270
+ onChange: Z,
271
+ onBlur: M,
272
+ onFocus: T,
273
+ onAnimationstart: te,
239
274
  "data-testid": n.$attrs["data-testid"] || (n.$attrs.name ? `input-${n.$attrs.name}` : d.value ? `input-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "input")
240
- }, null, 42, ue)),
241
- t.icon ? (s(), u("div", {
275
+ }, null, 42, fe)),
276
+ t.icon ? (r(), i("div", {
242
277
  key: 3,
243
278
  tabindex: "-1",
244
- class: r([
279
+ class: u([
245
280
  "absolute start-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center text-muted-foreground z-20 pointer-events-none",
246
281
  t.disabled ? "opacity-50" : ""
247
282
  ])
248
283
  }, [
249
- C(g, {
284
+ k(x, {
250
285
  icon: t.icon,
251
- class: r(["h-4 w-4", t.iconClass])
286
+ class: u(["h-4 w-4", t.iconClass])
252
287
  }, null, 8, ["icon", "class"])
253
- ], 2)) : i("", !0),
254
- A("div", ie, [
255
- t.loading ? (s(), j(g, {
288
+ ], 2)) : c("", !0),
289
+ L("div", me, [
290
+ t.loading ? (r(), S(x, {
256
291
  key: 0,
257
292
  icon: "lucide:loader-2",
258
293
  class: "h-4 w-4 animate-spin text-muted-foreground"
259
- })) : t.iconRight ? (s(), u("div", {
294
+ })) : t.iconRight ? (r(), i("div", {
260
295
  key: 1,
261
296
  tabindex: "-1",
262
- class: r([
297
+ class: u([
263
298
  "flex items-center justify-center text-muted-foreground",
264
299
  t.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:text-foreground"
265
300
  ]),
266
- onClick: o[1] || (o[1] = (f) => !t.disabled && !t.readonly && c("click:icon-right", f))
301
+ onClick: l[1] || (l[1] = (m) => !t.disabled && !t.readonly && f("click:icon-right", m))
267
302
  }, [
268
- C(g, {
303
+ k(x, {
269
304
  icon: t.iconRight,
270
- class: r(["h-4 w-4", t.iconRightClass])
305
+ class: u(["h-4 w-4", t.iconRightClass])
271
306
  }, null, 8, ["icon", "class"])
272
- ], 2)) : i("", !0),
273
- t.type === "password" && !t.disabled && !t.readonly ? (s(), u("button", {
307
+ ], 2)) : c("", !0),
308
+ t.type === "password" && !t.disabled && !t.readonly ? (r(), i("button", {
274
309
  key: 2,
275
310
  type: "button",
276
311
  tabindex: "-1",
277
312
  class: "flex items-center justify-center text-muted-foreground hover:text-foreground focus:outline-none",
278
- onClick: X
313
+ onClick: _
279
314
  }, [
280
- C(g, {
281
- icon: y.value ? "lucide:eye-off" : "lucide:eye",
315
+ k(x, {
316
+ icon: p.value ? "lucide:eye-off" : "lucide:eye",
282
317
  class: "h-4 w-4"
283
318
  }, null, 8, ["icon"])
284
- ])) : i("", !0),
285
- t.showClearButton && $.value && !t.disabled && !t.readonly && !t.loading && t.type !== "textarea" && t.type !== "password" && (v.value || B.value) ? (s(), u("button", {
319
+ ])) : c("", !0),
320
+ t.showClearButton && V.value && !t.disabled && !t.readonly && !t.loading && t.type !== "textarea" && t.type !== "password" && (g.value || B.value) ? (r(), i("button", {
286
321
  key: 3,
287
322
  type: "button",
288
323
  tabindex: "-1",
289
324
  class: "flex items-center justify-center text-muted-foreground hover:text-foreground focus:outline-none transition-opacity duration-200",
290
- onClick: Y
325
+ onClick: ee
291
326
  }, [
292
- C(g, {
327
+ k(x, {
293
328
  icon: "lucide:x-circle",
294
329
  class: "h-4 w-4"
295
330
  })
296
- ])) : i("", !0)
331
+ ])) : c("", !0)
297
332
  ])
298
- ], 40, se),
299
- z.value ? (s(), u("div", {
333
+ ], 40, ie),
334
+ R.value ? (r(), i("div", {
300
335
  key: 1,
301
- class: r(K.value)
336
+ class: u(X.value)
302
337
  }, [
303
- D(n.$slots, "addon-right", {}, () => [
304
- S(w(t.addonRight), 1)
338
+ H(n.$slots, "addon-right", {}, () => [
339
+ A(C(t.addonRight), 1)
305
340
  ])
306
- ], 2)) : i("", !0)
341
+ ], 2)) : c("", !0)
307
342
  ], 2)
308
343
  ], 2));
309
344
  }
310
345
  });
311
346
  export {
312
- ye as default
347
+ we as default
313
348
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
2
2
  /* empty css */
3
- import se from "./RichTextToolbar2.vue.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover2.vue.js";
6
- /* empty css */
3
+ import se from "./RichTextToolbar.vue.js";
4
+ /* empty css */
5
+ import de from "./RichTextLinkPopover.vue.js";
6
+ /* empty css */
7
7
  import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
8
8
  import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
9
9
  const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
@@ -1,5 +1,5 @@
1
- import o from "./RichTextLinkPopover2.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar2.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -23,11 +23,11 @@ import "iconify-icon-picker/style.css";
23
23
  import "../../icons/IconRegistry.js";
24
24
  /* empty css */
25
25
  /* empty css */
26
- /* empty css */
26
+ /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
29
- /* empty css */
30
- /* empty css */
29
+ /* empty css */
30
+ /* empty css */
31
31
  import "../../core/config.js";
32
32
  /* empty css */
33
33
  /* empty css */
@@ -85,11 +85,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
85
85
  readonly "onClick:icon-right"?: (event: MouseEvent) => any;
86
86
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "variant" | "size" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
87
87
  $attrs: import('vue').Attrs;
88
- $refs: {
89
- [x: string]: unknown;
90
- } & {
91
- inputRef: HTMLInputElement;
92
- };
88
+ $refs: any;
93
89
  $slots: Readonly<{
94
90
  [name: string]: import('vue').Slot<any>;
95
91
  }>;
@@ -97,7 +93,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
97
93
  $parent: import('vue').ComponentPublicInstance | null;
98
94
  $host: Element | null;
99
95
  $emit: ((event: "blur", event: FocusEvent) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "change", value: string | number) => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "click:icon", event: MouseEvent) => void) & ((event: "click:icon-right", event: MouseEvent) => void);
100
- $el: HTMLDivElement;
96
+ $el: any;
101
97
  $options: import('vue').ComponentOptionsBase<Readonly<import('../..').InputProps> & Readonly<{
102
98
  onBlur?: (event: FocusEvent) => any;
103
99
  onFocus?: (event: FocusEvent) => any;
@@ -105,7 +101,12 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
105
101
  "onUpdate:modelValue"?: (value: string | number) => any;
106
102
  "onClick:icon"?: (event: MouseEvent) => any;
107
103
  "onClick:icon-right"?: (event: MouseEvent) => any;
108
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
104
+ }>, {
105
+ focus: (options?: FocusOptions) => void;
106
+ select: () => void;
107
+ blur: () => void;
108
+ el: HTMLInputElement | HTMLTextAreaElement;
109
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
109
110
  blur: (event: FocusEvent) => any;
110
111
  focus: (event: FocusEvent) => any;
111
112
  change: (value: string | number) => any;
@@ -175,11 +176,13 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
175
176
  "onUpdate:modelValue"?: (value: string | number) => any;
176
177
  "onClick:icon"?: (event: MouseEvent) => any;
177
178
  "onClick:icon-right"?: (event: MouseEvent) => any;
178
- }>, "type" | "class" | "variant" | "size" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass"> & {} & import('vue').ComponentCustomProperties & {} & {
179
- $slots: {
180
- 'addon-left'?(_: {}): any;
181
- 'addon-right'?(_: {}): any;
182
- };
179
+ }>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "variant" | "size" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
180
+ focus: (options?: FocusOptions) => void;
181
+ select: () => void;
182
+ blur: () => void;
183
+ el: HTMLInputElement | HTMLTextAreaElement;
184
+ } & {} & import('vue').ComponentCustomProperties & {} & {
185
+ $slots: any;
183
186
  };
184
187
  }, HTMLDivElement>;
185
188
  export default _default;
@@ -8,7 +8,12 @@ interface Props {
8
8
  /** Explicit text direction; defaults to page dir so placeholders mirror under RTL. */
9
9
  dir?: 'ltr' | 'rtl';
10
10
  }
11
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ declare const _default: import('vue').DefineComponent<Props, {
12
+ focus: (options?: FocusOptions) => void;
13
+ select: () => void;
14
+ blur: () => void;
15
+ el: HTMLTextAreaElement;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
17
  blur: (event: FocusEvent) => any;
13
18
  focus: (event: FocusEvent) => any;
14
19
  "update:modelValue": (value: string) => any;
@@ -21,5 +26,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
21
26
  disabled: boolean;
22
27
  modelValue: string;
23
28
  rows: number;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTextAreaElement>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
30
+ textareaRef: HTMLTextAreaElement;
31
+ }, HTMLTextAreaElement>;
25
32
  export default _default;