survey-react 1.9.25 → 1.9.26

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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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.9.25",
3
+ "version": "1.9.26",
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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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.9.25
2
+ * surveyjs - Survey JavaScript library v1.9.26
3
3
  * Copyright (c) 2015-2022 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
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.25
2
+ * Type definition for Survey JavaScript library for React v1.9.26
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -479,6 +479,11 @@ export interface IFindElement {
479
479
  element: Base;
480
480
  str: LocalizableString;
481
481
  }
482
+ export interface IExpressionRunnerInfo {
483
+ onExecute: any;
484
+ canRun?: any;
485
+ runner?: ExpressionRunner;
486
+ }
482
487
  export interface IValidatorOwner {
483
488
  getValidators(): Array<SurveyValidator>;
484
489
  validatedValue: any;
@@ -589,6 +594,7 @@ export declare class Base {
589
594
  localizableStrings: any;
590
595
  arraysInfo: any;
591
596
  eventList: any;
597
+ expressionInfo: any;
592
598
  bindingsValue: Bindings;
593
599
  isDisposedValue: boolean;
594
600
  onPropChangeFunctions: any;
@@ -648,6 +654,10 @@ export declare class Base {
648
654
  getType(): string;
649
655
  getSurvey(isLive?: boolean): ISurvey;
650
656
  /*
657
+ * Returns true if the question in design mode right now.
658
+ */
659
+ get isDesignMode(): boolean;
660
+ /*
651
661
  * Returns true if the object is inluded into survey, otherwise returns false.
652
662
  */
653
663
  get inSurvey(): boolean;
@@ -709,6 +719,11 @@ export declare class Base {
709
719
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
710
720
  protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
711
721
  protected get isInternal(): boolean;
722
+ addExpressionProperty(name: string, onExecute: any, canRun?: any): void;
723
+ getDataFilteredValues(): any;
724
+ getDataFilteredProperties(): any;
725
+ protected runConditionCore(values: any, properties: any): void;
726
+ protected canRunConditions(): boolean;
712
727
  /*
713
728
  * Register a function that will be called on a property value changed.
714
729
  */
@@ -1921,6 +1936,7 @@ export declare class JsonObjectProperty implements IObject {
1921
1936
  onGetValue: any;
1922
1937
  onSetValue: any;
1923
1938
  visibleIf: any;
1939
+ onExecuteExpression: any;
1924
1940
  onPropertyEditorUpdate: any;
1925
1941
  get id(): number;
1926
1942
  get classInfo(): JsonMetadataClass;
@@ -3349,6 +3365,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3349
3365
  get titleTabIndex(): number;
3350
3366
  get titleAriaExpanded(): boolean;
3351
3367
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3368
+ protected canRunConditions(): boolean;
3369
+ getDataFilteredValues(): any;
3370
+ getDataFilteredProperties(): any;
3352
3371
  protected get surveyImpl(): ISurveyImpl;
3353
3372
  __setData(data: ISurveyData): void;
3354
3373
  get data(): ISurveyData;
@@ -3358,10 +3377,6 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3358
3377
  get survey(): ISurvey;
3359
3378
  getSurvey(live?: boolean): ISurvey;
3360
3379
  protected setSurveyCore(value: ISurvey): void;
3361
- /*
3362
- * Returns true if the question in design mode right now.
3363
- */
3364
- get isDesignMode(): boolean;
3365
3380
  isContentElement: boolean;
3366
3381
  isEditableTemplateElement: boolean;
3367
3382
  isInteractiveDesignElement: boolean;
@@ -6028,15 +6043,12 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6028
6043
  constructor(name: string);
6029
6044
  static TextPreprocessorValuesMap: any;
6030
6045
  static questionCounter: number;
6031
- conditionRunner: ConditionRunner;
6032
6046
  isCustomWidgetRequested: boolean;
6033
6047
  customWidgetValue: QuestionCustomWidget;
6034
6048
  customWidgetData: any;
6035
6049
  focusCallback: any;
6036
6050
  surveyLoadCallback: any;
6037
6051
  displayValueCallback: any;
6038
- conditionEnabelRunner: ConditionRunner;
6039
- conditionRequiredRunner: ConditionRunner;
6040
6052
  defaultValueRunner: ExpressionRunner;
6041
6053
  isChangingViaDefaultValue: boolean;
6042
6054
  isValueChangedDirectly: boolean;
@@ -6144,8 +6156,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6144
6156
  moveTo(container: IPanel, insertBefore?: any): boolean;
6145
6157
  getProgressInfo(): IProgressInfo;
6146
6158
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
6147
- getDataFilteredValues(): any;
6148
- getDataFilteredProperties(): any;
6149
6159
  /*
6150
6160
  * A parent element. It can be panel or page.
6151
6161
  */
@@ -6555,9 +6565,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6555
6565
  protected checkForResponsiveness(el: any): void;
6556
6566
  resizeObserver: any;
6557
6567
  protected getObservedElementSelector(): string;
6568
+ onMobileChangedCallback: any;
6558
6569
  protected getCompactRenderAs(): string;
6559
6570
  protected getDesktopRenderAs(): string;
6560
- protected processResponsiveness(requiredWidth: number, availableWidth: number): void;
6571
+ protected processResponsiveness(requiredWidth: number, availableWidth: number): any;
6561
6572
  dispose(): void;
6562
6573
  }
6563
6574
  export declare class SurveyFlowPanel extends SurveyPanel {
@@ -8948,7 +8959,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
8948
8959
  onContentLoaded: any;
8949
8960
  responsiveColCount: number;
8950
8961
  protected getCurrentColCount(): number;
8951
- protected processResponsiveness(_: number, availableWidth: number): void;
8962
+ protected processResponsiveness(_: number, availableWidth: number): boolean;
8952
8963
  gapBetweenItems: number;
8953
8964
  afterRender(el: any): void;
8954
8965
  }