@bizdoc/core 1.13.33 → 1.13.34

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.
@@ -1017,7 +1017,7 @@ class SessionService {
1017
1017
  _config && _config.maps && this._loadMaps();
1018
1018
  }
1019
1019
  get profile() { return this._profile; }
1020
- get gender() { return this._profile.byGender || this._profile.gender; }
1020
+ get gender() { return this.profile.byId ? this._profile.byGender : this._profile.gender; }
1021
1021
  get accentPalette() {
1022
1022
  const palette = MATERIAL_PALETTES[this.theme.accent];
1023
1023
  return this._constructpalette(palette);
@@ -2068,7 +2068,7 @@ const STRINGS = {
2068
2068
  YouSubstituteActionTakenTo: 'Document {0} to {1} by you instead of {2} {3}',
2069
2069
  Substituting: '{0} substituting {1}',
2070
2070
  SubstitutingForYou: '{0} substituting you',
2071
- YouSubstitute: 'You substituting {0}',
2071
+ YouSubstituting: 'You substituting {0}',
2072
2072
  SubstitutingBy: '{0} by {2} substituting {1}',
2073
2073
  SubstitutingByYou: '{0} by you substituting {1}',
2074
2074
  SubstitutingYou: 'Substituting for you',
@@ -2624,9 +2624,9 @@ const STRINGS = {
2624
2624
  SubstitutingForFemale: 'במקום {0}',
2625
2625
  Substituting: '{0} מחליף את {1}',
2626
2626
  SubstitutingForYou: '{0} מחליף אותך',
2627
- YouSubstitute: 'את/ה מחליף את {0}',
2628
- YouSubstituteMale: 'אתה מחליף את {0}',
2629
- YouSubstituteFemale: 'את מחליפה את {0}',
2627
+ YouSubstituting: 'את/ה מחליף את {0}',
2628
+ YouSubstitutingMale: 'אתה מחליף את {0}',
2629
+ YouSubstitutingFemale: 'את מחליפה את {0}',
2630
2630
  SubstitutingBy: '{0} מחליף את {1} דרך {2}',
2631
2631
  SubstitutingByYou: '{0} מחליף/פה את {1} דרכך}',
2632
2632
  SubstitutingByYouMale: '{0} מחליף את {1} דרכך}',
@@ -13967,15 +13967,18 @@ class FlowViewComponent extends TraceBase {
13967
13967
  for (r = 0; r < recipients.length; r++) {
13968
13968
  let recipient = recipients[r];
13969
13969
  const { annotation, tooltip } = await this._note(node, recipient);
13970
+ const content = this._tooltip(tooltip);
13970
13971
  const nod = {
13971
13972
  id: r === 0 ? node.id : node.id + r.toString(),
13972
13973
  shape: this._configuration[node.type].shape,
13973
13974
  zIndex: zIndex++,
13974
13975
  tooltip: {
13975
- content: this._tooltip(tooltip),
13976
+ content,
13976
13977
  position: 'TopCenter'
13977
13978
  },
13978
- constraints: Object.keys(tooltip).length ? NodeConstraints.Default : NodeConstraints.Default & ~NodeConstraints.Tooltip,
13979
+ constraints: content ?
13980
+ NodeConstraints.Default | NodeConstraints.Tooltip :
13981
+ NodeConstraints.Default,
13979
13982
  addInfo: {
13980
13983
  tooltip,
13981
13984
  recipient,
@@ -14055,15 +14058,18 @@ class FlowViewComponent extends TraceBase {
14055
14058
  else {
14056
14059
  const { state, annotation, tooltip } = await this._shape(node);
14057
14060
  const { shape } = configuration;
14061
+ const content = this._tooltip(tooltip);
14058
14062
  nodes.push({
14059
14063
  id: node.id,
14060
14064
  shape,
14061
14065
  zIndex: zIndex++,
14062
14066
  tooltip: {
14063
- content: this._tooltip(tooltip),
14067
+ content,
14064
14068
  position: 'TopCenter'
14065
14069
  },
14066
- constraints: Object.keys(tooltip).length ? NodeConstraints.Default | NodeConstraints.Tooltip : NodeConstraints.Default,
14070
+ constraints: content ?
14071
+ NodeConstraints.Default | NodeConstraints.Tooltip :
14072
+ NodeConstraints.Default,
14067
14073
  addInfo: {
14068
14074
  tooltip,
14069
14075
  node
@@ -14539,9 +14545,9 @@ class TraceViewComponent extends TraceBase {
14539
14545
  step.fyi = recipient.fyi;
14540
14546
  if (recipient.substituteId) {
14541
14547
  if (recipient.byId) {
14542
- if (recipient.byId === this._session.userId && !this._session.isImpersonating) {
14548
+ if (recipient.byId === this._session.userId) {
14543
14549
  let who = await profileOf(recipient.userId);
14544
- if (recipient.substituteId === this._session.userId && !this._session.isImpersonating)
14550
+ if (recipient.substituteId === this._session.userId)
14545
14551
  step.name = this._translate.get('ByYou', nameOf(who));
14546
14552
  else {
14547
14553
  let substituting = await profileOf(recipient.substituteId);
@@ -14551,9 +14557,7 @@ class TraceViewComponent extends TraceBase {
14551
14557
  step.action = await actionBy(action, You, recipient.id);
14552
14558
  }
14553
14559
  else {
14554
- let by = await profileOf(recipient.byId);
14555
- let who = await profileOf(recipient.userId);
14556
- let substituting = await profileOf(recipient.substituteId);
14560
+ let by = await profileOf(recipient.byId), who = await profileOf(recipient.userId), substituting = await profileOf(recipient.substituteId);
14557
14561
  step.name = this._translate.get('SubstitutingBy', nameOf(who), nameOf(substituting), nameOf(by));
14558
14562
  if (by.role)
14559
14563
  step.role = by.role;
@@ -14561,31 +14565,29 @@ class TraceViewComponent extends TraceBase {
14561
14565
  step.action = await actionBy(action, by.gender, recipient.id);
14562
14566
  }
14563
14567
  }
14568
+ else if (recipient.userId === this._session.userId) {
14569
+ let substituting = await profileOf(recipient.substituteId);
14570
+ step.name = this._translate.personalize('YouSubstituting', this._session.gender, nameOf(substituting));
14571
+ if (action)
14572
+ step.action = await actionBy(action, this._session.gender, recipient.id);
14573
+ }
14574
+ else if (recipient.substituteId === this._session.userId) {
14575
+ let who = await profileOf(recipient.userId);
14576
+ step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14577
+ if (action)
14578
+ step.action = await actionBy(action, who.gender, recipient.id);
14579
+ }
14564
14580
  else {
14565
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14566
- let substituting = await profileOf(recipient.substituteId);
14567
- step.name = this._translate.personalize('YouSubstitute', this._session.profile.byGender, nameOf(substituting));
14568
- if (action)
14569
- step.action = await actionBy(action, this._session.gender, recipient.id);
14570
- }
14571
- else if (recipient.substituteId === this._session.userId && !this._session.isImpersonating) {
14572
- let who = await profileOf(recipient.userId);
14573
- step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14574
- if (action)
14575
- step.action = await actionBy(action, who.gender, recipient.id);
14576
- }
14577
- else {
14578
- let who = await profileOf(recipient.userId), substituting = await profileOf(recipient.substituteId);
14579
- step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14580
- if (who.role)
14581
- step.role = who.role;
14582
- if (action)
14583
- step.action = await actionBy(action, who.gender, recipient.id);
14584
- }
14581
+ let who = await profileOf(recipient.userId), substituting = await profileOf(recipient.substituteId);
14582
+ step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14583
+ if (who.role)
14584
+ step.role = who.role;
14585
+ if (action)
14586
+ step.action = await actionBy(action, who.gender, recipient.id);
14585
14587
  }
14586
14588
  }
14587
14589
  else if (recipient.byId) {
14588
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14590
+ if (recipient.userId === this._session.userId) {
14589
14591
  let by = await profileOf(recipient.byId);
14590
14592
  step.name = this._translate.get('YouBy', nameOf(by));
14591
14593
  if (action)
@@ -14593,7 +14595,7 @@ class TraceViewComponent extends TraceBase {
14593
14595
  }
14594
14596
  else {
14595
14597
  let who = await profileOf(recipient.userId);
14596
- if (recipient.byId === this._session.userId && !this._session.isImpersonating) {
14598
+ if (recipient.byId === this._session.userId) {
14597
14599
  step.name = this._translate.get('ByYou', nameOf(who));
14598
14600
  if (action)
14599
14601
  step.action = await actionBy(action, You, recipient.id);
@@ -14609,7 +14611,7 @@ class TraceViewComponent extends TraceBase {
14609
14611
  }
14610
14612
  }
14611
14613
  else {
14612
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14614
+ if (recipient.userId === this._session.userId) {
14613
14615
  step.name = this._translate.get('You');
14614
14616
  if (action)
14615
14617
  step.action = await actionBy(action, You, recipient.id);
@@ -14670,35 +14672,19 @@ class TraceViewComponent extends TraceBase {
14670
14672
  }
14671
14673
  }
14672
14674
  if (recipient.substituteId) {
14673
- let who = await profileOf(recipient.userId);
14674
- if (recipient.byId) {
14675
- if (recipient.byId === this._session.userId) {
14676
- if (recipient.substituteId === this._session.userId)
14677
- step.name = this._translate.get('ByYou', nameOf(who));
14678
- else {
14679
- let substituting = await profileOf(recipient.substituteId);
14680
- step.name = this._translate.personalize('SubstitutingByYou', who.gender, nameOf(who), nameOf(substituting));
14681
- }
14682
- }
14683
- else {
14684
- let substituting = await profileOf(recipient.substituteId);
14685
- let by = await profileOf(recipient.byId);
14686
- step.name = this._translate.get('SubstitutingBy', nameOf(who), nameOf(substituting), nameOf(by));
14687
- if (by.role)
14688
- step.role = by.role;
14689
- }
14675
+ if (recipient.substituteId === this._session.userId) {
14676
+ let who = await profileOf(recipient.userId);
14677
+ step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14678
+ }
14679
+ else if (recipient.userId === this._session.userId) {
14680
+ let substituting = await profileOf(recipient.substituteId);
14681
+ step.name = this._translate.personalize('YouSubstituting', this._session.gender, nameOf(substituting));
14690
14682
  }
14691
14683
  else {
14692
- if (recipient.substituteId === this._session.userId)
14693
- step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14694
- else if (recipient.userId === this._session.userId)
14695
- step.name = this._translate.personalize('YouSubstitute', this._session.profile.byGender, nameOf(who));
14696
- else {
14697
- let substituting = await profileOf(recipient.substituteId);
14698
- step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14699
- if (who.role)
14700
- step.role = who.role;
14701
- }
14684
+ let who = await profileOf(recipient.userId), substituting = await profileOf(recipient.substituteId);
14685
+ step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14686
+ if (who.role)
14687
+ step.role = who.role;
14702
14688
  }
14703
14689
  }
14704
14690
  else if (recipient.byId) {
@@ -14772,7 +14758,7 @@ class TraceViewComponent extends TraceBase {
14772
14758
  this._chat.open(userId);
14773
14759
  }
14774
14760
  /**
14775
- * model version compare, form component in 'compare' view mode
14761
+ * model version compare
14776
14762
  * @param log
14777
14763
  */
14778
14764
  compare(log) {