hisonvue 1.0.0

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 (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +248 -0
  3. package/dist/HAccordion-CPtgQUK0.js +1 -0
  4. package/dist/HAccordion-ll-4cIAw.mjs +262 -0
  5. package/dist/HBaggie-D6omQoFh.js +1 -0
  6. package/dist/HBaggie-D_7mEiuV.mjs +283 -0
  7. package/dist/HBanner-DmcMOFqS.mjs +420 -0
  8. package/dist/HBanner-Io4SdGGs.js +1 -0
  9. package/dist/HButton-DAVuDmOQ.js +1 -0
  10. package/dist/HButton-DAriO81x.mjs +256 -0
  11. package/dist/HCalendar-DKwGatUk.js +2 -0
  12. package/dist/HCalendar-w18iIB90.mjs +3387 -0
  13. package/dist/HCaption-6CbSqRA7.js +1 -0
  14. package/dist/HCaption-DwsXHDNK.mjs +275 -0
  15. package/dist/HChart-C86JXUyW.js +1 -0
  16. package/dist/HChart-CcArHFr0.mjs +179 -0
  17. package/dist/HDrawer-DG1O42iF.mjs +439 -0
  18. package/dist/HDrawer-U5VC_okK.js +1 -0
  19. package/dist/HDropdown-Bs7AfefJ.mjs +393 -0
  20. package/dist/HDropdown-D4RAGmjE.js +1 -0
  21. package/dist/HFileset-BGuP9O4l.mjs +578 -0
  22. package/dist/HFileset-CuPR6Hwf.js +2 -0
  23. package/dist/HGap-BPAdnOQz.js +1 -0
  24. package/dist/HGap-DzGrfWVt.mjs +233 -0
  25. package/dist/HGrid-BiIhVCv_.mjs +345 -0
  26. package/dist/HGrid-C3EV_pgM.js +1 -0
  27. package/dist/HImagebox-D_DKeCrO.mjs +654 -0
  28. package/dist/HImagebox-t_UdFjQO.js +2 -0
  29. package/dist/HInput-BEyJqYkD.mjs +1103 -0
  30. package/dist/HInput-DMGLY473.js +1 -0
  31. package/dist/HInputGroup-D37WTYoI.mjs +281 -0
  32. package/dist/HInputGroup-Dcfr23sZ.js +1 -0
  33. package/dist/HLabel-B2FOqSiS.mjs +369 -0
  34. package/dist/HLabel-Dm48mSwn.js +1 -0
  35. package/dist/HLayout-BbCEm_aO.mjs +196 -0
  36. package/dist/HLayout-C1e4BZ_K.js +1 -0
  37. package/dist/HList-CAeYb-hz.mjs +419 -0
  38. package/dist/HList-eNXmMf27.js +1 -0
  39. package/dist/HModal-BDBEEpKm.mjs +778 -0
  40. package/dist/HModal-GODLq3wH.js +1 -0
  41. package/dist/HNote-CWnUjt3_.mjs +934 -0
  42. package/dist/HNote-D_Xwu9oL.js +1 -0
  43. package/dist/HPagination-Db_L9wv-.js +1 -0
  44. package/dist/HPagination-e5e2a5GS.mjs +496 -0
  45. package/dist/HParagraph-BRuSeOMU.js +1 -0
  46. package/dist/HParagraph-DYuB-qjY.mjs +463 -0
  47. package/dist/HPopup-Brp1FVpm.mjs +431 -0
  48. package/dist/HPopup-ChkoI3xm.js +1 -0
  49. package/dist/HSpinner-DDtU9PL_.js +1 -0
  50. package/dist/HSpinner-DOq2k5kT.mjs +281 -0
  51. package/dist/HTable-DGFnzD4u.js +1 -0
  52. package/dist/HTable-GCDP5O_J.mjs +620 -0
  53. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  54. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  55. package/dist/ar.es-CKau4tBl.js +5 -0
  56. package/dist/ar.es-XxSuE68c.mjs +57 -0
  57. package/dist/bg.es-BJ7fu6yy.mjs +57 -0
  58. package/dist/bg.es-Melqx1M5.js +5 -0
  59. package/dist/bn.es-CYlBkxc5.mjs +57 -0
  60. package/dist/bn.es-ClbAZ4WP.js +5 -0
  61. package/dist/bs.es-KjOcbE96.js +5 -0
  62. package/dist/bs.es-yMnaKmdi.mjs +57 -0
  63. package/dist/ca.es-BaGTENcW.js +5 -0
  64. package/dist/ca.es-DIhlxmQc.mjs +67 -0
  65. package/dist/cs.es-BN8oxRXQ.mjs +57 -0
  66. package/dist/cs.es-ChOlHqBr.js +5 -0
  67. package/dist/da.es-DJB5lAli.mjs +57 -0
  68. package/dist/da.es-DOFXbf8-.js +5 -0
  69. package/dist/de.es-DwE82Kaw.js +5 -0
  70. package/dist/de.es-glb8GeJh.mjs +57 -0
  71. package/dist/drag-and-drop.es-4ttM1tRs.js +5 -0
  72. package/dist/drag-and-drop.es-Ckzp6XEn.mjs +183 -0
  73. package/dist/el.es-CNrCgzYI.js +5 -0
  74. package/dist/el.es-_bBZf22h.mjs +76 -0
  75. package/dist/en.es-CV9nmQGr.mjs +57 -0
  76. package/dist/en.es-CgL601qd.js +5 -0
  77. package/dist/es.es-CZjcWK54.mjs +57 -0
  78. package/dist/es.es-IdFGKY7Q.js +5 -0
  79. package/dist/et.es-BygWmV3P.js +5 -0
  80. package/dist/et.es-CjvQAzNF.mjs +57 -0
  81. package/dist/fa.es-DW_0SmsT.js +5 -0
  82. package/dist/fa.es-DykeFwDA.mjs +57 -0
  83. package/dist/fi.es-Bl7Pp7AO.mjs +57 -0
  84. package/dist/fi.es-pgfJlZ8i.js +5 -0
  85. package/dist/fr.es-CNKVhFfO.mjs +57 -0
  86. package/dist/fr.es-OENguFuM.js +5 -0
  87. package/dist/he.es-bixEnAeH.js +5 -0
  88. package/dist/he.es-nF4GFhjH.mjs +57 -0
  89. package/dist/hisonvue.cjs.js +1 -0
  90. package/dist/hisonvue.css +1 -0
  91. package/dist/hisonvue.d.ts +19934 -0
  92. package/dist/hisonvue.es.js +114 -0
  93. package/dist/hr.es-CkRAP94O.js +5 -0
  94. package/dist/hr.es-QFfz660j.mjs +57 -0
  95. package/dist/hu.es-Ck2rE01V.mjs +57 -0
  96. package/dist/hu.es-DG6HeiQJ.js +5 -0
  97. package/dist/id.es-D4tPi6wP.js +5 -0
  98. package/dist/id.es-Je7FEUJ5.mjs +57 -0
  99. package/dist/index-BmKMHsSZ.js +153 -0
  100. package/dist/index-DUh7pai4.mjs +19976 -0
  101. package/dist/is.es-CDFqLYCV.js +5 -0
  102. package/dist/is.es-bzprHvXI.mjs +57 -0
  103. package/dist/it.es-BHgrw_C6.js +5 -0
  104. package/dist/it.es-CJtfqmNS.mjs +57 -0
  105. package/dist/ja.es-BaiGjqZ6.mjs +57 -0
  106. package/dist/ja.es-D-lxWwyb.js +5 -0
  107. package/dist/ka.es-CnnB6q4A.js +5 -0
  108. package/dist/ka.es-x9QJo_dl.mjs +57 -0
  109. package/dist/ko.es-6c447eTS.mjs +57 -0
  110. package/dist/ko.es-b18aaB3V.js +5 -0
  111. package/dist/lt.es-2twYdvmJ.mjs +57 -0
  112. package/dist/lt.es-BY9UQ6wZ.js +5 -0
  113. package/dist/mn.es-BLQRG1uu.mjs +57 -0
  114. package/dist/mn.es-YFS7gSdf.js +5 -0
  115. package/dist/nl.es-BEx-4hnj.js +5 -0
  116. package/dist/nl.es-bB1qWR_S.mjs +57 -0
  117. package/dist/no.es-BQnRWlWR.js +5 -0
  118. package/dist/no.es-CWDVXpTf.mjs +57 -0
  119. package/dist/pl.es-CKCsZ_02.js +5 -0
  120. package/dist/pl.es-Dzct23w9.mjs +57 -0
  121. package/dist/pt-br.es-BeBuiitI.mjs +57 -0
  122. package/dist/pt-br.es-oH7qh6Fd.js +5 -0
  123. package/dist/pt-pt.es-BeBuiitI.mjs +57 -0
  124. package/dist/pt-pt.es-DLk5I0ej.js +5 -0
  125. package/dist/ro.es-DfMVJ30M.mjs +57 -0
  126. package/dist/ro.es-DgTen1Dh.js +5 -0
  127. package/dist/ru.es-Bv9UvrBe.mjs +67 -0
  128. package/dist/ru.es-jGIQfREl.js +5 -0
  129. package/dist/scrollManager-BGnq4wyt.mjs +14 -0
  130. package/dist/scrollManager-CEEWQwoK.js +1 -0
  131. package/dist/setButtonCssEvent-B9WTs2X7.js +1 -0
  132. package/dist/setButtonCssEvent-dBs1GcAh.mjs +70 -0
  133. package/dist/sk.es-CUOTpLuL.mjs +57 -0
  134. package/dist/sk.es-D2bhVb26.js +5 -0
  135. package/dist/sl.es-DeIGgZbR.mjs +57 -0
  136. package/dist/sl.es-TV8Uraa1.js +5 -0
  137. package/dist/sq.es-CQJJrZHv.mjs +67 -0
  138. package/dist/sq.es-Cc65zxbr.js +5 -0
  139. package/dist/sr.es-CKS0AkiW.mjs +57 -0
  140. package/dist/sr.es-D5VNA_GW.js +5 -0
  141. package/dist/sv.es-ChHQRrAe.mjs +57 -0
  142. package/dist/sv.es-dBeK_DZs.js +5 -0
  143. package/dist/tr.es-B3v90gVv.mjs +57 -0
  144. package/dist/tr.es-BUz4S13G.js +5 -0
  145. package/dist/uk.es-B8uaeLcK.js +5 -0
  146. package/dist/uk.es-CiR4NnbN.mjs +67 -0
  147. package/dist/vi.es-2OFMtbQI.js +5 -0
  148. package/dist/vi.es-DFDi5l7p.mjs +67 -0
  149. package/dist/zh-cn.es-9cbEAuAi.mjs +67 -0
  150. package/dist/zh-cn.es-fDHCbCIg.js +5 -0
  151. package/dist/zh-hk.es-COzeh5F8.js +5 -0
  152. package/dist/zh-hk.es-z0tio4jE.mjs +67 -0
  153. package/nuxt/module.mjs +39 -0
  154. package/nuxt/plugin.mjs +21 -0
  155. package/package.json +53 -0
@@ -0,0 +1,934 @@
1
+ import { defineComponent as K, ref as u, computed as v, onMounted as J, onBeforeUnmount as $, watch as c, nextTick as Y, triggerRef as X, createElementBlock as Z, openBlock as Q, normalizeStyle as p, normalizeClass as ee, createElementVNode as te, mergeProps as ne } from "vue";
2
+ import { _ as oe, $ as ie, y as h, h as f, g as le, u as ce, e as fe, t as re, o as O, a as ae, l as s, F as ue, v as F, r as Be, c as ke, d as de } from "./index-DUh7pai4.mjs";
3
+ import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const Ae = {
5
+ /**
6
+ * Unique identifier for the note.
7
+ * - Access methods via `hison.component.getNote(id)`
8
+ * - Duplicate `id` will throw at mount time
9
+ */
10
+ id: { type: String, required: !1 },
11
+ /**
12
+ * Custom class applied to the label (string / array / object all supported).
13
+ * - Works with responsive classes like `hison-col-*`, `hison-size-*`, etc.
14
+ */
15
+ class: {
16
+ type: [String, Array, Object],
17
+ required: !1
18
+ },
19
+ /**
20
+ * Inline style for the label (string, object, or an array of objects).
21
+ */
22
+ style: {
23
+ type: [String, Object, Array],
24
+ required: !1
25
+ },
26
+ /**
27
+ * Controls visibility of the editor field.
28
+ * - Accepts string values: `'true'` or `'false'`
29
+ * - Default: `'true'` (visible)
30
+ *
31
+ * [Note] Boolean only. Use `:visible="false"` (with colon) when binding.
32
+ */
33
+ visible: { type: Boolean, default: !0 },
34
+ /**
35
+ * Edit mode of the editor.
36
+ * - Values: `'editable'`, `'readonly'`, `'disable'`
37
+ * - `'readonly'` and `'disable'` both prevent editing but differ in styling
38
+ */
39
+ editMode: {
40
+ type: String,
41
+ default: h.editable,
42
+ validator: (e) => ["editable", "disable", "readonly"].includes(e)
43
+ },
44
+ /**
45
+ * ADAPTIVE : The composition of notes varies depending on whether the device is a desktop or mobile device.
46
+ * MOBILE : Always recognize as mobile.
47
+ * DESKTOP : Always recognize as desktop.
48
+ */
49
+ noteModeByDevice: {
50
+ type: String,
51
+ required: !1,
52
+ validator: (e) => e == null || ie.includes(e)
53
+ },
54
+ /**
55
+ * Position of the toolbar
56
+ */
57
+ toolPosition: {
58
+ type: String,
59
+ required: !1,
60
+ validator: (e) => e == null || oe.includes(e)
61
+ },
62
+ /**
63
+ * Toolbar Line Count
64
+ */
65
+ toolDefaultLine: { type: Number, required: !1 },
66
+ /**
67
+ * Whether to use the toolbar fold/unfold function
68
+ */
69
+ toolToggle: { type: Boolean, default: !1 },
70
+ /**
71
+ * - Variables for dynamically setting the size of the textarea
72
+ * - Default width of the textarea. If not set, the value of textarea-width is inserted. Used for dynamically changing the width.
73
+ */
74
+ textareaWidth: { type: String, required: !1 },
75
+ /**
76
+ * - Variables for dynamically setting the size of the textarea
77
+ * - Default height of the textarea. If not set, the value of textarea-height is inserted. Used for dynamically changing the height. Only insert css style in px units.(ex. 400px)
78
+ */
79
+ textareaHeight: { type: String, required: !1 },
80
+ /**
81
+ * - Variables for dynamically setting the max size of the textarea
82
+ * - Default max-width of the textarea. If not set, the value of textarea-max-width is inserted. Used for dynamically changing the width.
83
+ */
84
+ textareaMaxWidth: { type: String, required: !1 },
85
+ /**
86
+ * - Variables for dynamically setting the max size of the textarea
87
+ * - Default max-height of the textarea. If not set, the value of textarea-max-height is inserted. Used for dynamically changing the height. Only insert css style in px units.(ex. 900px)
88
+ */
89
+ textareaMaxHeight: { type: String, required: !1 },
90
+ /**
91
+ * Whether the user can change the height of the textarea. If true, it can be changed.
92
+ */
93
+ textareaHeightIsModify: { type: Boolean, default: !1 },
94
+ /**
95
+ * - Values related to placeholders. The attribute placeholder- can be used, but using these variables allows dynamic control of placeholders.
96
+ * - `true` : Uses a placeholder.
97
+ * - `false` : Default value. Does not use a placeholder.
98
+ */
99
+ placeholderIsVisible: { type: Boolean, default: !1 },
100
+ /**
101
+ * - Values related to placeholders. The attribute placeholder- can be used, but using these variables allows dynamic control of placeholders.
102
+ * - Adjusts the vertical position of the placeholder. Negative values are possible. The unit is px. Default value is 0.
103
+ */
104
+ placeholderAddTop: { type: Number, required: !1 },
105
+ /**
106
+ * - Values related to placeholders. The attribute placeholder- can be used, but using these variables allows dynamic control of placeholders.
107
+ * - Adjusts the horizontal position of the placeholder. Negative values are possible. The unit is px. Default value is 0.
108
+ */
109
+ placeholderAddLeft: { type: Number, required: !1 },
110
+ /**
111
+ * - Values related to placeholders. The attribute placeholder- can be used, but using these variables allows dynamic control of placeholders.
112
+ * - Sets the width of the placeholder. The default value is the size of the flexible textarea.
113
+ */
114
+ placeholderWidth: { type: String, required: !1 },
115
+ /**
116
+ * Placeholder text color
117
+ */
118
+ placeholderColor: { type: String, required: !1 },
119
+ /**
120
+ * Placeholder background color
121
+ */
122
+ placeholderBackgroundColor: { type: String, required: !1 },
123
+ /**
124
+ * Placeholder title text
125
+ */
126
+ placeholderTitle: { type: String, required: !1 },
127
+ /**
128
+ * Placeholder body text
129
+ */
130
+ placeholderTextContent: { type: String, required: !1 },
131
+ /**
132
+ * Comma-separated list of blocked MIME types (e.g., `'image/gif,text/csv'`).
133
+ * Prevents uploading specified file types. Default is `''` (no restriction).
134
+ */
135
+ attFilePreventTypes: { type: String, required: !1 },
136
+ /**
137
+ * Comma-separated list of allowed MIME types (e.g., `'image/png,application/pdf'`).
138
+ * Only files matching these types can be uploaded. Default is `''` (allow all).
139
+ */
140
+ attFileAcceptTypes: { type: String, required: !1 },
141
+ /**
142
+ * Maximum file upload size in bytes (e.g., `10485760` for 10MB).
143
+ * Files exceeding this limit will be blocked. Default is `20971520` (20MB).
144
+ */
145
+ attFileMaxSize: { type: Number, required: !1, default: 20 * 1024 * 1024 },
146
+ /**
147
+ * Comma-separated list of blocked MIME types for images (e.g., `'image/gif,image/svg+xml'`).
148
+ * Prevents uploading specified image types. Default is `''` (no restriction).
149
+ */
150
+ attImagePreventTypes: { type: String, required: !1 },
151
+ /**
152
+ * Comma-separated list of allowed image MIME types (e.g., `'image/png,image/jpeg'`).
153
+ * Only images matching these types can be uploaded. Default is `''` (allow all).
154
+ */
155
+ attImageAcceptTypes: { type: String, required: !1 },
156
+ /**
157
+ * Maximum upload size for images in bytes (e.g., `10485760` for 10MB).
158
+ * Images exceeding this limit will be blocked. Default is `20971520` (20MB).
159
+ */
160
+ attImageMaxSize: { type: Number, required: !1, default: 20 * 1024 * 1024 },
161
+ /**
162
+ * default textarea font-size
163
+ */
164
+ defaultFontSize: { type: Number, required: !1 },
165
+ /**
166
+ * default textarea line-height
167
+ */
168
+ defaultLineHeight: { type: Number, required: !1 },
169
+ /**
170
+ * default textarea font-family
171
+ */
172
+ defaultFontFamily: { type: String, required: !1 },
173
+ /**
174
+ * default tool box font-family
175
+ */
176
+ defaultToolFontFamily: { type: String, required: !1 },
177
+ /**
178
+ * Additional font families to append to the default list (e.g., `'Nanum Gothic,Roboto'`).
179
+ * Comma-separated CSS font-family values.
180
+ */
181
+ addFontFamily: { type: String, required: !1 },
182
+ /**
183
+ * Font families to remove from the default list (e.g., `'Comic Sans MS,Impact'`).
184
+ * Comma-separated CSS font-family values.
185
+ * Default fonts: `'Arial, Arial Black, Arial Narrow, Comic Sans MS, Courier, Georgia, Impact'`.
186
+ */
187
+ removeFontFamily: { type: String, required: !1 },
188
+ /**
189
+ * - Sets the language of the editor. Used in conjunction with .languageSet. An error occurs if a key not in .languageSet is entered.
190
+ * - `'ENG'` : Default value. Sets the language of the note to English.
191
+ * - `'KOR'` : Sets the language of the note to Korean.
192
+ * - `'...'` : Can be used after being defined in .languageSet.
193
+ */
194
+ language: { type: String, required: !1 },
195
+ /**
196
+ * Maximum undo/redo record count
197
+ */
198
+ recodeLimit: { type: String, required: !1 },
199
+ /**
200
+ * Size (ratio) of note elements on desktop
201
+ */
202
+ sizeLevelDesktop: { type: Number, required: !1 },
203
+ /**
204
+ * Size (ratio) of note elements on mobile
205
+ */
206
+ sizeLevelMobile: { type: Number, required: !1 },
207
+ /**
208
+ * Main theme color for the editor
209
+ */
210
+ color: { type: String, required: !1 },
211
+ /**
212
+ * Whether to use inverted (dark mode) colors
213
+ */
214
+ invertColor: { type: Boolean, default: !1 },
215
+ /**
216
+ * Whether to use paragraph style buttons (normal, heading, etc.)
217
+ */
218
+ usingParagraphStyle: { type: Boolean, default: !0 },
219
+ /**
220
+ * Whether to use bold button
221
+ */
222
+ usingBold: { type: Boolean, default: !0 },
223
+ /**
224
+ * Whether to use underline button
225
+ */
226
+ usingUnderline: { type: Boolean, default: !0 },
227
+ /**
228
+ * Whether to use italic button
229
+ */
230
+ usingItalic: { type: Boolean, default: !0 },
231
+ /**
232
+ * Whether to use unordered list (ul) button
233
+ */
234
+ usingUl: { type: Boolean, default: !0 },
235
+ /**
236
+ * Whether to use ordered list (ol) button
237
+ */
238
+ usingOl: { type: Boolean, default: !0 },
239
+ /**
240
+ * Whether to use text align buttons (left, center, right)
241
+ */
242
+ usingTextAlign: { type: Boolean, default: !0 },
243
+ /**
244
+ * Whether to use attach link button
245
+ */
246
+ usingAttLink: { type: Boolean, default: !0 },
247
+ /**
248
+ * Whether to use attach file button
249
+ */
250
+ usingAttFile: { type: Boolean, default: !0 },
251
+ /**
252
+ * Whether to use attach image button
253
+ */
254
+ usingAttImage: { type: Boolean, default: !0 },
255
+ /**
256
+ * Whether to use attach video button
257
+ */
258
+ usingAttVideo: { type: Boolean, default: !0 },
259
+ /**
260
+ * Whether to allow font size adjustment
261
+ */
262
+ usingFontSize: { type: Boolean, default: !0 },
263
+ /**
264
+ * Whether to allow letter spacing adjustment
265
+ */
266
+ usingLetterSpacing: { type: Boolean, default: !0 },
267
+ /**
268
+ * Whether to allow line height adjustment
269
+ */
270
+ usingLineHeight: { type: Boolean, default: !0 },
271
+ /**
272
+ * Whether to allow font family change
273
+ */
274
+ usingFontFamily: { type: Boolean, default: !0 },
275
+ /**
276
+ * Whether to allow text color change
277
+ */
278
+ usingColorText: { type: Boolean, default: !0 },
279
+ /**
280
+ * Whether to allow background color change
281
+ */
282
+ usingColorBack: { type: Boolean, default: !0 },
283
+ /**
284
+ * Whether to use format clear (remove styles) button
285
+ */
286
+ usingFormatClear: { type: Boolean, default: !0 },
287
+ /**
288
+ * Whether to use undo button
289
+ */
290
+ usingUndo: { type: Boolean, default: !0 },
291
+ /**
292
+ * Whether to use redo button
293
+ */
294
+ usingRedo: { type: Boolean, default: !0 },
295
+ /**
296
+ * Whether to use help (shortcut guide) button
297
+ */
298
+ usingHelp: { type: Boolean, default: !0 },
299
+ /**
300
+ * Whether to use paragraph style all buttons
301
+ */
302
+ usingParagraphAllStyle: { type: Boolean, default: !0 },
303
+ /**
304
+ * Whether to use character style all buttons
305
+ */
306
+ usingCharacterStyle: { type: Boolean, default: !0 },
307
+ /**
308
+ * Whether to use character size all buttons
309
+ */
310
+ usingCharacterSize: { type: Boolean, default: !0 },
311
+ /**
312
+ * Whether to use attachment all buttons
313
+ */
314
+ usingAttachFile: { type: Boolean, default: !0 },
315
+ /**
316
+ * Whether to use redo and undo buttons
317
+ */
318
+ usingDo: { type: Boolean, default: !0 },
319
+ /**
320
+ * Whether the note is required.
321
+ * - Accepts `'true'` or `'false'`
322
+ * - Adds `hison-note-required` class when `'true'`
323
+ */
324
+ required: { type: Boolean, default: !1 },
325
+ /**
326
+ * Two-way bound editor state (`NoteData`).
327
+ *
328
+ * Binds the full snapshot of the Vanillanote editor so you can
329
+ * initialize, observe, persist, and later restore the content.
330
+ * When the user edits the note, the component emits
331
+ * `update:modelValue` with a fresh `NoteData` object.
332
+ *
333
+ * ---
334
+ *
335
+ * ### What it contains
336
+ * Mirrors the `NoteData` interface:
337
+ * - `html` — Serialized HTML of the editor.
338
+ * - `plainText` — Text-only representation (no tags).
339
+ * - `links` — Array of embedded hyperlink metadata.
340
+ * - `files` — Array of attached file metadata.
341
+ * - `images` — Array of attached image metadata.
342
+ * - `videos` — Array of attached video metadata.
343
+ * - `fileObjects` — Map of active `File` objects for files (UUID → `File`).
344
+ * - `imageObjects` — Map of active `File` objects for images (UUID → `File`).
345
+ *
346
+ * ---
347
+ *
348
+ * ### Behavior
349
+ * - If omitted, the editor starts empty and will emit a snapshot on first user change.
350
+ * - For best reactivity, treat `modelValue` as **immutable** (replace the whole object
351
+ * rather than mutating nested fields in place).
352
+ * - Emissions are debounced by the editor’s internal lifecycle (not by this component).
353
+ * - `fileObjects`/`imageObjects` exist **only in the browser** and are not JSON-serializable.
354
+ *
355
+ * ---
356
+ *
357
+ * ### Typical usage
358
+ * **Initialize from server & bind**
359
+ * ```vue
360
+ * <HNote v-model="note" />
361
+ *
362
+ * <script setup lang="ts">
363
+ * import type { NoteData } from 'hisonvue'
364
+ * const note = ref<NoteData | undefined>(undefined) // start empty
365
+ * // later: note.value = fetchedNoteData // (without File objects)
366
+ * <\/script>
367
+ * ```
368
+ *
369
+ * **Persist to server (omit File objects)**
370
+ * ```ts
371
+ * const { fileObjects, imageObjects, ...serializable } = note.value ?? {}
372
+ * await saveNoteData(serializable) // send JSON; upload Files separately if needed
373
+ * ```
374
+ *
375
+ * **Restore later**
376
+ * ```ts
377
+ * // After loading from API:
378
+ * note.value = savedNoteData
379
+ * ```
380
+ *
381
+ * ---
382
+ *
383
+ * ### Advanced
384
+ * - If you need the latest snapshot on demand, you can rely on the most recent
385
+ * `modelValue` received via `v-model`, or call the underlying editor API
386
+ * (e.g., `getNoteData()` / `setNoteData()`) if you access the instance directly.
387
+ */
388
+ modelValue: { type: Object, required: !1 },
389
+ /**
390
+ * Controls keyboard focus order of the element.
391
+ * - `0` enables natural tab navigation, positive numbers set custom order.
392
+ * - `null` or `''` removes tabindex (not focusable).
393
+ */
394
+ tabIndex: {
395
+ type: [Number, String],
396
+ default: null,
397
+ validator: (e) => e === null || e === "" || !isNaN(+e) && isFinite(+e)
398
+ }
399
+ }, me = {
400
+ //textarea event
401
+ textareaBeforeClick: Function,
402
+ textareaAfterClick: Function,
403
+ textareaBeforeFocus: Function,
404
+ textareaAfterFocus: Function,
405
+ textareaBeforeBlur: Function,
406
+ textareaAfterBlur: Function,
407
+ //paragraphStyleSelect event
408
+ paragraphStyleSelectBeforeClick: Function,
409
+ paragraphStyleSelectAfterClick: Function,
410
+ //toolToggle event
411
+ toolToggleBeforeClick: Function,
412
+ toolToggleAfterClick: Function,
413
+ //styleNomal event
414
+ styleNomalBeforeClick: Function,
415
+ styleNomalAfterClick: Function,
416
+ //styleHeader1 event
417
+ styleHeader1BeforeClick: Function,
418
+ styleHeader1AfterClick: Function,
419
+ //styleHeader2 event
420
+ styleHeader2BeforeClick: Function,
421
+ styleHeader2AfterClick: Function,
422
+ //styleHeader3 event
423
+ styleHeader3BeforeClick: Function,
424
+ styleHeader3AfterClick: Function,
425
+ //styleHeader4 event
426
+ styleHeader4BeforeClick: Function,
427
+ styleHeader4AfterClick: Function,
428
+ //styleHeader5 event
429
+ styleHeader5BeforeClick: Function,
430
+ styleHeader5AfterClick: Function,
431
+ //styleHeader6 event
432
+ styleHeader6BeforeClick: Function,
433
+ styleHeader6AfterClick: Function,
434
+ //bold event
435
+ boldBeforeClick: Function,
436
+ boldAfterClick: Function,
437
+ //underline event
438
+ underlineBeforeClick: Function,
439
+ underlineAfterClick: Function,
440
+ //italic event
441
+ italicBeforeClick: Function,
442
+ italicAfterClick: Function,
443
+ //ul event
444
+ ulBeforeClick: Function,
445
+ ulAfterClick: Function,
446
+ //ol event
447
+ olBeforeClick: Function,
448
+ olAfterClick: Function,
449
+ //textAlignSelect event
450
+ textAlignSelectBeforeClick: Function,
451
+ textAlignSelectAfterClick: Function,
452
+ //textAlignLeft event
453
+ textAlignLeftBeforeClick: Function,
454
+ textAlignLeftAfterClick: Function,
455
+ //textAlignCenter event
456
+ textAlignCenterBeforeClick: Function,
457
+ textAlignCenterAfterClick: Function,
458
+ //textAlignRight event
459
+ textAlignRightBeforeClick: Function,
460
+ textAlignRightAfterClick: Function,
461
+ //attLink event
462
+ attLinkBeforeClick: Function,
463
+ attLinkAfterClick: Function,
464
+ //attFile event
465
+ attFileBeforeClick: Function,
466
+ attFileAfterClick: Function,
467
+ //attImage event
468
+ attImageBeforeClick: Function,
469
+ attImageAfterClick: Function,
470
+ //attVideo event
471
+ attVideoBeforeClick: Function,
472
+ attVideoAfterClick: Function,
473
+ //fontSizeBox event
474
+ fontSizeBoxBeforeClick: Function,
475
+ fontSizeBoxAfterClick: Function,
476
+ //fontSize event
477
+ fontSizeBeforeClick: Function,
478
+ fontSizeAfterClick: Function,
479
+ fontSizeBeforeInput: Function,
480
+ fontSizeAfterInput: Function,
481
+ fontSizeBeforeBlur: Function,
482
+ fontSizeAfterBlur: Function,
483
+ //letterSpacingBox event
484
+ letterSpacingBoxBeforeClick: Function,
485
+ letterSpacingBoxAfterClick: Function,
486
+ //letterSpacing event
487
+ letterSpacingBeforeClick: Function,
488
+ letterSpacingAfterClick: Function,
489
+ letterSpacingBeforeInput: Function,
490
+ letterSpacingAfterInput: Function,
491
+ letterSpacingBeforeBlur: Function,
492
+ letterSpacingAfterBlur: Function,
493
+ //lineHeightBox event
494
+ lineHeightBoxBeforeClick: Function,
495
+ lineHeightBoxAfterClick: Function,
496
+ //lineHeight event
497
+ lineHeightBeforeClick: Function,
498
+ lineHeightAfterClick: Function,
499
+ lineHeightBeforeInput: Function,
500
+ lineHeightAfterInput: Function,
501
+ lineHeightBeforeBlur: Function,
502
+ lineHeightAfterBlur: Function,
503
+ //fontFamilySelect event
504
+ fontFamilySelectBeforeClick: Function,
505
+ fontFamilySelectAfterClick: Function,
506
+ //color text select
507
+ colorTextSelectBeforeClick: Function,
508
+ colorTextSelectAfterClick: Function,
509
+ //color text select box
510
+ colorTextSelectBoxBeforeClick: Function,
511
+ colorTextSelectBoxAfterClick: Function,
512
+ //colorText0
513
+ colorText0BeforeClick: Function,
514
+ colorText0AfterClick: Function,
515
+ //colorText1
516
+ colorText1BeforeClick: Function,
517
+ colorText1AfterClick: Function,
518
+ //colorText2
519
+ colorText2BeforeClick: Function,
520
+ colorText2AfterClick: Function,
521
+ //colorText3
522
+ colorText3BeforeClick: Function,
523
+ colorText3AfterClick: Function,
524
+ //colorText4
525
+ colorText4BeforeClick: Function,
526
+ colorText4AfterClick: Function,
527
+ //colorText5
528
+ colorText5BeforeClick: Function,
529
+ colorText5AfterClick: Function,
530
+ //colorText6
531
+ colorText6BeforeClick: Function,
532
+ colorText6AfterClick: Function,
533
+ //colorText7
534
+ colorText7BeforeClick: Function,
535
+ colorText7AfterClick: Function,
536
+ //colorText R event
537
+ colorTextRBeforeClick: Function,
538
+ colorTextRAfterClick: Function,
539
+ colorTextRBeforeInput: Function,
540
+ colorTextRAfterInput: Function,
541
+ colorTextRBeforeBlur: Function,
542
+ colorTextRAfterBlur: Function,
543
+ //colorText G event
544
+ colorTextGBeforeClick: Function,
545
+ colorTextGAfterClick: Function,
546
+ colorTextGBeforeInput: Function,
547
+ colorTextGAfterInput: Function,
548
+ colorTextGBeforeBlur: Function,
549
+ colorTextGAfterBlur: Function,
550
+ //colorText B event
551
+ colorTextBBeforeClick: Function,
552
+ colorTextBAfterClick: Function,
553
+ colorTextBBeforeInput: Function,
554
+ colorTextBAfterInput: Function,
555
+ colorTextBBeforeBlur: Function,
556
+ colorTextBAfterBlur: Function,
557
+ //colorText Opacity event
558
+ colorTextOpacityBeforeClick: Function,
559
+ colorTextOpacityAfterClick: Function,
560
+ colorTextOpacityBeforeInput: Function,
561
+ colorTextOpacityAfterInput: Function,
562
+ colorTextOpacityBeforeBlur: Function,
563
+ colorTextOpacityAfterBlur: Function,
564
+ //color background select
565
+ colorBackSelectBeforeClick: Function,
566
+ colorBackSelectAfterClick: Function,
567
+ //color back select box
568
+ colorBackSelectBoxBeforeClick: Function,
569
+ colorBackSelectBoxAfterClick: Function,
570
+ //colorBack0
571
+ colorBack0BeforeClick: Function,
572
+ colorBack0AfterClick: Function,
573
+ //colorBack1
574
+ colorBack1BeforeClick: Function,
575
+ colorBack1AfterClick: Function,
576
+ //colorBack2
577
+ colorBack2BeforeClick: Function,
578
+ colorBack2AfterClick: Function,
579
+ //colorBack3
580
+ colorBack3BeforeClick: Function,
581
+ colorBack3AfterClick: Function,
582
+ //colorBack4
583
+ colorBack4BeforeClick: Function,
584
+ colorBack4AfterClick: Function,
585
+ //colorBack5
586
+ colorBack5BeforeClick: Function,
587
+ colorBack5AfterClick: Function,
588
+ //colorBack6
589
+ colorBack6BeforeClick: Function,
590
+ colorBack6AfterClick: Function,
591
+ //colorBack7
592
+ colorBack7BeforeClick: Function,
593
+ colorBack7AfterClick: Function,
594
+ //colorBack R event
595
+ colorBackRBeforeClick: Function,
596
+ colorBackRAfterClick: Function,
597
+ colorBackRBeforeInput: Function,
598
+ colorBackRAfterInput: Function,
599
+ colorBackRBeforeBlur: Function,
600
+ colorBackRAfterBlur: Function,
601
+ //colorBack G event
602
+ colorBackGBeforeClick: Function,
603
+ colorBackGAfterClick: Function,
604
+ colorBackGBeforeInput: Function,
605
+ colorBackGAfterInput: Function,
606
+ colorBackGBeforeBlur: Function,
607
+ colorBackGAfterBlur: Function,
608
+ //colorBack B event
609
+ colorBackBBeforeClick: Function,
610
+ colorBackBAfterClick: Function,
611
+ colorBackBBeforeInput: Function,
612
+ colorBackBAfterInput: Function,
613
+ colorBackBBeforeBlur: Function,
614
+ colorBackBAfterBlur: Function,
615
+ //colorBack Opacity event
616
+ colorBackOpacityBeforeClick: Function,
617
+ colorBackOpacityAfterClick: Function,
618
+ colorBackOpacityBeforeInput: Function,
619
+ colorBackOpacityAfterInput: Function,
620
+ colorBackOpacityBeforeBlur: Function,
621
+ colorBackOpacityAfterBlur: Function,
622
+ //formatClear event
623
+ formatClearBeforeClick: Function,
624
+ formatClearAfterClick: Function,
625
+ //undo event
626
+ undoBeforeClick: Function,
627
+ undoAfterClick: Function,
628
+ //redo event
629
+ redoBeforeClick: Function,
630
+ redoAfterClick: Function,
631
+ //help event
632
+ helpBeforeClick: Function,
633
+ helpAfterClick: Function,
634
+ //modal back event
635
+ modalBackBeforeClick: Function,
636
+ modalBackAfterClick: Function,
637
+ //modal att link event
638
+ attLinkModalBeforeClick: Function,
639
+ attLinkModalAfterClick: Function,
640
+ //modal att link text input event
641
+ attLinkTextBeforeInput: Function,
642
+ attLinkTextAfterInput: Function,
643
+ attLinkTextBeforeBlur: Function,
644
+ attLinkTextAfterBlur: Function,
645
+ //modal att link href input event
646
+ attLinkHrefBeforeInput: Function,
647
+ attLinkHrefAfterInput: Function,
648
+ attLinkHrefBeforeBlur: Function,
649
+ attLinkHrefAfterBlur: Function,
650
+ //modal att link insert event
651
+ attLinkInsertBeforeClick: Function,
652
+ attLinkInsertAfterClick: Function,
653
+ //modal att file event
654
+ attFileModalBeforeClick: Function,
655
+ attFileModalAfterClick: Function,
656
+ //modal att file upload event
657
+ attFileUploadBeforeClick: Function,
658
+ attFileUploadAfterClick: Function,
659
+ //modal att file upload div event
660
+ attFileUploadDivBeforeDragover: Function,
661
+ attFileUploadDivAfterDragover: Function,
662
+ attFileUploadDivBeforeDrop: Function,
663
+ attFileUploadDivAfterDrop: Function,
664
+ attFileUploadDivBeforeClick: Function,
665
+ attFileUploadDivAfterClick: Function,
666
+ //modal att file upload input event
667
+ attFileUploadBeforeInput: Function,
668
+ attFileUploadAfterInput: Function,
669
+ attFileUploadBeforeBlur: Function,
670
+ attFileUploadAfterBlur: Function,
671
+ //modal att file insert event
672
+ attFileInsertBeforeClick: Function,
673
+ attFileInsertAfterClick: Function,
674
+ //att link tooltip edit event
675
+ attLinkTooltipEditBeforeClick: Function,
676
+ attLinkTooltipEditAfterClick: Function,
677
+ //att link tooltip unlink event
678
+ attLinkTooltipUnlinkBeforeClick: Function,
679
+ attLinkTooltipUnlinkAfterClick: Function,
680
+ //modal att image event
681
+ attImageModalBeforeClick: Function,
682
+ attImageModalAfterClick: Function,
683
+ //modal att image upload and view event
684
+ attImageUploadViewBeforeDragover: Function,
685
+ attImageUploadViewAfterDragover: Function,
686
+ attImageUploadViewBeforeDrop: Function,
687
+ attImageUploadViewAfterDrop: Function,
688
+ attImageUploadViewBeforeClick: Function,
689
+ attImageUploadViewAfterClick: Function,
690
+ //modal att image view pre event
691
+ attImageViewPreBeforeClick: Function,
692
+ attImageViewPreAfterClick: Function,
693
+ //modal att image view next event
694
+ attImageViewNextBeforeClick: Function,
695
+ attImageViewNextAfterClick: Function,
696
+ //modal att image upload input event
697
+ attImageUploadBeforeInput: Function,
698
+ attImageUploadAfterInput: Function,
699
+ attImageUploadBeforeBlur: Function,
700
+ attImageUploadAfterBlur: Function,
701
+ //modal att image url input event
702
+ attImageURLBeforeInput: Function,
703
+ attImageURLAfterInput: Function,
704
+ attImageURLBeforeBlur: Function,
705
+ attImageURLAfterBlur: Function,
706
+ //modal att image insert event
707
+ attImageInsertBeforeClick: Function,
708
+ attImageInsertAfterClick: Function,
709
+ //modal att video event
710
+ attVideoModalBeforeClick: Function,
711
+ attVideoModalAfterClick: Function,
712
+ //modal att video embed id input event
713
+ attVideoEmbedIdBeforeInput: Function,
714
+ attVideoEmbedIdAfterInput: Function,
715
+ attVideoEmbedIdBeforeBlur: Function,
716
+ attVideoEmbedIdAfterBlur: Function,
717
+ //modal att video width input event
718
+ attVideoWidthBeforeInput: Function,
719
+ attVideoWidthAfterInput: Function,
720
+ attVideoWidthBeforeBlur: Function,
721
+ attVideoWidthAfterBlur: Function,
722
+ //modal att video height input event
723
+ attVideoHeightBeforeInput: Function,
724
+ attVideoHeightAfterInput: Function,
725
+ attVideoHeightBeforeBlur: Function,
726
+ attVideoHeightAfterBlur: Function,
727
+ //modal att video insert event
728
+ attVideoInsertBeforeClick: Function,
729
+ attVideoInsertAfterClick: Function,
730
+ //att image tooltip width event
731
+ attImageAndVideoTooltipWidthBeforeInput: Function,
732
+ attImageAndVideoTooltipWidthAfterInput: Function,
733
+ attImageAndVideoTooltipWidthBeforeBlur: Function,
734
+ attImageAndVideoTooltipWidthAfterBlur: Function,
735
+ attImageAndVideoTooltipWidthBeforeKeyup: Function,
736
+ attImageAndVideoTooltipWidthAfterKeyup: Function,
737
+ //att image tooltip float none radio input event
738
+ attImageAndVideoTooltipFloatRadioNoneBeforeClick: Function,
739
+ attImageAndVideoTooltipFloatRadioNoneAfterClick: Function,
740
+ //att image tooltip float left radio input event
741
+ attImageAndVideoTooltipFloatRadioLeftBeforeClick: Function,
742
+ attImageAndVideoTooltipFloatRadioLeftAfterClick: Function,
743
+ //att image tooltip float right radio input event
744
+ attImageAndVideoTooltipFloatRadioRightBeforeClick: Function,
745
+ attImageAndVideoTooltipFloatRadioRightAfterClick: Function,
746
+ //att image tooltip shape square radio input event
747
+ attImageAndVideoTooltipShapeRadioSquareBeforeClick: Function,
748
+ attImageAndVideoTooltipShapeRadioSquareAfterClick: Function,
749
+ //att image tooltip shape radius radio input event
750
+ attImageAndVideoTooltipShapeRadioRadiusBeforeClick: Function,
751
+ attImageAndVideoTooltipShapeRadioRadiusAfterClick: Function,
752
+ //att image tooltip shape circle radio input event
753
+ attImageAndVideoTooltipShapeRadioCircleBeforeClick: Function,
754
+ attImageAndVideoTooltipShapeRadioCircleAfterClick: Function,
755
+ //modal help event
756
+ helpModalBeforeClick: Function,
757
+ helpModalAfterClick: Function,
758
+ //placeholder event
759
+ placeholderBeforeClick: Function,
760
+ placeholderAfterClick: Function
761
+ }, _e = K({
762
+ name: "HNote",
763
+ props: {
764
+ ...Ae,
765
+ ...me
766
+ },
767
+ emits: ["update:modelValue", "mounted", "responsive-change"],
768
+ setup(e, { emit: I }) {
769
+ const m = f.note, k = u(null), r = u(null), d = e.id ? e.id : le(), x = `hnote:${d}`, _ = u(e.required), M = v(() => {
770
+ if (_.value) return "hison-note-required";
771
+ }), S = ce(), g = u(e.visible), N = v(() => g.value ? "" : "hison-display-none"), B = u(e.editMode), z = v(() => {
772
+ if (B.value !== h.editable) return `hison-note-${B.value}`;
773
+ }), T = u(!1), C = u(
774
+ e.tabIndex !== null && e.tabIndex !== "" ? Number(e.tabIndex) : null
775
+ ), V = (o, t) => {
776
+ if (!o) return;
777
+ const l = [
778
+ "a[href]",
779
+ "area[href]",
780
+ "input:not([disabled])",
781
+ "select:not([disabled])",
782
+ "textarea:not([disabled])",
783
+ "button:not([disabled])",
784
+ "iframe",
785
+ "object",
786
+ "embed",
787
+ "[contenteditable]",
788
+ "[tabindex]"
789
+ ].join(",");
790
+ o.querySelectorAll(l).forEach((i) => {
791
+ t ? i.setAttribute("tabindex", "-1") : i.getAttribute("tabindex") === "-1" && i.removeAttribute("tabindex");
792
+ });
793
+ }, E = () => {
794
+ const o = r.value;
795
+ if (!o) return;
796
+ const t = o._elements.textarea;
797
+ B.value !== h.editable ? (t.removeAttribute("contenteditable"), t.removeAttribute("role"), t.removeAttribute("aria-multiline"), t.removeAttribute("spellcheck"), t.removeAttribute("autocorrect"), V(o, !0)) : (t.setAttribute("contenteditable", "true"), t.setAttribute("role", "textbox"), t.setAttribute("aria-multiline", "true"), t.setAttribute("spellcheck", "true"), t.setAttribute("autocorrect", "true"), V(o, !1));
798
+ }, R = u([]), q = ["modelValue", "id", "class", "style", "visible", "editMode"], b = u(0), G = () => {
799
+ X(b);
800
+ }, W = v(() => {
801
+ b.value;
802
+ const o = fe(re(e.class) || "", S.value), t = O(o, "color"), l = O(o, "size");
803
+ ae(o, "col") === -1 && o.push("hison-col-12"), R.value = o;
804
+ const n = {};
805
+ n["data-id"] = d;
806
+ for (const [i, A] of Object.entries(e))
807
+ q.includes(i) || A != null && (n[i.replace(/[A-Z]/g, (y) => "-" + y.toLowerCase())] = String(A));
808
+ return n["size-level-desktop"] = n["size-level-desktop"] && s.utils.isNumber(n["size-level-desktop"]) ? String(Math.min(Math.max(Number(n["size-level-desktop"]), 1), 9)) : L(3, l), n["size-level-mobile"] = n["size-level-mobile"] && s.utils.isNumber(n["size-level-mobile"]) ? String(Math.min(Math.max(Number(n["size-level-mobile"]), 1), 9)) : L(5, l), t && !n.color && (n.color = t), n.color && (n.color = ue(n.color) ?? n.color, n["main-color"] = n.color, delete n.color), (e.invertColor || f.componentStyle.invertColor) && (n["invert-color"] = "true"), n;
809
+ }), L = (o, t) => {
810
+ switch (t = t ?? f.componentStyle.size, t) {
811
+ case F.s:
812
+ o -= 2;
813
+ break;
814
+ case F.m:
815
+ break;
816
+ case F.l:
817
+ o += 2;
818
+ break;
819
+ case F.xl:
820
+ o += 3;
821
+ break;
822
+ }
823
+ return String(Math.min(Math.max(o, 1), 9));
824
+ }, H = new MutationObserver((o) => {
825
+ var n;
826
+ const t = (n = o[0]) == null ? void 0 : n.target;
827
+ !t || !w(t) || j();
828
+ }), w = (o) => {
829
+ var l;
830
+ let t = o;
831
+ for (; !(t instanceof Element); ) t = t.parentNode;
832
+ return ((l = t.closest) == null ? void 0 : l.call(t, "[data-vanillanote]")) || null;
833
+ }, P = (o, t) => {
834
+ if (!o || !t || o.html !== t.html || o.plainText !== t.plainText || JSON.stringify(o.links) !== JSON.stringify(t.links) || JSON.stringify(o.files) !== JSON.stringify(t.files) || JSON.stringify(o.images) !== JSON.stringify(t.images) || JSON.stringify(o.videos) !== JSON.stringify(t.videos)) return !1;
835
+ const l = Object.keys(o.fileObjects || {}), n = Object.keys(t.fileObjects || {});
836
+ if (l.length !== n.length || !l.every((y) => n.includes(y))) return !1;
837
+ const i = Object.keys(o.imageObjects || {}), A = Object.keys(t.imageObjects || {});
838
+ return !(i.length !== A.length || !i.every((y) => A.includes(y)));
839
+ }, j = () => {
840
+ r.value && (T.value = !0, I("update:modelValue", r.value.getNoteData()));
841
+ }, a = () => {
842
+ D(), G(), Y(U);
843
+ }, U = () => {
844
+ var l;
845
+ if (Be(x, a), m.init(), !k.value) return;
846
+ m.mountNote(k.value);
847
+ const o = m.getNote(d);
848
+ o.getId = () => d, r.value = o;
849
+ const t = r.value;
850
+ if (e.modelValue && t && t.setNoteData(e.modelValue), C.value && t._elements.textarea && t._elements.textarea.setAttribute("tabIndex", String(C.value)), t && (t.isHisonvueComponent = !0, t.getId = () => d, t.getType = () => "note", t.getRequired = () => _.value, t.setRequired = (n) => {
851
+ _.value = n;
852
+ }, t.isVisible = () => g.value, t.setVisible = (n) => {
853
+ g.value = n;
854
+ }, t.getEditMode = () => B.value, t.setEditMode = (n) => {
855
+ B.value = n, E();
856
+ }, t.isModified = () => T.value, t.initModified = () => T.value = !1, t.getTabIndex = () => C.value, t.setTabIndex = (n) => {
857
+ C.value = n != null ? Number(n) : null;
858
+ }, t.focus = () => {
859
+ var n, i;
860
+ (i = (n = t._elements) == null ? void 0 : n.textarea) == null || i.focus();
861
+ }, t.getDataModel = () => {
862
+ const n = t.getNoteData();
863
+ return new s.data.DataModel(n);
864
+ }, t.setDataModel = (n) => {
865
+ if (!n || n.getRowCount() == 0) return;
866
+ const i = {
867
+ html: n.hasColumn("html") ? n.getValue(0, "html") : "",
868
+ plainText: n.hasColumn("plainText") ? n.getValue(0, "plainText") : "",
869
+ links: n.hasColumn("links") ? n.getValue(0, "links") : [],
870
+ files: n.hasColumn("files") ? n.getValue(0, "files") : [],
871
+ images: n.hasColumn("images") ? n.getValue(0, "images") : [],
872
+ videos: n.hasColumn("videos") ? n.getValue(0, "videos") : [],
873
+ fileObjects: n.hasColumn("fileObjects") ? n.getValue(0, "fileObjects") : {},
874
+ imageObjects: n.hasColumn("imageObjects") ? n.getValue(0, "imageObjects") : {}
875
+ };
876
+ return t.setNoteData(i);
877
+ }, t.load = (n) => {
878
+ n && n.getIsDataModel && n.getIsDataModel() ? t.setDataModel(n) : t.setNoteData(n);
879
+ }, t.reload = () => ke(x)), t) {
880
+ const n = (l = t._elements) == null ? void 0 : l.textarea;
881
+ H.observe(n, { characterData: !0, childList: !0, subtree: !0 });
882
+ }
883
+ t && (t._cssEvents.target_onBeforeClick = f.event.cssEvent.button_onBeforeClick, t._cssEvents.target_onAfterClick = f.event.cssEvent.button_onAfterClick, t._cssEvents.target_onBeforeMouseover = f.event.cssEvent.button_onBeforeMouseover, t._cssEvents.target_onAfterMouseover = f.event.cssEvent.button_onAfterMouseover, t._cssEvents.target_onBeforeMouseout = f.event.cssEvent.button_onBeforeMouseout, t._cssEvents.target_onAfterMouseout = f.event.cssEvent.button_onAfterMouseout, t._cssEvents.target_onBeforeTouchstart = f.event.cssEvent.button_onBeforeTouchstart, t._cssEvents.target_onAfterTouchstart = f.event.cssEvent.button_onAfterTouchstart, t._cssEvents.target_onBeforeTouchend = f.event.cssEvent.button_onBeforeTouchend, t._cssEvents.target_onAfterTouchend = f.event.cssEvent.button_onAfterTouchend, typeof e.textareaBeforeClick == "function" && (t._elementEvents.textarea_onBeforeClick = e.textareaBeforeClick), typeof e.textareaAfterClick == "function" && (t._elementEvents.textarea_onAfterClick = e.textareaAfterClick), typeof e.textareaBeforeFocus == "function" && (t._elementEvents.textarea_onBeforeFocus = e.textareaBeforeFocus), typeof e.textareaAfterFocus == "function" && (t._elementEvents.textarea_onAfterFocus = e.textareaAfterFocus), typeof e.textareaBeforeBlur == "function" && (t._elementEvents.textarea_onBeforeBlur = e.textareaBeforeBlur), typeof e.textareaAfterBlur == "function" && (t._elementEvents.textarea_onAfterBlur = e.textareaAfterBlur), typeof e.paragraphStyleSelectBeforeClick == "function" && (t._elementEvents.paragraphStyleSelect_onBeforeClick = e.paragraphStyleSelectBeforeClick), typeof e.paragraphStyleSelectAfterClick == "function" && (t._elementEvents.paragraphStyleSelect_onAfterClick = e.paragraphStyleSelectAfterClick), typeof e.toolToggleBeforeClick == "function" && (t._elementEvents.toolToggleButton_onBeforeClick = e.toolToggleBeforeClick), typeof e.toolToggleAfterClick == "function" && (t._elementEvents.toolToggleButton_onAfterClick = e.toolToggleAfterClick), typeof e.styleNomalBeforeClick == "function" && (t._elementEvents.styleNomal_onBeforeClick = e.styleNomalBeforeClick), typeof e.styleNomalAfterClick == "function" && (t._elementEvents.styleNomal_onAfterClick = e.styleNomalAfterClick), typeof e.styleHeader1BeforeClick == "function" && (t._elementEvents.styleHeader1_onBeforeClick = e.styleHeader1BeforeClick), typeof e.styleHeader1AfterClick == "function" && (t._elementEvents.styleHeader1_onAfterClick = e.styleHeader1AfterClick), typeof e.styleHeader2BeforeClick == "function" && (t._elementEvents.styleHeader2_onBeforeClick = e.styleHeader2BeforeClick), typeof e.styleHeader2AfterClick == "function" && (t._elementEvents.styleHeader2_onAfterClick = e.styleHeader2AfterClick), typeof e.styleHeader3BeforeClick == "function" && (t._elementEvents.styleHeader3_onBeforeClick = e.styleHeader3BeforeClick), typeof e.styleHeader3AfterClick == "function" && (t._elementEvents.styleHeader3_onAfterClick = e.styleHeader3AfterClick), typeof e.styleHeader4BeforeClick == "function" && (t._elementEvents.styleHeader4_onBeforeClick = e.styleHeader4BeforeClick), typeof e.styleHeader4AfterClick == "function" && (t._elementEvents.styleHeader4_onAfterClick = e.styleHeader4AfterClick), typeof e.styleHeader5BeforeClick == "function" && (t._elementEvents.styleHeader5_onBeforeClick = e.styleHeader5BeforeClick), typeof e.styleHeader5AfterClick == "function" && (t._elementEvents.styleHeader5_onAfterClick = e.styleHeader5AfterClick), typeof e.styleHeader6BeforeClick == "function" && (t._elementEvents.styleHeader6_onBeforeClick = e.styleHeader6BeforeClick), typeof e.styleHeader6AfterClick == "function" && (t._elementEvents.styleHeader6_onAfterClick = e.styleHeader6AfterClick), typeof e.boldBeforeClick == "function" && (t._elementEvents.boldButton_onBeforeClick = e.boldBeforeClick), typeof e.boldAfterClick == "function" && (t._elementEvents.boldButton_onAfterClick = e.boldAfterClick), typeof e.underlineBeforeClick == "function" && (t._elementEvents.underlineButton_onBeforeClick = e.underlineBeforeClick), typeof e.underlineAfterClick == "function" && (t._elementEvents.underlineButton_onAfterClick = e.underlineAfterClick), typeof e.italicBeforeClick == "function" && (t._elementEvents.italicButton_onBeforeClick = e.italicBeforeClick), typeof e.italicAfterClick == "function" && (t._elementEvents.italicButton_onAfterClick = e.italicAfterClick), typeof e.ulBeforeClick == "function" && (t._elementEvents.ulButton_onBeforeClick = e.ulBeforeClick), typeof e.ulAfterClick == "function" && (t._elementEvents.ulButton_onAfterClick = e.ulAfterClick), typeof e.olBeforeClick == "function" && (t._elementEvents.olButton_onBeforeClick = e.olBeforeClick), typeof e.olAfterClick == "function" && (t._elementEvents.olButton_onAfterClick = e.olAfterClick), typeof e.textAlignSelectBeforeClick == "function" && (t._elementEvents.textAlignSelect_onBeforeClick = e.textAlignSelectBeforeClick), typeof e.textAlignSelectAfterClick == "function" && (t._elementEvents.textAlignSelect_onAfterClick = e.textAlignSelectAfterClick), typeof e.textAlignLeftBeforeClick == "function" && (t._elementEvents.textAlignLeft_onBeforeClick = e.textAlignLeftBeforeClick), typeof e.textAlignLeftAfterClick == "function" && (t._elementEvents.textAlignLeft_onAfterClick = e.textAlignLeftAfterClick), typeof e.textAlignCenterBeforeClick == "function" && (t._elementEvents.textAlignCenter_onBeforeClick = e.textAlignCenterBeforeClick), typeof e.textAlignCenterAfterClick == "function" && (t._elementEvents.textAlignCenter_onAfterClick = e.textAlignCenterAfterClick), typeof e.textAlignRightBeforeClick == "function" && (t._elementEvents.textAlignRight_onBeforeClick = e.textAlignRightBeforeClick), typeof e.textAlignRightAfterClick == "function" && (t._elementEvents.textAlignRight_onAfterClick = e.textAlignRightAfterClick), typeof e.attLinkBeforeClick == "function" && (t._elementEvents.attLinkButton_onBeforeClick = e.attLinkBeforeClick), typeof e.attLinkAfterClick == "function" && (t._elementEvents.attLinkButton_onAfterClick = e.attLinkAfterClick), typeof e.attFileBeforeClick == "function" && (t._elementEvents.attFileButton_onBeforeClick = e.attFileBeforeClick), typeof e.attFileAfterClick == "function" && (t._elementEvents.attFileButton_onAfterClick = e.attFileAfterClick), typeof e.attImageBeforeClick == "function" && (t._elementEvents.attImageButton_onBeforeClick = e.attImageBeforeClick), typeof e.attImageAfterClick == "function" && (t._elementEvents.attImageButton_onAfterClick = e.attImageAfterClick), typeof e.attVideoBeforeClick == "function" && (t._elementEvents.attVideoButton_onBeforeClick = e.attVideoBeforeClick), typeof e.attVideoAfterClick == "function" && (t._elementEvents.attVideoButton_onAfterClick = e.attVideoAfterClick), typeof e.fontSizeBoxBeforeClick == "function" && (t._elementEvents.fontSizeInputBox_onBeforeClick = e.fontSizeBoxBeforeClick), typeof e.fontSizeBoxAfterClick == "function" && (t._elementEvents.fontSizeInputBox_onAfterClick = e.fontSizeBoxAfterClick), typeof e.fontSizeBeforeClick == "function" && (t._elementEvents.fontSizeInput_onBeforeClick = e.fontSizeBeforeClick), typeof e.fontSizeAfterClick == "function" && (t._elementEvents.fontSizeInput_onAfterClick = e.fontSizeAfterClick), typeof e.fontSizeBeforeInput == "function" && (t._elementEvents.fontSizeInput_onBeforeInput = e.fontSizeBeforeInput), typeof e.fontSizeAfterInput == "function" && (t._elementEvents.fontSizeInput_onAfterInput = e.fontSizeAfterInput), typeof e.fontSizeBeforeBlur == "function" && (t._elementEvents.fontSizeInput_onBeforeBlur = e.fontSizeBeforeBlur), typeof e.fontSizeAfterBlur == "function" && (t._elementEvents.fontSizeInput_onAfterBlur = e.fontSizeAfterBlur), typeof e.letterSpacingBoxBeforeClick == "function" && (t._elementEvents.letterSpacingInputBox_onBeforeClick = e.letterSpacingBoxBeforeClick), typeof e.letterSpacingBoxAfterClick == "function" && (t._elementEvents.letterSpacingInputBox_onAfterClick = e.letterSpacingBoxAfterClick), typeof e.letterSpacingBeforeClick == "function" && (t._elementEvents.letterSpacingInput_onBeforeClick = e.letterSpacingBeforeClick), typeof e.letterSpacingAfterClick == "function" && (t._elementEvents.letterSpacingInput_onAfterClick = e.letterSpacingAfterClick), typeof e.letterSpacingBeforeInput == "function" && (t._elementEvents.letterSpacingInput_onBeforeInput = e.letterSpacingBeforeInput), typeof e.letterSpacingAfterInput == "function" && (t._elementEvents.letterSpacingInput_onAfterInput = e.letterSpacingAfterInput), typeof e.letterSpacingBeforeBlur == "function" && (t._elementEvents.letterSpacingInput_onBeforeBlur = e.letterSpacingBeforeBlur), typeof e.letterSpacingAfterBlur == "function" && (t._elementEvents.letterSpacingInput_onAfterBlur = e.letterSpacingAfterBlur), typeof e.lineHeightBoxBeforeClick == "function" && (t._elementEvents.lineHeightInputBox_onBeforeClick = e.lineHeightBoxBeforeClick), typeof e.lineHeightBoxAfterClick == "function" && (t._elementEvents.lineHeightInputBox_onAfterClick = e.lineHeightBoxAfterClick), typeof e.lineHeightBeforeClick == "function" && (t._elementEvents.lineHeightInput_onBeforeClick = e.lineHeightBeforeClick), typeof e.lineHeightAfterClick == "function" && (t._elementEvents.lineHeightInput_onAfterClick = e.lineHeightAfterClick), typeof e.lineHeightBeforeInput == "function" && (t._elementEvents.lineHeightInput_onBeforeInput = e.lineHeightBeforeInput), typeof e.lineHeightAfterInput == "function" && (t._elementEvents.lineHeightInput_onAfterInput = e.lineHeightAfterInput), typeof e.lineHeightBeforeBlur == "function" && (t._elementEvents.lineHeightInput_onBeforeBlur = e.lineHeightBeforeBlur), typeof e.lineHeightAfterBlur == "function" && (t._elementEvents.lineHeightInput_onAfterBlur = e.lineHeightAfterBlur), typeof e.fontFamilySelectBeforeClick == "function" && (t._elementEvents.fontFamilySelect_onBeforeClick = e.fontFamilySelectBeforeClick), typeof e.fontFamilySelectAfterClick == "function" && (t._elementEvents.fontFamilySelect_onAfterClick = e.fontFamilySelectAfterClick), typeof e.colorTextSelectBeforeClick == "function" && (t._elementEvents.colorTextSelect_onBeforeClick = e.colorTextSelectBeforeClick), typeof e.colorTextSelectAfterClick == "function" && (t._elementEvents.colorTextSelect_onAfterClick = e.colorTextSelectAfterClick), typeof e.colorTextSelectBoxBeforeClick == "function" && (t._elementEvents.colorTextSelectBox_onBeforeClick = e.colorTextSelectBoxBeforeClick), typeof e.colorTextSelectBoxAfterClick == "function" && (t._elementEvents.colorTextSelectBox_onAfterClick = e.colorTextSelectBoxAfterClick), typeof e.colorText0BeforeClick == "function" && (t._elementEvents.colorText0_onBeforeClick = e.colorText0BeforeClick), typeof e.colorText0AfterClick == "function" && (t._elementEvents.colorText0_onAfterClick = e.colorText0AfterClick), typeof e.colorText1BeforeClick == "function" && (t._elementEvents.colorText1_onBeforeClick = e.colorText1BeforeClick), typeof e.colorText1AfterClick == "function" && (t._elementEvents.colorText1_onAfterClick = e.colorText1AfterClick), typeof e.colorText2BeforeClick == "function" && (t._elementEvents.colorText2_onBeforeClick = e.colorText2BeforeClick), typeof e.colorText2AfterClick == "function" && (t._elementEvents.colorText2_onAfterClick = e.colorText2AfterClick), typeof e.colorText3BeforeClick == "function" && (t._elementEvents.colorText3_onBeforeClick = e.colorText3BeforeClick), typeof e.colorText3AfterClick == "function" && (t._elementEvents.colorText3_onAfterClick = e.colorText3AfterClick), typeof e.colorText4BeforeClick == "function" && (t._elementEvents.colorText4_onBeforeClick = e.colorText4BeforeClick), typeof e.colorText4AfterClick == "function" && (t._elementEvents.colorText4_onAfterClick = e.colorText4AfterClick), typeof e.colorText5BeforeClick == "function" && (t._elementEvents.colorText5_onBeforeClick = e.colorText5BeforeClick), typeof e.colorText5AfterClick == "function" && (t._elementEvents.colorText5_onAfterClick = e.colorText5AfterClick), typeof e.colorText6BeforeClick == "function" && (t._elementEvents.colorText6_onBeforeClick = e.colorText6BeforeClick), typeof e.colorText6AfterClick == "function" && (t._elementEvents.colorText6_onAfterClick = e.colorText6AfterClick), typeof e.colorText7BeforeClick == "function" && (t._elementEvents.colorText7_onBeforeClick = e.colorText7BeforeClick), typeof e.colorText7AfterClick == "function" && (t._elementEvents.colorText7_onAfterClick = e.colorText7AfterClick), typeof e.colorTextRBeforeClick == "function" && (t._elementEvents.colorTextRInput_onBeforeClick = e.colorTextRBeforeClick), typeof e.colorTextRAfterClick == "function" && (t._elementEvents.colorTextRInput_onAfterClick = e.colorTextRAfterClick), typeof e.colorTextRBeforeInput == "function" && (t._elementEvents.colorTextRInput_onBeforeInput = e.colorTextRBeforeInput), typeof e.colorTextRAfterInput == "function" && (t._elementEvents.colorTextRInput_onAfterInput = e.colorTextRAfterInput), typeof e.colorTextRBeforeBlur == "function" && (t._elementEvents.colorTextRInput_onBeforeBlur = e.colorTextRBeforeBlur), typeof e.colorTextRAfterBlur == "function" && (t._elementEvents.colorTextRInput_onAfterBlur = e.colorTextRAfterBlur), typeof e.colorTextGBeforeClick == "function" && (t._elementEvents.colorTextGInput_onBeforeClick = e.colorTextGBeforeClick), typeof e.colorTextGAfterClick == "function" && (t._elementEvents.colorTextGInput_onAfterClick = e.colorTextGAfterClick), typeof e.colorTextGBeforeInput == "function" && (t._elementEvents.colorTextGInput_onBeforeInput = e.colorTextGBeforeInput), typeof e.colorTextGAfterInput == "function" && (t._elementEvents.colorTextGInput_onAfterInput = e.colorTextGAfterInput), typeof e.colorTextGBeforeBlur == "function" && (t._elementEvents.colorTextGInput_onBeforeBlur = e.colorTextGBeforeBlur), typeof e.colorTextGAfterBlur == "function" && (t._elementEvents.colorTextGInput_onAfterBlur = e.colorTextGAfterBlur), typeof e.colorTextBBeforeClick == "function" && (t._elementEvents.colorTextBInput_onBeforeClick = e.colorTextBBeforeClick), typeof e.colorTextBAfterClick == "function" && (t._elementEvents.colorTextBInput_onAfterClick = e.colorTextBAfterClick), typeof e.colorTextBBeforeInput == "function" && (t._elementEvents.colorTextBInput_onBeforeInput = e.colorTextBBeforeInput), typeof e.colorTextBAfterInput == "function" && (t._elementEvents.colorTextBInput_onAfterInput = e.colorTextBAfterInput), typeof e.colorTextBBeforeBlur == "function" && (t._elementEvents.colorTextBInput_onBeforeBlur = e.colorTextBBeforeBlur), typeof e.colorTextBAfterBlur == "function" && (t._elementEvents.colorTextBInput_onAfterBlur = e.colorTextBAfterBlur), typeof e.colorTextOpacityBeforeClick == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeClick = e.colorTextOpacityBeforeClick), typeof e.colorTextOpacityAfterClick == "function" && (t._elementEvents.colorTextOpacityInput_onAfterClick = e.colorTextOpacityAfterClick), typeof e.colorTextOpacityBeforeInput == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeInput = e.colorTextOpacityBeforeInput), typeof e.colorTextOpacityAfterInput == "function" && (t._elementEvents.colorTextOpacityInput_onAfterInput = e.colorTextOpacityAfterInput), typeof e.colorTextOpacityBeforeBlur == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeBlur = e.colorTextOpacityBeforeBlur), typeof e.colorTextOpacityAfterBlur == "function" && (t._elementEvents.colorTextOpacityInput_onAfterBlur = e.colorTextOpacityAfterBlur), typeof e.colorBackSelectBeforeClick == "function" && (t._elementEvents.colorBackSelect_onBeforeClick = e.colorBackSelectBeforeClick), typeof e.colorBackSelectAfterClick == "function" && (t._elementEvents.colorBackSelect_onAfterClick = e.colorBackSelectAfterClick), typeof e.colorBackSelectBoxBeforeClick == "function" && (t._elementEvents.colorBackSelectBox_onBeforeClick = e.colorBackSelectBoxBeforeClick), typeof e.colorBackSelectBoxAfterClick == "function" && (t._elementEvents.colorBackSelectBox_onAfterClick = e.colorBackSelectBoxAfterClick), typeof e.colorBack0BeforeClick == "function" && (t._elementEvents.colorBack0_onBeforeClick = e.colorBack0BeforeClick), typeof e.colorBack0AfterClick == "function" && (t._elementEvents.colorBack0_onAfterClick = e.colorBack0AfterClick), typeof e.colorBack1BeforeClick == "function" && (t._elementEvents.colorBack1_onBeforeClick = e.colorBack1BeforeClick), typeof e.colorBack1AfterClick == "function" && (t._elementEvents.colorBack1_onAfterClick = e.colorBack1AfterClick), typeof e.colorBack2BeforeClick == "function" && (t._elementEvents.colorBack2_onBeforeClick = e.colorBack2BeforeClick), typeof e.colorBack2AfterClick == "function" && (t._elementEvents.colorBack2_onAfterClick = e.colorBack2AfterClick), typeof e.colorBack3BeforeClick == "function" && (t._elementEvents.colorBack3_onBeforeClick = e.colorBack3BeforeClick), typeof e.colorBack3AfterClick == "function" && (t._elementEvents.colorBack3_onAfterClick = e.colorBack3AfterClick), typeof e.colorBack4BeforeClick == "function" && (t._elementEvents.colorBack4_onBeforeClick = e.colorBack4BeforeClick), typeof e.colorBack4AfterClick == "function" && (t._elementEvents.colorBack4_onAfterClick = e.colorBack4AfterClick), typeof e.colorBack5BeforeClick == "function" && (t._elementEvents.colorBack5_onBeforeClick = e.colorBack5BeforeClick), typeof e.colorBack5AfterClick == "function" && (t._elementEvents.colorBack5_onAfterClick = e.colorBack5AfterClick), typeof e.colorBack6BeforeClick == "function" && (t._elementEvents.colorBack6_onBeforeClick = e.colorBack6BeforeClick), typeof e.colorBack6AfterClick == "function" && (t._elementEvents.colorBack6_onAfterClick = e.colorBack6AfterClick), typeof e.colorBack7BeforeClick == "function" && (t._elementEvents.colorBack7_onBeforeClick = e.colorBack7BeforeClick), typeof e.colorBack7AfterClick == "function" && (t._elementEvents.colorBack7_onAfterClick = e.colorBack7AfterClick), typeof e.colorBackRBeforeClick == "function" && (t._elementEvents.colorBackRInput_onBeforeClick = e.colorBackRBeforeClick), typeof e.colorBackRAfterClick == "function" && (t._elementEvents.colorBackRInput_onAfterClick = e.colorBackRAfterClick), typeof e.colorBackRBeforeInput == "function" && (t._elementEvents.colorBackRInput_onBeforeInput = e.colorBackRBeforeInput), typeof e.colorBackRAfterInput == "function" && (t._elementEvents.colorBackRInput_onAfterInput = e.colorBackRAfterInput), typeof e.colorBackRBeforeBlur == "function" && (t._elementEvents.colorBackRInput_onBeforeBlur = e.colorBackRBeforeBlur), typeof e.colorBackRAfterBlur == "function" && (t._elementEvents.colorBackRInput_onAfterBlur = e.colorBackRAfterBlur), typeof e.colorBackGBeforeClick == "function" && (t._elementEvents.colorBackGInput_onBeforeClick = e.colorBackGBeforeClick), typeof e.colorBackGAfterClick == "function" && (t._elementEvents.colorBackGInput_onAfterClick = e.colorBackGAfterClick), typeof e.colorBackGBeforeInput == "function" && (t._elementEvents.colorBackGInput_onBeforeInput = e.colorBackGBeforeInput), typeof e.colorBackGAfterInput == "function" && (t._elementEvents.colorBackGInput_onAfterInput = e.colorBackGAfterInput), typeof e.colorBackGBeforeBlur == "function" && (t._elementEvents.colorBackGInput_onBeforeBlur = e.colorBackGBeforeBlur), typeof e.colorBackGAfterBlur == "function" && (t._elementEvents.colorBackGInput_onAfterBlur = e.colorBackGAfterBlur), typeof e.colorBackBBeforeClick == "function" && (t._elementEvents.colorBackBInput_onBeforeClick = e.colorBackBBeforeClick), typeof e.colorBackBAfterClick == "function" && (t._elementEvents.colorBackBInput_onAfterClick = e.colorBackBAfterClick), typeof e.colorBackBBeforeInput == "function" && (t._elementEvents.colorBackBInput_onBeforeInput = e.colorBackBBeforeInput), typeof e.colorBackBAfterInput == "function" && (t._elementEvents.colorBackBInput_onAfterInput = e.colorBackBAfterInput), typeof e.colorBackBBeforeBlur == "function" && (t._elementEvents.colorBackBInput_onBeforeBlur = e.colorBackBBeforeBlur), typeof e.colorBackBAfterBlur == "function" && (t._elementEvents.colorBackBInput_onAfterBlur = e.colorBackBAfterBlur), typeof e.colorBackOpacityBeforeClick == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeClick = e.colorBackOpacityBeforeClick), typeof e.colorBackOpacityAfterClick == "function" && (t._elementEvents.colorBackOpacityInput_onAfterClick = e.colorBackOpacityAfterClick), typeof e.colorBackOpacityBeforeInput == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeInput = e.colorBackOpacityBeforeInput), typeof e.colorBackOpacityAfterInput == "function" && (t._elementEvents.colorBackOpacityInput_onAfterInput = e.colorBackOpacityAfterInput), typeof e.colorBackOpacityBeforeBlur == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeBlur = e.colorBackOpacityBeforeBlur), typeof e.colorBackOpacityAfterBlur == "function" && (t._elementEvents.colorBackOpacityInput_onAfterBlur = e.colorBackOpacityAfterBlur), typeof e.formatClearBeforeClick == "function" && (t._elementEvents.formatClearButton_onBeforeClick = e.formatClearBeforeClick), typeof e.formatClearAfterClick == "function" && (t._elementEvents.formatClearButton_onAfterClick = e.formatClearAfterClick), typeof e.undoBeforeClick == "function" && (t._elementEvents.undoButton_onBeforeClick = e.undoBeforeClick), typeof e.undoAfterClick == "function" && (t._elementEvents.undoButton_onAfterClick = e.undoAfterClick), typeof e.redoBeforeClick == "function" && (t._elementEvents.redoButton_onBeforeClick = e.redoBeforeClick), typeof e.redoAfterClick == "function" && (t._elementEvents.redoButton_onAfterClick = e.redoAfterClick), typeof e.helpBeforeClick == "function" && (t._elementEvents.helpButton_onBeforeClick = e.helpBeforeClick), typeof e.helpAfterClick == "function" && (t._elementEvents.helpButton_onAfterClick = e.helpAfterClick), typeof e.modalBackBeforeClick == "function" && (t._elementEvents.modalBack_onBeforeClick = e.modalBackBeforeClick), typeof e.modalBackAfterClick == "function" && (t._elementEvents.modalBack_onAfterClick = e.modalBackAfterClick), typeof e.attLinkModalBeforeClick == "function" && (t._elementEvents.attLinkModal_onBeforeClick = e.attLinkModalBeforeClick), typeof e.attLinkModalAfterClick == "function" && (t._elementEvents.attLinkModal_onAfterClick = e.attLinkModalAfterClick), typeof e.attLinkTextBeforeInput == "function" && (t._elementEvents.attLinkText_onBeforeInput = e.attLinkTextBeforeInput), typeof e.attLinkTextAfterInput == "function" && (t._elementEvents.attLinkText_onAfterInput = e.attLinkTextAfterInput), typeof e.attLinkTextBeforeBlur == "function" && (t._elementEvents.attLinkText_onBeforeBlur = e.attLinkTextBeforeBlur), typeof e.attLinkTextAfterBlur == "function" && (t._elementEvents.attLinkText_onAfterBlur = e.attLinkTextAfterBlur), typeof e.attLinkHrefBeforeInput == "function" && (t._elementEvents.attLinkHref_onBeforeInput = e.attLinkHrefBeforeInput), typeof e.attLinkHrefAfterInput == "function" && (t._elementEvents.attLinkHref_onAfterInput = e.attLinkHrefAfterInput), typeof e.attLinkHrefBeforeBlur == "function" && (t._elementEvents.attLinkHref_onBeforeBlur = e.attLinkHrefBeforeBlur), typeof e.attLinkHrefAfterBlur == "function" && (t._elementEvents.attLinkHref_onAfterBlur = e.attLinkHrefAfterBlur), typeof e.attLinkInsertBeforeClick == "function" && (t._elementEvents.attLinkInsertButton_onBeforeClick = e.attLinkInsertBeforeClick), typeof e.attLinkInsertAfterClick == "function" && (t._elementEvents.attLinkInsertButton_onAfterClick = e.attLinkInsertAfterClick), typeof e.attFileModalBeforeClick == "function" && (t._elementEvents.attFileModal_onBeforeClick = e.attFileModalBeforeClick), typeof e.attFileModalAfterClick == "function" && (t._elementEvents.attFileModal_onAfterClick = e.attFileModalAfterClick), typeof e.attFileUploadBeforeClick == "function" && (t._elementEvents.attFileUploadButton_onBeforeClick = e.attFileUploadBeforeClick), typeof e.attFileUploadAfterClick == "function" && (t._elementEvents.attFileUploadButton_onAfterClick = e.attFileUploadAfterClick), typeof e.attFileUploadDivBeforeDragover == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDragover = e.attFileUploadDivBeforeDragover), typeof e.attFileUploadDivAfterDragover == "function" && (t._elementEvents.attFileUploadDiv_onAfterDragover = e.attFileUploadDivAfterDragover), typeof e.attFileUploadDivBeforeDrop == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDrop = e.attFileUploadDivBeforeDrop), typeof e.attFileUploadDivAfterDrop == "function" && (t._elementEvents.attFileUploadDiv_onAfterDrop = e.attFileUploadDivAfterDrop), typeof e.attFileUploadDivBeforeClick == "function" && (t._elementEvents.attFileUploadDiv_onBeforeClick = e.attFileUploadDivBeforeClick), typeof e.attFileUploadDivAfterClick == "function" && (t._elementEvents.attFileUploadDiv_onAfterClick = e.attFileUploadDivAfterClick), typeof e.attFileUploadBeforeInput == "function" && (t._elementEvents.attFileUpload_onBeforeInput = e.attFileUploadBeforeInput), typeof e.attFileUploadAfterInput == "function" && (t._elementEvents.attFileUpload_onAfterInput = e.attFileUploadAfterInput), typeof e.attFileUploadBeforeBlur == "function" && (t._elementEvents.attFileUpload_onBeforeBlur = e.attFileUploadBeforeBlur), typeof e.attFileUploadAfterBlur == "function" && (t._elementEvents.attFileUpload_onAfterBlur = e.attFileUploadAfterBlur), typeof e.attFileInsertBeforeClick == "function" && (t._elementEvents.attFileInsertButton_onBeforeClick = e.attFileInsertBeforeClick), typeof e.attFileInsertAfterClick == "function" && (t._elementEvents.attFileInsertButton_onAfterClick = e.attFileInsertAfterClick), typeof e.attLinkTooltipEditBeforeClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onBeforeClick = e.attLinkTooltipEditBeforeClick), typeof e.attLinkTooltipEditAfterClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onAfterClick = e.attLinkTooltipEditAfterClick), typeof e.attLinkTooltipUnlinkBeforeClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick = e.attLinkTooltipUnlinkBeforeClick), typeof e.attLinkTooltipUnlinkAfterClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick = e.attLinkTooltipUnlinkAfterClick), typeof e.attImageModalBeforeClick == "function" && (t._elementEvents.attImageModal_onBeforeClick = e.attImageModalBeforeClick), typeof e.attImageModalAfterClick == "function" && (t._elementEvents.attImageModal_onAfterClick = e.attImageModalAfterClick), typeof e.attImageUploadViewBeforeDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDragover = e.attImageUploadViewBeforeDragover), typeof e.attImageUploadViewAfterDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDragover = e.attImageUploadViewAfterDragover), typeof e.attImageUploadViewBeforeDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDrop = e.attImageUploadViewBeforeDrop), typeof e.attImageUploadViewAfterDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDrop = e.attImageUploadViewAfterDrop), typeof e.attImageUploadViewBeforeClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeClick = e.attImageUploadViewBeforeClick), typeof e.attImageUploadViewAfterClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterClick = e.attImageUploadViewAfterClick), typeof e.attImageViewPreBeforeClick == "function" && (t._elementEvents.attImageViewPreButton_onBeforeClick = e.attImageViewPreBeforeClick), typeof e.attImageViewPreAfterClick == "function" && (t._elementEvents.attImageViewPreButton_onAfterClick = e.attImageViewPreAfterClick), typeof e.attImageViewNextBeforeClick == "function" && (t._elementEvents.attImageViewNextButton_onBeforeClick = e.attImageViewNextBeforeClick), typeof e.attImageViewNextAfterClick == "function" && (t._elementEvents.attImageViewNextButton_onAfterClick = e.attImageViewNextAfterClick), typeof e.attImageUploadBeforeInput == "function" && (t._elementEvents.attImageUpload_onBeforeInput = e.attImageUploadBeforeInput), typeof e.attImageUploadAfterInput == "function" && (t._elementEvents.attImageUpload_onAfterInput = e.attImageUploadAfterInput), typeof e.attImageUploadBeforeBlur == "function" && (t._elementEvents.attImageUpload_onBeforeBlur = e.attImageUploadBeforeBlur), typeof e.attImageUploadAfterBlur == "function" && (t._elementEvents.attImageUpload_onAfterBlur = e.attImageUploadAfterBlur), typeof e.attImageURLBeforeInput == "function" && (t._elementEvents.attImageURL_onBeforeInput = e.attImageURLBeforeInput), typeof e.attImageURLAfterInput == "function" && (t._elementEvents.attImageURL_onAfterInput = e.attImageURLAfterInput), typeof e.attImageURLBeforeBlur == "function" && (t._elementEvents.attImageURL_onBeforeBlur = e.attImageURLBeforeBlur), typeof e.attImageURLAfterBlur == "function" && (t._elementEvents.attImageURL_onAfterBlur = e.attImageURLAfterBlur), typeof e.attImageInsertBeforeClick == "function" && (t._elementEvents.attImageInsertButton_onBeforeClick = e.attImageInsertBeforeClick), typeof e.attImageInsertAfterClick == "function" && (t._elementEvents.attImageInsertButton_onAfterClick = e.attImageInsertAfterClick), typeof e.attVideoModalBeforeClick == "function" && (t._elementEvents.attVideoModal_onBeforeClick = e.attVideoModalBeforeClick), typeof e.attVideoModalAfterClick == "function" && (t._elementEvents.attVideoModal_onAfterClick = e.attVideoModalAfterClick), typeof e.attVideoEmbedIdBeforeInput == "function" && (t._elementEvents.attVideoEmbedId_onBeforeInput = e.attVideoEmbedIdBeforeInput), typeof e.attVideoEmbedIdAfterInput == "function" && (t._elementEvents.attVideoEmbedId_onAfterInput = e.attVideoEmbedIdAfterInput), typeof e.attVideoEmbedIdBeforeBlur == "function" && (t._elementEvents.attVideoEmbedId_onBeforeBlur = e.attVideoEmbedIdBeforeBlur), typeof e.attVideoEmbedIdAfterBlur == "function" && (t._elementEvents.attVideoEmbedId_onAfterBlur = e.attVideoEmbedIdAfterBlur), typeof e.attVideoWidthBeforeInput == "function" && (t._elementEvents.attVideoWidth_onBeforeInput = e.attVideoWidthBeforeInput), typeof e.attVideoWidthAfterInput == "function" && (t._elementEvents.attVideoWidth_onAfterInput = e.attVideoWidthAfterInput), typeof e.attVideoWidthBeforeBlur == "function" && (t._elementEvents.attVideoWidth_onBeforeBlur = e.attVideoWidthBeforeBlur), typeof e.attVideoWidthAfterBlur == "function" && (t._elementEvents.attVideoWidth_onAfterBlur = e.attVideoWidthAfterBlur), typeof e.attVideoHeightBeforeInput == "function" && (t._elementEvents.attVideoHeight_onBeforeInput = e.attVideoHeightBeforeInput), typeof e.attVideoHeightAfterInput == "function" && (t._elementEvents.attVideoHeight_onAfterInput = e.attVideoHeightAfterInput), typeof e.attVideoHeightBeforeBlur == "function" && (t._elementEvents.attVideoHeight_onBeforeBlur = e.attVideoHeightBeforeBlur), typeof e.attVideoHeightAfterBlur == "function" && (t._elementEvents.attVideoHeight_onAfterBlur = e.attVideoHeightAfterBlur), typeof e.attVideoInsertBeforeClick == "function" && (t._elementEvents.attVideoInsertButton_onBeforeClick = e.attVideoInsertBeforeClick), typeof e.attVideoInsertAfterClick == "function" && (t._elementEvents.attVideoInsertButton_onAfterClick = e.attVideoInsertAfterClick), typeof e.attImageAndVideoTooltipWidthBeforeInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput = e.attImageAndVideoTooltipWidthBeforeInput), typeof e.attImageAndVideoTooltipWidthAfterInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput = e.attImageAndVideoTooltipWidthAfterInput), typeof e.attImageAndVideoTooltipWidthBeforeBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur = e.attImageAndVideoTooltipWidthBeforeBlur), typeof e.attImageAndVideoTooltipWidthAfterBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur = e.attImageAndVideoTooltipWidthAfterBlur), typeof e.attImageAndVideoTooltipWidthBeforeKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup = e.attImageAndVideoTooltipWidthBeforeKeyup), typeof e.attImageAndVideoTooltipWidthAfterKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup = e.attImageAndVideoTooltipWidthAfterKeyup), typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick = e.attImageAndVideoTooltipFloatRadioNoneBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick = e.attImageAndVideoTooltipFloatRadioNoneAfterClick), typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick = e.attImageAndVideoTooltipFloatRadioLeftBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick = e.attImageAndVideoTooltipFloatRadioLeftAfterClick), typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick = e.attImageAndVideoTooltipFloatRadioRightBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick = e.attImageAndVideoTooltipFloatRadioRightAfterClick), typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick = e.attImageAndVideoTooltipShapeRadioSquareBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick = e.attImageAndVideoTooltipShapeRadioSquareAfterClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick = e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick = e.attImageAndVideoTooltipShapeRadioRadiusAfterClick), typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick = e.attImageAndVideoTooltipShapeRadioCircleBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick = e.attImageAndVideoTooltipShapeRadioCircleAfterClick), typeof e.helpModalBeforeClick == "function" && (t._elementEvents.helpModal_onBeforeClick = e.helpModalBeforeClick), typeof e.helpModalAfterClick == "function" && (t._elementEvents.helpModal_onAfterClick = e.helpModalAfterClick), typeof e.placeholderBeforeClick == "function" && (t._elementEvents.placeholder_onBeforeClick = e.placeholderBeforeClick), typeof e.placeholderAfterClick == "function" && (t._elementEvents.placeholder_onAfterClick = e.placeholderAfterClick)), E(), I("mounted", t);
884
+ }, D = () => {
885
+ de(x), k.value && (m.unmountNote(k.value), H.disconnect());
886
+ };
887
+ return J(U), $(D), c(S, (o) => {
888
+ a(), I("responsive-change", o);
889
+ }), c(() => e.modelValue, (o) => {
890
+ if (!r.value) return;
891
+ const t = r.value.getNoteData();
892
+ P(t, o) || r.value.setNoteData(o);
893
+ }), c(() => e.visible, (o) => {
894
+ const t = !!o;
895
+ t !== g.value && (g.value = t);
896
+ }), c(() => e.editMode, (o) => {
897
+ o && o !== B.value && (B.value = o, E());
898
+ }), c(() => e.required, (o) => {
899
+ const t = !!o;
900
+ t !== _.value && (_.value = t);
901
+ }), c(() => e.tabIndex, (o) => {
902
+ var l, n;
903
+ const t = o === null || o === "" ? null : Number(o);
904
+ if (t !== C.value) {
905
+ C.value = t;
906
+ const i = (n = (l = r.value) == null ? void 0 : l._elements) == null ? void 0 : n.textarea;
907
+ i && (t == null ? i.removeAttribute("tabIndex") : i.setAttribute("tabIndex", String(t)));
908
+ }
909
+ }), c(() => e.class, () => {
910
+ a();
911
+ }), c(() => [e.noteModeByDevice, e.toolPosition, e.toolDefaultLine, e.toolToggle], () => a()), c(() => [e.textareaWidth, e.textareaHeight, e.textareaMaxWidth, e.textareaMaxHeight, e.textareaHeightIsModify], () => a()), c(() => [e.placeholderIsVisible, e.placeholderAddTop, e.placeholderAddLeft, e.placeholderWidth, e.placeholderColor, e.placeholderBackgroundColor, e.placeholderTitle, e.placeholderTextContent], () => a()), c(() => [e.attFilePreventTypes, e.attFileAcceptTypes, e.attFileMaxSize, e.attImagePreventTypes, e.attImageAcceptTypes, e.attImageMaxSize], () => a()), c(() => [e.defaultFontSize, e.defaultLineHeight, e.defaultFontFamily, e.defaultToolFontFamily, e.addFontFamily, e.removeFontFamily, e.language, e.recodeLimit], () => a()), c(() => [e.sizeLevelDesktop, e.sizeLevelMobile, e.color, e.invertColor], () => a()), c(() => [e.usingParagraphStyle, e.usingBold, e.usingUnderline, e.usingItalic, e.usingUl, e.usingOl, e.usingTextAlign, e.usingAttLink, e.usingAttFile, e.usingAttImage, e.usingAttVideo, e.usingFontSize, e.usingLetterSpacing, e.usingLineHeight, e.usingFontFamily, e.usingColorText, e.usingColorBack, e.usingFormatClear, e.usingUndo, e.usingRedo, e.usingHelp, e.usingParagraphAllStyle, e.usingCharacterStyle, e.usingCharacterSize, e.usingAttachFile, e.usingDo], () => a()), {
912
+ editorWrap: k,
913
+ props: e,
914
+ bindAttrs: W,
915
+ responsiveClassList: R,
916
+ visibleClass: N,
917
+ requiredClass: M,
918
+ editModeClass: z
919
+ };
920
+ }
921
+ });
922
+ function ge(e, I, m, k, r, d) {
923
+ return Q(), Z("div", {
924
+ ref: "editorWrap",
925
+ class: ee(["hison-note", "hison-wrap", ...e.responsiveClassList, e.visibleClass, e.requiredClass, e.editModeClass]),
926
+ style: p(e.props.style)
927
+ }, [
928
+ te("div", ne({ "data-vanillanote": "" }, e.bindAttrs), null, 16)
929
+ ], 6);
930
+ }
931
+ const Fe = /* @__PURE__ */ Ce(_e, [["render", ge]]);
932
+ export {
933
+ Fe as default
934
+ };