survey-react 1.9.136 → 1.9.138
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 +353 -9
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +187 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +392 -134
- package/survey.react.js +1300 -265
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -650,15 +650,95 @@ declare module "utils/cssClassBuilder" {
|
|
650
650
|
toString(): string;
|
651
651
|
}
|
652
652
|
}
|
653
|
+
declare module "utils/taskmanager" {
|
654
|
+
export interface IExecutable {
|
655
|
+
id?: string;
|
656
|
+
execute: () => void;
|
657
|
+
isCompleted: boolean;
|
658
|
+
dispose?: () => void;
|
659
|
+
}
|
660
|
+
export class Task implements IExecutable {
|
661
|
+
private func;
|
662
|
+
private isMultiple;
|
663
|
+
private _isCompleted;
|
664
|
+
constructor(func: () => void, isMultiple?: boolean);
|
665
|
+
execute: () => void;
|
666
|
+
discard(): void;
|
667
|
+
get isCompleted(): boolean;
|
668
|
+
}
|
669
|
+
export class TaskManger {
|
670
|
+
private interval;
|
671
|
+
private static instance;
|
672
|
+
private static tasks;
|
673
|
+
private constructor();
|
674
|
+
static Instance(): TaskManger;
|
675
|
+
private tick;
|
676
|
+
static schedule(task: IExecutable): void;
|
677
|
+
}
|
678
|
+
export function debounce<T extends (...args: any) => void>(func: T): {
|
679
|
+
run: T;
|
680
|
+
cancel: () => void;
|
681
|
+
};
|
682
|
+
}
|
683
|
+
declare module "utils/animation" {
|
684
|
+
export interface AnimationOptions {
|
685
|
+
cssClass: string;
|
686
|
+
onBeforeRunAnimation?: (element: HTMLElement) => void;
|
687
|
+
onAfterRunAnimation?: (element: HTMLElement) => void;
|
688
|
+
}
|
689
|
+
export interface IAnimationConsumer<T extends Array<any> = []> {
|
690
|
+
getLeaveOptions(...args: T): AnimationOptions;
|
691
|
+
getEnterOptions(...args: T): AnimationOptions;
|
692
|
+
getAnimatedElement(...args: T): HTMLElement;
|
693
|
+
isAnimationEnabled(): boolean;
|
694
|
+
}
|
695
|
+
export class AnimationUtils {
|
696
|
+
private getMsFromRule;
|
697
|
+
private getAnimationsCount;
|
698
|
+
private getAnimationDuration;
|
699
|
+
private cancelQueue;
|
700
|
+
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
701
|
+
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
702
|
+
protected runLeaveAnimation(element: HTMLElement, options: AnimationOptions, callback: () => void): void;
|
703
|
+
protected runEnterAnimation(element: HTMLElement, options: AnimationOptions): void;
|
704
|
+
cancel(): void;
|
705
|
+
}
|
706
|
+
export class AnimationPropertyUtils extends AnimationUtils {
|
707
|
+
onEnter(getElement: () => HTMLElement, options: AnimationOptions): void;
|
708
|
+
onLeave(getElement: () => HTMLElement, callback: () => void, options: AnimationOptions): void;
|
709
|
+
}
|
710
|
+
export class AnimationGroupUtils<T> extends AnimationUtils {
|
711
|
+
onEnter(getElement: (el: T) => HTMLElement, getOptions: (el: T) => AnimationOptions, elements: Array<T>): void;
|
712
|
+
onLeave(getElement: (el: T) => HTMLElement, callback: () => void, getOptions: (el: T) => AnimationOptions, elements: Array<T>): void;
|
713
|
+
}
|
714
|
+
abstract class AnimationProperty<T, S extends Array<any> = []> {
|
715
|
+
protected animationOptions: IAnimationConsumer<S>;
|
716
|
+
protected update: (val: T) => void;
|
717
|
+
protected getCurrentValue: () => T;
|
718
|
+
constructor(animationOptions: IAnimationConsumer<S>, update: (val: T) => void, getCurrentValue: () => T);
|
719
|
+
protected animation: AnimationUtils;
|
720
|
+
protected abstract _sync(newValue: T): void;
|
721
|
+
private _debouncedSync;
|
722
|
+
sync(newValue: T): void;
|
723
|
+
cancel(): void;
|
724
|
+
}
|
725
|
+
export class AnimationBoolean extends AnimationProperty<boolean> {
|
726
|
+
protected animation: AnimationPropertyUtils;
|
727
|
+
protected _sync(newValue: boolean): void;
|
728
|
+
}
|
729
|
+
export class AnimationGroup<T> extends AnimationProperty<Array<T>, [T]> {
|
730
|
+
protected animation: AnimationGroupUtils<T>;
|
731
|
+
protected _sync(newValue: Array<T>): void;
|
732
|
+
}
|
733
|
+
}
|
653
734
|
declare module "popup-view-model" {
|
654
|
-
import { Base } from "base";
|
735
|
+
import { Base, EventBase } from "base";
|
655
736
|
import { PopupModel } from "popup";
|
656
737
|
import { CssClassBuilder } from "utils/cssClassBuilder";
|
657
738
|
import { ActionContainer } from "actions/container";
|
739
|
+
import { AnimationOptions, IAnimationConsumer } from "utils/animation";
|
658
740
|
export const FOCUS_INPUT_SELECTOR = "input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^=\"-\"])";
|
659
|
-
export class PopupBaseViewModel extends Base {
|
660
|
-
private static SubscriptionId;
|
661
|
-
private subscriptionId;
|
741
|
+
export class PopupBaseViewModel extends Base implements IAnimationConsumer {
|
662
742
|
protected popupSelector: string;
|
663
743
|
protected fixedPopupContainer: string;
|
664
744
|
protected containerSelector: string;
|
@@ -670,8 +750,18 @@ declare module "popup-view-model" {
|
|
670
750
|
height: string;
|
671
751
|
width: string;
|
672
752
|
minWidth: string;
|
673
|
-
|
753
|
+
_isVisible: boolean;
|
674
754
|
locale: string;
|
755
|
+
private updateIsVisible;
|
756
|
+
private visibilityAnimation;
|
757
|
+
getLeaveOptions(): AnimationOptions;
|
758
|
+
getEnterOptions(): AnimationOptions;
|
759
|
+
getAnimatedElement(): HTMLElement;
|
760
|
+
isAnimationEnabled(): boolean;
|
761
|
+
private getAnimationContainer;
|
762
|
+
set isVisible(val: boolean);
|
763
|
+
get isVisible(): boolean;
|
764
|
+
onVisibilityChanged: EventBase<PopupBaseViewModel, any>;
|
675
765
|
get container(): HTMLElement;
|
676
766
|
private containerElement;
|
677
767
|
private createdContainer;
|
@@ -684,6 +774,7 @@ declare module "popup-view-model" {
|
|
684
774
|
protected createFooterActionBar(): void;
|
685
775
|
protected resetDimensionsAndPositionStyleProperties(): void;
|
686
776
|
protected onModelChanging(newModel: PopupModel): void;
|
777
|
+
private onModelIsVisibleChangedCallback;
|
687
778
|
private setupModel;
|
688
779
|
private _model;
|
689
780
|
get model(): PopupModel;
|
@@ -1357,6 +1448,10 @@ declare module "defaultCss/defaultV2Css" {
|
|
1357
1448
|
edit: string;
|
1358
1449
|
};
|
1359
1450
|
panel: {
|
1451
|
+
contentFadeIn: string;
|
1452
|
+
contentFadeOut: string;
|
1453
|
+
fadeIn: string;
|
1454
|
+
fadeOut: string;
|
1360
1455
|
asPage: string;
|
1361
1456
|
number: string;
|
1362
1457
|
title: string;
|
@@ -1379,6 +1474,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
1379
1474
|
header: string;
|
1380
1475
|
collapsed: string;
|
1381
1476
|
expanded: string;
|
1477
|
+
expandable: string;
|
1478
|
+
expandableAnimating: string;
|
1382
1479
|
nested: string;
|
1383
1480
|
invisible: string;
|
1384
1481
|
navigationButton: string;
|
@@ -1466,8 +1563,14 @@ declare module "defaultCss/defaultV2Css" {
|
|
1466
1563
|
row: string;
|
1467
1564
|
rowMultiple: string;
|
1468
1565
|
rowCompact: string;
|
1566
|
+
rowFadeIn: string;
|
1567
|
+
rowFadeOut: string;
|
1469
1568
|
pageRow: string;
|
1470
1569
|
question: {
|
1570
|
+
contentFadeIn: string;
|
1571
|
+
contentFadeOut: string;
|
1572
|
+
fadeIn: string;
|
1573
|
+
fadeOut: string;
|
1471
1574
|
mainRoot: string;
|
1472
1575
|
flowRoot: string;
|
1473
1576
|
withFrame: string;
|
@@ -1510,6 +1613,8 @@ declare module "defaultCss/defaultV2Css" {
|
|
1510
1613
|
hasErrorTop: string;
|
1511
1614
|
hasErrorBottom: string;
|
1512
1615
|
collapsed: string;
|
1616
|
+
expandable: string;
|
1617
|
+
expandableAnimating: string;
|
1513
1618
|
expanded: string;
|
1514
1619
|
nested: string;
|
1515
1620
|
invisible: string;
|
@@ -2334,6 +2439,89 @@ declare module "textPreProcessor" {
|
|
2334
2439
|
private processTextCore;
|
2335
2440
|
}
|
2336
2441
|
}
|
2442
|
+
declare module "error" {
|
2443
|
+
import { SurveyError } from "survey-error";
|
2444
|
+
import { ISurveyErrorOwner } from "base-interfaces";
|
2445
|
+
export class AnswerRequiredError extends SurveyError {
|
2446
|
+
text: string;
|
2447
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2448
|
+
getErrorType(): string;
|
2449
|
+
protected getDefaultText(): string;
|
2450
|
+
}
|
2451
|
+
export class OneAnswerRequiredError extends SurveyError {
|
2452
|
+
text: string;
|
2453
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2454
|
+
getErrorType(): string;
|
2455
|
+
protected getDefaultText(): string;
|
2456
|
+
}
|
2457
|
+
export class RequreNumericError extends SurveyError {
|
2458
|
+
text: string;
|
2459
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2460
|
+
getErrorType(): string;
|
2461
|
+
protected getDefaultText(): string;
|
2462
|
+
}
|
2463
|
+
export class ExceedSizeError extends SurveyError {
|
2464
|
+
private maxSize;
|
2465
|
+
constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
|
2466
|
+
getErrorType(): string;
|
2467
|
+
getDefaultText(): string;
|
2468
|
+
private getTextSize;
|
2469
|
+
}
|
2470
|
+
export class WebRequestError extends SurveyError {
|
2471
|
+
status: string;
|
2472
|
+
response: string;
|
2473
|
+
constructor(status: string, response: string, errorOwner?: ISurveyErrorOwner);
|
2474
|
+
getErrorType(): string;
|
2475
|
+
protected getDefaultText(): string;
|
2476
|
+
}
|
2477
|
+
export class WebRequestEmptyError extends SurveyError {
|
2478
|
+
text: string;
|
2479
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2480
|
+
getErrorType(): string;
|
2481
|
+
protected getDefaultText(): string;
|
2482
|
+
}
|
2483
|
+
export class OtherEmptyError extends SurveyError {
|
2484
|
+
text: string;
|
2485
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2486
|
+
getErrorType(): string;
|
2487
|
+
protected getDefaultText(): string;
|
2488
|
+
}
|
2489
|
+
export class UploadingFileError extends SurveyError {
|
2490
|
+
text: string;
|
2491
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2492
|
+
getErrorType(): string;
|
2493
|
+
protected getDefaultText(): string;
|
2494
|
+
}
|
2495
|
+
export class RequiredInAllRowsError extends SurveyError {
|
2496
|
+
text: string;
|
2497
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2498
|
+
getErrorType(): string;
|
2499
|
+
protected getDefaultText(): string;
|
2500
|
+
}
|
2501
|
+
export class EachRowUniqueError extends SurveyError {
|
2502
|
+
text: string;
|
2503
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2504
|
+
getErrorType(): string;
|
2505
|
+
protected getDefaultText(): string;
|
2506
|
+
}
|
2507
|
+
export class MinRowCountError extends SurveyError {
|
2508
|
+
minRowCount: number;
|
2509
|
+
constructor(minRowCount: number, errorOwner?: ISurveyErrorOwner);
|
2510
|
+
getErrorType(): string;
|
2511
|
+
protected getDefaultText(): string;
|
2512
|
+
}
|
2513
|
+
export class KeyDuplicationError extends SurveyError {
|
2514
|
+
text: string;
|
2515
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2516
|
+
getErrorType(): string;
|
2517
|
+
protected getDefaultText(): string;
|
2518
|
+
}
|
2519
|
+
export class CustomError extends SurveyError {
|
2520
|
+
text: string;
|
2521
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2522
|
+
getErrorType(): string;
|
2523
|
+
}
|
2524
|
+
}
|
2337
2525
|
declare module "question_custom" {
|
2338
2526
|
import { Question, IConditionObject } from "question";
|
2339
2527
|
import { JsonObjectProperty } from "jsonobject";
|
@@ -2343,6 +2531,7 @@ declare module "question_custom" {
|
|
2343
2531
|
import { PanelModel } from "panel";
|
2344
2532
|
import { HashTable } from "helpers";
|
2345
2533
|
import { ItemValue } from "itemvalue";
|
2534
|
+
import { SurveyError } from "survey-error";
|
2346
2535
|
/**
|
2347
2536
|
* An interface used to create custom question types.
|
2348
2537
|
*
|
@@ -2561,6 +2750,13 @@ declare module "question_custom" {
|
|
2561
2750
|
* @see questionJSON
|
2562
2751
|
*/
|
2563
2752
|
createQuestion?: any;
|
2753
|
+
/**
|
2754
|
+
* A function that allows you to display different error texts based on conditions.
|
2755
|
+
* @param question A custom question. Use the `question.value` property to access the question's value.
|
2756
|
+
* @returns An error text.
|
2757
|
+
*/
|
2758
|
+
getErrorText?: (question: Question) => string;
|
2759
|
+
onSetQuestionValue?: (question: Question, newValue: any) => void;
|
2564
2760
|
valueToQuestion?: (val: any) => any;
|
2565
2761
|
valueFromQuestion?: (val: any) => any;
|
2566
2762
|
getValue?: (val: any) => any;
|
@@ -2577,9 +2773,11 @@ declare module "question_custom" {
|
|
2577
2773
|
onAfterRender(question: Question, htmlElement: any): void;
|
2578
2774
|
onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
|
2579
2775
|
onUpdateQuestionCssClasses(question: Question, element: Question, css: any): void;
|
2776
|
+
onSetQuestionValue(question: Question, newValue: any): void;
|
2580
2777
|
onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
|
2581
2778
|
onValueChanged(question: Question, name: string, newValue: any): void;
|
2582
2779
|
onValueChanging(question: Question, name: string, newValue: any): any;
|
2780
|
+
onGetErrorText(question: Question): string;
|
2583
2781
|
onItemValuePropertyChanged(question: Question, item: ItemValue, propertyName: string, name: string, newValue: any): void;
|
2584
2782
|
getDisplayValue(keyAsText: boolean, value: any, question: Question): any;
|
2585
2783
|
get defaultQuestionTitle(): any;
|
@@ -2632,6 +2830,7 @@ declare module "question_custom" {
|
|
2632
2830
|
protected onUpdateQuestionCssClasses(element: Question, css: any): void;
|
2633
2831
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
2634
2832
|
protected setNewValue(newValue: any): void;
|
2833
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
2635
2834
|
getSurveyData(): ISurveyData;
|
2636
2835
|
getTextProcessor(): ITextProcessor;
|
2637
2836
|
getValue(name: string): any;
|
@@ -2771,89 +2970,6 @@ declare module "questionfactory" {
|
|
2771
2970
|
createElement(elementType: string, name: string): IElement;
|
2772
2971
|
}
|
2773
2972
|
}
|
2774
|
-
declare module "error" {
|
2775
|
-
import { SurveyError } from "survey-error";
|
2776
|
-
import { ISurveyErrorOwner } from "base-interfaces";
|
2777
|
-
export class AnswerRequiredError extends SurveyError {
|
2778
|
-
text: string;
|
2779
|
-
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2780
|
-
getErrorType(): string;
|
2781
|
-
protected getDefaultText(): string;
|
2782
|
-
}
|
2783
|
-
export class OneAnswerRequiredError extends SurveyError {
|
2784
|
-
text: string;
|
2785
|
-
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2786
|
-
getErrorType(): string;
|
2787
|
-
protected getDefaultText(): string;
|
2788
|
-
}
|
2789
|
-
export class RequreNumericError extends SurveyError {
|
2790
|
-
text: string;
|
2791
|
-
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
2792
|
-
getErrorType(): string;
|
2793
|
-
protected getDefaultText(): string;
|
2794
|
-
}
|
2795
|
-
export class ExceedSizeError extends SurveyError {
|
2796
|
-
private maxSize;
|
2797
|
-
constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
|
2798
|
-
getErrorType(): string;
|
2799
|
-
getDefaultText(): string;
|
2800
|
-
private getTextSize;
|
2801
|
-
}
|
2802
|
-
export class WebRequestError extends SurveyError {
|
2803
|
-
status: string;
|
2804
|
-
response: string;
|
2805
|
-
constructor(status: string, response: string, errorOwner?: ISurveyErrorOwner);
|
2806
|
-
getErrorType(): string;
|
2807
|
-
protected getDefaultText(): string;
|
2808
|
-
}
|
2809
|
-
export class WebRequestEmptyError extends SurveyError {
|
2810
|
-
text: string;
|
2811
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2812
|
-
getErrorType(): string;
|
2813
|
-
protected getDefaultText(): string;
|
2814
|
-
}
|
2815
|
-
export class OtherEmptyError extends SurveyError {
|
2816
|
-
text: string;
|
2817
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2818
|
-
getErrorType(): string;
|
2819
|
-
protected getDefaultText(): string;
|
2820
|
-
}
|
2821
|
-
export class UploadingFileError extends SurveyError {
|
2822
|
-
text: string;
|
2823
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2824
|
-
getErrorType(): string;
|
2825
|
-
protected getDefaultText(): string;
|
2826
|
-
}
|
2827
|
-
export class RequiredInAllRowsError extends SurveyError {
|
2828
|
-
text: string;
|
2829
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2830
|
-
getErrorType(): string;
|
2831
|
-
protected getDefaultText(): string;
|
2832
|
-
}
|
2833
|
-
export class EachRowUniqueError extends SurveyError {
|
2834
|
-
text: string;
|
2835
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2836
|
-
getErrorType(): string;
|
2837
|
-
protected getDefaultText(): string;
|
2838
|
-
}
|
2839
|
-
export class MinRowCountError extends SurveyError {
|
2840
|
-
minRowCount: number;
|
2841
|
-
constructor(minRowCount: number, errorOwner?: ISurveyErrorOwner);
|
2842
|
-
getErrorType(): string;
|
2843
|
-
protected getDefaultText(): string;
|
2844
|
-
}
|
2845
|
-
export class KeyDuplicationError extends SurveyError {
|
2846
|
-
text: string;
|
2847
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2848
|
-
getErrorType(): string;
|
2849
|
-
protected getDefaultText(): string;
|
2850
|
-
}
|
2851
|
-
export class CustomError extends SurveyError {
|
2852
|
-
text: string;
|
2853
|
-
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
2854
|
-
getErrorType(): string;
|
2855
|
-
}
|
2856
|
-
}
|
2857
2973
|
declare module "drag-drop-helper-v1" {
|
2858
2974
|
import { IElement, ISurveyElement } from "base-interfaces";
|
2859
2975
|
export class DragDropInfo {
|
@@ -2896,6 +3012,7 @@ declare module "panel" {
|
|
2896
3012
|
import { IAction } from "actions/action";
|
2897
3013
|
import { ActionContainer } from "actions/container";
|
2898
3014
|
import { DragDropInfo } from "drag-drop-helper-v1";
|
3015
|
+
import { AnimationGroup } from "utils/animation";
|
2899
3016
|
export class QuestionRowModel extends Base {
|
2900
3017
|
panel: PanelModelBase;
|
2901
3018
|
private static rowCounter;
|
@@ -2911,8 +3028,13 @@ declare module "panel" {
|
|
2911
3028
|
setIsLazyRendering(val: boolean): void;
|
2912
3029
|
isLazyRendering(): boolean;
|
2913
3030
|
get id(): string;
|
3031
|
+
protected equalsCore(obj: Base): boolean;
|
2914
3032
|
get elements(): Array<IElement>;
|
3033
|
+
private getVisibleElementsAnimationOptions;
|
3034
|
+
visibleElementsAnimation: AnimationGroup<IElement>;
|
3035
|
+
set visibleElements(val: Array<IElement>);
|
2915
3036
|
get visibleElements(): Array<IElement>;
|
3037
|
+
onVisibleChangedCallback: () => void;
|
2916
3038
|
get visible(): boolean;
|
2917
3039
|
set visible(val: boolean);
|
2918
3040
|
get isNeedRender(): boolean;
|
@@ -2924,11 +3046,12 @@ declare module "panel" {
|
|
2924
3046
|
private getRenderedCalcWidth;
|
2925
3047
|
private getElementWidth;
|
2926
3048
|
private getRenderedWidthFromWidth;
|
2927
|
-
private calcVisible;
|
2928
|
-
private needToUpdateVisibleElements;
|
2929
3049
|
dragTypeOverMe: DragTypeOverMeEnum;
|
2930
3050
|
dispose(): void;
|
2931
3051
|
getRowCss(): string;
|
3052
|
+
private rootElement?;
|
3053
|
+
setRootElement(element?: HTMLElement): void;
|
3054
|
+
getRootElement(): HTMLElement;
|
2932
3055
|
}
|
2933
3056
|
/**
|
2934
3057
|
* A base class for the [PanelModel](https://surveyjs.io/form-library/documentation/panelmodel) and [PageModel](https://surveyjs.io/form-library/documentation/pagemodel) classes.
|
@@ -2943,6 +3066,13 @@ declare module "panel" {
|
|
2943
3066
|
removeElementCallback: (element: IElement) => void;
|
2944
3067
|
onGetQuestionTitleLocation: () => string;
|
2945
3068
|
private dragDropPanelHelper;
|
3069
|
+
onAddRow(row: QuestionRowModel): void;
|
3070
|
+
private getRowsAnimationOptions;
|
3071
|
+
private rowsAnimation;
|
3072
|
+
get visibleRows(): Array<QuestionRowModel>;
|
3073
|
+
set visibleRows(val: Array<QuestionRowModel>);
|
3074
|
+
onRemoveRow(row: QuestionRowModel): void;
|
3075
|
+
onRowVisibleChanged(): void;
|
2946
3076
|
constructor(name?: string);
|
2947
3077
|
getType(): string;
|
2948
3078
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
@@ -3214,7 +3344,8 @@ declare module "panel" {
|
|
3214
3344
|
* @see visible
|
3215
3345
|
*/
|
3216
3346
|
get isVisible(): boolean;
|
3217
|
-
|
3347
|
+
getIsContentVisible(exceptionQuestion?: IQuestion): boolean;
|
3348
|
+
getIsPageVisible(exceptionQuestion?: IQuestion): boolean;
|
3218
3349
|
private lastVisibleIndex;
|
3219
3350
|
setVisibleIndex(index: number): number;
|
3220
3351
|
private updateVisibleIndexes;
|
@@ -4833,10 +4964,9 @@ declare module "question_matrixdropdowncolumn" {
|
|
4833
4964
|
get locTitle(): LocalizableString;
|
4834
4965
|
get fullTitle(): string;
|
4835
4966
|
/**
|
4836
|
-
* Marks the column as required. If a respondent skips any cell in a required column, the matrix displays a validation error.
|
4967
|
+
* Marks the column as required. If a respondent skips any cell in a required column, the matrix displays a [validation error](#requiredErrorText).
|
4837
4968
|
*
|
4838
4969
|
* If you want to mark the column as required based on a condition, specify the [`requiredIf`](#requiredIf) property.
|
4839
|
-
* @see requiredErrorText
|
4840
4970
|
* @see visible
|
4841
4971
|
* @see readOnly
|
4842
4972
|
*/
|
@@ -5200,7 +5330,7 @@ declare module "dragdrop/core" {
|
|
5200
5330
|
}
|
5201
5331
|
declare module "dragdrop/matrix-rows" {
|
5202
5332
|
import { MatrixDropdownRowModelBase } from "question_matrixdropdownbase";
|
5203
|
-
import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
|
5333
|
+
import { QuestionMatrixDynamicModel, MatrixDynamicRowModel } from "question_matrixdynamic";
|
5204
5334
|
import { DragDropCore } from "dragdrop/core";
|
5205
5335
|
export class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
5206
5336
|
protected get draggedElementType(): string;
|
@@ -5210,6 +5340,7 @@ declare module "dragdrop/matrix-rows" {
|
|
5210
5340
|
private fromIndex;
|
5211
5341
|
private toIndex;
|
5212
5342
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
5343
|
+
canInsertIntoThisRow(row: MatrixDynamicRowModel): boolean;
|
5213
5344
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
|
5214
5345
|
protected calculateIsBottom(clientY: number): boolean;
|
5215
5346
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
@@ -5486,6 +5617,8 @@ declare module "question_matrixdynamic" {
|
|
5486
5617
|
get allowRowsDragAndDrop(): boolean;
|
5487
5618
|
set allowRowsDragAndDrop(val: boolean);
|
5488
5619
|
get isRowsDragAndDrop(): boolean;
|
5620
|
+
get lockedRowCount(): number;
|
5621
|
+
set lockedRowCount(val: number);
|
5489
5622
|
get iconDragElement(): string;
|
5490
5623
|
protected createRenderedTable(): QuestionMatrixDropdownRenderedTable;
|
5491
5624
|
private get rowCountValue();
|
@@ -8190,6 +8323,7 @@ declare module "mask/input_element_adapter" {
|
|
8190
8323
|
private prevUnmaskedValue;
|
8191
8324
|
constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: string);
|
8192
8325
|
inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
|
8326
|
+
clickHandler: (event: any) => void;
|
8193
8327
|
beforeInputHandler: (event: any) => void;
|
8194
8328
|
createArgs(event: any): ITextInputParams;
|
8195
8329
|
addInputEventListener(): void;
|
@@ -8260,6 +8394,8 @@ declare module "question_text" {
|
|
8260
8394
|
onSurveyLoad(): void;
|
8261
8395
|
/**
|
8262
8396
|
* A value passed on to the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) attribute of the underlying `<input>` element.
|
8397
|
+
*
|
8398
|
+
* Default value: `"text"`
|
8263
8399
|
*/
|
8264
8400
|
get inputType(): string;
|
8265
8401
|
set inputType(val: string);
|
@@ -8390,6 +8526,7 @@ declare module "question_multipletext" {
|
|
8390
8526
|
import { SurveyError } from "survey-error";
|
8391
8527
|
import { ILocalizableOwner, LocalizableString } from "localizablestring";
|
8392
8528
|
import { HashTable } from "helpers";
|
8529
|
+
import { InputMaskBase } from "mask/mask_base";
|
8393
8530
|
export interface IMultipleTextData extends ILocalizableOwner, IPanel {
|
8394
8531
|
getSurvey(): ISurvey;
|
8395
8532
|
getTextProcessor(): ITextProcessor;
|
@@ -8405,9 +8542,9 @@ declare module "question_multipletext" {
|
|
8405
8542
|
get a11y_input_ariaDescribedBy(): string;
|
8406
8543
|
}
|
8407
8544
|
/**
|
8408
|
-
* A class that describes an item
|
8545
|
+
* A class that describes an [item](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model#items) in a Multiple Textboxes question.
|
8409
8546
|
*
|
8410
|
-
* [View Demo](https://surveyjs.io/form-library/examples/multiple-text-box-question/)
|
8547
|
+
* [View Demo](https://surveyjs.io/form-library/examples/multiple-text-box-question/ (linkStyle))
|
8411
8548
|
*/
|
8412
8549
|
export class MultipleTextItemModel extends Base implements IValidatorOwner, ISurveyData, ISurveyImpl {
|
8413
8550
|
private editorValue;
|
@@ -8418,7 +8555,10 @@ declare module "question_multipletext" {
|
|
8418
8555
|
get id(): string;
|
8419
8556
|
getOriginalObj(): Base;
|
8420
8557
|
/**
|
8421
|
-
*
|
8558
|
+
* An item ID that is not visible to respondents.
|
8559
|
+
*
|
8560
|
+
* > Item IDs must be unique.
|
8561
|
+
* @see title
|
8422
8562
|
*/
|
8423
8563
|
get name(): string;
|
8424
8564
|
set name(val: string);
|
@@ -8431,33 +8571,34 @@ declare module "question_multipletext" {
|
|
8431
8571
|
setData(data: IMultipleTextData): void;
|
8432
8572
|
focusIn: () => void;
|
8433
8573
|
/**
|
8434
|
-
*
|
8574
|
+
* Marks the item as required. If a respondent leaves this item empty, the question displays a [validation error](#requiredErrorText).
|
8435
8575
|
*/
|
8436
8576
|
get isRequired(): boolean;
|
8437
8577
|
set isRequired(val: boolean);
|
8438
8578
|
/**
|
8439
|
-
*
|
8579
|
+
* A value passed on to the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) attribute of the underlying `<input>` element.
|
8580
|
+
*
|
8581
|
+
* Default value: `"text"`
|
8440
8582
|
*/
|
8441
8583
|
get inputType(): string;
|
8442
8584
|
set inputType(val: string);
|
8443
8585
|
/**
|
8444
|
-
*
|
8445
|
-
* @see name
|
8586
|
+
* A user-friendly item label to display. If `title` is undefined, [`name`](https://surveyjs.io/form-library/documentation/api-reference/multipletextitemmodel#name) is displayed instead.
|
8446
8587
|
*/
|
8447
8588
|
get title(): string;
|
8448
8589
|
set title(val: string);
|
8449
8590
|
get locTitle(): LocalizableString;
|
8450
8591
|
get fullTitle(): string;
|
8451
8592
|
/**
|
8452
|
-
* The maximum text length
|
8453
|
-
*
|
8454
|
-
*
|
8593
|
+
* The maximum text length measured in characters. Assign 0 if the length should be unlimited.
|
8594
|
+
*
|
8595
|
+
* Default value: -1 (inherits the actual value from the `SurveyModel`'s [`maxTextLength`](https://surveyjs.io/form-library/documentation/surveymodel#maxTextLength) property).
|
8455
8596
|
*/
|
8456
8597
|
get maxLength(): number;
|
8457
8598
|
set maxLength(val: number);
|
8458
8599
|
getMaxLength(): any;
|
8459
8600
|
/**
|
8460
|
-
*
|
8601
|
+
* A placeholder for the input field.
|
8461
8602
|
*/
|
8462
8603
|
get placeholder(): string;
|
8463
8604
|
set placeholder(val: string);
|
@@ -8466,39 +8607,83 @@ declare module "question_multipletext" {
|
|
8466
8607
|
set placeHolder(val: string);
|
8467
8608
|
get locPlaceHolder(): LocalizableString;
|
8468
8609
|
/**
|
8469
|
-
*
|
8610
|
+
* Specifies a custom error message for a [required item](#isRequired).
|
8470
8611
|
*/
|
8471
8612
|
get requiredErrorText(): string;
|
8472
8613
|
set requiredErrorText(val: string);
|
8473
8614
|
get locRequiredErrorText(): LocalizableString;
|
8474
8615
|
/**
|
8475
|
-
*
|
8616
|
+
* A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` element.
|
8617
|
+
*
|
8618
|
+
* If you want to set a uniform `size` for all text box items, use the [`itemSize`](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model#itemSize) within the Multiple Textboxes configuration.
|
8476
8619
|
*/
|
8477
8620
|
get size(): number;
|
8478
8621
|
set size(val: number);
|
8479
8622
|
/**
|
8480
|
-
* An expression
|
8623
|
+
* An [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) used to calculate the default item value.
|
8624
|
+
* @see minValueExpression
|
8625
|
+
* @see maxValueExpression
|
8481
8626
|
*/
|
8482
8627
|
get defaultValueExpression(): string;
|
8483
8628
|
set defaultValueExpression(val: string);
|
8484
8629
|
/**
|
8485
|
-
*
|
8630
|
+
* An [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) used to calculate the minimum item value.
|
8631
|
+
* @see maxValueExpression
|
8632
|
+
* @see defaultValueExpression
|
8486
8633
|
*/
|
8487
8634
|
get minValueExpression(): string;
|
8488
8635
|
set minValueExpression(val: string);
|
8489
8636
|
/**
|
8490
|
-
*
|
8637
|
+
* An [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) used to calculate the maximum item value.
|
8638
|
+
* @see minValueExpression
|
8639
|
+
* @see defaultValueExpression
|
8491
8640
|
*/
|
8492
8641
|
get maxValueExpression(): string;
|
8493
8642
|
set maxValueExpression(val: string);
|
8494
8643
|
/**
|
8495
|
-
*
|
8644
|
+
* Item validators.
|
8645
|
+
*
|
8646
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
8496
8647
|
*/
|
8497
8648
|
get validators(): Array<SurveyValidator>;
|
8498
8649
|
set validators(val: Array<SurveyValidator>);
|
8499
8650
|
getValidators(): Array<SurveyValidator>;
|
8500
8651
|
/**
|
8501
|
-
*
|
8652
|
+
* Specifies the type of a mask applied to the input.
|
8653
|
+
*
|
8654
|
+
* Possible values:
|
8655
|
+
*
|
8656
|
+
* - `"none"` (default)
|
8657
|
+
* - `"numeric"`
|
8658
|
+
* - `"currency"`
|
8659
|
+
* - `"datetime"`
|
8660
|
+
* - `"pattern"`
|
8661
|
+
*
|
8662
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
8663
|
+
* @see maskSettings
|
8664
|
+
*/
|
8665
|
+
get maskType(): string;
|
8666
|
+
set maskType(val: string);
|
8667
|
+
/**
|
8668
|
+
* An object with properties that configure the mask applied to the input.
|
8669
|
+
*
|
8670
|
+
* Available properties depend on the specified [`maskType`](#maskType) and belong to corresponding classes. Refer to the class APIs for a full list of properties:
|
8671
|
+
*
|
8672
|
+
* | `maskType` | Class |
|
8673
|
+
* | ---------- | ----- |
|
8674
|
+
* | `"numeric"` | [`InputMaskNumeric`](https://surveyjs.io/form-library/documentation/api-reference/inputmasknumeric) |
|
8675
|
+
* | `"currency"` | [`InputMaskCurrency`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskcurrency) |
|
8676
|
+
* | `"datetime"` | [`InputMaskDateTime`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskdatetime) |
|
8677
|
+
* | `"pattern"` | [`InputMaskPattern`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern) |
|
8678
|
+
*
|
8679
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
8680
|
+
*/
|
8681
|
+
get maskSettings(): InputMaskBase;
|
8682
|
+
set maskSettings(val: InputMaskBase);
|
8683
|
+
get inputTextAlignment(): "left" | "right" | "auto";
|
8684
|
+
set inputTextAlignment(val: "left" | "right" | "auto");
|
8685
|
+
/**
|
8686
|
+
* An item value.
|
8502
8687
|
*/
|
8503
8688
|
get value(): any;
|
8504
8689
|
set value(value: any);
|
@@ -8545,9 +8730,9 @@ declare module "question_multipletext" {
|
|
8545
8730
|
private editorsOnSurveyLoad;
|
8546
8731
|
private performForEveryEditor;
|
8547
8732
|
/**
|
8548
|
-
* Gets or sets an array of `MultipleTextItemModel` objects that represent input items.
|
8733
|
+
* Gets or sets an array of [`MultipleTextItemModel`](https://surveyjs.io/form-library/documentation/api-reference/multipletextitemmodel) objects that represent input items.
|
8549
8734
|
*
|
8550
|
-
*
|
8735
|
+
* Each object in this array should have at least the following properties:
|
8551
8736
|
*
|
8552
8737
|
* ```js
|
8553
8738
|
* {
|
@@ -8570,6 +8755,7 @@ declare module "question_multipletext" {
|
|
8570
8755
|
*/
|
8571
8756
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
8572
8757
|
getItemByName(name: string): MultipleTextItemModel;
|
8758
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
8573
8759
|
addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
|
8574
8760
|
protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
|
8575
8761
|
getConditionJson(operator?: string, path?: string): any;
|
@@ -12007,7 +12193,7 @@ declare module "survey-element" {
|
|
12007
12193
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
12008
12194
|
protected getSearchableLocKeys(keys: Array<string>): void;
|
12009
12195
|
get isDefaultV2Theme(): boolean;
|
12010
|
-
get hasParent():
|
12196
|
+
get hasParent(): boolean;
|
12011
12197
|
isSingleInRow: boolean;
|
12012
12198
|
private shouldAddRunnerStyles;
|
12013
12199
|
protected get isCompact(): boolean;
|
@@ -12082,6 +12268,20 @@ declare module "survey-element" {
|
|
12082
12268
|
protected getAdditionalTitleToolbar(): ActionContainer | null;
|
12083
12269
|
protected getCssTitle(cssClasses: any): string;
|
12084
12270
|
localeChanged(): void;
|
12271
|
+
private wrapperElement?;
|
12272
|
+
setWrapperElement(element?: HTMLElement): void;
|
12273
|
+
getWrapperElement(): HTMLElement;
|
12274
|
+
private _renderedIsExpanded;
|
12275
|
+
private _isAnimatingCollapseExpand;
|
12276
|
+
private set isAnimatingCollapseExpand(value);
|
12277
|
+
private get isAnimatingCollapseExpand();
|
12278
|
+
private getExpandCollapseAnimationOptions;
|
12279
|
+
private animationCollapsed;
|
12280
|
+
set renderedIsExpanded(val: boolean);
|
12281
|
+
get renderedIsExpanded(): boolean;
|
12282
|
+
private animationAllowedValue;
|
12283
|
+
get animationAllowed(): boolean;
|
12284
|
+
set animationAllowed(val: boolean);
|
12085
12285
|
dispose(): void;
|
12086
12286
|
}
|
12087
12287
|
}
|
@@ -14895,12 +15095,12 @@ declare module "base" {
|
|
14895
15095
|
private getValueInLowCase;
|
14896
15096
|
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
14897
15097
|
}
|
14898
|
-
export class ArrayChanges {
|
15098
|
+
export class ArrayChanges<T = any> {
|
14899
15099
|
index: number;
|
14900
15100
|
deleteCount: number;
|
14901
|
-
itemsToAdd:
|
14902
|
-
deletedItems:
|
14903
|
-
constructor(index: number, deleteCount: number, itemsToAdd:
|
15101
|
+
itemsToAdd: T[];
|
15102
|
+
deletedItems: T[];
|
15103
|
+
constructor(index: number, deleteCount: number, itemsToAdd: T[], deletedItems: T[]);
|
14904
15104
|
}
|
14905
15105
|
export class Event<CallbackFunction extends Function, Sender, Options> {
|
14906
15106
|
onCallbacksChanged: () => void;
|
@@ -16509,11 +16709,12 @@ declare module "question_imagepicker" {
|
|
16509
16709
|
/**
|
16510
16710
|
* Specifies the height of containers for images or videos. Accepts positive numbers and CSS values.
|
16511
16711
|
*
|
16512
|
-
* Default value:
|
16712
|
+
* Default value: `auto`
|
16513
16713
|
*
|
16514
|
-
*
|
16714
|
+
* This property allows you to specify the exact image height. If you do not set it, the height will be calculated automatically based on the [`minImageHeight`](#minImageHeight) and [`maxImageHeight`](#maxImageHeight) values and available screen height.
|
16715
|
+
*
|
16716
|
+
* Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
|
16515
16717
|
* @see imageWidth
|
16516
|
-
* @see imageFit
|
16517
16718
|
*/
|
16518
16719
|
get imageHeight(): number;
|
16519
16720
|
set imageHeight(val: number);
|
@@ -16522,11 +16723,12 @@ declare module "question_imagepicker" {
|
|
16522
16723
|
/**
|
16523
16724
|
* Specifies the width of containers for images or videos. Accepts positive numbers and CSS values.
|
16524
16725
|
*
|
16525
|
-
* Default value:
|
16726
|
+
* Default value: `auto`
|
16727
|
+
*
|
16728
|
+
* This property allows you to specify the exact image width. If you do not set it, the width will be calculated automatically based on the [`minImageWidth`](#minImageWidth) and [`maxImageWidth`](#maxImageWidth) values and available screen width.
|
16526
16729
|
*
|
16527
|
-
* Use the `imageFit` property to specify how to fit the images or videos into their containers.
|
16730
|
+
* Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
|
16528
16731
|
* @see imageHeight
|
16529
|
-
* @see imageFit
|
16530
16732
|
*/
|
16531
16733
|
get imageWidth(): number;
|
16532
16734
|
set imageWidth(val: number);
|
@@ -16557,9 +16759,37 @@ declare module "question_imagepicker" {
|
|
16557
16759
|
protected addToVisibleChoices(items: Array<ItemValue>, isAddAll: boolean): void;
|
16558
16760
|
getSelectBaseRootCss(): string;
|
16559
16761
|
private isResponsiveValue;
|
16762
|
+
/**
|
16763
|
+
* Specifies a maximum width for image or video containers. Accepts positive numbers and CSS values.
|
16764
|
+
*
|
16765
|
+
* Default value: 400
|
16766
|
+
*
|
16767
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
16768
|
+
*/
|
16560
16769
|
maxImageWidth: number;
|
16770
|
+
/**
|
16771
|
+
* Specifies a minimum width for image or video containers. Accepts positive numbers and CSS values.
|
16772
|
+
*
|
16773
|
+
* Default value: 200
|
16774
|
+
*
|
16775
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
16776
|
+
*/
|
16561
16777
|
minImageWidth: number;
|
16778
|
+
/**
|
16779
|
+
* Specifies a maximum height for image or video containers. Accepts positive numbers and CSS values.
|
16780
|
+
*
|
16781
|
+
* Default value: 266
|
16782
|
+
*
|
16783
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
16784
|
+
*/
|
16562
16785
|
maxImageHeight: number;
|
16786
|
+
/**
|
16787
|
+
* Specifies a minimum height for image or video containers. Accepts positive numbers and CSS values.
|
16788
|
+
*
|
16789
|
+
* Default value: 133
|
16790
|
+
*
|
16791
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
16792
|
+
*/
|
16563
16793
|
minImageHeight: number;
|
16564
16794
|
private get isResponsive();
|
16565
16795
|
private get exactSizesAreEmpty();
|
@@ -16617,7 +16847,7 @@ declare module "dragdrop/ranking-choices" {
|
|
16617
16847
|
protected updateDraggedElementShortcut(newIndex: number): void;
|
16618
16848
|
protected ghostPositionChanged(): void;
|
16619
16849
|
protected doBanDropHere: () => any;
|
16620
|
-
protected doDrop
|
16850
|
+
protected doDrop(): any;
|
16621
16851
|
clear(): void;
|
16622
16852
|
}
|
16623
16853
|
}
|
@@ -16636,21 +16866,26 @@ declare module "dragdrop/ranking-select-to-rank" {
|
|
16636
16866
|
fromIndex: number;
|
16637
16867
|
toIndex: number;
|
16638
16868
|
};
|
16869
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
16639
16870
|
private doUIEffects;
|
16640
16871
|
private get isDraggedElementRanked();
|
16641
16872
|
private get isDropTargetRanked();
|
16642
16873
|
private get isDraggedElementUnranked();
|
16643
16874
|
private get isDropTargetUnranked();
|
16644
|
-
|
16645
|
-
|
16646
|
-
|
16875
|
+
private updateChoices;
|
16876
|
+
selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
16877
|
+
unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void;
|
16878
|
+
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number, dropTargetNode?: HTMLElement) => void;
|
16879
|
+
clear(): void;
|
16647
16880
|
}
|
16648
16881
|
}
|
16649
16882
|
declare module "question_ranking" {
|
16650
16883
|
import { ISurveyImpl } from "base-interfaces";
|
16651
16884
|
import { DragDropRankingChoices } from "dragdrop/ranking-choices";
|
16885
|
+
import { DragDropRankingSelectToRank } from "dragdrop/ranking-select-to-rank";
|
16652
16886
|
import { ItemValue } from "itemvalue";
|
16653
16887
|
import { QuestionCheckboxModel } from "question_checkbox";
|
16888
|
+
import { AnimationGroup } from "utils/animation";
|
16654
16889
|
/**
|
16655
16890
|
* A class that describes the Ranking question type.
|
16656
16891
|
*
|
@@ -16670,6 +16905,7 @@ declare module "question_ranking" {
|
|
16670
16905
|
get ghostPositionCssClass(): string;
|
16671
16906
|
getItemIndexClasses(item: ItemValue): string;
|
16672
16907
|
getNumberByIndex(index: number): string;
|
16908
|
+
private updateRankingChoicesSync;
|
16673
16909
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
16674
16910
|
isAnswerCorrect(): boolean;
|
16675
16911
|
get requireStrictCompare(): boolean;
|
@@ -16678,16 +16914,24 @@ declare module "question_ranking" {
|
|
16678
16914
|
localeChanged: () => void;
|
16679
16915
|
private addToValueByVisibleChoices;
|
16680
16916
|
private removeFromValueByVisibleChoices;
|
16917
|
+
private getChoicesAnimation;
|
16918
|
+
private _rankingChoicesAnimation;
|
16919
|
+
get rankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
16920
|
+
private _unRankingChoicesAnimation;
|
16921
|
+
get unRankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
16681
16922
|
get rankingChoices(): Array<ItemValue>;
|
16923
|
+
set rankingChoices(val: Array<ItemValue>);
|
16682
16924
|
get unRankingChoices(): Array<ItemValue>;
|
16925
|
+
set unRankingChoices(val: Array<ItemValue>);
|
16683
16926
|
private updateRankingChoices;
|
16927
|
+
updateUnRankingChoices(newRankingChoices: Array<ItemValue>): void;
|
16684
16928
|
private updateRankingChoicesSelectToRankMode;
|
16685
16929
|
dragDropRankingChoices: DragDropRankingChoices;
|
16686
16930
|
currentDropTarget: ItemValue;
|
16687
16931
|
dropTargetNodeMove: string;
|
16688
16932
|
endLoadingFromJson(): void;
|
16689
16933
|
private setDragDropRankingChoices;
|
16690
|
-
protected createDragDropRankingChoices(): DragDropRankingChoices;
|
16934
|
+
protected createDragDropRankingChoices(): DragDropRankingChoices | DragDropRankingSelectToRank;
|
16691
16935
|
handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
16692
16936
|
private isDragStartNodeValid;
|
16693
16937
|
private get allowStartDrag();
|
@@ -17755,7 +17999,7 @@ declare module "mask/mask_numeric" {
|
|
17755
17999
|
private calccaretPosition;
|
17756
18000
|
displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
|
17757
18001
|
convertNumber(parsedNumber: INumericalComposition): number;
|
17758
|
-
validateNumber(number: INumericalComposition): boolean;
|
18002
|
+
validateNumber(number: INumericalComposition, matchWholeMask: boolean): boolean;
|
17759
18003
|
parseNumber(src: string | number): INumericalComposition;
|
17760
18004
|
getNumberMaskedValue(src: string | number, matchWholeMask?: boolean): string;
|
17761
18005
|
private getNumberUnmaskedValue;
|
@@ -17775,6 +18019,16 @@ declare module "mask/mask_datetime" {
|
|
17775
18019
|
count: number;
|
17776
18020
|
maxCount: number;
|
17777
18021
|
}
|
18022
|
+
interface IDateTimeComposition {
|
18023
|
+
day: number;
|
18024
|
+
month: number;
|
18025
|
+
year: number;
|
18026
|
+
hour?: number;
|
18027
|
+
minute?: number;
|
18028
|
+
second?: number;
|
18029
|
+
min?: Date;
|
18030
|
+
max?: Date;
|
18031
|
+
}
|
17778
18032
|
export function getDateTimeLexems(pattern: string): Array<IDateTimeMaskLexem>;
|
17779
18033
|
/**
|
17780
18034
|
* A class that describes an input mask of the `"datetime"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
|
@@ -17815,7 +18069,7 @@ declare module "mask/mask_datetime" {
|
|
17815
18069
|
private leaveOnlyNumbers;
|
17816
18070
|
private getMaskedStrFromISO;
|
17817
18071
|
private initInputDateTimeData;
|
17818
|
-
|
18072
|
+
getISO_8601Format(dateTime: IDateTimeComposition): string;
|
17819
18073
|
private isYearValid;
|
17820
18074
|
private isDateValid;
|
17821
18075
|
private getPlaceholder;
|
@@ -17826,7 +18080,6 @@ declare module "mask/mask_datetime" {
|
|
17826
18080
|
private getFormatedString;
|
17827
18081
|
private setInputDateTimeData;
|
17828
18082
|
_getMaskedValue(src: string, matchWholeMask?: boolean): string;
|
17829
|
-
private getPartsOld;
|
17830
18083
|
private getParts;
|
17831
18084
|
getUnmaskedValue(src: string): any;
|
17832
18085
|
getMaskedValue(src: string): string;
|
@@ -18863,6 +19116,7 @@ declare module "entries/core-wo-model" {
|
|
18863
19116
|
export * from "utils/responsivity-manager";
|
18864
19117
|
export { unwrap, getOriginalEvent, getElement } from "utils/utils";
|
18865
19118
|
export * from "actions/action";
|
19119
|
+
export * from "utils/animation";
|
18866
19120
|
export * from "actions/adaptive-container";
|
18867
19121
|
export * from "actions/container";
|
18868
19122
|
export * from "utils/dragOrClickHelper";
|
@@ -25574,7 +25828,7 @@ declare module "react/components/popup/popup" {
|
|
25574
25828
|
protected getStateElement(): Base;
|
25575
25829
|
clickInside: (ev: any) => void;
|
25576
25830
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
25577
|
-
renderContainer(
|
25831
|
+
renderContainer(popupBaseViewModel: PopupBaseViewModel): JSX.Element;
|
25578
25832
|
renderHeaderContent(): JSX.Element;
|
25579
25833
|
renderContent(): JSX.Element;
|
25580
25834
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
@@ -25814,6 +26068,8 @@ declare module "react/element" {
|
|
25814
26068
|
private get survey();
|
25815
26069
|
private get creator();
|
25816
26070
|
protected get css(): any;
|
26071
|
+
componentDidMount(): void;
|
26072
|
+
componentWillUnmount(): void;
|
25817
26073
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
25818
26074
|
protected renderElement(): JSX.Element;
|
25819
26075
|
protected createElement(element: IElement, elementIndex?: number): JSX.Element;
|
@@ -25862,6 +26118,7 @@ declare module "react/panel-base" {
|
|
25862
26118
|
componentWillUnmount(): void;
|
25863
26119
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
25864
26120
|
private doAfterRender;
|
26121
|
+
protected getIsVisible(): boolean;
|
25865
26122
|
protected canRender(): boolean;
|
25866
26123
|
protected renderRows(css: any): Array<JSX.Element>;
|
25867
26124
|
protected createRow(row: QuestionRowModel, css: any): JSX.Element;
|
@@ -26027,6 +26284,7 @@ declare module "react/panel" {
|
|
26027
26284
|
protected renderTitle(): JSX.Element | null;
|
26028
26285
|
protected renderDescription(): JSX.Element | null;
|
26029
26286
|
protected renderBottom(): JSX.Element | null;
|
26287
|
+
protected getIsVisible(): boolean;
|
26030
26288
|
}
|
26031
26289
|
}
|
26032
26290
|
declare module "react/flow-panel" {
|