survey-react 1.12.19 → 1.12.21

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/defaultV2.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react",
3
- "version": "1.12.19",
3
+ "version": "1.12.21",
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.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 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.19
2
+ * surveyjs - Survey JavaScript library v1.12.21
3
3
  * Copyright (c) 2015-2025 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
@@ -8317,7 +8317,7 @@ declare module "packages/survey-core/src/survey-events-api" {
8317
8317
  */
8318
8318
  text: string;
8319
8319
  }
8320
- export interface DynamicPanelItemValueChangedEvent extends PanelDynamicQuestionEventMixin {
8320
+ export interface DynamicPanelValueChangedEvent extends PanelDynamicQuestionEventMixin {
8321
8321
  /**
8322
8322
  * The panel's data object that includes all item values.
8323
8323
  */
@@ -8341,6 +8341,14 @@ declare module "packages/survey-core/src/survey-events-api" {
8341
8341
  */
8342
8342
  panel: PanelModel;
8343
8343
  }
8344
+ export interface DynamicPanelValueChangingEvent extends DynamicPanelValueChangedEvent {
8345
+ /**
8346
+ * The item's old value.
8347
+ */
8348
+ oldValue: any;
8349
+ }
8350
+ export interface DynamicPanelItemValueChangedEvent extends DynamicPanelValueChangedEvent {
8351
+ }
8344
8352
  export interface DynamicPanelCurrentIndexChangedEvent extends PanelDynamicQuestionEventMixin {
8345
8353
  /**
8346
8354
  * A panel for which the event is raised.
@@ -9107,6 +9115,7 @@ declare module "packages/survey-core/src/question_text" {
9107
9115
  set inputType(val: string);
9108
9116
  getMaxLength(): any;
9109
9117
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
9118
+ protected getDisplayValueCore(keysAsText: boolean, value: any): any;
9110
9119
  isLayoutTypeSupported(layoutType: string): boolean;
9111
9120
  /**
9112
9121
  * A value passed on to the [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size) attribute of the underlying `<input>` element.
@@ -9904,7 +9913,7 @@ declare module "packages/survey-core/src/survey" {
9904
9913
  *
9905
9914
  * For information on event handler parameters, refer to descriptions within the interface.
9906
9915
  *
9907
- * To handle value changes in matrix cells or panels within a [Dynamic Panel](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model), use the [`onMatrixCellValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixCellValueChanged) or [`onDynamicPanelItemValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onDynamicPanelItemValueChanged) event.
9916
+ * To handle value changes in matrix cells or panels within a [Dynamic Panel](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model), use the [`onMatrixCellValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixCellValueChanged) or [`onDynamicPanelValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onDynamicPanelValueChanged) event.
9908
9917
  * @see setValue
9909
9918
  */
9910
9919
  onValueChanged: EventBase<SurveyModel, ValueChangedEvent>;
@@ -10434,7 +10443,12 @@ declare module "packages/survey-core/src/survey" {
10434
10443
  /**
10435
10444
  * An event that is raised after an item value is changed in a panel within a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
10436
10445
  */
10446
+ onDynamicPanelValueChanged: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
10437
10447
  onDynamicPanelItemValueChanged: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
10448
+ /**
10449
+ * An event that is raised after an item value is changing in a panel within a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
10450
+ */
10451
+ onDynamicPanelValueChanging: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
10438
10452
  /**
10439
10453
  * An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
10440
10454
  *
@@ -11560,6 +11574,7 @@ declare module "packages/survey-core/src/survey" {
11560
11574
  get currentPage(): any;
11561
11575
  set currentPage(value: any);
11562
11576
  tryNavigateToPage(page: PageModel): boolean;
11577
+ private performValidationOnPageChanging;
11563
11578
  private updateCurrentPage;
11564
11579
  private get isCurrentPageAvailable();
11565
11580
  private isPageExistsInSurvey;
@@ -11980,7 +11995,7 @@ declare module "packages/survey-core/src/survey" {
11980
11995
  private setIsValidatingOnServer;
11981
11996
  private createServerValidationOptions;
11982
11997
  protected onIsValidatingOnServerChanged(): void;
11983
- protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
11998
+ protected doServerValidation(doComplete: boolean, isPreview?: boolean, page?: PageModel): boolean;
11984
11999
  private completeServerValidation;
11985
12000
  protected doNextPage(): void;
11986
12001
  setCompleted(trigger: Trigger): void;
@@ -12083,6 +12098,7 @@ declare module "packages/survey-core/src/survey" {
12083
12098
  private hasQuestionVisibleIndeces;
12084
12099
  dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
12085
12100
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
12101
+ dynamicPanelItemValueChanging(question: IQuestion, options: any): void;
12086
12102
  dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
12087
12103
  dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
12088
12104
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
@@ -13546,6 +13562,7 @@ declare module "packages/survey-core/src/question" {
13546
13562
  private triggersInfo;
13547
13563
  private addTriggerInfo;
13548
13564
  private runTriggerInfo;
13565
+ private canExecuteTriggerByKeys;
13549
13566
  runTriggers(name: string, value: any, keys?: any): void;
13550
13567
  private runConditions;
13551
13568
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
@@ -15213,7 +15230,8 @@ declare module "packages/survey-core/src/base-interfaces" {
15213
15230
  dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): void;
15214
15231
  dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
15215
15232
  dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
15216
- dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
15233
+ dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
15234
+ dynamicPanelItemValueChanging(question: IQuestion, options: any): void;
15217
15235
  dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
15218
15236
  dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
15219
15237
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
@@ -18454,6 +18472,7 @@ declare module "packages/survey-core/src/question_rating" {
18454
18472
  import { DropdownListModel } from "packages/survey-core/src/dropdownListModel";
18455
18473
  import { ISurveyImpl } from "packages/survey-core/src/base-interfaces";
18456
18474
  import { ITheme } from "packages/survey-core/src/themes";
18475
+ import { HashTable } from "packages/survey-core/src/helpers";
18457
18476
  export class RenderedRatingItem extends Base {
18458
18477
  itemValue: ItemValue;
18459
18478
  private locString;
@@ -18566,8 +18585,16 @@ declare module "packages/survey-core/src/question_rating" {
18566
18585
  get visibleRateValues(): ItemValue[];
18567
18586
  protected supportEmptyValidation(): boolean;
18568
18587
  itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
18569
- private createRenderedRateItems;
18570
- renderedRateItems: Array<RenderedRatingItem>;
18588
+ protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
18589
+ protected runRateItesmCondition(values: HashTable<any>, properties: HashTable<any>): void;
18590
+ private getRateValuesCore;
18591
+ private calculateRateValues;
18592
+ private calculateRenderedRateItems;
18593
+ private calculateVisibleChoices;
18594
+ private iCounter;
18595
+ private resetRenderedItems;
18596
+ get renderedRateItems(): Array<RenderedRatingItem>;
18597
+ get visibleChoices(): ItemValue[];
18571
18598
  private createRateValues;
18572
18599
  private getRatingItemValue;
18573
18600
  private correctValue;
@@ -18722,8 +18749,6 @@ declare module "packages/survey-core/src/question_rating" {
18722
18749
  get renderedValue(): any;
18723
18750
  set renderedValue(val: any);
18724
18751
  isItemSelected(item: ItemValue): boolean;
18725
- private visibleChoicesValue;
18726
- get visibleChoices(): ItemValue[];
18727
18752
  get readOnlyText(): any;
18728
18753
  needResponsiveWidth(): boolean;
18729
18754
  protected supportResponsiveness(): boolean;