origam 2.38.1 → 2.38.2

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 (228) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/src/assets/locales/en.json +1 -1
  3. package/dist/src/assets/locales/fr.json +2 -2
  4. package/dist/src/components/Alert/OrigamAlert.vue +739 -165
  5. package/dist/src/components/App/OrigamApp.vue +95 -19
  6. package/dist/src/components/App/OrigamAppBar.vue +751 -158
  7. package/dist/src/components/Audio/OrigamAudio.vue +1288 -346
  8. package/dist/src/components/Audio/OrigamAudioWaveform.vue +63 -7
  9. package/dist/src/components/Avatar/OrigamAvatar.vue +678 -126
  10. package/dist/src/components/Avatar/OrigamAvatarGroup.vue +700 -153
  11. package/dist/src/components/Badge/OrigamBadge.vue +548 -135
  12. package/dist/src/components/Blockquote/OrigamBlockquote.vue +698 -140
  13. package/dist/src/components/BottomNav/OrigamBottomNav.vue +864 -156
  14. package/dist/src/components/Bracket/OrigamBracket.vue +1013 -380
  15. package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +674 -154
  16. package/dist/src/components/Bracket/OrigamBracketMatch.vue +663 -163
  17. package/dist/src/components/Bracket/OrigamBracketRound.vue +116 -34
  18. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +654 -119
  19. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +292 -54
  20. package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +657 -126
  21. package/dist/src/components/Btn/OrigamBtn.vue +928 -249
  22. package/dist/src/components/Btn/OrigamBtnGroup.vue +658 -141
  23. package/dist/src/components/Btn/OrigamBtnToggle.vue +578 -91
  24. package/dist/src/components/Calendar/OrigamCalendar.vue +1142 -484
  25. package/dist/src/components/Card/OrigamCard.vue +938 -194
  26. package/dist/src/components/Card/OrigamCardHeader.vue +593 -104
  27. package/dist/src/components/Card/OrigamCardText.vue +536 -84
  28. package/dist/src/components/Carousel/OrigamCarousel.vue +778 -202
  29. package/dist/src/components/Carousel/OrigamCarouselItem.vue +660 -109
  30. package/dist/src/components/Chart/OrigamChart.vue +942 -452
  31. package/dist/src/components/Chart/OrigamChartAxis.vue +111 -19
  32. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +713 -297
  33. package/dist/src/components/Chart/OrigamChartBullet.vue +701 -286
  34. package/dist/src/components/Chart/OrigamChartCandlestick.vue +663 -243
  35. package/dist/src/components/Chart/OrigamChartCartesian.vue +1055 -487
  36. package/dist/src/components/Chart/OrigamChartGauge.vue +563 -164
  37. package/dist/src/components/Chart/OrigamChartHeatmap.vue +677 -251
  38. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +700 -288
  39. package/dist/src/components/Chart/OrigamChartLegend.vue +108 -16
  40. package/dist/src/components/Chart/OrigamChartMap.vue +723 -299
  41. package/dist/src/components/Chart/OrigamChartPareto.vue +721 -276
  42. package/dist/src/components/Chart/OrigamChartPictorial.vue +777 -355
  43. package/dist/src/components/Chart/OrigamChartPolar.vue +603 -210
  44. package/dist/src/components/Chart/OrigamChartPolarBar.vue +674 -271
  45. package/dist/src/components/Chart/OrigamChartPyramid.vue +685 -250
  46. package/dist/src/components/Chart/OrigamChartRadar.vue +515 -165
  47. package/dist/src/components/Chart/OrigamChartRangeSelector.vue +50 -25
  48. package/dist/src/components/Chart/OrigamChartSankey.vue +913 -467
  49. package/dist/src/components/Chart/OrigamChartSparkline.vue +711 -268
  50. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +810 -368
  51. package/dist/src/components/Chart/OrigamChartSunburst.vue +779 -368
  52. package/dist/src/components/Chart/OrigamChartTooltip.vue +78 -19
  53. package/dist/src/components/Chart/OrigamChartTreemap.vue +750 -288
  54. package/dist/src/components/Chart/OrigamChartVariwide.vue +679 -251
  55. package/dist/src/components/Chart/OrigamChartWordCloud.vue +674 -265
  56. package/dist/src/components/Checkbox/OrigamCheckbox.vue +781 -136
  57. package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +465 -81
  58. package/dist/src/components/Checkbox/OrigamCheckboxGroup.vue +824 -137
  59. package/dist/src/components/Chip/OrigamChip.vue +867 -202
  60. package/dist/src/components/Chip/OrigamChipGroup.vue +633 -121
  61. package/dist/src/components/ClientOnly/OrigamClientOnly.vue +30 -4
  62. package/dist/src/components/Clipboard/OrigamClipboard.vue +624 -105
  63. package/dist/src/components/Code/OrigamCode.vue +844 -206
  64. package/dist/src/components/CodeGroup/OrigamCodeGroup.vue +494 -83
  65. package/dist/src/components/ColorPicker/OrigamColorPicker.vue +777 -159
  66. package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +295 -181
  67. package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +108 -45
  68. package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +131 -46
  69. package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +128 -39
  70. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +1123 -258
  71. package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +415 -162
  72. package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +389 -145
  73. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +852 -147
  74. package/dist/src/components/Counter/OrigamCounter.vue +588 -96
  75. package/dist/src/components/DataList/OrigamDataList.vue +619 -113
  76. package/dist/src/components/DataList/OrigamDataText.vue +295 -65
  77. package/dist/src/components/DataList/OrigamDataTitle.vue +295 -65
  78. package/dist/src/components/DataTable/OrigamDataTable.vue +934 -222
  79. package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +196 -51
  80. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +319 -78
  81. package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +124 -44
  82. package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +181 -70
  83. package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +155 -46
  84. package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +145 -27
  85. package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +126 -43
  86. package/dist/src/components/DataTable/OrigamDataTableRow.vue +151 -73
  87. package/dist/src/components/DataTable/OrigamDataTableRows.vue +261 -106
  88. package/dist/src/components/DatePicker/OrigamDatePicker.vue +1048 -261
  89. package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +155 -51
  90. package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +147 -46
  91. package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +312 -134
  92. package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +151 -61
  93. package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +154 -67
  94. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1147 -306
  95. package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +74 -14
  96. package/dist/src/components/Dialog/OrigamDialog.vue +953 -196
  97. package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +886 -148
  98. package/dist/src/components/Divider/OrigamDivider.vue +210 -50
  99. package/dist/src/components/Drawer/OrigamDrawer.vue +909 -207
  100. package/dist/src/components/EmptyState/OrigamEmptyState.vue +146 -35
  101. package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +746 -159
  102. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +591 -95
  103. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +663 -143
  104. package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +675 -134
  105. package/dist/src/components/Field/OrigamField.vue +1118 -306
  106. package/dist/src/components/FileField/OrigamFileField.vue +1188 -311
  107. package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +155 -36
  108. package/dist/src/components/FileField/OrigamFileFieldListItem.vue +155 -36
  109. package/dist/src/components/Form/OrigamForm.vue +197 -74
  110. package/dist/src/components/Grid/OrigamGrid.vue +707 -147
  111. package/dist/src/components/Grid/OrigamGridItem.vue +110 -37
  112. package/dist/src/components/Grids/OrigamCol.vue +593 -110
  113. package/dist/src/components/Grids/OrigamContainer.vue +461 -80
  114. package/dist/src/components/Grids/OrigamRow.vue +573 -112
  115. package/dist/src/components/Grids/OrigamSpacer.vue +54 -17
  116. package/dist/src/components/Icon/OrigamClassIcon.vue +573 -98
  117. package/dist/src/components/Icon/OrigamComponentIcon.vue +561 -101
  118. package/dist/src/components/Icon/OrigamIcon.vue +561 -98
  119. package/dist/src/components/Icon/OrigamLigatureIcon.vue +558 -98
  120. package/dist/src/components/Icon/OrigamSvgIcon.vue +593 -100
  121. package/dist/src/components/Img/OrigamImg.vue +869 -228
  122. package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +319 -111
  123. package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +80 -17
  124. package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +476 -140
  125. package/dist/src/components/Input/OrigamInput.vue +747 -180
  126. package/dist/src/components/ItemGroup/OrigamItemGroup.vue +112 -36
  127. package/dist/src/components/ItemGroup/OrigamItemGroupItem.vue +80 -29
  128. package/dist/src/components/Kbd/OrigamKbd.vue +450 -75
  129. package/dist/src/components/Label/OrigamLabel.vue +584 -95
  130. package/dist/src/components/Layout/OrigamLayout.vue +563 -94
  131. package/dist/src/components/Lazy/OrigamLazy.vue +131 -34
  132. package/dist/src/components/List/OrigamList.vue +755 -170
  133. package/dist/src/components/List/OrigamListChildren.vue +59 -19
  134. package/dist/src/components/List/OrigamListGroup.vue +631 -134
  135. package/dist/src/components/List/OrigamListGroupActivator.vue +45 -17
  136. package/dist/src/components/List/OrigamListItem.vue +890 -224
  137. package/dist/src/components/List/OrigamListItemWrapper.vue +20 -10
  138. package/dist/src/components/List/OrigamListSubheader.vue +542 -93
  139. package/dist/src/components/Loader/OrigamLoader.vue +110 -25
  140. package/dist/src/components/Main/OrigamMain.vue +565 -96
  141. package/dist/src/components/Masonry/OrigamMasonry.vue +799 -187
  142. package/dist/src/components/Media/OrigamMediaController.vue +465 -182
  143. package/dist/src/components/Media/OrigamMediaScrubber.vue +389 -152
  144. package/dist/src/components/Media/OrigamMediaVolumeControl.vue +174 -44
  145. package/dist/src/components/Menu/OrigamMenu.vue +1079 -255
  146. package/dist/src/components/Messages/OrigamMessages.vue +606 -97
  147. package/dist/src/components/NumberField/OrigamNumberField.vue +1208 -333
  148. package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +177 -57
  149. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1016 -272
  150. package/dist/src/components/Overlay/OrigamOverlay.vue +446 -158
  151. package/dist/src/components/Overlay/OrigamOverlayScrim.vue +122 -30
  152. package/dist/src/components/Pagination/OrigamPagination.vue +982 -313
  153. package/dist/src/components/Parallax/OrigamParallax.vue +800 -259
  154. package/dist/src/components/Parallax/OrigamParallaxElement.vue +694 -178
  155. package/dist/src/components/Parallax/OrigamParallaxLayer.vue +132 -47
  156. package/dist/src/components/PasswordField/OrigamPasswordField.vue +1098 -265
  157. package/dist/src/components/Picker/OrigamPicker.vue +655 -108
  158. package/dist/src/components/Picker/OrigamPickerTitle.vue +108 -26
  159. package/dist/src/components/Progress/OrigamProgress.vue +436 -70
  160. package/dist/src/components/Progress/OrigamProgressCircular.vue +399 -82
  161. package/dist/src/components/Progress/OrigamProgressLinear.vue +468 -115
  162. package/dist/src/components/QrCode/OrigamQrCode.vue +642 -126
  163. package/dist/src/components/Radio/OrigamRadio.vue +772 -132
  164. package/dist/src/components/Radio/OrigamRadioBtn.vue +446 -71
  165. package/dist/src/components/Radio/OrigamRadioGroup.vue +808 -135
  166. package/dist/src/components/RatingField/OrigamRatingField.vue +963 -194
  167. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +657 -106
  168. package/dist/src/components/Responsive/OrigamResponsive.vue +548 -91
  169. package/dist/src/components/Select/OrigamSelect.vue +1639 -567
  170. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +564 -151
  171. package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +178 -62
  172. package/dist/src/components/Sheet/OrigamSheet.vue +773 -199
  173. package/dist/src/components/Skeleton/OrigamSkeleton.vue +249 -46
  174. package/dist/src/components/Skeleton/OrigamSkeletonGroup.vue +66 -11
  175. package/dist/src/components/Slide/OrigamSlideGroup.vue +772 -257
  176. package/dist/src/components/SliderField/OrigamSliderField.vue +1157 -335
  177. package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +236 -112
  178. package/dist/src/components/Snackbar/OrigamSnackbar.vue +871 -214
  179. package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +218 -51
  180. package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +175 -43
  181. package/dist/src/components/Stepper/OrigamStepper.vue +618 -126
  182. package/dist/src/components/Stepper/OrigamStepperItem.vue +98 -37
  183. package/dist/src/components/Switch/OrigamSwitch.vue +879 -156
  184. package/dist/src/components/Switch/OrigamSwitchTrack.vue +431 -78
  185. package/dist/src/components/SystemBar/OrigamSystemBar.vue +517 -87
  186. package/dist/src/components/Table/OrigamTable.vue +585 -124
  187. package/dist/src/components/Tabs/OrigamTab.vue +239 -73
  188. package/dist/src/components/Tabs/OrigamTabPanel.vue +125 -39
  189. package/dist/src/components/Tabs/OrigamTabPanels.vue +148 -57
  190. package/dist/src/components/Tabs/OrigamTabs.vue +381 -109
  191. package/dist/src/components/TextField/OrigamTextField.vue +1077 -258
  192. package/dist/src/components/TextMask/OrigamTextMask.vue +150 -43
  193. package/dist/src/components/TextareaField/OrigamTextareaField.vue +1162 -310
  194. package/dist/src/components/TextareaField/OrigamTextareaFieldRichToolbar.vue +77 -79
  195. package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +44 -9
  196. package/dist/src/components/Timeline/OrigamTimeline.vue +113 -43
  197. package/dist/src/components/Timeline/OrigamTimelineItem.vue +163 -76
  198. package/dist/src/components/Title/OrigamTitle.vue +505 -82
  199. package/dist/src/components/Toolbar/OrigamToolbar.vue +679 -142
  200. package/dist/src/components/Tooltip/OrigamTooltip.vue +288 -72
  201. package/dist/src/components/Transition/OrigamExpandX.vue +219 -106
  202. package/dist/src/components/Transition/OrigamExpandY.vue +219 -106
  203. package/dist/src/components/Transition/OrigamFade.vue +47 -9
  204. package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +52 -10
  205. package/dist/src/components/Transition/OrigamScaleRotate.vue +52 -10
  206. package/dist/src/components/Transition/OrigamSlideX.vue +52 -10
  207. package/dist/src/components/Transition/OrigamSlideY.vue +52 -10
  208. package/dist/src/components/Transition/OrigamSnack.vue +52 -10
  209. package/dist/src/components/Transition/OrigamTransition.vue +40 -12
  210. package/dist/src/components/Transition/OrigamTranslateBottom.vue +52 -10
  211. package/dist/src/components/Transition/OrigamTranslatePicker.vue +52 -10
  212. package/dist/src/components/Transition/OrigamTranslateScale.vue +209 -97
  213. package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +40 -7
  214. package/dist/src/components/Transition/OrigamWindowXTranslate.vue +40 -7
  215. package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +40 -7
  216. package/dist/src/components/Transition/OrigamWindowYTranslate.vue +40 -7
  217. package/dist/src/components/Treeview/OrigamTreeview.vue +258 -118
  218. package/dist/src/components/Treeview/OrigamTreeviewNode.vue +126 -88
  219. package/dist/src/components/Video/OrigamVideo.vue +1178 -331
  220. package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +147 -55
  221. package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +94 -19
  222. package/dist/src/components/Watermark/OrigamWatermark.vue +224 -124
  223. package/dist/src/components/Window/OrigamWindow.vue +745 -175
  224. package/dist/src/components/Window/OrigamWindowItem.vue +162 -69
  225. package/dist/src/composables/Commons/display.composable.cjs +2 -0
  226. package/dist/src/composables/Commons/display.composable.js +1 -1
  227. package/dist/src/interfaces/Pagination/pagination.interface.d.ts +1 -1
  228. package/package.json +6 -6
