@bizdoc/core 3.2.9 → 3.2.10

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.
Files changed (31) hide show
  1. package/assets/themes/brown.min.css +1 -1
  2. package/assets/themes/dark.min.css +1 -1
  3. package/assets/themes/deep-purple-light-blue.min.css +1 -1
  4. package/assets/themes/deep-purple-teal.min.css +1 -1
  5. package/assets/themes/default.min.css +1 -1
  6. package/assets/themes/green.min.css +1 -1
  7. package/assets/themes/indigo-amber.min.css +1 -1
  8. package/assets/themes/indigo.min.css +1 -1
  9. package/esm2022/lib/bizdoc.module.mjs +25 -15
  10. package/esm2022/lib/compose/trace/flow.component.mjs +2 -2
  11. package/esm2022/lib/compose/version-compare/version-compare.directive.mjs +30 -32
  12. package/esm2022/lib/core/configuration.mjs +1 -1
  13. package/esm2022/lib/core/slots/slots.component.mjs +8 -6
  14. package/esm2022/lib/core/tagging/edit-input.component.mjs +10 -3
  15. package/esm2022/lib/core/tagging/tagging.component-base.mjs +1 -1
  16. package/esm2022/lib/core/tagging/tagging.directive.mjs +3 -4
  17. package/esm2022/lib/core/window-title.service.mjs +7 -3
  18. package/esm2022/lib/mobile.module.mjs +5 -3
  19. package/esm2022/lib/modules/diagram.module.mjs +9 -5
  20. package/esm2022/lib/routes.mobile.mjs +3 -4
  21. package/fesm2022/bizdoc-core.mjs +86 -60
  22. package/fesm2022/bizdoc-core.mjs.map +1 -1
  23. package/lib/bizdoc.module.d.ts +6 -7
  24. package/lib/core/configuration.d.ts +3 -0
  25. package/lib/core/functions.d.ts +1 -1
  26. package/lib/core/slots/slots.component.d.ts +1 -0
  27. package/lib/core/tagging/edit-input.component.d.ts +7 -3
  28. package/lib/core/tagging/tagging.component-base.d.ts +1 -1
  29. package/lib/core/window-title.service.d.ts +1 -0
  30. package/lib/routes.mobile.d.ts +1 -1
  31. package/package.json +1 -1
@@ -43,7 +43,7 @@ import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/port
43
43
  import * as i3 from '@angular/material/snack-bar';
