survey-core 1.11.7 → 1.11.9
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 +9 -9
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +9 -9
- 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 +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- 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 +533 -133
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- 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 +7 -0
- package/ts3.4/typings/dropdownListModel.d.ts +1 -1
- package/ts3.4/typings/jsonobject.d.ts +3 -2
- package/ts3.4/typings/panel-layout-column.d.ts +9 -0
- package/ts3.4/typings/panel.d.ts +15 -0
- package/ts3.4/typings/question.d.ts +3 -1
- package/ts3.4/typings/question_baseselect.d.ts +0 -5
- package/ts3.4/typings/question_custom.d.ts +11 -0
- package/ts3.4/typings/question_dropdown.d.ts +1 -1
- package/ts3.4/typings/question_file.d.ts +2 -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_paneldynamic.d.ts +2 -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 +2 -0
- package/ts3.4/typings/settings.d.ts +29 -0
- package/ts3.4/typings/survey-element.d.ts +4 -3
- package/ts3.4/typings/survey.d.ts +4 -1
- package/ts3.4/typings/utils/utils.d.ts +1 -0
- package/typings/base-interfaces.d.ts +7 -0
- package/typings/dropdownListModel.d.ts +1 -1
- package/typings/jsonobject.d.ts +3 -2
- package/typings/panel-layout-column.d.ts +9 -0
- package/typings/panel.d.ts +15 -0
- package/typings/question.d.ts +3 -1
- package/typings/question_baseselect.d.ts +0 -5
- package/typings/question_custom.d.ts +11 -0
- package/typings/question_dropdown.d.ts +1 -1
- package/typings/question_file.d.ts +2 -1
- package/typings/question_matrixdropdownbase.d.ts +1 -0
- package/typings/question_multipletext.d.ts +4 -0
- package/typings/question_paneldynamic.d.ts +2 -0
- package/typings/question_rating.d.ts +0 -1
- package/typings/question_tagbox.d.ts +0 -1
- package/typings/question_text.d.ts +2 -0
- package/typings/settings.d.ts +29 -0
- package/typings/survey-element.d.ts +5 -3
- package/typings/survey.d.ts +4 -1
- package/typings/utils/utils.d.ts +1 -0
package/typings/panel.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { IAction } from "./actions/action";
|
|
|
10
10
|
import { ActionContainer } from "./actions/container";
|
|
11
11
|
import { DragDropInfo } from "./drag-drop-helper-v1";
|
|
12
12
|
import { AnimationGroup } from "./utils/animation";
|
|
13
|
+
import { PanelLayoutColumnModel } from "./panel-layout-column";
|
|
13
14
|
export declare class QuestionRowModel extends Base {
|
|
14
15
|
panel: PanelModelBase;
|
|
15
16
|
private static rowCounter;
|
|
@@ -60,6 +61,9 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
60
61
|
private elementsValue;
|
|
61
62
|
private isQuestionsReady;
|
|
62
63
|
private questionsValue;
|
|
64
|
+
private _columns;
|
|
65
|
+
private _columnsReady;
|
|
66
|
+
layoutColumns: Array<PanelLayoutColumnModel>;
|
|
63
67
|
addElementCallback: (element: IElement) => void;
|
|
64
68
|
removeElementCallback: (element: IElement) => void;
|
|
65
69
|
onGetQuestionTitleLocation: () => string;
|
|
@@ -271,6 +275,11 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
271
275
|
addPanelsIntoList(list: Array<IPanel>, visibleOnly?: boolean, includingDesignTime?: boolean): void;
|
|
272
276
|
private addElementsToList;
|
|
273
277
|
private addElementsToListCore;
|
|
278
|
+
private calcMaxRowColSpan;
|
|
279
|
+
private updateColumnWidth;
|
|
280
|
+
private onColumnPropertyValueChangedCallback;
|
|
281
|
+
updateColumns(): void;
|
|
282
|
+
updateRootStyle(): void;
|
|
274
283
|
updateCustomWidgets(): void;
|
|
275
284
|
/**
|
|
276
285
|
* Sets a title location relative to the input field for questions that belong to this panel/page.
|
|
@@ -300,6 +309,9 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
300
309
|
*/
|
|
301
310
|
questionTitleWidth: string;
|
|
302
311
|
getQuestionTitleWidth(): string;
|
|
312
|
+
get columns(): Array<PanelLayoutColumnModel>;
|
|
313
|
+
protected generateColumns(): void;
|
|
314
|
+
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
303
315
|
protected getStartIndex(): string;
|
|
304
316
|
getQuestionStartIndex(): string;
|
|
305
317
|
getChildrenLayoutType(): string;
|
|
@@ -450,6 +462,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
450
462
|
get no(): string;
|
|
451
463
|
get cssError(): string;
|
|
452
464
|
protected getCssError(cssClasses: any): string;
|
|
465
|
+
getSerializableColumnsValue(): Array<PanelLayoutColumnModel>;
|
|
453
466
|
dispose(): void;
|
|
454
467
|
}
|
|
455
468
|
/**
|
|
@@ -464,6 +477,8 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
464
477
|
getType(): string;
|
|
465
478
|
get contentId(): string;
|
|
466
479
|
getSurvey(live?: boolean): ISurvey;
|
|
480
|
+
get hasTextInTitle(): boolean;
|
|
481
|
+
private calcHasTextInTitle;
|
|
467
482
|
onSurveyLoad(): void;
|
|
468
483
|
protected onSetData(): void;
|
|
469
484
|
get isPanel(): boolean;
|
package/typings/question.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
83
83
|
themeChanged(theme: ITheme): void;
|
|
84
84
|
isMobile: boolean;
|
|
85
85
|
forceIsInputReadOnly: boolean;
|
|
86
|
+
ariaExpanded: "true" | "false";
|
|
86
87
|
constructor(name: string);
|
|
87
88
|
protected getDefaultTitle(): string;
|
|
88
89
|
protected createLocTitleProperty(): LocalizableString;
|
|
@@ -275,6 +276,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
275
276
|
private notifySurveyVisibilityChanged;
|
|
276
277
|
protected clearValueOnHidding(isClearOnHidden: boolean): void;
|
|
277
278
|
get titleWidth(): string;
|
|
279
|
+
getPercentQuestionTitleWidth(): number;
|
|
278
280
|
/**
|
|
279
281
|
* Returns title location calculated based on the question's `titleLocation` property and the `questionTitleLocation` property of the question's containers (survey, page, or panel).
|
|
280
282
|
* @see titleLocation
|
|
@@ -428,6 +430,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
428
430
|
*/
|
|
429
431
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
|
430
432
|
private focuscore;
|
|
433
|
+
focusInputElement(onError: boolean): void;
|
|
431
434
|
expandAllParents(): void;
|
|
432
435
|
private expandAllParentsCore;
|
|
433
436
|
focusIn(): void;
|
|
@@ -899,7 +902,6 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
899
902
|
get ariaInvalid(): "true" | "false";
|
|
900
903
|
get ariaLabelledBy(): string;
|
|
901
904
|
get ariaDescribedBy(): string;
|
|
902
|
-
get ariaExpanded(): string;
|
|
903
905
|
get ariaErrormessage(): string;
|
|
904
906
|
get a11y_input_ariaRole(): string;
|
|
905
907
|
get a11y_input_ariaRequired(): "true" | "false";
|
|
@@ -486,11 +486,6 @@ export declare class QuestionSelectBase extends Question {
|
|
|
486
486
|
get hasHeadItems(): boolean;
|
|
487
487
|
get hasFootItems(): boolean;
|
|
488
488
|
get columns(): any[];
|
|
489
|
-
protected getObservedElementSelector(): string;
|
|
490
|
-
protected supportResponsiveness(): boolean;
|
|
491
|
-
allowMultiColumns: boolean;
|
|
492
|
-
protected onBeforeSetCompactRenderer(): void;
|
|
493
|
-
protected onBeforeSetDesktopRenderer(): void;
|
|
494
489
|
get hasColumns(): boolean;
|
|
495
490
|
get rowLayout(): boolean;
|
|
496
491
|
get blockedRow(): boolean;
|
|
@@ -4,6 +4,7 @@ import { Base } from "./base";
|
|
|
4
4
|
import { ISurveyImpl, ISurveyData, ITextProcessor, IPanel, IElement, IQuestion, IProgressInfo } from "./base-interfaces";
|
|
5
5
|
import { SurveyElement } from "./survey-element";
|
|
6
6
|
import { PanelModel } from "./panel";
|
|
7
|
+
import { PanelLayoutColumnModel } from "./panel-layout-column";
|
|
7
8
|
import { HashTable } from "./helpers";
|
|
8
9
|
import { ItemValue } from "./itemvalue";
|
|
9
10
|
import { SurveyError } from "./survey-error";
|
|
@@ -339,10 +340,13 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
339
340
|
getFilteredValues(): any;
|
|
340
341
|
getFilteredProperties(): any;
|
|
341
342
|
findQuestionByName(name: string): IQuestion;
|
|
343
|
+
getEditingSurveyElement(): Base;
|
|
342
344
|
addElement(element: IElement, index: number): void;
|
|
343
345
|
removeElement(element: IElement): boolean;
|
|
344
346
|
getQuestionTitleLocation(): string;
|
|
345
347
|
getQuestionTitleWidth(): string;
|
|
348
|
+
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
349
|
+
updateColumns(): void;
|
|
346
350
|
getQuestionStartIndex(): string;
|
|
347
351
|
getChildrenLayoutType(): string;
|
|
348
352
|
elementWidthChanged(el: IElement): void;
|
|
@@ -406,6 +410,12 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
|
406
410
|
get contentPanel(): PanelModel;
|
|
407
411
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
|
408
412
|
updateElementCss(reNew?: boolean): void;
|
|
413
|
+
dispose(): void;
|
|
414
|
+
private editingObjValue;
|
|
415
|
+
private onEditingObjPropertyChanged;
|
|
416
|
+
private updateEditingObj;
|
|
417
|
+
private unConnectEditingObj;
|
|
418
|
+
getEditingSurveyElement(): Base;
|
|
409
419
|
getTextProcessor(): ITextProcessor;
|
|
410
420
|
findQuestionByName(name: string): IQuestion;
|
|
411
421
|
protected clearValueIfInvisibleCore(reason: string): void;
|
|
@@ -414,6 +424,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
|
414
424
|
get isContainer(): boolean;
|
|
415
425
|
protected createPanel(): PanelModel;
|
|
416
426
|
protected onReadOnlyChanged(): void;
|
|
427
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
|
417
428
|
onSurveyLoad(): void;
|
|
418
429
|
private setIsContentElement;
|
|
419
430
|
setVisibleIndex(val: number): number;
|
|
@@ -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;
|
|
@@ -254,7 +254,8 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
254
254
|
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
|
255
255
|
private rootElement;
|
|
256
256
|
private canDragDrop;
|
|
257
|
-
|
|
257
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
258
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
258
259
|
private dragCounter;
|
|
259
260
|
onDragEnter: (event: any) => void;
|
|
260
261
|
onDragOver: (event: any) => boolean;
|
|
@@ -114,6 +114,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
114
114
|
getComment(name: string): string;
|
|
115
115
|
setComment(name: string, newValue: string, locNotification: any): void;
|
|
116
116
|
findQuestionByName(name: string): IQuestion;
|
|
117
|
+
getEditingSurveyElement(): Base;
|
|
117
118
|
private setValueCore;
|
|
118
119
|
private updateQuestionsValue;
|
|
119
120
|
runTriggers(name: string, value: any): void;
|
|
@@ -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;
|
|
@@ -182,6 +183,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
|
182
183
|
getFilteredValues(): any;
|
|
183
184
|
getFilteredProperties(): any;
|
|
184
185
|
findQuestionByName(name: string): IQuestion;
|
|
186
|
+
getEditingSurveyElement(): Base;
|
|
185
187
|
getValidatorTitle(): string;
|
|
186
188
|
get validatedValue(): any;
|
|
187
189
|
set validatedValue(val: any);
|
|
@@ -307,6 +309,8 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
307
309
|
removeElement(element: IElement): boolean;
|
|
308
310
|
getQuestionTitleLocation(): string;
|
|
309
311
|
getQuestionTitleWidth(): string;
|
|
312
|
+
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
313
|
+
updateColumns(): void;
|
|
310
314
|
getQuestionStartIndex(): string;
|
|
311
315
|
getChildrenLayoutType(): string;
|
|
312
316
|
elementWidthChanged(el: IElement): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HashTable } from "./helpers";
|
|
2
2
|
import { IElement, IQuestion, IPanel, ISurveyData, ISurvey, ISurveyImpl, ITextProcessor, IProgressInfo, IPlainDataOptions } from "./base-interfaces";
|
|
3
3
|
import { LocalizableString } from "./localizablestring";
|
|
4
|
+
import { Base } from "./base";
|
|
4
5
|
import { Question, IConditionObject, IQuestionPlainData } from "./question";
|
|
5
6
|
import { PanelModel } from "./panel";
|
|
6
7
|
import { SurveyError } from "./survey-error";
|
|
@@ -36,6 +37,7 @@ export declare class QuestionPanelDynamicItem implements ISurveyData, ISurveyImp
|
|
|
36
37
|
getComment(name: string): string;
|
|
37
38
|
setComment(name: string, newValue: string, locNotification: any): void;
|
|
38
39
|
findQuestionByName(name: string): IQuestion;
|
|
40
|
+
getEditingSurveyElement(): Base;
|
|
39
41
|
getAllValues(): any;
|
|
40
42
|
getFilteredValues(): any;
|
|
41
43
|
getFilteredProperties(): any;
|
|
@@ -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;
|
|
@@ -141,6 +141,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
141
141
|
private hasToConvertToUTC;
|
|
142
142
|
protected valueForSurveyCore(val: any): any;
|
|
143
143
|
protected valueFromDataCore(val: any): any;
|
|
144
|
+
private dateValidationMessage;
|
|
144
145
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
|
145
146
|
protected canSetValueToSurvey(): boolean;
|
|
146
147
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
|
@@ -179,6 +180,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
179
180
|
private updateValueOnEvent;
|
|
180
181
|
onCompositionUpdate: (event: any) => void;
|
|
181
182
|
onKeyUp: (event: any) => void;
|
|
183
|
+
private updateDateValidationMessage;
|
|
182
184
|
onKeyDown: (event: any) => void;
|
|
183
185
|
onChange: (event: any) => void;
|
|
184
186
|
onBlur: (event: any) => void;
|
package/typings/settings.d.ts
CHANGED
|
@@ -588,5 +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
|
+
*/
|
|
591
620
|
storeUtcDates: boolean;
|
|
592
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
|
@@ -1621,6 +1621,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1621
1621
|
private onEditingObjPropertyChanged;
|
|
1622
1622
|
get editingObj(): Base;
|
|
1623
1623
|
set editingObj(val: Base);
|
|
1624
|
+
private unConnectEditingObj;
|
|
1624
1625
|
get isEditingSurveyElement(): boolean;
|
|
1625
1626
|
private setCalculatedValuesIntoResult;
|
|
1626
1627
|
getAllValues(): any;
|
|
@@ -2159,8 +2160,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2159
2160
|
updatePanelCssClasses(panel: PanelModel, cssClasses: any): void;
|
|
2160
2161
|
updatePageCssClasses(page: PageModel, cssClasses: any): void;
|
|
2161
2162
|
updateChoiceItemCss(question: IQuestion, options: any): void;
|
|
2162
|
-
private isFirstPageRendering;
|
|
2163
2163
|
private isCurrentPageRendering;
|
|
2164
|
+
private isCurrentPageRendered;
|
|
2164
2165
|
afterRenderPage(htmlElement: HTMLElement): void;
|
|
2165
2166
|
afterRenderHeader(htmlElement: HTMLElement): void;
|
|
2166
2167
|
afterRenderQuestion(question: Question, htmlElement: HTMLElement): void;
|
|
@@ -2333,6 +2334,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2333
2334
|
*/
|
|
2334
2335
|
getQuestionByName(name: string, caseInsensitive?: boolean): Question;
|
|
2335
2336
|
findQuestionByName(name: string): IQuestion;
|
|
2337
|
+
getEditingSurveyElement(): Base;
|
|
2336
2338
|
/**
|
|
2337
2339
|
* Returns a question with a specified [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/question#valueName).
|
|
2338
2340
|
*
|
|
@@ -2689,6 +2691,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2689
2691
|
*/
|
|
2690
2692
|
get showTimerPanelMode(): string;
|
|
2691
2693
|
set showTimerPanelMode(val: string);
|
|
2694
|
+
gridLayoutEnabled: boolean;
|
|
2692
2695
|
/**
|
|
2693
2696
|
* Specifies how to calculate the survey width.
|
|
2694
2697
|
*
|
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 };
|