@@ -250,18 +250,7 @@
250
250
  </template>
251
251
 
252
252
  <script lang="ts" setup>
253
- import {
254
- computed,
255
- nextTick,
256
- onBeforeUnmount,
257
- ref,
258
- shallowRef,
259
- StyleValue,
260
- toRef,
261
- useAttrs,
262
- useSlots,
263
- watch
264
- } from "vue";
253
+ import { computed, nextTick, onBeforeUnmount, ref, shallowRef, StyleValue, toRef, useAttrs, useSlots, watch } from "vue";
265
254
  import OrigamCounter from "../Counter/OrigamCounter.vue";
266
255
  import OrigamField from "../Field/OrigamField.vue";
267
256
  import OrigamInput from "../Input/OrigamInput.vue";
@@ -290,170 +279,859 @@ import { filterInputAttrs } from "../../utils/Input/input.util";
290
279
  import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
291
280
  import { htmlToMarkdown } from "../../utils/TextareaField/html-to-markdown.util";
292
281
  import { sanitizeHtml } from "../../utils/TextareaField/sanitize-html.util";
282
+ /*********************************************************
283
+ * Global
284
+ ********************************************************/
293
285
  const props = defineProps({
294
- autoGrow: { type: Boolean, required: false },
295
- autofocus: { type: Boolean, required: false },
296
- counter: { type: [Boolean, Number, String], required: false },
297
- counterValue: { type: [Number, Function], required: false },
298
- persistentClear: { type: Boolean, required: false },
299
- prefix: { type: String, required: false },
300
- placeholder: { type: String, required: false },
301
- persistentPlaceholder: { type: Boolean, required: false },
302
- persistentCounter: { type: Boolean, required: false },
303
- noResize: { type: Boolean, required: false },
304
- rows: { type: [Number, String], required: false, default: 3 },
305
- maxRows: { type: [Number, String], required: false },
306
- suffix: { type: String, required: false },
307
- modelModifiers: { type: [String, Boolean], required: false },
308
- mode: { type: null, required: false, default: TEXTAREA_MODE.PLAIN },
309
- output: { type: null, required: false, default: TEXTAREA_OUTPUT.HTML },
310
- toolbar: { type: [Array, Boolean], required: false, default: () => DEFAULT_TOOLBAR },
311
- toolbarPosition: { type: null, required: false, default: TEXTAREA_TOOLBAR_POSITION.TOP },
312
- id: { type: String, required: false },
313
- class: { type: [String, Array, Object], required: false },
314
- style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
315
- color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
316
- density: { type: null, required: false, default: DENSITY.DEFAULT },
317
- centerAffix: { type: Boolean, required: false },
318
- dirty: { type: Boolean, required: false },
319
- disabled: { type: Boolean, required: false },
320
- error: { type: [String, Boolean], required: false },
321
- inline: { type: Boolean, required: false },
322
- label: { type: String, required: false },
323
- singleLine: { type: Boolean, required: false },
324
- required: { type: Boolean, required: false },
325
- loading: { type: [Boolean, Number, Object], required: false },
326
- loadingText: { type: String, required: false },
327
- tag: { type: String, required: false },
328
- bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
329
- appendInnerAvatar: { type: String, required: false },
330
- appendInnerIcon: { type: null, required: false },
331
- prependInnerAvatar: { type: String, required: false },
332
- prependInnerIcon: { type: null, required: false },
333
- clearIcon: { type: null, required: false, default: MDI_ICONS.CLOSE_CIRCLE_OUTLINE },
334
- clearable: { type: Boolean, required: false },
335
- prependInnerAriaLabel: { type: String, required: false },
336
- appendInnerAriaLabel: { type: String, required: false },
337
- border: { type: [Boolean, Number, String, Array], required: false, skipCheck: true },
338
- borderTop: { type: [Boolean, Number, String], required: false },
339
- borderLeft: { type: [Boolean, Number, String], required: false },
340
- borderBottom: { type: [Boolean, Number, String], required: false },
341
- borderRight: { type: [Boolean, Number, String], required: false },
342
- borderBlock: { type: [Boolean, Number, String], required: false },
343
- borderInline: { type: [Boolean, Number, String], required: false },
344
- borderInlineStart: { type: [Boolean, Number, String], required: false },
345
- borderInlineEnd: { type: [Boolean, Number, String], required: false },
346
- borderBlockStart: { type: [Boolean, Number, String], required: false },
347
- borderBlockEnd: { type: [Boolean, Number, String], required: false },
348
- borderColor: { type: String, required: false },
349
- borderStyle: { type: String, required: false },
350
- borderTopColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
351
- borderRightColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
352
- borderBottomColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
353
- borderLeftColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
354
- borderInlineStartColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
355
- borderInlineEndColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
356
- borderBlockStartColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
357
- borderBlockEndColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
358
- focused: { type: Boolean, required: false },
359
- text: { type: String, required: false },
360
- floating: { type: Boolean, required: false },
361
- name: { type: String, required: false },
362
- margin: { type: [Boolean, Number, String], required: false },
363
- marginTop: { type: [Boolean, Number, String], required: false },
364
- marginLeft: { type: [Boolean, Number, String], required: false },
365
- marginBottom: { type: [Boolean, Number, String], required: false },
366
- marginRight: { type: [Boolean, Number, String], required: false },
367
- marginBlock: { type: [Boolean, Number, String], required: false },
368
- marginInline: { type: [Boolean, Number, String], required: false },
369
- marginInlineStart: { type: [Boolean, Number, String], required: false },
370
- marginInlineEnd: { type: [Boolean, Number, String], required: false },
371
- marginBlockStart: { type: [Boolean, Number, String], required: false },
372
- marginBlockEnd: { type: [Boolean, Number, String], required: false },
373
- padding: { type: [Boolean, Number, String], required: false },
374
- paddingTop: { type: [Boolean, Number, String], required: false },
375
- paddingLeft: { type: [Boolean, Number, String], required: false },
376
- paddingBottom: { type: [Boolean, Number, String], required: false },
377
- paddingRight: { type: [Boolean, Number, String], required: false },
378
- paddingBlock: { type: [Boolean, Number, String], required: false },
379
- paddingInline: { type: [Boolean, Number, String], required: false },
380
- paddingInlineStart: { type: [Boolean, Number, String], required: false },
381
- paddingInlineEnd: { type: [Boolean, Number, String], required: false },
382
- paddingBlockStart: { type: [Boolean, Number, String], required: false },
383
- paddingBlockEnd: { type: [Boolean, Number, String], required: false },
384
- rounded: { type: [Boolean, Number, String, null], required: false, skipCheck: true, default: true },
385
- roundedTopRight: { type: [Boolean, Number, String], required: false },
386
- roundedTopLeft: { type: [Boolean, Number, String], required: false },
387
- roundedBottomLeft: { type: [Boolean, Number, String], required: false },
388
- roundedBottomRight: { type: [Boolean, Number, String], required: false },
389
- roundedStartStart: { type: [Boolean, Number, String], required: false },
390
- roundedStartEnd: { type: [Boolean, Number, String], required: false },
391
- roundedEndStart: { type: [Boolean, Number, String], required: false },
392
- roundedEndEnd: { type: [Boolean, Number, String], required: false },
393
- fontSize: { type: null, required: false },
394
- fontWeight: { type: null, required: false },
395
- lineHeight: { type: null, required: false },
396
- letterSpacing: { type: null, required: false },
397
- active: { type: [Boolean, Object], required: false },
398
- activeClass: { type: String, required: false },
399
- variant: { type: null, required: false },
400
- elevation: { type: [Number, String], required: false },
401
- size: { type: null, required: false },
402
- hideDetails: { type: [Boolean, String], required: false },
403
- hideSpinButtons: { type: Boolean, required: false },
404
- hint: { type: String, required: false },
405
- persistentHint: { type: Boolean, required: false },
406
- messages: { type: [Array, String], required: false },
407
- height: { type: [Number, String], required: false },
408
- maxHeight: { type: [Number, String], required: false },
409
- maxWidth: { type: [Number, String], required: false },
410
- minHeight: { type: [Number, String], required: false },
411
- minWidth: { type: [Number, String], required: false },
412
- width: { type: [Number, String], required: false },
413
- direction: { type: null, required: false },
414
- errorMessages: { type: [Array, String], required: false },
415
- maxErrors: { type: [Number, String], required: false },
416
- readonly: { type: Boolean, required: false },
417
- rules: { type: Array, required: false },
418
- modelValue: { type: null, required: false },
419
- validateOn: { type: null, required: false },
420
- validationValue: { type: null, required: false },
421
- appendAvatar: { type: String, required: false },
422
- appendIcon: { type: null, required: false },
423
- prependAvatar: { type: String, required: false },
424
- prependIcon: { type: null, required: false },
425
- prependAriaLabel: { type: String, required: false },
426
- appendAriaLabel: { type: String, required: false }
286
+ autoGrow: {
287
+ type: Boolean,
288
+ required: false
289
+ },
290
+ autofocus: {
291
+ type: Boolean,
292
+ required: false
293
+ },
294
+ counter: {
295
+ type: [
296
+ Boolean,
297
+ Number,
298
+ String
299
+ ],
300
+ required: false
301
+ },
302
+ counterValue: {
303
+ type: [Number, Function],
304
+ required: false
305
+ },
306
+ persistentClear: {
307
+ type: Boolean,
308
+ required: false
309
+ },
310
+ prefix: {
311
+ type: String,
312
+ required: false
313
+ },
314
+ placeholder: {
315
+ type: String,
316
+ required: false
317
+ },
318
+ persistentPlaceholder: {
319
+ type: Boolean,
320
+ required: false
321
+ },
322
+ persistentCounter: {
323
+ type: Boolean,
324
+ required: false
325
+ },
326
+ noResize: {
327
+ type: Boolean,
328
+ required: false
329
+ },
330
+ rows: {
331
+ type: [Number, String],
332
+ required: false,
333
+ default: 3
334
+ },
335
+ maxRows: {
336
+ type: [Number, String],
337
+ required: false
338
+ },
339
+ suffix: {
340
+ type: String,
341
+ required: false
342
+ },
343
+ modelModifiers: {
344
+ type: [String, Boolean],
345
+ required: false
346
+ },
347
+ mode: {
348
+ type: null,
349
+ required: false,
350
+ default: TEXTAREA_MODE.PLAIN
351
+ },
352
+ output: {
353
+ type: null,
354
+ required: false,
355
+ default: TEXTAREA_OUTPUT.HTML
356
+ },
357
+ toolbar: {
358
+ type: [Array, Boolean],
359
+ required: false,
360
+ default: () => DEFAULT_TOOLBAR
361
+ },
362
+ toolbarPosition: {
363
+ type: null,
364
+ required: false,
365
+ default: TEXTAREA_TOOLBAR_POSITION.TOP
366
+ },
367
+ id: {
368
+ type: String,
369
+ required: false
370
+ },
371
+ class: {
372
+ type: [
373
+ String,
374
+ Array,
375
+ Object
376
+ ],
377
+ required: false
378
+ },
379
+ style: {
380
+ type: [
381
+ String,
382
+ Array,
383
+ Object,
384
+ Boolean,
385
+ null
386
+ ],
387
+ required: false,
388
+ skipCheck: true
389
+ },
390
+ color: {
391
+ type: [
392
+ String,
393
+ Object,
394
+ Boolean,
395
+ null
396
+ ],
397
+ required: false,
398
+ skipCheck: true
399
+ },
400
+ density: {
401
+ type: null,
402
+ required: false,
403
+ default: DENSITY.DEFAULT
404
+ },
405
+ centerAffix: {
406
+ type: Boolean,
407
+ required: false
408
+ },
409
+ dirty: {
410
+ type: Boolean,
411
+ required: false
412
+ },
413
+ disabled: {
414
+ type: Boolean,
415
+ required: false
416
+ },
417
+ error: {
418
+ type: [String, Boolean],
419
+ required: false
420
+ },
421
+ inline: {
422
+ type: Boolean,
423
+ required: false
424
+ },
425
+ label: {
426
+ type: String,
427
+ required: false
428
+ },
429
+ singleLine: {
430
+ type: Boolean,
431
+ required: false
432
+ },
433
+ required: {
434
+ type: Boolean,
435
+ required: false
436
+ },
437
+ loading: {
438
+ type: [
439
+ Boolean,
440
+ Number,
441
+ Object
442
+ ],
443
+ required: false
444
+ },
445
+ loadingText: {
446
+ type: String,
447
+ required: false
448
+ },
449
+ tag: {
450
+ type: String,
451
+ required: false
452
+ },
453
+ bgColor: {
454
+ type: [
455
+ String,
456
+ Object,
457
+ Boolean,
458
+ null
459
+ ],
460
+ required: false,
461
+ skipCheck: true
462
+ },
463
+ appendInnerAvatar: {
464
+ type: String,
465
+ required: false
466
+ },
467
+ appendInnerIcon: {
468
+ type: null,
469
+ required: false
470
+ },
471
+ prependInnerAvatar: {
472
+ type: String,
473
+ required: false
474
+ },
475
+ prependInnerIcon: {
476
+ type: null,
477
+ required: false
478
+ },
479
+ clearIcon: {
480
+ type: null,
481
+ required: false,
482
+ default: MDI_ICONS.CLOSE_CIRCLE_OUTLINE
483
+ },
484
+ clearable: {
485
+ type: Boolean,
486
+ required: false
487
+ },
488
+ prependInnerAriaLabel: {
489
+ type: String,
490
+ required: false
491
+ },
492
+ appendInnerAriaLabel: {
493
+ type: String,
494
+ required: false
495
+ },
496
+ border: {
497
+ type: [
498
+ Boolean,
499
+ Number,
500
+ String,
501
+ Array
502
+ ],
503
+ required: false,
504
+ skipCheck: true
505
+ },
506
+ borderTop: {
507
+ type: [
508
+ Boolean,
509
+ Number,
510
+ String
511
+ ],
512
+ required: false
513
+ },
514
+ borderLeft: {
515
+ type: [
516
+ Boolean,
517
+ Number,
518
+ String
519
+ ],
520
+ required: false
521
+ },
522
+ borderBottom: {
523
+ type: [
524
+ Boolean,
525
+ Number,
526
+ String
527
+ ],
528
+ required: false
529
+ },
530
+ borderRight: {
531
+ type: [
532
+ Boolean,
533
+ Number,
534
+ String
535
+ ],
536
+ required: false
537
+ },
538
+ borderBlock: {
539
+ type: [
540
+ Boolean,
541
+ Number,
542
+ String
543
+ ],
544
+ required: false
545
+ },
546
+ borderInline: {
547
+ type: [
548
+ Boolean,
549
+ Number,
550
+ String
551
+ ],
552
+ required: false
553
+ },
554
+ borderInlineStart: {
555
+ type: [
556
+ Boolean,
557
+ Number,
558
+ String
559
+ ],
560
+ required: false
561
+ },
562
+ borderInlineEnd: {
563
+ type: [
564
+ Boolean,
565
+ Number,
566
+ String
567
+ ],
568
+ required: false
569
+ },
570
+ borderBlockStart: {
571
+ type: [
572
+ Boolean,
573
+ Number,
574
+ String
575
+ ],
576
+ required: false
577
+ },
578
+ borderBlockEnd: {
579
+ type: [
580
+ Boolean,
581
+ Number,
582
+ String
583
+ ],
584
+ required: false
585
+ },
586
+ borderColor: {
587
+ type: String,
588
+ required: false
589
+ },
590
+ borderStyle: {
591
+ type: String,
592
+ required: false
593
+ },
594
+ borderTopColor: {
595
+ type: [
596
+ String,
597
+ Object,
598
+ Boolean,
599
+ null
600
+ ],
601
+ required: false,
602
+ skipCheck: true
603
+ },
604
+ borderRightColor: {
605
+ type: [
606
+ String,
607
+ Object,
608
+ Boolean,
609
+ null
610
+ ],
611
+ required: false,
612
+ skipCheck: true
613
+ },
614
+ borderBottomColor: {
615
+ type: [
616
+ String,
617
+ Object,
618
+ Boolean,
619
+ null
620
+ ],
621
+ required: false,
622
+ skipCheck: true
623
+ },
624
+ borderLeftColor: {
625
+ type: [
626
+ String,
627
+ Object,
628
+ Boolean,
629
+ null
630
+ ],
631
+ required: false,
632
+ skipCheck: true
633
+ },
634
+ borderInlineStartColor: {
635
+ type: [
636
+ String,
637
+ Object,
638
+ Boolean,
639
+ null
640
+ ],
641
+ required: false,
642
+ skipCheck: true
643
+ },
644
+ borderInlineEndColor: {
645
+ type: [
646
+ String,
647
+ Object,
648
+ Boolean,
649
+ null
650
+ ],
651
+ required: false,
652
+ skipCheck: true
653
+ },
654
+ borderBlockStartColor: {
655
+ type: [
656
+ String,
657
+ Object,
658
+ Boolean,
659
+ null
660
+ ],
661
+ required: false,
662
+ skipCheck: true
663
+ },
664
+ borderBlockEndColor: {
665
+ type: [
666
+ String,
667
+ Object,
668
+ Boolean,
669
+ null
670
+ ],
671
+ required: false,
672
+ skipCheck: true
673
+ },
674
+ focused: {
675
+ type: Boolean,
676
+ required: false
677
+ },
678
+ text: {
679
+ type: String,
680
+ required: false
681
+ },
682
+ floating: {
683
+ type: Boolean,
684
+ required: false
685
+ },
686
+ name: {
687
+ type: String,
688
+ required: false
689
+ },
690
+ margin: {
691
+ type: [
692
+ Boolean,
693
+ Number,
694
+ String
695
+ ],
696
+ required: false
697
+ },
698
+ marginTop: {
699
+ type: [
700
+ Boolean,
701
+ Number,
702
+ String
703
+ ],
704
+ required: false
705
+ },
706
+ marginLeft: {
707
+ type: [
708
+ Boolean,
709
+ Number,
710
+ String
711
+ ],
712
+ required: false
713
+ },
714
+ marginBottom: {
715
+ type: [
716
+ Boolean,
717
+ Number,
718
+ String
719
+ ],
720
+ required: false
721
+ },
722
+ marginRight: {
723
+ type: [
724
+ Boolean,
725
+ Number,
726
+ String
727
+ ],
728
+ required: false
729
+ },
730
+ marginBlock: {
731
+ type: [
732
+ Boolean,
733
+ Number,
734
+ String
735
+ ],
736
+ required: false
737
+ },
738
+ marginInline: {
739
+ type: [
740
+ Boolean,
741
+ Number,
742
+ String
743
+ ],
744
+ required: false
745
+ },
746
+ marginInlineStart: {
747
+ type: [
748
+ Boolean,
749
+ Number,
750
+ String
751
+ ],
752
+ required: false
753
+ },
754
+ marginInlineEnd: {
755
+ type: [
756
+ Boolean,
757
+ Number,
758
+ String
759
+ ],
760
+ required: false
761
+ },
762
+ marginBlockStart: {
763
+ type: [
764
+ Boolean,
765
+ Number,
766
+ String
767
+ ],
768
+ required: false
769
+ },
770
+ marginBlockEnd: {
771
+ type: [
772
+ Boolean,
773
+ Number,
774
+ String
775
+ ],
776
+ required: false
777
+ },
778
+ padding: {
779
+ type: [
780
+ Boolean,
781
+ Number,
782
+ String
783
+ ],
784
+ required: false
785
+ },
786
+ paddingTop: {
787
+ type: [
788
+ Boolean,
789
+ Number,
790
+ String
791
+ ],
792
+ required: false
793
+ },
794
+ paddingLeft: {
795
+ type: [
796
+ Boolean,
797
+ Number,
798
+ String
799
+ ],
800
+ required: false
801
+ },
802
+ paddingBottom: {
803
+ type: [
804
+ Boolean,
805
+ Number,
806
+ String
807
+ ],
808
+ required: false
809
+ },
810
+ paddingRight: {
811
+ type: [
812
+ Boolean,
813
+ Number,
814
+ String
815
+ ],
816
+ required: false
817
+ },
818
+ paddingBlock: {
819
+ type: [
820
+ Boolean,
821
+ Number,
822
+ String
823
+ ],
824
+ required: false
825
+ },
826
+ paddingInline: {
827
+ type: [
828
+ Boolean,
829
+ Number,
830
+ String
831
+ ],
832
+ required: false
833
+ },
834
+ paddingInlineStart: {
835
+ type: [
836
+ Boolean,
837
+ Number,
838
+ String
839
+ ],
840
+ required: false
841
+ },
842
+ paddingInlineEnd: {
843
+ type: [
844
+ Boolean,
845
+ Number,
846
+ String
847
+ ],
848
+ required: false
849
+ },
850
+ paddingBlockStart: {
851
+ type: [
852
+ Boolean,
853
+ Number,
854
+ String
855
+ ],
856
+ required: false
857
+ },
858
+ paddingBlockEnd: {
859
+ type: [
860
+ Boolean,
861
+ Number,
862
+ String
863
+ ],
864
+ required: false
865
+ },
866
+ rounded: {
867
+ type: [
868
+ Boolean,
869
+ Number,
870
+ String,
871
+ null
872
+ ],
873
+ required: false,
874
+ skipCheck: true,
875
+ default: true
876
+ },
877
+ roundedTopRight: {
878
+ type: [
879
+ Boolean,
880
+ Number,
881
+ String
882
+ ],
883
+ required: false
884
+ },
885
+ roundedTopLeft: {
886
+ type: [
887
+ Boolean,
888
+ Number,
889
+ String
890
+ ],
891
+ required: false
892
+ },
893
+ roundedBottomLeft: {
894
+ type: [
895
+ Boolean,
896
+ Number,
897
+ String
898
+ ],
899
+ required: false
900
+ },
901
+ roundedBottomRight: {
902
+ type: [
903
+ Boolean,
904
+ Number,
905
+ String
906
+ ],
907
+ required: false
908
+ },
909
+ roundedStartStart: {
910
+ type: [
911
+ Boolean,
912
+ Number,
913
+ String
914
+ ],
915
+ required: false
916
+ },
917
+ roundedStartEnd: {
918
+ type: [
919
+ Boolean,
920
+ Number,
921
+ String
922
+ ],
923
+ required: false
924
+ },
925
+ roundedEndStart: {
926
+ type: [
927
+ Boolean,
928
+ Number,
929
+ String
930
+ ],
931
+ required: false
932
+ },
933
+ roundedEndEnd: {
934
+ type: [
935
+ Boolean,
936
+ Number,
937
+ String
938
+ ],
939
+ required: false
940
+ },
941
+ fontSize: {
942
+ type: null,
943
+ required: false
944
+ },
945
+ fontWeight: {
946
+ type: null,
947
+ required: false
948
+ },
949
+ lineHeight: {
950
+ type: null,
951
+ required: false
952
+ },
953
+ letterSpacing: {
954
+ type: null,
955
+ required: false
956
+ },
957
+ active: {
958
+ type: [Boolean, Object],
959
+ required: false
960
+ },
961
+ activeClass: {
962
+ type: String,
963
+ required: false
964
+ },
965
+ variant: {
966
+ type: null,
967
+ required: false
968
+ },
969
+ elevation: {
970
+ type: [Number, String],
971
+ required: false
972
+ },
973
+ size: {
974
+ type: null,
975
+ required: false
976
+ },
977
+ hideDetails: {
978
+ type: [Boolean, String],
979
+ required: false
980
+ },
981
+ hideSpinButtons: {
982
+ type: Boolean,
983
+ required: false
984
+ },
985
+ hint: {
986
+ type: String,
987
+ required: false
988
+ },
989
+ persistentHint: {
990
+ type: Boolean,
991
+ required: false
992
+ },
993
+ messages: {
994
+ type: [Array, String],
995
+ required: false
996
+ },
997
+ height: {
998
+ type: [Number, String],
999
+ required: false
1000
+ },
1001
+ maxHeight: {
1002
+ type: [Number, String],
1003
+ required: false
1004
+ },
1005
+ maxWidth: {
1006
+ type: [Number, String],
1007
+ required: false
1008
+ },
1009
+ minHeight: {
1010
+ type: [Number, String],
1011
+ required: false
1012
+ },
1013
+ minWidth: {
1014
+ type: [Number, String],
1015
+ required: false
1016
+ },
1017
+ width: {
1018
+ type: [Number, String],
1019
+ required: false
1020
+ },
1021
+ direction: {
1022
+ type: null,
1023
+ required: false
1024
+ },
1025
+ errorMessages: {
1026
+ type: [Array, String],
1027
+ required: false
1028
+ },
1029
+ maxErrors: {
1030
+ type: [Number, String],
1031
+ required: false
1032
+ },
1033
+ readonly: {
1034
+ type: Boolean,
1035
+ required: false
1036
+ },
1037
+ rules: {
1038
+ type: Array,
1039
+ required: false
1040
+ },
1041
+ modelValue: {
1042
+ type: null,
1043
+ required: false
1044
+ },
1045
+ validateOn: {
1046
+ type: null,
1047
+ required: false
1048
+ },
1049
+ validationValue: {
1050
+ type: null,
1051
+ required: false
1052
+ },
1053
+ appendAvatar: {
1054
+ type: String,
1055
+ required: false
1056
+ },
1057
+ appendIcon: {
1058
+ type: null,
1059
+ required: false
1060
+ },
1061
+ prependAvatar: {
1062
+ type: String,
1063
+ required: false
1064
+ },
1065
+ prependIcon: {
1066
+ type: null,
1067
+ required: false
1068
+ },
1069
+ prependAriaLabel: {
1070
+ type: String,
1071
+ required: false
1072
+ },
1073
+ appendAriaLabel: {
1074
+ type: String,
1075
+ required: false
1076
+ }
427
1077
  });
