@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,477 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for managing FuroEditableField component.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseFuroContext<null, Props, EmitEventName>}
|
|
5
|
+
*/
|
|
6
|
+
export default class FuroEditableFieldContext extends BaseFuroContext<null, Props, EmitEventName> {
|
|
7
|
+
/**
|
|
8
|
+
* Factory method.
|
|
9
|
+
*
|
|
10
|
+
* @template {X extends typeof FuroEditableFieldContext ? X : never} T, X
|
|
11
|
+
* @override
|
|
12
|
+
* @param {FuroEditableFieldContextFactoryParams} 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 FuroEditableFieldContext ? X : never, X>(this: T, { props, componentContext, refHash, reactiveHash, }: FuroEditableFieldContextFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Build ref hash.
|
|
19
|
+
*
|
|
20
|
+
* @override
|
|
21
|
+
*/
|
|
22
|
+
static override buildRefHash(): {
|
|
23
|
+
originalValueRef: import("vue").Ref<any, any>;
|
|
24
|
+
committedValueRef: import("vue").Ref<any, any>;
|
|
25
|
+
draftValueRef: import("vue").Ref<any, any>;
|
|
26
|
+
editableRootInstanceRef: import("vue").Ref<any, any>;
|
|
27
|
+
anchorElementRef: import("vue").Ref<any, any>;
|
|
28
|
+
floatingEditorElementRef: import("vue").Ref<any, any>;
|
|
29
|
+
scrollEventListenerRef: import("vue").Ref<any, any>;
|
|
30
|
+
resizeEventListenerRef: import("vue").Ref<any, any>;
|
|
31
|
+
editorPositionRevisionRef: import("vue").Ref<number, number>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Build reactive hash.
|
|
35
|
+
*
|
|
36
|
+
* @override
|
|
37
|
+
*/
|
|
38
|
+
static override buildReactiveHash(): {
|
|
39
|
+
statusReactive: {
|
|
40
|
+
isShowEditing: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Get emit event name.
|
|
45
|
+
*
|
|
46
|
+
* @override
|
|
47
|
+
* @returns {Readonly<{
|
|
48
|
+
* COMMIT_VALUE: 'commit-value'
|
|
49
|
+
* UPDATE_EDITING_STATE: 'update-editing-state'
|
|
50
|
+
* }>}
|
|
51
|
+
*/
|
|
52
|
+
static override get EMIT_EVENT_NAME(): Readonly<{
|
|
53
|
+
COMMIT_VALUE: "commit-value";
|
|
54
|
+
UPDATE_EDITING_STATE: "update-editing-state";
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Get emit options.
|
|
58
|
+
*
|
|
59
|
+
* @returns {{
|
|
60
|
+
* 'commit-value': (payload: import('./EditableEmitPayload.js').default) => void
|
|
61
|
+
* 'update-editing-state': (editingState: EdittingState) => void
|
|
62
|
+
* }}
|
|
63
|
+
*/
|
|
64
|
+
static get EMIT_EVENT_HASH(): {
|
|
65
|
+
"commit-value": (payload: import("./EditableEmitPayload.js").default) => void;
|
|
66
|
+
"update-editing-state": (editingState: EdittingState) => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* get: Constructor of `EmitPayload`
|
|
70
|
+
*
|
|
71
|
+
* @returns {typeof EditableEmitPayload}
|
|
72
|
+
*/
|
|
73
|
+
static get EmitPayloadCtor(): typeof EditableEmitPayload;
|
|
74
|
+
/**
|
|
75
|
+
* get: Constructor of `ObjectProcessor`.
|
|
76
|
+
*
|
|
77
|
+
* @returns {typeof ObjectProcessor}
|
|
78
|
+
*/
|
|
79
|
+
static get ObjectProcessorCtor(): typeof ObjectProcessor;
|
|
80
|
+
/**
|
|
81
|
+
* get: Constructor of `EditorCollisionProcessor`.
|
|
82
|
+
*
|
|
83
|
+
* @returns {typeof EditorCollisionProcessor}
|
|
84
|
+
*/
|
|
85
|
+
static get EditorCollisionProcessorCtor(): typeof EditorCollisionProcessor;
|
|
86
|
+
/**
|
|
87
|
+
* Constructor.
|
|
88
|
+
*
|
|
89
|
+
* @param {FuroEditableFieldContextParams} params
|
|
90
|
+
*/
|
|
91
|
+
constructor({ props, componentContext, refHash, reactiveHash, }: FuroEditableFieldContextParams);
|
|
92
|
+
refHash: RefHash;
|
|
93
|
+
reactiveHash: ReactiveHash;
|
|
94
|
+
/**
|
|
95
|
+
* get: Constructor of this class.
|
|
96
|
+
*
|
|
97
|
+
* @override
|
|
98
|
+
* @returns {typeof FuroEditableFieldContext}
|
|
99
|
+
*/
|
|
100
|
+
override get Ctor(): typeof FuroEditableFieldContext;
|
|
101
|
+
/**
|
|
102
|
+
* @returns {import('vue').Ref<FuroEditableValue>}
|
|
103
|
+
*/
|
|
104
|
+
get originalValueRef(): import("vue").Ref<FuroEditableValue>;
|
|
105
|
+
/**
|
|
106
|
+
* @returns {import('vue').Ref<FuroEditableValue>}
|
|
107
|
+
*/
|
|
108
|
+
get committedValueRef(): import("vue").Ref<FuroEditableValue>;
|
|
109
|
+
/**
|
|
110
|
+
* @returns {import('vue').Ref<FuroEditableValue>}
|
|
111
|
+
*/
|
|
112
|
+
get draftValueRef(): import("vue").Ref<FuroEditableValue>;
|
|
113
|
+
/**
|
|
114
|
+
* @returns {import('vue').Ref<EditableRootMethods | null>}
|
|
115
|
+
*/
|
|
116
|
+
get editableRootInstanceRef(): import("vue").Ref<EditableRootMethods | null>;
|
|
117
|
+
/**
|
|
118
|
+
* @returns {import('vue').Ref<HTMLElement | null>}
|
|
119
|
+
*/
|
|
120
|
+
get anchorElementRef(): import("vue").Ref<HTMLElement | null>;
|
|
121
|
+
/**
|
|
122
|
+
* @returns {import('vue').Ref<HTMLElement | null>}
|
|
123
|
+
*/
|
|
124
|
+
get floatingEditorElementRef(): import("vue").Ref<HTMLElement | null>;
|
|
125
|
+
/**
|
|
126
|
+
* @returns {import('vue').Ref<EventListener | null>}
|
|
127
|
+
*/
|
|
128
|
+
get scrollEventListenerRef(): import("vue").Ref<EventListener | null>;
|
|
129
|
+
/**
|
|
130
|
+
* @returns {import('vue').Ref<EventListener | null>}
|
|
131
|
+
*/
|
|
132
|
+
get resizeEventListenerRef(): import("vue").Ref<EventListener | null>;
|
|
133
|
+
/**
|
|
134
|
+
* @returns {import('vue').Ref<number>}
|
|
135
|
+
*/
|
|
136
|
+
get editorPositionRevisionRef(): import("vue").Ref<number>;
|
|
137
|
+
/**
|
|
138
|
+
* @returns {StatusReactive}
|
|
139
|
+
*/
|
|
140
|
+
get statusReactive(): StatusReactive;
|
|
141
|
+
/**
|
|
142
|
+
* Parcel passed from parent via props (merged defaults).
|
|
143
|
+
*
|
|
144
|
+
* @override
|
|
145
|
+
* @returns {FuroEditableFieldParcel}
|
|
146
|
+
*/
|
|
147
|
+
override get parcel(): FuroEditableFieldParcel;
|
|
148
|
+
/**
|
|
149
|
+
* Setup component context.
|
|
150
|
+
*
|
|
151
|
+
* @template {X extends FuroEditableFieldContext ? X : never} T, X
|
|
152
|
+
* @override
|
|
153
|
+
* @returns {T} - For method chaining.
|
|
154
|
+
* @this {T}
|
|
155
|
+
*/
|
|
156
|
+
override setupComponent<T extends X extends FuroEditableFieldContext ? X : never, X>(this: T): T;
|
|
157
|
+
/**
|
|
158
|
+
* Cancel editing on scroll.
|
|
159
|
+
*
|
|
160
|
+
* @param {{
|
|
161
|
+
* scrollEvent: Event
|
|
162
|
+
* }} params - Parameters.
|
|
163
|
+
*/
|
|
164
|
+
cancelEditingOnScroll({ scrollEvent, }: {
|
|
165
|
+
scrollEvent: Event;
|
|
166
|
+
}): void;
|
|
167
|
+
/**
|
|
168
|
+
* Setup scroll listener while editing.
|
|
169
|
+
*/
|
|
170
|
+
setupEditingScrollListener(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Teardown scroll listener while editing.
|
|
173
|
+
*/
|
|
174
|
+
teardownEditingScrollListener(): void;
|
|
175
|
+
/**
|
|
176
|
+
* Setup resize listener while editing.
|
|
177
|
+
*/
|
|
178
|
+
setupEditingResizeListener(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Teardown resize listener while editing.
|
|
181
|
+
*/
|
|
182
|
+
teardownEditingResizeListener(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Increment editor position revision to trigger style recalculation.
|
|
185
|
+
*/
|
|
186
|
+
incrementEditorPositionRevision(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Schedule editor position revision after layout is ready.
|
|
189
|
+
*/
|
|
190
|
+
scheduleEditorPositionRevision(): void;
|
|
191
|
+
/**
|
|
192
|
+
* Whether action triggers are shown.
|
|
193
|
+
*
|
|
194
|
+
* @returns {boolean}
|
|
195
|
+
*/
|
|
196
|
+
shouldShowActionButtons(): boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Whether the field is invalid.
|
|
199
|
+
*
|
|
200
|
+
* @returns {boolean}
|
|
201
|
+
*/
|
|
202
|
+
isInvalid(): boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Whether the field is disabled.
|
|
205
|
+
*
|
|
206
|
+
* @returns {boolean}
|
|
207
|
+
*/
|
|
208
|
+
isDisabled(): boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the field is readonly.
|
|
211
|
+
*
|
|
212
|
+
* @returns {boolean}
|
|
213
|
+
*/
|
|
214
|
+
isReadonly(): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Whether the field is required.
|
|
217
|
+
*
|
|
218
|
+
* @returns {boolean}
|
|
219
|
+
*/
|
|
220
|
+
isRequired(): boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Extract the accessible name of the edit trigger.
|
|
223
|
+
*
|
|
224
|
+
* @returns {string}
|
|
225
|
+
*/
|
|
226
|
+
extractEditLabel(): string;
|
|
227
|
+
/**
|
|
228
|
+
* Extract the accessible name of the undo control.
|
|
229
|
+
*
|
|
230
|
+
* @returns {string}
|
|
231
|
+
*/
|
|
232
|
+
extractUndoLabel(): string;
|
|
233
|
+
/**
|
|
234
|
+
* Extract the accessible name of the submit control.
|
|
235
|
+
*
|
|
236
|
+
* @returns {string}
|
|
237
|
+
*/
|
|
238
|
+
extractSubmitLabel(): string;
|
|
239
|
+
/**
|
|
240
|
+
* Extract the accessible name of the cancel control.
|
|
241
|
+
*
|
|
242
|
+
* @returns {string}
|
|
243
|
+
*/
|
|
244
|
+
extractCancelLabel(): string;
|
|
245
|
+
/**
|
|
246
|
+
* Extract placeholder forwarded to Reka EditableRoot.
|
|
247
|
+
*
|
|
248
|
+
* @returns {FuroEditableFieldParcel['placeholder']}
|
|
249
|
+
*/
|
|
250
|
+
extractPlaceholder(): FuroEditableFieldParcel["placeholder"];
|
|
251
|
+
/**
|
|
252
|
+
* Extract root attributes forwarded to Reka EditableRoot.
|
|
253
|
+
*
|
|
254
|
+
* @returns {Props['parcel']}
|
|
255
|
+
*/
|
|
256
|
+
extractRootAttributes(): Props["parcel"];
|
|
257
|
+
/**
|
|
258
|
+
* Whether the value is empty.
|
|
259
|
+
*
|
|
260
|
+
* @returns {boolean}
|
|
261
|
+
*/
|
|
262
|
+
hasEmptyValue(): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Resolve preview label text.
|
|
265
|
+
*
|
|
266
|
+
* @returns {string}
|
|
267
|
+
*/
|
|
268
|
+
resolvePreviewText(): string;
|
|
269
|
+
/**
|
|
270
|
+
* Build custom event.
|
|
271
|
+
*
|
|
272
|
+
* @param {{
|
|
273
|
+
* name?: string
|
|
274
|
+
* value?: FuroEditableValue
|
|
275
|
+
* }} [params] - Parameters.
|
|
276
|
+
* @returns {import('./EditableEmitPayload.js').EditableRawEvent}
|
|
277
|
+
*/
|
|
278
|
+
buildCustomEvent({ name, value, }?: {
|
|
279
|
+
name?: string;
|
|
280
|
+
value?: FuroEditableValue;
|
|
281
|
+
}): import("./EditableEmitPayload.js").EditableRawEvent;
|
|
282
|
+
/**
|
|
283
|
+
* Build payload.
|
|
284
|
+
*
|
|
285
|
+
* @param {{
|
|
286
|
+
* rawEvent?: import('./EditableEmitPayload.js').EditableRawEvent
|
|
287
|
+
* }} [params] - Parameters.
|
|
288
|
+
* @returns {InstanceType<typeof EditableEmitPayload>}
|
|
289
|
+
*/
|
|
290
|
+
buildEmitPayload({ rawEvent, }?: {
|
|
291
|
+
rawEvent?: import("./EditableEmitPayload.js").EditableRawEvent;
|
|
292
|
+
}): InstanceType<typeof EditableEmitPayload>;
|
|
293
|
+
/**
|
|
294
|
+
* Respond to submit committed value event (blur / enter dismiss).
|
|
295
|
+
*
|
|
296
|
+
* @param {{
|
|
297
|
+
* value?: FuroEditableValue
|
|
298
|
+
* }} [params] - Parameters.
|
|
299
|
+
* @throws {Error} When not implemented.
|
|
300
|
+
*/
|
|
301
|
+
onSubmitCommittedValue({ value, }?: {
|
|
302
|
+
value?: FuroEditableValue;
|
|
303
|
+
}): void;
|
|
304
|
+
/**
|
|
305
|
+
* Respond to Reka update state event.
|
|
306
|
+
*
|
|
307
|
+
* @param {{
|
|
308
|
+
* editingState: EdittingState
|
|
309
|
+
* }} params - Parameters.
|
|
310
|
+
* @throws {Error} When not implemented.
|
|
311
|
+
*/
|
|
312
|
+
onUpdateEditingState({ editingState, }: {
|
|
313
|
+
editingState: EdittingState;
|
|
314
|
+
}): void;
|
|
315
|
+
/**
|
|
316
|
+
* Update internal value.
|
|
317
|
+
*
|
|
318
|
+
* @param {{
|
|
319
|
+
* value: FuroEditableValue
|
|
320
|
+
* }} params - Parameters.
|
|
321
|
+
*/
|
|
322
|
+
updateDraftValue({ value, }: {
|
|
323
|
+
value: FuroEditableValue;
|
|
324
|
+
}): void;
|
|
325
|
+
/**
|
|
326
|
+
* Build slot props.
|
|
327
|
+
*
|
|
328
|
+
* @param {{
|
|
329
|
+
* defaultSlotProps: DefaultEditableRootSlotProps
|
|
330
|
+
* }} params - Parameters.
|
|
331
|
+
* @returns {FuroEditableSlotProps}
|
|
332
|
+
*/
|
|
333
|
+
buildSlotProps({ defaultSlotProps, }: {
|
|
334
|
+
defaultSlotProps: DefaultEditableRootSlotProps;
|
|
335
|
+
}): FuroEditableSlotProps;
|
|
336
|
+
/**
|
|
337
|
+
* Extract editor position elements.
|
|
338
|
+
*
|
|
339
|
+
* @returns {{
|
|
340
|
+
* anchorElement: HTMLElement
|
|
341
|
+
* floatingEditorElement: HTMLElement
|
|
342
|
+
* } | null}
|
|
343
|
+
*/
|
|
344
|
+
extractEditorPositionElements(): {
|
|
345
|
+
anchorElement: HTMLElement;
|
|
346
|
+
floatingEditorElement: HTMLElement;
|
|
347
|
+
} | null;
|
|
348
|
+
/**
|
|
349
|
+
* Extract collision boundary element.
|
|
350
|
+
*
|
|
351
|
+
* @returns {HTMLElement | null}
|
|
352
|
+
*/
|
|
353
|
+
extractCollisionBoundaryElement(): HTMLElement | null;
|
|
354
|
+
/**
|
|
355
|
+
* Generate editor style.
|
|
356
|
+
*
|
|
357
|
+
* @returns {import('vue').CSSProperties}
|
|
358
|
+
*/
|
|
359
|
+
generateEditorPositionStyle(): import("vue").CSSProperties;
|
|
360
|
+
/**
|
|
361
|
+
* Build editor position style.
|
|
362
|
+
*
|
|
363
|
+
* @param {{
|
|
364
|
+
* editorPositionRevision: number
|
|
365
|
+
* }} params - Parameters.
|
|
366
|
+
* @returns {import('vue').CSSProperties}
|
|
367
|
+
*/
|
|
368
|
+
buildEditorPositionStyle({ editorPositionRevision, }: {
|
|
369
|
+
editorPositionRevision: number;
|
|
370
|
+
}): import("vue").CSSProperties;
|
|
371
|
+
/**
|
|
372
|
+
* Whether the original value has changed.
|
|
373
|
+
*
|
|
374
|
+
* @returns {boolean}
|
|
375
|
+
*/
|
|
376
|
+
hasOriginalValueChanged(): boolean;
|
|
377
|
+
/**
|
|
378
|
+
* Undo change.
|
|
379
|
+
*/
|
|
380
|
+
onUndoChange(): void;
|
|
381
|
+
/**
|
|
382
|
+
* Whether the undo change button should be shown.
|
|
383
|
+
*
|
|
384
|
+
* @returns {boolean}
|
|
385
|
+
*/
|
|
386
|
+
shouldShowUndoChange(): boolean;
|
|
387
|
+
}
|
|
388
|
+
export type EmitEventName = "commit-value" | "update:value" | "update:state";
|
|
389
|
+
export type FuroEditableValue = any;
|
|
390
|
+
export type FuroEditableFieldParcel = {
|
|
391
|
+
value?: FuroEditableValue;
|
|
392
|
+
invalid?: boolean;
|
|
393
|
+
disabled?: boolean;
|
|
394
|
+
required?: boolean;
|
|
395
|
+
readonly?: boolean;
|
|
396
|
+
placeholder?: string;
|
|
397
|
+
emptyPreviewText?: string;
|
|
398
|
+
showActions?: boolean;
|
|
399
|
+
showEditing?: boolean;
|
|
400
|
+
showUndoChange?: boolean;
|
|
401
|
+
submitMode?: "blur" | "enter" | "both" | "none";
|
|
402
|
+
activationMode?: "dblclick" | "focus" | "none";
|
|
403
|
+
collisionBoundary?: import("vue").Ref<HTMLElement | null> | HTMLElement | null;
|
|
404
|
+
editLabel?: string;
|
|
405
|
+
undoLabel?: string;
|
|
406
|
+
submitLabel?: string;
|
|
407
|
+
cancelLabel?: string;
|
|
408
|
+
};
|
|
409
|
+
export type Props = {
|
|
410
|
+
parcel?: (FuroEditableFieldParcel & import("vue").Attrs) | null;
|
|
411
|
+
};
|
|
412
|
+
export type StatusReactive = {
|
|
413
|
+
isShowEditing: boolean;
|
|
414
|
+
};
|
|
415
|
+
export type ReactiveHash = {
|
|
416
|
+
statusReactive: StatusReactive;
|
|
417
|
+
};
|
|
418
|
+
export type EditableRootMethods = {
|
|
419
|
+
submit: () => void;
|
|
420
|
+
cancel: () => void;
|
|
421
|
+
edit: () => void;
|
|
422
|
+
};
|
|
423
|
+
export type RefHash = {
|
|
424
|
+
originalValueRef: import("vue").Ref<FuroEditableValue>;
|
|
425
|
+
committedValueRef: import("vue").Ref<FuroEditableValue>;
|
|
426
|
+
draftValueRef: import("vue").Ref<FuroEditableValue>;
|
|
427
|
+
editableRootInstanceRef: import("vue").Ref<EditableRootMethods | null>;
|
|
428
|
+
anchorElementRef: import("vue").Ref<HTMLElement | null>;
|
|
429
|
+
floatingEditorElementRef: import("vue").Ref<HTMLElement | null>;
|
|
430
|
+
scrollEventListenerRef: import("vue").Ref<EventListener | null>;
|
|
431
|
+
resizeEventListenerRef: import("vue").Ref<EventListener | null>;
|
|
432
|
+
editorPositionRevisionRef: import("vue").Ref<number>;
|
|
433
|
+
};
|
|
434
|
+
export type FuroEditableFieldContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
435
|
+
props: Props;
|
|
436
|
+
componentContext: ComponentContext;
|
|
437
|
+
refHash: RefHash;
|
|
438
|
+
reactiveHash: ReactiveHash;
|
|
439
|
+
};
|
|
440
|
+
export type FuroEditableFieldContextFactoryParams = Omit<FuroEditableFieldContextParams, "refHash" | "reactiveHash"> & {
|
|
441
|
+
refHash?: FuroEditableFieldContextParams["refHash"];
|
|
442
|
+
reactiveHash?: FuroEditableFieldContextParams["reactiveHash"];
|
|
443
|
+
};
|
|
444
|
+
export type EdittingState = "cancel" | "submit" | "edit";
|
|
445
|
+
export type FuroEditableFieldEmitHash = typeof FuroEditableFieldContext.EMIT_EVENT_HASH;
|
|
446
|
+
export type DefaultEditableRootSlotProps = {
|
|
447
|
+
isEditing: boolean;
|
|
448
|
+
modelValue: string | null | undefined;
|
|
449
|
+
isEmpty: boolean;
|
|
450
|
+
submit: () => void;
|
|
451
|
+
cancel: () => void;
|
|
452
|
+
edit: () => void;
|
|
453
|
+
};
|
|
454
|
+
export type FuroEditableSlotProps = DefaultEditableRootSlotProps & {
|
|
455
|
+
committedValue: FuroEditableValue;
|
|
456
|
+
draftValue: FuroEditableValue;
|
|
457
|
+
updateDraftValue: ({ value }: {
|
|
458
|
+
value: FuroEditableValue;
|
|
459
|
+
}) => void;
|
|
460
|
+
undoChange: () => void;
|
|
461
|
+
};
|
|
462
|
+
export type FuroEditableFieldSlots = import("vue").SlotsType<{
|
|
463
|
+
preview: FuroEditableSlotProps;
|
|
464
|
+
editor: FuroEditableSlotProps;
|
|
465
|
+
"edit-trigger": FuroEditableSlotProps;
|
|
466
|
+
"submit-trigger": FuroEditableSlotProps;
|
|
467
|
+
"cancel-trigger": FuroEditableSlotProps;
|
|
468
|
+
"undo-trigger": FuroEditableSlotProps;
|
|
469
|
+
}>;
|
|
470
|
+
export type ComponentContext = import("vue").SetupContext<FuroEditableFieldEmitHash, FuroEditableFieldSlots>;
|
|
471
|
+
export type FuroEditableFieldSetup = (props: Props, componentContext: ComponentContext) => {
|
|
472
|
+
context: FuroEditableFieldContext;
|
|
473
|
+
};
|
|
474
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
475
|
+
import EditableEmitPayload from './EditableEmitPayload.js';
|
|
476
|
+
import ObjectProcessor from './processors/ObjectProcessor.js';
|
|
477
|
+
import EditorCollisionProcessor from './processors/EditorCollisionProcessor.js';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processor for calculating floating editor position within a collision boundary.
|
|
3
|
+
*/
|
|
4
|
+
export default class EditorCollisionProcessor {
|
|
5
|
+
/**
|
|
6
|
+
* Factory method.
|
|
7
|
+
*
|
|
8
|
+
* @template {X extends typeof EditorCollisionProcessor ? X : never} T, X
|
|
9
|
+
* @param {EditorCollisionProcessorFactoryParams} params - Parameters.
|
|
10
|
+
* @returns {InstanceType<T>}
|
|
11
|
+
* @this {T}
|
|
12
|
+
*/
|
|
13
|
+
static create<T extends X extends typeof EditorCollisionProcessor ? X : never, X>(this: T, { anchorRect, boundaryRect, editorWidth, editorHeight, }: EditorCollisionProcessorFactoryParams): InstanceType<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Extract viewport collision boundary edges.
|
|
16
|
+
*
|
|
17
|
+
* @returns {CollisionBoundaryEdges}
|
|
18
|
+
*/
|
|
19
|
+
static extractViewportCollisionBoundaryEdges(): CollisionBoundaryEdges;
|
|
20
|
+
/**
|
|
21
|
+
* Extract collision boundary edges.
|
|
22
|
+
*
|
|
23
|
+
* @param {{
|
|
24
|
+
* boundaryRect?: DOMRect
|
|
25
|
+
* }} params - Parameters.
|
|
26
|
+
* @returns {CollisionBoundaryEdges}
|
|
27
|
+
*/
|
|
28
|
+
static extractCollisionBoundaryEdges({ boundaryRect, }: {
|
|
29
|
+
boundaryRect?: DOMRect;
|
|
30
|
+
}): CollisionBoundaryEdges;
|
|
31
|
+
/**
|
|
32
|
+
* Normalize editor offset within boundary range.
|
|
33
|
+
*
|
|
34
|
+
* @param {{
|
|
35
|
+
* preferredOffset: number
|
|
36
|
+
* boundaryStart: number
|
|
37
|
+
* boundaryEnd: number
|
|
38
|
+
* editorSize: number
|
|
39
|
+
* }} params - Parameters.
|
|
40
|
+
* @returns {number}
|
|
41
|
+
*/
|
|
42
|
+
static normalizeEditorOffsetWithinBoundary({ preferredOffset, boundaryStart, boundaryEnd, editorSize, }: {
|
|
43
|
+
preferredOffset: number;
|
|
44
|
+
boundaryStart: number;
|
|
45
|
+
boundaryEnd: number;
|
|
46
|
+
editorSize: number;
|
|
47
|
+
}): number;
|
|
48
|
+
/**
|
|
49
|
+
* Constructor.
|
|
50
|
+
*
|
|
51
|
+
* @param {EditorCollisionProcessorParams} params - Parameters.
|
|
52
|
+
*/
|
|
53
|
+
constructor({ anchorRect, boundaryRect, editorWidth, editorHeight, }: EditorCollisionProcessorParams);
|
|
54
|
+
anchorRect: DOMRect;
|
|
55
|
+
boundaryRect: DOMRect;
|
|
56
|
+
editorWidth: number;
|
|
57
|
+
editorHeight: number;
|
|
58
|
+
/**
|
|
59
|
+
* Extract collision boundary edges for this processor.
|
|
60
|
+
*
|
|
61
|
+
* @returns {CollisionBoundaryEdges}
|
|
62
|
+
*/
|
|
63
|
+
extractCollisionBoundaryEdges(): CollisionBoundaryEdges;
|
|
64
|
+
/**
|
|
65
|
+
* Calculate editor left offset.
|
|
66
|
+
*
|
|
67
|
+
* @param {{
|
|
68
|
+
* leftBoundary: number
|
|
69
|
+
* rightBoundary: number
|
|
70
|
+
* }} params - Parameters.
|
|
71
|
+
* @returns {string}
|
|
72
|
+
*/
|
|
73
|
+
calculateEditorLeftOffset({ leftBoundary, rightBoundary, }: {
|
|
74
|
+
leftBoundary: number;
|
|
75
|
+
rightBoundary: number;
|
|
76
|
+
}): string;
|
|
77
|
+
/**
|
|
78
|
+
* Calculate editor top offset.
|
|
79
|
+
*
|
|
80
|
+
* @param {{
|
|
81
|
+
* topBoundary: number
|
|
82
|
+
* bottomBoundary: number
|
|
83
|
+
* }} params - Parameters.
|
|
84
|
+
* @returns {string}
|
|
85
|
+
*/
|
|
86
|
+
calculateEditorTopOffset({ topBoundary, bottomBoundary, }: {
|
|
87
|
+
topBoundary: number;
|
|
88
|
+
bottomBoundary: number;
|
|
89
|
+
}): string;
|
|
90
|
+
/**
|
|
91
|
+
* Generate editor position style.
|
|
92
|
+
*
|
|
93
|
+
* @returns {{
|
|
94
|
+
* position: 'fixed'
|
|
95
|
+
* top: string
|
|
96
|
+
* left: string
|
|
97
|
+
* width: string
|
|
98
|
+
* zIndex: string
|
|
99
|
+
* }}
|
|
100
|
+
*/
|
|
101
|
+
generateEditorPositionStyle(): {
|
|
102
|
+
position: "fixed";
|
|
103
|
+
top: string;
|
|
104
|
+
left: string;
|
|
105
|
+
width: string;
|
|
106
|
+
zIndex: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export type CollisionBoundaryEdges = {
|
|
110
|
+
leftBoundary: number;
|
|
111
|
+
rightBoundary: number;
|
|
112
|
+
topBoundary: number;
|
|
113
|
+
bottomBoundary: number;
|
|
114
|
+
};
|
|
115
|
+
export type EditorCollisionProcessorParams = {
|
|
116
|
+
anchorRect: DOMRect;
|
|
117
|
+
boundaryRect?: DOMRect;
|
|
118
|
+
editorWidth: number;
|
|
119
|
+
editorHeight: number;
|
|
120
|
+
};
|
|
121
|
+
export type EditorCollisionProcessorFactoryParams = EditorCollisionProcessorParams;
|
package/types/generated/components/molecules/FuroEditableField/processors/ObjectProcessor.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processor for comparing two values with deep equality semantics.
|
|
3
|
+
*/
|
|
4
|
+
export default class ObjectProcessor {
|
|
5
|
+
/**
|
|
6
|
+
* Factory method.
|
|
7
|
+
*
|
|
8
|
+
* @template {X extends typeof ObjectProcessor ? X : never} T, X
|
|
9
|
+
* @param {ObjectProcessorFactoryParams} params - Parameters.
|
|
10
|
+
* @returns {InstanceType<T>}
|
|
11
|
+
* @this {T}
|
|
12
|
+
*/
|
|
13
|
+
static create<T extends X extends typeof ObjectProcessor ? X : never, X>(this: T, { leftValue, rightValue, }: ObjectProcessorFactoryParams): InstanceType<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Constructor.
|
|
16
|
+
*
|
|
17
|
+
* @param {ObjectProcessorParams} params - Parameters.
|
|
18
|
+
*/
|
|
19
|
+
constructor({ leftValue, rightValue, }: ObjectProcessorParams);
|
|
20
|
+
leftValue: unknown;
|
|
21
|
+
rightValue: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* Whether left and right values are deeply equal.
|
|
24
|
+
*
|
|
25
|
+
* @returns {boolean}
|
|
26
|
+
*/
|
|
27
|
+
areDeepEqual(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether both values are non-null objects.
|
|
30
|
+
*
|
|
31
|
+
* @returns {boolean}
|
|
32
|
+
*/
|
|
33
|
+
areBothObjects(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether both objects have the same entries with deep equality.
|
|
36
|
+
*
|
|
37
|
+
* @returns {boolean}
|
|
38
|
+
*/
|
|
39
|
+
haveSameDeepObjectEntries(): boolean;
|
|
40
|
+
}
|
|
41
|
+
export type ObjectProcessorParams = {
|
|
42
|
+
leftValue: unknown;
|
|
43
|
+
rightValue: unknown;
|
|
44
|
+
};
|
|
45
|
+
export type ObjectProcessorFactoryParams = ObjectProcessorParams;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
parcel: {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
} | null;
|
|
8
|
+
}, {
|
|
9
|
+
context: FuroEmptyStateContext;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
+
parcel: {
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
} | null;
|
|
15
|
+
}> & Readonly<{}>, {
|
|
16
|
+
parcel: {
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
import FuroEmptyStateContext from './FuroEmptyStateContext.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for FuroEmptyState molecule.
|
|
3
|
+
*
|
|
4
|
+
* Presentational placeholder shown when a region has no content to display
|
|
5
|
+
* (no views, no records, nothing found). Title and description text come from
|
|
6
|
+
* the parcel so the consumer owns the wording; an icon and action controls are
|
|
7
|
+
* supplied via slots. It carries no value and emits nothing.
|
|
8
|
+
*
|
|
9
|
+
* @extends {BaseFuroContext<null, Props, null>}
|
|
10
|
+
*/
|
|
11
|
+
export default class FuroEmptyStateContext extends BaseFuroContext<null, Props, null> {
|
|
12
|
+
constructor({ props, componentContext, reactiveHash, refHash, shallowRefHash, modelRefHash, }: import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams<Props, null, {}, {}, {}, {}>);
|
|
13
|
+
/**
|
|
14
|
+
* get: heading text.
|
|
15
|
+
*
|
|
16
|
+
* @returns {string | null} Title, or null when the consumer supplies none.
|
|
17
|
+
*/
|
|
18
|
+
get title(): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* get: supporting description text.
|
|
21
|
+
*
|
|
22
|
+
* @returns {string | null} Description, or null when the consumer supplies none.
|
|
23
|
+
*/
|
|
24
|
+
get description(): string | null;
|
|
25
|
+
}
|
|
26
|
+
export type Props = {
|
|
27
|
+
parcel: {
|
|
28
|
+
title?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
} | null;
|
|
31
|
+
};
|
|
32
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|