@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,596 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for FuroSidebar organism.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseFuroContext<null, Props, EmitEventName>}
|
|
5
|
+
*/
|
|
6
|
+
export default class FuroSidebarContext extends BaseFuroContext<null, Props, "NAVIGATE" | "UPDATE_ACTIVE_KEY" | "EXPAND_CHANGE" | "UPDATE_EXPANDED_KEYS" | "SEARCH_CHANGE" | "SEARCH_COMMIT" | "UPDATE_SEARCH_VALUE"> {
|
|
7
|
+
/**
|
|
8
|
+
* Factory method.
|
|
9
|
+
*
|
|
10
|
+
* @template {X extends typeof FuroSidebarContext ? X : never} T, X
|
|
11
|
+
* @override
|
|
12
|
+
* @param {FuroSidebarContextFactoryParams} params - Parameters of this factory method.
|
|
13
|
+
* @returns {InstanceType<T>} An instance of this class.
|
|
14
|
+
* @this {T}
|
|
15
|
+
*/
|
|
16
|
+
static override create<T extends X extends typeof FuroSidebarContext ? X : never, X>(this: T, { props, componentContext, refHash, }: FuroSidebarContextFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Build ref hash.
|
|
19
|
+
*
|
|
20
|
+
* @override
|
|
21
|
+
* @returns {FuroSidebarContextParams['refHash']} Ref hash.
|
|
22
|
+
*/
|
|
23
|
+
static override buildRefHash(): FuroSidebarContextParams["refHash"];
|
|
24
|
+
/**
|
|
25
|
+
* Icon marking an open disclosure.
|
|
26
|
+
*
|
|
27
|
+
* @returns {string} Name of a built-in icon.
|
|
28
|
+
*/
|
|
29
|
+
static get OPEN_DISCLOSURE_ICON_NAME(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Icon marking a closed disclosure.
|
|
32
|
+
*
|
|
33
|
+
* @returns {string} Name of a built-in icon.
|
|
34
|
+
*/
|
|
35
|
+
static get CLOSED_DISCLOSURE_ICON_NAME(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Get emit event name.
|
|
38
|
+
*
|
|
39
|
+
* @override
|
|
40
|
+
* @returns {Readonly<{
|
|
41
|
+
* NAVIGATE: 'navigate'
|
|
42
|
+
* UPDATE_ACTIVE_KEY: 'update:activeKey'
|
|
43
|
+
* EXPAND_CHANGE: 'expand-change'
|
|
44
|
+
* UPDATE_EXPANDED_KEYS: 'update:expandedKeys'
|
|
45
|
+
* SEARCH_CHANGE: 'search-change'
|
|
46
|
+
* SEARCH_COMMIT: 'search-commit'
|
|
47
|
+
* UPDATE_SEARCH_VALUE: 'update:searchValue'
|
|
48
|
+
* }>} Emit event names.
|
|
49
|
+
*/
|
|
50
|
+
static override get EMIT_EVENT_NAME(): Readonly<{
|
|
51
|
+
NAVIGATE: "navigate";
|
|
52
|
+
UPDATE_ACTIVE_KEY: "update:activeKey";
|
|
53
|
+
EXPAND_CHANGE: "expand-change";
|
|
54
|
+
UPDATE_EXPANDED_KEYS: "update:expandedKeys";
|
|
55
|
+
SEARCH_CHANGE: "search-change";
|
|
56
|
+
SEARCH_COMMIT: "search-commit";
|
|
57
|
+
UPDATE_SEARCH_VALUE: "update:searchValue";
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* Get emit options.
|
|
61
|
+
*
|
|
62
|
+
* @returns {{
|
|
63
|
+
* 'navigate': (payload: NavigatePayload) => boolean
|
|
64
|
+
* 'update:activeKey': (key: string) => boolean
|
|
65
|
+
* 'expand-change': (payload: ExpandChangePayload) => boolean
|
|
66
|
+
* 'update:expandedKeys': (keys: Array<string>) => boolean
|
|
67
|
+
* 'search-change': (payload: SidebarSearchPayload) => boolean
|
|
68
|
+
* 'search-commit': (payload: SidebarSearchPayload) => boolean
|
|
69
|
+
* 'update:searchValue': (value: string | null) => boolean
|
|
70
|
+
* }} Emit event hash.
|
|
71
|
+
*/
|
|
72
|
+
static get EMIT_EVENT_HASH(): {
|
|
73
|
+
"navigate": (payload: NavigatePayload) => boolean;
|
|
74
|
+
"update:activeKey": (key: string) => boolean;
|
|
75
|
+
"expand-change": (payload: ExpandChangePayload) => boolean;
|
|
76
|
+
"update:expandedKeys": (keys: Array<string>) => boolean;
|
|
77
|
+
"search-change": (payload: SidebarSearchPayload) => boolean;
|
|
78
|
+
"search-commit": (payload: SidebarSearchPayload) => boolean;
|
|
79
|
+
"update:searchValue": (value: string | null) => boolean;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Constructor.
|
|
83
|
+
*
|
|
84
|
+
* @param {FuroSidebarContextParams} params - Parameters of this constructor.
|
|
85
|
+
*/
|
|
86
|
+
constructor({ props, componentContext, refHash, }: FuroSidebarContextParams);
|
|
87
|
+
refHash: {
|
|
88
|
+
activeKeyRef: import("vue").Ref<string | null>;
|
|
89
|
+
expandedKeysRef: import("vue").Ref<Array<string>>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* get: Constructor of this class.
|
|
93
|
+
*
|
|
94
|
+
* @override
|
|
95
|
+
* @returns {typeof FuroSidebarContext} Constructor of this class.
|
|
96
|
+
*/
|
|
97
|
+
override get Ctor(): typeof FuroSidebarContext;
|
|
98
|
+
/**
|
|
99
|
+
* get: the internally held active key, used while uncontrolled.
|
|
100
|
+
*
|
|
101
|
+
* @returns {import('vue').Ref<string | null>} Ref of the active key.
|
|
102
|
+
*/
|
|
103
|
+
get activeKeyRef(): import("vue").Ref<string | null>;
|
|
104
|
+
/**
|
|
105
|
+
* get: the internally held open disclosures, used while uncontrolled.
|
|
106
|
+
*
|
|
107
|
+
* @returns {import('vue').Ref<Array<string>>} Ref of the open keys.
|
|
108
|
+
*/
|
|
109
|
+
get expandedKeysRef(): import("vue").Ref<Array<string>>;
|
|
110
|
+
/**
|
|
111
|
+
* Normalized groups for rendering.
|
|
112
|
+
*
|
|
113
|
+
* @returns {Array<GroupEntry>} Group entries.
|
|
114
|
+
*/
|
|
115
|
+
get groupEntries(): Array<GroupEntry>;
|
|
116
|
+
/**
|
|
117
|
+
* Whether the rail is drawn as the narrow icon-only form.
|
|
118
|
+
*
|
|
119
|
+
* @returns {boolean} Whether the rail is collapsed.
|
|
120
|
+
*/
|
|
121
|
+
isCollapsed(): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the active key arrives from the parcel rather than from within.
|
|
124
|
+
*
|
|
125
|
+
* @returns {boolean} Whether the active key is controlled.
|
|
126
|
+
*/
|
|
127
|
+
isControlledActiveKey(): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the open disclosures arrive from the parcel rather than from within.
|
|
130
|
+
*
|
|
131
|
+
* @returns {boolean} Whether the open disclosures are controlled.
|
|
132
|
+
*/
|
|
133
|
+
isControlledExpandedKeys(): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether a given key is the one the application currently shows.
|
|
136
|
+
*
|
|
137
|
+
* @param {{
|
|
138
|
+
* key: string
|
|
139
|
+
* }} params - Parameters.
|
|
140
|
+
* @returns {boolean} Whether the key is active.
|
|
141
|
+
*/
|
|
142
|
+
isActiveEntry({ key, }: {
|
|
143
|
+
key: string;
|
|
144
|
+
}): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Whether a given key has its sub-items revealed.
|
|
147
|
+
*
|
|
148
|
+
* @param {{
|
|
149
|
+
* key: string
|
|
150
|
+
* }} params - Parameters.
|
|
151
|
+
* @returns {boolean} Whether the disclosure is open.
|
|
152
|
+
*/
|
|
153
|
+
isExpandedEntry({ key, }: {
|
|
154
|
+
key: string;
|
|
155
|
+
}): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether the header region renders.
|
|
158
|
+
*
|
|
159
|
+
* @returns {boolean} Whether the header slot was filled.
|
|
160
|
+
*/
|
|
161
|
+
hasHeaderSlot(): boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the footer region renders.
|
|
164
|
+
*
|
|
165
|
+
* @returns {boolean} Whether the footer slot was filled.
|
|
166
|
+
*/
|
|
167
|
+
hasFooterSlot(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the search entry renders.
|
|
170
|
+
*
|
|
171
|
+
* A collapsed rail is one icon box wide, which no text control fits in, so the
|
|
172
|
+
* entry is dropped there rather than squeezed.
|
|
173
|
+
*
|
|
174
|
+
* @returns {boolean} Whether the search entry renders.
|
|
175
|
+
*/
|
|
176
|
+
shouldShowSearch(): boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Whether a group draws its heading.
|
|
179
|
+
*
|
|
180
|
+
* @param {{
|
|
181
|
+
* group: GroupEntry
|
|
182
|
+
* }} params - Parameters.
|
|
183
|
+
* @returns {boolean} Whether the heading renders.
|
|
184
|
+
*/
|
|
185
|
+
shouldShowGroupLabel({ group, }: {
|
|
186
|
+
group: GroupEntry;
|
|
187
|
+
}): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Whether item labels render.
|
|
190
|
+
*
|
|
191
|
+
* @returns {boolean} Whether labels render.
|
|
192
|
+
*/
|
|
193
|
+
shouldShowLabel(): boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Whether an item draws its disclosure caret.
|
|
196
|
+
*
|
|
197
|
+
* @param {{
|
|
198
|
+
* entry: ItemEntry
|
|
199
|
+
* }} params - Parameters.
|
|
200
|
+
* @returns {boolean} Whether the caret renders.
|
|
201
|
+
*/
|
|
202
|
+
shouldShowDisclosureIcon({ entry, }: {
|
|
203
|
+
entry: ItemEntry;
|
|
204
|
+
}): boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Whether an item reveals its sub-items.
|
|
207
|
+
*
|
|
208
|
+
* @param {{
|
|
209
|
+
* entry: ItemEntry
|
|
210
|
+
* }} params - Parameters.
|
|
211
|
+
* @returns {boolean} Whether the sub-items render.
|
|
212
|
+
*/
|
|
213
|
+
shouldShowSubItems({ entry, }: {
|
|
214
|
+
entry: ItemEntry;
|
|
215
|
+
}): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Resolve the key the application currently shows.
|
|
218
|
+
*
|
|
219
|
+
* @returns {string | null} The active key.
|
|
220
|
+
*/
|
|
221
|
+
extractActiveKey(): string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Resolve the keys whose sub-items are revealed.
|
|
224
|
+
*
|
|
225
|
+
* @returns {Array<string>} The open keys.
|
|
226
|
+
*/
|
|
227
|
+
extractExpandedKeys(): Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Resolve the caret an item draws.
|
|
230
|
+
*
|
|
231
|
+
* @param {{
|
|
232
|
+
* entry: ItemEntry
|
|
233
|
+
* }} params - Parameters.
|
|
234
|
+
* @returns {string} Name of a built-in icon.
|
|
235
|
+
*/
|
|
236
|
+
extractDisclosureIconName({ entry, }: {
|
|
237
|
+
entry: ItemEntry;
|
|
238
|
+
}): string;
|
|
239
|
+
/**
|
|
240
|
+
* Resolve the name a collapsed item is announced and titled with.
|
|
241
|
+
*
|
|
242
|
+
* An expanded rail shows the label as text, so repeating it as an attribute
|
|
243
|
+
* would have a screen reader read it twice.
|
|
244
|
+
*
|
|
245
|
+
* @param {{
|
|
246
|
+
* entry: ItemEntry
|
|
247
|
+
* }} params - Parameters.
|
|
248
|
+
* @returns {string | null} The label, or null while the rail is expanded.
|
|
249
|
+
*/
|
|
250
|
+
extractCollapsedItemLabel({ entry, }: {
|
|
251
|
+
entry: ItemEntry;
|
|
252
|
+
}): string | null;
|
|
253
|
+
/**
|
|
254
|
+
* Resolve the aria-current value of an item.
|
|
255
|
+
*
|
|
256
|
+
* @param {{
|
|
257
|
+
* entry: ItemEntry | SubItemEntry
|
|
258
|
+
* }} params - Parameters.
|
|
259
|
+
* @returns {'page' | null} The aria-current value.
|
|
260
|
+
*/
|
|
261
|
+
extractCurrentValue({ entry, }: {
|
|
262
|
+
entry: ItemEntry | SubItemEntry;
|
|
263
|
+
}): "page" | null;
|
|
264
|
+
/**
|
|
265
|
+
* Resolve the aria-expanded value of an item.
|
|
266
|
+
*
|
|
267
|
+
* @param {{
|
|
268
|
+
* entry: ItemEntry
|
|
269
|
+
* }} params - Parameters.
|
|
270
|
+
* @returns {'true' | 'false' | null} The aria-expanded value, null when the item discloses nothing.
|
|
271
|
+
*/
|
|
272
|
+
extractDisclosureExpandedValue({ entry, }: {
|
|
273
|
+
entry: ItemEntry;
|
|
274
|
+
}): "true" | "false" | null;
|
|
275
|
+
/**
|
|
276
|
+
* Resolve the accessible name of the navigation landmark.
|
|
277
|
+
*
|
|
278
|
+
* @returns {string} Name of the landmark.
|
|
279
|
+
*/
|
|
280
|
+
extractNavigationLabel(): string;
|
|
281
|
+
/**
|
|
282
|
+
* Resolve the placeholder of the search control.
|
|
283
|
+
*
|
|
284
|
+
* @returns {string | null} Placeholder of the search control.
|
|
285
|
+
*/
|
|
286
|
+
extractSearchPlaceholder(): string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Resolve the accessible name of the search control.
|
|
289
|
+
*
|
|
290
|
+
* @returns {string} Name of the search control.
|
|
291
|
+
*/
|
|
292
|
+
extractSearchLabel(): string;
|
|
293
|
+
/**
|
|
294
|
+
* Resolve the text the search control holds.
|
|
295
|
+
*
|
|
296
|
+
* @returns {string | null} The search text.
|
|
297
|
+
*/
|
|
298
|
+
extractSearchValue(): string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Extract attributes handed to the search control.
|
|
301
|
+
*
|
|
302
|
+
* @returns {{
|
|
303
|
+
* placeholder: string | null
|
|
304
|
+
* 'aria-label': string
|
|
305
|
+
* }} Attributes of the search control.
|
|
306
|
+
*/
|
|
307
|
+
extractSearchAttributes(): {
|
|
308
|
+
placeholder: string | null;
|
|
309
|
+
"aria-label": string;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Extract CSS class map for the root.
|
|
313
|
+
*
|
|
314
|
+
* @returns {Record<string, boolean>} Class map of the root.
|
|
315
|
+
*/
|
|
316
|
+
extractRootClassNames(): Record<string, boolean>;
|
|
317
|
+
/**
|
|
318
|
+
* Extract CSS class map for a primary item.
|
|
319
|
+
*
|
|
320
|
+
* @param {{
|
|
321
|
+
* entry: ItemEntry
|
|
322
|
+
* }} params - Parameters.
|
|
323
|
+
* @returns {Record<string, boolean>} Class map of the item.
|
|
324
|
+
*/
|
|
325
|
+
extractItemClassNames({ entry, }: {
|
|
326
|
+
entry: ItemEntry;
|
|
327
|
+
}): Record<string, boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* Extract CSS class map for a nested sub-item.
|
|
330
|
+
*
|
|
331
|
+
* @param {{
|
|
332
|
+
* entry: SubItemEntry
|
|
333
|
+
* }} params - Parameters.
|
|
334
|
+
* @returns {Record<string, boolean>} Class map of the sub-item.
|
|
335
|
+
*/
|
|
336
|
+
extractSubItemClassNames({ entry, }: {
|
|
337
|
+
entry: SubItemEntry;
|
|
338
|
+
}): Record<string, boolean>;
|
|
339
|
+
/**
|
|
340
|
+
* Build the entries of one group.
|
|
341
|
+
*
|
|
342
|
+
* @param {{
|
|
343
|
+
* items: Array<FuroSidebarItem>
|
|
344
|
+
* }} params - Parameters.
|
|
345
|
+
* @returns {Array<ItemEntry>} Item entries.
|
|
346
|
+
*/
|
|
347
|
+
buildItemEntries({ items, }: {
|
|
348
|
+
items: Array<FuroSidebarItem>;
|
|
349
|
+
}): Array<ItemEntry>;
|
|
350
|
+
/**
|
|
351
|
+
* Build the entries nested under one item.
|
|
352
|
+
*
|
|
353
|
+
* @param {{
|
|
354
|
+
* items: Array<FuroSidebarSubItem>
|
|
355
|
+
* }} params - Parameters.
|
|
356
|
+
* @returns {Array<SubItemEntry>} Sub-item entries.
|
|
357
|
+
*/
|
|
358
|
+
buildSubItemEntries({ items, }: {
|
|
359
|
+
items: Array<FuroSidebarSubItem>;
|
|
360
|
+
}): Array<SubItemEntry>;
|
|
361
|
+
/**
|
|
362
|
+
* Build attributes of the root host element.
|
|
363
|
+
*
|
|
364
|
+
* @param {{
|
|
365
|
+
* attrs: Record<string, *>
|
|
366
|
+
* }} params - Parameters.
|
|
367
|
+
* @returns {Record<string, *>} Attributes of the root.
|
|
368
|
+
*/
|
|
369
|
+
buildRootAttributes({ attrs, }: {
|
|
370
|
+
attrs: Record<string, any>;
|
|
371
|
+
}): Record<string, any>;
|
|
372
|
+
/**
|
|
373
|
+
* Build attributes of a primary item.
|
|
374
|
+
*
|
|
375
|
+
* @param {{
|
|
376
|
+
* entry: ItemEntry
|
|
377
|
+
* }} params - Parameters.
|
|
378
|
+
* @returns {{
|
|
379
|
+
* disabled: boolean
|
|
380
|
+
* title: string | null
|
|
381
|
+
* 'aria-label': string | null
|
|
382
|
+
* 'aria-current': 'page' | null
|
|
383
|
+
* 'aria-expanded': 'true' | 'false' | null
|
|
384
|
+
* }} Attributes of the item.
|
|
385
|
+
*/
|
|
386
|
+
buildItemAttributes({ entry, }: {
|
|
387
|
+
entry: ItemEntry;
|
|
388
|
+
}): {
|
|
389
|
+
disabled: boolean;
|
|
390
|
+
title: string | null;
|
|
391
|
+
"aria-label": string | null;
|
|
392
|
+
"aria-current": "page" | null;
|
|
393
|
+
"aria-expanded": "true" | "false" | null;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Build attributes of a nested sub-item.
|
|
397
|
+
*
|
|
398
|
+
* @param {{
|
|
399
|
+
* entry: SubItemEntry
|
|
400
|
+
* }} params - Parameters.
|
|
401
|
+
* @returns {{
|
|
402
|
+
* disabled: boolean
|
|
403
|
+
* 'aria-current': 'page' | null
|
|
404
|
+
* }} Attributes of the sub-item.
|
|
405
|
+
*/
|
|
406
|
+
buildSubItemAttributes({ entry, }: {
|
|
407
|
+
entry: SubItemEntry;
|
|
408
|
+
}): {
|
|
409
|
+
disabled: boolean;
|
|
410
|
+
"aria-current": "page" | null;
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Build the parcel handed to the search control.
|
|
414
|
+
*
|
|
415
|
+
* @returns {{
|
|
416
|
+
* value: string | null
|
|
417
|
+
* }} Parcel of the search control.
|
|
418
|
+
*/
|
|
419
|
+
buildSearchParcel(): {
|
|
420
|
+
value: string | null;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Build the open keys a disclosure toggle results in.
|
|
424
|
+
*
|
|
425
|
+
* @param {{
|
|
426
|
+
* key: string
|
|
427
|
+
* }} params - Parameters.
|
|
428
|
+
* @returns {Array<string>} The next open keys.
|
|
429
|
+
*/
|
|
430
|
+
buildNextExpandedKeys({ key, }: {
|
|
431
|
+
key: string;
|
|
432
|
+
}): Array<string>;
|
|
433
|
+
/**
|
|
434
|
+
* Handle a click on a primary item.
|
|
435
|
+
*
|
|
436
|
+
* An item that discloses sub-items opens and closes them; the design gives it
|
|
437
|
+
* a caret rather than a destination, so it never reports navigation.
|
|
438
|
+
*
|
|
439
|
+
* @param {{
|
|
440
|
+
* entry: ItemEntry
|
|
441
|
+
* }} params - Parameters.
|
|
442
|
+
*/
|
|
443
|
+
onActivateEntry({ entry, }: {
|
|
444
|
+
entry: ItemEntry;
|
|
445
|
+
}): void;
|
|
446
|
+
/**
|
|
447
|
+
* Handle a click on a nested sub-item.
|
|
448
|
+
*
|
|
449
|
+
* @param {{
|
|
450
|
+
* entry: SubItemEntry
|
|
451
|
+
* parentEntry: ItemEntry
|
|
452
|
+
* }} params - Parameters.
|
|
453
|
+
*/
|
|
454
|
+
onActivateSubEntry({ entry, parentEntry, }: {
|
|
455
|
+
entry: SubItemEntry;
|
|
456
|
+
parentEntry: ItemEntry;
|
|
457
|
+
}): void;
|
|
458
|
+
/**
|
|
459
|
+
* Handle a keystroke reported by the search control.
|
|
460
|
+
*
|
|
461
|
+
* @param {{
|
|
462
|
+
* payload: SidebarSearchPayload
|
|
463
|
+
* }} params - Parameters.
|
|
464
|
+
*/
|
|
465
|
+
onSearchChange({ payload, }: {
|
|
466
|
+
payload: SidebarSearchPayload;
|
|
467
|
+
}): void;
|
|
468
|
+
/**
|
|
469
|
+
* Handle a settled value reported by the search control.
|
|
470
|
+
*
|
|
471
|
+
* @param {{
|
|
472
|
+
* payload: SidebarSearchPayload
|
|
473
|
+
* }} params - Parameters.
|
|
474
|
+
*/
|
|
475
|
+
onSearchCommit({ payload, }: {
|
|
476
|
+
payload: SidebarSearchPayload;
|
|
477
|
+
}): void;
|
|
478
|
+
/**
|
|
479
|
+
* Report that a key is the one the application should show.
|
|
480
|
+
*
|
|
481
|
+
* @param {{
|
|
482
|
+
* key: string
|
|
483
|
+
* parentKey: string | null
|
|
484
|
+
* }} params - Parameters.
|
|
485
|
+
*/
|
|
486
|
+
selectKey({ key, parentKey, }: {
|
|
487
|
+
key: string;
|
|
488
|
+
parentKey: string | null;
|
|
489
|
+
}): void;
|
|
490
|
+
/**
|
|
491
|
+
* Open or close the sub-items of one item.
|
|
492
|
+
*
|
|
493
|
+
* @param {{
|
|
494
|
+
* entry: ItemEntry
|
|
495
|
+
* }} params - Parameters.
|
|
496
|
+
*/
|
|
497
|
+
toggleDisclosure({ entry, }: {
|
|
498
|
+
entry: ItemEntry;
|
|
499
|
+
}): void;
|
|
500
|
+
}
|
|
501
|
+
export type FuroSidebarContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
502
|
+
props: Props;
|
|
503
|
+
componentContext: ComponentContext;
|
|
504
|
+
refHash: {
|
|
505
|
+
activeKeyRef: import("vue").Ref<string | null>;
|
|
506
|
+
expandedKeysRef: import("vue").Ref<Array<string>>;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
export type FuroSidebarContextFactoryParams = Omit<FuroSidebarContextParams, "refHash"> & {
|
|
510
|
+
refHash?: FuroSidebarContextParams["refHash"];
|
|
511
|
+
};
|
|
512
|
+
export type EmitEventName = keyof typeof FuroSidebarContext.EMIT_EVENT_NAME;
|
|
513
|
+
export type Props = import("vue").HTMLAttributes & {
|
|
514
|
+
parcel?: FuroSidebarParcel | null;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Closed-set Furo behavior for `<FuroSidebar>`.
|
|
518
|
+
* JSON-serializable only.
|
|
519
|
+
*/
|
|
520
|
+
export type FuroSidebarParcel = {
|
|
521
|
+
groups?: Array<FuroSidebarGroup>;
|
|
522
|
+
activeKey?: string | null;
|
|
523
|
+
expandedKeys?: Array<string> | null;
|
|
524
|
+
collapsed?: boolean;
|
|
525
|
+
searchable?: boolean;
|
|
526
|
+
searchValue?: string | null;
|
|
527
|
+
searchPlaceholder?: string | null;
|
|
528
|
+
searchLabel?: string;
|
|
529
|
+
label?: string;
|
|
530
|
+
};
|
|
531
|
+
export type FuroSidebarGroup = {
|
|
532
|
+
key: string;
|
|
533
|
+
label?: string | null;
|
|
534
|
+
items?: Array<FuroSidebarItem>;
|
|
535
|
+
};
|
|
536
|
+
export type FuroSidebarItem = {
|
|
537
|
+
key: string;
|
|
538
|
+
label: string;
|
|
539
|
+
icon?: string | null;
|
|
540
|
+
disabled?: boolean;
|
|
541
|
+
items?: Array<FuroSidebarSubItem>;
|
|
542
|
+
};
|
|
543
|
+
export type FuroSidebarSubItem = {
|
|
544
|
+
key: string;
|
|
545
|
+
label: string;
|
|
546
|
+
disabled?: boolean;
|
|
547
|
+
};
|
|
548
|
+
export type GroupEntry = {
|
|
549
|
+
key: string;
|
|
550
|
+
label: string | null;
|
|
551
|
+
items: Array<ItemEntry>;
|
|
552
|
+
};
|
|
553
|
+
export type ItemEntry = {
|
|
554
|
+
key: string;
|
|
555
|
+
label: string;
|
|
556
|
+
icon: string | null;
|
|
557
|
+
hasIcon: boolean;
|
|
558
|
+
disabled: boolean;
|
|
559
|
+
subItems: Array<SubItemEntry>;
|
|
560
|
+
hasSubItems: boolean;
|
|
561
|
+
};
|
|
562
|
+
export type SubItemEntry = {
|
|
563
|
+
key: string;
|
|
564
|
+
label: string;
|
|
565
|
+
disabled: boolean;
|
|
566
|
+
};
|
|
567
|
+
export type NavigatePayload = {
|
|
568
|
+
key: string;
|
|
569
|
+
parentKey: string | null;
|
|
570
|
+
};
|
|
571
|
+
export type ExpandChangePayload = {
|
|
572
|
+
key: string;
|
|
573
|
+
expanded: boolean;
|
|
574
|
+
};
|
|
575
|
+
export type SidebarSearchPayload = import("../../atoms/FuroTextField/TextFieldEmitPayload.js").default;
|
|
576
|
+
export type ComponentContext = import("vue").SetupContext<typeof FuroSidebarContext.EMIT_EVENT_HASH, FuroSidebarSlots>;
|
|
577
|
+
export type FuroSidebarSlots = import("vue").SlotsType<{
|
|
578
|
+
header: {};
|
|
579
|
+
footer: {};
|
|
580
|
+
search: {};
|
|
581
|
+
item: {
|
|
582
|
+
entry: ItemEntry;
|
|
583
|
+
active: boolean;
|
|
584
|
+
expanded: boolean;
|
|
585
|
+
collapsed: boolean;
|
|
586
|
+
};
|
|
587
|
+
"sub-item": {
|
|
588
|
+
entry: SubItemEntry;
|
|
589
|
+
parent: ItemEntry;
|
|
590
|
+
active: boolean;
|
|
591
|
+
};
|
|
592
|
+
}>;
|
|
593
|
+
export type FuroSidebarSetup = (props: Props, componentContext: ComponentContext) => {
|
|
594
|
+
context: FuroSidebarContext;
|
|
595
|
+
};
|
|
596
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|