428
- const emits = defineEmits(["update:height", "click:control", "mousedown:control", "format", "update:focused", "click:appendInner", "click:prependInner", "click:clear", "update:modelValue", "click:append", "click:prepend"]);
1078
+ const emits = defineEmits([
1079
+ "update:height",
1080
+ "click:control",
1081
+ "mousedown:control",
1082
+ "format",
1083
+ "update:focused",
1084
+ "click:appendInner",
1085
+ "click:prependInner",
1086
+ "click:clear",
1087
+ "update:modelValue",
1088
+ "click:append",
1089
+ "click:prepend"
1090
+ ]);
429
1091
  defineSlots();
430
1092
  const slots = useSlots();
431
1093
  const attrs = useAttrs();
432
1094
  const { t } = useLocale();
1095
+ /*********************************************************
1096
+ * Value
1097
+ ********************************************************/
433
1098
  const model = useVModel(props, "modelValue");
1099
+ /*********************************************************
1100
+ * Rich-text mode
1101
+ *
1102
+ * @description
1103
+ * When mode === 'rich' we swap the <textarea> for a contenteditable
1104
+ * surface. The useTextareaRich composable owns the formatting
1105
+ * commands, active-state detection and HTML sanitisation; the host
1106
+ * component just glues it to the existing Field shell and translates
1107
+ * the sanitised HTML to Markdown when `output === 'markdown'`.
1108
+ ********************************************************/
434
1109
  const isRichMode = computed(() => props.mode === TEXTAREA_MODE.RICH);
