@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,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for managing FuroButton component.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseFuroContext<null, Props, EmitEventName>}
|
|
5
|
+
*/
|
|
6
|
+
export default class FuroButtonContext extends BaseFuroContext<null, Props, "CLICK"> {
|
|
7
|
+
/**
|
|
8
|
+
* Factory method.
|
|
9
|
+
*
|
|
10
|
+
* @template {X extends typeof FuroButtonContext ? X : never} T, X
|
|
11
|
+
* @override
|
|
12
|
+
* @param {FuroButtonContextFactoryParams} 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 FuroButtonContext ? X : never, X>(this: T, { props, componentContext, }: FuroButtonContextFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Get emit event name.
|
|
19
|
+
*
|
|
20
|
+
* @override
|
|
21
|
+
* @returns {Readonly<{
|
|
22
|
+
* CLICK: 'click'
|
|
23
|
+
* }>}
|
|
24
|
+
*/
|
|
25
|
+
static override get EMIT_EVENT_NAME(): Readonly<{
|
|
26
|
+
CLICK: "click";
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Get emit options.
|
|
30
|
+
*
|
|
31
|
+
* @returns {{
|
|
32
|
+
* click: (payload: import('./ButtonEmitPayload.js').default) => void
|
|
33
|
+
* }}
|
|
34
|
+
*/
|
|
35
|
+
static get EMIT_EVENT_HASH(): {
|
|
36
|
+
click: (payload: import("./ButtonEmitPayload.js").default) => void;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* get: Constructor of `EmitPayload`.
|
|
40
|
+
*
|
|
41
|
+
* @returns {typeof ButtonEmitPayload}
|
|
42
|
+
*/
|
|
43
|
+
static get EmitPayloadCtor(): typeof ButtonEmitPayload;
|
|
44
|
+
/**
|
|
45
|
+
* Constructor.
|
|
46
|
+
*
|
|
47
|
+
* @param {FuroButtonContextParams} params
|
|
48
|
+
*/
|
|
49
|
+
constructor({ props, componentContext, }: FuroButtonContextParams);
|
|
50
|
+
/**
|
|
51
|
+
* get: Constructor of this class.
|
|
52
|
+
*
|
|
53
|
+
* @override
|
|
54
|
+
* @returns {typeof FuroButtonContext}
|
|
55
|
+
*/
|
|
56
|
+
override get Ctor(): typeof FuroButtonContext;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the button is disabled.
|
|
59
|
+
*
|
|
60
|
+
* @returns {boolean}
|
|
61
|
+
*/
|
|
62
|
+
isDisabled(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the button is in a loading state.
|
|
65
|
+
*
|
|
66
|
+
* @returns {boolean}
|
|
67
|
+
*/
|
|
68
|
+
isLoading(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether interaction should be blocked.
|
|
71
|
+
*
|
|
72
|
+
* @returns {boolean}
|
|
73
|
+
*/
|
|
74
|
+
isInteractionBlocked(): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Extract CSS class map for the button root.
|
|
77
|
+
*
|
|
78
|
+
* @returns {Record<string, boolean>}
|
|
79
|
+
*/
|
|
80
|
+
extractRootClassNames(): Record<string, boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Extract root attributes forwarded to Reka Primitive.
|
|
83
|
+
*
|
|
84
|
+
* @returns {Record<string, unknown>}
|
|
85
|
+
*/
|
|
86
|
+
extractRootAttributes(): Record<string, unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* Extract Reka Primitive props from parcel.
|
|
89
|
+
*
|
|
90
|
+
* @returns {{
|
|
91
|
+
* as: 'button'
|
|
92
|
+
* asChild: boolean
|
|
93
|
+
* disabled: boolean
|
|
94
|
+
* type: FuroButtonType
|
|
95
|
+
* }}
|
|
96
|
+
*/
|
|
97
|
+
extractPrimitiveParcel(): {
|
|
98
|
+
as: "button";
|
|
99
|
+
asChild: boolean;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
type: FuroButtonType;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Extract ARIA attributes for the button root.
|
|
105
|
+
*
|
|
106
|
+
* @returns {{
|
|
107
|
+
* 'aria-disabled': 'true' | undefined
|
|
108
|
+
* 'aria-busy': 'true' | undefined
|
|
109
|
+
* }}
|
|
110
|
+
*/
|
|
111
|
+
extractAriaAttributes(): {
|
|
112
|
+
"aria-disabled": "true" | undefined;
|
|
113
|
+
"aria-busy": "true" | undefined;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Handle native click on the button root.
|
|
117
|
+
*
|
|
118
|
+
* @param {{
|
|
119
|
+
* rawEvent: MouseEvent | PointerEvent
|
|
120
|
+
* }} params - Parameters.
|
|
121
|
+
*/
|
|
122
|
+
onClick({ rawEvent, }: {
|
|
123
|
+
rawEvent: MouseEvent | PointerEvent;
|
|
124
|
+
}): void;
|
|
125
|
+
}
|
|
126
|
+
export type FuroButtonContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
127
|
+
props: Props;
|
|
128
|
+
componentContext: ComponentContext;
|
|
129
|
+
};
|
|
130
|
+
export type FuroButtonContextFactoryParams = FuroButtonContextParams;
|
|
131
|
+
export type EmitEventName = keyof typeof FuroButtonContext.EMIT_EVENT_NAME;
|
|
132
|
+
export type FuroButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
133
|
+
export type FuroButtonSize = "default" | "sm" | "lg" | "icon";
|
|
134
|
+
export type FuroButtonType = "button" | "submit" | "reset";
|
|
135
|
+
export type Props = {
|
|
136
|
+
parcel?: FuroButtonParcel | null;
|
|
137
|
+
};
|
|
138
|
+
export type FuroButtonParcel = {
|
|
139
|
+
variant?: FuroButtonVariant;
|
|
140
|
+
size?: FuroButtonSize;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
loading?: boolean;
|
|
143
|
+
asChild?: boolean;
|
|
144
|
+
type?: FuroButtonType;
|
|
145
|
+
};
|
|
146
|
+
export type FuroButtonSetup = (props: Props, componentContext: ComponentContext) => {
|
|
147
|
+
context: FuroButtonContext;
|
|
148
|
+
};
|
|
149
|
+
export type FuroButtonEmitHash = typeof FuroButtonContext.EMIT_EVENT_HASH;
|
|
150
|
+
export type FuroButtonSlots = import("vue").SlotsType<{
|
|
151
|
+
default: {};
|
|
152
|
+
loading: {};
|
|
153
|
+
}>;
|
|
154
|
+
export type ComponentContext = import("vue").SetupContext<FuroButtonEmitHash, FuroButtonSlots>;
|
|
155
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
156
|
+
import ButtonEmitPayload from './ButtonEmitPayload.js';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CheckboxEmitPayload.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseEmitPayload<CheckboxRawEvent, HTMLElement>}
|
|
5
|
+
*/
|
|
6
|
+
export default class CheckboxEmitPayload extends BaseEmitPayload<CheckboxRawEvent, HTMLElement> {
|
|
7
|
+
constructor({ rawEvent, }: import("../../../emit-payload/BaseEmitPayload.js").BaseEmitPayloadParams<CheckboxRawEvent>);
|
|
8
|
+
/**
|
|
9
|
+
* Get the event detail.
|
|
10
|
+
*
|
|
11
|
+
* @returns {CheckboxRawEvent['detail'] | null}
|
|
12
|
+
*/
|
|
13
|
+
get eventDetail(): CheckboxRawEvent["detail"] | null;
|
|
14
|
+
/**
|
|
15
|
+
* Current checked state after the change.
|
|
16
|
+
*
|
|
17
|
+
* @returns {FuroCheckboxValue | null}
|
|
18
|
+
*/
|
|
19
|
+
get value(): FuroCheckboxValue | null;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the checkbox is indeterminate after the change.
|
|
22
|
+
*
|
|
23
|
+
* @returns {boolean}
|
|
24
|
+
*/
|
|
25
|
+
get indeterminate(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the checkbox is in the indeterminate state.
|
|
28
|
+
*
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
isIndeterminate(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the checkbox is checked.
|
|
34
|
+
*
|
|
35
|
+
* @returns {boolean | null}
|
|
36
|
+
*/
|
|
37
|
+
isChecked(): boolean | null;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the checkbox is unchecked.
|
|
40
|
+
*
|
|
41
|
+
* @returns {boolean | null}
|
|
42
|
+
*/
|
|
43
|
+
isUnchecked(): boolean | null;
|
|
44
|
+
}
|
|
45
|
+
export type FuroCheckboxValue = import("./FuroCheckboxContext.js").FuroCheckboxValue;
|
|
46
|
+
export type CheckboxEmitPayloadParams = {
|
|
47
|
+
rawEvent: CheckboxRawEvent;
|
|
48
|
+
};
|
|
49
|
+
export type CheckboxRawEvent = CustomEvent<{
|
|
50
|
+
target: HTMLElement | null;
|
|
51
|
+
value: FuroCheckboxValue | null;
|
|
52
|
+
indeterminate: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
export type CheckboxEmitPayloadFactoryParams = CheckboxEmitPayloadParams;
|
|
55
|
+
import BaseEmitPayload from '../../../emit-payload/BaseEmitPayload.js';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
parcel?: import("./FuroCheckboxContext.js").FuroCheckboxParcel | null;
|
|
5
|
+
}, {
|
|
6
|
+
context: FuroCheckboxContext;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
'change-value': (payload: import("./CheckboxEmitPayload.js").default) => void;
|
|
9
|
+
'update:value': (value: FuroCheckboxValue) => void;
|
|
10
|
+
'update:indeterminate': (indeterminate: boolean) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
12
|
+
parcel?: import("./FuroCheckboxContext.js").FuroCheckboxParcel | null;
|
|
13
|
+
}> & Readonly<{
|
|
14
|
+
"onChange-value"?: (payload: import("./CheckboxEmitPayload.js").default) => any;
|
|
15
|
+
"onUpdate:value"?: (value: boolean) => any;
|
|
16
|
+
"onUpdate:indeterminate"?: (indeterminate: boolean) => any;
|
|
17
|
+
}>, {
|
|
18
|
+
parcel: import("./FuroCheckboxContext.js").FuroCheckboxParcel;
|
|
19
|
+
}, {}, {
|
|
20
|
+
FuroIcon: import("vue").DefineComponent<{
|
|
21
|
+
name: string;
|
|
22
|
+
size?: string | number | null;
|
|
23
|
+
}, {
|
|
24
|
+
context: import("../FuroIcon/FuroIconContext.js").default;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
26
|
+
name: string;
|
|
27
|
+
size?: string | number | null;
|
|
28
|
+
}> & Readonly<{}>, {
|
|
29
|
+
size: string | number;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
CheckboxRoot: <T = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
32
|
+
attrs: any;
|
|
33
|
+
slots: {
|
|
34
|
+
default?: (props: {
|
|
35
|
+
modelValue: "indeterminate" | T;
|
|
36
|
+
state: import("reka-ui").CheckboxCheckedState;
|
|
37
|
+
}) => any;
|
|
38
|
+
};
|
|
39
|
+
emit: (evt: "update:modelValue", value: "indeterminate" | T) => void;
|
|
40
|
+
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
41
|
+
props: import("vue").PublicProps & {
|
|
42
|
+
defaultValue?: "indeterminate" | T;
|
|
43
|
+
modelValue?: "indeterminate" | T;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
value?: import("reka-ui").AcceptableValue;
|
|
46
|
+
id?: string;
|
|
47
|
+
trueValue?: T;
|
|
48
|
+
falseValue?: T;
|
|
49
|
+
asChild?: boolean;
|
|
50
|
+
as?: import("reka-ui").AsTag | import("vue").Component;
|
|
51
|
+
name?: string;
|
|
52
|
+
required?: boolean;
|
|
53
|
+
"onUpdate:modelValue"?: ((value: "indeterminate" | T) => any) | undefined;
|
|
54
|
+
} & (typeof globalThis extends {
|
|
55
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
56
|
+
} ? P : {});
|
|
57
|
+
expose: (exposed: {}) => void;
|
|
58
|
+
attrs: any;
|
|
59
|
+
slots: {
|
|
60
|
+
default?: (props: {
|
|
61
|
+
modelValue: "indeterminate" | T;
|
|
62
|
+
state: import("reka-ui").CheckboxCheckedState;
|
|
63
|
+
}) => any;
|
|
64
|
+
};
|
|
65
|
+
emit: (evt: "update:modelValue", value: "indeterminate" | T) => void;
|
|
66
|
+
}>) => import("vue").VNode & {
|
|
67
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
68
|
+
};
|
|
69
|
+
CheckboxIndicator: {
|
|
70
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("reka-ui").CheckboxIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
71
|
+
P: {};
|
|
72
|
+
B: {};
|
|
73
|
+
D: {};
|
|
74
|
+
C: {};
|
|
75
|
+
M: {};
|
|
76
|
+
Defaults: {};
|
|
77
|
+
}, Readonly<import("reka-ui").CheckboxIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
78
|
+
__isFragment?: never;
|
|
79
|
+
__isTeleport?: never;
|
|
80
|
+
__isSuspense?: never;
|
|
81
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("reka-ui").CheckboxIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
82
|
+
$slots: {
|
|
83
|
+
default?: (props: {}) => any;
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
import FuroCheckboxContext from './FuroCheckboxContext.js';
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class for managing FuroCheckbox component.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseFuroContext<null, Props, EmitEventName>}
|
|
5
|
+
*/
|
|
6
|
+
export default class FuroCheckboxContext extends BaseFuroContext<null, Props, "CHANGE_VALUE" | "UPDATE_VALUE" | "UPDATE_INDETERMINATE"> {
|
|
7
|
+
/**
|
|
8
|
+
* Factory method.
|
|
9
|
+
*
|
|
10
|
+
* @template {X extends typeof FuroCheckboxContext ? X : never} T, X
|
|
11
|
+
* @override
|
|
12
|
+
* @param {FuroCheckboxContextFactoryParams} 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 FuroCheckboxContext ? X : never, X>(this: T, { props, componentContext, refHash, }: FuroCheckboxContextFactoryParams): InstanceType<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Build ref hash.
|
|
19
|
+
*
|
|
20
|
+
* @override
|
|
21
|
+
*/
|
|
22
|
+
static override buildRefHash(): {
|
|
23
|
+
internalValueRef: import("vue").Ref<boolean, boolean>;
|
|
24
|
+
checkboxRootElementRef: import("vue").Ref<any, any>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Get emit event name.
|
|
28
|
+
*
|
|
29
|
+
* @override
|
|
30
|
+
* @returns {Readonly<{
|
|
31
|
+
* CHANGE_VALUE: 'change-value'
|
|
32
|
+
* UPDATE_VALUE: 'update:value'
|
|
33
|
+
* UPDATE_INDETERMINATE: 'update:indeterminate'
|
|
34
|
+
* }>}
|
|
35
|
+
*/
|
|
36
|
+
static override get EMIT_EVENT_NAME(): Readonly<{
|
|
37
|
+
CHANGE_VALUE: "change-value";
|
|
38
|
+
UPDATE_VALUE: "update:value";
|
|
39
|
+
UPDATE_INDETERMINATE: "update:indeterminate";
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Get emit options.
|
|
43
|
+
*
|
|
44
|
+
* @returns {{
|
|
45
|
+
* 'change-value': (payload: import('./CheckboxEmitPayload.js').default) => void
|
|
46
|
+
* 'update:value': (value: FuroCheckboxValue) => void
|
|
47
|
+
* 'update:indeterminate': (indeterminate: boolean) => void
|
|
48
|
+
* }}
|
|
49
|
+
*/
|
|
50
|
+
static get EMIT_EVENT_HASH(): {
|
|
51
|
+
"change-value": (payload: import("./CheckboxEmitPayload.js").default) => void;
|
|
52
|
+
"update:value": (value: FuroCheckboxValue) => void;
|
|
53
|
+
"update:indeterminate": (indeterminate: boolean) => void;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Get indeterminate value.
|
|
57
|
+
*
|
|
58
|
+
* @returns {'indeterminate'}
|
|
59
|
+
*/
|
|
60
|
+
static get INDETERMINATE_VALUE(): "indeterminate";
|
|
61
|
+
/**
|
|
62
|
+
* Default checkbox box size (width and height).
|
|
63
|
+
*
|
|
64
|
+
* @returns {string}
|
|
65
|
+
*/
|
|
66
|
+
static get DEFAULT_CHECKBOX_SIZE(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Default indicator icon size (proportional to {@link DEFAULT_CHECKBOX_SIZE}).
|
|
69
|
+
*
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
static get DEFAULT_CHECKBOX_ICON_SIZE(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Icon size as a fraction of box size (1rem / 1.125rem).
|
|
75
|
+
*
|
|
76
|
+
* @returns {number}
|
|
77
|
+
*/
|
|
78
|
+
static get CHECKBOX_ICON_SIZE_RATIO(): number;
|
|
79
|
+
/**
|
|
80
|
+
* get: Constructor of `EmitPayload`.
|
|
81
|
+
*
|
|
82
|
+
* @returns {typeof CheckboxEmitPayload}
|
|
83
|
+
*/
|
|
84
|
+
static get EmitPayloadCtor(): typeof CheckboxEmitPayload;
|
|
85
|
+
/**
|
|
86
|
+
* Constructor.
|
|
87
|
+
*
|
|
88
|
+
* @param {FuroCheckboxContextParams} params
|
|
89
|
+
*/
|
|
90
|
+
constructor({ props, componentContext, refHash, }: FuroCheckboxContextParams);
|
|
91
|
+
refHash: {
|
|
92
|
+
internalValueRef: import("vue").Ref<FuroCheckboxState>;
|
|
93
|
+
checkboxRootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* get: Constructor of this class.
|
|
97
|
+
*
|
|
98
|
+
* @override
|
|
99
|
+
* @returns {typeof FuroCheckboxContext}
|
|
100
|
+
*/
|
|
101
|
+
override get Ctor(): typeof FuroCheckboxContext;
|
|
102
|
+
/**
|
|
103
|
+
* Get the internal tri-state check state ref.
|
|
104
|
+
*
|
|
105
|
+
* @returns {import('vue').Ref<FuroCheckboxState>}
|
|
106
|
+
*/
|
|
107
|
+
get internalValueRef(): import("vue").Ref<FuroCheckboxState>;
|
|
108
|
+
/**
|
|
109
|
+
* Get checkbox root element ref.
|
|
110
|
+
*
|
|
111
|
+
* @returns {import('vue').Ref<HTMLElement | null>}
|
|
112
|
+
*/
|
|
113
|
+
get checkboxRootElementRef(): import("vue").Ref<HTMLElement | null>;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the parent controls `parcel.value`.
|
|
116
|
+
*
|
|
117
|
+
* @returns {boolean}
|
|
118
|
+
*/
|
|
119
|
+
isControlled(): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Resolve the check state from parcel, attrs, and indeterminate flag.
|
|
122
|
+
*
|
|
123
|
+
* @returns {FuroCheckboxState}
|
|
124
|
+
*/
|
|
125
|
+
resolveSyncedValue(): FuroCheckboxState;
|
|
126
|
+
/**
|
|
127
|
+
* Resolve controlled checked boolean from parcel or fallthrough attrs.
|
|
128
|
+
*
|
|
129
|
+
* @returns {FuroCheckboxValue}
|
|
130
|
+
*/
|
|
131
|
+
resolveControlledSyncedValue(): FuroCheckboxValue;
|
|
132
|
+
/**
|
|
133
|
+
* Resolve uncontrolled checkbox value (unchecked).
|
|
134
|
+
*
|
|
135
|
+
* @returns {FuroCheckboxValue}
|
|
136
|
+
*/
|
|
137
|
+
resolveUncontrolledSyncedValue(): FuroCheckboxValue;
|
|
138
|
+
/**
|
|
139
|
+
* Extract checked boolean while internal model is indeterminate.
|
|
140
|
+
*
|
|
141
|
+
* @returns {FuroCheckboxValue}
|
|
142
|
+
*/
|
|
143
|
+
extractCheckedWhileIndeterminate(): FuroCheckboxValue;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the given check state is indeterminate.
|
|
146
|
+
*
|
|
147
|
+
* @param {{
|
|
148
|
+
* checkState: FuroCheckboxState
|
|
149
|
+
* }} params - Parameters.
|
|
150
|
+
* @returns {boolean}
|
|
151
|
+
*/
|
|
152
|
+
isIndeterminateState({ checkState, }: {
|
|
153
|
+
checkState: FuroCheckboxState;
|
|
154
|
+
}): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Extract the checked boolean from a check state.
|
|
157
|
+
*
|
|
158
|
+
* @param {{
|
|
159
|
+
* checkState: FuroCheckboxState
|
|
160
|
+
* }} params - Parameters.
|
|
161
|
+
* @returns {FuroCheckboxValue}
|
|
162
|
+
*/
|
|
163
|
+
extractCheckedFromState({ checkState, }: {
|
|
164
|
+
checkState: FuroCheckboxState;
|
|
165
|
+
}): FuroCheckboxValue;
|
|
166
|
+
/**
|
|
167
|
+
* Normalize a check-state change into public boolean channels.
|
|
168
|
+
*
|
|
169
|
+
* @param {{
|
|
170
|
+
* rawValue: FuroCheckboxState
|
|
171
|
+
* previousCheckState: FuroCheckboxState
|
|
172
|
+
* }} params - Parameters.
|
|
173
|
+
* @returns {{
|
|
174
|
+
* checkState: FuroCheckboxState
|
|
175
|
+
* value: FuroCheckboxValue
|
|
176
|
+
* indeterminate: boolean
|
|
177
|
+
* }}
|
|
178
|
+
*/
|
|
179
|
+
normalizeStateChange({ rawValue, previousCheckState, }: {
|
|
180
|
+
rawValue: FuroCheckboxState;
|
|
181
|
+
previousCheckState: FuroCheckboxState;
|
|
182
|
+
}): {
|
|
183
|
+
checkState: FuroCheckboxState;
|
|
184
|
+
value: FuroCheckboxValue;
|
|
185
|
+
indeterminate: boolean;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Whether the checkbox is invalid.
|
|
189
|
+
*
|
|
190
|
+
* @returns {boolean}
|
|
191
|
+
*/
|
|
192
|
+
isInvalid(): boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the checkbox is disabled.
|
|
195
|
+
*
|
|
196
|
+
* @returns {boolean}
|
|
197
|
+
*/
|
|
198
|
+
isDisabled(): boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Whether the checkbox is required.
|
|
201
|
+
*
|
|
202
|
+
* @returns {boolean}
|
|
203
|
+
*/
|
|
204
|
+
isRequired(): boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Parse a simple CSS length (`rem`, `px`, `em`).
|
|
207
|
+
*
|
|
208
|
+
* @param {{
|
|
209
|
+
* length: string
|
|
210
|
+
* }} params - Parameters.
|
|
211
|
+
* @returns {{ amount: number, unit: string } | null}
|
|
212
|
+
*/
|
|
213
|
+
parseCssLength({ length, }: {
|
|
214
|
+
length: string;
|
|
215
|
+
}): {
|
|
216
|
+
amount: number;
|
|
217
|
+
unit: string;
|
|
218
|
+
} | null;
|
|
219
|
+
/**
|
|
220
|
+
* Extract indicator icon size proportional to checkbox box size.
|
|
221
|
+
*
|
|
222
|
+
* @returns {string}
|
|
223
|
+
*/
|
|
224
|
+
extractCheckboxIconSize(): string;
|
|
225
|
+
/**
|
|
226
|
+
* Extract inline style for checkbox dimensions (CSS custom properties).
|
|
227
|
+
*
|
|
228
|
+
* @returns {{
|
|
229
|
+
* '--furo-checkbox-size': string
|
|
230
|
+
* '--furo-checkbox-icon-size': string
|
|
231
|
+
* }}
|
|
232
|
+
*/
|
|
233
|
+
extractCheckboxRootStyle(): {
|
|
234
|
+
"--furo-checkbox-size": string;
|
|
235
|
+
"--furo-checkbox-icon-size": string;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Extract root attributes forwarded to Reka CheckboxRoot.
|
|
239
|
+
*
|
|
240
|
+
* @returns {Record<string, unknown>}
|
|
241
|
+
*/
|
|
242
|
+
extractRootAttributes(): Record<string, unknown>;
|
|
243
|
+
/**
|
|
244
|
+
* Build a custom event for checkbox value changes.
|
|
245
|
+
*
|
|
246
|
+
* @param {{
|
|
247
|
+
* name: string
|
|
248
|
+
* value: FuroCheckboxValue
|
|
249
|
+
* indeterminate: boolean
|
|
250
|
+
* }} params - Parameters.
|
|
251
|
+
* @returns {import('./CheckboxEmitPayload.js').CheckboxRawEvent}
|
|
252
|
+
*/
|
|
253
|
+
buildCustomEvent({ name, value, indeterminate, }: {
|
|
254
|
+
name: string;
|
|
255
|
+
value: FuroCheckboxValue;
|
|
256
|
+
indeterminate: boolean;
|
|
257
|
+
}): import("./CheckboxEmitPayload.js").CheckboxRawEvent;
|
|
258
|
+
/**
|
|
259
|
+
* Setup component context.
|
|
260
|
+
*
|
|
261
|
+
* @template {X extends FuroCheckboxContext ? X : never} T, X
|
|
262
|
+
* @override
|
|
263
|
+
* @returns {T} - For method chaining.
|
|
264
|
+
* @this {T}
|
|
265
|
+
*/
|
|
266
|
+
override setupComponent<T extends X extends FuroCheckboxContext ? X : never, X>(this: T): T;
|
|
267
|
+
/**
|
|
268
|
+
* Handle a value update emitted by Reka CheckboxRoot.
|
|
269
|
+
*
|
|
270
|
+
* @param {{
|
|
271
|
+
* rawValue: FuroCheckboxState
|
|
272
|
+
* }} params - Parameters.
|
|
273
|
+
*/
|
|
274
|
+
onChangeValue({ rawValue, }: {
|
|
275
|
+
rawValue: FuroCheckboxState;
|
|
276
|
+
}): void;
|
|
277
|
+
/**
|
|
278
|
+
* Apply an interaction result to the internal check state.
|
|
279
|
+
*
|
|
280
|
+
* A controlled checkbox only follows its parent, never its own interaction.
|
|
281
|
+
*
|
|
282
|
+
* @param {{
|
|
283
|
+
* checkState: FuroCheckboxState
|
|
284
|
+
* }} params - Parameters.
|
|
285
|
+
*/
|
|
286
|
+
applyInternalValue({ checkState, }: {
|
|
287
|
+
checkState: FuroCheckboxState;
|
|
288
|
+
}): void;
|
|
289
|
+
/**
|
|
290
|
+
* Whether the checkbox is in the indeterminate state.
|
|
291
|
+
*
|
|
292
|
+
* @returns {boolean}
|
|
293
|
+
*/
|
|
294
|
+
isIndeterminate(): boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Whether the checkbox is checked.
|
|
297
|
+
*
|
|
298
|
+
* @returns {boolean}
|
|
299
|
+
*/
|
|
300
|
+
isChecked(): boolean;
|
|
301
|
+
}
|
|
302
|
+
export type FuroCheckboxContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
303
|
+
props: Props;
|
|
304
|
+
componentContext: ComponentContext;
|
|
305
|
+
refHash: {
|
|
306
|
+
internalValueRef: import("vue").Ref<FuroCheckboxState>;
|
|
307
|
+
checkboxRootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
export type FuroCheckboxContextFactoryParams = Omit<FuroCheckboxContextParams, "refHash"> & {
|
|
311
|
+
refHash?: {
|
|
312
|
+
internalValueRef: import("vue").Ref<FuroCheckboxState>;
|
|
313
|
+
checkboxRootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
export type EmitEventName = keyof typeof FuroCheckboxContext.EMIT_EVENT_NAME;
|
|
317
|
+
/**
|
|
318
|
+
* Public checked model (`v-model:value`, `parcel.value`).
|
|
319
|
+
*/
|
|
320
|
+
export type FuroCheckboxValue = boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Internal tri-state check state (includes the indeterminate sentinel).
|
|
323
|
+
*/
|
|
324
|
+
export type FuroCheckboxState = FuroCheckboxValue | typeof FuroCheckboxContext.INDETERMINATE_VALUE;
|
|
325
|
+
export type Props = {
|
|
326
|
+
parcel?: FuroCheckboxParcel | null;
|
|
327
|
+
};
|
|
328
|
+
export type FuroCheckboxParcel = {
|
|
329
|
+
value?: FuroCheckboxValue;
|
|
330
|
+
indeterminate?: boolean;
|
|
331
|
+
invalid?: boolean;
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
required?: boolean;
|
|
334
|
+
size?: string;
|
|
335
|
+
};
|
|
336
|
+
export type ComponentContext = import("vue").SetupContext<typeof FuroCheckboxContext.EMIT_EVENT_HASH>;
|
|
337
|
+
export type FuroCheckboxEmitHash = typeof FuroCheckboxContext.EMIT_EVENT_HASH;
|
|
338
|
+
export type FuroCheckboxSetup = (props: Props, componentContext: ComponentContext) => {
|
|
339
|
+
context: FuroCheckboxContext;
|
|
340
|
+
};
|
|
341
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
342
|
+
import CheckboxEmitPayload from './CheckboxEmitPayload.js';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmailFieldEmitPayload.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseEmitPayload<EmailFieldRawEvent, HTMLInputElement>}
|
|
5
|
+
*/
|
|
6
|
+
export default class EmailFieldEmitPayload extends BaseEmitPayload<EmailFieldRawEvent, HTMLInputElement> {
|
|
7
|
+
constructor({ rawEvent, }: import("../../../emit-payload/BaseEmitPayload.js").BaseEmitPayloadParams<EmailFieldRawEvent>);
|
|
8
|
+
/**
|
|
9
|
+
* Current string value of the email field.
|
|
10
|
+
*
|
|
11
|
+
* @returns {string | null}
|
|
12
|
+
*/
|
|
13
|
+
get value(): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Extract trimmed string value from the email field.
|
|
16
|
+
*
|
|
17
|
+
* @returns {string | null}
|
|
18
|
+
*/
|
|
19
|
+
extractTrimmedValue(): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the raw field value is empty (missing control is treated as empty).
|
|
22
|
+
*
|
|
23
|
+
* @returns {boolean}
|
|
24
|
+
*/
|
|
25
|
+
hasEmptyText(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the trimmed field value is empty (missing control is treated as empty).
|
|
28
|
+
*
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
hasEmptyTrimmedText(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the raw field value has at least one character (whitespace counts).
|
|
34
|
+
*
|
|
35
|
+
* @returns {boolean}
|
|
36
|
+
*/
|
|
37
|
+
hasEnteredText(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the trimmed field value has at least one non-whitespace character.
|
|
40
|
+
*
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
*/
|
|
43
|
+
hasEnteredTrimmedText(): boolean;
|
|
44
|
+
}
|
|
45
|
+
export type EmailFieldRawEvent = InputEvent | FocusEvent | KeyboardEvent;
|
|
46
|
+
import BaseEmitPayload from '../../../emit-payload/BaseEmitPayload.js';
|