survey-react-ui 1.10.2 → 1.10.4

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-ui",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "typings": "survey-react-ui.d.ts",
23
23
  "peerDependencies": {
24
- "survey-core": "*",
24
+ "survey-core": "1.10.4",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.2.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.10.2
2
+ * surveyjs - Survey JavaScript library v1.10.4
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
  */
@@ -164,9 +164,9 @@ function createDropdownActionModelAdvanced(actionOptions, listOptions, popupOpti
164
164
  }, listOptions.allowSelection, listOptions.selectedItem);
165
165
  listModel.locOwner = locOwner;
166
166
  listModel.setOnFilterStringChangedCallback(listOptions.onFilterStringChangedCallback);
167
- var innerPopupModel = new _popup__WEBPACK_IMPORTED_MODULE_4__["PopupModel"]("sv-list", { model: listModel }, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.verticalPosition, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.horizontalPosition, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.showPointer, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.isModal, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onCancel, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onApply, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onHide, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onShow, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.cssClass, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.title, function () {
168
- listModel.dispose();
169
- });
167
+ var options = popupOptions || {};
168
+ options.onDispose = function () { listModel.dispose(); };
169
+ var innerPopupModel = new _popup__WEBPACK_IMPORTED_MODULE_4__["PopupModel"]("sv-list", { model: listModel }, options);
170
170
  innerPopupModel.displayMode = popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.displayMode;
