@bizdoc/core 1.8.19 → 1.8.20

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.
@@ -2244,11 +2244,11 @@
2244
2244
  Average: 'Average',
2245
2245
  Open: 'Open',
2246
2246
  Sound: 'Sound',
2247
- TaggedInComments: 'Someone tagged me in comments',
2247
+ TaggedInComments: 'Someone mention me in comments',
2248
2248
  TaggedYourselfNotify: 'You tagged yourself on {0} #{1}',
2249
- TaggedNotify: '{0} tagged you on {1} #{2}',
2250
- TaggedMaleNotify: '{0} tagged you on {1} #{2}',
2251
- TaggedFemaleNotify: '{0} tagged you on {1} #{2}',
2249
+ TaggedNotify: '{0} mentioned you on {1} #{2}',
2250
+ TaggedMaleNotify: '{0} mentioned you on {1} #{2}',
2251
+ TaggedFemaleNotify: '{0} mentioned you on {1} #{2}',
2252
2252
  LikedOneNotify: '{0} liked your comment on <a>#{2}</a>',
2253
2253
  DislikedOneNotify: '{0} didn\'t like your comment on <a>#{2}</a>',
2254
2254
  LikedManyNotify: '{0} liked your comment on <a>#{1}</a>',
@@ -13388,7 +13388,7 @@
13388
13388
  }], ctorParameters: function () { return [{ type: HubService }]; } });
13389
13389
 
13390
13390
  var moment$g = require('moment');
13391
- i11$2.Diagram.Inject(i11$2.ComplexHierarchicalTree, i11$2.BpmnDiagrams, i11$2.DataBinding, i11$2.LayoutAnimation);
13391
+ i11$2.Diagram.Inject(i11$2.ComplexHierarchicalTree, i11$2.BpmnDiagrams, i11$2.DataBinding /*, LayoutAnimation, LineRouting, ConnectorBridging*/);
13392
13392
  var PENDING_PATH = 'M18,22l-0.01-6L14,12l3.99-4.01L18,2H6v6l4,4l-4,3.99V22H18z M8,7.5V4h8v3.5l-4,4L8,7.5z', FYI_PATH = 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z', ESCALATED_PATH = 'M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z', WARNNING_PATH$1 = 'M 13.763735,1.8433735 H 6.3037349 l -5.27,5.27 v 7.4599995 l 5.27,5.27 h 7.4600001 l 5.27,-5.27 V 7.1133735 Z m -3.73,14.2999995 c -0.7200001,0 -1.3000001,-0.58 -1.3000001,-1.3 0,-0.72 0.58,-1.3 1.3000001,-1.3 0.72,0 1.3,0.58 1.3,1.3 0,0.72 -0.58,1.3 -1.3,1.3 z m 1,-4.3 H 9.0337349 V 5.8433735 h 2.0000001 z';
13393
13393
  /** flow-view component*/
13394
13394
  var FlowViewComponent = /** @class */ (function (_super) {
@@ -13451,6 +13451,7 @@
13451
13451
  case 1:
13452
13452
  _a = _b.sent(), connectors = _a.connectors, nodes = _a.nodes, indicators = _a.indicators;
13453
13453
  this.diagram && this.diagram.destroy();
13454
+ //this.layout.type = 'None';
13454
13455
  this.diagram = new i11$2.Diagram({
13455
13456
  width: '100%',
13456
13457
  height: 380,
@@ -13465,6 +13466,7 @@
13465
13466
  getConnectorDefaults: this.connDefaults.bind(this),
13466
13467
  getNodeDefaults: this.nodeDefaults.bind(this),
13467
13468
  }, this._elementRef.nativeElement);
13469
+ //this.layout.type = 'ComplexHierarchicalTree';
13468
13470
  this.diagram.doLayout();
13469
13471
  indicators.forEach(function (n, i) {
13470
13472
  var parent = _this.diagram.getNodeObject(n.addInfo.parentId);
@@ -14059,6 +14061,34 @@
14059
14061
  type: i0.Input
14060
14062
  }] } });
14061
14063
 
14064
+ var ActionPipe = /** @class */ (function () {
14065
+ function ActionPipe(session) {
14066
+ var _this = this;
14067
+ this.map = new Map();
14068
+ session.profile.actions.forEach(function (a) { return _this.map.set(a.name, a); });
14069
+ }
14070
+ ActionPipe.prototype.transform = function (value) {
14071
+ var args = [];
14072
+ for (var _i = 1; _i < arguments.length; _i++) {
14073
+ args[_i - 1] = arguments[_i];
14074
+ }
14075
+ var action = this.map.get(value);
14076
+ if (action) {
14077
+ if (args.length)
14078
+ return action[args[0]] || (args[1] !== false ? action.title : null);
14079
+ return action.title;
14080
+ }
14081
+ return "_" + value;
14082
+ };
14083
+ return ActionPipe;
14084
+ }());
14085
+ ActionPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, deps: [{ token: SessionService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
14086
+ ActionPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, name: "action" });
14087
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, decorators: [{
14088
+ type: i0.Pipe,
14089
+ args: [{ name: 'action' }]
14090
+ }], ctorParameters: function () { return [{ type: SessionService }]; } });
14091
+
14062
14092
  var moment$f = require('moment');
