@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,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for FuroIcon atom.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseFuroContext<null, Props, null>}
|
|
5
|
+
*/
|
|
6
|
+
export default class FuroIconContext extends BaseFuroContext<null, Props, null> {
|
|
7
|
+
/**
|
|
8
|
+
* Factory method.
|
|
9
|
+
*
|
|
10
|
+
* @template {X extends typeof FuroIconContext ? X : never} T, X
|
|
11
|
+
* @override
|
|
12
|
+
* @param {FuroIconContextFactoryParams} 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 FuroIconContext ? X : never, X>(this: T, { props, componentContext, iconRegistry, }: FuroIconContextFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Constructor.
|
|
19
|
+
*
|
|
20
|
+
* @param {FuroIconContextParams} params - Parameters of this constructor.
|
|
21
|
+
*/
|
|
22
|
+
constructor({ props, componentContext, iconRegistry, }: FuroIconContextParams);
|
|
23
|
+
iconRegistry: import("./FuroIconRegistry.js").default;
|
|
24
|
+
/**
|
|
25
|
+
* get: the icon name, collection prefix included.
|
|
26
|
+
*
|
|
27
|
+
* @returns {string | null} Icon name such as `ph:check`, or null.
|
|
28
|
+
*/
|
|
29
|
+
get name(): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* get: the length of the icon's box, applied to both axes.
|
|
32
|
+
*
|
|
33
|
+
* @returns {string | number | null} A CSS length, or null to inherit the font size.
|
|
34
|
+
*/
|
|
35
|
+
get size(): string | number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Extract the component that draws this icon.
|
|
38
|
+
*
|
|
39
|
+
* @returns {import('./FuroIconRegistry.js').IconRenderer} Renderer component.
|
|
40
|
+
*/
|
|
41
|
+
extractRendererComponent(): import("./FuroIconRegistry.js").IconRenderer;
|
|
42
|
+
/**
|
|
43
|
+
* Whether a consumer-installed renderer draws this name.
|
|
44
|
+
*
|
|
45
|
+
* @returns {boolean} Whether the name is delegated.
|
|
46
|
+
*/
|
|
47
|
+
isDelegatedIcon(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the registry draws nothing for the name.
|
|
50
|
+
*
|
|
51
|
+
* @returns {boolean} Whether the name is unregistered.
|
|
52
|
+
*/
|
|
53
|
+
isUnregisteredIcon(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Extract the attributes the drawing component expects.
|
|
56
|
+
*
|
|
57
|
+
* @returns {Record<string, *>} Renderer attributes.
|
|
58
|
+
*/
|
|
59
|
+
extractRendererAttributes(): Record<string, any>;
|
|
60
|
+
/**
|
|
61
|
+
* Build the attributes a consumer-installed renderer expects.
|
|
62
|
+
*
|
|
63
|
+
* @returns {{
|
|
64
|
+
* name: string | null
|
|
65
|
+
* size?: string | number
|
|
66
|
+
* }} Renderer attributes.
|
|
67
|
+
*/
|
|
68
|
+
buildDelegatedRendererAttributes(): {
|
|
69
|
+
name: string | null;
|
|
70
|
+
size?: string | number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Build the size attribute a consumer-installed renderer expects.
|
|
74
|
+
*
|
|
75
|
+
* @returns {{
|
|
76
|
+
* size?: string | number
|
|
77
|
+
* }} Size attribute, omitted when no size was given.
|
|
78
|
+
*/
|
|
79
|
+
buildOptionalDelegatedSizeAttribute(): {
|
|
80
|
+
size?: string | number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Build the attributes the library's own renderer expects.
|
|
84
|
+
*
|
|
85
|
+
* @returns {{
|
|
86
|
+
* icon: string | object | null
|
|
87
|
+
* width?: string | number
|
|
88
|
+
* height?: string | number
|
|
89
|
+
* }} Renderer attributes.
|
|
90
|
+
*/
|
|
91
|
+
buildOfflineRendererAttributes(): {
|
|
92
|
+
icon: string | object | null;
|
|
93
|
+
width?: string | number;
|
|
94
|
+
height?: string | number;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Extract what the renderer draws, substituting a visible glyph for a name
|
|
98
|
+
* nothing resolves.
|
|
99
|
+
*
|
|
100
|
+
* @returns {string | object | null} A registered name, resolved icon data, or the fallback name.
|
|
101
|
+
*/
|
|
102
|
+
extractRenderableIcon(): string | object | null;
|
|
103
|
+
/**
|
|
104
|
+
* Fail on a name nothing resolves, which the fallback glyph would otherwise leave
|
|
105
|
+
* to a visual check. Production draws the glyph instead.
|
|
106
|
+
*
|
|
107
|
+
* @param {{
|
|
108
|
+
* icon: string | object | null
|
|
109
|
+
* }} params - Parameters of this method.
|
|
110
|
+
* @returns {void}
|
|
111
|
+
* @throws {Error} When no icon data resolves the name.
|
|
112
|
+
*/
|
|
113
|
+
throwOnUnresolvedIcon({ icon, }: {
|
|
114
|
+
icon: string | object | null;
|
|
115
|
+
}): void;
|
|
116
|
+
/**
|
|
117
|
+
* Build the size attributes, omitted rather than nulled when no size was
|
|
118
|
+
* given, so the glyph keeps the renderer's `1em` default and scales with text.
|
|
119
|
+
*
|
|
120
|
+
* @returns {{
|
|
121
|
+
* width?: string | number
|
|
122
|
+
* height?: string | number
|
|
123
|
+
* }} Size attributes.
|
|
124
|
+
*/
|
|
125
|
+
buildOptionalSizeAttributes(): {
|
|
126
|
+
width?: string | number;
|
|
127
|
+
height?: string | number;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Extract the CSS class map of the root host element.
|
|
131
|
+
*
|
|
132
|
+
* @returns {Record<string, boolean>} Class map.
|
|
133
|
+
*/
|
|
134
|
+
extractRootClassNames(): Record<string, boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the name resolves to no icon at all.
|
|
137
|
+
*
|
|
138
|
+
* @returns {boolean} Whether the name is unresolved.
|
|
139
|
+
*/
|
|
140
|
+
isUnresolvedIcon(): boolean;
|
|
141
|
+
}
|
|
142
|
+
export type Props = {
|
|
143
|
+
name: string;
|
|
144
|
+
size?: string | number | null;
|
|
145
|
+
};
|
|
146
|
+
export type FuroIconContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams<Props> & {
|
|
147
|
+
iconRegistry: import("./FuroIconRegistry.js").default;
|
|
148
|
+
};
|
|
149
|
+
export type FuroIconContextFactoryParams = Omit<FuroIconContextParams, "iconRegistry"> & {
|
|
150
|
+
iconRegistry?: import("./FuroIconRegistry.js").default;
|
|
151
|
+
};
|
|
152
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry of every icon name `<FuroIcon>` can draw. Resolution is offline, so
|
|
3
|
+
* recording what was registered is what makes an undrawable name detectable.
|
|
4
|
+
*/
|
|
5
|
+
export default class FuroIconRegistry {
|
|
6
|
+
/**
|
|
7
|
+
* Factory method.
|
|
8
|
+
*
|
|
9
|
+
* @param {{
|
|
10
|
+
* stateReactive?: FuroIconRegistryState
|
|
11
|
+
* iconStorage?: IconStorage
|
|
12
|
+
* }} [params] - Parameters of this factory method.
|
|
13
|
+
* @returns {FuroIconRegistry} An instance of this class.
|
|
14
|
+
*/
|
|
15
|
+
static create({ stateReactive, iconStorage, }?: {
|
|
16
|
+
stateReactive?: FuroIconRegistryState;
|
|
17
|
+
iconStorage?: IconStorage;
|
|
18
|
+
}): FuroIconRegistry;
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the one registry shared by every copy of this module in the realm.
|
|
21
|
+
*
|
|
22
|
+
* @returns {FuroIconRegistry} The shared registry.
|
|
23
|
+
*/
|
|
24
|
+
static resolveSharedInstance(): FuroIconRegistry;
|
|
25
|
+
/**
|
|
26
|
+
* Create the shared registry, the library's own icons already registered.
|
|
27
|
+
*
|
|
28
|
+
* @returns {FuroIconRegistry} An instance of this class.
|
|
29
|
+
*/
|
|
30
|
+
static createSharedInstance(): FuroIconRegistry;
|
|
31
|
+
/**
|
|
32
|
+
* Build the reactive state (registered names + the optional resolver and renderer).
|
|
33
|
+
*
|
|
34
|
+
* @returns {FuroIconRegistryState} Reactive state.
|
|
35
|
+
*/
|
|
36
|
+
static buildStateReactive(): FuroIconRegistryState;
|
|
37
|
+
/**
|
|
38
|
+
* Create the bridge to the underlying renderer's icon storage.
|
|
39
|
+
*
|
|
40
|
+
* @returns {IconStorage} Storage bridge.
|
|
41
|
+
*/
|
|
42
|
+
static createIconStorage(): IconStorage;
|
|
43
|
+
/**
|
|
44
|
+
* Build the set shape the underlying storage accepts, which stores nothing
|
|
45
|
+
* from a set carrying no `prefix`.
|
|
46
|
+
*
|
|
47
|
+
* @param {{
|
|
48
|
+
* iconSet: IconSet
|
|
49
|
+
* }} params - Parameters of this method.
|
|
50
|
+
* @returns {IconSet} Storable icon set.
|
|
51
|
+
*/
|
|
52
|
+
static buildStorableIconSet({ iconSet, }: {
|
|
53
|
+
iconSet: IconSet;
|
|
54
|
+
}): IconSet;
|
|
55
|
+
/**
|
|
56
|
+
* Extract the prefix a set is stored under, empty unless it carries one the
|
|
57
|
+
* storage accepts.
|
|
58
|
+
*
|
|
59
|
+
* @param {{
|
|
60
|
+
* iconSet: IconSet
|
|
61
|
+
* }} params - Parameters of this method.
|
|
62
|
+
* @returns {string} Prefix, empty when the set carries none.
|
|
63
|
+
*/
|
|
64
|
+
static extractIconSetPrefix({ iconSet, }: {
|
|
65
|
+
iconSet: IconSet;
|
|
66
|
+
}): string;
|
|
67
|
+
/**
|
|
68
|
+
* Generate what every name of a set is stored under, empty for a set carrying
|
|
69
|
+
* no prefix, so its already-prefixed keys stay verbatim.
|
|
70
|
+
*
|
|
71
|
+
* @param {{
|
|
72
|
+
* iconSet: IconSet
|
|
73
|
+
* }} params - Parameters of this method.
|
|
74
|
+
* @returns {string} Storage prefix.
|
|
75
|
+
*/
|
|
76
|
+
static generateStoragePrefix({ iconSet, }: {
|
|
77
|
+
iconSet: IconSet;
|
|
78
|
+
}): string;
|
|
79
|
+
/**
|
|
80
|
+
* Extract the full names an icon set carries, its prefix applied.
|
|
81
|
+
*
|
|
82
|
+
* @param {{
|
|
83
|
+
* iconSet: IconSet
|
|
84
|
+
* }} params - Parameters of this method.
|
|
85
|
+
* @returns {Array<string>} Full icon names.
|
|
86
|
+
*/
|
|
87
|
+
static extractIconSetNames({ iconSet, }: {
|
|
88
|
+
iconSet: IconSet;
|
|
89
|
+
}): Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the storage keeps the set at all, which it refuses wholesale over
|
|
92
|
+
* one bodyless icon or one alias pointing outside the set.
|
|
93
|
+
*
|
|
94
|
+
* @param {{
|
|
95
|
+
* iconSet: IconSet
|
|
96
|
+
* }} params - Parameters of this method.
|
|
97
|
+
* @returns {boolean} Whether the set is storable.
|
|
98
|
+
*/
|
|
99
|
+
static isStorableIconSet({ iconSet, }: {
|
|
100
|
+
iconSet: IconSet;
|
|
101
|
+
}): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Whether every dimension a shape declares is a number, which the storage
|
|
104
|
+
* demands before it keeps the set carrying it.
|
|
105
|
+
*
|
|
106
|
+
* @param {{
|
|
107
|
+
* shape: Record<string, *>
|
|
108
|
+
* propertyNames: Array<string>
|
|
109
|
+
* }} params - Parameters of this method.
|
|
110
|
+
* @returns {boolean} Whether every declared dimension is numeric.
|
|
111
|
+
*/
|
|
112
|
+
static hasNumericDimensions({ shape, propertyNames, }: {
|
|
113
|
+
shape: Record<string, any>;
|
|
114
|
+
propertyNames: Array<string>;
|
|
115
|
+
}): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Whether an icon carries what the renderer draws.
|
|
118
|
+
*
|
|
119
|
+
* @param {{
|
|
120
|
+
* icon: IconShape
|
|
121
|
+
* }} params - Parameters of this method.
|
|
122
|
+
* @returns {boolean} Whether the icon is drawable.
|
|
123
|
+
*/
|
|
124
|
+
static isDrawableIcon({ icon, }: {
|
|
125
|
+
icon: IconShape;
|
|
126
|
+
}): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Whether a set carries a name, as an icon or as an alias.
|
|
129
|
+
*
|
|
130
|
+
* @param {{
|
|
131
|
+
* iconSet: IconSet
|
|
132
|
+
* name: string
|
|
133
|
+
* }} params - Parameters of this method.
|
|
134
|
+
* @returns {boolean} Whether the set carries the name.
|
|
135
|
+
*/
|
|
136
|
+
static hasIconSetEntry({ iconSet, name, }: {
|
|
137
|
+
iconSet: IconSet;
|
|
138
|
+
name: string;
|
|
139
|
+
}): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Build the renderer shape the state keeps, a component unproxied so
|
|
142
|
+
* `reactive()` leaves its identity alone, a global name kept verbatim.
|
|
143
|
+
*
|
|
144
|
+
* @param {{
|
|
145
|
+
* component: IconRenderer | null
|
|
146
|
+
* }} params - Parameters of this method.
|
|
147
|
+
* @returns {IconRenderer | null} Storable renderer.
|
|
148
|
+
*/
|
|
149
|
+
static buildStorableRenderer({ component, }: {
|
|
150
|
+
component: IconRenderer | null;
|
|
151
|
+
}): IconRenderer | null;
|
|
152
|
+
/**
|
|
153
|
+
* Create the renderer that draws every registered name.
|
|
154
|
+
*
|
|
155
|
+
* @returns {import('vue').Component} The library's own renderer.
|
|
156
|
+
*/
|
|
157
|
+
static createOfflineRenderer(): import("vue").Component;
|
|
158
|
+
/**
|
|
159
|
+
* Constructor.
|
|
160
|
+
*
|
|
161
|
+
* @param {{
|
|
162
|
+
* stateReactive: FuroIconRegistryState
|
|
163
|
+
* iconStorage: IconStorage
|
|
164
|
+
* }} params - Parameters of this constructor.
|
|
165
|
+
*/
|
|
166
|
+
constructor({ stateReactive, iconStorage, }: {
|
|
167
|
+
stateReactive: FuroIconRegistryState;
|
|
168
|
+
iconStorage: IconStorage;
|
|
169
|
+
});
|
|
170
|
+
stateReactive: {
|
|
171
|
+
registeredNames: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
172
|
+
resolver: IconResolver | null;
|
|
173
|
+
renderer: string | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
174
|
+
new (...args: any[]): any;
|
|
175
|
+
__isFragment?: never;
|
|
176
|
+
__isTeleport?: never;
|
|
177
|
+
__isSuspense?: never;
|
|
178
|
+
} | {
|
|
179
|
+
[x: string]: any;
|
|
180
|
+
setup?: (this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
|
|
181
|
+
attrs: import("vue").Attrs;
|
|
182
|
+
slots: Readonly<{
|
|
183
|
+
[name: string]: import("vue").Slot<any>;
|
|
184
|
+
}>;
|
|
185
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
186
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
187
|
+
}) => any;
|
|
188
|
+
name?: string;
|
|
189
|
+
template?: string | object;
|
|
190
|
+
render?: Function;
|
|
191
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>;
|
|
192
|
+
directives?: Record<string, import("vue").Directive<any, any, string, any>>;
|
|
193
|
+
inheritAttrs?: boolean;
|
|
194
|
+
emits?: any;
|
|
195
|
+
slots?: {};
|
|
196
|
+
expose?: string[];
|
|
197
|
+
serverPrefetch?: () => void | Promise<any>;
|
|
198
|
+
compilerOptions?: {
|
|
199
|
+
isCustomElement?: (tag: string) => boolean;
|
|
200
|
+
whitespace?: "preserve" | "condense";
|
|
201
|
+
comments?: boolean;
|
|
202
|
+
delimiters?: [string, string];
|
|
203
|
+
};
|
|
204
|
+
call?: (this: unknown, ...args: unknown[]) => never;
|
|
205
|
+
__isFragment?: never;
|
|
206
|
+
__isTeleport?: never;
|
|
207
|
+
__isSuspense?: never;
|
|
208
|
+
__defaults?: {};
|
|
209
|
+
compatConfig?: {
|
|
210
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning";
|
|
211
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning";
|
|
212
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning";
|
|
213
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning";
|
|
214
|
+
GLOBAL_SET?: boolean | "suppress-warning";
|
|
215
|
+
GLOBAL_DELETE?: boolean | "suppress-warning";
|
|
216
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning";
|
|
217
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning";
|
|
218
|
+
CONFIG_SILENT?: boolean | "suppress-warning";
|
|
219
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning";
|
|
220
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning";
|
|
221
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning";
|
|
222
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning";
|
|
223
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning";
|
|
224
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning";
|
|
225
|
+
INSTANCE_SET?: boolean | "suppress-warning";
|
|
226
|
+
INSTANCE_DELETE?: boolean | "suppress-warning";
|
|
227
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning";
|
|
228
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning";
|
|
229
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning";
|
|
230
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning";
|
|
231
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning";
|
|
232
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning";
|
|
233
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning";
|
|
234
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning";
|
|
235
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning";
|
|
236
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning";
|
|
237
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning";
|
|
238
|
+
WATCH_ARRAY?: boolean | "suppress-warning";
|
|
239
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning";
|
|
240
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning";
|
|
241
|
+
CUSTOM_DIR?: boolean | "suppress-warning";
|
|
242
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning";
|
|
243
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning";
|
|
244
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning";
|
|
245
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning";
|
|
246
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning";
|
|
247
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning";
|
|
248
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning";
|
|
249
|
+
RENDER_FUNCTION?: boolean | "suppress-warning";
|
|
250
|
+
FILTERS?: boolean | "suppress-warning";
|
|
251
|
+
PRIVATE_APIS?: boolean | "suppress-warning";
|
|
252
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3);
|
|
253
|
+
};
|
|
254
|
+
data?: (this: any, vm: any) => any;
|
|
255
|
+
computed?: import("vue").ComputedOptions;
|
|
256
|
+
methods?: import("vue").MethodOptions;
|
|
257
|
+
watch?: {
|
|
258
|
+
[x: string]: (string | import("vue").WatchCallback | ({
|
|
259
|
+
handler: import("vue").WatchCallback | string;
|
|
260
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback | ({
|
|
261
|
+
handler: import("vue").WatchCallback | string;
|
|
262
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
263
|
+
};
|
|
264
|
+
provide?: import("vue").ComponentProvideOptions;
|
|
265
|
+
inject?: {} | string[];
|
|
266
|
+
filters?: Record<string, Function>;
|
|
267
|
+
mixins?: any[];
|
|
268
|
+
extends?: any;
|
|
269
|
+
beforeCreate?: () => any;
|
|
270
|
+
created?: () => any;
|
|
271
|
+
beforeMount?: () => any;
|
|
272
|
+
mounted?: () => any;
|
|
273
|
+
beforeUpdate?: () => any;
|
|
274
|
+
updated?: () => any;
|
|
275
|
+
activated?: () => any;
|
|
276
|
+
deactivated?: () => any;
|
|
277
|
+
beforeDestroy?: () => any;
|
|
278
|
+
beforeUnmount?: () => any;
|
|
279
|
+
destroyed?: () => any;
|
|
280
|
+
unmounted?: () => any;
|
|
281
|
+
renderTracked?: (e: import("vue").DebuggerEvent) => void;
|
|
282
|
+
renderTriggered?: (e: import("vue").DebuggerEvent) => void;
|
|
283
|
+
errorCaptured?: (err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void;
|
|
284
|
+
delimiters?: [string, string];
|
|
285
|
+
__differentiator?: string | number | symbol;
|
|
286
|
+
__isBuiltIn?: boolean;
|
|
287
|
+
__file?: string;
|
|
288
|
+
__name?: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
iconStorage: IconStorage;
|
|
292
|
+
/**
|
|
293
|
+
* get: the constructor of this instance.
|
|
294
|
+
*
|
|
295
|
+
* @returns {typeof FuroIconRegistry} The constructor.
|
|
296
|
+
*/
|
|
297
|
+
get Ctor(): typeof FuroIconRegistry;
|
|
298
|
+
/**
|
|
299
|
+
* Register a whole icon set, so every name it carries becomes drawable. A set
|
|
300
|
+
* the storage refuses records nothing, since none of its names would draw.
|
|
301
|
+
*
|
|
302
|
+
* @param {{
|
|
303
|
+
* iconSet: IconSet
|
|
304
|
+
* }} params - Parameters of this method.
|
|
305
|
+
* @returns {FuroIconRegistry} For method chaining.
|
|
306
|
+
*/
|
|
307
|
+
registerIconSet({ iconSet, }: {
|
|
308
|
+
iconSet: IconSet;
|
|
309
|
+
}): FuroIconRegistry;
|
|
310
|
+
/**
|
|
311
|
+
* Register one icon under its full name, prefix included. An icon with no
|
|
312
|
+
* body records nothing, since the renderer would draw nothing for it.
|
|
313
|
+
*
|
|
314
|
+
* @param {{
|
|
315
|
+
* name: string
|
|
316
|
+
* icon: IconShape
|
|
317
|
+
* }} params - Parameters of this method.
|
|
318
|
+
* @returns {FuroIconRegistry} For method chaining.
|
|
319
|
+
*/
|
|
320
|
+
registerIcon({ name, icon, }: {
|
|
321
|
+
name: string;
|
|
322
|
+
icon: IconShape;
|
|
323
|
+
}): FuroIconRegistry;
|
|
324
|
+
/**
|
|
325
|
+
* Record names as drawable.
|
|
326
|
+
*
|
|
327
|
+
* @param {{
|
|
328
|
+
* names: Array<string>
|
|
329
|
+
* }} params - Parameters of this method.
|
|
330
|
+
* @returns {FuroIconRegistry} For method chaining.
|
|
331
|
+
*/
|
|
332
|
+
recordNames({ names, }: {
|
|
333
|
+
names: Array<string>;
|
|
334
|
+
}): FuroIconRegistry;
|
|
335
|
+
/**
|
|
336
|
+
* Install the resolver consulted for a name no registration covers.
|
|
337
|
+
*
|
|
338
|
+
* @param {{
|
|
339
|
+
* resolver: IconResolver | null
|
|
340
|
+
* }} params - Parameters of this method.
|
|
341
|
+
* @returns {FuroIconRegistry} For method chaining.
|
|
342
|
+
*/
|
|
343
|
+
useIconResolver({ resolver, }: {
|
|
344
|
+
resolver: IconResolver | null;
|
|
345
|
+
}): FuroIconRegistry;
|
|
346
|
+
/**
|
|
347
|
+
* Install the renderer for names the registry lacks, `null` to uninstall.
|
|
348
|
+
*
|
|
349
|
+
* @param {{
|
|
350
|
+
* component: IconRenderer | null
|
|
351
|
+
* }} params - Parameters of this method.
|
|
352
|
+
* @returns {FuroIconRegistry} For method chaining.
|
|
353
|
+
*/
|
|
354
|
+
useIconRenderer({ component, }: {
|
|
355
|
+
component: IconRenderer | null;
|
|
356
|
+
}): FuroIconRegistry;
|
|
357
|
+
/**
|
|
358
|
+
* Whether a renderer is installed.
|
|
359
|
+
*
|
|
360
|
+
* @returns {boolean} Whether a renderer is installed.
|
|
361
|
+
*/
|
|
362
|
+
hasIconRenderer(): boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Extract the installed renderer.
|
|
365
|
+
*
|
|
366
|
+
* @returns {IconRenderer | null} Renderer, or null when none is installed.
|
|
367
|
+
*/
|
|
368
|
+
extractIconRenderer(): IconRenderer | null;
|
|
369
|
+
/**
|
|
370
|
+
* Extract the renderer that draws every registered name.
|
|
371
|
+
*
|
|
372
|
+
* @returns {import('vue').Component} The library's own renderer.
|
|
373
|
+
*/
|
|
374
|
+
extractOfflineRenderer(): import("vue").Component;
|
|
375
|
+
/**
|
|
376
|
+
* Whether a name draws anything, whether it was registered or the installed
|
|
377
|
+
* resolver answers it.
|
|
378
|
+
*
|
|
379
|
+
* @param {{
|
|
380
|
+
* name: string | null
|
|
381
|
+
* }} params - Parameters of this method.
|
|
382
|
+
* @returns {boolean} Whether the name resolves.
|
|
383
|
+
*/
|
|
384
|
+
hasIcon({ name, }: {
|
|
385
|
+
name: string | null;
|
|
386
|
+
}): boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Find what the renderer should draw for a name.
|
|
389
|
+
*
|
|
390
|
+
* @param {{
|
|
391
|
+
* name: string | null
|
|
392
|
+
* }} params - Parameters of this method.
|
|
393
|
+
* @returns {string | IconShape | null} A registered name, resolved icon data, or null.
|
|
394
|
+
*/
|
|
395
|
+
findRenderableIcon({ name, }: {
|
|
396
|
+
name: string | null;
|
|
397
|
+
}): string | IconShape | null;
|
|
398
|
+
/**
|
|
399
|
+
* Whether a name was registered, leaving the resolver unasked.
|
|
400
|
+
*
|
|
401
|
+
* @param {{
|
|
402
|
+
* name: string | null
|
|
403
|
+
* }} params - Parameters of this method.
|
|
404
|
+
* @returns {boolean} Whether the name is registered.
|
|
405
|
+
*/
|
|
406
|
+
hasRegisteredIcon({ name, }: {
|
|
407
|
+
name: string | null;
|
|
408
|
+
}): boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Resolve a name through the installed resolver, holding it to the same shape
|
|
411
|
+
* registration demands, so undrawable data stays detectable as unresolved.
|
|
412
|
+
*
|
|
413
|
+
* @param {{
|
|
414
|
+
* name: string
|
|
415
|
+
* }} params - Parameters of this method.
|
|
416
|
+
* @returns {IconShape | null} Icon data, or null when nothing resolves it.
|
|
417
|
+
*/
|
|
418
|
+
resolveIcon({ name, }: {
|
|
419
|
+
name: string;
|
|
420
|
+
}): IconShape | null;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* One icon's drawable data.
|
|
424
|
+
*/
|
|
425
|
+
export type IconShape = {
|
|
426
|
+
body: string;
|
|
427
|
+
width?: number;
|
|
428
|
+
height?: number;
|
|
429
|
+
[key: string]: any;
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* A set of icons sharing one prefix and one set of defaults.
|
|
433
|
+
*/
|
|
434
|
+
export type IconSet = {
|
|
435
|
+
prefix?: string;
|
|
436
|
+
width?: number;
|
|
437
|
+
height?: number;
|
|
438
|
+
icons: Record<string, IconShape>;
|
|
439
|
+
aliases?: Record<string, any>;
|
|
440
|
+
[key: string]: any;
|
|
441
|
+
};
|
|
442
|
+
export type IconResolver = (params: {
|
|
443
|
+
name: string;
|
|
444
|
+
}) => IconShape | null;
|
|
445
|
+
/**
|
|
446
|
+
* A renderer component, or the name one is globally registered under.
|
|
447
|
+
*/
|
|
448
|
+
export type IconRenderer = import("vue").Component | string;
|
|
449
|
+
export type IconStorage = {
|
|
450
|
+
registerSet: (iconSet: any, storagePrefix: string) => void;
|
|
451
|
+
registerIcon: (name: string, icon: any) => void;
|
|
452
|
+
};
|
|
453
|
+
export type FuroIconRegistryState = import("vue").Reactive<{
|
|
454
|
+
registeredNames: Set<string>;
|
|
455
|
+
resolver: IconResolver | null;
|
|
456
|
+
renderer: IconRenderer | null;
|
|
457
|
+
}>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for the catalogue renderer adapter, holding the one place its
|
|
3
|
+
* `name` / `size` map onto the underlying renderer's own properties.
|
|
4
|
+
*
|
|
5
|
+
* @extends {BaseFuroContext<null, Props, null>}
|
|
6
|
+
*/
|
|
7
|
+
export default class FuroIconifyRendererContext extends BaseFuroContext<null, Props, null> {
|
|
8
|
+
/**
|
|
9
|
+
* Factory method.
|
|
10
|
+
*
|
|
11
|
+
* @template {X extends typeof FuroIconifyRendererContext ? X : never} T, X
|
|
12
|
+
* @override
|
|
13
|
+
* @param {FuroIconifyRendererContextFactoryParams} params - Parameters of this factory method.
|
|
14
|
+
* @returns {InstanceType<T>} An instance of this class.
|
|
15
|
+
* @this {T}
|
|
16
|
+
*/
|
|
17
|
+
static override create<T extends X extends typeof FuroIconifyRendererContext ? X : never, X>(this: T, { props, componentContext, }: FuroIconifyRendererContextFactoryParams): InstanceType<T>;
|
|
18
|
+
constructor({ props, componentContext, reactiveHash, refHash, shallowRefHash, modelRefHash, }: import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams<Props, null, {}, {}, {}, {}>);
|
|
19
|
+
/**
|
|
20
|
+
* get: the icon name, collection prefix included.
|
|
21
|
+
*
|
|
22
|
+
* @returns {string | null} Icon name such as `mdi:home`, or null.
|
|
23
|
+
*/
|
|
24
|
+
get name(): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* get: the length of the icon's box, applied to both axes.
|
|
27
|
+
*
|
|
28
|
+
* @returns {string | number | null} A CSS length, or null to inherit the font size.
|
|
29
|
+
*/
|
|
30
|
+
get size(): string | number | null;
|
|
31
|
+
/**
|
|
32
|
+
* Extract the attributes the underlying renderer expects.
|
|
33
|
+
*
|
|
34
|
+
* @returns {{
|
|
35
|
+
* icon: string | null
|
|
36
|
+
* width?: string | number
|
|
37
|
+
* height?: string | number
|
|
38
|
+
* }} Renderer attributes.
|
|
39
|
+
*/
|
|
40
|
+
extractRendererAttributes(): {
|
|
41
|
+
icon: string | null;
|
|
42
|
+
width?: string | number;
|
|
43
|
+
height?: string | number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Build the size attributes, omitted rather than nulled when no size was
|
|
47
|
+
* given, so the glyph keeps the renderer's `1em` default and scales with text.
|
|
48
|
+
*
|
|
49
|
+
* @returns {{
|
|
50
|
+
* width?: string | number
|
|
51
|
+
* height?: string | number
|
|
52
|
+
* }} Size attributes.
|
|
53
|
+
*/
|
|
54
|
+
buildOptionalSizeAttributes(): {
|
|
55
|
+
width?: string | number;
|
|
56
|
+
height?: string | number;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export type Props = {
|
|
60
|
+
name: string;
|
|
61
|
+
size?: string | number | null;
|
|
62
|
+
};
|
|
63
|
+
export type FuroIconifyRendererContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams<Props>;
|
|
64
|
+
export type FuroIconifyRendererContextFactoryParams = FuroIconifyRendererContextParams;
|
|
65
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|