survey-react 1.10.1 → 1.10.2
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 +78 -2
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +30 -11
- package/survey.react.js +259 -165
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
@@ -972,10 +972,10 @@ declare module "list" {
|
|
972
972
|
export class ListModel<T extends BaseAction = Action> extends ActionContainer<T> {
|
973
973
|
onSelectionChanged: (item: T, ...params: any[]) => void;
|
974
974
|
allowSelection: boolean;
|
975
|
-
private onFilterStringChangedCallback?;
|
976
975
|
elementId?: string;
|
977
976
|
private listContainerHtmlElement;
|
978
977
|
private loadingIndicatorValue;
|
978
|
+
private onFilterStringChangedCallback?;
|
979
979
|
searchEnabled: boolean;
|
980
980
|
showFilter: boolean;
|
981
981
|
forceShowFilter: boolean;
|
@@ -998,7 +998,7 @@ declare module "list" {
|
|
998
998
|
private get shouldProcessFilter();
|
999
999
|
private onFilterStringChanged;
|
1000
1000
|
private scrollToItem;
|
1001
|
-
constructor(items: Array<IAction>, onSelectionChanged: (item: T, ...params: any[]) => void, allowSelection: boolean, selectedItem?: IAction,
|
1001
|
+
constructor(items: Array<IAction>, onSelectionChanged: (item: T, ...params: any[]) => void, allowSelection: boolean, selectedItem?: IAction, elementId?: string);
|
1002
1002
|
private onTextSearchCallback;
|
1003
1003
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
1004
1004
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
@@ -3169,6 +3169,8 @@ declare module "panel" {
|
|
3169
3169
|
get _showDescription(): boolean;
|
3170
3170
|
localeChanged(): void;
|
3171
3171
|
locStrsChanged(): void;
|
3172
|
+
getMarkdownHtml(text: string, name: string): string;
|
3173
|
+
get locNavigationTitle(): LocalizableString;
|
3172
3174
|
get renderedNavigationTitle(): string;
|
3173
3175
|
/**
|
3174
3176
|
* Returns a character or text string that indicates a required panel/page.
|
@@ -3845,10 +3847,12 @@ declare module "question_file" {
|
|
3845
3847
|
set takePhotoCaption(val: string);
|
3846
3848
|
get locTakePhotoCaption(): LocalizableString;
|
3847
3849
|
replaceButtonCaption: string;
|
3848
|
-
clearButtonCaption: string;
|
3849
3850
|
removeFileCaption: string;
|
3850
3851
|
loadingFileTitle: string;
|
3851
3852
|
chooseFileTitle: string;
|
3853
|
+
get clearButtonCaption(): string;
|
3854
|
+
set clearButtonCaption(value: string);
|
3855
|
+
get locClearButtonCaption(): LocalizableString;
|
3852
3856
|
/**
|
3853
3857
|
* A placeholder text displayed when the File Upload question doesn't contain any files or photos to upload. Applies only when [`sourceType`](#sourceType) value is `"file-camera"`.
|
3854
3858
|
* @see filePlaceholder
|
@@ -7999,7 +8003,6 @@ declare module "page" {
|
|
7999
8003
|
*/
|
8000
8004
|
get navigationTitle(): string;
|
8001
8005
|
set navigationTitle(val: string);
|
8002
|
-
get locNavigationTitle(): LocalizableString;
|
8003
8006
|
/**
|
8004
8007
|
* Explanatory text displayed under a navigation button in the progress bar. Applies when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), `SurveyModel`'s [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
8005
8008
|
*/
|
@@ -8007,7 +8010,6 @@ declare module "page" {
|
|
8007
8010
|
set navigationDescription(val: string);
|
8008
8011
|
get locNavigationDescription(): LocalizableString;
|
8009
8012
|
navigationLocStrChanged(): void;
|
8010
|
-
get renderedNavigationTitle(): string;
|
8011
8013
|
get passed(): boolean;
|
8012
8014
|
set passed(val: boolean);
|
8013
8015
|
protected removeFromParent(): void;
|
@@ -11988,6 +11990,7 @@ declare module "survey" {
|
|
11988
11990
|
onScroll(): void;
|
11989
11991
|
addScrollEventListener(): void;
|
11990
11992
|
removeScrollEventListener(): void;
|
11993
|
+
questionErrorComponent: string;
|
11991
11994
|
}
|
11992
11995
|
}
|
11993
11996
|
declare module "knockout/kobase" {
|
@@ -16099,6 +16102,7 @@ declare module "dropdownListModel" {
|
|
16099
16102
|
get filterStringEnabled(): boolean;
|
16100
16103
|
get inputMode(): "none" | "text";
|
16101
16104
|
setSearchEnabled(newValue: boolean): void;
|
16105
|
+
setChoicesLazyLoadEnabled(newValue: boolean): void;
|
16102
16106
|
updateItems(): void;
|
16103
16107
|
onClick(event: any): void;
|
16104
16108
|
chevronPointerDown(event: any): void;
|
@@ -16302,6 +16306,8 @@ declare module "question_matrix" {
|
|
16302
16306
|
setValueDirectly(val: any): void;
|
16303
16307
|
get isReadOnly(): boolean;
|
16304
16308
|
get rowTextClasses(): string;
|
16309
|
+
get hasError(): boolean;
|
16310
|
+
set hasError(val: boolean);
|
16305
16311
|
get rowClasses(): string;
|
16306
16312
|
}
|
16307
16313
|
export interface IMatrixCellsOwner extends ILocalizableOwner {
|
@@ -16414,11 +16420,10 @@ declare module "question_matrix" {
|
|
16414
16420
|
supportGoNextPageAutomatic(): boolean;
|
16415
16421
|
private errorsInRow;
|
16416
16422
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
16417
|
-
private hasErrorAllRowsRequired;
|
16418
|
-
private hasErrorEachRowUnique;
|
16419
16423
|
private hasValuesInAllRows;
|
16420
|
-
private
|
16424
|
+
private checkErrorsAllRows;
|
16421
16425
|
private addErrorIntoRow;
|
16426
|
+
private refreshRowsErrors;
|
16422
16427
|
protected getIsAnswered(): boolean;
|
16423
16428
|
private createMatrixRow;
|
16424
16429
|
protected onMatrixRowCreated(row: MatrixRowModel): void;
|
@@ -16688,7 +16693,7 @@ declare module "multiSelectListModel" {
|
|
16688
16693
|
selectedItems: Array<IAction>;
|
16689
16694
|
hideSelectedItems: boolean;
|
16690
16695
|
private updateItemState;
|
16691
|
-
constructor(items: Array<IAction>, onSelectionChanged: (item: T, status: string) => void, allowSelection: boolean, selectedItems?: Array<IAction>,
|
16696
|
+
constructor(items: Array<IAction>, onSelectionChanged: (item: T, status: string) => void, allowSelection: boolean, selectedItems?: Array<IAction>, elementId?: string);
|
16692
16697
|
onItemClick: (item: T) => void;
|
16693
16698
|
isItemDisabled: (itemValue: T) => boolean;
|
16694
16699
|
isItemSelected: (itemValue: T) => boolean;
|
@@ -16984,6 +16989,7 @@ declare module "question_imagepicker" {
|
|
16984
16989
|
protected getObservedElementSelector(): string;
|
16985
16990
|
protected supportResponsiveness(): boolean;
|
16986
16991
|
protected needResponsiveness(): boolean;
|
16992
|
+
needResponsiveWidth(): boolean;
|
16987
16993
|
private _width;
|
16988
16994
|
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
16989
16995
|
private responsiveColCount;
|
@@ -26231,7 +26237,7 @@ declare module "react/reactquestion" {
|
|
26231
26237
|
import { SurveyElementBase, ReactSurveyElement } from "react/reactquestion_element";
|
26232
26238
|
export interface ISurveyCreator {
|
26233
26239
|
createQuestionElement(question: Question): JSX.Element | null;
|
26234
|
-
renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
|
26240
|
+
renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
|
26235
26241
|
questionTitleLocation(): string;
|
26236
26242
|
questionErrorLocation(): string;
|
26237
26243
|
}
|
@@ -26557,7 +26563,7 @@ declare module "react/reactSurvey" {
|
|
26557
26563
|
protected updateSurvey(newProps: any, oldProps?: any): void;
|
26558
26564
|
protected setSurveyEvents(): void;
|
26559
26565
|
createQuestionElement(question: Question): JSX.Element | null;
|
26560
|
-
renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
|
26566
|
+
renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
|
26561
26567
|
questionTitleLocation(): string;
|
26562
26568
|
questionErrorLocation(): string;
|
26563
26569
|
}
|
@@ -27453,6 +27459,18 @@ declare module "react/components/survey-actions/survey-nav-button" {
|
|
27453
27459
|
protected renderElement(): JSX.Element;
|
27454
27460
|
}
|
27455
27461
|
}
|
27462
|
+
declare module "react/components/question-error" {
|
27463
|
+
import React from "react";
|
27464
|
+
import { SurveyError } from "entries/core";
|
27465
|
+
export interface IQuestionErrorComponentProps {
|
27466
|
+
error: SurveyError;
|
27467
|
+
cssClasses: any;
|
27468
|
+
element: any;
|
27469
|
+
}
|
27470
|
+
export class QuestionErrorComponent extends React.Component<IQuestionErrorComponentProps, any> {
|
27471
|
+
render(): JSX.Element | null;
|
27472
|
+
}
|
27473
|
+
}
|
27456
27474
|
declare module "react/components/skeleton" {
|
27457
27475
|
import React from "react";
|
27458
27476
|
export class Skeleton extends React.Component<any, any> {
|
@@ -27568,6 +27586,7 @@ declare module "entries/react-ui-model" {
|
|
27568
27586
|
export { SurveyQuestionPanelDynamicNextButton } from "react/components/paneldynamic-actions/paneldynamic-next-btn";
|
27569
27587
|
export { SurveyQuestionPanelDynamicProgressText } from "react/components/paneldynamic-actions/paneldynamic-progress-text";
|
27570
27588
|
export { SurveyNavigationButton } from "react/components/survey-actions/survey-nav-button";
|
27589
|
+
export { QuestionErrorComponent } from "react/components/question-error";
|
27571
27590
|
export { MatrixRow } from "react/components/matrix/row";
|
27572
27591
|
export { Skeleton } from "react/components/skeleton";
|
27573
27592
|
export { NotifierComponent } from "react/components/notifier";
|