survey-core 1.11.6 → 1.11.8
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 +11 -6
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +11 -6
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +6 -6
- package/modern.css.map +1 -1
- package/modern.fontless.css +6 -6
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +574 -127
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +6 -6
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +2 -2
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/base-interfaces.d.ts +8 -0
- package/ts3.4/typings/dropdownListModel.d.ts +1 -1
- package/ts3.4/typings/jsonobject.d.ts +1 -1
- package/ts3.4/typings/mask/input_element_adapter.d.ts +1 -0
- package/ts3.4/typings/page.d.ts +1 -0
- package/ts3.4/typings/panel-layout-column.d.ts +9 -0
- package/ts3.4/typings/panel.d.ts +16 -0
- package/ts3.4/typings/question.d.ts +5 -1
- package/ts3.4/typings/question_comment.d.ts +3 -3
- package/ts3.4/typings/question_custom.d.ts +4 -0
- package/ts3.4/typings/question_dropdown.d.ts +1 -1
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +1 -0
- package/ts3.4/typings/question_multipletext.d.ts +4 -0
- package/ts3.4/typings/question_rating.d.ts +0 -1
- package/ts3.4/typings/question_tagbox.d.ts +0 -1
- package/ts3.4/typings/question_text.d.ts +4 -0
- package/ts3.4/typings/settings.d.ts +30 -0
- package/ts3.4/typings/survey-element.d.ts +4 -3
- package/ts3.4/typings/survey.d.ts +2 -1
- package/ts3.4/typings/surveytimer.d.ts +9 -4
- package/ts3.4/typings/utils/utils.d.ts +1 -0
- package/typings/base-interfaces.d.ts +8 -0
- package/typings/dropdownListModel.d.ts +1 -1
- package/typings/jsonobject.d.ts +1 -1
- package/typings/mask/input_element_adapter.d.ts +1 -0
- package/typings/page.d.ts +1 -0
- package/typings/panel-layout-column.d.ts +9 -0
- package/typings/panel.d.ts +16 -0
- package/typings/question.d.ts +5 -1
- package/typings/question_comment.d.ts +5 -5
- package/typings/question_custom.d.ts +4 -0
- package/typings/question_dropdown.d.ts +1 -1
- package/typings/question_matrixdropdownbase.d.ts +1 -0
- package/typings/question_multipletext.d.ts +4 -0
- package/typings/question_rating.d.ts +0 -1
- package/typings/question_tagbox.d.ts +0 -1
- package/typings/question_text.d.ts +4 -0
- package/typings/settings.d.ts +30 -0
- package/typings/survey-element.d.ts +5 -3
- package/typings/survey.d.ts +2 -1
- package/typings/surveytimer.d.ts +9 -4
- package/typings/utils/utils.d.ts +1 -0
|
@@ -133,7 +133,6 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
|
133
133
|
get dropdownListModel(): DropdownListModel;
|
|
134
134
|
set dropdownListModel(val: DropdownListModel);
|
|
135
135
|
get popupModel(): PopupModel;
|
|
136
|
-
get ariaExpanded(): string;
|
|
137
136
|
onOpened: EventBase<QuestionDropdownModel>;
|
|
138
137
|
onOpenedCallBack(): void;
|
|
139
138
|
protected onSelectedItemValuesChangedHandler(newValue: any): void;
|
|
@@ -144,6 +143,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
|
144
143
|
protected getFirstInputElementId(): string;
|
|
145
144
|
getInputId(): string;
|
|
146
145
|
clearValue(keepComment?: boolean): void;
|
|
146
|
+
afterRenderCore(el: any): void;
|
|
147
147
|
onClick(e: any): void;
|
|
148
148
|
onKeyUp(event: any): void;
|
|
149
149
|
dispose(): void;
|
|
@@ -327,6 +327,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
|
327
327
|
*/
|
|
328
328
|
get cellType(): string;
|
|
329
329
|
set cellType(val: string);
|
|
330
|
+
isSelectCellType(): boolean;
|
|
330
331
|
private updateColumnsCellType;
|
|
331
332
|
private updateColumnsIndexes;
|
|
332
333
|
/**
|
|
@@ -7,6 +7,7 @@ import { SurveyError } from "./survey-error";
|
|
|
7
7
|
import { ILocalizableOwner, LocalizableString } from "./localizablestring";
|
|
8
8
|
import { HashTable } from "./helpers";
|
|
9
9
|
import { InputMaskBase } from "./mask/mask_base";
|
|
10
|
+
import { PanelLayoutColumnModel } from "./panel-layout-column";
|
|
10
11
|
export interface IMultipleTextData extends ILocalizableOwner, IPanel {
|
|
11
12
|
getSurvey(): ISurvey;
|
|
12
13
|
getTextProcessor(): ITextProcessor;
|
|
@@ -307,6 +308,8 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
307
308
|
removeElement(element: IElement): boolean;
|
|
308
309
|
getQuestionTitleLocation(): string;
|
|
309
310
|
getQuestionTitleWidth(): string;
|
|
311
|
+
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
312
|
+
updateColumns(): void;
|
|
310
313
|
getQuestionStartIndex(): string;
|
|
311
314
|
getChildrenLayoutType(): string;
|
|
312
315
|
elementWidthChanged(el: IElement): void;
|
|
@@ -314,6 +317,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
314
317
|
indexOf(el: IElement): number;
|
|
315
318
|
ensureRowsVisibility(): void;
|
|
316
319
|
validateContainerOnly(): void;
|
|
320
|
+
onQuestionValueChanged(el: IElement): void;
|
|
317
321
|
getItemLabelCss(item: MultipleTextItemModel): string;
|
|
318
322
|
getItemCss(): string;
|
|
319
323
|
getItemTitleCss(): string;
|
|
@@ -278,7 +278,6 @@ export declare class QuestionRatingModel extends Question {
|
|
|
278
278
|
protected onBeforeSetCompactRenderer(): void;
|
|
279
279
|
protected getCompactRenderAs(): string;
|
|
280
280
|
protected getDesktopRenderAs(): string;
|
|
281
|
-
get ariaExpanded(): string;
|
|
282
281
|
private dropdownListModelValue;
|
|
283
282
|
set dropdownListModel(val: DropdownListModel);
|
|
284
283
|
get dropdownListModel(): DropdownListModel;
|
|
@@ -73,7 +73,6 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
|
73
73
|
getType(): string;
|
|
74
74
|
get ariaRole(): string;
|
|
75
75
|
get popupModel(): PopupModel;
|
|
76
|
-
get ariaExpanded(): string;
|
|
77
76
|
getControlClass(): string;
|
|
78
77
|
onOpened: EventBase<QuestionTagboxModel>;
|
|
79
78
|
onOpenedCallBack(): void;
|
|
@@ -138,6 +138,9 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
138
138
|
set inputValue(val: string);
|
|
139
139
|
protected onChangeQuestionValue(newValue: any): void;
|
|
140
140
|
private updateInputValue;
|
|
141
|
+
private hasToConvertToUTC;
|
|
142
|
+
protected valueForSurveyCore(val: any): any;
|
|
143
|
+
protected valueFromDataCore(val: any): any;
|
|
141
144
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
142
145
|
protected canSetValueToSurvey(): boolean;
|
|
143
146
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
@@ -145,6 +148,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
145
148
|
private get isValueLessMin();
|
|
146
149
|
private get isValueGreaterMax();
|
|
147
150
|
private get isDateInputType();
|
|
151
|
+
private isDateTimeLocaleType;
|
|
148
152
|
private getCalculatedMinMax;
|
|
149
153
|
private setRenderedMinMax;
|
|
150
154
|
/**
|
package/typings/settings.d.ts
CHANGED
|
@@ -588,4 +588,34 @@ export declare var settings: {
|
|
|
588
588
|
[key: string]: RegExp;
|
|
589
589
|
};
|
|
590
590
|
};
|
|
591
|
+
/**
|
|
592
|
+
* Specifies whether to store date-time values in the following format: `"YYYY-MM-DDThh:mm:ss.sssZ"`. Applies only to form fields with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"datetime-local"`.
|
|
593
|
+
*
|
|
594
|
+
* Default value: `false`
|
|
595
|
+
*
|
|
596
|
+
* If you enable this setting, date-time values are converted from local time to UTC when they are saved to the survey's [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) object, while the question values remain in local time. Therefore, when you specify default values using a question's [`defaultValue`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#defaultValue) property, you need to use local time, but if you specify them using the `data` object, use a UTC date-time value in the following format: `"YYYY-MM-DDThh:mm:ss.sssZ"`.
|
|
597
|
+
*
|
|
598
|
+
* ```js
|
|
599
|
+
* const surveyJson = {
|
|
600
|
+
* "elements": [{
|
|
601
|
+
* "name": "datetime",
|
|
602
|
+
* "type": "text",
|
|
603
|
+
* "title": "Select a date and time",
|
|
604
|
+
* "inputType": "datetime-local",
|
|
605
|
+
* "defaultValue": "2024-07-16T12:15:00" // Local date-time value
|
|
606
|
+
* }]
|
|
607
|
+
* }
|
|
608
|
+
* ```
|
|
609
|
+
*
|
|
610
|
+
* ```js
|
|
611
|
+
* import { Model } from "survey-core";
|
|
612
|
+
* const surveyJson = { ... }
|
|
613
|
+
* const survey = new Model(surveyJson);
|
|
614
|
+
*
|
|
615
|
+
* survey.data = {
|
|
616
|
+
* datetime: "2024-07-16T12:15:00.000Z" // UTC date-time value
|
|
617
|
+
* }
|
|
618
|
+
* ```
|
|
619
|
+
*/
|
|
620
|
+
storeUtcDates: boolean;
|
|
591
621
|
};
|
|
@@ -110,6 +110,9 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
110
110
|
private static focusElementCore;
|
|
111
111
|
static CreateDisabledDesignElements: boolean;
|
|
112
112
|
disableDesignActions: boolean;
|
|
113
|
+
effectiveColSpan: number;
|
|
114
|
+
get colSpan(): number;
|
|
115
|
+
set colSpan(val: number);
|
|
113
116
|
constructor(name: string);
|
|
114
117
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
115
118
|
protected getSkeletonComponentNameCore(): string;
|
|
@@ -394,9 +397,8 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
394
397
|
get paddingRight(): string;
|
|
395
398
|
set paddingRight(val: string);
|
|
396
399
|
allowRootStyle: boolean;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
};
|
|
400
|
+
rootStyle: any;
|
|
401
|
+
updateRootStyle(): void;
|
|
400
402
|
private isContainsSelection;
|
|
401
403
|
get clickTitleFunction(): any;
|
|
402
404
|
protected needClickTitleFunction(): boolean;
|
package/typings/survey.d.ts
CHANGED
|
@@ -2689,6 +2689,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2689
2689
|
*/
|
|
2690
2690
|
get showTimerPanelMode(): string;
|
|
2691
2691
|
set showTimerPanelMode(val: string);
|
|
2692
|
+
gridLayoutEnabled: boolean;
|
|
2692
2693
|
/**
|
|
2693
2694
|
* Specifies how to calculate the survey width.
|
|
2694
2695
|
*
|
|
@@ -2785,7 +2786,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2785
2786
|
*/
|
|
2786
2787
|
get maxTimeToFinishPage(): number;
|
|
2787
2788
|
set maxTimeToFinishPage(val: number);
|
|
2788
|
-
private getPageMaxTimeToFinish;
|
|
2789
2789
|
private doTimer;
|
|
2790
2790
|
get inSurvey(): boolean;
|
|
2791
2791
|
getSurveyData(): ISurveyData;
|
|
@@ -2870,6 +2870,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2870
2870
|
dispose(): void;
|
|
2871
2871
|
disposeCallback: () => void;
|
|
2872
2872
|
private onScrollCallback;
|
|
2873
|
+
_isElementShouldBeSticky(selector: string): boolean;
|
|
2873
2874
|
onScroll(): void;
|
|
2874
2875
|
addScrollEventListener(): void;
|
|
2875
2876
|
removeScrollEventListener(): void;
|
package/typings/surveytimer.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventBase } from "./base";
|
|
2
2
|
export declare var surveyTimerFunctions: {
|
|
3
3
|
setTimeout: (func: () => any) => number;
|
|
4
4
|
clearTimeout: (timerId: number) => void;
|
|
5
5
|
safeTimeOut: (func: () => any, delay: number) => number | any;
|
|
6
|
+
now(): number;
|
|
6
7
|
};
|
|
8
|
+
export interface SurveyTimerEvent {
|
|
9
|
+
seconds: number;
|
|
10
|
+
}
|
|
7
11
|
export declare class SurveyTimer {
|
|
8
12
|
private static instanceValue;
|
|
9
13
|
static get instance(): SurveyTimer;
|
|
10
14
|
private listenerCounter;
|
|
11
15
|
private timerId;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
private prevTimeInMs;
|
|
17
|
+
onTimer: EventBase<SurveyTimer, SurveyTimerEvent>;
|
|
18
|
+
start(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => void): void;
|
|
19
|
+
stop(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => any): void;
|
|
15
20
|
doTimer(): void;
|
|
16
21
|
}
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -53,4 +53,5 @@ export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>,
|
|
|
53
53
|
}>;
|
|
54
54
|
mergedItems: Array<T>;
|
|
55
55
|
};
|
|
56
|
+
export declare function roundTo2Decimals(number: number): number;
|
|
56
57
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|