survey-react 1.8.76 → 1.8.77
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/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 +20 -12
- package/survey.react.js +76 -51
- package/survey.react.min.js +4 -4
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
@@ -1,4 +1,4 @@
|
|
1
|
-
/*Type definitions for Survey JavaScript library v1.8.
|
1
|
+
/*Type definitions for Survey JavaScript library v1.8.77
|
2
2
|
Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
3
3
|
Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
|
4
4
|
*/
|
@@ -1824,6 +1824,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
1824
1824
|
protected dotsItem: Action;
|
1825
1825
|
protected dotsItemPopupModel: PopupModel;
|
1826
1826
|
minVisibleItemsCount: number;
|
1827
|
+
protected invisibleItemsListModel: ListModel;
|
1827
1828
|
constructor();
|
1828
1829
|
protected onSet(): void;
|
1829
1830
|
protected onPush(item: T): void;
|
@@ -2861,7 +2862,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
2861
2862
|
* Validate text values.
|
2862
2863
|
*/
|
2863
2864
|
export declare class TextValidator extends SurveyValidator {
|
2864
|
-
constructor(
|
2865
|
+
constructor();
|
2865
2866
|
getType(): string;
|
2866
2867
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
2867
2868
|
protected getDefaultErrorText(name: string): any;
|
@@ -2944,7 +2945,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
2944
2945
|
* It has two main properties: value and text. If text is empty, value is used for displaying.
|
2945
2946
|
* The text property is localizable and support markdown.
|
2946
2947
|
*/
|
2947
|
-
export declare class ItemValue extends Base {
|
2948
|
+
export declare class ItemValue extends Base implements IShortcutText {
|
2948
2949
|
protected typeName: string;
|
2949
2950
|
[index: string]: any;
|
2950
2951
|
static get Separator(): string;
|
@@ -2976,6 +2977,7 @@ export declare class ItemValue extends Base {
|
|
2976
2977
|
get text(): string;
|
2977
2978
|
set text(newText: string);
|
2978
2979
|
get calculatedText(): string;
|
2980
|
+
get shortcutText(): string;
|
2979
2981
|
getData(): any;
|
2980
2982
|
toJSON(): any;
|
2981
2983
|
setData(value: any): void;
|
@@ -3339,7 +3341,10 @@ export interface ISurveyImpl {
|
|
3339
3341
|
export interface IConditionRunner {
|
3340
3342
|
runCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
3341
3343
|
}
|
3342
|
-
export interface
|
3344
|
+
export interface IShortcutText {
|
3345
|
+
shortcutText: string;
|
3346
|
+
}
|
3347
|
+
export interface ISurveyElement extends IShortcutText {
|
3343
3348
|
name: string;
|
3344
3349
|
isVisible: boolean;
|
3345
3350
|
isReadOnly: boolean;
|
@@ -3553,6 +3558,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3553
3558
|
*/
|
3554
3559
|
toggleState(): boolean;
|
3555
3560
|
get hasStateButton(): boolean;
|
3561
|
+
get shortcutText(): string;
|
3556
3562
|
getTitleToolbar(): AdaptiveActionContainer;
|
3557
3563
|
get titleActions(): Array<any>;
|
3558
3564
|
getTitleActions(): Array<any>;
|
@@ -4978,10 +4984,11 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
4978
4984
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
4979
4985
|
}
|
4980
4986
|
|
4981
|
-
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase {
|
4987
|
+
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
4982
4988
|
index: number;
|
4983
4989
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
4984
4990
|
get rowName(): string;
|
4991
|
+
get shortcutText(): string;
|
4985
4992
|
}
|
4986
4993
|
/**
|
4987
4994
|
* A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.
|
@@ -7383,6 +7390,9 @@ export declare class QuestionExpressionModel extends Question {
|
|
7383
7390
|
set minimumFractionDigits(val: number);
|
7384
7391
|
get runIfReadOnly(): boolean;
|
7385
7392
|
set runIfReadOnly(val: boolean);
|
7393
|
+
get formatedValue(): string;
|
7394
|
+
protected updateFormatedValue(): void;
|
7395
|
+
protected onValueChanged(): void;
|
7386
7396
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7387
7397
|
/**
|
7388
7398
|
* You may set this property to "decimal", "currency", "percent" or "date". If you set it to "currency", you may use the currency property to display the value in currency different from USD.
|
@@ -10940,6 +10950,7 @@ export declare class ListModel extends ActionContainer {
|
|
10940
10950
|
getItemIndent: (itemValue: any) => string;
|
10941
10951
|
get filteredTextPlaceholder(): any;
|
10942
10952
|
onKeyDown(event: KeyboardEvent): void;
|
10953
|
+
onPointerDown(event: PointerEvent, item: any): void;
|
10943
10954
|
refresh(): void;
|
10944
10955
|
}
|
10945
10956
|
|
@@ -11064,7 +11075,6 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11064
11075
|
protected get draggedElementType(): string;
|
11065
11076
|
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
|
11066
11077
|
protected createElementFromJson(json: object): HTMLElement;
|
11067
|
-
protected getShortcutText(draggedElement: any): string;
|
11068
11078
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
|
11069
11079
|
protected isDropTargetValid(dropTarget: SurveyElement): boolean;
|
11070
11080
|
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
@@ -11081,8 +11091,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11081
11091
|
|
11082
11092
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
11083
11093
|
protected get draggedElementType(): string;
|
11084
|
-
protected
|
11085
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
11094
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
11086
11095
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
11087
11096
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
11088
11097
|
protected isDropTargetValid(dropTarget: ItemValue): boolean;
|
@@ -11185,7 +11194,6 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
11185
11194
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
11186
11195
|
protected get draggedElementType(): string;
|
11187
11196
|
protected ghostPositionChanged(): void;
|
11188
|
-
protected getShortcutText(draggedElement: any): string;
|
11189
11197
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
11190
11198
|
protected isDropTargetValid(dropTarget: any): boolean;
|
11191
11199
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
@@ -11290,13 +11298,13 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
11290
11298
|
protected get dropTargetDataAttributeName(): string;
|
11291
11299
|
protected get survey(): SurveyModel;
|
11292
11300
|
prevDropTarget: any;
|
11293
|
-
protected draggedElementShortcut:
|
11301
|
+
protected draggedElementShortcut: any;
|
11294
11302
|
constructor(surveyValue?: ISurvey, creator?: any);
|
11295
11303
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
11296
11304
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
11297
11305
|
protected doStartDrag(): void;
|
11298
|
-
protected
|
11299
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement): HTMLElement;
|
11306
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
11307
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11300
11308
|
protected doDragOver(dropTargetNode?: HTMLElement): void;
|
11301
11309
|
protected afterDragOver(dropTargetNode?: HTMLElement): void;
|
11302
11310
|
getGhostPosition(item: any): string;
|