@avakhula/ui 0.1.22 → 0.1.23

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 (114) hide show
  1. package/dist/App.js +23 -0
  2. package/dist/EventEmmiter.js +33 -0
  3. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +8 -0
  4. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  5. package/dist/chunks/floating-ui.dom-D8OVFdyL.js +861 -0
  6. package/dist/chunks/vue-quill.esm-bundler-FvTqp_xR.js +9070 -0
  7. package/dist/components/Accordion/Accordion.js +81 -0
  8. package/dist/components/Alert/Alert.js +121 -0
  9. package/dist/components/Alert/constants.js +10 -0
  10. package/dist/components/Avatar/Avatar.js +75 -0
  11. package/dist/components/Avatar/constants.js +12 -0
  12. package/dist/components/Badge/Badge.js +29 -0
  13. package/dist/components/Breadcrumbs/Breadcrumbs.js +117 -0
  14. package/dist/components/Button/Button.js +140 -0
  15. package/dist/components/Button/constants.js +11 -0
  16. package/dist/components/ButtonGroup/ButtonGroup.js +14 -0
  17. package/dist/components/Chips/Chips.js +65 -0
  18. package/dist/components/Dropdown/Dropdown.js +228 -0
  19. package/dist/components/Dropdown/DropdownDivider.js +10 -0
  20. package/dist/components/Dropdown/DropdownItem.js +50 -0
  21. package/dist/components/Dropdown/DropdownList.js +104 -0
  22. package/dist/components/Dropdown/constants.js +12 -0
  23. package/dist/components/Form/CharactersCount.js +33 -0
  24. package/dist/components/Form/Checkbox/Checkbox.js +171 -0
  25. package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +81 -0
  26. package/dist/components/Form/DatePicker/DatePicker.js +1782 -0
  27. package/dist/components/Form/DatePicker/Icons/chevron-back.js +8 -0
  28. package/dist/components/Form/DatePicker/Icons/chevron-forward.js +8 -0
  29. package/dist/components/Form/FormGroup/FormGroup.js +30 -0
  30. package/dist/components/Form/FormGroup/FormGroupSet.js +44 -0
  31. package/dist/components/Form/Input/Input.js +375 -0
  32. package/dist/components/Form/Input/constants.js +9 -0
  33. package/dist/components/Form/Label/Label.js +87 -0
  34. package/dist/components/Form/PhoneInput/PhoneInput.js +3811 -0
  35. package/dist/components/Form/Radio/Radio.js +91 -0
  36. package/dist/components/Form/TextEditor/TextEditor.js +422 -0
  37. package/dist/components/Form/TextEditor/Toolbar.js +291 -0
  38. package/dist/components/Form/TextEditor/icons/toolbarIcons.js +109 -0
  39. package/dist/components/Form/TextEditor/plugins/alphabetList.js +31 -0
  40. package/dist/components/Form/TextEditor/plugins/imageBlot.js +16 -0
  41. package/dist/components/Form/TextEditor/setupTextEditor.js +27 -0
  42. package/dist/components/Form/Textarea/Textarea.js +121 -0
  43. package/dist/components/Form/Toggle/Toggle.js +134 -0
  44. package/dist/components/Icon.js +37 -0
  45. package/dist/components/IconButton/IconButton.js +93 -0
  46. package/dist/components/IconButton/constants.js +15 -0
  47. package/dist/components/List.js +66 -0
  48. package/dist/components/Modal/Modal.js +198 -0
  49. package/dist/components/Modal/constants.js +9 -0
  50. package/dist/components/Pagination/LimitSelector.js +73 -0
  51. package/dist/components/Pagination/Pagination.js +226 -0
  52. package/dist/components/Panel/Panel.js +107 -0
  53. package/dist/components/Popover/Popover.js +105 -0
  54. package/dist/components/Popover/constants.js +17 -0
  55. package/dist/components/ProgressBar/ProgressBar.js +63 -0
  56. package/dist/components/ProgressBar/constants.js +10 -0
  57. package/dist/components/Sorting/Sorting.js +182 -0
  58. package/dist/components/Sorting/constants.js +12 -0
  59. package/dist/components/SplitButton/SplitButton.js +145 -0
  60. package/dist/components/SplitButton/SplitButtonItem.js +34 -0
  61. package/dist/components/SplitButton/constants.js +7 -0
  62. package/dist/components/StatusIndicator/StatusIndicator.js +29 -0
  63. package/dist/components/StatusIndicator/constants.js +13 -0
  64. package/dist/components/StatusIndicator/icons.js +44 -0
  65. package/dist/components/Table/Cells/Cell.js +39 -0
  66. package/dist/components/Table/Cells/CheckboxCell.js +37 -0
  67. package/dist/components/Table/Row.js +14 -0
  68. package/dist/components/Table/Table.js +24 -0
  69. package/dist/components/Tabs/Tab.js +47 -0
  70. package/dist/components/Tabs/TabDropdown.js +94 -0
  71. package/dist/components/Tabs/Tabs.js +128 -0
  72. package/dist/components/TagPill/TagPill.js +61 -0
  73. package/dist/components/TagPill/constants.js +12 -0
  74. package/dist/components/ToggleTip/ToggleTip.js +91 -0
  75. package/dist/components/ToggleTip/constants.js +17 -0
  76. package/dist/components/Tooltip/Tooltip.js +46 -0
  77. package/dist/components/TreeSelect/Option.js +302 -0
  78. package/dist/components/TreeSelect/Select.js +1871 -0
  79. package/dist/components/TreeSelect/mixins/InfinityLoaderMixin.js +32 -0
  80. package/dist/constants/events.js +5 -0
  81. package/dist/constants/keyCodes.js +12 -0
  82. package/dist/directives/outside/outside.js +37 -0
  83. package/dist/directives/tooltip/TooltipController.js +116 -0
  84. package/dist/directives/tooltip/textOverflowTooltip.js +23 -0
  85. package/dist/directives/tooltip/tooltip.js +48 -0
  86. package/dist/helpers/debounce.js +14 -0
  87. package/dist/helpers/generateUID.js +6 -0
  88. package/dist/helpers/getHrefFromID.js +6 -0
  89. package/dist/helpers/multiLineOverflows.js +6 -0
  90. package/dist/helpers/removeEvents.js +8 -0
  91. package/dist/helpers/stripHtml.js +6 -0
  92. package/dist/index.css +1 -1
  93. package/dist/index.js +103 -22665
  94. package/dist/main.js +10 -0
  95. package/dist/mixins/expandAnimation.js +24 -0
  96. package/package.json +7 -4
  97. package/src/components/Form/Textarea/Textarea.vue +8 -4
  98. package/.babelrc.json +0 -14
  99. package/.eslintrc.cjs +0 -22
  100. package/.nvmrc +0 -1
  101. package/.prettierrc.json +0 -1
  102. package/.storybook/intelliboardTheme.js +0 -10
  103. package/.storybook/main.js +0 -25
  104. package/.storybook/manager.js +0 -7
  105. package/.storybook/preview-head.html +0 -12
  106. package/.storybook/preview.js +0 -25
  107. package/.storybook/scss-loader.scss +0 -6
  108. package/.storybook/withSource.js +0 -97
  109. package/dist/index.umd.cjs +0 -238
  110. package/index.html +0 -21
  111. package/static/Logo.svg +0 -25
  112. package/static/docks/button.pdf +0 -147566
  113. package/static/favicon.ico +0 -0
  114. package/vite.config.js +0 -47