44
44
  import { MatSnackBarModule, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
45
45
  import * as i1$2 from '@angular/router';
46
- import { NavigationStart as NavigationStart$1, ActivationEnd, RouterModule } from '@angular/router';
46
+ import { NavigationStart as NavigationStart$1, ActivationEnd, RouterModule, provideRouter, withDisabledInitialNavigation } from '@angular/router';
47
47
  import * as i1$3 from '@angular/forms';
48
48
  import { Validators, FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
49
49
  import * as i2$3 from '@angular/material/datepicker';
@@ -127,7 +127,7 @@ import EventEmitter$1 from 'events';
127
127
  import * as i4$3 from '@ctrl/ngx-emoji-mart';
128
128
  import { PickerModule } from '@ctrl/ngx-emoji-mart';
129
129
  import { Diagram, UndoRedo, ConnectorEditing, Snapping, SymbolPalette, BpmnDiagrams, PortVisibility, PortConstraints, DiagramConstraints, ConnectorConstraints, SelectorConstraints, NodeConstraints, DiagramTools, Connector, Node, ToolBase, ConnectionPointOrigin as ConnectionPointOrigin$1 } from '@syncfusion/ej2-diagrams';
130
- import { DiagramAction, DiagramTools as DiagramTools$1, DiagramConstraints as DiagramConstraints$1, ConnectionPointOrigin, SnapConstraints, Diagram as Diagram$1, NodeConstraints as NodeConstraints$1, ComplexHierarchicalTreeService, DiagramModule, SymbolPaletteModule, ConnectorBridgingService, LineRoutingService, BpmnDiagramsService, LayoutAnimationService, DataBindingService, FlowchartLayoutService, UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService, FlowchartLayout, HierarchicalTree, ComplexHierarchicalTree, BpmnDiagrams as BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging } from '@syncfusion/ej2-angular-diagrams';
130
+ import { DiagramAction, DiagramTools as DiagramTools$1, DiagramConstraints as DiagramConstraints$1, ConnectionPointOrigin, SnapConstraints, Diagram as Diagram$1, NodeConstraints as NodeConstraints$1, ComplexHierarchicalTreeService, DiagramModule, SymbolPaletteModule, ConnectorBridgingService, LineRoutingService, BpmnDiagramsService, LayoutAnimationService, DataBindingService, FlowchartLayoutService, UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService, FlowchartLayout, BpmnDiagrams as BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging } from '@syncfusion/ej2-angular-diagrams';
131
131
  import * as i5$3 from '@syncfusion/ej2-angular-schedule';
132
132
  import { Schedule, Day, WorkWeek, Month, MonthAgenda, Agenda, Year, ScheduleModule, ExcelExportService as ExcelExportService$2, DayService, WorkWeekService, MonthService, MonthAgendaService, ICalendarExportService, AgendaService, YearService } from '@syncfusion/ej2-angular-schedule';
133
133
  import * as i10$3 from '@syncfusion/ej2-angular-kanban';
@@ -12710,8 +12710,8 @@ class TaggingDirective {
12710
12710
  this._instance.onBind(value);
12711
12711
  this._instance.selected.
12712
12712
  subscribe(e => this._select(e.key, e.value));
12713
- this._overlayRef.keydownEvents().pipe(filter(k => k.key === 'Escape')).
12714
- subscribe();
12713
+ // this._overlayRef.keydownEvents().pipe(filter(k => k.key === 'Escape')).
12714
+ // subscribe();
12715
12715
  }
12716
12716
  _value() {
12717
12717
  const position = this._element.nativeElement.selectionStart;
@@ -12896,11 +12896,17 @@ class EditInputComponent {
12896
12896
  _openDocument(evt) {
12897
12897
  this._tag(DocumentTaggingComponent, evt, '#');
12898
12898
  }
12899
+ /**
12900
+ *
12901
+ * @param component
12902
+ * @param evt
12903
+ * @param prefix
12904
+ */
12899
12905
  _tag(component, evt, prefix) {
12900
12906
  const popupRef = this._popup.open(component, evt.target, { position: 'above' });
12901
12907
  popupRef.opened().subscribe(e => {
12902
- e.onBind('');
12903
- e.selected.pipe().subscribe(e => {
12908
+ e.onBind();
12909
+ e.selected.pipe(takeUntil(popupRef.closed())).subscribe(e => {
12904
12910
  this._textElement.nativeElement.value += prefix + e.key;
12905
12911
  const args = {};
12906
12912
  args[e.key] = e.value;
@@ -15199,7 +15205,7 @@ class FlowViewComponent extends TraceBase {
15199
15205
  this.diagram && this.diagram.destroy();
15200
15206
  this.diagram = new Diagram$1({
15201
15207
  width: '100%',
15202
- height: 600,
15208
+ height: 500,
15203
15209
  nodes,
15204
15210
  connectors,
15205
15211
  layout: this.layout,
@@ -18604,20 +18610,24 @@ class WindowTitleService {
18604
18610
  }
18605
18611
  set(value) {
18606
18612
  document.title = this._title = value ? `${this._appTitle} - ${value}` : this._appTitle;
18613
+ this._task && this._clearInterval();
18607
18614
  }
18608
18615
  clear() { document.title = this._appTitle; }
18609
18616
  _show(message) {
18610
18617
  this._message = message;
18611
18618
  this._isActive = true;
18612
- this._task && clearInterval(this._task);
18619
+ this._task && this._clearInterval();
18613
18620
  this._task = setInterval(() => {
18614
18621
  this._mode = !this._mode;
18615
18622
  document.title = this._mode ? this._title : this._message;
18616
18623
  }, TIME);
18617
18624
  }
18618
- _clear() {
18625
+ _clearInterval() {
18619
18626
  clearInterval(this._task);
18620
18627
  this._task = undefined;
18628
+ }
18629
+ _clear() {
18630
+ this._clearInterval();
18621
18631
  document.title = this._title;
18622
18632
  this._isActive = false;
18623
18633
  }
@@ -19118,7 +19128,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
19118
19128
  type: Optional
19119
19129
  }] }] });
19120
19130
 
19121
- const DEFAULT_ROUTE = ['dashboard'];
19122
19131
  class SlotsComponent {
19123
19132
  get selectedTabIndex() {
19124
19133
  return this._selectedTabIndex;
@@ -19389,11 +19398,14 @@ class SlotsComponent {
19389
19398
  if (location.pathname.length > 1)
19390
19399
  this._deserialize(location.pathname.substring(1), history.state && history.state.bizdoc ? history.state : undefined);
19391
19400
  else
19392
- this._router._navigate$.next({
19393
- commands: DEFAULT_ROUTE,
19394
- });
19401
+ this._navToDefault();
19395
19402
  this._resizing.pipe(debounceTime(150), takeUntil(this._destroy)).subscribe(this._resize.bind(this));
19396
19403
  }
19404
+ _navToDefault() {
19405
+ this._router._navigate$.next({
19406
+ commands: [this._routes.find(r => r.path === '').redirectTo]
19407
+ });
19408
+ }
19397
19409
  /**
19398
19410
  *
19399
19411
  * @param url
@@ -19924,7 +19936,7 @@ class SlotsComponent {
19924
19936
  if (this.panes.length)
19925
19937
  this._syncBrowserHistory();
19926
19938
  else
19927
- this._router.navigate(DEFAULT_ROUTE);
19939
+ this._navToDefault();
19928
19940
  }
19929
19941
  break;
19930
19942
  case 'expand':
@@ -22187,7 +22199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
22187
22199
  }]
22188
22200
  }], ctorParameters: () => [{ type: i1$2.ActivatedRouteSnapshot }] });
22189
22201
 
22190
- const ROUTES = [
22202
+ const MOBILE_CONFIG = [
22191
22203
  {
22192
22204
  path: 'mailbox',
22193
22205
  children: [
@@ -22252,8 +22264,7 @@ const ROUTES = [
22252
22264
  {
22253
22265
  path: 'options/:section',
22254
22266
  component: MobileOptionsComponent
22255
- },
22256
- { path: '', redirectTo: 'dashboard', pathMatch: 'full' }
22267
+ }
22257
22268
  ];
22258
22269
 
22259
22270
  class SyncfusionLinearGaugeModule {
@@ -22341,7 +22352,9 @@ class SyncfusionDiagramModule {
22341
22352
  DiagramModule,
22342
22353
  SymbolPaletteModule], exports: [DiagramModule,
22343
22354
  SymbolPaletteModule] }); }
22344
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: SyncfusionDiagramModule, providers: [ConnectorBridgingService, LineRoutingService, ComplexHierarchicalTreeService, BpmnDiagramsService, LayoutAnimationService,
22355
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: SyncfusionDiagramModule, providers: [ConnectorBridgingService, LineRoutingService,
22356
+ //ComplexHierarchicalTreeService,
22357
+ BpmnDiagramsService, LayoutAnimationService,
22345
22358
  DataBindingService, FlowchartLayoutService,
22346
22359
  UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService], imports: [CommonModule,
22347
22360
  DiagramModule,
@@ -22361,12 +22374,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
22361
22374
  DiagramModule,
22362
22375
  SymbolPaletteModule
22363
22376
  ],
22364
- providers: [ConnectorBridgingService, LineRoutingService, ComplexHierarchicalTreeService, BpmnDiagramsService, LayoutAnimationService,
22377
+ providers: [ConnectorBridgingService, LineRoutingService,
22378
+ //ComplexHierarchicalTreeService,
22379
+ BpmnDiagramsService, LayoutAnimationService,
22365
22380
  DataBindingService, FlowchartLayoutService,
22366
22381
  UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService]
22367
22382
  }]
22368
22383
  }], ctorParameters: () => [] });
22369
- Diagram$1.Inject(FlowchartLayout, HierarchicalTree, ComplexHierarchicalTree, BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging);
22384
+ Diagram$1.Inject(FlowchartLayout /*, HierarchicalTree, ComplexHierarchicalTree*/, BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging);
22370
22385
 
22371
22386
  class SyncfusionGridModule {
22372
22387
  constructor() {
@@ -27747,7 +27762,7 @@ class CompareNameDirective extends CompareDirectiveBase {
27747
27762
  get structure() { return this._structure; }
27748
27763
  get base() { return this._base ? this._base[this._name[0]] : null; }
27749
27764
  get version() { return this._version[this._name[0]]; }
27750
- get state() { return this._state; }
27765
+ get state() { return this._state || CompareState.Unchanged; }
27751
27766
  ;
27752
27767
  constructor(_comparision, _context, _group, _translate, _cd, _dom, _element) {
27753
27768
  super();
@@ -27758,7 +27773,6 @@ class CompareNameDirective extends CompareDirectiveBase {
27758
27773
  this._cd = _cd;
27759
27774
  this._dom = _dom;
27760
27775
  this._element = _element;
27761
- this._state = CompareState.Unchanged;
27762
27776
  }
27763
27777
  ngOnInit() {
27764
27778
  if (!this._comparision)
@@ -27825,40 +27839,39 @@ class CompareNameDirective extends CompareDirectiveBase {
27825
27839
  }
27826
27840
  i++;
27827
27841
  }
27828
- if (this._state !== CompareState.Unchanged)
27829
- switch (this._state) {
27830
- case CompareState.Removed:
27831
- // detect with base value(s)
27842
+ switch (this._state) {
27843
+ case CompareState.Removed:
27844
+ // detect with base value(s)
27845
+ setTimeout(() => {
27846
+ this._cd.detectChanges();
27847
+ this._decorate('removed', 'Deleted');
27848
+ Object.assign(this._version, versionData);
27849
+ });
27850
+ break;
27851
+ case CompareState.Added:
27852
+ this._decorate('added', 'Added');
27853
+ break;
27854
+ case CompareState.Modified:
27855
+ {
27856
+ const versionHTML = this._element.nativeElement.innerHTML;
27857
+ // this._cd.markForCheck();
27832
27858
  setTimeout(() => {
27859
+ // detect again with base value(s)
27833
27860
  this._cd.detectChanges();
27834
- this._decorate('removed', 'Deleted');
27861
+ const originalHTML = this._element.nativeElement.innerHTML;
27862
+ // restore version html
27863
+ this._element.nativeElement.innerHTML = versionHTML;
27864
+ const labelEl = this._decorate('modified', 'Modified');
27865
+ const el = document.createElement('span');
27866
+ el.className = 'original';
27867
+ el.innerHTML = originalHTML; //this._dom.sanitize();
27868
+ labelEl.append(el);
27869
+ // restore version value(s)
27835
27870
  Object.assign(this._version, versionData);
27836
27871
  });
27837
27872
  break;
27838
- case CompareState.Added:
27839
- this._decorate('added', 'Added');
27840
- break;
27841
- case CompareState.Modified:
27842
- {
27843
- const versionHTML = this._element.nativeElement.innerHTML;
27844
- // this._cd.markForCheck();
27845
- setTimeout(() => {
27846
- // detect again with base value(s)
27847
- this._cd.detectChanges();
27848
- const originalHTML = this._element.nativeElement.innerHTML;
27849
- // restore version html
27850
- this._element.nativeElement.innerHTML = versionHTML;
27851
- const labelEl = this._decorate('modified', 'Modified');
27852
- const el = document.createElement('span');
27853
- el.className = 'original';
27854
- el.innerHTML = originalHTML; //this._dom.sanitize();
27855
- labelEl.append(el);
27856
- // restore version value(s)
27857
- Object.assign(this._version, versionData);
27858
- });
27859
- break;
27860
- }
27861
- }
27873
+ }
27874
+ }
27862
27875
  }
27863
27876
  _decorate(className, label) {
27864
27877
  this._element.nativeElement.classList.add('compare', className);
@@ -31127,7 +31140,8 @@ class MobileModule {
31127
31140
  RouterModule,
31128
31141
  SharedModule], exports: [HomeMobileComponent, BrowseMobileComponent, CubeMobileViewComponent, ComposeMobileComponent, ReportMobileComponent, FormSelectorSheet, CopyDialog, SchedulerMobileComponent, NotificationsComponent,
31129
31142
  ChatMobileComponent] }); }
31130
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MobileModule, providers: [CanDeactivateCompose,
31143
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MobileModule, providers: [
31144
+ CanDeactivateCompose,
31131
31145
  CubeItemResolveService,
31132
31146
  RecipientResolveService, DocumentResolveService
31133
31147
  ], imports: [CommonModule,
@@ -31141,7 +31155,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
31141
31155
  declarations: [DocumentInfoPageComponent, HomeMobileComponent, BrowseMobileComponent, CubeMobileViewComponent, ComposeMobileComponent, ReportMobileComponent, FormSelectorSheet, CopyDialog, SchedulerMobileComponent, NotificationsComponent,
31142
31156
  ChatMobileComponent, CubeMatrixMobileComponent, DocumentViewMobileComponent, MobileOptionsComponent
31143
31157
  ],
31144
- providers: [CanDeactivateCompose,
31158
+ providers: [
31159
+ CanDeactivateCompose,
31145
31160
  CubeItemResolveService,
31146
31161
  RecipientResolveService, DocumentResolveService
31147
31162
  ],
@@ -37253,6 +37268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
37253
37268
  }]
37254
37269
  }] });
37255
37270
 
37271
+ const DEFAULT_ROUTE = 'dashboard';
37256
37272
  class BizDocModule {
37257
37273
  static forChild(config) {
37258
37274
  const { components, routes } = config;
@@ -37266,17 +37282,16 @@ class BizDocModule {
37266
37282
  };
37267
37283
  }
37268
37284
  static forRoot(config) {
37269
- const { formats, routes, components } = config;
37285
+ const { formats, routes, components, defaultRoute } = config;
37270
37286
  registerComponents(components);
37271
- routes && PANES_CONFIG.push(...routes);
37272
37287
  const providers = [
37273
- { provide: PANES_DATA, useValue: PANES_CONFIG },
37274
37288
  {
37275
37289
  provide: BIZDOC_CONFIG,
37276
37290
  useValue: config
37277
37291
  },
37278
37292
  {
37279
- provide: MAT_DATE_FORMATS, useValue: {
37293
+ provide: MAT_DATE_FORMATS,
37294
+ useValue: {
37280
37295
  parse: {
37281
37296
  dateInput: 'LL',
37282
37297
  },
@@ -37289,6 +37304,17 @@ class BizDocModule {
37289
37304
  }
37290
37305
  },
37291
37306
  ];
37307
+ const redirectTo = defaultRoute ? isString(defaultRoute) ? defaultRoute : defaultRoute() : DEFAULT_ROUTE;
37308
+ if (isMobile()) {
37309
+ routes && MOBILE_CONFIG.push(...routes);
37310
+ MOBILE_CONFIG.push({ path: '', redirectTo, pathMatch: 'full' });
37311
+ providers.push(provideRouter(MOBILE_CONFIG, withDisabledInitialNavigation()));
37312
+ }
37313
+ else {
37314
+ routes && PANES_CONFIG.push(...routes);
37315
+ PANES_CONFIG.push({ path: '', redirectTo });
37316
+ providers.push({ provide: PANES_DATA, useValue: PANES_CONFIG });
37317
+ }
37292
37318
  return {
37293
37319
  ngModule: BizDocModule,
37294
37320
  providers
@@ -37296,13 +37322,13 @@ class BizDocModule {
37296
37322
  }
37297
37323
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BizDocModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
37298
37324
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: BizDocModule, declarations: [BizDocApp], imports: [BrowserModule,
37299
- BrowserAnimationsModule, i1$2.RouterModule, MobileModule,
37325
+ BrowserAnimationsModule,
37326
+ MobileModule,
37300
37327
  DesktopModule, SystemModule, SharedModule], exports: [BizDocApp,
37301
37328
  SharedModule,
37302
37329
  MaterialModule] }); }
37303
37330
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BizDocModule, imports: [BrowserModule,
37304
37331
  BrowserAnimationsModule,
37305
- RouterModule.forRoot(ROUTES, { initialNavigation: 'disabled' }),
37306
37332
  MobileModule,
37307
37333
  DesktopModule,
37308
37334
  SystemModule.forChild(),
@@ -37318,12 +37344,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
37318
37344
  imports: [
37319
37345
  BrowserModule,
37320
37346
  BrowserAnimationsModule,
37321
- RouterModule.forRoot(ROUTES, { initialNavigation: 'disabled' }),
37322
37347
  MobileModule,
37323
37348
  DesktopModule,
37324
37349
  SystemModule.forChild(),
37325
37350
  SharedModule.forChild({ routingEngine: isMobile() ? 'ng' : 'pane' })
37326
37351
  ],
37352
+ providers: [],
37327
37353
  exports: [
37328
37354
  BizDocApp,
37329
37355
  SharedModule,