survey-react 1.11.3 → 1.11.4
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 +55 -15
- 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 +22 -8
- package/survey.react.js +118 -84
- 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
@@ -13,6 +13,9 @@ declare module "global_variables_utils" {
|
|
13
13
|
static requestAnimationFrame(callback: FrameRequestCallback): number;
|
14
14
|
static addEventListener(type: string, listener: (e?: any) => void): void;
|
15
15
|
static removeEventListener(type: string, listener: (e?: any) => void): void;
|
16
|
+
static matchMedia(mediaQueryString: string): {
|
17
|
+
matches: boolean;
|
18
|
+
} | null;
|
16
19
|
}
|
17
20
|
export class DomDocumentHelper {
|
18
21
|
static isAvailable(): boolean;
|
@@ -1494,6 +1497,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1494
1497
|
export var surveyCss: any;
|
1495
1498
|
export var defaultV2Css: {
|
1496
1499
|
root: string;
|
1500
|
+
rootProgress: string;
|
1497
1501
|
rootMobile: string;
|
1498
1502
|
rootAnimationDisabled: string;
|
1499
1503
|
rootReadOnly: string;
|
@@ -3243,6 +3247,7 @@ declare module "panel" {
|
|
3243
3247
|
showTitle: boolean;
|
3244
3248
|
get hasTitle(): boolean;
|
3245
3249
|
delete(doDispose?: boolean): void;
|
3250
|
+
private deletePanel;
|
3246
3251
|
protected removeFromParent(): void;
|
3247
3252
|
protected canShowTitle(): boolean;
|
3248
3253
|
showDescription: boolean;
|
@@ -3482,6 +3487,7 @@ declare module "panel" {
|
|
3482
3487
|
private updateRowsOnElementAdded;
|
3483
3488
|
protected onAddElement(element: IElement, index: number): void;
|
3484
3489
|
protected onRemoveElement(element: IElement): void;
|
3490
|
+
private onRemoveElementNotifySurvey;
|
3485
3491
|
private onElementVisibilityChanged;
|
3486
3492
|
private onElementStartWithNewLineChanged;
|
3487
3493
|
private updateRowsVisibility;
|
@@ -5399,6 +5405,10 @@ declare module "utils/devices" {
|
|
5399
5405
|
};
|
5400
5406
|
export let IsTouch: boolean;
|
5401
5407
|
export function _setIsTouch(val: boolean): void;
|
5408
|
+
export type MatchMediaMethod = ((query: string) => {
|
5409
|
+
matches: boolean;
|
5410
|
+
} | null) | null;
|
5411
|
+
export function detectMouseSupport(matchMedia: MatchMediaMethod): boolean;
|
5402
5412
|
}
|
5403
5413
|
declare module "dragdrop/dom-adapter" {
|
5404
5414
|
import { IDragDropEngine } from "dragdrop/engine";
|
@@ -8528,6 +8538,7 @@ declare module "mask/mask_utils" {
|
|
8528
8538
|
}
|
8529
8539
|
declare module "mask/mask_base" {
|
8530
8540
|
import { Base } from "base";
|
8541
|
+
import { ISurvey } from "base-interfaces";
|
8531
8542
|
import { IInputMask, IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
8532
8543
|
/**
|
8533
8544
|
* A base class for classes that implement input masks:
|
@@ -8544,6 +8555,8 @@ declare module "mask/mask_base" {
|
|
8544
8555
|
* Default value: `false`
|
8545
8556
|
*/
|
8546
8557
|
saveMaskedValue: boolean;
|
8558
|
+
owner: ISurvey;
|
8559
|
+
getSurvey(live?: boolean): ISurvey;
|
8547
8560
|
getType(): string;
|
8548
8561
|
setData(json: any): void;
|
8549
8562
|
getData(): any;
|
@@ -9718,7 +9731,7 @@ declare module "survey" {
|
|
9718
9731
|
*/
|
9719
9732
|
onUpdatePageCssClasses: EventBase<SurveyModel, UpdatePageCssClassesEvent>;
|
9720
9733
|
/**
|
9721
|
-
* An event that is raised before rendering a choice item in Radio Button Group
|
9734
|
+
* An event that is raised before rendering a choice item in Radio Button Group and Checkboxes questions. Use it to override default CSS classes applied to choice items.
|
9722
9735
|
*
|
9723
9736
|
* For information on event handler parameters, refer to descriptions within the interface.
|
9724
9737
|
*
|
@@ -10325,6 +10338,8 @@ declare module "survey" {
|
|
10325
10338
|
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
10326
10339
|
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
10327
10340
|
*
|
10341
|
+
* > The `"onValueChanged"` doesn't work with date input fields because of the way browsers process date values. In most browsers, the value is considered changed as soon as a user starts entering the date in a text input field. This means that a user may only enter the day without having the chance to enter the month and year before validation is triggered. For this reason, date input fields are validated before the survey is switched to the next page or completed.
|
10342
|
+
*
|
10328
10343
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
10329
10344
|
* @see validationEnabled
|
10330
10345
|
* @see validationAllowSwitchPages
|
@@ -15909,6 +15924,7 @@ declare module "settings" {
|
|
15909
15924
|
* This setting applies to all TagBox questions on a page. You can use the [closeOnSelect](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model#closeOnSelect) property to specify the same setting for an individual TagBox question.
|
15910
15925
|
*/
|
15911
15926
|
tagboxCloseOnSelect: boolean;
|
15927
|
+
dropdownSearchDelay: number;
|
15912
15928
|
/**
|
15913
15929
|
* A function that activates a browser confirm dialog.
|
15914
15930
|
*
|
@@ -16216,6 +16232,7 @@ declare module "dropdownListModel" {
|
|
16216
16232
|
protected onSelectionChanged?: (item: IAction, ...params: any[]) => void;
|
16217
16233
|
readonly minPageSize = 25;
|
16218
16234
|
readonly loadingItemHeight = 40;
|
16235
|
+
timer: any;
|
16219
16236
|
private htmlCleanerElement;
|
16220
16237
|
private _markdownMode;
|
16221
16238
|
private _popupModel;
|
@@ -16232,6 +16249,7 @@ declare module "dropdownListModel" {
|
|
16232
16249
|
protected listModelFilterStringChanged: (newValue: string) => void;
|
16233
16250
|
private resetItemsSettings;
|
16234
16251
|
private setItems;
|
16252
|
+
private loadQuestionChoices;
|
16235
16253
|
private updateQuestionChoices;
|
16236
16254
|
private updatePopupFocusFirstInputSelector;
|
16237
16255
|
protected createPopup(): void;
|
@@ -17270,7 +17288,6 @@ declare module "question_ranking" {
|
|
17270
17288
|
private domNode;
|
17271
17289
|
private dragOrClickHelper;
|
17272
17290
|
constructor(name: string);
|
17273
|
-
protected getDefaultItemComponent(): string;
|
17274
17291
|
getType(): string;
|
17275
17292
|
getItemTabIndex(item: ItemValue): number;
|
17276
17293
|
protected supportContainerQueries(): boolean;
|
@@ -17352,8 +17369,7 @@ declare module "question_ranking" {
|
|
17352
17369
|
/**
|
17353
17370
|
* The name of a component used to render items.
|
17354
17371
|
*/
|
17355
|
-
|
17356
|
-
set itemContentComponent(value: string);
|
17372
|
+
protected getDefaultItemComponent(): string;
|
17357
17373
|
/**
|
17358
17374
|
* Specifies whether users can select choices they want to rank.
|
17359
17375
|
*
|
@@ -17836,10 +17852,6 @@ declare module "question_boolean" {
|
|
17836
17852
|
getDefaultValue(): any;
|
17837
17853
|
get locTitle(): LocalizableString;
|
17838
17854
|
get labelRenderedAriaID(): string;
|
17839
|
-
leftAnswerElement: HTMLElement;
|
17840
|
-
thumbMargin: string;
|
17841
|
-
updateThumbMargin(): void;
|
17842
|
-
afterRender(el: HTMLElement): void;
|
17843
17855
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
17844
17856
|
showTitle: boolean;
|
17845
17857
|
label: string;
|
@@ -18674,6 +18686,7 @@ declare module "entries/chunks/model" {
|
|
18674
18686
|
declare module "defaultCss/cssstandard" {
|
18675
18687
|
export var defaultStandardCss: {
|
18676
18688
|
root: string;
|
18689
|
+
rootProgress: string;
|
18677
18690
|
container: string;
|
18678
18691
|
header: string;
|
18679
18692
|
bodyContainer: string;
|
@@ -19083,6 +19096,7 @@ declare module "defaultCss/cssstandard" {
|
|
19083
19096
|
declare module "defaultCss/cssmodern" {
|
19084
19097
|
export var modernCss: {
|
19085
19098
|
root: string;
|
19099
|
+
rootProgress: string;
|
19086
19100
|
timerRoot: string;
|
19087
19101
|
container: string;
|
19088
19102
|
header: string;
|