survey-core
Advanced tools
Comparing version 1.9.95 to 1.9.96
{ | ||
"name": "survey-core", | ||
"version": "1.9.95", | ||
"version": "1.9.96", | ||
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
/*! | ||
* surveyjs - Survey JavaScript library v1.9.95 | ||
* surveyjs - Survey JavaScript library v1.9.96 | ||
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT (http://www.opensource.org/licenses/mit-license.php) |
/*! | ||
* surveyjs - Survey JavaScript library v1.9.95 | ||
* surveyjs - Survey JavaScript library v1.9.96 | ||
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT (http://www.opensource.org/licenses/mit-license.php) |
@@ -11,2 +11,3 @@ import { ILocalizableOwner, LocalizableString } from "./localizablestring"; | ||
import { DragDropAllowEvent } from "./survey-events-api"; | ||
import { PopupModel } from "./popup"; | ||
export interface ISurveyData { | ||
@@ -149,2 +150,3 @@ getValue(name: string): any; | ||
onCorrectQuestionAnswer(question: IQuestion, options: any): void; | ||
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void; | ||
} | ||
@@ -242,2 +244,3 @@ export interface ISurveyImpl { | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
} | ||
@@ -244,0 +247,0 @@ export interface IPage extends IPanel, IConditionRunner { |
@@ -220,2 +220,3 @@ import { HashTable } from "./helpers"; | ||
validate(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean; | ||
validateContainerOnly(): void; | ||
private hasErrorsInPanels; | ||
@@ -222,0 +223,0 @@ getErrorCustomText(text: string, error: SurveyError): string; |
@@ -79,2 +79,4 @@ import { Base } from "./base"; | ||
protected onSurveyComplete(): void; | ||
private onScrollCallback; | ||
onScroll(): void; | ||
} | ||
@@ -81,0 +83,0 @@ /** |
@@ -28,2 +28,4 @@ import { SurveyError } from "./survey-error"; | ||
private waitingGetChoiceDisplayValueResponse; | ||
private readonly waitingChoicesByURL: any; | ||
private readonly waitingAcyncOperations: any; | ||
protected selectedItemValues: any; | ||
@@ -30,0 +32,0 @@ constructor(name: string); |
@@ -265,2 +265,3 @@ import { Question, IConditionObject } from "./question"; | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
protected getContentDisplayValueCore(keyAsText: boolean, value: any, question: Question): any; | ||
@@ -267,0 +268,0 @@ } |
@@ -126,2 +126,3 @@ import { QuestionMatrixBaseModel } from "./martixBase"; | ||
onQuestionReadOnlyChanged(parentIsReadOnly: boolean): void; | ||
private validationValues; | ||
hasErrors(fireCallback: boolean, rec: any, raiseOnCompletedAsyncValidators: () => void): boolean; | ||
@@ -128,0 +129,0 @@ protected updateCellOnColumnChanged(cell: MatrixDropdownCell, name: string, newValue: any): void; |
@@ -18,21 +18,3 @@ import { Question } from "./question"; | ||
} | ||
export declare var matrixDropdownColumnTypes: { | ||
dropdown: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
checkbox: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
radiogroup: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
tagbox: {}; | ||
text: {}; | ||
comment: {}; | ||
boolean: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
expression: {}; | ||
rating: {}; | ||
}; | ||
export declare var matrixDropdownColumnTypes: any; | ||
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject { | ||
@@ -39,0 +21,0 @@ static getColumnTypes(): Array<string>; |
@@ -199,2 +199,3 @@ import { Base } from "./base"; | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
getItemLabelCss(item: MultipleTextItemModel): string; | ||
@@ -201,0 +202,0 @@ getItemCss(): string; |
@@ -9,2 +9,3 @@ import { Question } from "./question"; | ||
isDrawingValue: boolean; | ||
private getPenColorFromTheme; | ||
protected getCssRoot(cssClasses: any): string; | ||
@@ -18,11 +19,11 @@ protected updateValue(): void; | ||
destroySignaturePad(el: HTMLElement): void; | ||
/** | ||
* Specifies the format in which to store the signature image. | ||
* | ||
* Possible values: | ||
* | ||
* - `""` (default) - PNG | ||
* - `"image/jpeg"` - JPEG | ||
* - `"image/svg+xml"` - SVG | ||
*/ | ||
/* | ||
* Specifies the format in which to store the signature image. | ||
* | ||
* Possible values: | ||
* | ||
* - `"png"` (default) | ||
* - `"jpeg"` | ||
* - `"svg"` | ||
*/ | ||
dataFormat: string; | ||
@@ -29,0 +30,0 @@ /* |
@@ -11,2 +11,3 @@ import { HashTable } from "./helpers"; | ||
import { SurveyError } from "./survey-error"; | ||
import { PopupModel } from "./popup"; | ||
export interface IConditionObject { | ||
@@ -91,3 +92,3 @@ name: string; | ||
protected onNameChanged(oldValue: string): void; | ||
readonly isReady: boolean; | ||
isReady: boolean; | ||
readonly ariaRequired: "true" | "false"; | ||
@@ -702,2 +703,3 @@ readonly ariaInvalid: "true" | "false"; | ||
getAllValues(): any; | ||
processPopupVisiblilityChanged(popupModel: PopupModel, visible: boolean): void; | ||
transformToMobileView(): void; | ||
@@ -704,0 +706,0 @@ transformToDesktopView(): void; |
@@ -7,2 +7,3 @@ import { IAction } from "./actions/action"; | ||
import { PanelModel, PanelModelBase } from "./panel"; | ||
import { PopupModel } from "./popup"; | ||
import { Question } from "./question"; | ||
@@ -447,3 +448,3 @@ import { QuestionFileModel } from "./question_file"; | ||
/** | ||
* a response from the service | ||
* A server [response](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response). | ||
*/ | ||
@@ -453,3 +454,3 @@ response: any; | ||
/** | ||
* it is `true` if the results has been sent to the service successfully | ||
* A Boolean value that indicates whether survey results have been saved successfully. | ||
*/ | ||
@@ -460,17 +461,31 @@ success: boolean; | ||
/** | ||
* the server response | ||
* A server [response](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response). | ||
*/ | ||
response: any; | ||
/** | ||
* an array of objects `{name, value}`, where `name` is a unique value/answer to the question and `value` is a number/count of such answers | ||
* A Boolean value that indicates whether survey results have been retrieved successfully. | ||
*/ | ||
dataList: Array<any>; | ||
success: boolean; | ||
/** | ||
* the object `{AnswersCount, QuestionResult : {} }`. `AnswersCount` is the number of posted survey results. `QuestionResult` is an object with all possible unique answers to the question and number of these answers | ||
* An object with the following structure: | ||
* | ||
* ```js | ||
* { | ||
* AnswersCount: Number, // A total number of posted answers to the question | ||
* QuestionResult: Object // All unique answers to the question and their number | ||
* } | ||
* ``` | ||
*/ | ||
data: any; | ||
/** | ||
* it is `true` if the results were got from the service successfully | ||
* An array of objects with the following structure: | ||
* | ||
* ```js | ||
* { | ||
* name: String, // A unique answer to the question | ||
* value: Number // The number of user responses with this answer | ||
* } | ||
* ``` | ||
*/ | ||
success: boolean; | ||
dataList: Array<any>; | ||
} | ||
@@ -922,1 +937,11 @@ export interface LoadFilesEvent extends FileQuestionEventMixin { | ||
} | ||
export interface PopupVisibleChangedEvent extends QuestionEventMixin { | ||
/** | ||
* An object that describes the popup. | ||
*/ | ||
popup: PopupModel; | ||
/** | ||
* Indicates whether the popup is visible now. | ||
*/ | ||
visible: boolean; | ||
} |
import { Action } from "./actions/action"; | ||
import { ListModel } from "./list"; | ||
import { PageModel } from "./page"; | ||
import { PopupModel } from "./popup"; | ||
import { SurveyModel } from "./survey"; | ||
export declare function tryNavigateToPage(survey: SurveyModel, page: PageModel): boolean; | ||
export declare function createTOCListModel(survey: SurveyModel): ListModel<Action>; | ||
export declare function getTocRootCss(survey: SurveyModel): string; | ||
export declare function createTOCListModel(survey: SurveyModel, onAction?: () => void): ListModel<Action>; | ||
export declare function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string; | ||
export declare class TOCModel { | ||
survey: SurveyModel; | ||
constructor(survey: SurveyModel); | ||
isMobile: boolean; | ||
readonly containerCss: string; | ||
listModel: ListModel<Action>; | ||
popupModel: PopupModel; | ||
icon: string; | ||
togglePopup: () => void; | ||
} |
@@ -11,2 +11,3 @@ import { ILocalizableOwner, LocalizableString } from "./localizablestring"; | ||
import { DragDropAllowEvent } from "./survey-events-api"; | ||
import { PopupModel } from "./popup"; | ||
export interface ISurveyData { | ||
@@ -149,2 +150,3 @@ getValue(name: string): any; | ||
onCorrectQuestionAnswer(question: IQuestion, options: any): void; | ||
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void; | ||
} | ||
@@ -242,2 +244,3 @@ export interface ISurveyImpl { | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
} | ||
@@ -244,0 +247,0 @@ export interface IPage extends IPanel, IConditionRunner { |
@@ -229,2 +229,3 @@ import { HashTable } from "./helpers"; | ||
validate(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean; | ||
validateContainerOnly(): void; | ||
private hasErrorsInPanels; | ||
@@ -231,0 +232,0 @@ getErrorCustomText(text: string, error: SurveyError): string; |
@@ -82,2 +82,4 @@ import { Base } from "./base"; | ||
protected onSurveyComplete(): void; | ||
private onScrollCallback; | ||
onScroll(): void; | ||
} | ||
@@ -84,0 +86,0 @@ /** |
@@ -28,2 +28,4 @@ import { SurveyError } from "./survey-error"; | ||
private waitingGetChoiceDisplayValueResponse; | ||
private get waitingChoicesByURL(); | ||
private get waitingAcyncOperations(); | ||
protected selectedItemValues: any; | ||
@@ -30,0 +32,0 @@ constructor(name: string); |
@@ -265,2 +265,3 @@ import { Question, IConditionObject } from "./question"; | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
protected getContentDisplayValueCore(keyAsText: boolean, value: any, question: Question): any; | ||
@@ -267,0 +268,0 @@ } |
@@ -128,2 +128,3 @@ import { QuestionMatrixBaseModel } from "./martixBase"; | ||
onQuestionReadOnlyChanged(parentIsReadOnly: boolean): void; | ||
private validationValues; | ||
hasErrors(fireCallback: boolean, rec: any, raiseOnCompletedAsyncValidators: () => void): boolean; | ||
@@ -130,0 +131,0 @@ protected updateCellOnColumnChanged(cell: MatrixDropdownCell, name: string, newValue: any): void; |
@@ -18,21 +18,3 @@ import { Question } from "./question"; | ||
} | ||
export declare var matrixDropdownColumnTypes: { | ||
dropdown: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
checkbox: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
radiogroup: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
tagbox: {}; | ||
text: {}; | ||
comment: {}; | ||
boolean: { | ||
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void; | ||
}; | ||
expression: {}; | ||
rating: {}; | ||
}; | ||
export declare var matrixDropdownColumnTypes: any; | ||
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject { | ||
@@ -39,0 +21,0 @@ static getColumnTypes(): Array<string>; |
@@ -215,2 +215,3 @@ import { Base } from "./base"; | ||
ensureRowsVisibility(): void; | ||
validateContainerOnly(): void; | ||
getItemLabelCss(item: MultipleTextItemModel): string; | ||
@@ -217,0 +218,0 @@ getItemCss(): string; |
@@ -9,2 +9,3 @@ import { Question } from "./question"; | ||
isDrawingValue: boolean; | ||
private getPenColorFromTheme; | ||
protected getCssRoot(cssClasses: any): string; | ||
@@ -23,7 +24,8 @@ protected updateValue(): void; | ||
* | ||
* - `""` (default) - PNG | ||
* - `"image/jpeg"` - JPEG | ||
* - `"image/svg+xml"` - SVG | ||
* - `"png"` (default) | ||
* - `"jpeg"` | ||
* - `"svg"` | ||
*/ | ||
dataFormat: string; | ||
get dataFormat(): string; | ||
set dataFormat(val: string); | ||
/** | ||
@@ -30,0 +32,0 @@ * Specifies the width of the signature area. Accepts positive integer numbers. |
@@ -11,2 +11,3 @@ import { HashTable } from "./helpers"; | ||
import { SurveyError } from "./survey-error"; | ||
import { PopupModel } from "./popup"; | ||
export interface IConditionObject { | ||
@@ -92,2 +93,3 @@ name: string; | ||
protected onNameChanged(oldValue: string): void; | ||
set isReady(val: boolean); | ||
get isReady(): boolean; | ||
@@ -734,2 +736,3 @@ get ariaRequired(): "true" | "false"; | ||
getAllValues(): any; | ||
processPopupVisiblilityChanged(popupModel: PopupModel, visible: boolean): void; | ||
transformToMobileView(): void; | ||
@@ -736,0 +739,0 @@ transformToDesktopView(): void; |
@@ -7,2 +7,3 @@ import { IAction } from "./actions/action"; | ||
import { PanelModel, PanelModelBase } from "./panel"; | ||
import { PopupModel } from "./popup"; | ||
import { Question } from "./question"; | ||
@@ -447,3 +448,3 @@ import { QuestionFileModel } from "./question_file"; | ||
/** | ||
* a response from the service | ||
* A server [response](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response). | ||
*/ | ||
@@ -453,3 +454,3 @@ response: any; | ||
/** | ||
* it is `true` if the results has been sent to the service successfully | ||
* A Boolean value that indicates whether survey results have been saved successfully. | ||
*/ | ||
@@ -460,17 +461,31 @@ success: boolean; | ||
/** | ||
* the server response | ||
* A server [response](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response). | ||
*/ | ||
response: any; | ||
/** | ||
* an array of objects `{name, value}`, where `name` is a unique value/answer to the question and `value` is a number/count of such answers | ||
* A Boolean value that indicates whether survey results have been retrieved successfully. | ||
*/ | ||
dataList: Array<any>; | ||
success: boolean; | ||
/** | ||
* the object `{AnswersCount, QuestionResult : {} }`. `AnswersCount` is the number of posted survey results. `QuestionResult` is an object with all possible unique answers to the question and number of these answers | ||
* An object with the following structure: | ||
* | ||
* ```js | ||
* { | ||
* AnswersCount: Number, // A total number of posted answers to the question | ||
* QuestionResult: Object // All unique answers to the question and their number | ||
* } | ||
* ``` | ||
*/ | ||
data: any; | ||
/** | ||
* it is `true` if the results were got from the service successfully | ||
* An array of objects with the following structure: | ||
* | ||
* ```js | ||
* { | ||
* name: String, // A unique answer to the question | ||
* value: Number // The number of user responses with this answer | ||
* } | ||
* ``` | ||
*/ | ||
success: boolean; | ||
dataList: Array<any>; | ||
} | ||
@@ -922,1 +937,11 @@ export interface LoadFilesEvent extends FileQuestionEventMixin { | ||
} | ||
export interface PopupVisibleChangedEvent extends QuestionEventMixin { | ||
/** | ||
* An object that describes the popup. | ||
*/ | ||
popup: PopupModel; | ||
/** | ||
* Indicates whether the popup is visible now. | ||
*/ | ||
visible: boolean; | ||
} |
import { Action } from "./actions/action"; | ||
import { ListModel } from "./list"; | ||
import { PageModel } from "./page"; | ||
import { PopupModel } from "./popup"; | ||
import { SurveyModel } from "./survey"; | ||
export declare function tryNavigateToPage(survey: SurveyModel, page: PageModel): boolean; | ||
export declare function createTOCListModel(survey: SurveyModel): ListModel<Action>; | ||
export declare function getTocRootCss(survey: SurveyModel): string; | ||
export declare function createTOCListModel(survey: SurveyModel, onAction?: () => void): ListModel<Action>; | ||
export declare function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string; | ||
export declare class TOCModel { | ||
survey: SurveyModel; | ||
constructor(survey: SurveyModel); | ||
isMobile: boolean; | ||
get containerCss(): string; | ||
listModel: ListModel<Action>; | ||
popupModel: PopupModel; | ||
icon: string; | ||
togglePopup: () => void; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12241023
123108