survey-creator-core 2.0.6 → 2.0.8
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/fesm/i18n/arabic.mjs +1 -1
- package/fesm/i18n/bulgarian.mjs +1 -1
- package/fesm/i18n/burmese.mjs +1 -1
- package/fesm/i18n/croatian.mjs +1 -1
- package/fesm/i18n/czech.mjs +1 -1
- package/fesm/i18n/danish.mjs +1 -1
- package/fesm/i18n/dutch.mjs +1 -1
- package/fesm/i18n/english.mjs +1 -1
- package/fesm/i18n/finnish.mjs +1 -1
- package/fesm/i18n/french.mjs +1 -1
- package/fesm/i18n/german.mjs +1 -1
- package/fesm/i18n/haitian-creole.mjs +1 -1
- package/fesm/i18n/hebrew.mjs +1 -1
- package/fesm/i18n/hungarian.mjs +1 -1
- package/fesm/i18n/index.mjs +1 -1
- package/fesm/i18n/indonesian.mjs +1 -1
- package/fesm/i18n/italian.mjs +1 -1
- package/fesm/i18n/japanese.mjs +1 -1
- package/fesm/i18n/korean.mjs +1 -1
- package/fesm/i18n/malay.mjs +1 -1
- package/fesm/i18n/mongolian.mjs +1 -1
- package/fesm/i18n/norwegian.mjs +1 -1
- package/fesm/i18n/persian.mjs +1 -1
- package/fesm/i18n/polish.mjs +1 -1
- package/fesm/i18n/portuguese.mjs +1 -1
- package/fesm/i18n/romanian.mjs +1 -1
- package/fesm/i18n/russian.mjs +1 -1
- package/fesm/i18n/simplified-chinese.mjs +1 -1
- package/fesm/i18n/slovak.mjs +1 -1
- package/fesm/i18n/slovenian.mjs +1 -1
- package/fesm/i18n/spanish.mjs +1 -1
- package/fesm/i18n/swedish.mjs +1 -1
- package/fesm/i18n/tajik.mjs +1 -1
- package/fesm/i18n/thai.mjs +1 -1
- package/fesm/i18n/traditional-chinese.mjs +1 -1
- package/fesm/i18n/turkish.mjs +1 -1
- package/fesm/survey-creator-core.i18n.mjs +1 -1
- package/fesm/survey-creator-core.mjs +201 -116
- package/fesm/survey-creator-core.mjs.map +1 -1
- package/fesm/themes/index.mjs +1 -1
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/haitian-creole.js +1 -1
- package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +61 -23
- package/survey-creator-core.fontless.css +60 -22
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +6 -6
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +249 -125
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/sc2020.js +1 -1
- package/themes/sc2020.min.js.LICENSE.txt +1 -1
- package/typings/components/action-container-view-model.d.ts +11 -1
- package/typings/components/image-item-value.d.ts +7 -0
- package/typings/creator-base.d.ts +14 -14
- package/typings/creator-options.d.ts +4 -12
- package/typings/custom-questions/question-file.d.ts +2 -0
- package/typings/property-grid/condition.d.ts +3 -0
- package/typings/property-grid/matrices.d.ts +0 -1
- package/typings/property-grid/object-selector.d.ts +0 -1
- package/typings/property-grid-theme/property-grid.d.ts +13 -0
package/themes/default-dark.js
CHANGED
package/themes/index.js
CHANGED
package/themes/sc2020.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { AdaptiveActionContainer } from "survey-core";
|
|
1
|
+
import { AdaptiveActionContainer, ResponsivityManager } from "survey-core";
|
|
2
|
+
declare class SurveyElementResponsivityManager extends ResponsivityManager {
|
|
3
|
+
private onGetAllowResponsivenessCallback?;
|
|
4
|
+
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, onGetAllowResponsivenessCallback?: () => boolean);
|
|
5
|
+
shouldProcessResponsiveness(): boolean;
|
|
6
|
+
}
|
|
2
7
|
export declare class SurveyElementActionContainer extends AdaptiveActionContainer {
|
|
3
8
|
alwaysShrink: boolean;
|
|
9
|
+
protected responsivityManager: SurveyElementResponsivityManager;
|
|
4
10
|
private needToShrink;
|
|
5
11
|
private setModeForActions;
|
|
6
12
|
private calcItemSize;
|
|
@@ -9,4 +15,8 @@ export declare class SurveyElementActionContainer extends AdaptiveActionContaine
|
|
|
9
15
|
availableSpace: number;
|
|
10
16
|
gap?: number;
|
|
11
17
|
}): void;
|
|
18
|
+
private isResponsivenessAllowed;
|
|
19
|
+
allowResponsiveness(): void;
|
|
20
|
+
protected createResponsivityManager(container: HTMLDivElement): ResponsivityManager;
|
|
12
21
|
}
|
|
22
|
+
export {};
|
|
@@ -17,9 +17,16 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
|
|
|
17
17
|
get selectFileTitle(): string;
|
|
18
18
|
get removeFileTitle(): string;
|
|
19
19
|
get addFileTitle(): string;
|
|
20
|
+
get placeholderText(): string;
|
|
21
|
+
get chooseImageText(): string;
|
|
22
|
+
get showChooseButtonAsIcon(): boolean;
|
|
23
|
+
get showPlaceholder(): boolean;
|
|
24
|
+
get addButtonCss(): string;
|
|
20
25
|
chooseFile(model: ImageItemValueWrapperViewModel): void;
|
|
21
26
|
uploadFiles(files: any): void;
|
|
22
27
|
chooseNewFile(model: ImageItemValueWrapperViewModel): void;
|
|
28
|
+
private onDragCounter;
|
|
29
|
+
onDragEnter: (event: any) => void;
|
|
23
30
|
onDragOver: (event: any) => void;
|
|
24
31
|
onDrop: (event: any) => void;
|
|
25
32
|
onDragLeave: (event: any) => void;
|
|
@@ -912,16 +912,11 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
912
912
|
get showSimulatorInPreviewTab(): boolean;
|
|
913
913
|
set showSimulatorInPreviewTab(val: boolean);
|
|
914
914
|
/**
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
* Accepted values: `"default"`
|
|
918
|
-
*
|
|
919
|
-
* Default value: `"default"`
|
|
920
|
-
* @see previewAllowSelectTheme
|
|
915
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
921
916
|
*/
|
|
922
917
|
previewTheme: string;
|
|
923
918
|
/**
|
|
924
|
-
* @deprecated
|
|
919
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
925
920
|
*/
|
|
926
921
|
get themeForPreview(): string;
|
|
927
922
|
set themeForPreview(val: string);
|
|
@@ -953,6 +948,16 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
953
948
|
*/
|
|
954
949
|
get theme(): ITheme;
|
|
955
950
|
set theme(newTheme: ITheme);
|
|
951
|
+
/**
|
|
952
|
+
* Applies a [theme](https://surveyjs.io/form-library/documentation/api-reference/itheme) to the survey being configured.
|
|
953
|
+
*
|
|
954
|
+
* [Theme Editor](https://surveyjs.io/survey-creator/documentation/theme-editor (linkStyle))
|
|
955
|
+
* @param surveyTheme An [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
956
|
+
* @see theme
|
|
957
|
+
* @see themeEditor
|
|
958
|
+
* @see saveThemeFunc
|
|
959
|
+
*/
|
|
960
|
+
applyTheme(surveyTheme: ITheme): void;
|
|
956
961
|
private _doSaveThemeCore;
|
|
957
962
|
/**
|
|
958
963
|
* Calls the [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) function to save the theme JSON schema.
|
|
@@ -1011,16 +1016,11 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1011
1016
|
get showInvisibleElementsInPreviewTab(): boolean;
|
|
1012
1017
|
set showInvisibleElementsInPreviewTab(val: boolean);
|
|
1013
1018
|
/**
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
1016
|
-
* Default value: `true`
|
|
1017
|
-
*
|
|
1018
|
-
* [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
|
|
1019
|
-
* @see previewTheme
|
|
1019
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
1020
1020
|
*/
|
|
1021
1021
|
previewAllowSelectTheme: boolean;
|
|
1022
1022
|
/**
|
|
1023
|
-
* @deprecated
|
|
1023
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
1024
1024
|
*/
|
|
1025
1025
|
get allowChangeThemeInPreview(): boolean;
|
|
1026
1026
|
set allowChangeThemeInPreview(val: boolean);
|
|
@@ -135,15 +135,11 @@ export interface ICreatorOptions {
|
|
|
135
135
|
*/
|
|
136
136
|
showPagesInPreviewTab?: boolean;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* Accepted values: `"default"`
|
|
141
|
-
*
|
|
142
|
-
* Default value: `"default"`
|
|
138
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
143
139
|
*/
|
|
144
140
|
previewTheme?: string;
|
|
145
141
|
/**
|
|
146
|
-
* @deprecated
|
|
142
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
147
143
|
*/
|
|
148
144
|
themeForPreview?: string;
|
|
149
145
|
/**
|
|
@@ -291,15 +287,11 @@ export interface ICreatorOptions {
|
|
|
291
287
|
*/
|
|
292
288
|
maxNestedPanels?: number;
|
|
293
289
|
/**
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
* Default value: `true`
|
|
297
|
-
*
|
|
298
|
-
* [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
|
|
290
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
299
291
|
*/
|
|
300
292
|
previewAllowSelectTheme?: boolean;
|
|
301
293
|
/**
|
|
302
|
-
* @deprecated
|
|
294
|
+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
|
|
303
295
|
*/
|
|
304
296
|
allowChangeThemeInPreview?: boolean;
|
|
305
297
|
/**
|
|
@@ -10,7 +10,9 @@ export declare class QuestionFileEditorModel extends QuestionFileModel {
|
|
|
10
10
|
private _renderedValue;
|
|
11
11
|
private notEmptyValuePlaceholder;
|
|
12
12
|
placeholder: string;
|
|
13
|
+
disableInput: boolean;
|
|
13
14
|
get renderedPlaceholder(): string;
|
|
15
|
+
get isTextInputReadOnly(): boolean;
|
|
14
16
|
protected updateRenderedValue(value: string): void;
|
|
15
17
|
get renderedValue(): string;
|
|
16
18
|
protected updateValueFromInputEvent(event: Event): void;
|
|
@@ -6,6 +6,9 @@ export declare class PropertyGridEditorExpression extends PropertyGridEditor {
|
|
|
6
6
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
7
7
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
8
8
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
9
|
+
private processExpression;
|
|
10
|
+
private valueToData;
|
|
11
|
+
private valueFromData;
|
|
9
12
|
}
|
|
10
13
|
export declare class PropertyGridEditorCondition extends PropertyGridEditorExpression {
|
|
11
14
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -59,7 +59,6 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
59
59
|
protected getMinimumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
60
60
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
61
61
|
private hasMultipleLanguage;
|
|
62
|
-
private hasVisibleIfOrEnableIf;
|
|
63
62
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
64
63
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
65
64
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SurveyCreatorModel } from "../creator-base";
|
|
2
2
|
import { Base, SurveyModel, ListModel, IAction, Action } from "survey-core";
|
|
3
3
|
export declare class ObjectSelectorItem extends Action {
|
|
4
|
-
data: Base;
|
|
5
4
|
level: number;
|
|
6
5
|
private textInLow;
|
|
7
6
|
constructor(id: number, data: Base, title: string, level: number);
|
|
@@ -217,6 +217,19 @@ export declare var propertyGridCss: {
|
|
|
217
217
|
itemDisabled: string;
|
|
218
218
|
itemControl: string;
|
|
219
219
|
readOnly: string;
|
|
220
|
+
rootDropdown: string;
|
|
221
|
+
selectWrapper: string;
|
|
222
|
+
control: string;
|
|
223
|
+
controlEmpty: string;
|
|
224
|
+
controlValue: string;
|
|
225
|
+
controlDisabled: string;
|
|
226
|
+
controlReadOnly: string;
|
|
227
|
+
controlPreview: string;
|
|
228
|
+
filterStringInput: string;
|
|
229
|
+
chevronButton: string;
|
|
230
|
+
chevronButtonSvg: string;
|
|
231
|
+
chevronButtonIconId: string;
|
|
232
|
+
popup: string;
|
|
220
233
|
};
|
|
221
234
|
imagepicker: {
|
|
222
235
|
root: string;
|