435
1110
  const hasToolbar = computed(() => props.toolbar !== false && resolvedToolbar.value.length > 0);
436
1111
  const resolvedToolbar = computed(() => {
437
- if (props.toolbar === false) return [];
438
- return Array.isArray(props.toolbar) ? props.toolbar : DEFAULT_TOOLBAR;
1112
+ if (props.toolbar === false) return [];
1113
+ return Array.isArray(props.toolbar) ? props.toolbar : DEFAULT_TOOLBAR;
439
1114
  });
440
1115
  let isApplyingExternal = false;
441
1116
  const richInitialHtml = computed(() => {
442
- if (!isRichMode.value) return "";
443
- const v = (model.value ?? "").toString();
444
- return sanitizeHtml(v);
1117
+ if (!isRichMode.value) return "";
1118
+ const v = (model.value ?? "").toString();
1119
+ // Markdown round-trip isn't symmetrical here — we expect HTML on
1120
+ // input even in markdown-output mode. The host is responsible for
1121
+ // pre-loading content as HTML.
1122
+ return sanitizeHtml(v);
445
1123
  });
446
1124
  const rich = useTextareaRich({
447
- disabled: () => !!attrs.disabled || !!props.readonly,
448
- value: () => richInitialHtml.value,
449
- onUpdate: (html) => {
450
- if (isApplyingExternal) return;
451
- const next = props.output === TEXTAREA_OUTPUT.MARKDOWN ? htmlToMarkdown(html) : html;
452
- if (model.value !== next) model.value = next;
453
- },
454
- onFormat: (command, value) => {
455
- emits("format", command, value);
456
- }
1125
+ disabled: () => !!attrs.disabled || !!props.readonly,
1126
+ value: () => richInitialHtml.value,
1127
+ onUpdate: (html) => {
1128
+ if (isApplyingExternal) return;
1129
+ const next = props.output === TEXTAREA_OUTPUT.MARKDOWN ? htmlToMarkdown(html) : html;
1130
+ if (model.value !== next) model.value = next;
1131
+ },
1132
+ onFormat: (command, value) => {
1133
+ emits("format", command, value);
1134
+ }
457
1135
  });
