@openreachtech/furo-vue 1.3.1

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 (310) hide show
  1. package/LICENSE +9 -0
  2. package/README.ja.md +334 -0
  3. package/README.md +333 -0
  4. package/index.js +11 -0
  5. package/lib/assets/css/furo/0010.variables-palette-color-scale.css +298 -0
  6. package/lib/assets/css/furo/0020.variables-z-index.css +10 -0
  7. package/lib/assets/css/furo/0030.variables-semantic-color.css +178 -0
  8. package/lib/assets/css/furo/0035.variables-semantic-dimension.css +104 -0
  9. package/lib/assets/css/furo/0040.variables-component-furo.css +28 -0
  10. package/lib/assets/css/furo/0050.furo-editor-content.css +22 -0
  11. package/lib/assets/css/furo.css +15 -0
  12. package/lib/components/atoms/FuroAvatar/FuroAvatar.vue +135 -0
  13. package/lib/components/atoms/FuroAvatar/FuroAvatarContext.js +147 -0
  14. package/lib/components/atoms/FuroBadge/FuroBadge.vue +240 -0
  15. package/lib/components/atoms/FuroBadge/FuroBadgeContext.js +298 -0
  16. package/lib/components/atoms/FuroButton/ButtonEmitPayload.js +44 -0
  17. package/lib/components/atoms/FuroButton/FuroButton.vue +301 -0
  18. package/lib/components/atoms/FuroButton/FuroButtonContext.js +328 -0
  19. package/lib/components/atoms/FuroCheckbox/CheckboxEmitPayload.js +106 -0
  20. package/lib/components/atoms/FuroCheckbox/FuroCheckbox.vue +173 -0
  21. package/lib/components/atoms/FuroCheckbox/FuroCheckboxContext.js +682 -0
  22. package/lib/components/atoms/FuroEmailField/EmailFieldEmitPayload.js +74 -0
  23. package/lib/components/atoms/FuroEmailField/FuroEmailField.vue +119 -0
  24. package/lib/components/atoms/FuroEmailField/FuroEmailFieldContext.js +311 -0
  25. package/lib/components/atoms/FuroFileField/FileFieldEmitPayload.js +80 -0
  26. package/lib/components/atoms/FuroFileField/FuroFileField.vue +128 -0
  27. package/lib/components/atoms/FuroFileField/FuroFileFieldContext.js +195 -0
  28. package/lib/components/atoms/FuroIcon/FuroIcon.vue +74 -0
  29. package/lib/components/atoms/FuroIcon/FuroIconContext.js +293 -0
  30. package/lib/components/atoms/FuroIcon/FuroIconRegistry.js +617 -0
  31. package/lib/components/atoms/FuroIcon/FuroIconifyRendererContext.js +101 -0
  32. package/lib/components/atoms/FuroIcon/furoIconData.js +164 -0
  33. package/lib/components/atoms/FuroIcon/iconRenderers.js +62 -0
  34. package/lib/components/atoms/FuroIcon/icons.js +7 -0
  35. package/lib/components/atoms/FuroNumberField/FuroNumberField.vue +213 -0
  36. package/lib/components/atoms/FuroNumberField/FuroNumberFieldContext.js +442 -0
  37. package/lib/components/atoms/FuroNumberField/NumberFieldEmitPayload.js +162 -0
  38. package/lib/components/atoms/FuroPasswordField/FuroPasswordField.vue +119 -0
  39. package/lib/components/atoms/FuroPasswordField/FuroPasswordFieldContext.js +311 -0
  40. package/lib/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.js +74 -0
  41. package/lib/components/atoms/FuroRadio/FuroRadio.vue +193 -0
  42. package/lib/components/atoms/FuroRadio/FuroRadioContext.js +557 -0
  43. package/lib/components/atoms/FuroRadio/RadioEmitPayload.js +72 -0
  44. package/lib/components/atoms/FuroSwitch/FuroSwitch.vue +165 -0
  45. package/lib/components/atoms/FuroSwitch/FuroSwitchContext.js +440 -0
  46. package/lib/components/atoms/FuroSwitch/SwitchEmitPayload.js +86 -0
  47. package/lib/components/atoms/FuroTextField/FuroTextField.vue +119 -0
  48. package/lib/components/atoms/FuroTextField/FuroTextFieldContext.js +311 -0
  49. package/lib/components/atoms/FuroTextField/TextFieldEmitPayload.js +83 -0
  50. package/lib/components/atoms/FuroTextarea/FuroTextarea.vue +121 -0
  51. package/lib/components/atoms/FuroTextarea/FuroTextareaContext.js +322 -0
  52. package/lib/components/atoms/FuroTextarea/TextareaEmitPayload.js +83 -0
  53. package/lib/components/atoms/FuroToggle/FuroToggle.vue +172 -0
  54. package/lib/components/atoms/FuroToggle/FuroToggleContext.js +410 -0
  55. package/lib/components/atoms/FuroToggle/ToggleEmitPayload.js +86 -0
  56. package/lib/components/molecules/FuroAccordion/AccordionEmitPayload.js +80 -0
  57. package/lib/components/molecules/FuroAccordion/FuroAccordion.vue +219 -0
  58. package/lib/components/molecules/FuroAccordion/FuroAccordionContext.js +547 -0
  59. package/lib/components/molecules/FuroAttachment/FuroAttachment.vue +376 -0
  60. package/lib/components/molecules/FuroAttachment/FuroAttachmentContext.js +628 -0
  61. package/lib/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.js +225 -0
  62. package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue +669 -0
  63. package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.js +1525 -0
  64. package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue +126 -0
  65. package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.js +245 -0
  66. package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue +219 -0
  67. package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.js +257 -0
  68. package/lib/components/molecules/FuroCollapsible/CollapsibleEmitPayload.js +69 -0
  69. package/lib/components/molecules/FuroCollapsible/FuroCollapsible.vue +177 -0
  70. package/lib/components/molecules/FuroCollapsible/FuroCollapsibleContext.js +389 -0
  71. package/lib/components/molecules/FuroControlBlock/FuroControlBlock.vue +149 -0
  72. package/lib/components/molecules/FuroControlBlock/FuroControlBlockContext.js +81 -0
  73. package/lib/components/molecules/FuroDatePicker/DatePickerEmitPayload.js +74 -0
  74. package/lib/components/molecules/FuroDatePicker/FuroDatePicker.vue +661 -0
  75. package/lib/components/molecules/FuroDatePicker/FuroDatePickerContext.js +1038 -0
  76. package/lib/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.js +96 -0
  77. package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue +153 -0
  78. package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.js +840 -0
  79. package/lib/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.js +100 -0
  80. package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue +348 -0
  81. package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.js +714 -0
  82. package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue +222 -0
  83. package/lib/components/molecules/FuroEditableField/EditableEmitPayload.js +89 -0
  84. package/lib/components/molecules/FuroEditableField/FuroEditableField.vue +314 -0
  85. package/lib/components/molecules/FuroEditableField/FuroEditableFieldContext.js +1018 -0
  86. package/lib/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.js +236 -0
  87. package/lib/components/molecules/FuroEditableField/processors/ObjectProcessor.js +101 -0
  88. package/lib/components/molecules/FuroEmptyState/FuroEmptyState.vue +124 -0
  89. package/lib/components/molecules/FuroEmptyState/FuroEmptyStateContext.js +42 -0
  90. package/lib/components/molecules/FuroErrorState/FuroErrorState.vue +125 -0
  91. package/lib/components/molecules/FuroErrorState/FuroErrorStateContext.js +42 -0
  92. package/lib/components/molecules/FuroPagination/FuroPagination.vue +246 -0
  93. package/lib/components/molecules/FuroPagination/FuroPaginationContext.js +489 -0
  94. package/lib/components/molecules/FuroPopover/FuroPopover.vue +171 -0
  95. package/lib/components/molecules/FuroPopover/FuroPopoverContext.js +279 -0
  96. package/lib/components/molecules/FuroScrollArea/FuroScrollArea.vue +181 -0
  97. package/lib/components/molecules/FuroScrollArea/FuroScrollAreaContext.js +149 -0
  98. package/lib/components/molecules/FuroSearchField/FuroSearchField.vue +155 -0
  99. package/lib/components/molecules/FuroSearchField/FuroSearchFieldContext.js +231 -0
  100. package/lib/components/molecules/FuroSectionHeader/FuroSectionHeader.vue +140 -0
  101. package/lib/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.js +204 -0
  102. package/lib/components/molecules/FuroSelect/FuroSelect.vue +474 -0
  103. package/lib/components/molecules/FuroSelect/FuroSelectContext.js +743 -0
  104. package/lib/components/molecules/FuroSelect/SelectEmitPayload.js +181 -0
  105. package/lib/components/molecules/FuroSeparator/FuroSeparator.vue +88 -0
  106. package/lib/components/molecules/FuroSeparator/FuroSeparatorContext.js +40 -0
  107. package/lib/components/molecules/FuroSkeleton/FuroSkeleton.vue +101 -0
  108. package/lib/components/molecules/FuroSkeleton/FuroSkeletonContext.js +82 -0
  109. package/lib/components/molecules/FuroSplitter/FuroSplitter.vue +237 -0
  110. package/lib/components/molecules/FuroSplitter/FuroSplitterContext.js +429 -0
  111. package/lib/components/molecules/FuroSplitter/SplitterEmitPayload.js +69 -0
  112. package/lib/components/molecules/FuroTimeField/FuroTimeField.vue +251 -0
  113. package/lib/components/molecules/FuroTimeField/FuroTimeFieldContext.js +1138 -0
  114. package/lib/components/molecules/FuroTimeField/TimeFieldEmitPayload.js +74 -0
  115. package/lib/components/molecules/FuroToggleGroup/FuroToggleGroup.vue +211 -0
  116. package/lib/components/molecules/FuroToggleGroup/FuroToggleGroupContext.js +551 -0
  117. package/lib/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.js +80 -0
  118. package/lib/components/molecules/FuroToolBar/FuroToolBar.vue +91 -0
  119. package/lib/components/molecules/FuroToolBar/FuroToolBarContext.js +75 -0
  120. package/lib/components/molecules/FuroTooltip/FuroTooltip.vue +183 -0
  121. package/lib/components/molecules/FuroTooltip/FuroTooltipContext.js +290 -0
  122. package/lib/components/organisms/FuroAlertDialog/FuroAlertDialog.vue +324 -0
  123. package/lib/components/organisms/FuroAlertDialog/FuroAlertDialogContext.js +608 -0
  124. package/lib/components/organisms/FuroDialog/FuroDialog.vue +362 -0
  125. package/lib/components/organisms/FuroDialog/FuroDialogContext.js +535 -0
  126. package/lib/components/organisms/FuroDrawer/FuroDrawer.vue +618 -0
  127. package/lib/components/organisms/FuroDrawer/FuroDrawerContext.js +676 -0
  128. package/lib/components/organisms/FuroEditor/FuroEditor.vue +613 -0
  129. package/lib/components/organisms/FuroEditor/FuroEditorCommandContext.js +420 -0
  130. package/lib/components/organisms/FuroEditor/FuroEditorContext.js +2048 -0
  131. package/lib/components/organisms/FuroEditor/FuroEditorMentionMenu.vue +120 -0
  132. package/lib/components/organisms/FuroEditor/FuroEditorMentionMenuContext.js +261 -0
  133. package/lib/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.js +267 -0
  134. package/lib/components/organisms/FuroEditor/build-editor-extensions.js +97 -0
  135. package/lib/components/organisms/FuroEditor/mention-suggestion.js +320 -0
  136. package/lib/components/organisms/FuroEditor/paste-link-segments.js +124 -0
  137. package/lib/components/organisms/FuroSidebar/FuroSidebar.vue +473 -0
  138. package/lib/components/organisms/FuroSidebar/FuroSidebarContext.js +1014 -0
  139. package/lib/components/organisms/FuroStepper/FuroStepper.vue +345 -0
  140. package/lib/components/organisms/FuroStepper/FuroStepperContext.js +481 -0
  141. package/lib/components/organisms/FuroTable/FuroTable.vue +707 -0
  142. package/lib/components/organisms/FuroTable/FuroTableContext.js +1965 -0
  143. package/lib/components/organisms/FuroTable/FuroTableRowItemContext.js +111 -0
  144. package/lib/components/organisms/FuroTabs/FuroTabs.vue +403 -0
  145. package/lib/components/organisms/FuroTabs/FuroTabsContext.js +846 -0
  146. package/lib/components/organisms/FuroToast/FuroToast.vue +624 -0
  147. package/lib/components/organisms/FuroToast/FuroToastContext.js +1089 -0
  148. package/lib/components/organisms/FuroToast/FuroToaster.vue +44 -0
  149. package/lib/components/organisms/FuroToast/FuroToasterContext.js +113 -0
  150. package/lib/components/organisms/FuroToast/ToastQueue.js +325 -0
  151. package/lib/components/organisms/FuroToast/toast.js +64 -0
  152. package/lib/contexts/BaseFuroContext.js +318 -0
  153. package/lib/contexts/BaseFuroContextAccessor.js +47 -0
  154. package/lib/emit-payload/BaseEmitPayload.js +91 -0
  155. package/lib/index.components.js +61 -0
  156. package/lib/index.core.js +18 -0
  157. package/lib/tools/TimerClerk.js +75 -0
  158. package/nuxt/index.js +109 -0
  159. package/nuxt/runtime/furo-icon-renderer.js +24 -0
  160. package/package.json +137 -0
  161. package/public/furo-vue/components.json +4619 -0
  162. package/public/furo-vue/llms.txt +66 -0
  163. package/types/furo-nuxt.d.ts +48 -0
  164. package/types/generated/components/atoms/FuroAvatar/FuroAvatar.vue.d.ts +74 -0
  165. package/types/generated/components/atoms/FuroAvatar/FuroAvatarContext.d.ts +82 -0
  166. package/types/generated/components/atoms/FuroBadge/FuroBadge.vue.d.ts +12 -0
  167. package/types/generated/components/atoms/FuroBadge/FuroBadgeContext.d.ts +160 -0
  168. package/types/generated/components/atoms/FuroButton/ButtonEmitPayload.d.ts +19 -0
  169. package/types/generated/components/atoms/FuroButton/FuroButton.vue.d.ts +53 -0
  170. package/types/generated/components/atoms/FuroButton/FuroButtonContext.d.ts +156 -0
  171. package/types/generated/components/atoms/FuroCheckbox/CheckboxEmitPayload.d.ts +55 -0
  172. package/types/generated/components/atoms/FuroCheckbox/FuroCheckbox.vue.d.ts +87 -0
  173. package/types/generated/components/atoms/FuroCheckbox/FuroCheckboxContext.d.ts +342 -0
  174. package/types/generated/components/atoms/FuroEmailField/EmailFieldEmitPayload.d.ts +46 -0
  175. package/types/generated/components/atoms/FuroEmailField/FuroEmailField.vue.d.ts +458 -0
  176. package/types/generated/components/atoms/FuroEmailField/FuroEmailFieldContext.d.ts +161 -0
  177. package/types/generated/components/atoms/FuroFileField/FileFieldEmitPayload.d.ts +46 -0
  178. package/types/generated/components/atoms/FuroFileField/FuroFileField.vue.d.ts +454 -0
  179. package/types/generated/components/atoms/FuroFileField/FuroFileFieldContext.d.ts +109 -0
  180. package/types/generated/components/atoms/FuroIcon/FuroIcon.vue.d.ts +14 -0
  181. package/types/generated/components/atoms/FuroIcon/FuroIconContext.d.ts +152 -0
  182. package/types/generated/components/atoms/FuroIcon/FuroIconRegistry.d.ts +457 -0
  183. package/types/generated/components/atoms/FuroIcon/FuroIconifyRendererContext.d.ts +65 -0
  184. package/types/generated/components/atoms/FuroIcon/furoIconData.d.ts +154 -0
  185. package/types/generated/components/atoms/FuroIcon/iconRenderers.d.ts +6 -0
  186. package/types/generated/components/atoms/FuroIcon/icons.d.ts +6 -0
  187. package/types/generated/components/atoms/FuroNumberField/FuroNumberField.vue.d.ts +500 -0
  188. package/types/generated/components/atoms/FuroNumberField/FuroNumberFieldContext.d.ts +243 -0
  189. package/types/generated/components/atoms/FuroNumberField/NumberFieldEmitPayload.d.ts +74 -0
  190. package/types/generated/components/atoms/FuroPasswordField/FuroPasswordField.vue.d.ts +458 -0
  191. package/types/generated/components/atoms/FuroPasswordField/FuroPasswordFieldContext.d.ts +161 -0
  192. package/types/generated/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.d.ts +46 -0
  193. package/types/generated/components/atoms/FuroRadio/FuroRadio.vue.d.ts +96 -0
  194. package/types/generated/components/atoms/FuroRadio/FuroRadioContext.d.ts +290 -0
  195. package/types/generated/components/atoms/FuroRadio/RadioEmitPayload.d.ts +39 -0
  196. package/types/generated/components/atoms/FuroSwitch/FuroSwitch.vue.d.ts +74 -0
  197. package/types/generated/components/atoms/FuroSwitch/FuroSwitchContext.d.ts +218 -0
  198. package/types/generated/components/atoms/FuroSwitch/SwitchEmitPayload.d.ts +42 -0
  199. package/types/generated/components/atoms/FuroTextField/FuroTextField.vue.d.ts +458 -0
  200. package/types/generated/components/atoms/FuroTextField/FuroTextFieldContext.d.ts +161 -0
  201. package/types/generated/components/atoms/FuroTextField/TextFieldEmitPayload.d.ts +52 -0
  202. package/types/generated/components/atoms/FuroTextarea/FuroTextarea.vue.d.ts +422 -0
  203. package/types/generated/components/atoms/FuroTextarea/FuroTextareaContext.d.ts +161 -0
  204. package/types/generated/components/atoms/FuroTextarea/TextareaEmitPayload.d.ts +52 -0
  205. package/types/generated/components/atoms/FuroToggle/FuroToggle.vue.d.ts +51 -0
  206. package/types/generated/components/atoms/FuroToggle/FuroToggleContext.d.ts +191 -0
  207. package/types/generated/components/atoms/FuroToggle/ToggleEmitPayload.d.ts +42 -0
  208. package/types/generated/components/molecules/FuroAccordion/AccordionEmitPayload.d.ts +41 -0
  209. package/types/generated/components/molecules/FuroAccordion/FuroAccordion.vue.d.ts +133 -0
  210. package/types/generated/components/molecules/FuroAccordion/FuroAccordionContext.d.ts +279 -0
  211. package/types/generated/components/molecules/FuroAttachment/FuroAttachment.vue.d.ts +79 -0
  212. package/types/generated/components/molecules/FuroAttachment/FuroAttachmentContext.d.ts +363 -0
  213. package/types/generated/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.d.ts +129 -0
  214. package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts +751 -0
  215. package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts +722 -0
  216. package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue.d.ts +84 -0
  217. package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.d.ts +150 -0
  218. package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue.d.ts +24 -0
  219. package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.d.ts +152 -0
  220. package/types/generated/components/molecules/FuroCollapsible/CollapsibleEmitPayload.d.ts +36 -0
  221. package/types/generated/components/molecules/FuroCollapsible/FuroCollapsible.vue.d.ts +98 -0
  222. package/types/generated/components/molecules/FuroCollapsible/FuroCollapsibleContext.d.ts +191 -0
  223. package/types/generated/components/molecules/FuroControlBlock/FuroControlBlock.vue.d.ts +30 -0
  224. package/types/generated/components/molecules/FuroControlBlock/FuroControlBlockContext.d.ts +57 -0
  225. package/types/generated/components/molecules/FuroDatePicker/DatePickerEmitPayload.d.ts +41 -0
  226. package/types/generated/components/molecules/FuroDatePicker/FuroDatePicker.vue.d.ts +456 -0
  227. package/types/generated/components/molecules/FuroDatePicker/FuroDatePickerContext.d.ts +516 -0
  228. package/types/generated/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.d.ts +55 -0
  229. package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue.d.ts +1365 -0
  230. package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.d.ts +435 -0
  231. package/types/generated/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.d.ts +48 -0
  232. package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue.d.ts +773 -0
  233. package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.d.ts +380 -0
  234. package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue.d.ts +261 -0
  235. package/types/generated/components/molecules/FuroEditableField/EditableEmitPayload.d.ts +39 -0
  236. package/types/generated/components/molecules/FuroEditableField/FuroEditableField.vue.d.ts +646 -0
  237. package/types/generated/components/molecules/FuroEditableField/FuroEditableFieldContext.d.ts +477 -0
  238. package/types/generated/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.d.ts +121 -0
  239. package/types/generated/components/molecules/FuroEditableField/processors/ObjectProcessor.d.ts +45 -0
  240. package/types/generated/components/molecules/FuroEmptyState/FuroEmptyState.vue.d.ts +21 -0
  241. package/types/generated/components/molecules/FuroEmptyState/FuroEmptyStateContext.d.ts +32 -0
  242. package/types/generated/components/molecules/FuroErrorState/FuroErrorState.vue.d.ts +21 -0
  243. package/types/generated/components/molecules/FuroErrorState/FuroErrorStateContext.d.ts +32 -0
  244. package/types/generated/components/molecules/FuroPagination/FuroPagination.vue.d.ts +534 -0
  245. package/types/generated/components/molecules/FuroPagination/FuroPaginationContext.d.ts +271 -0
  246. package/types/generated/components/molecules/FuroPopover/FuroPopover.vue.d.ts +513 -0
  247. package/types/generated/components/molecules/FuroPopover/FuroPopoverContext.d.ts +160 -0
  248. package/types/generated/components/molecules/FuroScrollArea/FuroScrollArea.vue.d.ts +124 -0
  249. package/types/generated/components/molecules/FuroScrollArea/FuroScrollAreaContext.d.ts +86 -0
  250. package/types/generated/components/molecules/FuroSearchField/FuroSearchField.vue.d.ts +487 -0
  251. package/types/generated/components/molecules/FuroSearchField/FuroSearchFieldContext.d.ts +137 -0
  252. package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeader.vue.d.ts +49 -0
  253. package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.d.ts +121 -0
  254. package/types/generated/components/molecules/FuroSelect/FuroSelect.vue.d.ts +719 -0
  255. package/types/generated/components/molecules/FuroSelect/FuroSelectContext.d.ts +402 -0
  256. package/types/generated/components/molecules/FuroSelect/SelectEmitPayload.d.ts +102 -0
  257. package/types/generated/components/molecules/FuroSeparator/FuroSeparator.vue.d.ts +39 -0
  258. package/types/generated/components/molecules/FuroSeparator/FuroSeparatorContext.d.ts +31 -0
  259. package/types/generated/components/molecules/FuroSkeleton/FuroSkeleton.vue.d.ts +27 -0
  260. package/types/generated/components/molecules/FuroSkeleton/FuroSkeletonContext.d.ts +61 -0
  261. package/types/generated/components/molecules/FuroSplitter/FuroSplitter.vue.d.ts +139 -0
  262. package/types/generated/components/molecules/FuroSplitter/FuroSplitterContext.d.ts +226 -0
  263. package/types/generated/components/molecules/FuroSplitter/SplitterEmitPayload.d.ts +41 -0
  264. package/types/generated/components/molecules/FuroTimeField/FuroTimeField.vue.d.ts +498 -0
  265. package/types/generated/components/molecules/FuroTimeField/FuroTimeFieldContext.d.ts +555 -0
  266. package/types/generated/components/molecules/FuroTimeField/TimeFieldEmitPayload.d.ts +41 -0
  267. package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroup.vue.d.ts +70 -0
  268. package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroupContext.d.ts +270 -0
  269. package/types/generated/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.d.ts +41 -0
  270. package/types/generated/components/molecules/FuroToolBar/FuroToolBar.vue.d.ts +30 -0
  271. package/types/generated/components/molecules/FuroToolBar/FuroToolBarContext.d.ts +48 -0
  272. package/types/generated/components/molecules/FuroTooltip/FuroTooltip.vue.d.ts +524 -0
  273. package/types/generated/components/molecules/FuroTooltip/FuroTooltipContext.d.ts +166 -0
  274. package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialog.vue.d.ts +651 -0
  275. package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialogContext.d.ts +299 -0
  276. package/types/generated/components/organisms/FuroDialog/FuroDialog.vue.d.ts +583 -0
  277. package/types/generated/components/organisms/FuroDialog/FuroDialogContext.d.ts +264 -0
  278. package/types/generated/components/organisms/FuroDrawer/FuroDrawer.vue.d.ts +635 -0
  279. package/types/generated/components/organisms/FuroDrawer/FuroDrawerContext.d.ts +347 -0
  280. package/types/generated/components/organisms/FuroEditor/FuroEditor.vue.d.ts +2487 -0
  281. package/types/generated/components/organisms/FuroEditor/FuroEditorCommandContext.d.ts +192 -0
  282. package/types/generated/components/organisms/FuroEditor/FuroEditorContext.d.ts +904 -0
  283. package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenu.vue.d.ts +43 -0
  284. package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenuContext.d.ts +159 -0
  285. package/types/generated/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.d.ts +43 -0
  286. package/types/generated/components/organisms/FuroEditor/build-editor-extensions.d.ts +22 -0
  287. package/types/generated/components/organisms/FuroEditor/mention-suggestion.d.ts +25 -0
  288. package/types/generated/components/organisms/FuroEditor/paste-link-segments.d.ts +31 -0
  289. package/types/generated/components/organisms/FuroSidebar/FuroSidebar.vue.d.ts +898 -0
  290. package/types/generated/components/organisms/FuroSidebar/FuroSidebarContext.d.ts +596 -0
  291. package/types/generated/components/organisms/FuroStepper/FuroStepper.vue.d.ts +589 -0
  292. package/types/generated/components/organisms/FuroStepper/FuroStepperContext.d.ts +266 -0
  293. package/types/generated/components/organisms/FuroTable/FuroTable.vue.d.ts +528 -0
  294. package/types/generated/components/organisms/FuroTable/FuroTableContext.d.ts +1035 -0
  295. package/types/generated/components/organisms/FuroTable/FuroTableRowItemContext.d.ts +62 -0
  296. package/types/generated/components/organisms/FuroTabs/FuroTabs.vue.d.ts +515 -0
  297. package/types/generated/components/organisms/FuroTabs/FuroTabsContext.d.ts +438 -0
  298. package/types/generated/components/organisms/FuroToast/FuroToast.vue.d.ts +725 -0
  299. package/types/generated/components/organisms/FuroToast/FuroToastContext.d.ts +543 -0
  300. package/types/generated/components/organisms/FuroToast/FuroToaster.vue.d.ts +729 -0
  301. package/types/generated/components/organisms/FuroToast/FuroToasterContext.d.ts +62 -0
  302. package/types/generated/components/organisms/FuroToast/ToastQueue.d.ts +201 -0
  303. package/types/generated/components/organisms/FuroToast/toast.d.ts +23 -0
  304. package/types/generated/contexts/BaseFuroContext.d.ts +207 -0
  305. package/types/generated/contexts/BaseFuroContextAccessor.d.ts +28 -0
  306. package/types/generated/emit-payload/BaseEmitPayload.d.ts +62 -0
  307. package/types/generated/index.components.d.ts +50 -0
  308. package/types/generated/index.core.d.ts +6 -0
  309. package/types/generated/tools/TimerClerk.d.ts +50 -0
  310. package/types/index.d.ts +12 -0