14063
14093
  var DurationFormatPipe = /** @class */ (function () {
14064
14094
  function DurationFormatPipe(_translate) {
@@ -14137,98 +14167,110 @@
14137
14167
  _estimateTime: { get: function () { return _super_1.prototype._estimateTime; } }
14138
14168
  });
14139
14169
  return __awaiter(this, void 0, void 0, function () {
14140
- var _a, ownerId, ownerById, issued, log, recipients, node, trace, owner, by, owner, _loop_1, this_1, i, _loop_2, this_2, r;
14170
+ var _a, ownerId, ownerById, issued, log, recipients, trace, _loop_1, this_1, i, _loop_2, this_2, r;
14141
14171
  var _this = this;
14142
14172
  return __generator(this, function (_b) {
14143
14173
  switch (_b.label) {
14144
14174
  case 0:
14145
14175
  _a = this.model, ownerId = _a.ownerId, ownerById = _a.ownerById, issued = _a.issued, log = _a.log, recipients = _a.recipients;
14146
- node = {
14147
- type: 'Owner',
14148
- time: issued
14149
- }, trace = [node];
14150
- if (!ownerById) return [3 /*break*/, 5];
14151
- return [4 /*yield*/, this._userOf(ownerId).toPromise()];
14152
- case 1:
14153
- owner = _b.sent();
14154
- if (!(ownerById === this._session.userId)) return [3 /*break*/, 2];
14155
- node.name = this._translate.get('ByYou', this._nameOf(owner));
14156
- return [3 /*break*/, 4];
14157
- case 2: return [4 /*yield*/, this._userOf(ownerById).toPromise()];
14158
- case 3:
14159
- by = _b.sent();
14160
- node.name = this._translate.get('By', this._nameOf(owner), this._nameOf(by));
14161
- if (by.role)
14162
- node.role = by.role;
14163
- _b.label = 4;
14164
- case 4: return [3 /*break*/, 8];
14165
- case 5:
14166
- if (!(ownerId === this._session.userId)) return [3 /*break*/, 6];
14167
- node.name = this._translate.get('You');
14168
- return [3 /*break*/, 8];
14169
- case 6: return [4 /*yield*/, this._userOf(ownerId).toPromise()];
14170
- case 7:
14171
- owner = _b.sent();
14172
- node.name = this._nameOf(owner);
14173
- if (owner.role)
14174
- node.role = owner.role;
14175
- _b.label = 8;
14176
- case 8:
14176
+ trace = [];
14177
14177
  _loop_1 = function (i) {
14178
- var l, action, step, who, recipient_1, node_1, substituting, by, by;
14179
- return __generator(this, function (_c) {
14180
- switch (_c.label) {
14178
+ var l, action, _c, node, owner, by, owner, step, who, recipient_1, node, substituting, by, by;
14179
+ return __generator(this, function (_d) {
14180
+ switch (_d.label) {
14181
14181
  case 0:
14182
14182
  l = log[i];
14183
14183
  action = void 0;
14184
- switch (l.type) {
14185
- case 'ActionTaken':
14186
- {
14187
- action = this_1._session.profile.actions.find(function (a) { return a.name === l.action; });
14188
- if (action && action.loggable === false)
14189
- return [2 /*return*/, "continue"];
14190
- break;
14191
- }
14192
- case 'ModelChange':
14193
- break;
14194
- default: return [2 /*return*/, "continue"];
14184
+ _c = l.type;
14185
+ switch (_c) {
14186
+ case 'ActionTaken': return [3 /*break*/, 1];
14187
+ case 'ModelChange': return [3 /*break*/, 2];
14188
+ case 'Submit': return [3 /*break*/, 3];
14195
14189
  }
14190
+ return [3 /*break*/, 12];
14191
+ case 1:
14192
+ {
14193
+ action = this_1._session.profile.actions.find(function (a) { return a.name === l.action; });
14194
+ if (action && action.loggable === false)
14195
+ return [2 /*return*/, "continue"];
14196
+ return [3 /*break*/, 13];
14197
+ }
14198
+ _d.label = 2;
14199
+ case 2: return [3 /*break*/, 13];
14200
+ case 3:
14201
+ if (l.estimate)
14202
+ return [2 /*return*/, "continue"];
14203
+ node = {
14204
+ type: 'Owner',
14205
+ time: l.time
14206
+ };
14207
+ if (!ownerById) return [3 /*break*/, 8];
14208
+ return [4 /*yield*/, this_1._userOf(ownerId).toPromise()];
14209
+ case 4:
14210
+ owner = _d.sent();
14211
+ if (!(ownerById === this_1._session.userId)) return [3 /*break*/, 5];
14212
+ node.name = this_1._translate.get('ByYou', this_1._nameOf(owner));
14213
+ return [3 /*break*/, 7];
14214
+ case 5: return [4 /*yield*/, this_1._userOf(ownerById).toPromise()];
14215
+ case 6:
14216
+ by = _d.sent();
14217
+ node.name = this_1._translate.get('By', this_1._nameOf(owner), this_1._nameOf(by));
14218
+ if (by.role)
14219
+ node.role = by.role;
14220
+ _d.label = 7;
14221
+ case 7: return [3 /*break*/, 11];
14222
+ case 8:
14223
+ if (!(ownerId === this_1._session.userId)) return [3 /*break*/, 9];
14224
+ node.name = this_1._translate.get('You');
14225
+ return [3 /*break*/, 11];
14226
+ case 9: return [4 /*yield*/, this_1._userOf(ownerId).toPromise()];
14227
+ case 10:
14228
+ owner = _d.sent();
14229
+ node.name = this_1._nameOf(owner);
14230
+ if (owner.role)
14231
+ node.role = owner.role;
14232
+ _d.label = 11;
14233
+ case 11:
14234
+ trace.push(node);
14235
+ return [2 /*return*/, "continue"];
14236
+ case 12: return [2 /*return*/, "continue"];
14237
+ case 13:
14196
14238
  step = Object.assign({}, l);
14197
14239
  return [4 /*yield*/, this_1._userOf(l.userId).toPromise()];
14198
- case 1:
14199
- who = _c.sent();
14200
- if (!l.recipientId) return [3 /*break*/, 12];
14240
+ case 14:
14241
+ who = _d.sent();
14242
+ if (!l.recipientId) return [3 /*break*/, 25];
14201
14243
  recipient_1 = recipients.find(function (r) { return r.id === l.recipientId; });
14202
14244
  if (recipient_1.role)
14203
14245
  step.role = this_1._roleName(recipient_1.role);
14204
14246
  if (recipient_1.nodeId) {
14205
- node_1 = this_1.model.workflow.nodes.find(function (n) { return n.id === recipient_1.nodeId; });
14206
- step.fyi = node_1 && node_1.fyi;
14247
+ node = this_1.model.workflow.nodes.find(function (n) { return n.id === recipient_1.nodeId; });
14248
+ step.fyi = node && node.fyi;
14207
14249
  }
14208
- if (!recipient_1.substitutingId) return [3 /*break*/, 8];
14250
+ if (!recipient_1.substitutingId) return [3 /*break*/, 21];
14209
14251
  return [4 /*yield*/, this_1._userOf(recipient_1.substitutingId).toPromise()];
14210
- case 2:
14211
- substituting = _c.sent();
14212
- if (!l.byId) return [3 /*break*/, 6];
14213
- if (!(l.byId === this_1._session.userId)) return [3 /*break*/, 3];
14252
+ case 15:
14253
+ substituting = _d.sent();
14254
+ if (!l.byId) return [3 /*break*/, 19];
14255
+ if (!(l.byId === this_1._session.userId)) return [3 /*break*/, 16];
14214
14256
  if (recipient_1.substitutingId === this_1._session.userId)
14215
14257
  step.name = this_1._translate.get('ByYou', this_1._nameOf(who));
14216
14258
  else
14217
14259
  step.name = this_1._translate.personalize('SubstitutingByYou', who.gender, this_1._nameOf(who), this_1._nameOf(substituting));
14218
14260
  if (action)
14219
14261
  step.action = action ? this_1._actionName(action, You) : l.action;
14220
- return [3 /*break*/, 5];
14221
- case 3: return [4 /*yield*/, this_1._userOf(l.byId).toPromise()];
14222
- case 4:
14223
- by = _c.sent();
14262
+ return [3 /*break*/, 18];
14263
+ case 16: return [4 /*yield*/, this_1._userOf(l.byId).toPromise()];
14264
+ case 17:
14265
+ by = _d.sent();
14224
14266
  step.name = this_1._translate.get('SubstitutingBy', this_1._nameOf(who), this_1._nameOf(substituting), this_1._nameOf(by));
14225
14267
  if (by.role)
14226
14268
  step.role = by.role;
14227
14269
  if (action)
14228
14270
  step.action = action ? this_1._actionName(action, by) : l.action;
14229
- _c.label = 5;
14230
- case 5: return [3 /*break*/, 7];
14231
- case 6:
14271
+ _d.label = 18;
14272
+ case 18: return [3 /*break*/, 20];
14273
+ case 19:
14232
14274
  if (recipient_1.substitutingId === this_1._session.userId)
14233
14275
  step.name = this_1._translate.personalize('SubstitutingForYou', who.gender, this_1._nameOf(who));
14234
14276
  else if (l.userId === this_1._session.userId)
@@ -14240,26 +14282,26 @@
14240
14282
  }
14241
14283
  if (action)
14242
14284
  step.action = action ? this_1._actionName(action, who) : l.action;
14243
- _c.label = 7;
14244
- case 7: return [3 /*break*/, 11];
14245
- case 8:
14246
- if (!l.byId) return [3 /*break*/, 11];
14247
- if (!(l.byId === this_1._session.userId)) return [3 /*break*/, 9];
14285
+ _d.label = 20;
14286
+ case 20: return [3 /*break*/, 24];
14287
+ case 21:
14288
+ if (!l.byId) return [3 /*break*/, 24];
14289
+ if (!(l.byId === this_1._session.userId)) return [3 /*break*/, 22];
14248
14290
  step.name = this_1._translate.get('ByYou', this_1._nameOf(who));
14249
14291
  if (action)
14250
14292
  step.action = action ? this_1._actionName(action, You) : l.action;
14251
- return [3 /*break*/, 11];
14252
- case 9: return [4 /*yield*/, this_1._userOf(l.byId).toPromise()];
14253
- case 10:
14254
- by = _c.sent();
14293
+ return [3 /*break*/, 24];
14294
+ case 22: return [4 /*yield*/, this_1._userOf(l.byId).toPromise()];
14295
+ case 23:
14296
+ by = _d.sent();
14255
14297
  step.name = this_1._translate.get('By', this_1._nameOf(who), this_1._nameOf(by));
14256
14298
  if (by.role)
14257
14299
  step.role = by.role;
14258
14300
  if (action)
14259
14301
  step.action = action ? this_1._actionName(action, by) : l.action;
14260
- _c.label = 11;
14261
- case 11: return [3 /*break*/, 13];
14262
- case 12:
14302
+ _d.label = 24;
14303
+ case 24: return [3 /*break*/, 26];
14304
+ case 25:
14263
14305
  if (l.userId === this_1._session.userId)
14264
14306
  step.name = this_1._translate.get('You');
14265
14307
  else {
@@ -14269,8 +14311,8 @@
14269
14311
  }
14270
14312
  if (action)
14271
14313
  step.action = action ? this_1._actionName(action, who) : l.action;
14272
- _c.label = 13;
14273
- case 13:
14314
+ _d.label = 26;
14315
+ case 26:
14274
14316
  trace.push(step);
14275
14317
  return [2 /*return*/];
14276
14318
  }
@@ -14278,41 +14320,41 @@
14278
14320
  };
14279
14321
  this_1 = this;
14280
14322
  i = 0;
14281
- _b.label = 9;
14282
- case 9:
14283
- if (!(i < log.length)) return [3 /*break*/, 12];
14323
+ _b.label = 1;
14324
+ case 1:
14325
+ if (!(i < log.length)) return [3 /*break*/, 4];
14284
14326
  return [5 /*yield**/, _loop_1(i)];
14285
- case 10:
14327
+ case 2:
14286
14328
  _b.sent();
14287
- _b.label = 11;
14288
- case 11:
14329
+ _b.label = 3;
14330
+ case 3:
14289
14331
  i++;
14290
- return [3 /*break*/, 9];
14291
- case 12:
14332
+ return [3 /*break*/, 1];
14333
+ case 4:
14292
14334
  _loop_2 = function () {
14293
- var recipient, step, node_2, _d, min, max, who, substituting, substituting, by, substituting, by, escalations, escalate, j, who_1;
14294
- return __generator(this, function (_e) {
14295
- switch (_e.label) {
14335
+ var recipient, step, node, _e, min, max, who, substituting, substituting, by, substituting, by, escalations, escalate, j, who_1;
14336
+ return __generator(this, function (_f) {
14337
+ switch (_f.label) {
14296
14338
  case 0:
14297
14339
  recipient = recipients[r];
14298
14340
  if (!recipient.pending && !recipient.estimate)
14299
14341
  return [2 /*return*/, "continue"];
14300
14342
  step = Object.assign(Object.assign({}, recipient), { type: recipient.estimate ? 'Estimate' : 'Pending', time: recipient.received, duration: recipient.pending ? moment$e().diff(recipient.received, 's') : null, role: recipient.role ? this_2._roleName(recipient.role) : null });
14301
14343
  if (recipient.nodeId) {
14302
- node_2 = this_2.model.workflow.nodes.find(function (n) { return n.id === recipient.nodeId; });
14303
- if (node_2) {
14344
+ node = this_2.model.workflow.nodes.find(function (n) { return n.id === recipient.nodeId; });
14345
+ if (node) {
14304
14346
  if (recipient.estimate) {
14305
- _d = _super._estimateTime.call(this_2, node_2), min = _d.min, max = _d.max;
14347
+ _e = _super._estimateTime.call(this_2, node), min = _e.min, max = _e.max;
14306
14348
  if (max)
14307
14349
  step.durationMin = min,
14308
14350
  step.durationMax = max;
14309
14351
  }
14310
- step.fyi = node_2.fyi;
14352
+ step.fyi = node.fyi;
14311
14353
  }
14312
14354
  }
14313
14355
  return [4 /*yield*/, this_2._userOf(recipient.userId).toPromise()];
14314
14356
  case 1:
14315
- who = _e.sent();
14357
+ who = _f.sent();
14316
14358
  if (!recipient.substitutingId) return [3 /*break*/, 14];
14317
14359
  if (!recipient.byId) return [3 /*break*/, 9];
14318
14360
  if (!(recipient.byId === this_2._session.userId)) return [3 /*break*/, 5];
@@ -14321,20 +14363,20 @@
14321
14363
  return [3 /*break*/, 4];
14322
14364
  case 2: return [4 /*yield*/, this_2._userOf(recipient.substitutingId).toPromise()];
14323
14365
  case 3:
14324
- substituting = _e.sent();
14366
+ substituting = _f.sent();
14325
14367
  step.name = this_2._translate.personalize('SubstitutingByYou', who.gender, this_2._nameOf(who), this_2._nameOf(substituting));
14326
- _e.label = 4;
14368
+ _f.label = 4;
14327
14369
  case 4: return [3 /*break*/, 8];
14328
14370
  case 5: return [4 /*yield*/, this_2._userOf(recipient.substitutingId).toPromise()];
14329
14371
  case 6:
14330
- substituting = _e.sent();
14372
+ substituting = _f.sent();
14331
14373
  return [4 /*yield*/, this_2._userOf(recipient.byId).toPromise()];
14332
14374
  case 7:
14333
- by = _e.sent();
14375
+ by = _f.sent();
14334
14376
  step.name = this_2._translate.get('SubstitutingBy', this_2._nameOf(who), this_2._nameOf(substituting), this_2._nameOf(by));
14335
14377
  if (by.role)
14336
14378
  step.role = by.role;
14337
- _e.label = 8;
14379
+ _f.label = 8;
14338
14380
  case 8: return [3 /*break*/, 13];
14339
14381
  case 9:
14340
14382
  if (!(recipient.substitutingId === this_2._session.userId)) return [3 /*break*/, 10];
@@ -14346,11 +14388,11 @@
14346
14388
  return [3 /*break*/, 13];
14347
14389
  case 11: return [4 /*yield*/, this_2._userOf(recipient.substitutingId).toPromise()];
14348
14390
  case 12:
14349
- substituting = _e.sent();
14391
+ substituting = _f.sent();
14350
14392
  step.name = this_2._translate.personalize('Substituting', who.gender, this_2._nameOf(who), this_2._nameOf(substituting));
14351
14393
  if (who.role)
14352
14394
  step.role = who.role;
14353
- _e.label = 13;
14395
+ _f.label = 13;
14354
14396
  case 13: return [3 /*break*/, 24];
14355
14397
  case 14:
14356
14398
  if (!recipient.byId) return [3 /*break*/, 18];
@@ -14359,25 +14401,25 @@
14359
14401
  return [3 /*break*/, 17];
14360
14402
  case 15: return [4 /*yield*/, this_2._userOf(recipient.byId).toPromise()];
14361
14403
  case 16:
14362
- by = _e.sent();
14404
+ by = _f.sent();
14363
14405
  step.name = this_2._translate.get('By', this_2._nameOf(who), this_2._nameOf(by));
14364
14406
  if (by.role)
14365
14407
  step.role = by.role;
14366
- _e.label = 17;
14408
+ _f.label = 17;
14367
14409
  case 17: return [3 /*break*/, 24];
14368
14410
  case 18:
14369
14411
  escalations = this_2.model.log.filter(function (l) { return l.time > _this.model.issued && l.type === 'Escalation' && l.recipientId === recipient.id; });
14370
14412
  if (!escalations.length) return [3 /*break*/, 23];
14371
14413
  escalate = [];
14372
14414
  j = 0;
14373
- _e.label = 19;
14415
+ _f.label = 19;
14374
14416
  case 19:
14375
14417
  if (!(j < escalations.length)) return [3 /*break*/, 22];
14376
14418
  return [4 /*yield*/, this_2._userOf(escalations[j].userId)];
14377
14419
  case 20:
14378
- who_1 = _e.sent();
14420
+ who_1 = _f.sent();
14379
14421
  escalate.push(who_1);
14380
- _e.label = 21;
14422
+ _f.label = 21;
14381
14423
  case 21:
14382
14424
  j++;
14383
14425
  return [3 /*break*/, 19];
@@ -14395,7 +14437,7 @@
14395
14437
  if (who.role)
14396
14438
  step.role = who.role;
14397
14439
  }
14398
- _e.label = 24;
14440
+ _f.label = 24;
14399
14441
  case 24:
14400
14442
  trace.push(step);
14401
14443
  return [2 /*return*/];
@@ -14404,18 +14446,18 @@
14404
14446
  };
14405
14447
  this_2 = this;
14406
14448
  r = 0;
14407
- _b.label = 13;
14408
- case 13:
14409
- if (!(r < recipients.length)) return [3 /*break*/, 16];
14449
+ _b.label = 5;
14450
+ case 5:
14451
+ if (!(r < recipients.length)) return [3 /*break*/, 8];
14410
14452
  return [5 /*yield**/, _loop_2()];
14411
- case 14:
14453
+ case 6:
14412
14454
  _b.sent();
14413
- _b.label = 15;
14414
- case 15:
14455
+ _b.label = 7;
14456
+ case 7:
14415
14457
  r++;
14416
- return [3 /*break*/, 13];
14417
- case 16:
14418
- this.data = trace.sort(function (a, b) { return a.time > b.time ? -1 : a.time === b.time ? 0 : 1; });
14458
+ return [3 /*break*/, 5];
14459
+ case 8:
14460
+ this.data = trace.sort(function (a, b) { return a.time > b.time ? 1 : a.time === b.time ? 0 : -1; });
14419
14461
  return [2 /*return*/];
14420
14462
  }
14421
14463
  });
@@ -14479,7 +14521,7 @@
14479
14521
  return TraceViewComponent;
14480
14522
  }(TraceBase));
14481
14523
  TraceViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: TraceViewComponent, deps: [{ token: SessionService }, { token: TranslateService }, { token: AccountService }, { token: ChatInfo }, { token: HubService }], target: i0__namespace.ɵɵFactoryTarget.Component });
14482
- TraceViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.12", type: TraceViewComponent, selector: "bizdoc-trace", inputs: { model: "model" }, outputs: { versionSelected: "versionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<table class=\"mat-table\">\r\n <thead role=\"rowgroup\">\r\n <tr class=\"mat-header-row\">\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\">\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <span *ngSwitchCase=\"'ActionTaken'\">{{ l.action }}</span>\r\n <span *ngSwitchCase=\"'Owner'\">{{'Owner' | translate}}</span>\r\n <span *ngSwitchCase=\"'Pending'\">{{'IsPending' | translate}}</span>\r\n <span *ngSwitchCase=\"'Estimate'\">{{'Estimate' | translate}}</span>\r\n <span *ngSwitchCase=\"'ModelChange'\">{{'Changed' | translate}}</span>\r\n </ng-container>\r\n <span *ngIf=\"l.fyi\">&nbsp;{{'FYI'|translate}}</span>\r\n </td>\r\n <td class=\"mat-cell\" [ngSwitch]=\"l.estimate\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n <span *ngIf=\"l.durationMax && l.durationMax === l.durationMin\" [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTime'| translate : (l.durationMax | amDuration:'s')}}</span>\r\n <span *ngIf=\"l.durationMax && l.durationMax !== l.durationMin\"\r\n [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTimeRange'| translate : (l.durationMin | amDuration:'s') : (l.durationMax | amDuration:'s')}}</span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <span>{{l.time | amCalendar : null : CALENDAR_SPEC }}</span>\r\n <span *ngIf=\"l.duration\" [bizdocTooltip]=\"l.duration|amDurationFormat\">&nbsp;({{l.duration | amDuration:'s'}})</span>\r\n </ng-container>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <span *ngIf=\"l.note\">{{l.note}}</span>\r\n <button mat-icon-button *ngIf=\"l.model\" (click)=\"compare(l)\" [bizdocTooltip]=\"'Compare'|translate\" bizdocTooltipPosition=\"start\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [":host{width:100%}table{width:100%;background:transparent}td{padding:0 4px}:host ::ng-deep .mat-icon{vertical-align:sub}\n"], components: [{ type: i7__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i10__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "sanitizeHtml": SanitizeHtmlPipe, "translate": TranslatePipe, "amDurationFormat": DurationFormatPipe, "amDuration": i14__namespace.DurationPipe, "amCalendar": i14__namespace.CalendarPipe } });
14524
+ TraceViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.12", type: TraceViewComponent, selector: "bizdoc-trace", inputs: { model: "model" }, outputs: { versionSelected: "versionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<table class=\"mat-table\">\r\n <thead role=\"rowgroup\">\r\n <tr class=\"mat-header-row\">\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n <th class=\"mat-header-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\">\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <span *ngSwitchCase=\"'ActionTaken'\">{{ l.action | action : 'past' }}</span>\r\n <span *ngSwitchCase=\"'Owner'\">{{'Issued' | translate}}</span>\r\n <span *ngSwitchCase=\"'Pending'\">{{'IsPending' | translate}}</span>\r\n <span *ngSwitchCase=\"'Estimate'\">{{'Estimate' | translate}}</span>\r\n <span *ngSwitchCase=\"'ModelChange'\">{{'Changed' | translate}}</span>\r\n </ng-container>\r\n <span *ngIf=\"l.fyi\">&nbsp;{{'FYI'|translate}}</span>\r\n </td>\r\n <td class=\"mat-cell\" [ngSwitch]=\"l.estimate\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n <span *ngIf=\"l.durationMax && l.durationMax === l.durationMin\" [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTime'| translate : (l.durationMax | amDuration:'s')}}</span>\r\n <span *ngIf=\"l.durationMax && l.durationMax !== l.durationMin\"\r\n [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTimeRange'| translate : (l.durationMin | amDuration:'s') : (l.durationMax | amDuration:'s')}}</span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <span>{{l.time | amCalendar : null : CALENDAR_SPEC }}</span>\r\n <span *ngIf=\"l.duration\" [bizdocTooltip]=\"l.duration|amDurationFormat\">&nbsp;({{l.duration | amDuration:'s'}})</span>\r\n </ng-container>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <span *ngIf=\"l.note\">{{l.note}}</span>\r\n <button mat-icon-button *ngIf=\"l.model\" (click)=\"compare(l)\" [bizdocTooltip]=\"'Compare'|translate\" bizdocTooltipPosition=\"start\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [":host{width:100%}table{width:100%;background:transparent}td{padding:0 4px}:host ::ng-deep .mat-icon{vertical-align:sub}\n"], components: [{ type: i7__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i10__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "sanitizeHtml": SanitizeHtmlPipe, "translate": TranslatePipe, "action": ActionPipe, "amDurationFormat": DurationFormatPipe, "amDuration": i14__namespace.DurationPipe, "amCalendar": i14__namespace.CalendarPipe } });
14483
14525
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: TraceViewComponent, decorators: [{
14484
14526
  type: i0.Component,
14485
14527
  args: [{
@@ -14502,6 +14544,10 @@
14502
14544
  TracePaneComponent.prototype.ngOnInit = function () {
14503
14545
  var _this = this;
14504
14546
  this._pane.dataChange.subscribe(function (d) {
14547
+ if (_this.model == d['item']) {
14548
+ _this.trace.refresh();
14549
+ _this.flow.refresh();
14550
+ }
14505
14551
  _this.model = d['item'];
14506
14552
  _this._pane.group = "#" + _this.model.number;
14507
14553
  });
@@ -19231,6 +19277,7 @@
19231
19277
  case 1:
19232
19278
  _a.sent();
19233
19279
  this._discardPane(pane);
19280
+ this.collapse();
19234
19281
  if (position >= this.selectedIndex)
19235
19282
  this.select(-1);
19236
19283
  this._replaceUrl();
@@ -21892,12 +21939,21 @@
21892
21939
  this.dataSource = new i5$1.MatTableDataSource(data);
21893
21940
  this.loading = false;
21894
21941
  };
21942
+ RecentsWidget.prototype._navigate = function (item, extra) {
21943
+ var _this = this;
21944
+ this.loading = true;
21945
+ this._service.get(item.id).
21946
+ subscribe(function (i) {
21947
+ _this.loading = false;
21948
+ _this._router.navigate(['mailbox/i', item.id.encodeId()], Object.assign(Object.assign({}, extra), { state: { item: i } }));
21949
+ }, function () { return _this.loading = false; });
21950
+ };
21895
21951
  RecentsWidget.prototype.open = function (item) {
21896
- this._router.navigate(['mailbox/i', item.id.encodeId()], { policy: exports.OpenPolicy.Clear });
21952
+ this._navigate(item, { policy: exports.OpenPolicy.Clear });
21897
21953
  };
21898
21954
  RecentsWidget.prototype.view = function (item, evt) {
21955
+ this._navigate(item, { policy: exports.OpenPolicy.Tab });
21899
21956
  evt.stopPropagation();
21900
- this._router.navigate(['mailbox/i', item.id.encodeId(), 'views'], { policy: exports.OpenPolicy.Tab });
21901
21957
  };
21902
21958
  RecentsWidget.prototype.ngOnDestroy = function () {
21903
21959
  this._destroy.next();
@@ -21906,7 +21962,7 @@
21906
21962
  return RecentsWidget;
21907
21963
  }());
21908
21964
  exports.RecentsWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: exports.RecentsWidget, deps: [{ token: RouterImpl }, { token: MailboxService }, { token: WidgetRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
21909
- exports.RecentsWidget.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.12", type: exports.RecentsWidget, selector: "ng-component", host: { properties: { "style.height": "this.height" } }, ngImport: i0__namespace, template: "<table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z0\" @list>\r\n <ng-container matColumnDef=\"number\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Number' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\"> <a (click)=\"open(item)\">#{{item.number}}</a> </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"subject\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Subject' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\" class=\"text\"> {{item.subject}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"state\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Status' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\"> {{item.stateId | state }} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"option\">\r\n <th mat-header-cell *matHeaderCellDef> </th>\r\n <td mat-cell *matCellDef=\"let item\">\r\n <button mat-icon-button (click)=\"view(item, $event)\" [bizdocTooltip]=\"'View' | translate\" [attr.aria-label]=\"'View' | translate\" class=\"tool\" matAnimate=\"rotate\"><mat-icon>data_usage</mat-icon></button>\r\n <button mat-icon-button (click)=\"open(item)\" [bizdocTooltip]=\"'Open' | translate\" [attr.aria-label]=\"'Open' | translate\" class=\"tool\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columns; sticky: true\"></tr>\r\n <tr mat-row @item *matRowDef=\"let row; columns: columns;\"></tr>\r\n</table>\r\n", styles: ["table{width:100%}td.text{text-overflow:ellipsis;max-width:100px;white-space:nowrap;overflow:hidden}:host{overflow:hidden;display:block}:host:hover{overflow-y:auto!important}\n", ":host ::ng-deep tr .tool{opacity:.1}:host ::ng-deep tr:hover .tool{opacity:1}\n"], components: [{ type: i5__namespace$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i7__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5__namespace$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i5__namespace$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }], directives: [{ type: i5__namespace$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i5__namespace$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i5__namespace$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i5__namespace$1.MatCellDef, selector: "[matCellDef]" }, { type: i5__namespace$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: MatIconAnimate, selector: "[matAnimate]" }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i5__namespace$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i5__namespace$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }], pipes: { "translate": TranslatePipe, "state": StatePipe }, animations: [
21965
+ exports.RecentsWidget.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.12", type: exports.RecentsWidget, selector: "ng-component", host: { properties: { "style.height": "this.height" } }, ngImport: i0__namespace, template: "<mat-progress-bar mode=\"indeterminate\" [style.visibility]=\"loading ? 'visible':'hidden'\"></mat-progress-bar>\r\n<table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z0\" @list>\r\n <ng-container matColumnDef=\"number\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Number' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\"> <a (click)=\"open(item)\">#{{item.number}}</a> </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"subject\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Subject' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\" class=\"text\"> {{item.subject}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"state\">\r\n <th mat-header-cell *matHeaderCellDef> {{'Status' | translate}} </th>\r\n <td mat-cell *matCellDef=\"let item\"> {{item.stateId | state }} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"option\">\r\n <th mat-header-cell *matHeaderCellDef> </th>\r\n <td mat-cell *matCellDef=\"let item\">\r\n <button mat-icon-button (click)=\"view(item, $event)\" [bizdocTooltip]=\"'View' | translate\" [attr.aria-label]=\"'View' | translate\" class=\"tool\" matAnimate=\"rotate\"><mat-icon>data_usage</mat-icon></button>\r\n <button mat-icon-button (click)=\"open(item)\" [bizdocTooltip]=\"'Open' | translate\" [attr.aria-label]=\"'Open' | translate\" class=\"tool\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columns; sticky: true\"></tr>\r\n <tr mat-row @item *matRowDef=\"let row; columns: columns;\"></tr>\r\n</table>\r\n", styles: ["table{width:100%}td.text{text-overflow:ellipsis;max-width:100px;white-space:nowrap;overflow:hidden}:host{overflow:hidden;display:block}:host:hover{overflow-y:auto!important}\n", ":host ::ng-deep tr .tool{opacity:.1}:host ::ng-deep tr:hover .tool{opacity:1}\n"], components: [{ type: i11__namespace$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i5__namespace$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i7__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5__namespace$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i5__namespace$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }], directives: [{ type: i5__namespace$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i5__namespace$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i5__namespace$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i5__namespace$1.MatCellDef, selector: "[matCellDef]" }, { type: i5__namespace$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: MatIconAnimate, selector: "[matAnimate]" }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i5__namespace$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i5__namespace$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }], pipes: { "translate": TranslatePipe, "state": StatePipe }, animations: [
21910
21966
  listAnimation,
21911
21967
  itemAnimation
21912
21968
  ] });
@@ -23549,34 +23605,6 @@
23549
23605
  args: [ej2AngularPivotview.PivotViewComponent]
23550
23606
  }] } });
23551
23607
 
23552
- var ActionPipe = /** @class */ (function () {
23553
- function ActionPipe(session) {
23554
- var _this = this;
23555
- this.map = new Map();
23556
- session.profile.actions.forEach(function (a) { return _this.map.set(a.name, a); });
23557
- }
23558
- ActionPipe.prototype.transform = function (value) {
23559
- var args = [];
23560
- for (var _i = 1; _i < arguments.length; _i++) {
23561
- args[_i - 1] = arguments[_i];
23562
- }
23563
- var action = this.map.get(value);
23564
- if (action) {
23565
- if (args.length)
23566
- return action[args[0]] || (args[1] !== false ? action.title : null);
23567
- return action.title;
23568
- }
23569
- return "_" + value;
23570
- };
23571
- return ActionPipe;
23572
- }());
23573
- ActionPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, deps: [{ token: SessionService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
23574
- ActionPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, name: "action" });
23575
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ActionPipe, decorators: [{
23576
- type: i0.Pipe,
23577
- args: [{ name: 'action' }]
23578
- }], ctorParameters: function () { return [{ type: SessionService }]; } });
23579
-
23580
23608
  exports.SubstitutionComponent = /** @class */ (function () {
23581
23609
  function SubstitutionComponent() {
23582
23610
  this.displayColumns = ['number', 'substitutingId', 'action', 'state'];