458
1136
  const richHostRef = rich.hostRef;
459
1137
  const richActive = rich.active;
@@ -461,240 +1139,414 @@ const handleRichInput = rich.onInput;
461
1139
  const handleRichKeydown = rich.onKeydown;
462
1140
  const handleRichPaste = rich.onPaste;
463
1141
  const handleRichFormat = (command, value) => {
464
- rich.format(command, value);
1142
+ rich.format(command, value);
465
1143
  };
466
1144
  const hasRichContent = computed(() => {
467
- const v = (model.value ?? "").toString().trim();
468
- return v !== "";
1145
+ const v = (model.value ?? "").toString().trim();
1146
+ return v !== "";
469
1147
  });
470
1148
  const toolbarSlotPayload = computed(() => ({
471
- format: rich.format,
472
- isFormat: rich.isFormatActive,
473
- items: resolvedToolbar.value,
474
- active: richActive
1149
+ format: rich.format,
1150
+ isFormat: rich.isFormatActive,
1151
+ items: resolvedToolbar.value,
1152
+ active: richActive
475
1153
  }));
1154
+ // Keep the contenteditable host in sync when the v-model changes
1155
+ // from the outside (e.g. parent resets the value). We only push
1156
+ // changes when the model actually diverges from the host innerHTML
1157
+ // to avoid clobbering the caret on every keystroke.
476
1158
  watch(() => model.value, (next) => {
477
- if (!isRichMode.value || !richHostRef.value) return;
478
- if (props.output === TEXTAREA_OUTPUT.MARKDOWN) {
479
- if (!richHostRef.value.innerHTML) {
480
- isApplyingExternal = true;
481
- rich.setValue(sanitizeHtml((next ?? "").toString()));
482
- isApplyingExternal = false;
483
- }
484
- return;
485
- }
486
- const cleaned = sanitizeHtml((next ?? "").toString());
487
- if (richHostRef.value.innerHTML !== cleaned) {
488
- isApplyingExternal = true;
489
- rich.setValue(cleaned);
490
- isApplyingExternal = false;
491
- }
1159
+ if (!isRichMode.value || !richHostRef.value) return;
1160
+ if (props.output === TEXTAREA_OUTPUT.MARKDOWN) {
1161
+ // Cannot meaningfully sync markdown back into the host —
1162
+ // only re-seed if the host is currently empty.
1163
+ if (!richHostRef.value.innerHTML) {
1164
+ isApplyingExternal = true;
1165
+ rich.setValue(sanitizeHtml((next ?? "").toString()));
1166
+ isApplyingExternal = false;
1167
+ }
1168
+ return;
1169
+ }
1170
+ const cleaned = sanitizeHtml((next ?? "").toString());
1171
+ if (richHostRef.value.innerHTML !== cleaned) {
1172
+ isApplyingExternal = true;
1173
+ rich.setValue(cleaned);
1174
+ isApplyingExternal = false;
1175
+ }
492
1176
  });