@@ -0,0 +1,91 @@
1
+ import s from "../../../helpers/generateUID.js";
2
+ import { createElementBlock as o, openBlock as c, normalizeClass as n, createElementVNode as t, createCommentVNode as h, toDisplayString as m, pushScopeId as b, popScopeId as f } from "vue";
3
+ import { _ } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const k = {
5
+ name: "IbRadio",
6
+ props: {
7
+ modelValue: "",
8
+ label: String,
9
+ error: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ name: {
14
+ type: String
15
+ },
16
+ id: {
17
+ type: String,
18
+ default() {
19
+ return s();
20
+ }
21
+ },
22
+ value: {
23
+ type: [String, Number],
24
+ required: !0
25
+ },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: !1
29
+ }
30
+ },
31
+ emits: ["update:modelValue"],
32
+ data() {
33
+ return {
34
+ uid: s()
35
+ };
36
+ },
37
+ mounted() {
38
+ this.checked = this.isChecked;
39
+ },
40
+ methods: {
41
+ checkHandler() {
42
+ this.$emit("update:modelValue", this.value);
43
+ }
44
+ },
45
+ computed: {
46
+ classes() {
47
+ return {
48
+ "ib-radio": !0,
49
+ "has-error": this.error,
50
+ "radio-filled": this.isChecked,
51
+ "radio-disabled": this.disabled
52
+ };
53
+ },
54
+ isChecked() {
55
+ return this.modelValue === this.value;
56
+ }
57
+ }
58
+ }, p = (d) => (b("data-v-48bfd634"), d = d(), f(), d), g = ["for", "aria-checked"], y = ["name", "id", "value", "checked", "disabled"], v = /* @__PURE__ */ p(() => /* @__PURE__ */ t("span", { class: "ib-radio-input" }, null, -1)), C = {
59
+ key: 0,
60
+ class: "ib-radio-label"
61
+ };
62
+ function S(d, l, e, I, V, a) {
63
+ var i, r;
64
+ return c(), o("label", {
65
+ role: "radio",
66
+ class: n(a.classes),
67
+ for: e.id,
68
+ "aria-checked": a.isChecked
69
+ }, [
70
+ t("input", {
71
+ type: "radio",
72
+ name: e.name,
73
+ id: e.id,
74
+ value: e.value,
75
+ checked: a.isChecked,
76
+ disabled: e.disabled,
77
+ ref: "radio",
78
+ onChange: l[0] || (l[0] = (...u) => a.checkHandler && a.checkHandler(...u))
79
+ }, null, 40, y),
80
+ t("span", {
81
+ class: n(["ib-radio-body", { "without-text": !((i = e.label) != null && i.length) }])
82
+ }, [
83
+ v,
84
+ (r = e.label) != null && r.length ? (c(), o("span", C, m(e.label), 1)) : h("", !0)
85
+ ], 2)
86
+ ], 10, g);
87
+ }
88
+ const N = /* @__PURE__ */ _(k, [["render", S], ["__scopeId", "data-v-48bfd634"]]);
89
+ export {
90
+ N as default
91
+ };
@@ -0,0 +1,422 @@
1
+ import { Q as w, a as F } from "../../../chunks/vue-quill.esm-bundler-FvTqp_xR.js";
2
+ import H from "../../IconButton/IconButton.js";
3
+ import V from "../../Alert/Alert.js";
4
+ import D from "../CharactersCount.js";
5
+ import R from "./Toolbar.js";
6
+ import { stripHtml as U } from "../../../helpers/stripHtml.js";
7
+ import { g as I } from "../../../chunks/_commonjsHelpers-DaMA6jEr.js";
8
+ import { setupTextEditor as z } from "./setupTextEditor.js";
9
+ import { resolveComponent as E, createElementBlock as W, openBlock as S, normalizeClass as k, createBlock as C, createCommentVNode as T, withDirectives as G, createElementVNode as M, withCtx as B, createTextVNode as j, toDisplayString as A, createVNode as q, vShow as J } from "vue";
10
+ import { _ as K } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
11
+ var L = { exports: {} }, X = L.exports, N;
12
+ function Y() {
13
+ return N || (N = 1, (function(n, g) {
14
+ (function(c, l) {
15
+ n.exports = l();
16
+ })(typeof self < "u" ? self : X, function() {
17
+ return (
18
+ /******/
19
+ (function(a) {
20
+ var c = {};
21
+ function l(t) {
22
+ if (c[t])
23
+ return c[t].exports;
24
+ var i = c[t] = {
25
+ /******/
26
+ i: t,
27
+ /******/
28
+ l: !1,
29
+ /******/
30
+ exports: {}
31
+ /******/
32
+ };
33
+ return a[t].call(i.exports, i, i.exports, l), i.l = !0, i.exports;
34
+ }
35
+ return l.m = a, l.c = c, l.d = function(t, i, b) {
36
+ l.o(t, i) || Object.defineProperty(t, i, {
37
+ /******/
38
+ configurable: !1,
39
+ /******/
40
+ enumerable: !0,
41
+ /******/
42
+ get: b
43
+ /******/
44
+ });
45
+ }, l.n = function(t) {
46
+ var i = t && t.__esModule ? (
47
+ /******/
48
+ function() {
49
+ return t.default;
50
+ }
51
+ ) : (
52
+ /******/
53
+ function() {
54
+ return t;
55
+ }
56
+ );
57
+ return l.d(i, "a", i), i;
58
+ }, l.o = function(t, i) {
59
+ return Object.prototype.hasOwnProperty.call(t, i);
60
+ }, l.p = "", l(l.s = 0);
61
+ })([
62
+ /* 0 */
63
+ /***/
64
+ (function(a, c, l) {
65
+ function t(f, y) {
66
+ if (!(f instanceof y))
67
+ throw new TypeError("Cannot call a class as a function");
68
+ }
69
+ Object.defineProperty(c, "__esModule", { value: !0 });
70
+ var i = l(1);
71
+ function b(f, y) {
72
+ var _ = f.import("parchment"), o = i.default(f);
73
+ o.className = y && y.className || "ql-placeholder-content", f.register(o);
74
+ var e = function h(p, r) {
75
+ var d = this;
76
+ t(this, h), this.quill = p, this.onTextChange = function(u, s, m) {
77
+ if (m === f.sources.USER) {
78
+ var v = d.quill.getContents(), x = v.diff(s), O = x.ops.filter(function(P) {
79
+ return P.insert && P.insert.placeholder && P.insert.placeholder.required;
80
+ }).length;
81
+ O && d.quill.updateContents(x, f.sources.SILENT);
82
+ }
83
+ }, this.onClick = function(u) {
84
+ var s = _.find(u.target.parentNode);
85
+ if (s instanceof o) {
86
+ var m = d.quill.getIndex(s);
87
+ d.quill.setSelection(m, s.length(), f.sources.USER);
88
+ }
89
+ }, this.toolbarHandler = function(u) {
90
+ var s = d.quill.getSelection(), m = d.placeholders.filter(function(v) {
91
+ return v.id === u;
92
+ })[0];
93
+ if (!m) throw new Error("Missing placeholder for " + u);
94
+ d.quill.deleteText(s.index, s.length), d.quill.insertEmbed(s.index, "placeholder", m, f.sources.USER), d.quill.setSelection(s.index + 1, 0);
95
+ }, this.placeholders = r.placeholders, o.delimiters = r.delimiters || ["{", "}"], this.quill.getModule("toolbar").addHandler("placeholder", this.toolbarHandler), this.quill.root.addEventListener("click", this.onClick), this.quill.on("text-change", this.onTextChange);
96
+ };
97
+ return e;
98
+ }
99
+ c.default = b;
100
+ }),
101
+ /* 1 */
102
+ /***/
103
+ (function(a, c, l) {
104
+ var t = /* @__PURE__ */ (function() {
105
+ function o(e, h) {
106
+ for (var p = 0; p < h.length; p++) {
107
+ var r = h[p];
108
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
109
+ }
110
+ }
111
+ return function(e, h, p) {
112
+ return h && o(e.prototype, h), p && o(e, p), e;
113
+ };
114
+ })(), i = function o(e, h, p) {
115
+ e === null && (e = Function.prototype);
116
+ var r = Object.getOwnPropertyDescriptor(e, h);
117
+ if (r === void 0) {
118
+ var d = Object.getPrototypeOf(e);
119
+ return d === null ? void 0 : o(d, h, p);
120
+ } else {
121
+ if ("value" in r)
122
+ return r.value;
123
+ var u = r.get;
124
+ return u === void 0 ? void 0 : u.call(p);
125
+ }
126
+ };
127
+ function b(o, e) {
128
+ if (!(o instanceof e))
129
+ throw new TypeError("Cannot call a class as a function");
130
+ }
131
+ function f(o, e) {
132
+ if (!o)
133
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
134
+ return e && (typeof e == "object" || typeof e == "function") ? e : o;
135
+ }
136
+ function y(o, e) {
137
+ if (typeof e != "function" && e !== null)
138
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
139
+ o.prototype = Object.create(e && e.prototype, { constructor: { value: o, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(o, e) : o.__proto__ = e);
140
+ }
141
+ Object.defineProperty(c, "__esModule", { value: !0 });
142
+ function _(o) {
143
+ var e = o.import("blots/embed"), h = (function(p) {
144
+ y(r, p);
145
+ function r() {
146
+ return b(this, r), f(this, (r.__proto__ || Object.getPrototypeOf(r)).apply(this, arguments));
147
+ }
148
+ return t(r, [{
149
+ key: "length",
150
+ value: function() {
151
+ return 1;
152
+ }
153
+ }, {
154
+ key: "deleteAt",
155
+ value: function(u, s) {
156
+ this.domNode.dataset.required || i(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "deleteAt", this).call(this, u, s);
157
+ }
158
+ }], [{
159
+ key: "create",
160
+ value: function(u) {
161
+ var s = i(r.__proto__ || Object.getPrototypeOf(r), "create", this).call(this, u);
162
+ u.required && s.setAttribute("data-required", "true"), s.setAttribute("data-id", u.id), s.setAttribute("data-label", u.label), s.setAttribute("spellcheck", "false");
163
+ var m = r.delimiters, v = typeof m == "string" ? "" + m + u.label + m : "" + m[0] + u.label + (m[1] || m[0]), x = document.createTextNode(v);
164
+ if (o.version < "1.3") {
165
+ var O = document.createElement("span");
166
+ O.setAttribute("contenteditable", "false"), O.appendChild(x), s.appendChild(O);
167
+ } else
168
+ s.appendChild(x);
169
+ return s;
170
+ }
171
+ }, {
172
+ key: "value",
173
+ value: function(u) {
174
+ return u.dataset;
175
+ }
176
+ }]), r;
177
+ })(e);
178
+ return h.blotName = "placeholder", h.tagName = "span", h;
179
+ }
180
+ c.default = _;
181
+ })
182
+ /******/
183
+ ])
184
+ );
185
+ });
186
+ })(L)), L.exports;
187
+ }
188
+ var Z = Y();
189
+ const Q = /* @__PURE__ */ I(Z);
190
+ w.register("modules/placeholder", Q(w, {
191
+ className: "ql-placeholder-content"
192
+ }));
193
+ w.debug("error");
194
+ z();
195
+ const $ = {
196
+ name: "IbTextEditor",
197
+ props: {
198
+ name: {
199
+ type: String,
200
+ required: !0
201
+ },
202
+ placeholder: {
203
+ type: String,
204
+ default: ""
205
+ },
206
+ placeholders: {
207
+ type: Array,
208
+ default: () => []
209
+ },
210
+ modelValue: {
211
+ type: String
212
+ },
213
+ content: {
214
+ type: String,
215
+ default: ""
216
+ },
217
+ readOnly: {
218
+ type: Boolean,
219
+ default: !1
220
+ },
221
+ enable: {
222
+ type: Boolean,
223
+ default: !0
224
+ },
225
+ modules: {
226
+ type: [Object, Array],
227
+ default: () => {
228
+ }
229
+ },
230
+ options: {
231
+ type: Object,
232
+ default: () => {
233
+ }
234
+ },
235
+ characterLimit: {
236
+ type: [String, Number],
237
+ default: null
238
+ },
239
+ error: {
240
+ type: Boolean,
241
+ default: !1
242
+ },
243
+ disable: {
244
+ type: Boolean,
245
+ default: !1
246
+ },
247
+ errorMessage: {
248
+ type: String,
249
+ default: ""
250
+ },
251
+ characterLimitErrorMessage: {
252
+ type: String,
253
+ default: ""
254
+ },
255
+ hiddenElements: {
256
+ type: Array,
257
+ default: () => ["font-size", "image"]
258
+ }
259
+ },
260
+ emits: ["onOverLimitHandler", "update:modelValue", "change", "blur"],
261
+ mounted() {
262
+ const n = this.$refs.wrapper.querySelector("input[data-link]");
263
+ n.dataset.link = "Enter Link", this.updateCharacterLength();
264
+ },
265
+ data() {
266
+ return {
267
+ data: this.modelValue ? this.modelValue : this.content,
268
+ characterLength: 0,
269
+ isFocus: !1
270
+ };
271
+ },
272
+ watch: {
273
+ content(n) {
274
+ this.data = n;
275
+ },
276
+ data(n) {
277
+ const g = this.cleanPlaceholderSpans(n);
278
+ this.$emit("update:modelValue", g);
279
+ },
280
+ characterOverLimit(n) {
281
+ this.$emit("onOverLimitHandler", n);
282
+ }
283
+ },
284
+ methods: {
285
+ onChange() {
286
+ let n = this.cleanPlaceholderSpans(this.data);
287
+ this.data = this.patchListStylePosition(n), this.updateCharacterLength(), this.$emit("change", this.data);
288
+ },
289
+ onBlur(n) {
290
+ this.$emit("blur", this.cleanPlaceholderSpans(this.data), n), this.isFocus = !1;
291
+ },
292
+ onFocus() {
293
+ this.isFocus = !0;
294
+ },
295
+ updateCharacterLength() {
296
+ this.characterLength = U(this.data).length;
297
+ },
298
+ cleanPlaceholderSpans(n) {
299
+ if (!n) return n;
300
+ let g;
301
+ do
302
+ g = n, n = n.replace(/<span contenteditable="false">([\s\S]*?)<\/span>/g, (a, c) => c.replace(/[\u200B-\u200F\uFEFF]/g, ""));
303
+ while (g !== n);
304
+ return n;
305
+ },
306
+ patchListStylePosition(n) {
307
+ const g = document.createElement("div");
308
+ return g.innerHTML = n, g.querySelectorAll('ul[style*="text-align"], ol[style*="text-align"], li[style*="text-align"]').forEach((a) => {
309
+ const c = a.getAttribute("style") ?? "";
310
+ if (!/list-style-position\s*:\s*inside/i.test(c)) {
311
+ const l = (c.trim().endsWith(";") || c.trim() === "" ? c : c + ";") + " list-style-position: inside;";
312
+ a.setAttribute("style", l);
313
+ }
314
+ }), g.innerHTML;
315
+ }
316
+ },
317
+ computed: {
318
+ config() {
319
+ const n = {
320
+ placeholder: this.data.length ? "" : this.placeholder,
321
+ readOnly: this.readOnly ? this.readOnly : this.disable,
322
+ enable: this.enable,
323
+ modules: {
324
+ toolbar: {
325
+ container: "#toolbar",
326
+ handlers: { image: this.imageButtonClickHandler }
327
+ },
328
+ placeholder: {
329
+ delimiters: ["{{", "}}"],
330
+ placeholders: this.placeholders
331
+ }
332
+ }
333
+ };
334
+ return Object.assign(n, this.options);
335
+ },
336
+ characterOverLimit() {
337
+ return !!this.characterLimit && this.characterLength > this.characterLimit;
338
+ },
339
+ uid() {
340
+ return Math.random().toString(36).substr(2, 9);
341
+ }
342
+ },
343
+ components: {
344
+ QuillEditor: F,
345
+ IbIconButton: H,
346
+ IbAlert: V,
347
+ IbCharacterCount: D,
348
+ Toolbar: R
349
+ }
350
+ }, ee = ["name", "disabled", "value"], te = {
351
+ class: "ib-text-editor",
352
+ ref: "wrapper"
353
+ };
354
+ function re(n, g, a, c, l, t) {
355
+ const i = E("ib-character-count"), b = E("ib-alert"), f = E("QuillEditor"), y = E("Toolbar");
356
+ return S(), W("div", {
357
+ class: k(["textarea-wrapper", {
358
+ error: t.characterOverLimit || a.error || a.errorMessage.length,
359
+ focus: l.isFocus,
360
+ disable: a.disable
361
+ }])
362
+ }, [
363
+ a.characterLimit ? (S(), C(i, {
364
+ key: 0,
365
+ "character-limit": a.characterLimit,
366
+ "character-length": l.characterLength
367
+ }, null, 8, ["character-limit", "character-length"])) : T("", !0),
368
+ a.errorMessage.length ? (S(), C(b, {
369
+ key: 1,
370
+ class: "error-message"
371
+ }, {
372
+ default: B(() => [
373
+ j(A(a.errorMessage), 1)
374
+ ]),
375
+ _: 1
376
+ })) : T("", !0),
377
+ G(q(b, { class: "error-message" }, {
378
+ default: B(() => [
379
+ j(A(a.characterLimitErrorMessage), 1)
380
+ ]),
381
+ _: 1
382
+ }, 512), [
383
+ [J, a.characterLimitErrorMessage.length && t.characterOverLimit]
384
+ ]),
385
+ M("input", {
386
+ name: a.name,
387
+ type: "hidden",
388
+ disabled: a.disable,
389
+ value: l.data
390
+ }, null, 8, ee),
391
+ M("div", {
392
+ class: k(["ib-text-editor-wrapper", { disable: a.disable }])
393
+ }, [
394
+ M("div", te, [
395
+ q(f, {
396
+ "aria-label": "text-editor",
397
+ onTextChange: t.onChange,
398
+ onBlur: t.onBlur,
399
+ onFocus: t.onFocus,
400
+ ref: "quill",
401
+ content: l.data,
402
+ "onUpdate:content": g[0] || (g[0] = (_) => l.data = _),
403
+ contentType: "html",
404
+ options: t.config,
405
+ modules: a.modules
406
+ }, null, 8, ["onTextChange", "onBlur", "onFocus", "content", "options", "modules"])
407
+ ], 512),
408
+ q(y, {
409
+ id: "toolbar",
410
+ class: "toolbar",
411
+ ref: "toolbar",
412
+ placeholders: a.placeholders,
413
+ uid: t.uid,
414
+ "hidden-elements": a.hiddenElements
415
+ }, null, 8, ["placeholders", "uid", "hidden-elements"])
416
+ ], 2)
417
+ ], 2);
418
+ }
419
+ const fe = /* @__PURE__ */ K($, [["render", re], ["__scopeId", "data-v-6f456437"]]);
420
+ export {
421
+ fe as default
422
+ };