@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.
- package/LICENSE +9 -0
- package/README.ja.md +334 -0
- package/README.md +333 -0
- package/index.js +11 -0
- package/lib/assets/css/furo/0010.variables-palette-color-scale.css +298 -0
- package/lib/assets/css/furo/0020.variables-z-index.css +10 -0
- package/lib/assets/css/furo/0030.variables-semantic-color.css +178 -0
- package/lib/assets/css/furo/0035.variables-semantic-dimension.css +104 -0
- package/lib/assets/css/furo/0040.variables-component-furo.css +28 -0
- package/lib/assets/css/furo/0050.furo-editor-content.css +22 -0
- package/lib/assets/css/furo.css +15 -0
- package/lib/components/atoms/FuroAvatar/FuroAvatar.vue +135 -0
- package/lib/components/atoms/FuroAvatar/FuroAvatarContext.js +147 -0
- package/lib/components/atoms/FuroBadge/FuroBadge.vue +240 -0
- package/lib/components/atoms/FuroBadge/FuroBadgeContext.js +298 -0
- package/lib/components/atoms/FuroButton/ButtonEmitPayload.js +44 -0
- package/lib/components/atoms/FuroButton/FuroButton.vue +301 -0
- package/lib/components/atoms/FuroButton/FuroButtonContext.js +328 -0
- package/lib/components/atoms/FuroCheckbox/CheckboxEmitPayload.js +106 -0
- package/lib/components/atoms/FuroCheckbox/FuroCheckbox.vue +173 -0
- package/lib/components/atoms/FuroCheckbox/FuroCheckboxContext.js +682 -0
- package/lib/components/atoms/FuroEmailField/EmailFieldEmitPayload.js +74 -0
- package/lib/components/atoms/FuroEmailField/FuroEmailField.vue +119 -0
- package/lib/components/atoms/FuroEmailField/FuroEmailFieldContext.js +311 -0
- package/lib/components/atoms/FuroFileField/FileFieldEmitPayload.js +80 -0
- package/lib/components/atoms/FuroFileField/FuroFileField.vue +128 -0
- package/lib/components/atoms/FuroFileField/FuroFileFieldContext.js +195 -0
- package/lib/components/atoms/FuroIcon/FuroIcon.vue +74 -0
- package/lib/components/atoms/FuroIcon/FuroIconContext.js +293 -0
- package/lib/components/atoms/FuroIcon/FuroIconRegistry.js +617 -0
- package/lib/components/atoms/FuroIcon/FuroIconifyRendererContext.js +101 -0
- package/lib/components/atoms/FuroIcon/furoIconData.js +164 -0
- package/lib/components/atoms/FuroIcon/iconRenderers.js +62 -0
- package/lib/components/atoms/FuroIcon/icons.js +7 -0
- package/lib/components/atoms/FuroNumberField/FuroNumberField.vue +213 -0
- package/lib/components/atoms/FuroNumberField/FuroNumberFieldContext.js +442 -0
- package/lib/components/atoms/FuroNumberField/NumberFieldEmitPayload.js +162 -0
- package/lib/components/atoms/FuroPasswordField/FuroPasswordField.vue +119 -0
- package/lib/components/atoms/FuroPasswordField/FuroPasswordFieldContext.js +311 -0
- package/lib/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.js +74 -0
- package/lib/components/atoms/FuroRadio/FuroRadio.vue +193 -0
- package/lib/components/atoms/FuroRadio/FuroRadioContext.js +557 -0
- package/lib/components/atoms/FuroRadio/RadioEmitPayload.js +72 -0
- package/lib/components/atoms/FuroSwitch/FuroSwitch.vue +165 -0
- package/lib/components/atoms/FuroSwitch/FuroSwitchContext.js +440 -0
- package/lib/components/atoms/FuroSwitch/SwitchEmitPayload.js +86 -0
- package/lib/components/atoms/FuroTextField/FuroTextField.vue +119 -0
- package/lib/components/atoms/FuroTextField/FuroTextFieldContext.js +311 -0
- package/lib/components/atoms/FuroTextField/TextFieldEmitPayload.js +83 -0
- package/lib/components/atoms/FuroTextarea/FuroTextarea.vue +121 -0
- package/lib/components/atoms/FuroTextarea/FuroTextareaContext.js +322 -0
- package/lib/components/atoms/FuroTextarea/TextareaEmitPayload.js +83 -0
- package/lib/components/atoms/FuroToggle/FuroToggle.vue +172 -0
- package/lib/components/atoms/FuroToggle/FuroToggleContext.js +410 -0
- package/lib/components/atoms/FuroToggle/ToggleEmitPayload.js +86 -0
- package/lib/components/molecules/FuroAccordion/AccordionEmitPayload.js +80 -0
- package/lib/components/molecules/FuroAccordion/FuroAccordion.vue +219 -0
- package/lib/components/molecules/FuroAccordion/FuroAccordionContext.js +547 -0
- package/lib/components/molecules/FuroAttachment/FuroAttachment.vue +376 -0
- package/lib/components/molecules/FuroAttachment/FuroAttachmentContext.js +628 -0
- package/lib/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.js +225 -0
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue +669 -0
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.js +1525 -0
- package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue +126 -0
- package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.js +245 -0
- package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue +219 -0
- package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.js +257 -0
- package/lib/components/molecules/FuroCollapsible/CollapsibleEmitPayload.js +69 -0
- package/lib/components/molecules/FuroCollapsible/FuroCollapsible.vue +177 -0
- package/lib/components/molecules/FuroCollapsible/FuroCollapsibleContext.js +389 -0
- package/lib/components/molecules/FuroControlBlock/FuroControlBlock.vue +149 -0
- package/lib/components/molecules/FuroControlBlock/FuroControlBlockContext.js +81 -0
- package/lib/components/molecules/FuroDatePicker/DatePickerEmitPayload.js +74 -0
- package/lib/components/molecules/FuroDatePicker/FuroDatePicker.vue +661 -0
- package/lib/components/molecules/FuroDatePicker/FuroDatePickerContext.js +1038 -0
- package/lib/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.js +96 -0
- package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue +153 -0
- package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.js +840 -0
- package/lib/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.js +100 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue +348 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.js +714 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue +222 -0
- package/lib/components/molecules/FuroEditableField/EditableEmitPayload.js +89 -0
- package/lib/components/molecules/FuroEditableField/FuroEditableField.vue +314 -0
- package/lib/components/molecules/FuroEditableField/FuroEditableFieldContext.js +1018 -0
- package/lib/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.js +236 -0
- package/lib/components/molecules/FuroEditableField/processors/ObjectProcessor.js +101 -0
- package/lib/components/molecules/FuroEmptyState/FuroEmptyState.vue +124 -0
- package/lib/components/molecules/FuroEmptyState/FuroEmptyStateContext.js +42 -0
- package/lib/components/molecules/FuroErrorState/FuroErrorState.vue +125 -0
- package/lib/components/molecules/FuroErrorState/FuroErrorStateContext.js +42 -0
- package/lib/components/molecules/FuroPagination/FuroPagination.vue +246 -0
- package/lib/components/molecules/FuroPagination/FuroPaginationContext.js +489 -0
- package/lib/components/molecules/FuroPopover/FuroPopover.vue +171 -0
- package/lib/components/molecules/FuroPopover/FuroPopoverContext.js +279 -0
- package/lib/components/molecules/FuroScrollArea/FuroScrollArea.vue +181 -0
- package/lib/components/molecules/FuroScrollArea/FuroScrollAreaContext.js +149 -0
- package/lib/components/molecules/FuroSearchField/FuroSearchField.vue +155 -0
- package/lib/components/molecules/FuroSearchField/FuroSearchFieldContext.js +231 -0
- package/lib/components/molecules/FuroSectionHeader/FuroSectionHeader.vue +140 -0
- package/lib/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.js +204 -0
- package/lib/components/molecules/FuroSelect/FuroSelect.vue +474 -0
- package/lib/components/molecules/FuroSelect/FuroSelectContext.js +743 -0
- package/lib/components/molecules/FuroSelect/SelectEmitPayload.js +181 -0
- package/lib/components/molecules/FuroSeparator/FuroSeparator.vue +88 -0
- package/lib/components/molecules/FuroSeparator/FuroSeparatorContext.js +40 -0
- package/lib/components/molecules/FuroSkeleton/FuroSkeleton.vue +101 -0
- package/lib/components/molecules/FuroSkeleton/FuroSkeletonContext.js +82 -0
- package/lib/components/molecules/FuroSplitter/FuroSplitter.vue +237 -0
- package/lib/components/molecules/FuroSplitter/FuroSplitterContext.js +429 -0
- package/lib/components/molecules/FuroSplitter/SplitterEmitPayload.js +69 -0
- package/lib/components/molecules/FuroTimeField/FuroTimeField.vue +251 -0
- package/lib/components/molecules/FuroTimeField/FuroTimeFieldContext.js +1138 -0
- package/lib/components/molecules/FuroTimeField/TimeFieldEmitPayload.js +74 -0
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroup.vue +211 -0
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroupContext.js +551 -0
- package/lib/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.js +80 -0
- package/lib/components/molecules/FuroToolBar/FuroToolBar.vue +91 -0
- package/lib/components/molecules/FuroToolBar/FuroToolBarContext.js +75 -0
- package/lib/components/molecules/FuroTooltip/FuroTooltip.vue +183 -0
- package/lib/components/molecules/FuroTooltip/FuroTooltipContext.js +290 -0
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialog.vue +324 -0
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialogContext.js +608 -0
- package/lib/components/organisms/FuroDialog/FuroDialog.vue +362 -0
- package/lib/components/organisms/FuroDialog/FuroDialogContext.js +535 -0
- package/lib/components/organisms/FuroDrawer/FuroDrawer.vue +618 -0
- package/lib/components/organisms/FuroDrawer/FuroDrawerContext.js +676 -0
- package/lib/components/organisms/FuroEditor/FuroEditor.vue +613 -0
- package/lib/components/organisms/FuroEditor/FuroEditorCommandContext.js +420 -0
- package/lib/components/organisms/FuroEditor/FuroEditorContext.js +2048 -0
- package/lib/components/organisms/FuroEditor/FuroEditorMentionMenu.vue +120 -0
- package/lib/components/organisms/FuroEditor/FuroEditorMentionMenuContext.js +261 -0
- package/lib/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.js +267 -0
- package/lib/components/organisms/FuroEditor/build-editor-extensions.js +97 -0
- package/lib/components/organisms/FuroEditor/mention-suggestion.js +320 -0
- package/lib/components/organisms/FuroEditor/paste-link-segments.js +124 -0
- package/lib/components/organisms/FuroSidebar/FuroSidebar.vue +473 -0
- package/lib/components/organisms/FuroSidebar/FuroSidebarContext.js +1014 -0
- package/lib/components/organisms/FuroStepper/FuroStepper.vue +345 -0
- package/lib/components/organisms/FuroStepper/FuroStepperContext.js +481 -0
- package/lib/components/organisms/FuroTable/FuroTable.vue +707 -0
- package/lib/components/organisms/FuroTable/FuroTableContext.js +1965 -0
- package/lib/components/organisms/FuroTable/FuroTableRowItemContext.js +111 -0
- package/lib/components/organisms/FuroTabs/FuroTabs.vue +403 -0
- package/lib/components/organisms/FuroTabs/FuroTabsContext.js +846 -0
- package/lib/components/organisms/FuroToast/FuroToast.vue +624 -0
- package/lib/components/organisms/FuroToast/FuroToastContext.js +1089 -0
- package/lib/components/organisms/FuroToast/FuroToaster.vue +44 -0
- package/lib/components/organisms/FuroToast/FuroToasterContext.js +113 -0
- package/lib/components/organisms/FuroToast/ToastQueue.js +325 -0
- package/lib/components/organisms/FuroToast/toast.js +64 -0
- package/lib/contexts/BaseFuroContext.js +318 -0
- package/lib/contexts/BaseFuroContextAccessor.js +47 -0
- package/lib/emit-payload/BaseEmitPayload.js +91 -0
- package/lib/index.components.js +61 -0
- package/lib/index.core.js +18 -0
- package/lib/tools/TimerClerk.js +75 -0
- package/nuxt/index.js +109 -0
- package/nuxt/runtime/furo-icon-renderer.js +24 -0
- package/package.json +137 -0
- package/public/furo-vue/components.json +4619 -0
- package/public/furo-vue/llms.txt +66 -0
- package/types/furo-nuxt.d.ts +48 -0
- package/types/generated/components/atoms/FuroAvatar/FuroAvatar.vue.d.ts +74 -0
- package/types/generated/components/atoms/FuroAvatar/FuroAvatarContext.d.ts +82 -0
- package/types/generated/components/atoms/FuroBadge/FuroBadge.vue.d.ts +12 -0
- package/types/generated/components/atoms/FuroBadge/FuroBadgeContext.d.ts +160 -0
- package/types/generated/components/atoms/FuroButton/ButtonEmitPayload.d.ts +19 -0
- package/types/generated/components/atoms/FuroButton/FuroButton.vue.d.ts +53 -0
- package/types/generated/components/atoms/FuroButton/FuroButtonContext.d.ts +156 -0
- package/types/generated/components/atoms/FuroCheckbox/CheckboxEmitPayload.d.ts +55 -0
- package/types/generated/components/atoms/FuroCheckbox/FuroCheckbox.vue.d.ts +87 -0
- package/types/generated/components/atoms/FuroCheckbox/FuroCheckboxContext.d.ts +342 -0
- package/types/generated/components/atoms/FuroEmailField/EmailFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroEmailField/FuroEmailField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroEmailField/FuroEmailFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroFileField/FileFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroFileField/FuroFileField.vue.d.ts +454 -0
- package/types/generated/components/atoms/FuroFileField/FuroFileFieldContext.d.ts +109 -0
- package/types/generated/components/atoms/FuroIcon/FuroIcon.vue.d.ts +14 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconContext.d.ts +152 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconRegistry.d.ts +457 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconifyRendererContext.d.ts +65 -0
- package/types/generated/components/atoms/FuroIcon/furoIconData.d.ts +154 -0
- package/types/generated/components/atoms/FuroIcon/iconRenderers.d.ts +6 -0
- package/types/generated/components/atoms/FuroIcon/icons.d.ts +6 -0
- package/types/generated/components/atoms/FuroNumberField/FuroNumberField.vue.d.ts +500 -0
- package/types/generated/components/atoms/FuroNumberField/FuroNumberFieldContext.d.ts +243 -0
- package/types/generated/components/atoms/FuroNumberField/NumberFieldEmitPayload.d.ts +74 -0
- package/types/generated/components/atoms/FuroPasswordField/FuroPasswordField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroPasswordField/FuroPasswordFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroRadio/FuroRadio.vue.d.ts +96 -0
- package/types/generated/components/atoms/FuroRadio/FuroRadioContext.d.ts +290 -0
- package/types/generated/components/atoms/FuroRadio/RadioEmitPayload.d.ts +39 -0
- package/types/generated/components/atoms/FuroSwitch/FuroSwitch.vue.d.ts +74 -0
- package/types/generated/components/atoms/FuroSwitch/FuroSwitchContext.d.ts +218 -0
- package/types/generated/components/atoms/FuroSwitch/SwitchEmitPayload.d.ts +42 -0
- package/types/generated/components/atoms/FuroTextField/FuroTextField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroTextField/FuroTextFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroTextField/TextFieldEmitPayload.d.ts +52 -0
- package/types/generated/components/atoms/FuroTextarea/FuroTextarea.vue.d.ts +422 -0
- package/types/generated/components/atoms/FuroTextarea/FuroTextareaContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroTextarea/TextareaEmitPayload.d.ts +52 -0
- package/types/generated/components/atoms/FuroToggle/FuroToggle.vue.d.ts +51 -0
- package/types/generated/components/atoms/FuroToggle/FuroToggleContext.d.ts +191 -0
- package/types/generated/components/atoms/FuroToggle/ToggleEmitPayload.d.ts +42 -0
- package/types/generated/components/molecules/FuroAccordion/AccordionEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroAccordion/FuroAccordion.vue.d.ts +133 -0
- package/types/generated/components/molecules/FuroAccordion/FuroAccordionContext.d.ts +279 -0
- package/types/generated/components/molecules/FuroAttachment/FuroAttachment.vue.d.ts +79 -0
- package/types/generated/components/molecules/FuroAttachment/FuroAttachmentContext.d.ts +363 -0
- package/types/generated/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.d.ts +129 -0
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts +751 -0
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts +722 -0
- package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue.d.ts +84 -0
- package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.d.ts +150 -0
- package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue.d.ts +24 -0
- package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.d.ts +152 -0
- package/types/generated/components/molecules/FuroCollapsible/CollapsibleEmitPayload.d.ts +36 -0
- package/types/generated/components/molecules/FuroCollapsible/FuroCollapsible.vue.d.ts +98 -0
- package/types/generated/components/molecules/FuroCollapsible/FuroCollapsibleContext.d.ts +191 -0
- package/types/generated/components/molecules/FuroControlBlock/FuroControlBlock.vue.d.ts +30 -0
- package/types/generated/components/molecules/FuroControlBlock/FuroControlBlockContext.d.ts +57 -0
- package/types/generated/components/molecules/FuroDatePicker/DatePickerEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroDatePicker/FuroDatePicker.vue.d.ts +456 -0
- package/types/generated/components/molecules/FuroDatePicker/FuroDatePickerContext.d.ts +516 -0
- package/types/generated/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.d.ts +55 -0
- package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue.d.ts +1365 -0
- package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.d.ts +435 -0
- package/types/generated/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.d.ts +48 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue.d.ts +773 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.d.ts +380 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue.d.ts +261 -0
- package/types/generated/components/molecules/FuroEditableField/EditableEmitPayload.d.ts +39 -0
- package/types/generated/components/molecules/FuroEditableField/FuroEditableField.vue.d.ts +646 -0
- package/types/generated/components/molecules/FuroEditableField/FuroEditableFieldContext.d.ts +477 -0
- package/types/generated/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.d.ts +121 -0
- package/types/generated/components/molecules/FuroEditableField/processors/ObjectProcessor.d.ts +45 -0
- package/types/generated/components/molecules/FuroEmptyState/FuroEmptyState.vue.d.ts +21 -0
- package/types/generated/components/molecules/FuroEmptyState/FuroEmptyStateContext.d.ts +32 -0
- package/types/generated/components/molecules/FuroErrorState/FuroErrorState.vue.d.ts +21 -0
- package/types/generated/components/molecules/FuroErrorState/FuroErrorStateContext.d.ts +32 -0
- package/types/generated/components/molecules/FuroPagination/FuroPagination.vue.d.ts +534 -0
- package/types/generated/components/molecules/FuroPagination/FuroPaginationContext.d.ts +271 -0
- package/types/generated/components/molecules/FuroPopover/FuroPopover.vue.d.ts +513 -0
- package/types/generated/components/molecules/FuroPopover/FuroPopoverContext.d.ts +160 -0
- package/types/generated/components/molecules/FuroScrollArea/FuroScrollArea.vue.d.ts +124 -0
- package/types/generated/components/molecules/FuroScrollArea/FuroScrollAreaContext.d.ts +86 -0
- package/types/generated/components/molecules/FuroSearchField/FuroSearchField.vue.d.ts +487 -0
- package/types/generated/components/molecules/FuroSearchField/FuroSearchFieldContext.d.ts +137 -0
- package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeader.vue.d.ts +49 -0
- package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.d.ts +121 -0
- package/types/generated/components/molecules/FuroSelect/FuroSelect.vue.d.ts +719 -0
- package/types/generated/components/molecules/FuroSelect/FuroSelectContext.d.ts +402 -0
- package/types/generated/components/molecules/FuroSelect/SelectEmitPayload.d.ts +102 -0
- package/types/generated/components/molecules/FuroSeparator/FuroSeparator.vue.d.ts +39 -0
- package/types/generated/components/molecules/FuroSeparator/FuroSeparatorContext.d.ts +31 -0
- package/types/generated/components/molecules/FuroSkeleton/FuroSkeleton.vue.d.ts +27 -0
- package/types/generated/components/molecules/FuroSkeleton/FuroSkeletonContext.d.ts +61 -0
- package/types/generated/components/molecules/FuroSplitter/FuroSplitter.vue.d.ts +139 -0
- package/types/generated/components/molecules/FuroSplitter/FuroSplitterContext.d.ts +226 -0
- package/types/generated/components/molecules/FuroSplitter/SplitterEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroTimeField/FuroTimeField.vue.d.ts +498 -0
- package/types/generated/components/molecules/FuroTimeField/FuroTimeFieldContext.d.ts +555 -0
- package/types/generated/components/molecules/FuroTimeField/TimeFieldEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroup.vue.d.ts +70 -0
- package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroupContext.d.ts +270 -0
- package/types/generated/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroToolBar/FuroToolBar.vue.d.ts +30 -0
- package/types/generated/components/molecules/FuroToolBar/FuroToolBarContext.d.ts +48 -0
- package/types/generated/components/molecules/FuroTooltip/FuroTooltip.vue.d.ts +524 -0
- package/types/generated/components/molecules/FuroTooltip/FuroTooltipContext.d.ts +166 -0
- package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialog.vue.d.ts +651 -0
- package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialogContext.d.ts +299 -0
- package/types/generated/components/organisms/FuroDialog/FuroDialog.vue.d.ts +583 -0
- package/types/generated/components/organisms/FuroDialog/FuroDialogContext.d.ts +264 -0
- package/types/generated/components/organisms/FuroDrawer/FuroDrawer.vue.d.ts +635 -0
- package/types/generated/components/organisms/FuroDrawer/FuroDrawerContext.d.ts +347 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditor.vue.d.ts +2487 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorCommandContext.d.ts +192 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorContext.d.ts +904 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenu.vue.d.ts +43 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenuContext.d.ts +159 -0
- package/types/generated/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.d.ts +43 -0
- package/types/generated/components/organisms/FuroEditor/build-editor-extensions.d.ts +22 -0
- package/types/generated/components/organisms/FuroEditor/mention-suggestion.d.ts +25 -0
- package/types/generated/components/organisms/FuroEditor/paste-link-segments.d.ts +31 -0
- package/types/generated/components/organisms/FuroSidebar/FuroSidebar.vue.d.ts +898 -0
- package/types/generated/components/organisms/FuroSidebar/FuroSidebarContext.d.ts +596 -0
- package/types/generated/components/organisms/FuroStepper/FuroStepper.vue.d.ts +589 -0
- package/types/generated/components/organisms/FuroStepper/FuroStepperContext.d.ts +266 -0
- package/types/generated/components/organisms/FuroTable/FuroTable.vue.d.ts +528 -0
- package/types/generated/components/organisms/FuroTable/FuroTableContext.d.ts +1035 -0
- package/types/generated/components/organisms/FuroTable/FuroTableRowItemContext.d.ts +62 -0
- package/types/generated/components/organisms/FuroTabs/FuroTabs.vue.d.ts +515 -0
- package/types/generated/components/organisms/FuroTabs/FuroTabsContext.d.ts +438 -0
- package/types/generated/components/organisms/FuroToast/FuroToast.vue.d.ts +725 -0
- package/types/generated/components/organisms/FuroToast/FuroToastContext.d.ts +543 -0
- package/types/generated/components/organisms/FuroToast/FuroToaster.vue.d.ts +729 -0
- package/types/generated/components/organisms/FuroToast/FuroToasterContext.d.ts +62 -0
- package/types/generated/components/organisms/FuroToast/ToastQueue.d.ts +201 -0
- package/types/generated/components/organisms/FuroToast/toast.d.ts +23 -0
- package/types/generated/contexts/BaseFuroContext.d.ts +207 -0
- package/types/generated/contexts/BaseFuroContextAccessor.d.ts +28 -0
- package/types/generated/emit-payload/BaseEmitPayload.d.ts +62 -0
- package/types/generated/index.components.d.ts +50 -0
- package/types/generated/index.core.d.ts +6 -0
- package/types/generated/tools/TimerClerk.d.ts +50 -0
- package/types/index.d.ts +12 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for FuroToaster — the single mount point that renders the
|
|
3
|
+
* global imperative toast queue through the controlled `<FuroToast>` organism.
|
|
4
|
+
* Reads the shared `ToastQueue` singleton, forwards its parcel, and routes the
|
|
5
|
+
* component's `dismiss` / `action` events back to the queue.
|
|
6
|
+
*
|
|
7
|
+
* @extends {BaseFuroContext}
|
|
8
|
+
*/
|
|
9
|
+
export default class FuroToasterContext extends BaseFuroContext<null, any, null> {
|
|
10
|
+
/**
|
|
11
|
+
* Factory method.
|
|
12
|
+
*
|
|
13
|
+
* @template {X extends typeof FuroToasterContext ? X : never} T, X
|
|
14
|
+
* @override
|
|
15
|
+
* @param {FuroToasterContextFactoryParams} params - Parameters of this factory method.
|
|
16
|
+
* @returns {InstanceType<T>} An instance of this class.
|
|
17
|
+
* @this {T}
|
|
18
|
+
*/
|
|
19
|
+
static override create<T extends X extends typeof FuroToasterContext ? X : never, X>(this: T, { props, componentContext, queue, }: FuroToasterContextFactoryParams): InstanceType<T>;
|
|
20
|
+
/**
|
|
21
|
+
* Constructor.
|
|
22
|
+
*
|
|
23
|
+
* @param {FuroToasterContextParams} params - Parameters of this constructor.
|
|
24
|
+
*/
|
|
25
|
+
constructor({ props, componentContext, queue, }: FuroToasterContextParams);
|
|
26
|
+
queue: import("./ToastQueue.js").default;
|
|
27
|
+
/**
|
|
28
|
+
* Build the parcel forwarded to `<FuroToast>`.
|
|
29
|
+
*
|
|
30
|
+
* @returns {object}
|
|
31
|
+
*/
|
|
32
|
+
buildParcel(): object;
|
|
33
|
+
/**
|
|
34
|
+
* Handle a toast dismissal from `<FuroToast>`.
|
|
35
|
+
*
|
|
36
|
+
* @param {{
|
|
37
|
+
* key: number | string
|
|
38
|
+
* }} params - Parameters of this method.
|
|
39
|
+
*/
|
|
40
|
+
onDismiss({ key, }: {
|
|
41
|
+
key: number | string;
|
|
42
|
+
}): void;
|
|
43
|
+
/**
|
|
44
|
+
* Handle a toast action click from `<FuroToast>`.
|
|
45
|
+
*
|
|
46
|
+
* @param {{
|
|
47
|
+
* key: number | string
|
|
48
|
+
* actionKey: string
|
|
49
|
+
* }} params - Parameters of this method.
|
|
50
|
+
*/
|
|
51
|
+
onAction({ key, actionKey, }: {
|
|
52
|
+
key: number | string;
|
|
53
|
+
actionKey: string;
|
|
54
|
+
}): void;
|
|
55
|
+
}
|
|
56
|
+
export type FuroToasterContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
57
|
+
queue: import("./ToastQueue.js").default;
|
|
58
|
+
};
|
|
59
|
+
export type FuroToasterContextFactoryParams = Omit<FuroToasterContextParams, "queue"> & {
|
|
60
|
+
queue?: import("./ToastQueue.js").default;
|
|
61
|
+
};
|
|
62
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imperative toast queue backing the global `toast` helper.
|
|
3
|
+
*
|
|
4
|
+
* Holds the reactive toast list and viewport config, and bridges function
|
|
5
|
+
* handlers (`actions[].onClick`) to the controlled `<FuroToast>` parcel: the
|
|
6
|
+
* parcel it builds is JSON-serializable (handlers stripped), while the handlers
|
|
7
|
+
* stay here and are invoked from the component's `action` event. This keeps the
|
|
8
|
+
* `FuroToast` organism controlled and registry-free; the imperative singleton
|
|
9
|
+
* lives only in this opt-in layer.
|
|
10
|
+
*/
|
|
11
|
+
export default class ToastQueue {
|
|
12
|
+
/**
|
|
13
|
+
* Factory method.
|
|
14
|
+
*
|
|
15
|
+
* @param {{
|
|
16
|
+
* stateReactive?: ToastQueueState
|
|
17
|
+
* }} [params] - Parameters of this factory method.
|
|
18
|
+
* @returns {ToastQueue}
|
|
19
|
+
*/
|
|
20
|
+
static create({ stateReactive, }?: {
|
|
21
|
+
stateReactive?: ToastQueueState;
|
|
22
|
+
}): ToastQueue;
|
|
23
|
+
/**
|
|
24
|
+
* Resolve the one queue shared by every copy of this module in the realm.
|
|
25
|
+
*
|
|
26
|
+
* @returns {ToastQueue}
|
|
27
|
+
*/
|
|
28
|
+
static resolveSharedInstance(): ToastQueue;
|
|
29
|
+
/**
|
|
30
|
+
* Build the reactive state (toast list + viewport config).
|
|
31
|
+
*
|
|
32
|
+
* @returns {ToastQueueState}
|
|
33
|
+
*/
|
|
34
|
+
static buildStateReactive(): ToastQueueState;
|
|
35
|
+
/**
|
|
36
|
+
* Constructor.
|
|
37
|
+
*
|
|
38
|
+
* @param {{
|
|
39
|
+
* stateReactive: ToastQueueState
|
|
40
|
+
* }} params - Parameters of this constructor.
|
|
41
|
+
*/
|
|
42
|
+
constructor({ stateReactive, }: {
|
|
43
|
+
stateReactive: ToastQueueState;
|
|
44
|
+
});
|
|
45
|
+
stateReactive: {
|
|
46
|
+
toasts: {
|
|
47
|
+
key: number | string;
|
|
48
|
+
title: string | null;
|
|
49
|
+
description: string | null;
|
|
50
|
+
type: string;
|
|
51
|
+
durationInMilliseconds: number | null;
|
|
52
|
+
closeText: string | null;
|
|
53
|
+
actions: {
|
|
54
|
+
actionKey: string;
|
|
55
|
+
label: string;
|
|
56
|
+
}[];
|
|
57
|
+
}[];
|
|
58
|
+
config: {
|
|
59
|
+
label?: string;
|
|
60
|
+
position?: import("./FuroToastContext.js").ToastPosition;
|
|
61
|
+
swipeDirection?: import("./FuroToastContext.js").ToastSwipeDirection;
|
|
62
|
+
hotkey?: Array<string> | null;
|
|
63
|
+
durationInMilliseconds?: number;
|
|
64
|
+
maxVisible?: number;
|
|
65
|
+
richColors?: boolean;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
nextId: number;
|
|
69
|
+
/** @type {Record<string, Record<string, () => void>>} */
|
|
70
|
+
actionHandlerHash: Record<string, Record<string, () => void>>;
|
|
71
|
+
/**
|
|
72
|
+
* get: current toast entries.
|
|
73
|
+
*
|
|
74
|
+
* @returns {Array<QueuedToast>}
|
|
75
|
+
*/
|
|
76
|
+
get toasts(): Array<QueuedToast>;
|
|
77
|
+
/**
|
|
78
|
+
* Build the parcel forwarded to `<FuroToast>` (config merged with the queue).
|
|
79
|
+
*
|
|
80
|
+
* @returns {object}
|
|
81
|
+
*/
|
|
82
|
+
buildParcel(): object;
|
|
83
|
+
/**
|
|
84
|
+
* Reserve and return the next stable toast key.
|
|
85
|
+
*
|
|
86
|
+
* @returns {number}
|
|
87
|
+
*/
|
|
88
|
+
reserveKey(): number;
|
|
89
|
+
/**
|
|
90
|
+
* Register a toast's action handlers and return serializable descriptors.
|
|
91
|
+
*
|
|
92
|
+
* @param {{
|
|
93
|
+
* key: number | string
|
|
94
|
+
* actions: Array<{ label: string, onClick?: () => void }>
|
|
95
|
+
* }} params - Parameters of this method.
|
|
96
|
+
* @returns {Array<{ actionKey: string, label: string }>}
|
|
97
|
+
*/
|
|
98
|
+
registerActions({ key, actions, }: {
|
|
99
|
+
key: number | string;
|
|
100
|
+
actions: Array<{
|
|
101
|
+
label: string;
|
|
102
|
+
onClick?: () => void;
|
|
103
|
+
}>;
|
|
104
|
+
}): Array<{
|
|
105
|
+
actionKey: string;
|
|
106
|
+
label: string;
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* Push a new toast onto the queue.
|
|
110
|
+
*
|
|
111
|
+
* @param {{
|
|
112
|
+
* title?: string | null
|
|
113
|
+
* description?: string | null
|
|
114
|
+
* type?: string
|
|
115
|
+
* durationInMilliseconds?: number | null
|
|
116
|
+
* closeText?: string | null
|
|
117
|
+
* actions?: Array<{ label: string, onClick?: () => void }>
|
|
118
|
+
* }} [params] - Parameters of this method.
|
|
119
|
+
* @returns {number} The new toast key.
|
|
120
|
+
*/
|
|
121
|
+
addToast({ title, description, type, durationInMilliseconds, closeText, actions, }?: {
|
|
122
|
+
title?: string | null;
|
|
123
|
+
description?: string | null;
|
|
124
|
+
type?: string;
|
|
125
|
+
durationInMilliseconds?: number | null;
|
|
126
|
+
closeText?: string | null;
|
|
127
|
+
actions?: Array<{
|
|
128
|
+
label: string;
|
|
129
|
+
onClick?: () => void;
|
|
130
|
+
}>;
|
|
131
|
+
}): number;
|
|
132
|
+
/**
|
|
133
|
+
* Patch an existing toast (e.g. loading → success). Re-registers handlers
|
|
134
|
+
* when the patch carries new actions.
|
|
135
|
+
*
|
|
136
|
+
* @param {{
|
|
137
|
+
* key: number | string
|
|
138
|
+
* patch: Partial<QueuedToast>
|
|
139
|
+
* }} params - Parameters of this method.
|
|
140
|
+
*/
|
|
141
|
+
updateToast({ key, patch, }: {
|
|
142
|
+
key: number | string;
|
|
143
|
+
patch: Partial<QueuedToast>;
|
|
144
|
+
}): void;
|
|
145
|
+
/**
|
|
146
|
+
* Remove a toast from the queue.
|
|
147
|
+
*
|
|
148
|
+
* @param {{
|
|
149
|
+
* key: number | string
|
|
150
|
+
* }} params - Parameters of this method.
|
|
151
|
+
*/
|
|
152
|
+
removeToast({ key, }: {
|
|
153
|
+
key: number | string;
|
|
154
|
+
}): void;
|
|
155
|
+
/**
|
|
156
|
+
* Remove all toasts.
|
|
157
|
+
*/
|
|
158
|
+
clearToasts(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Merge viewport configuration (position, duration, maxVisible, …).
|
|
161
|
+
*
|
|
162
|
+
* @param {ToastConfig} [params] - Configuration to merge.
|
|
163
|
+
*/
|
|
164
|
+
configure(params?: ToastConfig): void;
|
|
165
|
+
/**
|
|
166
|
+
* Invoke a toast's action handler by key.
|
|
167
|
+
*
|
|
168
|
+
* @param {{
|
|
169
|
+
* key: number | string
|
|
170
|
+
* actionKey: string
|
|
171
|
+
* }} params - Parameters of this method.
|
|
172
|
+
*/
|
|
173
|
+
invokeAction({ key, actionKey, }: {
|
|
174
|
+
key: number | string;
|
|
175
|
+
actionKey: string;
|
|
176
|
+
}): void;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* A toast entry stored in the queue (serializable; handlers live separately).
|
|
180
|
+
*/
|
|
181
|
+
export type QueuedToast = {
|
|
182
|
+
key: number | string;
|
|
183
|
+
title: string | null;
|
|
184
|
+
description: string | null;
|
|
185
|
+
type: string;
|
|
186
|
+
durationInMilliseconds: number | null;
|
|
187
|
+
closeText: string | null;
|
|
188
|
+
actions: Array<{
|
|
189
|
+
actionKey: string;
|
|
190
|
+
label: string;
|
|
191
|
+
}>;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Viewport configuration shared by all toasts — the `<FuroToast>` parcel
|
|
195
|
+
* without the per-toast queue.
|
|
196
|
+
*/
|
|
197
|
+
export type ToastConfig = Omit<import("./FuroToastContext.js").ToastParcel, "toasts">;
|
|
198
|
+
export type ToastQueueState = import("vue").Reactive<{
|
|
199
|
+
toasts: Array<QueuedToast>;
|
|
200
|
+
config: ToastConfig;
|
|
201
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realm-wide toast queue backing the `toast` helper and consumed by
|
|
3
|
+
* `<FuroToaster>`. See `docs/furo-toast.md` for the SSR caveat.
|
|
4
|
+
*/
|
|
5
|
+
export const toastQueue: ToastQueue;
|
|
6
|
+
export namespace toast {
|
|
7
|
+
function show(params?: {
|
|
8
|
+
title?: string | null;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
type?: string;
|
|
11
|
+
durationInMilliseconds?: number | null;
|
|
12
|
+
closeText?: string | null;
|
|
13
|
+
actions?: Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}>;
|
|
17
|
+
}): number;
|
|
18
|
+
function hide(key: number | string): void;
|
|
19
|
+
function update(key: number | string, patch: object): void;
|
|
20
|
+
function clear(): void;
|
|
21
|
+
function configure(params?: import("./ToastQueue.js").ToastConfig): void;
|
|
22
|
+
}
|
|
23
|
+
import ToastQueue from './ToastQueue.js';
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Furo Component Context.
|
|
3
|
+
*
|
|
4
|
+
* @template {typeof import('./BaseFuroContextAccessor').default<*> | null} [A = null] - ContextAccessor class.
|
|
5
|
+
* @template {import('vue').ComponentCustomProps} [P = {}] - Props.
|
|
6
|
+
* @template {string | null} [EE = null] - emit() event names.
|
|
7
|
+
*/
|
|
8
|
+
export default class BaseFuroContext<A extends typeof import("./BaseFuroContextAccessor").default<any> | null = null, P extends import("vue").ComponentCustomProps = {}, EE extends string | null = null> {
|
|
9
|
+
/**
|
|
10
|
+
* Factory method to create a new instance of this class.
|
|
11
|
+
*
|
|
12
|
+
* @template {X extends typeof BaseFuroContext ? X : never} T, X
|
|
13
|
+
* @param {BaseFuroContextFactoryParams<{}>} params - Parameters of this factory method.
|
|
14
|
+
* @returns {InstanceType<T>} - New instance of this class.
|
|
15
|
+
* @this {T}
|
|
16
|
+
*/
|
|
17
|
+
static create<T extends X extends typeof BaseFuroContext ? X : never, X>(this: T, { props, componentContext, }: BaseFuroContextFactoryParams<{}>): InstanceType<T>;
|
|
18
|
+
/**
|
|
19
|
+
* get: ContextAccessor for this class.
|
|
20
|
+
*
|
|
21
|
+
* @returns {typeof import('./BaseFuroContextAccessor').default<*> | null} - ContextAccessor class of this class.
|
|
22
|
+
*/
|
|
23
|
+
static get ContextAccessor(): typeof import("./BaseFuroContextAccessor").default<any> | null;
|
|
24
|
+
/**
|
|
25
|
+
* emit() event name.
|
|
26
|
+
*
|
|
27
|
+
* @abstract
|
|
28
|
+
* @returns {Record<string, string>}
|
|
29
|
+
*/
|
|
30
|
+
static get EMIT_EVENT_NAME(): Record<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Build reactive hash.
|
|
33
|
+
*
|
|
34
|
+
* @returns {Record<string, import('vue').Reactive<*>>}
|
|
35
|
+
*/
|
|
36
|
+
static buildReactiveHash(): Record<string, import("vue").Reactive<any>>;
|
|
37
|
+
/**
|
|
38
|
+
* Build ref hash.
|
|
39
|
+
*
|
|
40
|
+
* @returns {Record<string, import('vue').Ref<*>>}
|
|
41
|
+
*/
|
|
42
|
+
static buildRefHash(): Record<string, import("vue").Ref<any>>;
|
|
43
|
+
/**
|
|
44
|
+
* Build shallow ref hash.
|
|
45
|
+
*
|
|
46
|
+
* @returns {Record<string, import('vue').ShallowRef<*>>}
|
|
47
|
+
*/
|
|
48
|
+
static buildShallowRefHash(): Record<string, import("vue").ShallowRef<any>>;
|
|
49
|
+
/**
|
|
50
|
+
* Build model value hash.
|
|
51
|
+
*
|
|
52
|
+
* @returns {Record<string, import('vue').ModelRef<*>>}
|
|
53
|
+
*/
|
|
54
|
+
static buildModelRefHash(): Record<string, import("vue").ModelRef<any>>;
|
|
55
|
+
/**
|
|
56
|
+
* Create MutationObserver.
|
|
57
|
+
*
|
|
58
|
+
* @param {{
|
|
59
|
+
* handler: MutationCallback
|
|
60
|
+
* }} args - Arguments of this method.
|
|
61
|
+
* @returns {MutationObserver} - New instance of MutationObserver.
|
|
62
|
+
*/
|
|
63
|
+
static createMutationObserver({ handler, }: {
|
|
64
|
+
handler: MutationCallback;
|
|
65
|
+
}): MutationObserver;
|
|
66
|
+
/**
|
|
67
|
+
* Constructor.
|
|
68
|
+
*
|
|
69
|
+
* @param {BaseFuroContextParams<P>} params - Parameters of this constructor.
|
|
70
|
+
*/
|
|
71
|
+
constructor({ props, componentContext, reactiveHash, refHash, shallowRefHash, modelRefHash, }: BaseFuroContextParams<P>);
|
|
72
|
+
props: P & {
|
|
73
|
+
parcel?: any;
|
|
74
|
+
};
|
|
75
|
+
componentContext: {
|
|
76
|
+
attrs: import("vue").Attrs;
|
|
77
|
+
slots: Readonly<{
|
|
78
|
+
[name: string]: import("vue").Slot<any>;
|
|
79
|
+
}>;
|
|
80
|
+
emit: (event: unknown, ...args: any[]) => void;
|
|
81
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
82
|
+
};
|
|
83
|
+
reactiveHash: {};
|
|
84
|
+
refHash: {};
|
|
85
|
+
shallowRefHash: {};
|
|
86
|
+
modelRefHash: {};
|
|
87
|
+
accessor: import("./BaseFuroContextAccessor").default<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Get the constructor of this class.
|
|
90
|
+
*
|
|
91
|
+
* @returns {typeof BaseFuroContext<*, *, *>}
|
|
92
|
+
*/
|
|
93
|
+
get Ctor(): typeof BaseFuroContext<any, any, any>;
|
|
94
|
+
/**
|
|
95
|
+
* get: ContextAccessor for this class.
|
|
96
|
+
*
|
|
97
|
+
* @returns {import('./BaseFuroContextAccessor').default<*> | null} - ContextAccessor class of this class.
|
|
98
|
+
*/
|
|
99
|
+
createContextAccessor(): import("./BaseFuroContextAccessor").default<any> | null;
|
|
100
|
+
/**
|
|
101
|
+
* get: An instance of ContextAccessor.
|
|
102
|
+
*
|
|
103
|
+
* @returns {InstanceType<A>} - An instance of ContextAccessor.
|
|
104
|
+
*/
|
|
105
|
+
get $(): InstanceType<A>;
|
|
106
|
+
/**
|
|
107
|
+
* get: emit() event name.
|
|
108
|
+
*
|
|
109
|
+
* @returns {Record<string, EE>} - emit() event name.
|
|
110
|
+
*/
|
|
111
|
+
get EMIT_EVENT_NAME(): Record<string, EE>;
|
|
112
|
+
/**
|
|
113
|
+
* get: parcel of props.
|
|
114
|
+
*
|
|
115
|
+
* @returns {P['parcel'] | null} - Parcel from props.
|
|
116
|
+
*/
|
|
117
|
+
get parcel(): P["parcel"] | null;
|
|
118
|
+
/**
|
|
119
|
+
* get: attrs of component context.
|
|
120
|
+
*
|
|
121
|
+
* @returns {import('vue').SetupContext['attrs']} - Attributes of component context.
|
|
122
|
+
*/
|
|
123
|
+
get attrs(): import("vue").SetupContext["attrs"];
|
|
124
|
+
/**
|
|
125
|
+
* get: slots of component context.
|
|
126
|
+
*
|
|
127
|
+
* @returns {(
|
|
128
|
+
* event: EE,
|
|
129
|
+
* ...args: Array<any>
|
|
130
|
+
* ) => void} - emit() function of component context.
|
|
131
|
+
*/
|
|
132
|
+
get emit(): (event: EE, ...args: Array<any>) => void;
|
|
133
|
+
/**
|
|
134
|
+
* get: expose() of component context.
|
|
135
|
+
*
|
|
136
|
+
* @returns {import('vue').SetupContext['expose']} - Listeners of component context.
|
|
137
|
+
*/
|
|
138
|
+
get expose(): import("vue").SetupContext["expose"];
|
|
139
|
+
/**
|
|
140
|
+
* get: slots of component context.
|
|
141
|
+
*
|
|
142
|
+
* @returns {import('vue').SetupContext['slots']} - Slots of component context.
|
|
143
|
+
*/
|
|
144
|
+
get slots(): import("vue").SetupContext["slots"];
|
|
145
|
+
/**
|
|
146
|
+
* get: watch() of component context.
|
|
147
|
+
*
|
|
148
|
+
* @returns {import('vue').watch} - Watch of component context.
|
|
149
|
+
*/
|
|
150
|
+
get watch(): typeof watch;
|
|
151
|
+
/**
|
|
152
|
+
* Whether a fallthrough attribute is on. Presence decides, as in HTML: every value
|
|
153
|
+
* reads as on, the bare attribute's '' and 0 included, except false and absent.
|
|
154
|
+
*
|
|
155
|
+
* @param {{
|
|
156
|
+
* name: string
|
|
157
|
+
* }} params - Parameters of this method.
|
|
158
|
+
* @returns {boolean} - Whether the attribute is on.
|
|
159
|
+
*/
|
|
160
|
+
hasBooleanAttribute({ name, }: {
|
|
161
|
+
name: string;
|
|
162
|
+
}): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Setup component context.
|
|
165
|
+
*
|
|
166
|
+
* @template T
|
|
167
|
+
* @param {object} [args] - Arguments of this method.
|
|
168
|
+
* @returns {T} - For method chaining.
|
|
169
|
+
* @this {T}
|
|
170
|
+
* @example
|
|
171
|
+
* ```
|
|
172
|
+
* setupComponent (args) {
|
|
173
|
+
* this..expose(
|
|
174
|
+
* this.generateExposeHash()
|
|
175
|
+
* )
|
|
176
|
+
*
|
|
177
|
+
* watch(
|
|
178
|
+
* [
|
|
179
|
+
* this.rootElementRef,
|
|
180
|
+
* ],
|
|
181
|
+
* this.generateWatchRootElementHandler()
|
|
182
|
+
* )
|
|
183
|
+
*
|
|
184
|
+
* return this
|
|
185
|
+
* }
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
setupComponent<T>(this: T, args?: object): T;
|
|
189
|
+
/**
|
|
190
|
+
* Generate expose() hash.
|
|
191
|
+
*
|
|
192
|
+
* @returns {Record<string, Function>} - expose() hash.
|
|
193
|
+
*/
|
|
194
|
+
generateExposeHash(): Record<string, Function>;
|
|
195
|
+
}
|
|
196
|
+
export type BaseFuroContextParams<P extends import("vue").ComponentCustomProps | {} = {}, EE extends string | null = null, ReactiveHash extends Record<string, import("vue").Reactive<any>> = {}, RefHash extends Record<string, import("vue").Ref<any>> = {}, ShallowRefHash extends Record<string, import("vue").ShallowRef<any>> = {}, ModelRefHash extends Record<string, import("vue").ModelRef<any>> = {}> = {
|
|
197
|
+
props: P & {
|
|
198
|
+
parcel?: any;
|
|
199
|
+
};
|
|
200
|
+
componentContext: import("vue").SetupContext<EE>;
|
|
201
|
+
reactiveHash?: ReactiveHash;
|
|
202
|
+
refHash?: RefHash;
|
|
203
|
+
shallowRefHash?: ShallowRefHash;
|
|
204
|
+
modelRefHash?: ModelRefHash;
|
|
205
|
+
};
|
|
206
|
+
export type BaseFuroContextFactoryParams<P extends import("vue").ComponentCustomProps | {} = {}, EE extends string | null = null> = BaseFuroContextParams<P>;
|
|
207
|
+
import { watch } from 'vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all context accessors.
|
|
3
|
+
*
|
|
4
|
+
* @template {import('./BaseFuroContext').default<*>} C
|
|
5
|
+
* @property {C} context - Context.
|
|
6
|
+
*/
|
|
7
|
+
export default class BaseFuroContextAccessor<C extends import("./BaseFuroContext").default<any>> {
|
|
8
|
+
/**
|
|
9
|
+
* Factory method to create a new instance of this class.
|
|
10
|
+
*
|
|
11
|
+
* @template {X extends typeof BaseFuroContextAccessor<*> ? X : never} T, X
|
|
12
|
+
* @param {BaseFuroContextAccessorFactoryParams} params - Parameters of this factory method.
|
|
13
|
+
* @returns {InstanceType<T>} - New instance of this class.
|
|
14
|
+
* @this {T}
|
|
15
|
+
*/
|
|
16
|
+
static create<T extends X extends typeof BaseFuroContextAccessor<any> ? X : never, X>(this: T, { context, }: BaseFuroContextAccessorFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Constructor.
|
|
19
|
+
*
|
|
20
|
+
* @param {BaseFuroContextAccessorParams<C>} params - Parameters of this constructor.
|
|
21
|
+
*/
|
|
22
|
+
constructor({ context, }: BaseFuroContextAccessorParams<C>);
|
|
23
|
+
context: C;
|
|
24
|
+
}
|
|
25
|
+
export type BaseFuroContextAccessorParams<C extends import("./BaseFuroContext").default<any>> = {
|
|
26
|
+
context: C;
|
|
27
|
+
};
|
|
28
|
+
export type BaseFuroContextAccessorFactoryParams = BaseFuroContextAccessorParams<any>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BaseEmitPayload.
|
|
3
|
+
*
|
|
4
|
+
* @template {Event} [E = Event] - Event.
|
|
5
|
+
* @template {HTMLElement} [C = HTMLElement] - Control element.
|
|
6
|
+
*/
|
|
7
|
+
export default class BaseEmitPayload<E extends Event = Event, C extends HTMLElement = HTMLElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Factory method of this class.
|
|
10
|
+
*
|
|
11
|
+
* @template {X extends typeof BaseEmitPayload ? X : never} T, X
|
|
12
|
+
* @param {BaseEmitPayloadFactoryParams<*>} params - Parameters of this factory method.
|
|
13
|
+
* @returns {InstanceType<T>} - A new instance of this class.
|
|
14
|
+
* @this {T}
|
|
15
|
+
*/
|
|
16
|
+
static create<T extends X extends typeof BaseEmitPayload ? X : never, X>(this: T, { rawEvent, }: BaseEmitPayloadFactoryParams<any>): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Constructor of this class.
|
|
19
|
+
*
|
|
20
|
+
* @param {BaseEmitPayloadParams<E>} params - Parameters of this constructor.
|
|
21
|
+
*/
|
|
22
|
+
constructor({ rawEvent, }: BaseEmitPayloadParams<E>);
|
|
23
|
+
rawEvent: E;
|
|
24
|
+
/**
|
|
25
|
+
* Get the control element from the raw event.
|
|
26
|
+
*
|
|
27
|
+
* @returns {C | null} - The control element from the raw event.
|
|
28
|
+
*/
|
|
29
|
+
get controlElement(): C | null;
|
|
30
|
+
/**
|
|
31
|
+
* Read a DOM attribute from the control element.
|
|
32
|
+
*
|
|
33
|
+
* @param {{
|
|
34
|
+
* key: string
|
|
35
|
+
* }} params - Parameters of this method.
|
|
36
|
+
* @returns {string | null} - Attribute value, or `null` when the control or attribute is missing.
|
|
37
|
+
*/
|
|
38
|
+
getElementAttribute({ key, }: {
|
|
39
|
+
key: string;
|
|
40
|
+
}): string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Parse a string as a number (e.g. after reading an attribute).
|
|
43
|
+
*
|
|
44
|
+
* @param {{
|
|
45
|
+
* stringValue: string | null
|
|
46
|
+
* }} params - Parameters of this method.
|
|
47
|
+
* @returns {number | null} - Parsed number, or `null` when `stringValue` is `null`.
|
|
48
|
+
*/
|
|
49
|
+
parseStringAsNumber({ stringValue, }: {
|
|
50
|
+
stringValue: string | null;
|
|
51
|
+
}): number | null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* <E>
|
|
55
|
+
*/
|
|
56
|
+
export type BaseEmitPayloadParams<E extends Event> = {
|
|
57
|
+
rawEvent: E;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* <E>
|
|
61
|
+
*/
|
|
62
|
+
export type BaseEmitPayloadFactoryParams<E extends Event> = BaseEmitPayloadParams<E>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export { default as FuroAvatar } from "./components/atoms/FuroAvatar/FuroAvatar.vue";
|
|
2
|
+
export { default as FuroBadge } from "./components/atoms/FuroBadge/FuroBadge.vue";
|
|
3
|
+
export { default as FuroButton } from "./components/atoms/FuroButton/FuroButton.vue";
|
|
4
|
+
export { default as FuroCheckbox } from "./components/atoms/FuroCheckbox/FuroCheckbox.vue";
|
|
5
|
+
export { default as FuroEmailField } from "./components/atoms/FuroEmailField/FuroEmailField.vue";
|
|
6
|
+
export { default as FuroFileField } from "./components/atoms/FuroFileField/FuroFileField.vue";
|
|
7
|
+
export { default as FuroIcon } from "./components/atoms/FuroIcon/FuroIcon.vue";
|
|
8
|
+
export { default as FuroNumberField } from "./components/atoms/FuroNumberField/FuroNumberField.vue";
|
|
9
|
+
export { default as FuroPasswordField } from "./components/atoms/FuroPasswordField/FuroPasswordField.vue";
|
|
10
|
+
export { default as FuroRadio } from "./components/atoms/FuroRadio/FuroRadio.vue";
|
|
11
|
+
export { default as FuroSwitch } from "./components/atoms/FuroSwitch/FuroSwitch.vue";
|
|
12
|
+
export { default as FuroTextField } from "./components/atoms/FuroTextField/FuroTextField.vue";
|
|
13
|
+
export { default as FuroTextarea } from "./components/atoms/FuroTextarea/FuroTextarea.vue";
|
|
14
|
+
export { default as FuroToggle } from "./components/atoms/FuroToggle/FuroToggle.vue";
|
|
15
|
+
export { default as FuroAccordion } from "./components/molecules/FuroAccordion/FuroAccordion.vue";
|
|
16
|
+
export { default as FuroAttachment } from "./components/molecules/FuroAttachment/FuroAttachment.vue";
|
|
17
|
+
export { default as FuroAutocompleteField } from "./components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue";
|
|
18
|
+
export { default as FuroAvatarGroup } from "./components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue";
|
|
19
|
+
export { default as FuroBreadcrumb } from "./components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue";
|
|
20
|
+
export { default as FuroCollapsible } from "./components/molecules/FuroCollapsible/FuroCollapsible.vue";
|
|
21
|
+
export { default as FuroControlBlock } from "./components/molecules/FuroControlBlock/FuroControlBlock.vue";
|
|
22
|
+
export { default as FuroDatePicker } from "./components/molecules/FuroDatePicker/FuroDatePicker.vue";
|
|
23
|
+
export { default as FuroDateTimePicker } from "./components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue";
|
|
24
|
+
export { default as FuroDropdownMenu } from "./components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue";
|
|
25
|
+
export { default as FuroEditableField } from "./components/molecules/FuroEditableField/FuroEditableField.vue";
|
|
26
|
+
export { default as FuroEmptyState } from "./components/molecules/FuroEmptyState/FuroEmptyState.vue";
|
|
27
|
+
export { default as FuroErrorState } from "./components/molecules/FuroErrorState/FuroErrorState.vue";
|
|
28
|
+
export { default as FuroPagination } from "./components/molecules/FuroPagination/FuroPagination.vue";
|
|
29
|
+
export { default as FuroPopover } from "./components/molecules/FuroPopover/FuroPopover.vue";
|
|
30
|
+
export { default as FuroScrollArea } from "./components/molecules/FuroScrollArea/FuroScrollArea.vue";
|
|
31
|
+
export { default as FuroSearchField } from "./components/molecules/FuroSearchField/FuroSearchField.vue";
|
|
32
|
+
export { default as FuroSectionHeader } from "./components/molecules/FuroSectionHeader/FuroSectionHeader.vue";
|
|
33
|
+
export { default as FuroSelect } from "./components/molecules/FuroSelect/FuroSelect.vue";
|
|
34
|
+
export { default as FuroSeparator } from "./components/molecules/FuroSeparator/FuroSeparator.vue";
|
|
35
|
+
export { default as FuroSkeleton } from "./components/molecules/FuroSkeleton/FuroSkeleton.vue";
|
|
36
|
+
export { default as FuroSplitter } from "./components/molecules/FuroSplitter/FuroSplitter.vue";
|
|
37
|
+
export { default as FuroTimeField } from "./components/molecules/FuroTimeField/FuroTimeField.vue";
|
|
38
|
+
export { default as FuroToggleGroup } from "./components/molecules/FuroToggleGroup/FuroToggleGroup.vue";
|
|
39
|
+
export { default as FuroToolBar } from "./components/molecules/FuroToolBar/FuroToolBar.vue";
|
|
40
|
+
export { default as FuroTooltip } from "./components/molecules/FuroTooltip/FuroTooltip.vue";
|
|
41
|
+
export { default as FuroAlertDialog } from "./components/organisms/FuroAlertDialog/FuroAlertDialog.vue";
|
|
42
|
+
export { default as FuroDialog } from "./components/organisms/FuroDialog/FuroDialog.vue";
|
|
43
|
+
export { default as FuroDrawer } from "./components/organisms/FuroDrawer/FuroDrawer.vue";
|
|
44
|
+
export { default as FuroEditor } from "./components/organisms/FuroEditor/FuroEditor.vue";
|
|
45
|
+
export { default as FuroSidebar } from "./components/organisms/FuroSidebar/FuroSidebar.vue";
|
|
46
|
+
export { default as FuroStepper } from "./components/organisms/FuroStepper/FuroStepper.vue";
|
|
47
|
+
export { default as FuroTable } from "./components/organisms/FuroTable/FuroTable.vue";
|
|
48
|
+
export { default as FuroTabs } from "./components/organisms/FuroTabs/FuroTabs.vue";
|
|
49
|
+
export { default as FuroToast } from "./components/organisms/FuroToast/FuroToast.vue";
|
|
50
|
+
export { default as FuroToaster } from "./components/organisms/FuroToast/FuroToaster.vue";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as BaseFuroContext } from "./contexts/BaseFuroContext.js";
|
|
2
|
+
export { default as BaseFuroContextAccessor } from "./contexts/BaseFuroContextAccessor.js";
|
|
3
|
+
export { furoIconRegistry } from "./components/atoms/FuroIcon/icons.js";
|
|
4
|
+
export { default as FuroIconRegistry } from "./components/atoms/FuroIcon/FuroIconRegistry.js";
|
|
5
|
+
export { default as ToastQueue } from "./components/organisms/FuroToast/ToastQueue.js";
|
|
6
|
+
export { toast, toastQueue } from "./components/organisms/FuroToast/toast.js";
|