@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.
@@ -1023,7 +1023,7 @@ class SessionService {
1023
1023
  _config && _config.maps && this._loadMaps();
1024
1024
  }
1025
1025
  get profile() { return this._profile; }
1026
- get gender() { return this._profile.byGender || this._profile.gender; }
1026
+ get gender() { return this.profile.byId ? this._profile.byGender : this._profile.gender; }
1027
1027
  get accentPalette() {
1028
1028
  const palette = MATERIAL_PALETTES[this.theme.accent];
1029
1029
  return this._constructpalette(palette);
@@ -2073,7 +2073,7 @@ const STRINGS = {
2073
2073
  YouSubstituteActionTakenTo: 'Document {0} to {1} by you instead of {2} {3}',
2074
2074
  Substituting: '{0} substituting {1}',
2075
2075
  SubstitutingForYou: '{0} substituting you',
2076
- YouSubstitute: 'You substituting {0}',
2076
+ YouSubstituting: 'You substituting {0}',
2077
2077
  SubstitutingBy: '{0} by {2} substituting {1}',
2078
2078
  SubstitutingByYou: '{0} by you substituting {1}',
2079
2079
  SubstitutingYou: 'Substituting for you',
@@ -2629,9 +2629,9 @@ const STRINGS = {
2629
2629
  SubstitutingForFemale: 'במקום {0}',
2630
2630
  Substituting: '{0} מחליף את {1}',
2631
2631
  SubstitutingForYou: '{0} מחליף אותך',
2632
- YouSubstitute: 'את/ה מחליף את {0}',
2633
- YouSubstituteMale: 'אתה מחליף את {0}',
2634
- YouSubstituteFemale: 'את מחליפה את {0}',
2632
+ YouSubstituting: 'את/ה מחליף את {0}',
2633
+ YouSubstitutingMale: 'אתה מחליף את {0}',
2634
+ YouSubstitutingFemale: 'את מחליפה את {0}',
2635
2635
  SubstitutingBy: '{0} מחליף את {1} דרך {2}',
2636
2636
  SubstitutingByYou: '{0} מחליף/פה את {1} דרכך}',
2637
2637
  SubstitutingByYouMale: '{0} מחליף את {1} דרכך}',
@@ -14033,15 +14033,18 @@ class FlowViewComponent extends TraceBase {
14033
14033
  for (r = 0; r < recipients.length; r++) {
14034
14034
  let recipient = recipients[r];
14035
14035
  const { annotation, tooltip } = yield this._note(node, recipient);
14036
+ const content = this._tooltip(tooltip);
14036
14037
  const nod = {
14037
14038
  id: r === 0 ? node.id : node.id + r.toString(),
14038
14039
  shape: this._configuration[node.type].shape,
14039
14040
  zIndex: zIndex++,
14040
14041
  tooltip: {
14041
- content: this._tooltip(tooltip),
14042
+ content,
14042
14043
  position: 'TopCenter'
14043
14044
  },
14044
- constraints: Object.keys(tooltip).length ? NodeConstraints.Default : NodeConstraints.Default & ~NodeConstraints.Tooltip,
14045
+ constraints: content ?
14046
+ NodeConstraints.Default | NodeConstraints.Tooltip :
14047
+ NodeConstraints.Default,
14045
14048
  addInfo: {
14046
14049
  tooltip,
14047
14050
  recipient,
@@ -14121,15 +14124,18 @@ class FlowViewComponent extends TraceBase {
14121
14124
  else {
14122
14125
  const { state, annotation, tooltip } = yield this._shape(node);
14123
14126
  const { shape } = configuration;
14127
+ const content = this._tooltip(tooltip);
14124
14128
  nodes.push({
14125
14129
  id: node.id,
14126
14130
  shape,
14127
14131
  zIndex: zIndex++,
14128
14132
  tooltip: {
14129
- content: this._tooltip(tooltip),
14133
+ content,
14130
14134
  position: 'TopCenter'
14131
14135
  },
14132
- constraints: Object.keys(tooltip).length ? NodeConstraints.Default | NodeConstraints.Tooltip : NodeConstraints.Default,
14136
+ constraints: content ?
14137
+ NodeConstraints.Default | NodeConstraints.Tooltip :
14138
+ NodeConstraints.Default,
14133
14139
  addInfo: {
14134
14140
  tooltip,
14135
14141
  node
@@ -14618,9 +14624,9 @@ class TraceViewComponent extends TraceBase {
14618
14624
  step.fyi = recipient.fyi;
14619
14625
  if (recipient.substituteId) {
14620
14626
  if (recipient.byId) {
14621
- if (recipient.byId === this._session.userId && !this._session.isImpersonating) {
14627
+ if (recipient.byId === this._session.userId) {
14622
14628
  let who = yield profileOf(recipient.userId);
14623
- if (recipient.substituteId === this._session.userId && !this._session.isImpersonating)
14629
+ if (recipient.substituteId === this._session.userId)
14624
14630
  step.name = this._translate.get('ByYou', nameOf(who));
14625
14631
  else {
14626
14632
  let substituting = yield profileOf(recipient.substituteId);
@@ -14630,9 +14636,7 @@ class TraceViewComponent extends TraceBase {
14630
14636
  step.action = yield actionBy(action, You, recipient.id);
14631
14637
  }
14632
14638
  else {
14633
- let by = yield profileOf(recipient.byId);
14634
- let who = yield profileOf(recipient.userId);
14635
- let substituting = yield profileOf(recipient.substituteId);
14639
+ let by = yield profileOf(recipient.byId), who = yield profileOf(recipient.userId), substituting = yield profileOf(recipient.substituteId);
14636
14640
  step.name = this._translate.get('SubstitutingBy', nameOf(who), nameOf(substituting), nameOf(by));
14637
14641
  if (by.role)
14638
14642
  step.role = by.role;
@@ -14640,31 +14644,29 @@ class TraceViewComponent extends TraceBase {
14640
14644
  step.action = yield actionBy(action, by.gender, recipient.id);
14641
14645
  }
14642
14646
  }
14647
+ else if (recipient.userId === this._session.userId) {
14648
+ let substituting = yield profileOf(recipient.substituteId);
14649
+ step.name = this._translate.personalize('YouSubstituting', this._session.gender, nameOf(substituting));
14650
+ if (action)
14651
+ step.action = yield actionBy(action, this._session.gender, recipient.id);
14652
+ }
14653
+ else if (recipient.substituteId === this._session.userId) {
14654
+ let who = yield profileOf(recipient.userId);
14655
+ step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14656
+ if (action)
14657
+ step.action = yield actionBy(action, who.gender, recipient.id);
14658
+ }
14643
14659
  else {
14644
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14645
- let substituting = yield profileOf(recipient.substituteId);
14646
- step.name = this._translate.personalize('YouSubstitute', this._session.profile.byGender, nameOf(substituting));
14647
- if (action)
14648
- step.action = yield actionBy(action, this._session.gender, recipient.id);
14649
- }
14650
- else if (recipient.substituteId === this._session.userId && !this._session.isImpersonating) {
14651
- let who = yield profileOf(recipient.userId);
14652
- step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14653
- if (action)
14654
- step.action = yield actionBy(action, who.gender, recipient.id);
14655
- }
14656
- else {
14657
- let who = yield profileOf(recipient.userId), substituting = yield profileOf(recipient.substituteId);
14658
- step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14659
- if (who.role)
14660
- step.role = who.role;
14661
- if (action)
14662
- step.action = yield actionBy(action, who.gender, recipient.id);
14663
- }
14660
+ let who = yield profileOf(recipient.userId), substituting = yield profileOf(recipient.substituteId);
14661
+ step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14662
+ if (who.role)
14663
+ step.role = who.role;
14664
+ if (action)
14665
+ step.action = yield actionBy(action, who.gender, recipient.id);
14664
14666
  }
14665
14667
  }
14666
14668
  else if (recipient.byId) {
14667
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14669
+ if (recipient.userId === this._session.userId) {
14668
14670
  let by = yield profileOf(recipient.byId);
14669
14671
  step.name = this._translate.get('YouBy', nameOf(by));
14670
14672
  if (action)
@@ -14672,7 +14674,7 @@ class TraceViewComponent extends TraceBase {
14672
14674
  }
14673
14675
  else {
14674
14676
  let who = yield profileOf(recipient.userId);
14675
- if (recipient.byId === this._session.userId && !this._session.isImpersonating) {
14677
+ if (recipient.byId === this._session.userId) {
14676
14678
  step.name = this._translate.get('ByYou', nameOf(who));
14677
14679
  if (action)
14678
14680
  step.action = yield actionBy(action, You, recipient.id);
@@ -14688,7 +14690,7 @@ class TraceViewComponent extends TraceBase {
14688
14690
  }
14689
14691
  }
14690
14692
  else {
14691
- if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
14693
+ if (recipient.userId === this._session.userId) {
14692
14694
  step.name = this._translate.get('You');
14693
14695
  if (action)
14694
14696
  step.action = yield actionBy(action, You, recipient.id);
@@ -14749,35 +14751,19 @@ class TraceViewComponent extends TraceBase {
14749
14751
  }
14750
14752
  }
14751
14753
  if (recipient.substituteId) {
14752
- let who = yield profileOf(recipient.userId);
14753
- if (recipient.byId) {
14754
- if (recipient.byId === this._session.userId) {
14755
- if (recipient.substituteId === this._session.userId)
14756
- step.name = this._translate.get('ByYou', nameOf(who));
14757
- else {
14758
- let substituting = yield profileOf(recipient.substituteId);
14759
- step.name = this._translate.personalize('SubstitutingByYou', who.gender, nameOf(who), nameOf(substituting));
14760
- }
14761
- }
14762
- else {
14763
- let substituting = yield profileOf(recipient.substituteId);
14764
- let by = yield profileOf(recipient.byId);
14765
- step.name = this._translate.get('SubstitutingBy', nameOf(who), nameOf(substituting), nameOf(by));
14766
- if (by.role)
14767
- step.role = by.role;
14768
- }
14754
+ if (recipient.substituteId === this._session.userId) {
14755
+ let who = yield profileOf(recipient.userId);
14756
+ step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14757
+ }
14758
+ else if (recipient.userId === this._session.userId) {
14759
+ let substituting = yield profileOf(recipient.substituteId);
14760
+ step.name = this._translate.personalize('YouSubstituting', this._session.gender, nameOf(substituting));
14769
14761
  }
14770
14762
  else {
14771
- if (recipient.substituteId === this._session.userId)
14772
- step.name = this._translate.personalize('SubstitutingForYou', who.gender, nameOf(who));
14773
- else if (recipient.userId === this._session.userId)
14774
- step.name = this._translate.personalize('YouSubstitute', this._session.profile.byGender, nameOf(who));
14775
- else {
14776
- let substituting = yield profileOf(recipient.substituteId);
14777
- step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14778
- if (who.role)
14779
- step.role = who.role;
14780
- }
14763
+ let who = yield profileOf(recipient.userId), substituting = yield profileOf(recipient.substituteId);
14764
+ step.name = this._translate.personalize('Substituting', who.gender, nameOf(who), nameOf(substituting));
14765
+ if (who.role)
14766
+ step.role = who.role;
14781
14767
  }
14782
14768
  }
14783
14769
  else if (recipient.byId) {
@@ -14852,7 +14838,7 @@ class TraceViewComponent extends TraceBase {
14852
14838
  this._chat.open(userId);
14853
14839
  }
14854
14840
  /**
14855
- * model version compare, form component in 'compare' view mode
14841
+ * model version compare
14856
14842
  * @param log
14857
14843
  */
14858
14844
  compare(log) {