survey-core 1.12.18 → 1.12.20
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/defaultV2.css +1 -1
- package/defaultV2.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +166 -63
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_rating.d.ts +11 -4
- package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +3 -1
- package/typings/packages/survey-core/src/question.d.ts +1 -0
- package/typings/packages/survey-core/src/question_rating.d.ts +11 -4
- package/typings/packages/survey-core/src/question_text.d.ts +1 -0
- package/typings/packages/survey-core/src/survey.d.ts +3 -1
package/themes/solid-light.js
CHANGED
|
@@ -236,6 +236,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
236
236
|
private triggersInfo;
|
|
237
237
|
private addTriggerInfo;
|
|
238
238
|
private runTriggerInfo;
|
|
239
|
+
private canExecuteTriggerByKeys;
|
|
239
240
|
runTriggers(name: string, value: any, keys?: any): void;
|
|
240
241
|
private runConditions;
|
|
241
242
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
@@ -5,6 +5,7 @@ import { Base } from "./base";
|
|
|
5
5
|
import { DropdownListModel } from "./dropdownListModel";
|
|
6
6
|
import { ISurveyImpl } from "./base-interfaces";
|
|
7
7
|
import { ITheme } from "./themes";
|
|
8
|
+
import { HashTable } from "./helpers";
|
|
8
9
|
export declare class RenderedRatingItem extends Base {
|
|
9
10
|
itemValue: ItemValue;
|
|
10
11
|
private locString;
|
|
@@ -113,8 +114,16 @@ export declare class QuestionRatingModel extends Question {
|
|
|
113
114
|
readonly visibleRateValues: ItemValue[];
|
|
114
115
|
protected supportEmptyValidation(): boolean;
|
|
115
116
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
118
|
+
protected runRateItesmCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
119
|
+
private getRateValuesCore;
|
|
120
|
+
private calculateRateValues;
|
|
121
|
+
private calculateRenderedRateItems;
|
|
122
|
+
private calculateVisibleChoices;
|
|
123
|
+
private iCounter;
|
|
124
|
+
private resetRenderedItems;
|
|
125
|
+
readonly renderedRateItems: Array<RenderedRatingItem>;
|
|
126
|
+
readonly visibleChoices: ItemValue[];
|
|
118
127
|
private createRateValues;
|
|
119
128
|
private getRatingItemValue;
|
|
120
129
|
private correctValue;
|
|
@@ -263,8 +272,6 @@ export declare class QuestionRatingModel extends Question {
|
|
|
263
272
|
readonly searchEnabled: boolean;
|
|
264
273
|
renderedValue: any;
|
|
265
274
|
isItemSelected(item: ItemValue): boolean;
|
|
266
|
-
private visibleChoicesValue;
|
|
267
|
-
readonly visibleChoices: ItemValue[];
|
|
268
275
|
readonly readOnlyText: any;
|
|
269
276
|
needResponsiveWidth(): boolean;
|
|
270
277
|
protected supportResponsiveness(): boolean;
|
|
@@ -74,6 +74,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
74
74
|
inputType: string;
|
|
75
75
|
getMaxLength(): any;
|
|
76
76
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
77
|
+
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
77
78
|
isLayoutTypeSupported(layoutType: string): boolean;
|
|
78
79
|
/*
|
|
79
80
|
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` element.
|
|
@@ -1724,6 +1724,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1724
1724
|
*/
|
|
1725
1725
|
currentPage: any;
|
|
1726
1726
|
tryNavigateToPage(page: PageModel): boolean;
|
|
1727
|
+
private performValidationOnPageChanging;
|
|
1727
1728
|
private updateCurrentPage;
|
|
1728
1729
|
private readonly isCurrentPageAvailable: any;
|
|
1729
1730
|
private isPageExistsInSurvey;
|
|
@@ -2129,7 +2130,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2129
2130
|
private setIsValidatingOnServer;
|
|
2130
2131
|
private createServerValidationOptions;
|
|
2131
2132
|
protected onIsValidatingOnServerChanged(): void;
|
|
2132
|
-
protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
|
|
2133
|
+
protected doServerValidation(doComplete: boolean, isPreview?: boolean, page?: PageModel): boolean;
|
|
2133
2134
|
private completeServerValidation;
|
|
2134
2135
|
protected doNextPage(): void;
|
|
2135
2136
|
setCompleted(trigger: Trigger): void;
|
|
@@ -2559,6 +2560,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2559
2560
|
protected doOnPageRemoved(page: PageModel): void;
|
|
2560
2561
|
private generateNewName;
|
|
2561
2562
|
protected tryGoNextPageAutomatic(name: string): void;
|
|
2563
|
+
private tryCompleteOrShowPreview;
|
|
2562
2564
|
/**
|
|
2563
2565
|
* Returns a comment value from a question with a specified `name`.
|
|
2564
2566
|
* @param name A question name.
|
|
@@ -243,6 +243,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
243
243
|
private triggersInfo;
|
|
244
244
|
private addTriggerInfo;
|
|
245
245
|
private runTriggerInfo;
|
|
246
|
+
private canExecuteTriggerByKeys;
|
|
246
247
|
runTriggers(name: string, value: any, keys?: any): void;
|
|
247
248
|
private runConditions;
|
|
248
249
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
@@ -5,6 +5,7 @@ import { Base } from "./base";
|
|
|
5
5
|
import { DropdownListModel } from "./dropdownListModel";
|
|
6
6
|
import { ISurveyImpl } from "./base-interfaces";
|
|
7
7
|
import { ITheme } from "./themes";
|
|
8
|
+
import { HashTable } from "./helpers";
|
|
8
9
|
export declare class RenderedRatingItem extends Base {
|
|
9
10
|
itemValue: ItemValue;
|
|
10
11
|
private locString;
|
|
@@ -117,8 +118,16 @@ export declare class QuestionRatingModel extends Question {
|
|
|
117
118
|
get visibleRateValues(): ItemValue[];
|
|
118
119
|
protected supportEmptyValidation(): boolean;
|
|
119
120
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
122
|
+
protected runRateItesmCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
123
|
+
private getRateValuesCore;
|
|
124
|
+
private calculateRateValues;
|
|
125
|
+
private calculateRenderedRateItems;
|
|
126
|
+
private calculateVisibleChoices;
|
|
127
|
+
private iCounter;
|
|
128
|
+
private resetRenderedItems;
|
|
129
|
+
get renderedRateItems(): Array<RenderedRatingItem>;
|
|
130
|
+
get visibleChoices(): ItemValue[];
|
|
122
131
|
private createRateValues;
|
|
123
132
|
private getRatingItemValue;
|
|
124
133
|
private correctValue;
|
|
@@ -273,8 +282,6 @@ export declare class QuestionRatingModel extends Question {
|
|
|
273
282
|
get renderedValue(): any;
|
|
274
283
|
set renderedValue(val: any);
|
|
275
284
|
isItemSelected(item: ItemValue): boolean;
|
|
276
|
-
private visibleChoicesValue;
|
|
277
|
-
get visibleChoices(): ItemValue[];
|
|
278
285
|
get readOnlyText(): any;
|
|
279
286
|
needResponsiveWidth(): boolean;
|
|
280
287
|
protected supportResponsiveness(): boolean;
|
|
@@ -76,6 +76,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
76
76
|
set inputType(val: string);
|
|
77
77
|
getMaxLength(): any;
|
|
78
78
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
79
|
+
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
79
80
|
isLayoutTypeSupported(layoutType: string): boolean;
|
|
80
81
|
/**
|
|
81
82
|
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` element.
|
|
@@ -1797,6 +1797,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1797
1797
|
get currentPage(): any;
|
|
1798
1798
|
set currentPage(value: any);
|
|
1799
1799
|
tryNavigateToPage(page: PageModel): boolean;
|
|
1800
|
+
private performValidationOnPageChanging;
|
|
1800
1801
|
private updateCurrentPage;
|
|
1801
1802
|
private get isCurrentPageAvailable();
|
|
1802
1803
|
private isPageExistsInSurvey;
|
|
@@ -2217,7 +2218,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2217
2218
|
private setIsValidatingOnServer;
|
|
2218
2219
|
private createServerValidationOptions;
|
|
2219
2220
|
protected onIsValidatingOnServerChanged(): void;
|
|
2220
|
-
protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
|
|
2221
|
+
protected doServerValidation(doComplete: boolean, isPreview?: boolean, page?: PageModel): boolean;
|
|
2221
2222
|
private completeServerValidation;
|
|
2222
2223
|
protected doNextPage(): void;
|
|
2223
2224
|
setCompleted(trigger: Trigger): void;
|
|
@@ -2647,6 +2648,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2647
2648
|
protected doOnPageRemoved(page: PageModel): void;
|
|
2648
2649
|
private generateNewName;
|
|
2649
2650
|
protected tryGoNextPageAutomatic(name: string): void;
|
|
2651
|
+
private tryCompleteOrShowPreview;
|
|
2650
2652
|
/**
|
|
2651
2653
|
* Returns a comment value from a question with a specified `name`.
|
|
2652
2654
|
* @param name A question name.
|