survey-angular-ui 1.11.12 → 1.11.13

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.
@@ -42,7 +42,7 @@
42
42
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
43
  PERFORMANCE OF THIS SOFTWARE.
44
44
  ***************************************************************************** */
45
- /* global Reflect, Promise, SuppressedError, Symbol */
45
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
46
46
  var extendStatics = function (d, b) {
47
47
  extendStatics = Object.setPrototypeOf ||
48
48
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -178,8 +178,8 @@
178
178
  }
179
179
  function __generator(thisArg, body) {
180
180
  var _ = { label: 0, sent: function () { if (t[0] & 1)
181
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
182
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
181
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
182
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
183
183
  function verb(n) { return function (v) { return step([n, v]); }; }
184
184
  function step(op) {
185
185
  if (f)
@@ -334,7 +334,7 @@
334
334
  if (!Symbol.asyncIterator)
335
335
  throw new TypeError("Symbol.asyncIterator is not defined.");
336
336
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
337
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
337
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
338
338
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
339
339
  function verb(n, f) { if (g[n]) {
340
340
  i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); };
@@ -458,18 +458,26 @@
458
458
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
459
459
  env.hasError = true;
460
460
  }
461
+ var r, s = 0;
461
462
  function next() {
462
- while (env.stack.length) {
463
- var rec = env.stack.pop();
463
+ while (r = env.stack.pop()) {
464
464
  try {
465
- var result = rec.dispose && rec.dispose.call(rec.value);
466
- if (rec.async)
467
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
465
+ if (!r.async && s === 1)
466
+ return s = 0, env.stack.push(r), Promise.resolve().then(next);
467
+ if (r.dispose) {
468
+ var result = r.dispose.call(r.value);
469
+ if (r.async)
470
+ return s |= 2, Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
471
+ }
472
+ else
473
+ s |= 1;
468
474
  }
469
475
  catch (e) {
470
476
  fail(e);
471
477
  }
472
478
  }
479
+ if (s === 1)
480
+ return env.hasError ? Promise.reject(env.error) : Promise.resolve();
473
481
  if (env.hasError)
474
482
  throw env.error;
475
483
  }
@@ -4436,7 +4444,7 @@
4436
4444
  var _a;
4437
4445
  _super.prototype.ngDoCheck.call(this);
4438
4446
  if (this.cell.isErrorsCell && ((_a = this.cell) === null || _a === void 0 ? void 0 : _a.question)) {
4439
- this.cell.question.registerFunctionOnPropertyValueChanged("errors", function () {
4447
+ this.cell.question.registerFunctionOnPropertiesValueChanged(["errors", "visible"], function () {
4440
4448
  _this.update();
4441
4449
  }, "__ngSubscription");
4442
4450
  }
@@ -4489,30 +4497,33 @@
4489
4497
  configurable: true
4490
4498
  });
4491
4499
  MatrixDropdownCellComponent.prototype.ngAfterViewInit = function () {
4500
+ var _a;
4492
4501
  if (!this.cell.hasQuestion || !this.question || !this.question.survey)
4493
4502
  return;
4494
- var el = this.cellContainer.nativeElement;
4495
- var cellQ = this.cell.question;
4496
- var options = {
4497
- cell: this.cell.cell,
4498
- cellQuestion: cellQ,
4499
- htmlElement: el,
4500
- row: this.cell.row,
4501
- column: this.cell.cell.column,
4502
- };
4503
- this.question.survey.matrixAfterCellRender(this.question, options);
4504
- cellQ.afterRenderCore(el);
4503
+ var el = (_a = this.cellContainer) === null || _a === void 0 ? void 0 : _a.nativeElement;
4504
+ if (el) {
4505
+ var cellQ = this.cell.question;
4506
+ var options = {
4507
+ cell: this.cell.cell,
4508
+ cellQuestion: cellQ,
4509
+ htmlElement: el,
4510
+ row: this.cell.row,
4511
+ column: this.cell.cell.column,
4512
+ };
4513
+ this.question.survey.matrixAfterCellRender(this.question, options);
4514
+ cellQ.afterRenderCore(el);
4515
+ }
4505
4516
  };
4506
4517
  MatrixDropdownCellComponent.prototype.ngOnDestroy = function () {
4507
4518
  var _a;
4508
4519
  _super.prototype.ngOnDestroy.call(this);
4509
4520
  if (this.cell.isErrorsCell && ((_a = this.cell) === null || _a === void 0 ? void 0 : _a.question)) {
4510
- this.cell.question.unRegisterFunctionOnPropertyValueChanged("errors", "__ngSubscription");
4521
+ this.cell.question.unRegisterFunctionOnPropertiesValueChanged(["errors", "visible"], "__ngSubscription");
4511
4522
  }
4512
4523
  };
4513
4524
  Object.defineProperty(MatrixDropdownCellComponent.prototype, "canRender", {
4514
4525
  get: function () {
4515
- return this.question && this.question.survey;
4526
+ return this.question && this.question.survey && this.cell.isVisible;
4516
4527
  },
4517
4528
  enumerable: false,
4518
4529
  configurable: true