@layers-app/shared 0.0.39-comments.2 → 0.0.39-froms-01
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/{KanbanLayout-DGHT9E0N.js → KanbanLayout-D5Ex3f-G.js} +1 -1
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +5 -0
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +3 -0
- package/dist/components/CommentComposer/index.d.ts +8 -10
- package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +1 -5
- package/dist/components/CommentsPanel/components/{CommentTabFilter.d.ts → CommentFilterMenu.d.ts} +1 -2
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +4 -3
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +2 -5
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +1 -2
- package/dist/components/CommentsPanel/components/CommentsMultiSelectUsers.d.ts +6 -0
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +4 -3
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +1 -5
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +5 -9
- package/dist/components/CommentsPanel/components/RemoveConfirmModal.d.ts +11 -0
- package/dist/components/CommentsPanel/index.d.ts +6 -10
- package/dist/components/CommentsPanel/store.d.ts +1 -7
- package/dist/components/CommentsPanel/types.d.ts +57 -157
- package/dist/components/CommentsPanel/utils.d.ts +5 -11
- package/dist/components/FormViewer/FormViewer.d.ts +8 -0
- package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
- package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
- package/dist/components/FormViewer/components/Container.d.ts +5 -0
- package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
- package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
- package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
- package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
- package/dist/components/FormViewer/components/Step.d.ts +5 -0
- package/dist/components/FormViewer/components/StepDescription.d.ts +5 -0
- package/dist/components/FormViewer/components/StepTitle.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
- package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +8 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
- package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
- package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/StartField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
- package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +281 -0
- package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
- package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
- package/dist/components/FormViewer/helpers/helpers.d.ts +279 -0
- package/dist/components/FormViewer/helpers/index.d.ts +7 -0
- package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
- package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
- package/dist/components/FormViewer/helpers/steps.d.ts +294 -0
- package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
- package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
- package/dist/components/FormViewer/hooks/index.d.ts +6 -0
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +204 -0
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +277 -0
- package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +145 -0
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
- package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
- package/dist/components/FormViewer/index.d.ts +8 -0
- package/dist/components/FormViewer/store/formStore.d.ts +149 -0
- package/dist/components/FormViewer/store/formStoreApi.d.ts +36 -0
- package/dist/components/FormViewer/store/selectors.d.ts +75757 -0
- package/dist/components/FormViewer/types/form.d.ts +58 -0
- package/dist/components/FormViewer/types/schemes.d.ts +7591 -0
- package/dist/hooks/useEvent.d.ts +1 -0
- package/dist/{index-BI1_FPl_.js → index-BVdsep1X.js} +50439 -18306
- package/dist/index.d.ts +2 -2
- package/dist/index.js +68 -4
- package/dist/index.umd.cjs +59 -59
- package/package.json +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +0 -12
- package/dist/components/CommentFilterMenu/index.d.ts +0 -9
- package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MediaData, StepData } from '../types/form';
|
|
2
|
+
export declare const getImageFilter: (v: MediaData | null | undefined) => string;
|
|
3
|
+
export declare const Step: import('react').MemoExoticComponent<({ step }: {
|
|
4
|
+
step: StepData;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ButtonControl, StepData } from '../../../types/form';
|
|
3
|
+
export declare const InnerButton: ({ buttonControl, control, step, wrapperStyle, }: {
|
|
4
|
+
buttonControl: ButtonControl;
|
|
5
|
+
control?: ButtonControl;
|
|
6
|
+
step: StepData;
|
|
7
|
+
wrapperStyle?: CSSProperties;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChoiceControlItem, StepData } from '../../../types/form';
|
|
2
|
+
export type ChoiceCardProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
showInput?: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
onUpdate?: (v: Partial<ChoiceControlItem>) => void;
|
|
7
|
+
onRemove?: () => void;
|
|
8
|
+
controlId: string;
|
|
9
|
+
step: StepData;
|
|
10
|
+
};
|
|
11
|
+
export declare const ChoiceCard: import('react').MemoExoticComponent<({ label, showInput, onUpdate, onRemove, controlId, id, step, }: ChoiceCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PictureChoiceControlItem, StepData } from '../../../types/form';
|
|
2
|
+
export type PictureChoiceCardProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
showInput?: boolean;
|
|
5
|
+
onUpdate?: (v: Partial<PictureChoiceControlItem>) => void;
|
|
6
|
+
onRemove?: () => void;
|
|
7
|
+
image?: string;
|
|
8
|
+
controlId: string;
|
|
9
|
+
id: string;
|
|
10
|
+
step: StepData;
|
|
11
|
+
};
|
|
12
|
+
export declare const PictureChoiceCard: import('react').MemoExoticComponent<({ label, showInput, onUpdate, onRemove, image, controlId, id, step, }: PictureChoiceCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
2
|
+
export declare const DragOptions: ({ options, onDragEnd, editable, isGrid, align, }: {
|
|
3
|
+
options?: {
|
|
4
|
+
id: string;
|
|
5
|
+
element: React.ReactNode;
|
|
6
|
+
}[];
|
|
7
|
+
onDragEnd?: (event: DragEndEvent) => void;
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
isGrid?: boolean;
|
|
10
|
+
align?: "start" | "center" | "end";
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultipleChoiceControlItem, StepData } from '../../../types/form';
|
|
2
|
+
export type OptionCardProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
showInput?: boolean;
|
|
5
|
+
maxOptions?: number;
|
|
6
|
+
id: string;
|
|
7
|
+
onUpdate?: (v: Partial<MultipleChoiceControlItem>) => void;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
controlId: string;
|
|
10
|
+
step: StepData;
|
|
11
|
+
};
|
|
12
|
+
export declare const MultipleChoiceCard: import('react').MemoExoticComponent<({ label, showInput, maxOptions, onUpdate, onRemove, controlId, id, step, }: OptionCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProgressLine: () => import("react/jsx-runtime").JSX.Element | null;
|
package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { PictureChoiceControlItem, StepData } from '../../../types/form';
|
|
3
|
+
type PictureSelectableCardProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
inputType?: 'radio' | 'checkbox';
|
|
6
|
+
hasInput?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
image?: string;
|
|
11
|
+
onRemove?: () => void;
|
|
12
|
+
onUpdate?: (v: Partial<PictureChoiceControlItem>) => void;
|
|
13
|
+
step: StepData;
|
|
14
|
+
};
|
|
15
|
+
export declare const PictureSelectableCard: import('react').MemoExoticComponent<({ label, active, disabled, hasInput, image, onClick, inputType, onUpdate, onRemove, step, }: PictureSelectableCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
export declare const UploadOptionImageButton: ({ children, onUpdate, onRemove, hasImage, }: PropsWithChildren<{
|
|
17
|
+
onUpdate?: (v: Partial<PictureChoiceControlItem>) => void;
|
|
18
|
+
onRemove?: () => void;
|
|
19
|
+
hasImage?: boolean;
|
|
20
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChoiceControlItem, StepData } from '../../../types/form';
|
|
2
|
+
type SelectableCardProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
inputType?: 'radio' | 'checkbox';
|
|
5
|
+
hasInput?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
onRemove?: () => void;
|
|
10
|
+
onUpdate?: (v: Partial<ChoiceControlItem>) => void;
|
|
11
|
+
step: StepData;
|
|
12
|
+
};
|
|
13
|
+
export declare const SelectableCard: import('react').MemoExoticComponent<({ label, active, disabled, hasInput, onClick, inputType, onUpdate, onRemove, step, }: SelectableCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FileWithPath } from '@mantine/dropzone';
|
|
2
|
+
import { StepData, UploadControl } from '../../../types/form';
|
|
3
|
+
export type FileMeta = {
|
|
4
|
+
id: string;
|
|
5
|
+
originalFileName: string;
|
|
6
|
+
contentType: string;
|
|
7
|
+
fileSize: number;
|
|
8
|
+
storageType: string;
|
|
9
|
+
storagePath: string;
|
|
10
|
+
fileName: string;
|
|
11
|
+
parentType: string;
|
|
12
|
+
ownerId: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
version: number;
|
|
16
|
+
deleted: boolean;
|
|
17
|
+
deletedAt: string;
|
|
18
|
+
};
|
|
19
|
+
export type UploadFileData = {
|
|
20
|
+
id: string;
|
|
21
|
+
file: FileWithPath;
|
|
22
|
+
isError: boolean;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
url?: FileMeta;
|
|
25
|
+
isSuccess: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const UploadField: ({ control, step, }: {
|
|
28
|
+
control: UploadControl;
|
|
29
|
+
step: StepData;
|
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeData } from '../../../../types/form';
|
|
2
|
+
import { UploadFileData } from '../UploadField';
|
|
3
|
+
export declare const UploadFile: ({ file, id, onReload, theme, }: {
|
|
4
|
+
file: UploadFileData;
|
|
5
|
+
id: string;
|
|
6
|
+
onReload?: (fileData: UploadFileData) => void;
|
|
7
|
+
theme?: ThemeData;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { UseFormReturnType } from '@mantine/form';
|
|
2
|
+
import { StepsFormValues } from '../hooks/useCreateFormContext';
|
|
3
|
+
import { ControlType, OperatorType, StepData } from '../types/form';
|
|
4
|
+
export declare const getNextStep: (step: StepData, steps: StepData[], form: UseFormReturnType<StepsFormValues>) => {
|
|
5
|
+
id: string;
|
|
6
|
+
controls: ({
|
|
7
|
+
id: string;
|
|
8
|
+
controlType: "text";
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
icon?: string | undefined;
|
|
12
|
+
maxLength?: number | undefined;
|
|
13
|
+
minLength?: number | undefined;
|
|
14
|
+
placeholder?: string | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
variableName?: string | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
controlType: "longText";
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
icon?: string | undefined;
|
|
23
|
+
maxLength?: number | undefined;
|
|
24
|
+
minLength?: number | undefined;
|
|
25
|
+
placeholder?: string | undefined;
|
|
26
|
+
required?: boolean | undefined;
|
|
27
|
+
variableName?: string | undefined;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
controlType: "button";
|
|
31
|
+
label?: string | undefined;
|
|
32
|
+
link?: string | undefined;
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
buttons?: any[] | undefined;
|
|
36
|
+
width?: number | undefined;
|
|
37
|
+
orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
38
|
+
required?: boolean | undefined;
|
|
39
|
+
showIconButton?: boolean | undefined;
|
|
40
|
+
buttonIcon?: string | undefined;
|
|
41
|
+
alignButton?: "center" | "end" | "start" | undefined;
|
|
42
|
+
enableTooltip?: boolean | undefined;
|
|
43
|
+
fullWidthMobile?: boolean | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
id: string;
|
|
46
|
+
controlType: "date";
|
|
47
|
+
title?: string | undefined;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
icon?: string | undefined;
|
|
50
|
+
placeholder?: string | undefined;
|
|
51
|
+
required?: boolean | undefined;
|
|
52
|
+
minDate?: string | undefined;
|
|
53
|
+
maxDate?: string | undefined;
|
|
54
|
+
variableName?: string | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
id: string;
|
|
57
|
+
controlType: "start";
|
|
58
|
+
label?: string | undefined;
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
icon?: string | undefined;
|
|
62
|
+
required?: boolean | undefined;
|
|
63
|
+
showIconButton?: boolean | undefined;
|
|
64
|
+
buttonIcon?: string | undefined;
|
|
65
|
+
showButton?: boolean | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
controlType: "confirm";
|
|
69
|
+
label?: string | undefined;
|
|
70
|
+
link?: string | undefined;
|
|
71
|
+
title?: string | undefined;
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
required?: boolean | undefined;
|
|
74
|
+
buttonIcon?: string | undefined;
|
|
75
|
+
showButton?: boolean | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
id: string;
|
|
78
|
+
controlType: "number";
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
description?: string | undefined;
|
|
81
|
+
icon?: string | undefined;
|
|
82
|
+
max?: number | undefined;
|
|
83
|
+
min?: number | undefined;
|
|
84
|
+
placeholder?: string | undefined;
|
|
85
|
+
required?: boolean | undefined;
|
|
86
|
+
variableName?: string | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
id: string;
|
|
89
|
+
options: {
|
|
90
|
+
label: string;
|
|
91
|
+
id: string;
|
|
92
|
+
}[];
|
|
93
|
+
controlType: "choice";
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
required?: boolean | undefined;
|
|
97
|
+
variableName?: string | undefined;
|
|
98
|
+
showInput?: boolean | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
id: string;
|
|
101
|
+
options: {
|
|
102
|
+
label: string;
|
|
103
|
+
id: string;
|
|
104
|
+
}[];
|
|
105
|
+
controlType: "multipleChoice";
|
|
106
|
+
title?: string | undefined;
|
|
107
|
+
description?: string | undefined;
|
|
108
|
+
icon?: string | undefined;
|
|
109
|
+
required?: boolean | undefined;
|
|
110
|
+
variableName?: string | undefined;
|
|
111
|
+
showInput?: boolean | undefined;
|
|
112
|
+
minOptions?: number | undefined;
|
|
113
|
+
maxOptions?: number | undefined;
|
|
114
|
+
} | {
|
|
115
|
+
id: string;
|
|
116
|
+
options: {
|
|
117
|
+
label: string;
|
|
118
|
+
id: string;
|
|
119
|
+
image?: string | undefined;
|
|
120
|
+
}[];
|
|
121
|
+
controlType: "pictureChoice";
|
|
122
|
+
title?: string | undefined;
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
icon?: string | undefined;
|
|
125
|
+
required?: boolean | undefined;
|
|
126
|
+
variableName?: string | undefined;
|
|
127
|
+
showInput?: boolean | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
id: string;
|
|
130
|
+
options: {
|
|
131
|
+
label: string;
|
|
132
|
+
id: string;
|
|
133
|
+
}[];
|
|
134
|
+
controlType: "dropdown";
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
description?: string | undefined;
|
|
137
|
+
icon?: string | undefined;
|
|
138
|
+
placeholder?: string | undefined;
|
|
139
|
+
required?: boolean | undefined;
|
|
140
|
+
variableName?: string | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
id: string;
|
|
143
|
+
controlType: "email";
|
|
144
|
+
title?: string | undefined;
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
icon?: string | undefined;
|
|
147
|
+
placeholder?: string | undefined;
|
|
148
|
+
required?: boolean | undefined;
|
|
149
|
+
variableName?: string | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
id: string;
|
|
152
|
+
controlType: "location";
|
|
153
|
+
title?: string | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
icon?: string | undefined;
|
|
156
|
+
placeholder?: string | undefined;
|
|
157
|
+
required?: boolean | undefined;
|
|
158
|
+
variableName?: string | undefined;
|
|
159
|
+
} | {
|
|
160
|
+
id: string;
|
|
161
|
+
controlType: "phone";
|
|
162
|
+
title?: string | undefined;
|
|
163
|
+
description?: string | undefined;
|
|
164
|
+
icon?: string | undefined;
|
|
165
|
+
placeholder?: string | undefined;
|
|
166
|
+
required?: boolean | undefined;
|
|
167
|
+
variableName?: string | undefined;
|
|
168
|
+
} | {
|
|
169
|
+
id: string;
|
|
170
|
+
controlType: "slider";
|
|
171
|
+
title?: string | undefined;
|
|
172
|
+
description?: string | undefined;
|
|
173
|
+
icon?: string | undefined;
|
|
174
|
+
max?: number | undefined;
|
|
175
|
+
min?: number | undefined;
|
|
176
|
+
required?: boolean | undefined;
|
|
177
|
+
variableName?: string | undefined;
|
|
178
|
+
} | {
|
|
179
|
+
id: string;
|
|
180
|
+
controlType: "upload";
|
|
181
|
+
title?: string | undefined;
|
|
182
|
+
description?: string | undefined;
|
|
183
|
+
icon?: string | undefined;
|
|
184
|
+
multiple?: boolean | undefined;
|
|
185
|
+
accept?: string[] | undefined;
|
|
186
|
+
required?: boolean | undefined;
|
|
187
|
+
maxSize?: number | undefined;
|
|
188
|
+
maxFiles?: number | undefined;
|
|
189
|
+
variableName?: string | undefined;
|
|
190
|
+
minFiles?: number | undefined;
|
|
191
|
+
} | {
|
|
192
|
+
id: string;
|
|
193
|
+
controlType: "yesNo";
|
|
194
|
+
title?: string | undefined;
|
|
195
|
+
description?: string | undefined;
|
|
196
|
+
icon?: string | undefined;
|
|
197
|
+
required?: boolean | undefined;
|
|
198
|
+
variableName?: string | undefined;
|
|
199
|
+
yesLabel?: string | undefined;
|
|
200
|
+
noLabel?: string | undefined;
|
|
201
|
+
} | {
|
|
202
|
+
id: string;
|
|
203
|
+
controlType: "rating";
|
|
204
|
+
title?: string | undefined;
|
|
205
|
+
description?: string | undefined;
|
|
206
|
+
required?: boolean | undefined;
|
|
207
|
+
count?: number | undefined;
|
|
208
|
+
variableName?: string | undefined;
|
|
209
|
+
})[];
|
|
210
|
+
trigger: string;
|
|
211
|
+
media?: {
|
|
212
|
+
video?: string | undefined;
|
|
213
|
+
image?: string | undefined;
|
|
214
|
+
color?: string | undefined;
|
|
215
|
+
size?: number | undefined;
|
|
216
|
+
layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
|
|
217
|
+
blur?: number | undefined;
|
|
218
|
+
brightness?: number | undefined;
|
|
219
|
+
videoThumb?: string | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
theme?: {
|
|
222
|
+
input?: {
|
|
223
|
+
backgroundColor?: string | undefined;
|
|
224
|
+
borderColor?: string | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
title?: {
|
|
227
|
+
color?: string | undefined;
|
|
228
|
+
fontSize?: number | undefined;
|
|
229
|
+
fontWeight?: number | undefined;
|
|
230
|
+
fontFamily?: string | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
233
|
+
description?: {
|
|
234
|
+
color?: string | undefined;
|
|
235
|
+
fontSize?: number | undefined;
|
|
236
|
+
fontWeight?: number | undefined;
|
|
237
|
+
fontFamily?: string | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
align?: "center" | "end" | "start" | undefined;
|
|
240
|
+
background?: {
|
|
241
|
+
image?: string | undefined;
|
|
242
|
+
color?: string | undefined;
|
|
243
|
+
opacity?: number | undefined;
|
|
244
|
+
blur?: number | undefined;
|
|
245
|
+
brightness?: number | undefined;
|
|
246
|
+
fit?: string | undefined;
|
|
247
|
+
blendMode?: string | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
container?: {
|
|
250
|
+
color?: string | undefined;
|
|
251
|
+
opacity?: number | undefined;
|
|
252
|
+
backgroundImage?: string | undefined;
|
|
253
|
+
shadow?: {
|
|
254
|
+
color?: string | undefined;
|
|
255
|
+
size?: number | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
blur?: number | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
260
|
+
font?: {
|
|
261
|
+
color?: string | undefined;
|
|
262
|
+
fontSize?: number | undefined;
|
|
263
|
+
fontWeight?: number | undefined;
|
|
264
|
+
fontFamily?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
listStyle?: string | undefined;
|
|
267
|
+
primaryColor?: string | undefined;
|
|
268
|
+
customCSS?: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
confirmLabel?: string | undefined;
|
|
271
|
+
isStart?: boolean | undefined;
|
|
272
|
+
isEnd?: boolean | undefined;
|
|
273
|
+
autoSubmit?: boolean | undefined;
|
|
274
|
+
conditions?: {
|
|
275
|
+
operator: string;
|
|
276
|
+
trigger: string;
|
|
277
|
+
controlId: string;
|
|
278
|
+
compareValue?: string | undefined;
|
|
279
|
+
}[] | undefined;
|
|
280
|
+
};
|
|
281
|
+
export declare const operatorsRelation: Record<ControlType, OperatorType[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Утилита для безопасного скопинга пользовательского CSS
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Добавляет префикс контейнера к CSS селекторам для изоляции стилей
|
|
6
|
+
*
|
|
7
|
+
* @param css - Пользовательский CSS
|
|
8
|
+
* @param containerId - ID контейнера для скопинга (например, "#forms-provider-abc123")
|
|
9
|
+
* @returns Scoped CSS с префиксами
|
|
10
|
+
*/
|
|
11
|
+
export declare const scopeCustomCss: (css: string, containerId: string) => string;
|