@case-framework/survey-ui 0.3.0 → 0.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/dist/src/components/c-ui/alert-provider.d.ts +18 -0
- package/dist/src/components/c-ui/confirm-dialog.d.ts +19 -0
- package/dist/src/components/c-ui/confirm-provider.d.ts +15 -0
- package/dist/src/components/c-ui/dot-background.d.ts +72 -0
- package/dist/src/components/c-ui/filepicker-dropzone.d.ts +38 -0
- package/dist/src/components/c-ui/loading-button.d.ts +9 -0
- package/dist/src/components/common/content-editable-plain.d.ts +17 -0
- package/dist/src/components/hooks/use-button-shortcut.d.ts +18 -0
- package/dist/src/components/hooks/use-document-keydown.d.ts +7 -0
- package/dist/src/components/rich-text/content-policy.d.ts +19 -0
- package/dist/src/components/rich-text/index.d.ts +6 -0
- package/dist/src/components/rich-text/nodes/rich-text-image-node.d.ts +40 -0
- package/dist/src/components/rich-text/nodes/rich-text-info-box-node.d.ts +45 -0
- package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +27 -0
- package/dist/src/components/rich-text/rich-text-block-editor.d.ts +8 -0
- package/dist/src/components/rich-text/rich-text-content-view.d.ts +11 -0
- package/dist/src/components/rich-text/rich-text-editor-context.d.ts +23 -0
- package/dist/src/components/rich-text/rich-text-link-utils.d.ts +2 -0
- package/dist/src/components/rich-text/rich-text-survey-content.d.ts +7 -0
- package/dist/src/components/rich-text/types.d.ts +6 -0
- package/dist/src/components/rich-text-editor/index.d.ts +3 -0
- package/dist/src/components/rich-text-editor/plugins/command-handler-plugin.d.ts +5 -0
- package/dist/src/components/rich-text-editor/plugins/editable-mode-plugin.d.ts +3 -0
- package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +11 -0
- package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +4 -0
- package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +6 -0
- package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +6 -0
- package/dist/src/components/rich-text-editor/plugins/rich-text-image-asset-deletion-plugin.d.ts +1 -0
- package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +15 -0
- package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +4 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +205 -0
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/src/components/rich-text-editor/rich-text-image-editor-commands.d.ts +12 -0
- package/dist/src/components/rich-text-editor/rich-text-info-box-commands.d.ts +20 -0
- package/dist/src/components/rich-text-editor/style-control-icon.d.ts +5 -0
- package/dist/src/components/ui/alert-dialog.d.ts +18 -0
- package/dist/src/components/ui/alert.d.ts +10 -0
- package/dist/src/components/ui/badge.d.ts +9 -0
- package/dist/src/components/ui/breadcrumb.d.ts +11 -0
- package/dist/src/components/ui/button.d.ts +10 -0
- package/dist/src/components/ui/calendar.d.ts +10 -0
- package/dist/src/components/ui/card.d.ts +11 -0
- package/dist/src/components/ui/checkbox.d.ts +4 -0
- package/dist/src/components/ui/collapsible.d.ts +5 -0
- package/dist/src/components/ui/command.d.ts +18 -0
- package/dist/src/components/ui/context-menu.d.ts +31 -0
- package/dist/src/components/ui/dialog.d.ts +19 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/src/components/ui/field.d.ts +24 -0
- package/dist/src/components/ui/input-group.d.ts +16 -0
- package/dist/src/components/ui/input.d.ts +3 -0
- package/dist/src/components/ui/kbd.d.ts +3 -0
- package/dist/src/components/ui/label.d.ts +4 -0
- package/dist/src/components/ui/popover.d.ts +10 -0
- package/dist/src/components/ui/progress.d.ts +4 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/components/ui/scroll-area.d.ts +5 -0
- package/dist/src/components/ui/select.d.ts +15 -0
- package/dist/src/components/ui/separator.d.ts +4 -0
- package/dist/src/components/ui/skeleton.d.ts +2 -0
- package/dist/src/components/ui/slider.d.ts +4 -0
- package/dist/src/components/ui/sonner.d.ts +3 -0
- package/dist/src/components/ui/switch.d.ts +6 -0
- package/dist/src/components/ui/tabs.d.ts +11 -0
- package/dist/src/components/ui/textarea.d.ts +3 -0
- package/dist/src/components/ui/toggle-group.d.ts +10 -0
- package/dist/src/components/ui/toggle.d.ts +9 -0
- package/dist/src/components/ui/tooltip.d.ts +7 -0
- package/dist/src/dev/_components/nav-input.d.ts +35 -0
- package/dist/src/dev/app.d.ts +2 -0
- package/dist/src/dev/localizations/de.d.ts +2 -0
- package/dist/src/dev/main.d.ts +0 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/modules/default-item-registry/default-item-cores.d.ts +24 -0
- package/dist/src/modules/default-item-registry/default-registry-entries.d.ts +2 -0
- package/dist/src/modules/default-item-registry/index.d.ts +19 -0
- package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +1 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +11 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +14 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +17 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-embedded-form-dialog.d.ts +15 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +20 -0
- package/dist/src/modules/default-item-registry/items/choice/expression-registry.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/choice/model.d.ts +28 -0
- package/dist/src/modules/default-item-registry/items/choice/player/question.d.ts +32 -0
- package/dist/src/modules/default-item-registry/items/choice/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/choice/search-adapter.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/form/editor/card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +10 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +9 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +15 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +10 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +11 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +16 -0
- package/dist/src/modules/default-item-registry/items/form/model.d.ts +158 -0
- package/dist/src/modules/default-item-registry/items/form/player/field.d.ts +28 -0
- package/dist/src/modules/default-item-registry/items/form/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/info/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/info/player/card-field.d.ts +14 -0
- package/dist/src/modules/default-item-registry/items/info/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/info/search-adapter.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/structure/group/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/page-break/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/preview-renderers.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/root/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/shared/player/question-card-shell.d.ts +13 -0
- package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +6 -0
- package/dist/src/modules/default-item-registry/shared/preview/utils.d.ts +3 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +26 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/header-editor.d.ts +6 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/layout.d.ts +8 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-editors.d.ts +23 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-policies.d.ts +8 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/toolbar.d.ts +10 -0
- package/dist/src/modules/survey-editor/ai/types.d.ts +88 -0
- package/dist/src/modules/survey-editor/assets/index.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/use-survey-assets.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/utils.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +3 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +25 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-target.d.ts +9 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +19 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +21 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/ai-item-view.d.ts +10 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/back-button.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/blank-item-view.d.ts +13 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/entry-view.d.ts +15 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/structure-view.d.ts +16 -0
- package/dist/src/modules/survey-editor/editor-card/add-items.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/delete-item-context-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/editor-card-tab-trigger.d.ts +15 -0
- package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/hooks/use-armed-shortcut-sequence.d.ts +11 -0
- package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +30 -0
- package/dist/src/modules/survey-editor/editor-card/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-card/item-color-selector.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card-skeleton.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +39 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +20 -0
- package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +9 -0
- package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +10 -0
- package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/item-sibling-navigation.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/survey-player-item-preview.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +7 -0
- package/dist/src/modules/survey-editor/hooks/useClipboardValue.d.ts +2 -0
- package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +9 -0
- package/dist/src/modules/survey-editor/hooks/useEditor.d.ts +12 -0
- package/dist/src/modules/survey-editor/hooks/useEditorStateChange.d.ts +17 -0
- package/dist/src/modules/survey-editor/hooks/useKeyboardShortcuts.d.ts +7 -0
- package/dist/src/modules/survey-editor/index.d.ts +17 -0
- package/dist/src/modules/survey-editor/localization/date-fns.d.ts +5 -0
- package/dist/src/modules/survey-editor/localization/default-en.d.ts +4 -0
- package/dist/src/modules/survey-editor/localization/index.d.ts +5 -0
- package/dist/src/modules/survey-editor/localization/runtime.d.ts +4 -0
- package/dist/src/modules/survey-editor/localization/types.d.ts +7 -0
- package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +11 -0
- package/dist/src/modules/survey-editor/navigation/navigation.d.ts +13 -0
- package/dist/src/modules/survey-editor/navigation/types.d.ts +18 -0
- package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +35 -0
- package/dist/src/modules/survey-editor/registry/index.d.ts +7 -0
- package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +25 -0
- package/dist/src/modules/survey-editor/registry/search-adapter.d.ts +19 -0
- package/dist/src/modules/survey-editor/registry/types.d.ts +178 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/history-stack.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/index.d.ts +5 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/breadcrumbs-nav.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/search-trigger.d.ts +3 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/survey-search.d.ts +7 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/session-file.d.ts +13 -0
- package/dist/src/modules/survey-editor/store/editor-store-context.d.ts +10 -0
- package/dist/src/modules/survey-editor/store/editor-store-provider.d.ts +7 -0
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +102 -0
- package/dist/src/modules/survey-editor/store/use-editor-store.d.ts +4 -0
- package/dist/src/modules/survey-editor/store/useItemNavigation.d.ts +7 -0
- package/dist/src/modules/survey-editor/survey-editor-config.d.ts +29 -0
- package/dist/src/modules/survey-editor/survey-editor.d.ts +26 -0
- package/dist/src/modules/survey-editor/utils/item-type-infos.d.ts +23 -0
- package/dist/src/modules/survey-player/index.d.ts +5 -0
- package/dist/src/modules/survey-player/localization/default-en.d.ts +3 -0
- package/dist/src/modules/survey-player/localization/runtime.d.ts +4 -0
- package/dist/src/modules/survey-player/localization/types.d.ts +7 -0
- package/dist/src/modules/survey-player/survey-context.d.ts +32 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-context.d.ts +27 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-types/placeholder-item-renderers.d.ts +4 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-types/question-wrapper.d.ts +5 -0
- package/dist/src/modules/survey-player/survey-item/survey-item.d.ts +7 -0
- package/dist/src/modules/survey-player/survey-player.d.ts +14 -0
- package/package.json +4 -4
- package/dist/index.d.ts +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "default";
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "line" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
3
|
+
import { toggleVariants } from '../../../components/ui/toggle';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
6
|
+
spacing?: number;
|
|
7
|
+
orientation?: "horizontal" | "vertical";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SurveyEditorLocation, SurveyEditorNavigationAdapter } from '../../../modules/survey-editor/navigation/types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a navigation adapter backed by local state, so the parent can control
|
|
5
|
+
* and listen to navigation via an input field (or any custom UI).
|
|
6
|
+
*
|
|
7
|
+
* @param onNavigate - Optional callback when location changes (from any source)
|
|
8
|
+
*/
|
|
9
|
+
export declare function createInputFieldNavigationAdapter(onNavigate?: (location: SurveyEditorLocation) => void): SurveyEditorNavigationAdapter;
|
|
10
|
+
export interface UseInputFieldNavigationAdapterOptions {
|
|
11
|
+
onNavigate?: (location: SurveyEditorLocation) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface UseInputFieldNavigationAdapterResult {
|
|
14
|
+
adapter: SurveyEditorNavigationAdapter;
|
|
15
|
+
locationString: string;
|
|
16
|
+
setLocationString: (value: string) => void;
|
|
17
|
+
handleSubmit: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Hook that provides a navigation adapter and input field state.
|
|
21
|
+
* Use with an input: bind value to locationString, onChange to setLocationString,
|
|
22
|
+
* and onKeyDown (Enter) or a button to handleSubmit.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useInputFieldNavigationAdapter(options?: UseInputFieldNavigationAdapterOptions): UseInputFieldNavigationAdapterResult;
|
|
25
|
+
interface NavInputProps {
|
|
26
|
+
result: UseInputFieldNavigationAdapterResult;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Simple input field component for navigation.
|
|
32
|
+
* Examples: item-editor, item-editor:someId, translation-mode
|
|
33
|
+
*/
|
|
34
|
+
export declare function NavInput({ result, placeholder, className }: NavInputProps): ReactNode;
|
|
35
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SurveyPlayer, SurveyContextProvider, SurveyItemRenderer, useSurveyCtx, useSurveyTranslation, } from './modules/survey-player';
|
|
2
|
+
export { SurveyEditor } from './modules/survey-editor';
|
|
3
|
+
export { APPLY_RICH_TEXT_STYLE_COMMAND, buildSurveyFileName, createBlankEditorState, createEditorStateFromRawSurvey, createRichTextEditorValueFromContent, createRichTextEditorValueFromPlainText, createRichTextEditorValueFromText, DEFAULT_CATEGORY_LABELS, DEFAULT_BLOCK_CONTENT_POLICY, DEFAULT_COMPACT_CONTENT_POLICY, RichTextEditor, RichTextBlockEditor, CONVERT_RICH_TEXT_LINK_TO_TEXT_COMMAND, INSERT_RICH_TEXT_LINK_COMMAND, INSERT_RICH_TEXT_TEMPLATE_VARIABLE_COMMAND, isBlockContentPolicyVariant, mergeRichTextContentPolicy, OPEN_RICH_TEXT_LINK_EDITOR_COMMAND, RichTextContentView, sanitizeContentForPolicy, SurveyImageAssetManager, UPDATE_RICH_TEXT_LINK_COMMAND, entriesToComposedEditorRegistry, entriesToParticipantRegistry, entriesToItemTypeRegistry, getRichTextContentFromEditorState, parseEditorStateFromJsonText, resolveCategoryLabel, serializeSurveyStateForFile, useSurveyAssets, useSurveyImageAssets, useUnusedSurveyAssetCount, validateRegistryEntries, } from './modules/survey-editor';
|
|
4
|
+
export { FilepickerDropzone } from './components/c-ui/filepicker-dropzone';
|
|
5
|
+
export { cloneRegistryEntries, createComposedEditorRegistry, createRegistryEntries, createSurveyPlayerRegistry, getDefaultComposedEditorRegistry, getDefaultRegistryEntries, getDefaultSurveyPlayerRegistry, } from './modules/default-item-registry';
|
|
6
|
+
export type { CreateComposedEditorRegistryOptions, CreateRegistryEntriesOptions, CreateSurveyPlayerRegistryOptions, RegistryConflictStrategy, } from './modules/default-item-registry';
|
|
7
|
+
export type { SurveyEditorProps, SurveyEditorStateChange, EditorItemDefinition, EditorItemDefinitionRegistry, ComposedEditorItemRegistry, EntriesToComposedEditorRegistryOptions, EntriesToParticipantRegistryOptions, ItemEditorComponentProps, ItemIconComponent, ItemPreviewComponentProps, ItemPreviewMode, ItemRegistryEntry, ItemRendererComponentProps, ItemSearchAdapter, RegistryValidationIssue, RegistryValidationMode, RegistryValidationOptions, RegistryValidationResult, SurveyPlayerItemRegistry, AISuggestedText, BuildSurveyAIContextOptions, GenerateItemFromIntentRequest, GenerateItemFromIntentResult, GeneratedItemIntentSuggestion, SuggestItemKeyRequest, SuggestItemKeyResult, SuggestItemKeySuggestion, SuggestItemLabelRequest, SuggestItemLabelResult, SuggestItemLabelSuggestion, SurveyEditorAIProvider, SurveyAIContextScope, SurveyAIInvocationMode, SurveyAIRequestOptions, RichTextEditorChange, RichTextEditorProps, RichTextBlockEditorChange, RichTextBlockEditorProps, RichTextContentPolicy, RichTextLinkPayload, RichTextStyleControl, RichTextTemplateVariable, RichTextContentViewProps, RichTextEditorVariant, RichTextStyleAttribute, RichTextSupportedBlockType, SerializedRichTextLinkNode, SerializedTemplateVariableNode, SurveyImageAssetManagerProps, TranslateContentEntry, TranslateContentRequest, TranslateContentResult, ParsedSurveySession, ParsedSurveySessionFormat, } from './modules/survey-editor';
|
|
8
|
+
export type { SurveyPlayerProps, SurveyContextProviderProps, SurveyItemRendererProps, SurveyPlayerLocalizationMessages, SurveyPlayerLocalizations, SurveyPlayerTranslate, SurveyPlayerTranslationValue, SurveyPlayerTranslationValues, } from './modules/survey-player';
|
|
9
|
+
export type { FilepickerDropzoneLabels, FilepickerDropzoneProps, } from './components/c-ui/filepicker-dropzone';
|
|
10
|
+
export type { BuildSurveyAIContextPackOptions, SurveyAIContextIndexes, SurveyAIContextPack, SurveyAIContextPurpose, SurveyAIItemContextNode, SurveyAIKeyIndexEntry, SurveyAIFocus, SurveyAIOutlineNode, SurveyAITranslationSnippet, } from '@case-framework/survey-core/editor';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SurveyItemCore, SurveyItemPrefill, ResponseSlotDefinition, ResponseValue } from '@case-framework/survey-core';
|
|
2
|
+
import { ChoiceItemConfig } from './items/choice/model';
|
|
3
|
+
import { FormItemConfig } from './items/form/model';
|
|
4
|
+
type InfoItemConfig = Record<string, never>;
|
|
5
|
+
export declare class InfoItemCore extends SurveyItemCore<"infoItem", InfoItemConfig> {
|
|
6
|
+
readonly type = "infoItem";
|
|
7
|
+
parseConfig(rawConfig: unknown): InfoItemConfig;
|
|
8
|
+
isInteractive(): boolean;
|
|
9
|
+
getResponseSlotDefinitions(): ResponseSlotDefinition[];
|
|
10
|
+
}
|
|
11
|
+
export declare class FormItemCore extends SurveyItemCore<"formItem", FormItemConfig> {
|
|
12
|
+
readonly type = "formItem";
|
|
13
|
+
parseConfig(rawConfig: unknown): FormItemConfig;
|
|
14
|
+
isInteractive(): boolean;
|
|
15
|
+
getResponseSlotDefinitions(): ResponseSlotDefinition[];
|
|
16
|
+
}
|
|
17
|
+
export declare class ChoiceItemCore extends SurveyItemCore<"choiceItem", ChoiceItemConfig> {
|
|
18
|
+
readonly type = "choiceItem";
|
|
19
|
+
parseConfig(rawConfig: unknown): ChoiceItemConfig;
|
|
20
|
+
isInteractive(): boolean;
|
|
21
|
+
getResponseSlotDefinitions(): ResponseSlotDefinition[];
|
|
22
|
+
normalizePrefillValue(prefill: SurveyItemPrefill, targetSlot: ResponseSlotDefinition, value: ResponseValue): ResponseValue | undefined;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComposedEditorItemRegistry, EntriesToComposedEditorRegistryOptions, EntriesToParticipantRegistryOptions, ItemRegistryEntry, SurveyPlayerItemRegistry } from '../survey-editor/registry';
|
|
2
|
+
export type RegistryConflictStrategy = "error" | "override";
|
|
3
|
+
export interface CreateRegistryEntriesOptions {
|
|
4
|
+
/** Include default built-in entries first. Defaults to true. */
|
|
5
|
+
includeDefaultEntries?: boolean;
|
|
6
|
+
/** Custom entries to add/override. */
|
|
7
|
+
entries?: ItemRegistryEntry[];
|
|
8
|
+
/** How to handle duplicate itemType values. Defaults to override. */
|
|
9
|
+
conflictStrategy?: RegistryConflictStrategy;
|
|
10
|
+
}
|
|
11
|
+
export type CreateComposedEditorRegistryOptions = CreateRegistryEntriesOptions & EntriesToComposedEditorRegistryOptions;
|
|
12
|
+
export type CreateSurveyPlayerRegistryOptions = CreateRegistryEntriesOptions & EntriesToParticipantRegistryOptions;
|
|
13
|
+
export declare function cloneRegistryEntries(entries: readonly ItemRegistryEntry[]): ItemRegistryEntry[];
|
|
14
|
+
export declare function createRegistryEntries(options?: CreateRegistryEntriesOptions): ItemRegistryEntry[];
|
|
15
|
+
export declare function getDefaultRegistryEntries(): ItemRegistryEntry[];
|
|
16
|
+
export declare function createComposedEditorRegistry(options?: CreateComposedEditorRegistryOptions): ComposedEditorItemRegistry;
|
|
17
|
+
export declare function createSurveyPlayerRegistry(options?: CreateSurveyPlayerRegistryOptions): SurveyPlayerItemRegistry;
|
|
18
|
+
export declare function getDefaultComposedEditorRegistry(): ComposedEditorItemRegistry;
|
|
19
|
+
export declare function getDefaultSurveyPlayerRegistry(): SurveyPlayerItemRegistry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDisplayOrder<T>(items: readonly T[], shouldShuffle: boolean, seed: string): T[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Content } from '@case-framework/survey-core';
|
|
2
|
+
import { ChoiceOptionConfig } from '../model';
|
|
3
|
+
interface ChoiceOptionCreateProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
open: () => void;
|
|
6
|
+
existingOptions: ChoiceOptionConfig[];
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onSubmit: (option: ChoiceOptionConfig, labelContent?: Content) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChoiceOptionCreate: React.FC<ChoiceOptionCreateProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Content } from '@case-framework/survey-core';
|
|
2
|
+
import { ChoiceOptionConfig } from '../model';
|
|
3
|
+
type ChoiceOptionEditorFocusField = "label" | "key";
|
|
4
|
+
interface ChoiceOptionEditDialogProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
option: ChoiceOptionConfig | null;
|
|
7
|
+
existingOptions: ChoiceOptionConfig[];
|
|
8
|
+
initialLabelContent?: Content;
|
|
9
|
+
initialFocusField?: ChoiceOptionEditorFocusField;
|
|
10
|
+
onOpenChange: (open: boolean) => void;
|
|
11
|
+
onSave: (option: ChoiceOptionConfig, labelContent?: Content) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ChoiceOptionEditDialog: React.FC<ChoiceOptionEditDialogProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RichTextEditorChange } from '../../../../../../components/rich-text-editor';
|
|
2
|
+
import { SerializedEditorState } from 'lexical';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
interface ChoiceOptionEditorFieldsProps {
|
|
5
|
+
draftKey: string;
|
|
6
|
+
draftLabelEditorValue: SerializedEditorState;
|
|
7
|
+
keyValidationMessage: string | null;
|
|
8
|
+
labelEditorInstanceKey: number;
|
|
9
|
+
labelAutoFocus?: boolean;
|
|
10
|
+
keyAutoFocus?: boolean;
|
|
11
|
+
keyRowTrailing?: ReactNode;
|
|
12
|
+
onDraftKeyChange: (value: string) => void;
|
|
13
|
+
onDraftLabelChange: (change: RichTextEditorChange) => void;
|
|
14
|
+
onSubmitShortcut?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ChoiceOptionEditorFields: React.FC<ChoiceOptionEditorFieldsProps>;
|
|
17
|
+
export {};
|
package/dist/src/modules/default-item-registry/items/choice/editor/option-embedded-form-dialog.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SurveyItemTranslations } from '@case-framework/survey-core';
|
|
2
|
+
import { FormItemConfig } from '../../form/model';
|
|
3
|
+
interface ChoiceOptionEmbeddedFormDialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
optionLabel: string;
|
|
6
|
+
itemId: string;
|
|
7
|
+
config: FormItemConfig;
|
|
8
|
+
editingConfig: FormItemConfig;
|
|
9
|
+
selectedLocale: string;
|
|
10
|
+
translationNamespace: string;
|
|
11
|
+
onOpenChange: (open: boolean) => void;
|
|
12
|
+
onPersist: (applyChanges: (nextConfig: FormItemConfig, nextTranslations: SurveyItemTranslations) => void | boolean) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ChoiceOptionEmbeddedFormDialog: React.FC<ChoiceOptionEmbeddedFormDialogProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Content } from '@case-framework/survey-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { ChoiceOptionConfig } from '../model';
|
|
4
|
+
export interface ChoiceOptionListItem {
|
|
5
|
+
option: ChoiceOptionConfig;
|
|
6
|
+
label: string;
|
|
7
|
+
labelContent?: Content;
|
|
8
|
+
}
|
|
9
|
+
interface ChoiceResponseOptionsListProps {
|
|
10
|
+
itemId: string;
|
|
11
|
+
items: ChoiceOptionListItem[];
|
|
12
|
+
onItemEditLabel: (optionId: string) => void;
|
|
13
|
+
onItemEditKey: (optionId: string) => void;
|
|
14
|
+
onItemEditEmbeddedForm: (optionId: string) => void;
|
|
15
|
+
onItemDuplicate: (optionId: string) => void;
|
|
16
|
+
onItemDelete: (optionId: string) => void;
|
|
17
|
+
onItemsReorder: (nextItems: ChoiceOptionConfig[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const ChoiceResponseOptionsList: React.FC<ChoiceResponseOptionsListProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FormItemConfig } from '../form/model';
|
|
2
|
+
/** `1` = single selection (radio). `null` = multiple selection with no upper cap. Integers above 1 cap how many options may be selected. */
|
|
3
|
+
export type ChoiceMaxSelection = number | null;
|
|
4
|
+
export interface ChoiceOptionConfig {
|
|
5
|
+
id: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
hasDisplayCondition?: boolean;
|
|
8
|
+
embeddedFormItemId?: string;
|
|
9
|
+
embeddedForm?: FormItemConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface ChoiceItemConfig {
|
|
12
|
+
id: string;
|
|
13
|
+
maxSelection: ChoiceMaxSelection;
|
|
14
|
+
shuffleOptions: boolean;
|
|
15
|
+
options: ChoiceOptionConfig[];
|
|
16
|
+
}
|
|
17
|
+
export declare function choiceIsSingleSelect(maxSelection: ChoiceMaxSelection): boolean;
|
|
18
|
+
export declare function createChoiceItemConfig(itemId: string): ChoiceItemConfig;
|
|
19
|
+
export declare function getChoiceOptionLabelContentKey(optionId: string): string;
|
|
20
|
+
export declare function getChoiceOptionEmbeddedFormTranslationPrefix(optionId: string): string;
|
|
21
|
+
export declare function getChoiceOptionEmbeddedFormResponseSlotPrefix(optionId: string): string;
|
|
22
|
+
export declare function getChoiceOptionEmbeddedFormResponseSlotId(optionId: string, fieldKey: string): string;
|
|
23
|
+
export declare function getChoiceOptionEmbeddedFormResponseKeyPathSegment(option: Pick<ChoiceOptionConfig, "id" | "key">): string;
|
|
24
|
+
export declare function choiceOptionHasEmbeddedForm(option: Pick<ChoiceOptionConfig, "embeddedFormItemId" | "embeddedForm">): boolean;
|
|
25
|
+
export declare function normalizeChoiceOptionKey(value: string): string;
|
|
26
|
+
export declare function normalizeChoiceItemConfig(rawConfig: unknown, itemId: string): ChoiceItemConfig;
|
|
27
|
+
export declare function createChoiceOptionConfig(existingOptions: ChoiceOptionConfig[]): ChoiceOptionConfig;
|
|
28
|
+
export declare function createDuplicatedChoiceOptionConfig(option: ChoiceOptionConfig, existingOptions: ChoiceOptionConfig[]): ChoiceOptionConfig;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ResponseItem, Content } from '@case-framework/survey-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { ChoiceMaxSelection } from '../model';
|
|
4
|
+
import { FormFieldGroupConfig } from '../../form/model';
|
|
5
|
+
export interface ChoiceQuestionOptionViewModel {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
labelContent?: Content;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
embeddedFormGroups?: FormFieldGroupConfig[];
|
|
11
|
+
}
|
|
12
|
+
interface ChoiceQuestionFieldProps {
|
|
13
|
+
itemId: string;
|
|
14
|
+
title?: Content;
|
|
15
|
+
subtitle?: Content;
|
|
16
|
+
topContent?: Content;
|
|
17
|
+
bottomContent?: Content;
|
|
18
|
+
footer?: Content;
|
|
19
|
+
resolveImageAssetUrl?: (assetId: string) => string | undefined;
|
|
20
|
+
maxSelection: ChoiceMaxSelection;
|
|
21
|
+
options: ChoiceQuestionOptionViewModel[];
|
|
22
|
+
emptyState?: React.ReactNode;
|
|
23
|
+
legendFallback?: string;
|
|
24
|
+
responseSlotId: string;
|
|
25
|
+
currentResponse?: ResponseItem;
|
|
26
|
+
onResponseChange?: (response?: ResponseItem) => void;
|
|
27
|
+
name?: string;
|
|
28
|
+
controlIdPrefix?: string;
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const ChoiceQuestionField: React.FC<ChoiceQuestionFieldProps>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SurveyItemTranslations } from '@case-framework/survey-core';
|
|
2
|
+
import { FormItemConfig } from '../model';
|
|
3
|
+
interface FormConfigEditorProps {
|
|
4
|
+
itemId: string;
|
|
5
|
+
config: FormItemConfig;
|
|
6
|
+
editingConfig: FormItemConfig;
|
|
7
|
+
selectedLocale: string;
|
|
8
|
+
translationNamespace?: string;
|
|
9
|
+
onPersist: (applyChanges: (nextConfig: FormItemConfig, nextTranslations: SurveyItemTranslations) => void | boolean) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const FormConfigEditor: React.FC<FormConfigEditorProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormFieldConfig } from '../model';
|
|
2
|
+
interface FormFieldEditDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
field: FormFieldConfig | null;
|
|
5
|
+
allFields: FormFieldConfig[];
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
onSave: (nextField: FormFieldConfig) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const FormFieldEditDialog: React.FC<FormFieldEditDialogProps>;
|
|
10
|
+
export {};
|
package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface FormFieldGroupHeaderDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
initialTitle?: string;
|
|
4
|
+
initialDescription?: string;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
onSave: (nextHeader: {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const FormFieldGroupHeaderDialog: React.FC<FormFieldGroupHeaderDialogProps>;
|
|
12
|
+
export {};
|
package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormFieldGroupLayoutConfig } from '../model';
|
|
2
|
+
interface FormFieldGroupLayoutDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
initialLayout: FormFieldGroupLayoutConfig;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
onSave: (nextLayout: FormFieldGroupLayoutConfig) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const FormFieldGroupLayoutDialog: React.FC<FormFieldGroupLayoutDialogProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormFieldType } from '../model';
|
|
2
|
+
export interface FormFieldItemPreviewProps {
|
|
3
|
+
codingKey: string;
|
|
4
|
+
fieldType: FormFieldType;
|
|
5
|
+
label?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
hasValidations?: boolean;
|
|
8
|
+
isInvalid?: boolean;
|
|
9
|
+
variant?: "bordered" | "plain";
|
|
10
|
+
className?: string;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
onEditKey?: () => void;
|
|
13
|
+
onDelete?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function FormFieldItemPreview({ codingKey, fieldType, label, required, hasValidations, isInvalid, variant, className, onClick, onEditKey, onDelete, }: FormFieldItemPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormFieldConfig } from '../model';
|
|
2
|
+
interface FormFieldKeyDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
field: FormFieldConfig | null;
|
|
5
|
+
allFields: FormFieldConfig[];
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
onSave: (nextKey: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const FormFieldKeyDialog: React.FC<FormFieldKeyDialogProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormFieldConfig } from '../model';
|
|
2
|
+
interface FormFieldSortDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
groupId: string | null;
|
|
5
|
+
groupTitle?: string;
|
|
6
|
+
fields: FormFieldConfig[];
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
onFieldsReorder: (nextFields: FormFieldConfig[]) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormFieldSortDialog: React.FC<FormFieldSortDialogProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormFieldType } from '../model';
|
|
2
|
+
export declare const FORM_FIELD_TYPES: ("number" | "input" | "select" | "textarea" | "switch" | "slider" | "datepicker")[];
|
|
3
|
+
export declare const FORM_FIELD_TYPE_ICON: {
|
|
4
|
+
input: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
5
|
+
textarea: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
6
|
+
number: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
7
|
+
datepicker: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
8
|
+
switch: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
9
|
+
select: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
10
|
+
slider: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
11
|
+
};
|
|
12
|
+
export declare function getFormFieldTypeLabel(t: (key: string) => string, fieldType: FormFieldType): string;
|
package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormFieldType, FormFieldGroupConfig } from '../model';
|
|
2
|
+
interface FormResponseFieldGroupsListProps {
|
|
3
|
+
itemId: string;
|
|
4
|
+
items: FormFieldGroupConfig[];
|
|
5
|
+
onAddField: (groupId: string, fieldType: FormFieldType) => void;
|
|
6
|
+
onChangeGroupHeader: (groupId: string) => void;
|
|
7
|
+
onEditLayout: (groupId: string) => void;
|
|
8
|
+
onDeleteGroup: (groupId: string) => void;
|
|
9
|
+
onDeleteField: (groupId: string, fieldId: string) => void;
|
|
10
|
+
onEditField: (groupId: string, fieldId: string) => void;
|
|
11
|
+
onEditFieldKey: (groupId: string, fieldId: string) => void;
|
|
12
|
+
onSortFields: (groupId: string) => void;
|
|
13
|
+
onItemsReorder: (nextItems: FormFieldGroupConfig[]) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const FormResponseFieldGroupsList: React.FC<FormResponseFieldGroupsListProps>;
|
|
16
|
+
export {};
|