@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,555 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Furo-only parcel keys that are not forwarded to Reka `TimeFieldRoot`.
|
|
3
|
+
* These are stripped from the Reka v-bind spread.
|
|
4
|
+
*/
|
|
5
|
+
export const FURO_TIME_FIELD_PARCEL_KEYS: Set<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Context class for managing FuroTimeField atom.
|
|
8
|
+
*
|
|
9
|
+
* @extends {BaseFuroContext<null, Props, EmitEventName>}
|
|
10
|
+
*/
|
|
11
|
+
export default class FuroTimeFieldContext extends BaseFuroContext<null, Props, "CHANGE_VALUE" | "UPDATE_VALUE" | "COMMIT_VALUE"> {
|
|
12
|
+
/**
|
|
13
|
+
* Factory method.
|
|
14
|
+
*
|
|
15
|
+
* @template {X extends typeof FuroTimeFieldContext ? X : never} T, X
|
|
16
|
+
* @override
|
|
17
|
+
* @param {FuroTimeFieldContextFactoryParams} params - Parameters of this factory method.
|
|
18
|
+
* @returns {InstanceType<T>} An instance of this class.
|
|
19
|
+
* @this {T}
|
|
20
|
+
*/
|
|
21
|
+
static override create<T extends X extends typeof FuroTimeFieldContext ? X : never, X>(this: T, { props, componentContext, refHash, }: FuroTimeFieldContextFactoryParams): InstanceType<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Build ref hash.
|
|
24
|
+
*
|
|
25
|
+
* @override
|
|
26
|
+
* @returns {FuroTimeFieldContextParams['refHash']}
|
|
27
|
+
*/
|
|
28
|
+
static override buildRefHash(): FuroTimeFieldContextParams["refHash"];
|
|
29
|
+
/**
|
|
30
|
+
* Build a zero `Time` (`00:00:00`) used as a fallback start for stepper edits.
|
|
31
|
+
*
|
|
32
|
+
* @returns {import('@internationalized/date').Time}
|
|
33
|
+
*/
|
|
34
|
+
static buildZeroTime(): import("@internationalized/date").Time;
|
|
35
|
+
/**
|
|
36
|
+
* Get emit event names.
|
|
37
|
+
*
|
|
38
|
+
* @override
|
|
39
|
+
* @returns {Readonly<{
|
|
40
|
+
* CHANGE_VALUE: 'change-value'
|
|
41
|
+
* COMMIT_VALUE: 'commit-value'
|
|
42
|
+
* UPDATE_VALUE: 'update:value'
|
|
43
|
+
* }>}
|
|
44
|
+
*/
|
|
45
|
+
static override get EMIT_EVENT_NAME(): Readonly<{
|
|
46
|
+
CHANGE_VALUE: "change-value";
|
|
47
|
+
COMMIT_VALUE: "commit-value";
|
|
48
|
+
UPDATE_VALUE: "update:value";
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Get emit event hash.
|
|
52
|
+
*
|
|
53
|
+
* @returns {{
|
|
54
|
+
* 'change-value': (payload: import('./TimeFieldEmitPayload.js').default) => void
|
|
55
|
+
* 'commit-value': (payload: import('./TimeFieldEmitPayload.js').default) => void
|
|
56
|
+
* 'update:value': (value: string | null) => void
|
|
57
|
+
* }}
|
|
58
|
+
*/
|
|
59
|
+
static get EMIT_EVENT_HASH(): {
|
|
60
|
+
"change-value": (payload: import("./TimeFieldEmitPayload.js").default) => void;
|
|
61
|
+
"commit-value": (payload: import("./TimeFieldEmitPayload.js").default) => void;
|
|
62
|
+
"update:value": (value: string | null) => void;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Get the EmitPayload constructor.
|
|
66
|
+
*
|
|
67
|
+
* @returns {typeof TimeFieldEmitPayload}
|
|
68
|
+
*/
|
|
69
|
+
static get EmitPayloadCtor(): typeof TimeFieldEmitPayload;
|
|
70
|
+
/**
|
|
71
|
+
* Map a time segment part (`hour` | `minute` | `second`) to the `Time.add` /
|
|
72
|
+
* `Time.subtract` duration unit key. Shared by focused-segment and granularity stepping.
|
|
73
|
+
*
|
|
74
|
+
* @returns {Readonly<{
|
|
75
|
+
* hour: 'hours'
|
|
76
|
+
* minute: 'minutes'
|
|
77
|
+
* second: 'seconds'
|
|
78
|
+
* }>}
|
|
79
|
+
*/
|
|
80
|
+
static get SEGMENT_UNIT_HASH(): Readonly<{
|
|
81
|
+
hour: "hours";
|
|
82
|
+
minute: "minutes";
|
|
83
|
+
second: "seconds";
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Extract hour / minute / second string parts from a `Date` object in a specific IANA
|
|
87
|
+
* timezone via `Intl.DateTimeFormat`. Each part is zero-padded to 2 digits so the
|
|
88
|
+
* assembled `HH:MM:SS` string parses cleanly (generalizes the year-pad lesson).
|
|
89
|
+
*
|
|
90
|
+
* @param {{
|
|
91
|
+
* raw: Date
|
|
92
|
+
* timezone: string
|
|
93
|
+
* }} params - Parameters of this method.
|
|
94
|
+
* @returns {{ hour: string | null, minute: string | null, second: string | null }}
|
|
95
|
+
*/
|
|
96
|
+
static extractTimePartsInTimezone({ raw, timezone, }: {
|
|
97
|
+
raw: Date;
|
|
98
|
+
timezone: string;
|
|
99
|
+
}): {
|
|
100
|
+
hour: string | null;
|
|
101
|
+
minute: string | null;
|
|
102
|
+
second: string | null;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Extract the DOM element that currently has focus, or `null` when the document is
|
|
106
|
+
* unavailable (e.g. SSR). Isolated as a static hook so tests can stub the active element.
|
|
107
|
+
*
|
|
108
|
+
* @returns {Element | null}
|
|
109
|
+
*/
|
|
110
|
+
static extractActiveElement(): Element | null;
|
|
111
|
+
/**
|
|
112
|
+
* Find a single formatted time part by type and zero-pad it to 2 digits.
|
|
113
|
+
*
|
|
114
|
+
* @param {{
|
|
115
|
+
* parts: Array<Intl.DateTimeFormatPart>
|
|
116
|
+
* type: string
|
|
117
|
+
* }} params - Parameters of this method.
|
|
118
|
+
* @returns {string | null}
|
|
119
|
+
*/
|
|
120
|
+
static extractPaddedTimePart({ parts, type, }: {
|
|
121
|
+
parts: Array<Intl.DateTimeFormatPart>;
|
|
122
|
+
type: string;
|
|
123
|
+
}): string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Constructor.
|
|
126
|
+
*
|
|
127
|
+
* @param {FuroTimeFieldContextParams} params - Parameters of this constructor.
|
|
128
|
+
*/
|
|
129
|
+
constructor({ props, componentContext, refHash, }: FuroTimeFieldContextParams);
|
|
130
|
+
refHash: {
|
|
131
|
+
rootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
132
|
+
internalValueRef: import("vue").Ref<import("@internationalized/date").Time | null>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Get the constructor of this class.
|
|
136
|
+
*
|
|
137
|
+
* @override
|
|
138
|
+
* @returns {typeof FuroTimeFieldContext}
|
|
139
|
+
*/
|
|
140
|
+
override get Ctor(): typeof FuroTimeFieldContext;
|
|
141
|
+
/**
|
|
142
|
+
* Get root element ref.
|
|
143
|
+
*
|
|
144
|
+
* @returns {import('vue').Ref<HTMLElement | null>}
|
|
145
|
+
*/
|
|
146
|
+
get rootElementRef(): import("vue").Ref<HTMLElement | null>;
|
|
147
|
+
/**
|
|
148
|
+
* Get internal Time value ref.
|
|
149
|
+
*
|
|
150
|
+
* @returns {import('vue').Ref<import('@internationalized/date').Time | null>}
|
|
151
|
+
*/
|
|
152
|
+
get internalValueRef(): import("vue").Ref<import("@internationalized/date").Time | null>;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the time field is in an externally-flagged invalid state.
|
|
155
|
+
*
|
|
156
|
+
* @returns {boolean}
|
|
157
|
+
*/
|
|
158
|
+
get isInvalid(): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the time field is disabled.
|
|
161
|
+
*
|
|
162
|
+
* @returns {boolean}
|
|
163
|
+
*/
|
|
164
|
+
isDisabled(): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the time field is read-only.
|
|
167
|
+
*
|
|
168
|
+
* @returns {boolean}
|
|
169
|
+
*/
|
|
170
|
+
isReadonly(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Placeholder text.
|
|
173
|
+
*
|
|
174
|
+
* @returns {string}
|
|
175
|
+
*/
|
|
176
|
+
get placeholder(): string;
|
|
177
|
+
/**
|
|
178
|
+
* Time format (12 or 24). `null` when unset (locale default applies).
|
|
179
|
+
*
|
|
180
|
+
* @returns {number | null}
|
|
181
|
+
*/
|
|
182
|
+
get timeFormat(): number | null;
|
|
183
|
+
/**
|
|
184
|
+
* Segment granularity (`hour` | `minute` | `second`). `null` when unset (Reka defaults to `minute`).
|
|
185
|
+
*
|
|
186
|
+
* @returns {string | null}
|
|
187
|
+
*/
|
|
188
|
+
get granularity(): string | null;
|
|
189
|
+
/**
|
|
190
|
+
* IANA timezone identifier for `Date` object normalization (e.g. `'Asia/Tokyo'`).
|
|
191
|
+
* When `null`, normalization falls back to local time parts (timezone-naive).
|
|
192
|
+
* Furo-only — never forwarded to Reka.
|
|
193
|
+
*
|
|
194
|
+
* @returns {string | null}
|
|
195
|
+
*/
|
|
196
|
+
get timezone(): string | null;
|
|
197
|
+
/**
|
|
198
|
+
* Accessible name of the decrement button.
|
|
199
|
+
*
|
|
200
|
+
* @returns {string}
|
|
201
|
+
*/
|
|
202
|
+
get decrementLabel(): string;
|
|
203
|
+
/**
|
|
204
|
+
* Accessible name of the increment button.
|
|
205
|
+
*
|
|
206
|
+
* @returns {string}
|
|
207
|
+
*/
|
|
208
|
+
get incrementLabel(): string;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the increment button can step the value up.
|
|
211
|
+
* `false` when disabled/readonly, or when the next step would exceed `maxValue`.
|
|
212
|
+
* When no value has been entered yet, returns `true` — the first press seeds a
|
|
213
|
+
* starting value (see `extractIncrementSeed()`).
|
|
214
|
+
*
|
|
215
|
+
* @returns {boolean}
|
|
216
|
+
*/
|
|
217
|
+
canIncrement(): boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the decrement button can step the value down.
|
|
220
|
+
* `false` when disabled/readonly, or when the previous step would fall below `minValue`.
|
|
221
|
+
* When no value has been entered yet, returns `true` — the first press seeds a
|
|
222
|
+
* starting value (see `extractDecrementSeed()`).
|
|
223
|
+
*
|
|
224
|
+
* @returns {boolean}
|
|
225
|
+
*/
|
|
226
|
+
canDecrement(): boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Setup component — sync external value into internal Time ref.
|
|
229
|
+
*
|
|
230
|
+
* @template {X extends FuroTimeFieldContext ? X : never} T, X
|
|
231
|
+
* @override
|
|
232
|
+
* @returns {T} - For method chaining.
|
|
233
|
+
* @this {T}
|
|
234
|
+
*/
|
|
235
|
+
override setupComponent<T extends X extends FuroTimeFieldContext ? X : never, X>(this: T): T;
|
|
236
|
+
/**
|
|
237
|
+
* Normalize an external value to `Time | null`.
|
|
238
|
+
* Accepts `HH:MM` / `HH:MM:SS` strings, `Date` objects, `Time` instances, or `null`.
|
|
239
|
+
*
|
|
240
|
+
* @param {{
|
|
241
|
+
* raw: string | Date | import('reka-ui').TimeValue | null
|
|
242
|
+
* }} params - Parameters of this method.
|
|
243
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
244
|
+
*/
|
|
245
|
+
normalizeToTime({ raw, }: {
|
|
246
|
+
raw: string | Date | import("reka-ui").TimeValue | null;
|
|
247
|
+
}): import("@internationalized/date").Time | null;
|
|
248
|
+
/**
|
|
249
|
+
* Parse an `HH:MM` or `HH:MM:SS` string into a `Time`.
|
|
250
|
+
*
|
|
251
|
+
* @param {{
|
|
252
|
+
* raw: string
|
|
253
|
+
* }} params - Parameters of this method.
|
|
254
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
255
|
+
*/
|
|
256
|
+
normalizeStringToTime({ raw, }: {
|
|
257
|
+
raw: string;
|
|
258
|
+
}): import("@internationalized/date").Time | null;
|
|
259
|
+
/**
|
|
260
|
+
* Convert a `Date` object to `Time`.
|
|
261
|
+
* When `parcel.timezone` is set, time parts are extracted in that IANA timezone.
|
|
262
|
+
* Otherwise falls back to local wall-clock parts (timezone-naive).
|
|
263
|
+
*
|
|
264
|
+
* @param {{
|
|
265
|
+
* raw: Date
|
|
266
|
+
* }} params - Parameters of this method.
|
|
267
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
268
|
+
*/
|
|
269
|
+
normalizeDateToTime({ raw, }: {
|
|
270
|
+
raw: Date;
|
|
271
|
+
}): import("@internationalized/date").Time | null;
|
|
272
|
+
/**
|
|
273
|
+
* Convert a `Date` object to `Time` using a specific IANA timezone.
|
|
274
|
+
* Returns `null` when the timezone identifier is invalid.
|
|
275
|
+
*
|
|
276
|
+
* @param {{
|
|
277
|
+
* raw: Date
|
|
278
|
+
* timezone: string
|
|
279
|
+
* }} params - Parameters of this method.
|
|
280
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
281
|
+
*/
|
|
282
|
+
normalizeDateToTimeInTimezone({ raw, timezone, }: {
|
|
283
|
+
raw: Date;
|
|
284
|
+
timezone: string;
|
|
285
|
+
}): import("@internationalized/date").Time | null;
|
|
286
|
+
/**
|
|
287
|
+
* Normalize a `Time` to an `HH:MM:SS` string or `null`.
|
|
288
|
+
* Always serializes via `time.toString()` (zero-pads), never manual segment assembly.
|
|
289
|
+
*
|
|
290
|
+
* @param {{
|
|
291
|
+
* time: import('@internationalized/date').Time | null
|
|
292
|
+
* }} params - Parameters of this method.
|
|
293
|
+
* @returns {string | null}
|
|
294
|
+
*/
|
|
295
|
+
normalizeToIsoString({ time, }: {
|
|
296
|
+
time: import("@internationalized/date").Time | null;
|
|
297
|
+
}): string | null;
|
|
298
|
+
/**
|
|
299
|
+
* Normalize the parcel `minValue` to a `Time`.
|
|
300
|
+
*
|
|
301
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
302
|
+
*/
|
|
303
|
+
normalizeMinValue(): import("@internationalized/date").Time | null;
|
|
304
|
+
/**
|
|
305
|
+
* Normalize the parcel `maxValue` to a `Time`.
|
|
306
|
+
*
|
|
307
|
+
* @returns {import('@internationalized/date').Time | null}
|
|
308
|
+
*/
|
|
309
|
+
normalizeMaxValue(): import("@internationalized/date").Time | null;
|
|
310
|
+
/**
|
|
311
|
+
* Normalize the parcel `step` amount applied to the smallest visible segment (per
|
|
312
|
+
* `granularity`) for the increment/decrement buttons. A non-positive or non-numeric
|
|
313
|
+
* step falls back to `1`.
|
|
314
|
+
*
|
|
315
|
+
* @returns {number}
|
|
316
|
+
*/
|
|
317
|
+
normalizeStep(): number;
|
|
318
|
+
/**
|
|
319
|
+
* Extract attributes for Reka `TimeFieldRoot`.
|
|
320
|
+
* Strips all Furo-only keys and re-applies normalized Reka props.
|
|
321
|
+
*
|
|
322
|
+
* @returns {Record<string, unknown>}
|
|
323
|
+
*/
|
|
324
|
+
extractRootAttributes(): Record<string, unknown>;
|
|
325
|
+
/**
|
|
326
|
+
* Build the optional Reka root attributes that are only included when present.
|
|
327
|
+
*
|
|
328
|
+
* @returns {Record<string, unknown>}
|
|
329
|
+
*/
|
|
330
|
+
buildOptionalRootAttributes(): Record<string, unknown>;
|
|
331
|
+
/**
|
|
332
|
+
* Strip Furo-only parcel keys from the parcel object.
|
|
333
|
+
*
|
|
334
|
+
* @returns {Record<string, unknown>}
|
|
335
|
+
*/
|
|
336
|
+
stripFuroParcelKeys(): Record<string, unknown>;
|
|
337
|
+
/**
|
|
338
|
+
* Build a custom event for the emit payload.
|
|
339
|
+
*
|
|
340
|
+
* @param {{
|
|
341
|
+
* name: string
|
|
342
|
+
* value: string | null
|
|
343
|
+
* }} params - Parameters of this method.
|
|
344
|
+
* @returns {CustomEvent<{
|
|
345
|
+
* target: HTMLElement | null
|
|
346
|
+
* value: string | null
|
|
347
|
+
* }>}
|
|
348
|
+
*/
|
|
349
|
+
buildCustomEvent({ name, value, }: {
|
|
350
|
+
name: string;
|
|
351
|
+
value: string | null;
|
|
352
|
+
}): CustomEvent<{
|
|
353
|
+
target: HTMLElement | null;
|
|
354
|
+
value: string | null;
|
|
355
|
+
}>;
|
|
356
|
+
/**
|
|
357
|
+
* Respond to `update:modelValue` from Reka `TimeFieldRoot`.
|
|
358
|
+
* Emits `change-value`, `update:value`, and `commit-value`.
|
|
359
|
+
*
|
|
360
|
+
* @param {{
|
|
361
|
+
* time?: import('reka-ui').TimeValue | null
|
|
362
|
+
* }} params - Parameters of this method.
|
|
363
|
+
*/
|
|
364
|
+
onChangeValue({ time, }: {
|
|
365
|
+
time?: import("reka-ui").TimeValue | null;
|
|
366
|
+
}): void;
|
|
367
|
+
/**
|
|
368
|
+
* Step the value up by `step` of the smallest visible segment, clamped to
|
|
369
|
+
* `[minValue, maxValue]`, then route through the same emit path as segment edits.
|
|
370
|
+
* When no value has been entered yet, the first press seeds the increment start
|
|
371
|
+
* value (`minValue ?? 00:00`) instead of stepping.
|
|
372
|
+
*/
|
|
373
|
+
onIncrementValue(): void;
|
|
374
|
+
/**
|
|
375
|
+
* Handle a forward step that wrapped past midnight (`23:58 + 5 → 00:03`).
|
|
376
|
+
* Pins to `maxValue` when set; otherwise loops the wrapped value around (cyclic,
|
|
377
|
+
* since the field is unbounded above).
|
|
378
|
+
*
|
|
379
|
+
* @param {{
|
|
380
|
+
* next: import('@internationalized/date').Time
|
|
381
|
+
* }} params - Parameters of this method.
|
|
382
|
+
*/
|
|
383
|
+
onIncrementWrap({ next, }: {
|
|
384
|
+
next: import("@internationalized/date").Time;
|
|
385
|
+
}): void;
|
|
386
|
+
/**
|
|
387
|
+
* Step the value down by `step` of the smallest visible segment, clamped to
|
|
388
|
+
* `[minValue, maxValue]`, then route through the same emit path as segment edits.
|
|
389
|
+
* When no value has been entered yet, the first press seeds the decrement start
|
|
390
|
+
* value (`maxValue ?? 00:00`) instead of stepping.
|
|
391
|
+
*/
|
|
392
|
+
onDecrementValue(): void;
|
|
393
|
+
/**
|
|
394
|
+
* Handle a backward step that wrapped past midnight (`00:02 - 5 → 23:57`).
|
|
395
|
+
* Pins to `minValue` when set; otherwise loops the wrapped value around (cyclic,
|
|
396
|
+
* since the field is unbounded below).
|
|
397
|
+
*
|
|
398
|
+
* @param {{
|
|
399
|
+
* next: import('@internationalized/date').Time
|
|
400
|
+
* }} params - Parameters of this method.
|
|
401
|
+
*/
|
|
402
|
+
onDecrementWrap({ next, }: {
|
|
403
|
+
next: import("@internationalized/date").Time;
|
|
404
|
+
}): void;
|
|
405
|
+
/**
|
|
406
|
+
* Build the starting value for the first increment press on an empty field.
|
|
407
|
+
* Begins at `minValue` when set, otherwise `00:00`, clamped into `[minValue, maxValue]`.
|
|
408
|
+
*
|
|
409
|
+
* @returns {import('@internationalized/date').Time}
|
|
410
|
+
*/
|
|
411
|
+
extractIncrementSeed(): import("@internationalized/date").Time;
|
|
412
|
+
/**
|
|
413
|
+
* Build the starting value for the first decrement press on an empty field.
|
|
414
|
+
* Begins at `maxValue` when set, otherwise the end of the day (per `granularity`,
|
|
415
|
+
* e.g. `23:59`) so subsequent decrements keep stepping down instead of landing on
|
|
416
|
+
* `00:00` where they cannot cross midnight. Clamped into `[minValue, maxValue]`.
|
|
417
|
+
*
|
|
418
|
+
* @returns {import('@internationalized/date').Time}
|
|
419
|
+
*/
|
|
420
|
+
extractDecrementSeed(): import("@internationalized/date").Time;
|
|
421
|
+
/**
|
|
422
|
+
* Build the end-of-day `Time` for the current `granularity`: `23:00` for hours,
|
|
423
|
+
* `23:59:59` for seconds, otherwise `23:59`. Used as the unbounded decrement seed.
|
|
424
|
+
*
|
|
425
|
+
* @returns {import('@internationalized/date').Time}
|
|
426
|
+
*/
|
|
427
|
+
buildEndOfDayTime(): import("@internationalized/date").Time;
|
|
428
|
+
/**
|
|
429
|
+
* Build the duration object passed to `Time.add` / `Time.subtract` for one stepper press.
|
|
430
|
+
* The unit prioritizes the currently focused segment (`hour` / `minute` / `second`); when no
|
|
431
|
+
* segment is focused it falls back to `granularity` (the smallest visible segment), defaulting
|
|
432
|
+
* to minutes. The amount is always `step`.
|
|
433
|
+
*
|
|
434
|
+
* @returns {{
|
|
435
|
+
* hours?: number
|
|
436
|
+
* minutes?: number
|
|
437
|
+
* seconds?: number
|
|
438
|
+
* }}
|
|
439
|
+
*/
|
|
440
|
+
extractStepDuration(): {
|
|
441
|
+
hours?: number;
|
|
442
|
+
minutes?: number;
|
|
443
|
+
seconds?: number;
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Map the currently focused time segment to a duration unit key, or `null` when no
|
|
447
|
+
* steppable segment (`hour` / `minute` / `second`) is focused.
|
|
448
|
+
*
|
|
449
|
+
* @returns {'hours' | 'minutes' | 'seconds' | null}
|
|
450
|
+
*/
|
|
451
|
+
extractFocusedSegmentUnit(): "hours" | "minutes" | "seconds" | null;
|
|
452
|
+
/**
|
|
453
|
+
* Map the `granularity` (smallest visible segment) to a duration unit key.
|
|
454
|
+
* Defaults to minutes when granularity is unset or unrecognized.
|
|
455
|
+
*
|
|
456
|
+
* @returns {'hours' | 'minutes' | 'seconds'}
|
|
457
|
+
*/
|
|
458
|
+
extractGranularityUnit(): "hours" | "minutes" | "seconds";
|
|
459
|
+
/**
|
|
460
|
+
* Extract the currently focused time segment part (`hour` | `minute` | `second` | `dayPeriod`)
|
|
461
|
+
* from the active element, or `null` when no time segment is focused. Reads the
|
|
462
|
+
* `data-reka-time-field-segment` attribute the underlying primitive stamps on each segment.
|
|
463
|
+
*
|
|
464
|
+
* @returns {string | null}
|
|
465
|
+
*/
|
|
466
|
+
extractFocusedSegmentPart(): string | null;
|
|
467
|
+
/**
|
|
468
|
+
* Clamp a `Time` into the `[minValue, maxValue]` window.
|
|
469
|
+
* Returns the bound when out of range, otherwise the original time.
|
|
470
|
+
*
|
|
471
|
+
* @param {{
|
|
472
|
+
* time: import('@internationalized/date').Time
|
|
473
|
+
* }} params - Parameters of this method.
|
|
474
|
+
* @returns {import('@internationalized/date').Time}
|
|
475
|
+
*/
|
|
476
|
+
clampTime({ time, }: {
|
|
477
|
+
time: import("@internationalized/date").Time;
|
|
478
|
+
}): import("@internationalized/date").Time;
|
|
479
|
+
/**
|
|
480
|
+
* Whether the segment part is a literal separator (e.g. `:` between segments).
|
|
481
|
+
*
|
|
482
|
+
* @param {{ part: import('reka-ui').SegmentPart }} params - Parameters of this method.
|
|
483
|
+
* @returns {boolean}
|
|
484
|
+
*/
|
|
485
|
+
isLiteralPart({ part, }: {
|
|
486
|
+
part: import("reka-ui").SegmentPart;
|
|
487
|
+
}): boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Format a time segment value for display. Hour, minute, and second segments are zero-padded
|
|
490
|
+
* to two digits (e.g. `9` → `09`) so the field width stays constant as the value changes;
|
|
491
|
+
* the day period (AM/PM) and literals pass through unchanged. The underlying primitive
|
|
492
|
+
* renders filled segments with single-digit (`numeric`) formatting, so this — together with
|
|
493
|
+
* `tabular-nums` — keeps the trigger from resizing and shifting the popover.
|
|
494
|
+
*
|
|
495
|
+
* @param {{
|
|
496
|
+
* part: import('reka-ui').SegmentPart
|
|
497
|
+
* value: string
|
|
498
|
+
* }} params - Parameters of this method.
|
|
499
|
+
* @returns {string}
|
|
500
|
+
*/
|
|
501
|
+
formatSegmentValue({ part, value, }: {
|
|
502
|
+
part: import("reka-ui").SegmentPart;
|
|
503
|
+
value: string;
|
|
504
|
+
}): string;
|
|
505
|
+
/**
|
|
506
|
+
* Whether a segment part should display zero-padded to two digits (hour, minute, second).
|
|
507
|
+
*
|
|
508
|
+
* @param {{ part: import('reka-ui').SegmentPart }} params - Parameters of this method.
|
|
509
|
+
* @returns {boolean}
|
|
510
|
+
*/
|
|
511
|
+
isTwoDigitSegmentPart({ part, }: {
|
|
512
|
+
part: import("reka-ui").SegmentPart;
|
|
513
|
+
}): boolean;
|
|
514
|
+
}
|
|
515
|
+
export type FuroTimeFieldContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
516
|
+
props: Props;
|
|
517
|
+
componentContext: ComponentContext;
|
|
518
|
+
refHash: {
|
|
519
|
+
rootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
520
|
+
internalValueRef: import("vue").Ref<import("@internationalized/date").Time | null>;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
export type FuroTimeFieldContextFactoryParams = Omit<FuroTimeFieldContextParams, "refHash"> & {
|
|
524
|
+
refHash?: {
|
|
525
|
+
rootElementRef: import("vue").Ref<HTMLElement | null>;
|
|
526
|
+
internalValueRef: import("vue").Ref<import("@internationalized/date").Time | null>;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
export type EmitEventName = keyof typeof FuroTimeFieldContext.EMIT_EVENT_NAME;
|
|
530
|
+
export type Props = import("vue").HTMLAttributes & {
|
|
531
|
+
parcel?: TimeFieldParcel | null;
|
|
532
|
+
};
|
|
533
|
+
export type TimeFieldParcel = Record<string, unknown> & {
|
|
534
|
+
value?: string | null;
|
|
535
|
+
invalid?: boolean;
|
|
536
|
+
placeholder?: string | null;
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
readonly?: boolean;
|
|
539
|
+
minValue?: string | null;
|
|
540
|
+
maxValue?: string | null;
|
|
541
|
+
timeFormat?: number | null;
|
|
542
|
+
granularity?: "hour" | "minute" | "second" | null;
|
|
543
|
+
step?: number | null;
|
|
544
|
+
stepSnapping?: boolean | null;
|
|
545
|
+
timezone?: string | null;
|
|
546
|
+
decrementLabel?: string;
|
|
547
|
+
incrementLabel?: string;
|
|
548
|
+
};
|
|
549
|
+
export type ComponentContext = import("vue").SetupContext<FuroTimeFieldEmitHash>;
|
|
550
|
+
export type FuroTimeFieldEmitHash = typeof FuroTimeFieldContext.EMIT_EVENT_HASH;
|
|
551
|
+
export type FuroTimeFieldSetup = (props: Props, componentContext: ComponentContext) => {
|
|
552
|
+
context: FuroTimeFieldContext;
|
|
553
|
+
};
|
|
554
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js';
|
|
555
|
+
import TimeFieldEmitPayload from './TimeFieldEmitPayload.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimeFieldEmitPayload.
|
|
3
|
+
*
|
|
4
|
+
* @extends {BaseEmitPayload<TimeFieldRawEvent, HTMLElement>}
|
|
5
|
+
*/
|
|
6
|
+
export default class TimeFieldEmitPayload extends BaseEmitPayload<TimeFieldRawEvent, HTMLElement> {
|
|
7
|
+
constructor({ rawEvent, }: import("../../../emit-payload/BaseEmitPayload.js").BaseEmitPayloadParams<TimeFieldRawEvent>);
|
|
8
|
+
/**
|
|
9
|
+
* Get the event detail.
|
|
10
|
+
*
|
|
11
|
+
* @returns {TimeFieldRawEvent['detail'] | null}
|
|
12
|
+
*/
|
|
13
|
+
get eventDetail(): TimeFieldRawEvent["detail"] | null;
|
|
14
|
+
/**
|
|
15
|
+
* Selected time as `HH:MM:SS` string, or `null` when cleared.
|
|
16
|
+
*
|
|
17
|
+
* @returns {string | null}
|
|
18
|
+
*/
|
|
19
|
+
get value(): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the payload carries an empty (null) value.
|
|
22
|
+
*
|
|
23
|
+
* @returns {boolean}
|
|
24
|
+
*/
|
|
25
|
+
hasEmptyValue(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the payload carries a non-null time value.
|
|
28
|
+
*
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
hasValue(): boolean;
|
|
32
|
+
}
|
|
33
|
+
export type TimeFieldRawEvent = CustomEvent<{
|
|
34
|
+
target: HTMLElement | null;
|
|
35
|
+
value: string | null;
|
|
36
|
+
}>;
|
|
37
|
+
export type TimeFieldEmitPayloadParams = {
|
|
38
|
+
rawEvent: TimeFieldRawEvent;
|
|
39
|
+
};
|
|
40
|
+
export type TimeFieldEmitPayloadFactoryParams = TimeFieldEmitPayloadParams;
|
|
41
|
+
import BaseEmitPayload from '../../../emit-payload/BaseEmitPayload.js';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
parcel?: import("./FuroToggleGroupContext.js").FuroToggleGroupParcel | null;
|
|
5
|
+
}, {
|
|
6
|
+
context: FuroToggleGroupContext;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
'change-value': (payload: import("./ToggleGroupEmitPayload.js").default) => void;
|
|
9
|
+
'update:value': (value: FuroToggleGroupValue) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
+
parcel?: import("./FuroToggleGroupContext.js").FuroToggleGroupParcel | null;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
"onChange-value"?: (payload: import("./ToggleGroupEmitPayload.js").default) => any;
|
|
14
|
+
"onUpdate:value"?: (value: import("./FuroToggleGroupContext.js").FuroToggleGroupValue) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
parcel: import("./FuroToggleGroupContext.js").FuroToggleGroupParcel;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ToggleGroupRoot: {
|
|
19
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("reka-ui").ToggleGroupRootProps<import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]>> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any;
|
|
23
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
24
|
+
P: {};
|
|
25
|
+
B: {};
|
|
26
|
+
D: {};
|
|
27
|
+
C: {};
|
|
28
|
+
M: {};
|
|
29
|
+
Defaults: {};
|
|
30
|
+
}, Readonly<import("reka-ui").ToggleGroupRootProps<import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]>> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, {}>;
|
|
33
|
+
__isFragment?: never;
|
|
34
|
+
__isTeleport?: never;
|
|
35
|
+
__isSuspense?: never;
|
|
36
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ToggleGroupRootProps<import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]>> & Readonly<{
|
|
37
|
+
"onUpdate:modelValue"?: ((payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
"update:modelValue": (payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any;
|
|
40
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
41
|
+
$slots: {
|
|
42
|
+
default?: (props: {
|
|
43
|
+
modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[] | undefined;
|
|
44
|
+
}) => any;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
ToggleGroupOption: {
|
|
48
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("reka-ui").ToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<import("reka-ui").ToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
56
|
+
__isFragment?: never;
|
|
57
|
+
__isTeleport?: never;
|
|
58
|
+
__isSuspense?: never;
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ToggleGroupItemProps> & 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 () => {
|
|
60
|
+
$slots: {
|
|
61
|
+
default?: (props: {
|
|
62
|
+
modelValue: boolean;
|
|
63
|
+
state: "off" | "on";
|
|
64
|
+
pressed: boolean;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
}) => any;
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
import FuroToggleGroupContext from './FuroToggleGroupContext.js';
|