493
- const {
494
- onClickAppendInner: handleClickAppendInner,
495
- onClickPrependInner: handleClickPrependInner
496
- } = useAdjacentInner(props);
497
- const {
498
- onClickPrepend: handleClickPrepend,
499
- onClickAppend: handleClickAppend
500
- } = useAdjacent(props, toRef(props, "prependIcon"), toRef(props, "appendIcon"));
1177
+ /*********************************************************
1178
+ * Adjacent inner
1179
+ *
1180
+ * @description
1181
+ *
1182
+ ********************************************************/
1183
+ /*********************************************************
1184
+ * Composables
1185
+ ********************************************************/
1186
+ const { onClickAppendInner: handleClickAppendInner, onClickPrependInner: handleClickPrependInner } = useAdjacentInner(props);
1187
+ /*********************************************************
1188
+ * Icon
1189
+ ********************************************************/
1190
+ const { onClickPrepend: handleClickPrepend, onClickAppend: handleClickAppend } = useAdjacent(props, toRef(props, "prependIcon"), toRef(props, "appendIcon"));
1191
+ /*********************************************************
1192
+ * Intersect
1193
+ *
1194
+ * @description
1195
+ *
1196
+ ********************************************************/
501
1197
  const intersect = computed(() => {
502
- return { handler: handleIntersect };
1198
+ return { handler: handleIntersect };
503
1199
  });
1200
+ /*********************************************************
1201
+ * Event handlers
1202
+ ********************************************************/
504
1203
  const handleIntersect = (isIntersecting, entries) => {
505
- if (!props.autofocus || !isIntersecting) return;
506
- entries[0].target?.focus?.();
1204
+ if (!props.autofocus || !isIntersecting) return;
1205
+ entries[0].target?.focus?.();
507
1206
  };
1207
+ /*********************************************************
1208
+ * Reference Html
1209
+ *
1210
+ * @description
1211
+ *
1212
+ ********************************************************/
508
1213
  const origamInputRef = ref();
509
1214
  const origamFieldRef = ref();
510
1215
  const textareaRef = ref();
511
1216
  const verticalDragger = ref();
1217
+ /*********************************************************
1218
+ * Events & controls
1219
+ *
1220
+ * @description
1221
+ *
1222
+ ********************************************************/
1223
+ /*********************************************************
1224
+ * Effect
1225
+ ********************************************************/
512
1226
  const { isFocused, onFocus, onBlur: handleBlur } = useFocus(props);
513
1227
  const isActive = computed(() => {
514
- return props.persistentPlaceholder || isFocused.value || props.active;
1228
+ return props.persistentPlaceholder || isFocused.value || props.active;
515
1229
  });
516
1230
  const focus = () => {
517
- if (textareaRef.value !== document.activeElement) {
518
- textareaRef.value?.focus();
519
- }
520
- if (!isFocused.value) onFocus();
1231
+ if (textareaRef.value !== document.activeElement) {
1232
+ textareaRef.value?.focus();
1233
+ }
1234
+ if (!isFocused.value) onFocus();
521
1235
  };
522
1236
  const handleControlClick = (e) => {
523
- focus();
524
- emits("click:control", e);
1237
+ focus();
1238
+ emits("click:control", e);
525
1239
  };
526
1240
  const handleControlMousedown = (e) => {
527
- emits("mousedown:control", e);
1241
+ emits("mousedown:control", e);
528
1242
  };
529
1243
  const handleClear = (e) => {
530
- e.stopPropagation();
531
- focus();
532
- nextTick(() => {
533
- model.value = "";
534
- emits("click:clear", e);
535
- });
1244
+ e.stopPropagation();
1245
+ focus();
1246
+ nextTick(() => {
1247
+ model.value = "";
1248
+ emits("click:clear", e);
1249
+ });
536
1250
  };
537
1251
  const handleInput = (e) => {
538
- const el = e.target;
539
- model.value = el.value;
540
- if (typeof props.modelModifiers !== "boolean" && props.modelModifiers?.trim) {
541
- const caretPosition = [el.selectionStart, el.selectionEnd];
542
- nextTick(() => {
543
- el.selectionStart = caretPosition[0];
544
- el.selectionEnd = caretPosition[1];
545
- });
546
- }
1252
+ const el = e.target;
1253
+ model.value = el.value;
1254
+ if (typeof props.modelModifiers !== "boolean" && props.modelModifiers?.trim) {
1255
+ const caretPosition = [el.selectionStart, el.selectionEnd];
1256
+ nextTick(() => {
1257
+ el.selectionStart = caretPosition[0];
1258
+ el.selectionEnd = caretPosition[1];
1259
+ });
1260
+ }
547
1261
  };
548
1262
  const handleFocus = () => {
549
- focus();
1263
+ focus();
550
1264
  };
