survey-react 1.12.62 → 1.12.64

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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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.62",
3
+ "version": "1.12.64",
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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 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
@@ -3248,6 +3248,10 @@ declare module "packages/survey-core/src/question_custom" {
3248
3248
  private checkCreatedQuestion;
3249
3249
  onSurveyLoad(): void;
3250
3250
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
3251
+ getConditionJson(operator?: string, path?: string): any;
3252
+ private isContentConditionPath;
3253
+ addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
3254
+ private replaceContentPrefix;
3251
3255
  protected convertDataName(name: string): string;
3252
3256
  protected convertDataValue(name: string, newValue: any): any;
3253
3257
  protected getContentQuestionValue(): any;
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.62
2
+ * surveyjs - Survey JavaScript library v1.12.64
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -25532,6 +25532,50 @@ var question_custom_QuestionCustomModel = /** @class */ (function (_super) {
25532
25532
  this.contentQuestion.runCondition(values, properties);
25533
25533
  }
25534
25534
  };
25535
+ QuestionCustomModel.prototype.getConditionJson = function (operator, path) {
25536
+ if (operator === void 0) { operator = null; }
25537
+ if (path === void 0) { path = null; }
25538
+ if (!!this.contentQuestion && this.isContentConditionPath(path)) {
25539
+ return this.contentQuestion.getConditionJson(operator, path);
25540
+ }
25541
+ return _super.prototype.getConditionJson.call(this, operator, path);
25542
+ };
25543
+ QuestionCustomModel.prototype.isContentConditionPath = function (path) {
25544
+ if (!path)
25545
+ return false;
25546
+ return path !== this.name && path !== this.getValueName() && path !== this.getFilteredName();
25547
+ };
25548
+ QuestionCustomModel.prototype.addConditionObjectsByContext = function (objects, context) {
25549
+ if (!!this.contentQuestion) {
25550
+ var nestedObjs = [];
25551
+ this.contentQuestion.addConditionObjectsByContext(nestedObjs, context);
25552
+ var contentNames = [this.contentQuestion.getFilteredName(), this.contentQuestion.getValueName()];
25553
+ for (var i = 0; i < nestedObjs.length; i++) {
25554
+ var obj = nestedObjs[i];
25555
+ obj.name = this.replaceContentPrefix(obj.name, contentNames, this.getValueName());
25556
+ obj.text = this.replaceContentPrefix(obj.text, [this.contentQuestion.processedTitle], this.processedTitle);
25557
+ obj.question = this;
25558
+ objects.push(obj);
25559
+ }
25560
+ return;
25561
+ }
25562
+ _super.prototype.addConditionObjectsByContext.call(this, objects, context);
25563
+ };
25564
+ QuestionCustomModel.prototype.replaceContentPrefix = function (name, contentNames, newName) {
25565
+ if (!name)
25566
+ return name;
25567
+ for (var i = 0; i < contentNames.length; i++) {
25568
+ var contentName = contentNames[i];
25569
+ if (!contentName)
25570
+ continue;
25571
+ if (name === contentName)
25572
+ return newName;
25573
+ if (name.indexOf(contentName + ".") === 0) {
25574
+ return newName + name.substring(contentName.length);
25575
+ }
25576
+ }
25577
+ return name;
25578
+ };
25535
25579
  QuestionCustomModel.prototype.convertDataName = function (name) {
25536
25580
  var q = this.contentQuestion;
25537
25581
  if (!q || name === this.getValueName())
@@ -73360,9 +73404,9 @@ Serializer.addClass("currencymask", [
73360
73404
 
73361
73405
  var Version;
73362
73406
  var ReleaseDate;
73363
- Version = "" + "1.12.62";
73407
+ Version = "" + "1.12.64";
73364
73408
  settings.version = Version;
73365
- ReleaseDate = "" + "2026-03-18";
73409
+ ReleaseDate = "" + "2026-07-20";
73366
73410
  function checkLibraryVersion(ver, libraryName) {
73367
73411
  if (Version != ver) {
73368
73412
  var str = "survey-core has version '" + Version + "' and " + libraryName