171
171
  var newActionOptions = Object.assign({}, actionOptions, {
172
172
  component: "sv-action-bar-item-dropdown",
@@ -190,7 +190,6 @@ var BaseAction = /** @class */ (function (_super) {
190
190
  function BaseAction() {
191
191
  var _this = _super !== null && _super.apply(this, arguments) || this;
192
192
  _this.rendredIdValue = BaseAction.getNextRendredId();
193
- _this.iconSize = 24;
194
193
  return _this;
195
194
  }
196
195
  BaseAction.getNextRendredId = function () { return BaseAction.renderedId++; };
@@ -393,7 +392,7 @@ var BaseAction = /** @class */ (function (_super) {
393
392
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
394
393
  ], BaseAction.prototype, "iconName", void 0);
395
394
  __decorate([
396
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
395
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: 24 })
397
396
  ], BaseAction.prototype, "iconSize", void 0);
398
397
  __decorate([
399
398
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
@@ -1267,6 +1266,8 @@ var Base = /** @class */ (function () {
1267
1266
  * A new value for the property.
1268
1267
  * - `options.oldValue`: `any`\
1269
1268
  * An old value of the property. If the property is an array, `oldValue` contains the same array as `newValue` does.
1269
+ *
1270
+ * If you need to add and remove property change event handlers dynamically, use the [`registerPropertyChangedHandlers`](#registerPropertyChangedHandlers) and [`unregisterPropertyChangedHandlers`](#unregisterPropertyChangedHandlers) methods instead.
1270
1271
  */
1271
1272
  this.onPropertyChanged = this.addEvent();
1272
1273
  /**
@@ -1837,9 +1838,11 @@ var Base = /** @class */ (function () {
1837
1838
  return res;
1838
1839
  };
1839
1840
  /**
1840
- * Registers a function to call when a property value changes.
1841
+ * Registers a single value change handler for one or multiple properties.
1842
+ *
1843
+ * The `registerPropertyChangedHandlers` and [`unregisterPropertyChangedHandlers`](#unregisterPropertyChangedHandlers) methods allow you to manage property change event handlers dynamically. If you only need to attach an event handler without removing it afterwards, you can use the [`onPropertyChanged`](#onPropertyChanged) event instead.
1841
1844
  * @param propertyNames An array of one or multiple property names.
1842
- * @param handler A function to call when one of the listed properties change.
1845
+ * @param handler A function to call when one of the listed properties change. Accepts a new property value as an argument.
1843
1846
  * @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
1844
1847
  * @see unregisterPropertyChangedHandlers
1845
1848
  */
@@ -2398,13 +2401,18 @@ var ProcessValue = /** @class */ (function () {
2398
2401
  };
2399
2402
  ProcessValue.prototype.isAnyKeyChanged = function (keys, usedNames) {
2400
2403
  for (var i = 0; i < usedNames.length; i++) {
2401
- var name = usedNames[i];
2402
- if (keys.hasOwnProperty(name))
2404
+ var name_1 = usedNames[i];
2405
+ if (!name_1)
2406
+ continue;
2407
+ var lowerName = name_1.toLowerCase();
2408
+ if (keys.hasOwnProperty(name_1))
2409
+ return true;
2410
+ if (name_1 !== lowerName && keys.hasOwnProperty(lowerName))
2403
2411
  return true;
2404
- var firstName = this.getFirstName(name);
2412
+ var firstName = this.getFirstName(name_1);
2405
2413
  if (!keys.hasOwnProperty(firstName))
2406
2414
  continue;
2407
- if (name === firstName)
2415
+ if (name_1 === firstName)
2408
2416
  return true;
2409
2417
  var keyValue = keys[firstName];
2410
2418
  if (keyValue == undefined)
@@ -2414,9 +2422,9 @@ var ProcessValue = /** @class */ (function () {
2414
2422
  return true;
2415
2423
  var v = {};
2416
2424
  v[firstName] = keyValue["oldValue"];
2417
- var oldValue = this.getValue(name, v);
2425
+ var oldValue = this.getValue(name_1, v);
2418
2426
  v[firstName] = keyValue["newValue"];
2419
- var newValue = this.getValue(name, v);
2427
+ var newValue = this.getValue(name_1, v);
2420
2428
  if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(oldValue, newValue, false, false, false))
2421
2429
  return true;
2422
2430
  }
@@ -3630,7 +3638,7 @@ __webpack_require__.r(__webpack_exports__);
3630
3638
 
3631
3639
 
3632
3640
 
3633
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.10.2", "survey-react-ui");
3641
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.10.4", "survey-react-ui");
3634
3642
 
3635
3643
 
3636
3644
  /***/ }),
@@ -7432,6 +7440,8 @@ __webpack_require__.r(__webpack_exports__);
7432
7440
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers */ "./src/helpers.ts");
7433
7441
  /* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
7434
7442
  /* harmony import */ var _console_warnings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./console-warnings */ "./src/console-warnings.ts");
7443
+ /* harmony import */ var _conditions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./conditions */ "./src/conditions.ts");
7444
+
7435
7445
 
7436
7446
 
7437
7447
 
@@ -7554,7 +7564,7 @@ function avg(params) {
7554
7564
  }
7555
7565
  FunctionFactory.Instance.register("avg", avg);
7556
7566
  function getInArrayParams(params) {
7557
- if (params.length != 2)
7567
+ if (params.length < 2 || params.length > 3)
7558
7568
  return null;
7559
7569
  var arr = params[0];
7560
7570
  if (!arr)
@@ -7564,16 +7574,22 @@ function getInArrayParams(params) {
7564
7574
  var name = params[1];
7565
7575
  if (typeof name !== "string" && !(name instanceof String))
7566
7576
  return null;
7567
- return { data: arr, name: name };
7577
+ var expression = params.length === 3 ? params[2] : undefined;
7578
+ if (typeof expression !== "string" && !(expression instanceof String)) {
7579
+ expression = undefined;
7580
+ }
7581
+ return { data: arr, name: name, expression: expression };
7568
7582
  }
7569
7583
  function convertToNumber(val) {
7570
7584
  if (typeof val === "string")
7571
7585
  return _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isNumber(val) ? _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].getNumber(val) : undefined;
7572
7586
  return val;
7573
7587
  }
7574
- function processItemInArray(item, name, res, func, needToConvert) {
7588
+ function processItemInArray(item, name, res, func, needToConvert, condition) {
7575
7589
  if (!item || _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isValueEmpty(item[name]))
7576
7590
  return res;
7591
+ if (condition && !condition.run(item))
7592
+ return res;
7577
7593
  var val = needToConvert ? convertToNumber(item[name]) : 1;
7578
7594
  return func(res, val);
7579
7595
  }
@@ -7582,15 +7598,19 @@ function calcInArray(params, func, needToConvert) {
7582
7598
  var v = getInArrayParams(params);
7583
7599
  if (!v)
7584
7600
  return undefined;
7601
+ var condition = !!v.expression ? new _conditions__WEBPACK_IMPORTED_MODULE_3__["ConditionRunner"](v.expression) : undefined;
7602
+ if (condition && condition.isAsync) {
7603
+ condition = undefined;
7604
+ }
7585
7605
  var res = undefined;
7586
7606
  if (Array.isArray(v.data)) {
7587
7607
  for (var i = 0; i < v.data.length; i++) {
7588
- res = processItemInArray(v.data[i], v.name, res, func, needToConvert);
7608
+ res = processItemInArray(v.data[i], v.name, res, func, needToConvert, condition);
7589
7609
  }
7590
7610
  }
7591
7611
  else {
7592
7612
  for (var key in v.data) {
7593
- res = processItemInArray(v.data[key], v.name, res, func, needToConvert);
7613
+ res = processItemInArray(v.data[key], v.name, res, func, needToConvert, condition);
7594
7614
  }
7595
7615
  }
7596
7616
  return res;
@@ -9617,10 +9637,18 @@ var JsonMetadata = /** @class */ (function () {
9617
9637
  return metaClass.getAllProperties();
9618
9638
  };
9619
9639
  JsonMetadata.prototype.getPropertiesByObj = function (obj) {
9620
- if (!obj || !obj.getType)
9640
+ var type = !!obj && !!obj.getType ? obj.getType() : undefined;
9641
+ if (!type)
9621
9642
  return [];
9622
- var props = this.getProperties(obj.getType());
9643
+ var props = this.getProperties(type);
9623
9644
  var dynamicProps = this.getDynamicPropertiesByObj(obj);
9645
+ for (var i = dynamicProps.length - 1; i >= 0; i--) {
9646
+ if (this.findProperty(type, dynamicProps[i].name)) {
9647
+ dynamicProps.splice(i, 1);
9648
+ }
9649
+ }
9650
+ if (dynamicProps.length === 0)
9651
+ return props;
9624
9652
  return [].concat(props).concat(dynamicProps);
9625
9653
  };
9626
9654
  JsonMetadata.prototype.addDynamicPropertiesIntoObj = function (dest, src, props) {
@@ -10331,7 +10359,7 @@ var JsonObject = /** @class */ (function () {
10331
10359
  this.removePosFromObj(value);
10332
10360
  };
10333
10361
  JsonObject.prototype.removePosFromObj = function (obj) {
10334
- if (!obj)
10362
+ if (!obj || typeof obj.getType === "function")
10335
10363
  return;
10336
10364
  if (Array.isArray(obj)) {
10337
10365
  for (var i = 0; i < obj.length; i++) {
@@ -11551,7 +11579,7 @@ var englishStrings = {
11551
11579
  questionsProgressText: "Answered {0}/{1} questions",
11552
11580
  emptySurvey: "The survey doesn't contain any visible elements.",
11553
11581
  completingSurvey: "Thank you for completing the survey",
11554
- completingSurveyBefore: "Our records show that you have already completed this survey.",
11582
+ completingSurveyBefore: "You have already completed this survey.",
11555
11583
  loadingSurvey: "Loading Survey...",
11556
11584
  placeholder: "Select...",
11557
11585
  ratingOptionsCaption: "Select...",
@@ -11601,7 +11629,7 @@ var englishStrings = {
11601
11629
  savingData: "The results are being saved on the server...",
11602
11630
  savingDataError: "An error occurred and we could not save the results.",
11603
11631
  savingDataSuccess: "The results were saved successfully!",
11604
- savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner.",
11632
+ savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",
11605
11633
  saveAgainButton: "Try again",
11606
11634
  timerMin: "min",
11607
11635
  timerSec: "sec",
@@ -11687,36 +11715,29 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
11687
11715
 
11688
11716
  var PopupModel = /** @class */ (function (_super) {
11689
11717
  __extends(PopupModel, _super);
11690
- function PopupModel(contentComponentName, contentComponentData, verticalPosition, horizontalPosition, showPointer, isModal, onCancel, onApply, onHide, onShow, cssClass, title, onDispose) {
11691
- if (verticalPosition === void 0) { verticalPosition = "bottom"; }
11692
- if (horizontalPosition === void 0) { horizontalPosition = "left"; }
11693
- if (showPointer === void 0) { showPointer = true; }
11694
- if (isModal === void 0) { isModal = false; }
11695
- if (onCancel === void 0) { onCancel = function () { }; }
11696
- if (onApply === void 0) { onApply = function () { return true; }; }
11697
- if (onHide === void 0) { onHide = function () { }; }
11698
- if (onShow === void 0) { onShow = function () { }; }
11699
- if (cssClass === void 0) { cssClass = ""; }
11700
- if (title === void 0) { title = ""; }
11701
- if (onDispose === void 0) { onDispose = function () { }; }
11718
+ function PopupModel(contentComponentName, contentComponentData, option1, option2) {
11702
11719
  var _this = _super.call(this) || this;
11703
- _this.onDispose = onDispose;
11704
11720
  _this.focusFirstInputSelector = "";
11721
+ _this.onCancel = function () { };
11722
+ _this.onApply = function () { return true; };
11723
+ _this.onHide = function () { };
11724
+ _this.onShow = function () { };
11725
+ _this.onDispose = function () { };
11705
11726
  _this.onVisibilityChanged = _this.addEvent();
11706
11727
  _this.onFooterActionsCreated = _this.addEvent();
11707
11728
  _this.onRecalculatePosition = _this.addEvent();
11708
11729
  _this.contentComponentName = contentComponentName;
11709
11730
  _this.contentComponentData = contentComponentData;
11710
- _this.verticalPosition = verticalPosition;
11711
- _this.horizontalPosition = horizontalPosition;
11712
- _this.showPointer = showPointer;
11713
- _this.isModal = isModal;
11714
- _this.onCancel = onCancel;
11715
- _this.onApply = onApply;
11716
- _this.onHide = onHide;
11717
- _this.onShow = onShow;
11718
- _this.cssClass = cssClass;
11719
- _this.title = title;
11731
+ if (!!option1 && typeof option1 === "string") {
11732
+ _this.verticalPosition = option1;
11733
+ _this.horizontalPosition = option2;
11734
+ }
11735
+ else if (!!option1) {
11736
+ var popupOptions = option1;
11737
+ for (var key in popupOptions) {
11738
+ _this[key] = popupOptions[key];
11739
+ }
11740
+ }
11720
11741
  return _this;
11721
11742
  }
11722
11743
  PopupModel.prototype.refreshInnerModel = function () {
@@ -11772,7 +11793,7 @@ var PopupModel = /** @class */ (function (_super) {
11772
11793
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "left" })
11773
11794
  ], PopupModel.prototype, "horizontalPosition", void 0);
11774
11795
  __decorate([
11775
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
11796
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
11776
11797
  ], PopupModel.prototype, "showPointer", void 0);
11777
11798
  __decorate([
11778
11799
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
@@ -11783,18 +11804,6 @@ var PopupModel = /** @class */ (function (_super) {
11783
11804
  __decorate([
11784
11805
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
11785
11806
  ], PopupModel.prototype, "isFocusedContainer", void 0);
11786
- __decorate([
11787
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { } })
11788
- ], PopupModel.prototype, "onCancel", void 0);
11789
- __decorate([
11790
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { return true; } })
11791
- ], PopupModel.prototype, "onApply", void 0);
11792
- __decorate([
11793
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { } })
11794
- ], PopupModel.prototype, "onHide", void 0);
11795
- __decorate([
11796
- Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: function () { } })
11797
- ], PopupModel.prototype, "onShow", void 0);
11798
11807
  __decorate([
11799
11808
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
11800
11809
  ], PopupModel.prototype, "cssClass", void 0);
@@ -12086,7 +12095,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
12086
12095
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, _this.question.swapOrder); } },
12087
12096
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(this.question.swapOrder) }, this.renderLocString(this.question.locLabelLeft))),
12088
12097
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
12089
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
12098
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider, style: { marginLeft: this.question.thumbMargin } }, this.question.isDeterminated && cssClasses.sliderText ?
12090
12099
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
12091
12100
  : null)),
12092
12101
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, !_this.question.swapOrder); } },
@@ -22442,6 +22451,7 @@ var settings = {
22442
22451
  * A separator used in a shorthand notation that specifies a value and display text for an [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) object: `"value|text"`.
22443
22452
  *
22444
22453
  * Default value: `"|"`
22454
+ * @see [settings.choicesSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#choicesSeparator)
22445
22455
  */
22446
22456
  itemValueSeparator: "|",
22447
22457
  /**
@@ -22596,6 +22606,13 @@ var settings = {
22596
22606
  dontKnowItem: [3],
22597
22607
  otherItem: [4]
22598
22608
  },
22609
+ /**
22610
+ * One or several characters used to separate choice options in a list.
22611
+ *
22612
+ * Default value: `", "`
22613
+ * @see [settings.itemValueSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#itemValueSeparator)
22614
+ */
22615
+ choicesSeparator: ", ",
22599
22616
  /**
22600
22617
  * A list of supported validators by question type.
22601
22618
  */
@@ -24193,7 +24210,7 @@ var SurveyElement = /** @class */ (function (_super) {
24193
24210
  configurable: true
24194
24211
  });
24195
24212
  SurveyElement.prototype.getIsAnimationAllowed = function () {
24196
- return _super.prototype.getIsAnimationAllowed.call(this) && !!this.survey;
24213
+ return _super.prototype.getIsAnimationAllowed.call(this) && !!this.survey && !this.survey["isEndLoadingFromJson"];
24197
24214
  };
24198
24215
  SurveyElement.prototype.dispose = function () {
24199
24216
  _super.prototype.dispose.call(this);
@@ -24444,10 +24461,15 @@ var AnimationUtils = /** @class */ (function () {
24444
24461
  options.onBeforeRunAnimation && options.onBeforeRunAnimation(element);
24445
24462
  }
24446
24463
  };
24464
+ AnimationUtils.prototype.getCssClasses = function (options) {
24465
+ return options.cssClass.replace(/\s+$/, "").split(/\s+/);
24466
+ };
24447
24467
  AnimationUtils.prototype.runAnimation = function (element, options, callback) {
24448
24468
  if (element && options.cssClass) {
24449
24469
  this.reflow(element);
24450
- element.classList.add(options.cssClass);
24470
+ this.getCssClasses(options).forEach(function (cssClass) {
24471
+ element.classList.add(cssClass);
24472
+ });
24451
24473
  this.onAnimationEnd(element, callback, options);
24452
24474
  }
24453
24475
  else {
@@ -24456,7 +24478,9 @@ var AnimationUtils = /** @class */ (function () {
24456
24478
  };
24457
24479
  AnimationUtils.prototype.clearHtmlElement = function (element, options) {
24458
24480
  if (element && options.cssClass) {
24459
- element.classList.remove(options.cssClass);
24481
+ this.getCssClasses(options).forEach(function (cssClass) {
24482
+ element.classList.remove(cssClass);
24483
+ });
24460
24484
  }
24461
24485
  };
24462
24486
  AnimationUtils.prototype.onNextRender = function (callback, runEarly, isCancel) {