1265
+ /*********************************************************
1266
+ * Height management
1267
+ *
1268
+ * @description
1269
+ *
1270
+ ********************************************************/
1271
+ /*********************************************************
1272
+ * `rows` IS A COMPUTED, NOT A REF SEEDED FROM `props.rows`
1273
+ *
1274
+ * @description
1275
+ * `ref(+(props.rows ?? 3))` read `props.rows` ONCE, synchronously, at
1276
+ * the top level of `setup()` — before Vue's `beforeCreate` hook runs,
1277
+ * which is where the ADR-005 theme resolver patches `instance.props`.
1278
+ * That snapshot never saw a theme naming `rows`, and the accompanying
1279
+ * `watchEffect` only re-synced it while `!props.autoGrow`, so nothing
1280
+ * ever re-read the prop on a STATIC mount with no later prop write.
1281
+ * Splitting the two concerns removes the eager read entirely: the
1282
+ * autoGrow measurement keeps its own plain ref (`autoGrowRows`, never
1283
+ * derived from a prop, nothing to snapshot), and `rows` becomes a
1284
+ * `computed` that reads `props.rows` LAZILY — its first evaluation
1285
+ * happens at render, already past `beforeCreate`.
1286
+ ********************************************************/
551
1287
  const autoGrowRows = ref(3);
552
1288
  const rows = computed(() => {
553
- return props.autoGrow ? autoGrowRows.value : +(props.rows ?? 3);
1289
+ return props.autoGrow ? autoGrowRows.value : +(props.rows ?? 3);
554
1290
  });
555
1291
  const isUniqueRow = computed(() => {
556
- return rows.value === 1;
1292
+ return rows.value === 1;
557
1293
  });
558
1294
  const parseCssFloat = (value, fallback = 0) => {
559
- const parsed = parseFloat(value);
560
- return Number.isNaN(parsed) ? fallback : parsed;
1295
+ const parsed = parseFloat(value);
1296
+ return Number.isNaN(parsed) ? fallback : parsed;
561
1297
  };
562
1298
  const getPadding = (style) => {
563
- return parseCssFloat(style.getPropertyValue("--origam-field---padding-top")) + parseCssFloat(style.getPropertyValue("--origam-input---padding-top")) + parseCssFloat(style.getPropertyValue("--origam-field---padding-bottom"));
1299
+ return parseCssFloat(style.getPropertyValue("--origam-field---padding-top")) + parseCssFloat(style.getPropertyValue("--origam-input---padding-top")) + parseCssFloat(style.getPropertyValue("--origam-field---padding-bottom"));
564
1300
  };
565
1301
  const getLineHeight = (style) => {
566
- const lh = parseCssFloat(style.lineHeight);
567
- return lh > 0 ? lh : parseCssFloat(style.fontSize, 16) * 1.5;
1302
+ const lh = parseCssFloat(style.lineHeight);
1303
+ return lh > 0 ? lh : parseCssFloat(style.fontSize, 16) * 1.5;
568
1304
  };
569
1305
  const minHeight = computed(() => {
570
- if (!textareaRef.value || !origamFieldRef.value) return 0;
571
- const style = getComputedStyle(textareaRef.value);
572
- const fieldStyle = getComputedStyle(origamFieldRef.value.$el);
573
- const padding = getPadding(style);
574
- const lineHeight = getLineHeight(style);
575
- const rowCount = +(props.rows ?? 3);
576
- const fieldMinHeight = parseCssFloat(fieldStyle.getPropertyValue("--origam-input__control---height"));
577
- return Math.max(
578
- rowCount * lineHeight + padding,
579
- fieldMinHeight
580
- );
1306
+ if (!textareaRef.value || !origamFieldRef.value) return 0;
1307
+ const style = getComputedStyle(textareaRef.value);
1308
+ const fieldStyle = getComputedStyle(origamFieldRef.value.$el);
1309
+ const padding = getPadding(style);
1310
+ const lineHeight = getLineHeight(style);
1311
+ const rowCount = +(props.rows ?? 3);
1312
+ const fieldMinHeight = parseCssFloat(fieldStyle.getPropertyValue("--origam-input__control---height"));
1313
+ return Math.max(rowCount * lineHeight + padding, fieldMinHeight);
581
1314
  });
582
1315
  const maxHeight = computed(() => {
583
- if (!textareaRef.value) return Infinity;
584
- if (props.maxRows == null) return Infinity;
585
- const style = getComputedStyle(textareaRef.value);
586
- const padding = getPadding(style);
587
- const lineHeight = getLineHeight(style);
588
- const maxRowCount = +props.maxRows;
589
- if (Number.isNaN(maxRowCount) || maxRowCount <= 0) return Infinity;
590
- return maxRowCount * lineHeight + padding;
1316
+ if (!textareaRef.value) return Infinity;
1317
+ if (props.maxRows == null) return Infinity;
1318
+ const style = getComputedStyle(textareaRef.value);
1319
+ const padding = getPadding(style);
1320
+ const lineHeight = getLineHeight(style);
1321
+ const maxRowCount = +props.maxRows;
1322
+ if (Number.isNaN(maxRowCount) || maxRowCount <= 0) return Infinity;
1323
+ return maxRowCount * lineHeight + padding;
591
1324
  });
592
1325
  const controlHeight = shallowRef(0);
593
1326
  const calculateInputHeight = () => {
594
- if (!props.autoGrow || isRichMode.value) return;
595
- nextTick(() => {
596
- if (!textareaRef.value) return;
597
- const padding = getPadding(getComputedStyle(textareaRef.value));
598
- textareaRef.value.style.height = "0";
599
- const scrollHeight = textareaRef.value.scrollHeight;
600
- textareaRef.value.style.height = "";
601
- controlHeight.value = clamp(scrollHeight + padding, minHeight.value, maxHeight.value);
602
- emits("update:height", controlHeight.value);
603
- });
1327
+ if (!props.autoGrow || isRichMode.value) return;
1328
+ nextTick(() => {
1329
+ if (!textareaRef.value) return;
1330
+ const padding = getPadding(getComputedStyle(textareaRef.value));
1331
+ // Reset height so scrollHeight reflects real content
1332
+ textareaRef.value.style.height = "0";
1333
+ const scrollHeight = textareaRef.value.scrollHeight;
1334
+ textareaRef.value.style.height = "";
1335
+ controlHeight.value = clamp(scrollHeight + padding, minHeight.value, maxHeight.value);
1336
+ emits("update:height", controlHeight.value);
1337
+ });
604
1338
  };
1339
+ // `theme` and `mode` are watched ALONGSIDE the props, and that is required,
1340
+ // not defensive. `density` is named by the theme's `components` block, so
1341
+ // its slot on `instance.props` is an accessor installed by the theme-props
1342
+ // resolver AFTER `setup()` has run — a watcher created here therefore holds
1343
+ // no dependency on the theme, and a brand/mode swap that changes `density`
1344
+ // would never recompute the control height. Watching the theme refs closes
1345
+ // that path with no extra machinery. Measured: the prop alone never fires
1346
+ // on a swap; prop+theme fires with the correct value.
605
1347
  const { theme: activeTheme, mode: activeMode } = useTheme();