@@ -0,0 +1,44 @@
1
+ <script>
2
+ import {
3
+ defineComponent,
4
+ } from 'vue'
5
+
6
+ import FuroToast from './FuroToast.vue'
7
+
8
+ import FuroToasterContext from './FuroToasterContext.js'
9
+
10
+ export default defineComponent({
11
+ name: 'FuroToaster',
12
+
13
+ components: {
14
+ FuroToast,
15
+ },
16
+
17
+ setup (
18
+ props,
19
+ componentContext
20
+ ) {
21
+ const context = FuroToasterContext.create({
22
+ props,
23
+ componentContext,
24
+ })
25
+
26
+ return {
27
+ context,
28
+ }
29
+ },
30
+ })
31
+ </script>
32
+
33
+ <template>
34
+ <FuroToast
35
+ :parcel="context.buildParcel()"
36
+ @dismiss="context.onDismiss({
37
+ key: $event.key,
38
+ })"
39
+ @action="context.onAction({
40
+ key: $event.key,
41
+ actionKey: $event.actionKey,
42
+ })"
43
+ />
44
+ </template>
@@ -0,0 +1,113 @@
1
+ import BaseFuroContext from '../../../contexts/BaseFuroContext.js'
2
+
3
+ import {
4
+ toastQueue,
5
+ } from './toast.js'
6
+
7
+ /**
8
+ * Context class for FuroToaster — the single mount point that renders the
9
+ * global imperative toast queue through the controlled `<FuroToast>` organism.
10
+ * Reads the shared `ToastQueue` singleton, forwards its parcel, and routes the
11
+ * component's `dismiss` / `action` events back to the queue.
12
+ *
13
+ * @extends {BaseFuroContext}
14
+ */
15
+ export default class FuroToasterContext extends BaseFuroContext {
16
+ /**
17
+ * Constructor.
18
+ *
19
+ * @param {FuroToasterContextParams} params - Parameters of this constructor.
20
+ */
21
+ constructor ({
22
+ props,
23
+ componentContext,
24
+
25
+ queue,
26
+ }) {
27
+ super({
28
+ props,
29
+ componentContext,
30
+ })
31
+
32
+ this.queue = queue
33
+ }
34
+
35
+ /**
36
+ * Factory method.
37
+ *
38
+ * @template {X extends typeof FuroToasterContext ? X : never} T, X
39
+ * @override
40
+ * @param {FuroToasterContextFactoryParams} params - Parameters of this factory method.
41
+ * @returns {InstanceType<T>} An instance of this class.
42
+ * @this {T}
43
+ */
44
+ static create ({
45
+ props,
46
+ componentContext,
47
+
48
+ queue = toastQueue,
49
+ }) {
50
+ return /** @type {InstanceType<T>} */ (
51
+ new this({
52
+ props,
53
+ componentContext,
54
+
55
+ queue,
56
+ })
57
+ )
58
+ }
59
+
60
+ /**
61
+ * Build the parcel forwarded to `<FuroToast>`.
62
+ *
63
+ * @returns {object}
64
+ */
65
+ buildParcel () {
66
+ return this.queue.buildParcel()
67
+ }
68
+
69
+ /**
70
+ * Handle a toast dismissal from `<FuroToast>`.
71
+ *
72
+ * @param {{
73
+ * key: number | string
74
+ * }} params - Parameters of this method.
75
+ */
76
+ onDismiss ({
77
+ key,
78
+ }) {
79
+ this.queue.removeToast({
80
+ key,
81
+ })
82
+ }
83
+
84
+ /**
85
+ * Handle a toast action click from `<FuroToast>`.
86
+ *
87
+ * @param {{
88
+ * key: number | string
89
+ * actionKey: string
90
+ * }} params - Parameters of this method.
91
+ */
92
+ onAction ({
93
+ key,
94
+ actionKey,
95
+ }) {
96
+ this.queue.invokeAction({
97
+ key,
98
+ actionKey,
99
+ })
100
+ }
101
+ }
102
+
103
+ /**
104
+ * @typedef {import('../../../contexts/BaseFuroContext.js').BaseFuroContextParams & {
105
+ * queue: import('./ToastQueue.js').default
106
+ * }} FuroToasterContextParams
107
+ */
108
+
109
+ /**
110
+ * @typedef {Omit<FuroToasterContextParams, 'queue'> & {
111
+ * queue?: import('./ToastQueue.js').default
112
+ * }} FuroToasterContextFactoryParams
113
+ */
@@ -0,0 +1,325 @@
1
+ import {
2
+ reactive,
3
+ } from 'vue'
4
+
5
+ const DEFAULT_TYPE = 'info'
6
+
7
+ /**
8
+ * Realm-wide key, so duplicate copies of this module still reach one queue.
9
+ */
10
+ const SHARED_INSTANCE_KEY = Symbol.for('@openreachtech/furo-vue/toastQueue')
11
+
12
+ /** @type {ToastConfig} */
13
+ const DEFAULT_CONFIG = {
14
+ position: 'bottom-right',
15
+ durationInMilliseconds: 4000,
16
+ maxVisible: 3,
17
+ label: 'Notifications',
18
+ hotkey: null,
19
+ richColors: false,
20
+ }
21
+
22
+ /**
23
+ * Imperative toast queue backing the global `toast` helper.
24
+ *
25
+ * Holds the reactive toast list and viewport config, and bridges function
26
+ * handlers (`actions[].onClick`) to the controlled `<FuroToast>` parcel: the
27
+ * parcel it builds is JSON-serializable (handlers stripped), while the handlers
28
+ * stay here and are invoked from the component's `action` event. This keeps the
29
+ * `FuroToast` organism controlled and registry-free; the imperative singleton
30
+ * lives only in this opt-in layer.
31
+ */
32
+ export default class ToastQueue {
33
+ /**
34
+ * Constructor.
35
+ *
36
+ * @param {{
37
+ * stateReactive: ToastQueueState
38
+ * }} params - Parameters of this constructor.
39
+ */
40
+ constructor ({
41
+ stateReactive,
42
+ }) {
43
+ this.stateReactive = stateReactive
44
+
45
+ this.nextId = 1
46
+
47
+ /** @type {Record<string, Record<string, () => void>>} */
48
+ this.actionHandlerHash = {}
49
+ }
50
+
51
+ /**
52
+ * Factory method.
53
+ *
54
+ * @param {{
55
+ * stateReactive?: ToastQueueState
56
+ * }} [params] - Parameters of this factory method.
57
+ * @returns {ToastQueue}
58
+ */
59
+ static create ({
60
+ stateReactive = this.buildStateReactive(),
61
+ } = {}) {
62
+ return new this({
63
+ stateReactive,
64
+ })
65
+ }
66
+
67
+ /**
68
+ * Resolve the one queue shared by every copy of this module in the realm.
69
+ *
70
+ * @returns {ToastQueue}
71
+ */
72
+ static resolveSharedInstance () {
73
+ globalThis[SHARED_INSTANCE_KEY] ??= this.create()
74
+
75
+ return globalThis[SHARED_INSTANCE_KEY]
76
+ }
77
+
78
+ /**
79
+ * Build the reactive state (toast list + viewport config).
80
+ *
81
+ * @returns {ToastQueueState}
82
+ */
83
+ static buildStateReactive () {
84
+ return reactive({
85
+ toasts: [],
86
+ config: {
87
+ ...DEFAULT_CONFIG,
88
+ },
89
+ })
90
+ }
91
+
92
+ /**
93
+ * get: current toast entries.
94
+ *
95
+ * @returns {Array<QueuedToast>}
96
+ */
97
+ get toasts () {
98
+ return this.stateReactive.toasts
99
+ }
100
+
101
+ /**
102
+ * Build the parcel forwarded to `<FuroToast>` (config merged with the queue).
103
+ *
104
+ * @returns {object}
105
+ */
106
+ buildParcel () {
107
+ return {
108
+ ...this.stateReactive.config,
109
+ toasts: this.stateReactive.toasts,
110
+ }
111
+ }
112
+
113
+ /**
114
+ * Reserve and return the next stable toast key.
115
+ *
116
+ * @returns {number}
117
+ */
118
+ reserveKey () {
119
+ const key = this.nextId
120
+
121
+ this.nextId += 1
122
+
123
+ return key
124
+ }
125
+
126
+ /**
127
+ * Register a toast's action handlers and return serializable descriptors.
128
+ *
129
+ * @param {{
130
+ * key: number | string
131
+ * actions: Array<{ label: string, onClick?: () => void }>
132
+ * }} params - Parameters of this method.
133
+ * @returns {Array<{ actionKey: string, label: string }>}
134
+ */
135
+ registerActions ({
136
+ key,
137
+ actions,
138
+ }) {
139
+ const descriptors = actions.map((action, index) => ({
140
+ actionKey: `action-${index}`,
141
+ label: action.label,
142
+ }))
143
+
144
+ const handlerEntries = actions.map((action, index) => [
145
+ `action-${index}`,
146
+ action.onClick ?? (() => {}),
147
+ ])
148
+
149
+ this.actionHandlerHash[key] = Object.fromEntries(handlerEntries)
150
+
151
+ return descriptors
152
+ }
153
+
154
+ /**
155
+ * Push a new toast onto the queue.
156
+ *
157
+ * @param {{
158
+ * title?: string | null
159
+ * description?: string | null
160
+ * type?: string
161
+ * durationInMilliseconds?: number | null
162
+ * closeText?: string | null
163
+ * actions?: Array<{ label: string, onClick?: () => void }>
164
+ * }} [params] - Parameters of this method.
165
+ * @returns {number} The new toast key.
166
+ */
167
+ addToast ({
168
+ title = null,
169
+ description = null,
170
+ type = DEFAULT_TYPE,
171
+ durationInMilliseconds = null,
172
+ closeText = null,
173
+ actions = [],
174
+ } = {}) {
175
+ const key = this.reserveKey()
176
+
177
+ const descriptors = this.registerActions({
178
+ key,
179
+ actions,
180
+ })
181
+
182
+ this.stateReactive.toasts = [
183
+ ...this.stateReactive.toasts,
184
+ {
185
+ key,
186
+ title,
187
+ description,
188
+ type,
189
+ durationInMilliseconds,
190
+ closeText,
191
+ actions: descriptors,
192
+ },
193
+ ]
194
+
195
+ return key
196
+ }
197
+
198
+ /**
199
+ * Patch an existing toast (e.g. loading → success). Re-registers handlers
200
+ * when the patch carries new actions.
201
+ *
202
+ * @param {{
203
+ * key: number | string
204
+ * patch: Partial<QueuedToast>
205
+ * }} params - Parameters of this method.
206
+ */
207
+ updateToast ({
208
+ key,
209
+ patch,
210
+ }) {
211
+ const index = this.stateReactive.toasts.findIndex(toast => toast.key === key)
212
+
213
+ if (index === -1) {
214
+ return
215
+ }
216
+
217
+ const current = this.stateReactive.toasts[index]
218
+
219
+ const nextActions = Array.isArray(patch.actions)
220
+ ? this.registerActions({
221
+ key,
222
+ actions: patch.actions,
223
+ })
224
+ : current.actions
225
+
226
+ const nextToasts = [
227
+ ...this.stateReactive.toasts,
228
+ ]
229
+
230
+ nextToasts[index] = {
231
+ ...current,
232
+ ...patch,
233
+ actions: nextActions,
234
+ }
235
+
236
+ this.stateReactive.toasts = nextToasts
237
+ }
238
+
239
+ /**
240
+ * Remove a toast from the queue.
241
+ *
242
+ * @param {{
243
+ * key: number | string
244
+ * }} params - Parameters of this method.
245
+ */
246
+ removeToast ({
247
+ key,
248
+ }) {
249
+ this.stateReactive.toasts = this.stateReactive.toasts
250
+ .filter(toast => toast.key !== key)
251
+
252
+ delete this.actionHandlerHash[key]
253
+ }
254
+
255
+ /**
256
+ * Remove all toasts.
257
+ */
258
+ clearToasts () {
259
+ this.stateReactive.toasts = []
260
+
261
+ this.actionHandlerHash = {}
262
+ }
263
+
264
+ /**
265
+ * Merge viewport configuration (position, duration, maxVisible, …).
266
+ *
267
+ * @param {ToastConfig} [params] - Configuration to merge.
268
+ */
269
+ configure (params = {}) {
270
+ Object.assign(
271
+ this.stateReactive.config,
272
+ params
273
+ )
274
+ }
275
+
276
+ /**
277
+ * Invoke a toast's action handler by key.
278
+ *
279
+ * @param {{
280
+ * key: number | string
281
+ * actionKey: string
282
+ * }} params - Parameters of this method.
283
+ */
284
+ invokeAction ({
285
+ key,
286
+ actionKey,
287
+ }) {
288
+ const handler = this.actionHandlerHash[key]?.[actionKey]
289
+ ?? null
290
+
291
+ if (handler === null) {
292
+ return
293
+ }
294
+
295
+ handler()
296
+ }
297
+ }
298
+
299
+ /**
300
+ * A toast entry stored in the queue (serializable; handlers live separately).
301
+ *
302
+ * @typedef {{
303
+ * key: number | string
304
+ * title: string | null
305
+ * description: string | null
306
+ * type: string
307
+ * durationInMilliseconds: number | null
308
+ * closeText: string | null
309
+ * actions: Array<{ actionKey: string, label: string }>
310
+ * }} QueuedToast
311
+ */
312
+
313
+ /**
314
+ * Viewport configuration shared by all toasts — the `<FuroToast>` parcel
315
+ * without the per-toast queue.
316
+ *
317
+ * @typedef {Omit<import('./FuroToastContext.js').ToastParcel, 'toasts'>} ToastConfig
318
+ */
319
+
320
+ /**
321
+ * @typedef {import('vue').Reactive<{
322
+ * toasts: Array<QueuedToast>
323
+ * config: ToastConfig
324
+ * }>} ToastQueueState
325
+ */
@@ -0,0 +1,64 @@
1
+ import ToastQueue from './ToastQueue.js'
2
+
3
+ /**
4
+ * Realm-wide toast queue backing the `toast` helper and consumed by
5
+ * `<FuroToaster>`. See `docs/furo-toast.md` for the SSR caveat.
6
+ */
7
+ export const toastQueue = ToastQueue.resolveSharedInstance()
8
+
9
+ /**
10
+ * Global imperative toast helper, reached as
11
+ * `import { toast } from '@openreachtech/furo-vue'`.
12
+ */
13
+ export const toast = {
14
+ /**
15
+ * Show a toast.
16
+ *
17
+ * @param {{
18
+ * title?: string | null
19
+ * description?: string | null
20
+ * type?: string
21
+ * durationInMilliseconds?: number | null
22
+ * closeText?: string | null
23
+ * actions?: Array<{ label: string, onClick?: () => void }>
24
+ * }} [params] - Toast options.
25
+ * @returns {number} The toast key (use it with `hide` / `update`).
26
+ */
27
+ show: params => toastQueue.addToast(params),
28
+
29
+ /**
30
+ * Hide (dismiss) a toast by key.
31
+ *
32
+ * @param {number | string} key - The toast key returned by `show`.
33
+ */
34
+ hide: key => {
35
+ toastQueue.removeToast({ key })
36
+ },
37
+
38
+ /**
39
+ * Update an existing toast (e.g. loading → success).
40
+ *
41
+ * @param {number | string} key - The toast key.
42
+ * @param {object} patch - Fields to merge into the toast.
43
+ */
44
+ update: (key, patch) => {
45
+ toastQueue.updateToast({ key, patch })
46
+ },
47
+
48
+ /**
49
+ * Remove all toasts.
50
+ */
51
+ clear: () => {
52
+ toastQueue.clearToasts()
53
+ },
54
+
55
+ /**
56
+ * Configure the viewport (position, durationInMilliseconds, maxVisible,
57
+ * richColors, …) for all toasts.
58
+ *
59
+ * @param {import('./ToastQueue.js').ToastConfig} [params] - Configuration to merge.
60
+ */
61
+ configure: params => {
62
+ toastQueue.configure(params)
63
+ },
64
+ }