survey-core 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-core",
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.core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library. Platform independent (core) v1.9.25
2
+ * Type definition for Survey JavaScript library. Platform independent (core) 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
  */
@@ -477,6 +477,11 @@ export interface IFindElement {
477
477
  element: Base;
478
478
  str: LocalizableString;
479
479
  }
480
+ export interface IExpressionRunnerInfo {
481
+ onExecute: any;
482
+ canRun?: any;
483
+ runner?: ExpressionRunner;
484
+ }
480
485
  export interface IValidatorOwner {
481
486
  getValidators(): Array<SurveyValidator>;
482
487
  validatedValue: any;
@@ -554,6 +559,7 @@ export declare class Base {
554
559
  localizableStrings: any;
555
560
  arraysInfo: any;
556
561
  eventList: any;
562
+ expressionInfo: any;
557
563
  bindingsValue: Bindings;
558
564
  isDisposedValue: boolean;
559
565
  onPropChangeFunctions: any;
@@ -613,6 +619,10 @@ export declare class Base {
613
619
  getType(): string;
614
620
  getSurvey(isLive?: boolean): ISurvey;
615
621
  /*
622
+ * Returns true if the question in design mode right now.
623
+ */
624
+ get isDesignMode(): boolean;
625
+ /*
616
626
  * Returns true if the object is inluded into survey, otherwise returns false.
617
627
  */
618
628
  get inSurvey(): boolean;
@@ -674,6 +684,11 @@ export declare class Base {
674
684
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
675
685
  protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
676
686
  protected get isInternal(): boolean;
687
+ addExpressionProperty(name: string, onExecute: any, canRun?: any): void;
688
+ getDataFilteredValues(): any;
689
+ getDataFilteredProperties(): any;
690
+ protected runConditionCore(values: any, properties: any): void;
691
+ protected canRunConditions(): boolean;
677
692
  /*
678
693
  * Register a function that will be called on a property value changed.
679
694
  */
@@ -1765,6 +1780,7 @@ export declare class JsonObjectProperty implements IObject {
1765
1780
  onGetValue: any;
1766
1781
  onSetValue: any;
1767
1782
  visibleIf: any;
1783
+ onExecuteExpression: any;
1768
1784
  onPropertyEditorUpdate: any;
1769
1785
  get id(): number;
1770
1786
  get classInfo(): JsonMetadataClass;
@@ -2956,6 +2972,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
2956
2972
  get titleTabIndex(): number;
2957
2973
  get titleAriaExpanded(): boolean;
2958
2974
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
2975
+ protected canRunConditions(): boolean;
2976
+ getDataFilteredValues(): any;
2977
+ getDataFilteredProperties(): any;
2959
2978
  protected get surveyImpl(): ISurveyImpl;
2960
2979
  __setData(data: ISurveyData): void;
2961
2980
  get data(): ISurveyData;
@@ -2965,10 +2984,6 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
2965
2984
  get survey(): ISurvey;
2966
2985
  getSurvey(live?: boolean): ISurvey;
2967
2986
  protected setSurveyCore(value: ISurvey): void;
2968
- /*
2969
- * Returns true if the question in design mode right now.
2970
- */
2971
- get isDesignMode(): boolean;
2972
2987
  isContentElement: boolean;
2973
2988
  isEditableTemplateElement: boolean;
2974
2989
  isInteractiveDesignElement: boolean;
@@ -5309,15 +5324,12 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5309
5324
  constructor(name: string);
5310
5325
  static TextPreprocessorValuesMap: any;
5311
5326
  static questionCounter: number;
5312
- conditionRunner: ConditionRunner;
5313
5327
  isCustomWidgetRequested: boolean;
5314
5328
  customWidgetValue: QuestionCustomWidget;
5315
5329
  customWidgetData: any;
5316
5330
  focusCallback: any;
5317
5331
  surveyLoadCallback: any;
5318
5332
  displayValueCallback: any;
5319
- conditionEnabelRunner: ConditionRunner;
5320
- conditionRequiredRunner: ConditionRunner;
5321
5333
  defaultValueRunner: ExpressionRunner;
5322
5334
  isChangingViaDefaultValue: boolean;
5323
5335
  isValueChangedDirectly: boolean;
@@ -5425,8 +5437,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5425
5437
  moveTo(container: IPanel, insertBefore?: any): boolean;
5426
5438
  getProgressInfo(): IProgressInfo;
5427
5439
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5428
- getDataFilteredValues(): any;
5429
- getDataFilteredProperties(): any;
5430
5440
  /*
5431
5441
  * A parent element. It can be panel or page.
5432
5442
  */
@@ -5836,9 +5846,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5836
5846
  protected checkForResponsiveness(el: any): void;
5837
5847
  resizeObserver: any;
5838
5848
  protected getObservedElementSelector(): string;
5849
+ onMobileChangedCallback: any;
5839
5850
  protected getCompactRenderAs(): string;
5840
5851
  protected getDesktopRenderAs(): string;
5841
- protected processResponsiveness(requiredWidth: number, availableWidth: number): void;
5852
+ protected processResponsiveness(requiredWidth: number, availableWidth: number): any;
5842
5853
  dispose(): void;
5843
5854
  }
5844
5855
  /*
@@ -8108,7 +8119,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
8108
8119
  onContentLoaded: any;
8109
8120
  responsiveColCount: number;
8110
8121
  protected getCurrentColCount(): number;
8111
- protected processResponsiveness(_: number, availableWidth: number): void;
8122
+ protected processResponsiveness(_: number, availableWidth: number): boolean;
8112
8123
  gapBetweenItems: number;
8113
8124
  afterRender(el: any): void;
8114
8125
  }