606
- watch([model, () => props.maxRows, () => props.density, () => props.rows, activeTheme, activeMode], () => {
607
- calculateInputHeight();
1348
+ watch([
1349
+ model,
1350
+ () => props.maxRows,
1351
+ () => props.density,
1352
+ () => props.rows,
1353
+ activeTheme,
1354
+ activeMode
1355
+ ], () => {
1356
+ calculateInputHeight();
608
1357
  }, { immediate: true });
609
1358
  watch(minHeight, () => {
610
- controlHeight.value = minHeight.value;
1359
+ controlHeight.value = minHeight.value;
611
1360
  });
1361
+ /*********************************************************
1362
+ * Resize grip
1363
+ *
1364
+ * @description
1365
+ * #1152 — called ONCE, in setup, never from a watch on the grip or the bounds.
1366
+ * @description
1367
+ * From a watch, `onUnmounted` ran outside any instance: Vue warned, the window cleanup was never registered.
1368
+ * @description
1369
+ * Each bound change also stacked one more mousedown listener; the composable now follows the ref and reads the bounds per gesture.
1370
+ ********************************************************/
612
1371
  useDragResizer(verticalDragger, controlHeight, minHeight, maxHeight, AXIS.Y);
613
1372
  watch(controlHeight, (newHeight) => {
614
- nextTick(() => {
615
- if (!textareaRef.value) return;
616
- const style = getComputedStyle(textareaRef.value);
617
- const padding = getPadding(style);
618
- const lineHeight = getLineHeight(style);
619
- if (lineHeight <= 0) return;
620
- autoGrowRows.value = Math.floor((newHeight - padding) / lineHeight);
621
- });
1373
+ nextTick(() => {
1374
+ if (!textareaRef.value) return;
1375
+ const style = getComputedStyle(textareaRef.value);
1376
+ const padding = getPadding(style);
1377
+ const lineHeight = getLineHeight(style);
1378
+ if (lineHeight <= 0) return;
1379
+ autoGrowRows.value = Math.floor((newHeight - padding) / lineHeight);
1380
+ });
622
1381
  });
623
1382
  let observer;
624
1383
  watch(textareaRef, (val) => {
625
- if (val) {
626
- observer = new ResizeObserver(calculateInputHeight);
627
- observer.observe(textareaRef.value);
628
- } else {
629
- observer?.disconnect();
630
- }
1384
+ if (val) {
1385
+ observer = new ResizeObserver(calculateInputHeight);
1386
+ observer.observe(textareaRef.value);
1387
+ } else {
1388
+ observer?.disconnect();
1389
+ }
631
1390
  });
632
1391
  onBeforeUnmount(() => {
633
- observer?.disconnect();
1392
+ observer?.disconnect();
634
1393
  });
1394
+ /*********************************************************
1395
+ * Counter & details
1396
+ *
1397
+ * @description
1398
+ *
1399
+ ********************************************************/
635
1400
  const counterValue = computed(() => {
636
- return typeof props.counterValue === "function" ? props.counterValue(model.value) : (model.value || "").toString().length;
1401
+ return typeof props.counterValue === "function" ? props.counterValue(model.value) : (model.value || "").toString().length;
637
1402
  });
638
1403
  const max = computed(() => {
639
- if (attrs.maxlength) return attrs.maxlength;
640
- if (!props.counter || typeof props.counter !== "number" && typeof props.counter !== "string") return void 0;
641
- return props.counter;
1404
+ if (attrs.maxlength) return attrs.maxlength;
1405
+ if (!props.counter || typeof props.counter !== "number" && typeof props.counter !== "string") return undefined;
1406
+ return props.counter;
642
1407
  });
643
1408
  const hasCounter = computed(() => {
644
- return slots.counter || props.counter || props.counterValue;
1409
+ return slots.counter || props.counter || props.counterValue;
645
1410
  });
646
1411
  const hasDetails = computed(() => {
647
- return hasCounter.value || slots.details;
1412
+ return hasCounter.value || slots.details;
648
1413
  });
1414
+ /*********************************************************
1415
+ * Validation
1416
+ *
1417
+ * @description
1418
+ *
1419
+ ********************************************************/
649
1420
  const enrichedRules = computed(() => {
650
- const base = Array.isArray(props.rules) ? [...props.rules] : [];
651
- if (props.counter && typeof props.counter === "number") {
652
- const limit = props.counter;
653
- base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", limit));
654
- }
655
- return base;
1421
+ const base = Array.isArray(props.rules) ? [...props.rules] : [];
1422
+ if (props.counter && typeof props.counter === "number") {
1423
+ const limit = props.counter;
1424
+ base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", limit));
1425
+ }
1426
+ return base;
656
1427
  });
1428
+ /*********************************************************
1429
+ * Props
1430
+ *
1431
+ * @description
1432
+ *
1433
+ ********************************************************/
657
1434
  const [rootAttrs, inputAttrs] = filterInputAttrs(attrs);
1435
+ /*********************************************************
1436
+ * Forwarded props
1437
+ ********************************************************/
1438
+ /*********************************************************
1439
+ * inputProps
1440
+ *
1441
+ * @description
1442
+ * #421 — `id` is deliberately NOT filtered out: OrigamInput needs it to
1443
+ * build `<id>-messages`, the target of its own `aria-describedby`, and
1444
+ * to feed its default slot's `id` (consumed by OrigamField, then the
1445
+ * real `<textarea>`). Filtering it forced OrigamInput to invent an id,
1446
+ * so a consumer passing `id` got a `<textarea>` unreachable by
1447
+ * `getElementById` and a `<label for>` pointing nowhere — same fix as
1448
+ * OrigamTextField (ce365b10).
1449
+ ********************************************************/
658
1450
  const inputProps = computed(() => {
659
- return filterPropsOf(OrigamInput, props, ["modelValue", "class", "style", "focused", "centerAffix", ...BORDER_PROP_KEYS]);
1451
+ /*********************************************************
1452
+ * Border withheld — #726
1453
+ *
1454
+ * @description
1455
+ * Withheld from the INPUT (no notch, its top edge crosses the floating
1456
+ * label) and handed to the FIELD's notched outline instead.
1457
+ ********************************************************/
1458
+ return filterPropsOf(OrigamInput, props, [
1459
+ "modelValue",
1460
+ "class",
1461
+ "style",
1462
+ "focused",
1463
+ "centerAffix",
1464
+ ...BORDER_PROP_KEYS
1465
+ ]);
660
1466
  });
661
1467
  const fieldProps = computed(() => {
662
- return filterPropsOf(OrigamField, props, ["class", "id", "style", "active", "dirty", "disabled", "focused", "error", "centerAffix"]);
1468
+ return filterPropsOf(OrigamField, props, [
1469
+ "class",
1470
+ "id",
1471
+ "style",
1472
+ "active",
1473
+ "dirty",
1474
+ "disabled",
1475
+ "focused",
1476
+ "error",
1477
+ "centerAffix"
1478
+ ]);
663
1479
  });
1480
+ /*********************************************************
1481
+ * Class & Style
1482
+ *
1483
+ * @description
1484
+ * textareaFieldClasses is a computed property that returns an array of classes for the textareaField element.
1485
+ * textareaFieldStyles is a computed property that returns an array of styles for the textareaField element.
1486
+ * textareaFieldFieldStyles is a computed property that returns an array of styles for the field element.
1487
+ ********************************************************/
664
1488
  const textareaFieldStyles = computed(() => {
665
- return [
666
- props.style
667
- ];
1489
+ return [props.style];
668
1490
  });
669
1491
  const textareaFieldClasses = computed(() => {
670
- return [
671
- "origam-textarea-field origam-text-field",
672
- {
673
- "origam-textarea-field--prefixed": props.prefix,
674
- "origam-textarea-field--suffixed": props.suffix,
675
- "origam-text-field--prefixed": props.prefix,
676
- "origam-text-field--suffixed": props.suffix,
677
- "origam-textarea-field--auto-grow": props.autoGrow,
678
- "origam-textarea-field--no-resize": props.noResize || props.autoGrow
679
- },
680
- props.class
681
- ];
1492
+ return [
1493
+ "origam-textarea-field origam-text-field",
1494
+ {
1495
+ "origam-textarea-field--prefixed": props.prefix,
1496
+ "origam-textarea-field--suffixed": props.suffix,
1497
+ "origam-text-field--prefixed": props.prefix,
1498
+ "origam-text-field--suffixed": props.suffix,
1499
+ "origam-textarea-field--auto-grow": props.autoGrow,
1500
+ "origam-textarea-field--no-resize": props.noResize || props.autoGrow
1501
+ },
1502
+ props.class
1503
+ ];
682
1504
  });
683
1505
  const textareaFieldFieldStyles = computed(() => {
684
- return {
685
- "--origam-textarea-field__control---height": convertToUnit(controlHeight.value)
686
- };
1506
+ return { "--origam-textarea-field__control---height": convertToUnit(controlHeight.value) };
687
1507
  });
1508
+ /*********************************************************
1509
+ * Typography — BEM-child surface (issue #501 correction)
1510
+ *
1511
+ * @description
1512
+ * The var is read by `.origam-textarea-field__rich` (line-height only,
1513
+ * rich mode). Bound directly on that element, not the root.
1514
+ *
1515
+ * @description
1516
+ * `fontSize` / `fontWeight` / `letterSpacing` have no rule on THIS
1517
+ * prefix, but they are NOT inert. `inputProps` / `fieldProps` below
1518
+ * forward the full prop set to the nested `<OrigamInput>` AND
1519
+ * `<OrigamField>` (which forwards again to `<OrigamLabel>`).
1520
+ *
1521
+ * @description
1522
+ * `fontWeight` additionally cascades from `<OrigamInput>`'s own painted
1523
+ * root `font-weight` into the rich-mode contenteditable div (CSS
1524
+ * inheritance, unblocked — verified via `getComputedStyle` in a live
1525
+ * Histoire render: 400→700 on both the input root AND the rich div).
1526
+ *
1527
+ * @description
1528
+ * `fontSize` / `fontWeight` / `letterSpacing` also reach the visible
1529
+ * field label via the Field→Label forward (see `OrigamField.vue`'s own
1530
+ * typography comment). Confirmed dead on every path: `fontFamily` only
1531
+ * (neither Input nor Label paint it).
1532
+ ********************************************************/
688
1533
  const { typographyStyles } = useTypography(props, "textarea-field__rich-content");
1534
+ /*********************************************************
1535
+ * Expose
1536
+ *
1537
+ * @description
1538
+ * Exposes functions and components to the world.
1539
+ * filterProps is a function that filters out props that are not defined in the `ITextareaFieldProps` interface.
1540
+ ********************************************************/
689
1541
  const { filterProps } = useProps(props);
690
1542
  const { id, css, load, isLoaded, unload } = useStyle(textareaFieldStyles);
691
1543
  defineExpose(forwardRefs({
692
- filterProps,
693
- css,
694
- id,
695
- load,
696
- unload,
697
- isLoaded
1544
+ filterProps,
1545
+ css,
1546
+ id,
1547
+ load,
1548
+ unload,
1549
+ isLoaded
698
1550
  }, origamFieldRef, origamInputRef, textareaRef));
699
1551
  </script>
700
1552