survey-react 1.12.13 → 1.12.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react",
3
- "version": "1.12.13",
3
+ "version": "1.12.14",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
package/survey.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.13
2
+ * surveyjs - Survey JavaScript library v1.12.14
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.13
2
+ * surveyjs - Survey JavaScript library v1.12.14
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.react.d.ts CHANGED
@@ -951,6 +951,7 @@ declare module "packages/survey-core/src/utils/utils" {
951
951
  function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
952
952
  export function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
953
953
  function mergeValues(src: any, dest: any): void;
954
+ function updateListCssValues(res: any, css: any): void;
954
955
  export class Logger {
955
956
  private _result;
956
957
  log(action: string): void;
@@ -983,7 +984,7 @@ declare module "packages/survey-core/src/utils/utils" {
983
984
  export function prepareElementForVerticalAnimation(el: HTMLElement): void;
984
985
  export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
985
986
  export function roundTo2Decimals(number: number): number;
986
- export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };
987
+ export { mergeValues, updateListCssValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };
987
988
  }
988
989
  declare module "packages/survey-core/src/actions/container" {
989
990
  import { Base } from "packages/survey-core/src/base";
@@ -1067,6 +1068,7 @@ declare module "packages/survey-core/src/list" {
1067
1068
  loadingIndicator: string;
1068
1069
  itemSelected: string;
1069
1070
  itemGroup: string;
1071
+ itemGroupSelected: string;
1070
1072
  itemWithIcon: string;
1071
1073
  itemDisabled: string;
1072
1074
  itemFocused: string;
@@ -1092,6 +1094,7 @@ declare module "packages/survey-core/src/list" {
1092
1094
  selectedItem?: IAction;
1093
1095
  elementId?: string;
1094
1096
  locOwner?: ILocalizableOwner;
1097
+ cssClasses?: any;
1095
1098
  onFilterStringChangedCallback?: (text: string) => void;
1096
1099
  onTextSearchCallback?: (item: IAction, textToSearch: string) => boolean;
1097
1100
  }
@@ -1126,11 +1129,13 @@ declare module "packages/survey-core/src/list" {
1126
1129
  get visibleItems(): Array<T>;
1127
1130
  private get shouldProcessFilter();
1128
1131
  private onFilterStringChanged;
1132
+ private updateIsEmpty;
1129
1133
  private scrollToItem;
1130
1134
  constructor(items: Array<IAction> | IListModel, onSelectionChanged?: (item: T, ...params: any[]) => void, allowSelection?: boolean, selectedItem?: IAction, elementId?: string);
1131
1135
  setOnFilterStringChangedCallback(callback: (text: string) => void): void;
1132
1136
  setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
1133
1137
  setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
1138
+ private updateActionsIds;
1134
1139
  setSearchEnabled(newValue: boolean): void;
1135
1140
  protected onSet(): void;
1136
1141
  protected getDefaultCssClasses(): {
@@ -1140,6 +1145,7 @@ declare module "packages/survey-core/src/list" {
1140
1145
  loadingIndicator: string;
1141
1146
  itemSelected: string;
1142
1147
  itemGroup: string;
1148
+ itemGroupSelected: string;
1143
1149
  itemWithIcon: string;
1144
1150
  itemDisabled: string;
1145
1151
  itemFocused: string;
@@ -1347,7 +1353,6 @@ declare module "packages/survey-core/src/actions/action" {
1347
1353
  elementId?: string;
1348
1354
  items?: Array<IAction>;
1349
1355
  markerIconName?: string;
1350
- markerIconSize?: number;
1351
1356
  showPopup?: () => void;
1352
1357
  hidePopup?: () => void;
1353
1358
  }
@@ -1387,7 +1392,6 @@ declare module "packages/survey-core/src/actions/action" {
1387
1392
  iconName: string;
1388
1393
  iconSize: number | string;
1389
1394
  markerIconName: string;
1390
- markerIconSize: number;
1391
1395
  css?: string;
1392
1396
  minDimension: number;
1393
1397
  maxDimension: number;
@@ -3115,7 +3119,7 @@ declare module "packages/survey-core/src/question_custom" {
3115
3119
  protected createWrapper(): void;
3116
3120
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
3117
3121
  itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
3118
- onFirstRendering(): void;
3122
+ protected onFirstRenderingCore(): void;
3119
3123
  onHidingContent(): void;
3120
3124
  getProgressInfo(): IProgressInfo;
3121
3125
  protected abstract getElement(): SurveyElement;
@@ -3398,8 +3402,8 @@ declare module "packages/survey-core/src/panel" {
3398
3402
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3399
3403
  endLoadingFromJson(): void;
3400
3404
  showTitle: boolean;
3401
- hasTextInTitle: boolean;
3402
- protected calcHasTextInTitle(): void;
3405
+ get hasTextInTitle(): boolean;
3406
+ private resetHasTextInTitle;
3403
3407
  get hasTitle(): boolean;
3404
3408
  delete(doDispose?: boolean): void;
3405
3409
  private deletePanel;
@@ -3644,7 +3648,7 @@ declare module "packages/survey-core/src/panel" {
3644
3648
  createRowAndSetLazy(index: number): QuestionRowModel;
3645
3649
  createRow(): QuestionRowModel;
3646
3650
  onSurveyLoad(): void;
3647
- onFirstRendering(): void;
3651
+ protected onFirstRenderingCore(): void;
3648
3652
  updateRows(): void;
3649
3653
  get rows(): Array<QuestionRowModel>;
3650
3654
  ensureRowsVisibility(): void;
@@ -3808,8 +3812,6 @@ declare module "packages/survey-core/src/panel" {
3808
3812
  getType(): string;
3809
3813
  get contentId(): string;
3810
3814
  getSurvey(live?: boolean): ISurvey;
3811
- onSurveyLoad(): void;
3812
- protected onSetData(): void;
3813
3815
  get isPanel(): boolean;
3814
3816
  /**
3815
3817
  * Returns a page to which the panel belongs and allows you to move this panel to a different page.
@@ -3895,7 +3897,9 @@ declare module "packages/survey-core/src/panel" {
3895
3897
  set allowAdaptiveActions(val: boolean);
3896
3898
  get innerPaddingLeft(): string;
3897
3899
  set innerPaddingLeft(val: string);
3898
- private onIndentChanged;
3900
+ protected calcPaddingLeft(): string;
3901
+ protected calcPaddingRight(): string;
3902
+ protected resetIndents(): void;
3899
3903
  private getIndentSize;
3900
3904
  clearOnDeletingContainer(): void;
3901
3905
  get footerActions(): Array<IAction>;
@@ -4203,6 +4207,7 @@ declare module "packages/survey-core/src/question_file" {
4203
4207
  private cameraValue;
4204
4208
  protected get camera(): Camera;
4205
4209
  canPreviewImage(fileItem: any): boolean;
4210
+ private prevLoadedPreviewValue;
4206
4211
  protected loadPreview(newValue: any): void;
4207
4212
  private allFilesOk;
4208
4213
  private isFileImage;
@@ -4513,8 +4518,8 @@ declare module "packages/survey-core/src/question_baseselect" {
4513
4518
  export class QuestionSelectBase extends Question {
4514
4519
  visibleChoicesChangedCallback: () => void;
4515
4520
  loadedChoicesFromServerCallback: () => void;
4516
- otherTextAreaModel: TextAreaModel;
4517
4521
  renderedChoicesChangedCallback: () => void;
4522
+ private otherTextAreaModelValue;
4518
4523
  private filteredChoicesValue;
4519
4524
  private conditionChoicesVisibleIfRunner;
4520
4525
  private conditionChoicesEnableIfRunner;
@@ -4532,10 +4537,11 @@ declare module "packages/survey-core/src/question_baseselect" {
4532
4537
  private waitingGetChoiceDisplayValueResponse;
4533
4538
  private get waitingChoicesByURL();
4534
4539
  protected selectedItemValues: any;
4535
- private getOtherTextAreaOptions;
4536
4540
  constructor(name: string);
4537
4541
  getType(): string;
4538
4542
  dispose(): void;
4543
+ get otherTextAreaModel(): TextAreaModel;
4544
+ private getOtherTextAreaOptions;
4539
4545
  protected resetDependedQuestion(): void;
4540
4546
  get otherId(): string;
4541
4547
  protected getCommentElementsId(): Array<string>;
@@ -5025,8 +5031,6 @@ declare module "packages/survey-core/src/question_baseselect" {
5025
5031
  */
5026
5032
  get itemComponent(): string;
5027
5033
  set itemComponent(value: string);
5028
- protected updateCssClasses(res: any, css: any): void;
5029
- protected calcCssClasses(css: any): any;
5030
5034
  }
5031
5035
  /**
5032
5036
  * A base class for multiple-selection question types that can display choice items in multiple columns ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Image Picker](https://surveyjs.io/form-library/documentation/questionimagepickermodel)).
@@ -7158,7 +7162,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
7158
7162
  private get showAddPanelButton();
7159
7163
  private get wasNotRenderedInSurvey();
7160
7164
  private get canBuildPanels();
7161
- onFirstRendering(): void;
7165
+ protected onFirstRenderingCore(): void;
7162
7166
  localeChanged(): void;
7163
7167
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
7164
7168
  runTriggers(name: string, value: any, keys?: any): void;
@@ -8560,7 +8564,6 @@ declare module "packages/survey-core/src/page" {
8560
8564
  get passed(): boolean;
8561
8565
  set passed(val: boolean);
8562
8566
  protected removeFromParent(): void;
8563
- onFirstRendering(): void;
8564
8567
  /**
8565
8568
  * The visible index of the page. It has values from 0 to visible page count - 1.
8566
8569
  * @see SurveyModel.visiblePages
@@ -8834,7 +8837,6 @@ declare module "packages/survey-core/src/question_textbase" {
8834
8837
  import { CssClassBuilder } from "packages/survey-core/src/utils/cssClassBuilder";
8835
8838
  import { LocalizableString } from "packages/survey-core/src/localizablestring";
8836
8839
  import { Base } from "packages/survey-core/src/base";
8837
- import { ISurveyImpl } from "packages/survey-core/src/base-interfaces";
8838
8840
  export class CharacterCounter extends Base {
8839
8841
  remainingCharacterCounter: string;
8840
8842
  updateRemainingCharacterCounter(newValue: string, maxLength: number): void;
@@ -8879,13 +8881,10 @@ declare module "packages/survey-core/src/question_textbase" {
8879
8881
  set textUpdateMode(val: string);
8880
8882
  protected getIsInputTextUpdate(): boolean;
8881
8883
  get renderedPlaceholder(): string;
8882
- protected setRenderedPlaceholder(val: string): void;
8883
8884
  protected onReadOnlyChanged(): void;
8884
- onSurveyLoad(): void;
8885
8885
  localeChanged(): void;
8886
- setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
8887
8886
  protected supportEmptyValidation(): boolean;
8888
- protected calcRenderedPlaceholder(): void;
8887
+ protected resetRenderedPlaceholder(): void;
8889
8888
  protected hasPlaceholder(): boolean;
8890
8889
  protected setNewValue(newValue: any): void;
8891
8890
  protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
@@ -12490,6 +12489,10 @@ declare module "packages/survey-core/src/survey" {
12490
12489
  get width(): string;
12491
12490
  set width(val: string);
12492
12491
  get renderedWidth(): string;
12492
+ widthScale: number;
12493
+ responsiveStartWidth: number;
12494
+ setResponsiveStartWidth(width: number): void;
12495
+ get isScaled(): boolean;
12493
12496
  get timerInfo(): {
12494
12497
  spent: number;
12495
12498
  limit?: number;
@@ -12925,9 +12928,10 @@ declare module "packages/survey-core/src/survey-element" {
12925
12928
  set readOnly(val: boolean);
12926
12929
  protected onReadOnlyChanged(): void;
12927
12930
  private get css();
12931
+ private isCssValueCalculating;
12928
12932
  get cssClassesValue(): any;
12929
- set cssClassesValue(val: any);
12930
12933
  private ensureCssClassesValue;
12934
+ private createCssClassesValue;
12931
12935
  /**
12932
12936
  * Returns an object in which keys are UI elements and values are CSS classes applied to them.
12933
12937
  *
@@ -12982,6 +12986,7 @@ declare module "packages/survey-core/src/survey-element" {
12982
12986
  private wasRenderedValue;
12983
12987
  get wasRendered(): boolean;
12984
12988
  onFirstRendering(): void;
12989
+ protected onFirstRenderingCore(): void;
12985
12990
  endLoadingFromJson(): void;
12986
12991
  setVisibleIndex(index: number): number;
12987
12992
  delete(doDispose: boolean): void;
@@ -13076,9 +13081,11 @@ declare module "packages/survey-core/src/survey-element" {
13076
13081
  set rightIndent(val: number);
13077
13082
  getRootStyle(): object;
13078
13083
  get paddingLeft(): string;
13079
- set paddingLeft(val: string);
13084
+ protected calcPaddingLeft(): string;
13080
13085
  get paddingRight(): string;
13081
13086
  set paddingRight(val: string);
13087
+ protected calcPaddingRight(): string;
13088
+ protected resetIndents(): void;
13082
13089
  allowRootStyle: boolean;
13083
13090
  rootStyle: any;
13084
13091
  updateRootStyle(): void;
@@ -13253,8 +13260,7 @@ declare module "packages/survey-core/src/question" {
13253
13260
  private isReadyValue;
13254
13261
  private commentElements;
13255
13262
  private dependedQuestions;
13256
- commentTextAreaModel: TextAreaModel;
13257
- private getCommentTextAreaOptions;
13263
+ private commentTextAreaModelValue;
13258
13264
  /**
13259
13265
  * An event that is raised when the question's ready state has changed (expressions are evaluated, choices are loaded from a web resource specified by the `choicesByUrl` property, etc.).
13260
13266
  *
@@ -13282,6 +13288,8 @@ declare module "packages/survey-core/src/question" {
13282
13288
  constructor(name: string);
13283
13289
  protected getDefaultTitle(): string;
13284
13290
  protected createLocTitleProperty(): LocalizableString;
13291
+ get commentTextAreaModel(): TextAreaModel;
13292
+ private getCommentTextAreaOptions;
13285
13293
  getSurvey(live?: boolean): ISurvey;
13286
13294
  getValueName(): string;
13287
13295
  /**
@@ -13553,7 +13561,7 @@ declare module "packages/survey-core/src/question" {
13553
13561
  get commentPlaceHolder(): string;
13554
13562
  set commentPlaceHolder(newValue: string);
13555
13563
  get renderedCommentPlaceholder(): string;
13556
- private calcRenderedCommentPlaceholder;
13564
+ private resetRenderedCommentPlaceholder;
13557
13565
  getAllErrors(): Array<SurveyError>;
13558
13566
  getErrorByType(errorType: string): SurveyError;
13559
13567
  get customWidget(): QuestionCustomWidget;
@@ -13618,7 +13626,8 @@ declare module "packages/survey-core/src/question" {
13618
13626
  protected updateCssClasses(res: any, css: any): void;
13619
13627
  protected getCssType(): string;
13620
13628
  get renderCssRoot(): string;
13621
- private onIndentChanged;
13629
+ protected calcPaddingLeft(): string;
13630
+ protected calcPaddingRight(): string;
13622
13631
  private getIndentSize;
13623
13632
  /**
13624
13633
  * Moves focus to the input field of this question.
@@ -15998,7 +16007,7 @@ declare module "packages/survey-core/src/base" {
15998
16007
  * @param name A property name.
15999
16008
  * @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
16000
16009
  */
16001
- getPropertyValue(name: string, defaultValue?: any): any;
16010
+ getPropertyValue(name: string, defaultValue?: any, calcFunc?: () => any): any;
16002
16011
  getDefaultPropertyValue(name: string): any;
16003
16012
  hasDefaultPropertyValue(name: string): boolean;
16004
16013
  resetPropertyValue(name: string): void;
@@ -16994,7 +17003,6 @@ declare module "packages/survey-core/src/dropdownListModel" {
16994
17003
  protected getFocusFirstInputSelector(): string;
16995
17004
  private itemsSettings;
16996
17005
  protected listModel: ListModel<ItemValue>;
16997
- protected popupCssClasses: string;
16998
17006
  protected listModelFilterStringChanged: (newValue: string) => void;
16999
17007
  private resetItemsSettings;
17000
17008
  private setItems;
@@ -17012,6 +17020,7 @@ declare module "packages/survey-core/src/dropdownListModel" {
17012
17020
  protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
17013
17021
  protected createListModel(): ListModel<ItemValue>;
17014
17022
  protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
17023
+ protected getPopupCssClasses(): string;
17015
17024
  updateCssClasses(popupCssClass: string, listCssClasses: any): void;
17016
17025
  protected resetFilterString(): void;
17017
17026
  clear(): void;
@@ -17196,12 +17205,15 @@ declare module "packages/survey-core/src/question_dropdown" {
17196
17205
  */
17197
17206
  choicesLazyLoadPageSize: number;
17198
17207
  getControlClass(): string;
17208
+ protected updateCssClasses(res: any, css: any): void;
17209
+ protected calcCssClasses(css: any): any;
17199
17210
  suggestedItem: ItemValue;
17200
17211
  get selectedItemLocText(): LocalizableString;
17201
17212
  get inputFieldComponentName(): string;
17202
17213
  get showSelectedItemLocText(): boolean;
17203
17214
  get showInputFieldComponent(): boolean;
17204
17215
  private get selectedItemText();
17216
+ private get useDropdownList();
17205
17217
  get dropdownListModel(): DropdownListModel;
17206
17218
  set dropdownListModel(val: DropdownListModel);
17207
17219
  get popupModel(): PopupModel;
@@ -17687,7 +17699,6 @@ declare module "packages/survey-core/src/dropdownMultiSelectListModel" {
17687
17699
  import { MultiSelectListModel } from "packages/survey-core/src/multiSelectListModel";
17688
17700
  import { Question } from "packages/survey-core/src/question";
17689
17701
  export class DropdownMultiSelectListModel extends DropdownListModel {
17690
- protected popupCssClasses: string;
17691
17702
  filterStringPlaceholder: string;
17692
17703
  closeOnSelect: boolean;
17693
17704
  locStrsChanged(): void;
@@ -17695,6 +17706,7 @@ declare module "packages/survey-core/src/dropdownMultiSelectListModel" {
17695
17706
  private syncFilterStringPlaceholder;
17696
17707
  private getSelectedActions;
17697
17708
  protected getFocusFirstInputSelector(): string;
17709
+ protected getPopupCssClasses(): string;
17698
17710
  protected createListModel(): MultiSelectListModel<ItemValue>;
17699
17711
  protected resetFilterString(): void;
17700
17712
  previousValue: any;
@@ -17732,16 +17744,15 @@ declare module "packages/survey-core/src/question_tagbox" {
17732
17744
  * [View Demo](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/ (linkStyle))
17733
17745
  */
17734
17746
  export class QuestionTagboxModel extends QuestionCheckboxModel {
17735
- dropdownListModel: DropdownMultiSelectListModel;
17747
+ private dropdownListModelValue;
17736
17748
  private itemDisplayNameMap;
17737
17749
  private deselectAllItemText;
17738
17750
  constructor(name: string);
17739
17751
  locStrsChanged(): void;
17740
17752
  private updateReadOnlyText;
17741
17753
  protected getDefaultItemComponent(): string;
17742
- onSurveyLoad(): void;
17743
- protected onSetData(): void;
17744
- private createDropdownListModel;
17754
+ get dropdownListModel(): DropdownMultiSelectListModel;
17755
+ set dropdownListModel(val: DropdownMultiSelectListModel);
17745
17756
  /**
17746
17757
  * Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
17747
17758
  *
@@ -17797,6 +17808,8 @@ declare module "packages/survey-core/src/question_tagbox" {
17797
17808
  get ariaRole(): string;
17798
17809
  get popupModel(): PopupModel;
17799
17810
  getControlClass(): string;
17811
+ protected updateCssClasses(res: any, css: any): void;
17812
+ protected calcCssClasses(css: any): any;
17800
17813
  onOpened: EventBase<QuestionTagboxModel>;
17801
17814
  onOpenedCallBack(): void;
17802
17815
  protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
@@ -18203,9 +18216,10 @@ declare module "packages/survey-core/src/question_comment" {
18203
18216
  */
18204
18217
  export class QuestionCommentModel extends QuestionTextBase {
18205
18218
  private element;
18206
- textAreaModel: TextAreaModel;
18207
- private getTextAreaOptions;
18219
+ private textAreaModelValue;
18208
18220
  constructor(name: string);
18221
+ get textAreaModel(): TextAreaModel;
18222
+ private getTextAreaOptions;
18209
18223
  /**
18210
18224
  * Specifies the visible height of the comment area, measured in lines.
18211
18225
  *