@bizdoc/core 1.13.26 → 1.13.27

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.
@@ -146,6 +146,7 @@ import player from 'lottie-web/build/player/lottie';
146
146
  import relativeTime from 'dayjs/plugin/relativeTime';
147
147
  import duration from 'dayjs/plugin/duration';
148
148
  import calendar from 'dayjs/plugin/calendar';
149
+ import updateLocale from 'dayjs/plugin/updateLocale';
149
150
 
150
151
  const expandListItemAnimation = trigger('detailExpand', [
151
152
  state('collapsed', style({ height: '0px', minHeight: '0', display: '' })),
@@ -1935,6 +1936,8 @@ const STRINGS = {
1935
1936
  'ar': {},
1936
1937
  'ru': {},
1937
1938
  'en': {
1939
+ TodayAt: 'Today at',
1940
+ Tomorrow: 'Tomorrow',
1938
1941
  Editing: '{0} editing...',
1939
1942
  CheckOut: 'Check out',
1940
1943
  CheckIn: 'Check in',
@@ -2118,8 +2121,8 @@ const STRINGS = {
2118
2121
  ChangeLanguage: 'Language',
2119
2122
  NewMail: 'New {0} #{1} {2}',
2120
2123
  OpenNew: 'Open',
2121
- SendErr: 'Unable to send message. Contact support.',
2122
- SubmitErr: 'Unable to submit. Contact support.',
2124
+ SendErr: 'Something went wrong -:(',
2125
+ SubmitErr: 'Something went wrong -:(',
2123
2126
  SaveErr: 'Unable to save. Please make sure you filled the form correctly.',
2124
2127
  VersionBy: 'By:',
2125
2128
  VersionDate: 'Date:',
@@ -2258,7 +2261,7 @@ const STRINGS = {
2258
2261
  Mute: 'Mute',
2259
2262
  Unmute: 'Unmute',
2260
2263
  NoNotifications: 'No notifications',
2261
- Err: 'Unable to complete task -:(',
2264
+ Err: 'Something went wrong -:(',
2262
2265
  SendSelected: 'Send {0} item(s)',
2263
2266
  SaveChanges: 'Save changes',
2264
2267
  SaveChangesAsk: 'Are you sure you want to exit without saving?',
@@ -2395,6 +2398,8 @@ const STRINGS = {
2395
2398
  Working: 'Working on it...'
2396
2399
  },
2397
2400
  'he': {
2401
+ TodayAt: 'היום ב-',
2402
+ Tomorrow: 'מחר',
2398
2403
  Editing: '{0} עורך/ת...',
2399
2404
  EditingMale: '{0} עורך...',
2400
2405
  EditingFemale: '{0} עורכת...',
@@ -2971,19 +2976,36 @@ class TranslateService {
2971
2976
  this._session = _session;
2972
2977
  this._http = _http;
2973
2978
  TranslateService.resource = STRINGS['en'];
2979
+ const culture = _session.language.split('-')[0];
2974
2980
  if ('en' !== _session.language) {
2975
2981
  Object.assign(TranslateService.resource, STRINGS[_session.language]);
2976
- const culture = _session.language.split('-')[0];
2977
2982
  dayjs.locale(culture);
2978
2983
  // syncfusion
2979
2984
  L10n.load(L18N_STRINGS);
2980
2985
  setCulture(culture);
2981
- culture === 'he' && registerLocaleData(localeHe, 'he');
2982
- culture === 'ru' && registerLocaleData(localeRu, 'ru');
2983
- culture === 'ar' && registerLocaleData(localeAr, 'ar');
2984
- culture === 'de' && registerLocaleData(localeDe, 'de');
2986
+ switch (culture) {
2987
+ case 'he':
2988
+ registerLocaleData(localeHe, 'he');
2989
+ break;
2990
+ case 'ru':
2991
+ registerLocaleData(localeRu, 'ru');
2992
+ break;
2993
+ case 'ar':
2994
+ registerLocaleData(localeAr, 'ar');
2995
+ break;
2996
+ case 'de':
2997
+ registerLocaleData(localeDe, 'de');
2998
+ break;
2999
+ }
2985
3000
  }
2986
- ;
3001
+ dayjs.updateLocale(culture, {
3002
+ //sameDay: `[${this.get('TodayAt')}] h:mm A`,
3003
+ //nextDay: `[${this.get('Tomorrow')}] h:mm A`,
3004
+ //nextWeek: 'dddd',
3005
+ //lastDay: `[${this.get('Yesterday')}] h:mm A`,
3006
+ //lastWeek: '[Last] dddd LT',
3007
+ sameElse: 'LLL'
3008
+ });
2987
3009
  _session.loaded.subscribe(() => this._gender = this._session.gender);
2988
3010
  }
2989
3011
  static set(resources) {
@@ -14086,20 +14108,17 @@ class FlowViewComponent extends TraceBase {
14086
14108
  }
14087
14109
  for (let connector of dconnectors) {
14088
14110
  let sources = nodes.filter(n => n.addInfo.node.id === connector.sourceId), targets = nodes.filter(n => n.addInfo.node.id === connector.targetId);
14089
- for (let source of sources) {
14111
+ for (let source of sources)
14090
14112
  for (let target of targets) {
14091
- if (!connector.originId || !source.addInfo.recipient ||
14092
- connector.originId === source.addInfo.recipient.id)
14093
- connectors.push({
14094
- sourceID: source.id,
14095
- targetID: target.id,
14096
- addInfo: {
14097
- estimate: connector.estimate,
14098
- time: connector.time
14099
- }
14100
- });
14113
+ connectors.push({
14114
+ sourceID: source.id,
14115
+ targetID: target.id,
14116
+ addInfo: {
14117
+ estimate: connector.estimate,
14118
+ time: connector.time
14119
+ }
14120
+ });
14101
14121
  }
14102
- }
14103
14122
  }
14104
14123
  return { connectors, nodes, indicators };
14105
14124
  }
@@ -14834,7 +14853,7 @@ class VersionPaneComponent {
14834
14853
  lastDay: `[${this._translate.get('Yesterday')}] HH:mm`,
14835
14854
  lastWeek: 'dddd HH:mm',
14836
14855
  sameDay: `[${this._translate.get('Today')}] HH:mm`,
14837
- sameElse: 'MMM Do HH:mm'
14856
+ sameElse: 'MMM D HH:mm'
14838
14857
  };
14839
14858
  _pane.title = _translate.get('Version');
14840
14859
  }
@@ -26917,6 +26936,7 @@ dayjs.extend(relativeTime, {
26917
26936
  });
26918
26937
  dayjs.extend(duration);
26919
26938
  dayjs.extend(calendar);
26939
+ dayjs.extend(updateLocale);
26920
26940
  const CORE_COMPONENTS = [CubeCompareWidget, CubeParallelViewComponent, CubeExploreViewComponent, CubeChartViewComponent, CubeDocumentSumComponent, CubeDocumentMatrixComponent, CubeDocumentViewComponent, CubePivotViewComponent, TimelineViewComponent,
26921
26941
  SubstitutionComponent, MoveToActionComponent, AssignActionComponent, ReturnActionComponent, ExploreDocumentComponent,
26922
26942
  ActionsWidget, CubeAnalysisWidget, CubeDocumentsWidget, RecentsWidget, PersonalActivityWidget,