@bizdoc/core 1.13.0-next.6 → 1.13.1

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 (40) hide show
  1. package/assets/bizdoc-schema.json +1 -14
  2. package/esm2020/lib/admin/diff/configuration-diff.component.mjs +5 -2
  3. package/esm2020/lib/admin/form/workflow/node.component.mjs +3 -2
  4. package/esm2020/lib/admin/positions/positions-popup.component.mjs +1 -1
  5. package/esm2020/lib/app.component.mjs +1 -1
  6. package/esm2020/lib/browse/browse-items.component.mjs +13 -10
  7. package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +84 -57
  8. package/esm2020/lib/compose/action/action-picker.component.mjs +15 -14
  9. package/esm2020/lib/compose/action/action.base.mjs +8 -7
  10. package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +12 -11
  11. package/esm2020/lib/compose/action/assign-action.component.mjs +52 -26
  12. package/esm2020/lib/compose/attachments/attachments.component.mjs +3 -4
  13. package/esm2020/lib/compose/form.component.mjs +5 -6
  14. package/esm2020/lib/compose/trace/flow.component.mjs +129 -124
  15. package/esm2020/lib/compose/trace/trace.component.mjs +46 -44
  16. package/esm2020/lib/core/controls/file.input.mjs +6 -7
  17. package/esm2020/lib/core/layout/layout.component.mjs +2 -2
  18. package/esm2020/lib/core/mailbox.service.mjs +29 -6
  19. package/esm2020/lib/core/models.mjs +2 -9
  20. package/esm2020/lib/core/translations.mjs +18 -2
  21. package/esm2020/lib/cube/cube.service.mjs +5 -5
  22. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +62 -62
  23. package/fesm2015/bizdoc-core.mjs +579 -477
  24. package/fesm2015/bizdoc-core.mjs.map +1 -1
  25. package/fesm2020/bizdoc-core.mjs +573 -476
  26. package/fesm2020/bizdoc-core.mjs.map +1 -1
  27. package/lib/admin/diff/configuration-diff.component.d.ts +1 -0
  28. package/lib/app.component.d.ts +2 -2
  29. package/lib/browse/expanded-item/expanded-item.component.d.ts +7 -6
  30. package/lib/compose/action/action-picker.component.d.ts +2 -1
  31. package/lib/compose/action/action.base.d.ts +4 -2
  32. package/lib/compose/action/action.pane.dialog.exp.d.ts +2 -1
  33. package/lib/compose/action/assign-action.component.d.ts +16 -5
  34. package/lib/compose/trace/flow.component.d.ts +0 -1
  35. package/lib/compose/trace/trace.component.d.ts +5 -4
  36. package/lib/core/mailbox.service.d.ts +4 -2
  37. package/lib/core/models.d.ts +6 -13
  38. package/lib/core/translations.d.ts +16 -0
  39. package/lib/cube/cube.service.d.ts +1 -1
  40. package/package.json +1 -2
@@ -105,6 +105,7 @@ export declare class SystemDiffComponent implements OnInit, OnDestroy, UtilityCo
105
105
  interface VersionInfo {
106
106
  time: Date;
107
107
  author: string;
108
+ file?: string;
108
109
  }
109
110
  interface ConfigurtionInfo {
110
111
  }
@@ -14,8 +14,8 @@ export declare class BizDocApp implements OnInit {
14
14
  private _cfr;
15
15
  private _session;
16
16
  private _messaging;
17
- dir: Direction;
18
- private _refresh;
17
+ readonly dir: Direction;
18
+ private readonly _refresh;
19
19
  constructor(_vc: ViewContainerRef, _cfr: ComponentFactoryResolver, _session: SessionService, _messaging: HubService, iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
20
20
  private _initialize;
21
21
  ngOnInit(): void;
@@ -14,13 +14,13 @@ export declare class ExpandedItemComponent implements OnInit, OnDestroy {
14
14
  private _sb;
15
15
  private _chat;
16
16
  private _accounts;
17
- private _dir;
18
- private _translate;
19
17
  private _mailbox;
20
- private _dialog;
21
18
  private _session;
19
+ private _dir;
20
+ private _dialog;
21
+ private _translate;
22
22
  private _messaging;
23
- item: RecipientModel<any>;
23
+ model: RecipientModel<any>;
24
24
  readonly sent: EventEmitter<RecipientModel<any>>;
25
25
  actions?: Action[];
26
26
  newComments?: number;
@@ -32,9 +32,10 @@ export declare class ExpandedItemComponent implements OnInit, OnDestroy {
32
32
  private _typingTask;
33
33
  private _refreshTask;
34
34
  private readonly _destroy;
35
- constructor(_sb: PromptService, _chat: ChatInfo, _accounts: AccountService, _dir: Directionality, _translate: TranslateService, _mailbox: MailboxService, _dialog: MatDialog, _session: SessionService, _messaging: HubService);
35
+ constructor(_sb: PromptService, _chat: ChatInfo, _accounts: AccountService, _mailbox: MailboxService, _session: SessionService, _dir: Directionality, _dialog: MatDialog, _translate: TranslateService, _messaging: HubService);
36
36
  ngOnInit(): void;
37
37
  private _note;
38
+ private _target;
38
39
  private _actionName;
39
40
  private _fromNow;
40
41
  private _duration;
@@ -62,5 +63,5 @@ export declare class ExpandedItemComponent implements OnInit, OnDestroy {
62
63
  private _handleResponse;
63
64
  ngOnDestroy(): void;
64
65
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpandedItemComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<ExpandedItemComponent, "bizdoc-expanded-item", never, { "item": "item"; }, { "sent": "sent"; }, never, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandedItemComponent, "bizdoc-expanded-item", never, { "model": "model"; }, { "sent": "sent"; }, never, never>;
66
67
  }
@@ -6,6 +6,7 @@ import { SessionService } from '../../core/session.service';
6
6
  import { ActionBase } from './action.base';
7
7
  import { PromptService } from '../../core/prompt.service';
8
8
  import { AccountService } from '../../core/account.service';
9
+ import { TranslateService } from '../../core/translate.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class ActionPicker extends ActionBase implements OnChanges, AfterViewInit {
11
12
  model: RecipientModel<any>;
@@ -14,7 +15,7 @@ export declare class ActionPicker extends ActionBase implements OnChanges, After
14
15
  working: boolean;
15
16
  readonly workingChange: EventEmitter<boolean>;
16
17
  actions: Action[];
17
- constructor(model: RecipientModel<any>, _session: SessionService, mailbox: MailboxService, _dialog: MatDialog, accounts: AccountService, sb: PromptService);
18
+ constructor(model: RecipientModel<any>, _session: SessionService, mailbox: MailboxService, _dialog: MatDialog, accounts: AccountService, translate: TranslateService, sb: PromptService);
18
19
  ngAfterViewInit(): void;
19
20
  ngOnChanges(changes: SimpleChanges): void;
20
21
  private _sortActions;
@@ -1,13 +1,15 @@
1
+ import { Action, RecipientModel } from '../../core/models';
1
2
  import { AccountService } from '../../core/account.service';
2
3
  import { MailboxService } from '../../core/mailbox.service';
3
- import { Action, RecipientModel } from '../../core/models';
4
4
  import { PromptService } from '../../core/prompt.service';
5
+ import { TranslateService } from '../../core/translate.service';
5
6
  export declare abstract class ActionBase {
6
7
  private _mailbox;
7
8
  private _accounts;
8
9
  protected _sb: PromptService;
10
+ private _translate;
9
11
  model: RecipientModel<any>;
10
- constructor(_mailbox: MailboxService, _accounts: AccountService, _sb: PromptService);
12
+ constructor(_mailbox: MailboxService, _accounts: AccountService, _sb: PromptService, _translate: TranslateService);
11
13
  protected _ok(action: Action, args: any): import("rxjs").Observable<RecipientModel<any>>;
12
14
  private _handleError;
13
15
  }
@@ -8,6 +8,7 @@ import { PromptService } from '../../core/prompt.service';
8
8
  import { ParamMap } from '../../core/configuration';
9
9
  import { ActionBase } from './action.base';
10
10
  import { AccountService } from '../../core/account.service';
11
+ import { TranslateService } from '../../core/translate.service';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class ActionPaneComponent extends ActionBase implements OnInit, OnDestroy {
13
14
  private _pane;
@@ -20,7 +21,7 @@ export declare class ActionPaneComponent extends ActionBase implements OnInit, O
20
21
  readonly okChange: EventEmitter<ParamMap>;
21
22
  private readonly _destroy;
22
23
  /** action-dialog ctor */
23
- constructor(_pane: PaneRef<ActionPaneComponent>, mailbox: MailboxService, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, accounts: AccountService, sb: PromptService, session: SessionService);
24
+ constructor(_pane: PaneRef<ActionPaneComponent>, mailbox: MailboxService, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, accounts: AccountService, sb: PromptService, translate: TranslateService, session: SessionService);
24
25
  close(): void;
25
26
  ok(): void;
26
27
  ngOnInit(): void;
@@ -1,4 +1,4 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
3
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
4
  import { Observable } from 'rxjs';
@@ -11,14 +11,25 @@ export declare class AssignActionComponent implements ArgumentsComponent, OnInit
11
11
  private _fb;
12
12
  private _session;
13
13
  private _accounts;
14
+ readonly separatorKeysCodes: number[];
15
+ nameInput: ElementRef<HTMLInputElement>;
14
16
  readonly form: import("@angular/forms").FormGroup;
15
- readonly userId: import("@angular/forms").FormControl;
16
- users: Observable<UserInfo[]>;
17
+ readonly userIds: import("@angular/forms").FormControl;
18
+ users$: Observable<UserInfo[]>;
17
19
  private _destroy;
18
20
  constructor(_fb: FormBuilder, _session: SessionService, _accounts: AccountService);
19
21
  ngOnInit(): void;
20
- display(v: UserInfo): string;
21
- change(evt: MatAutocompleteSelectedEvent): void;
22
+ /**
23
+ *
24
+ * @param inp
25
+ * @param event
26
+ */
27
+ userSelected(inp: HTMLInputElement, event: MatAutocompleteSelectedEvent): void;
28
+ /**
29
+ *
30
+ * @param id
31
+ */
32
+ removed(id: string): void;
22
33
  ngOnDestroy(): void;
23
34
  static ɵfac: i0.ɵɵFactoryDeclaration<AssignActionComponent, never>;
24
35
  static ɵcmp: i0.ɵɵComponentDeclaration<AssignActionComponent, "ng-component", never, {}, {}, never, never>;
@@ -23,7 +23,6 @@ export declare class FlowViewComponent extends TraceBase implements OnChanges, O
23
23
  readonly scrollSettings: ScrollSettingsModel;
24
24
  readonly snapSettings: SnapSettingsModel;
25
25
  private readonly _configuration;
26
- private _issued;
27
26
  private _accentColor;
28
27
  /** workflow-view ctor */
29
28
  constructor(_accounts: AccountService, _session: SessionService, _translate: TranslateService, _duration: DurationFormatPipe, _elementRef: ElementRef<HTMLDivElement>, hub: HubService);
@@ -21,11 +21,11 @@ export declare class TraceViewComponent extends TraceBase implements OnChanges {
21
21
  readonly CALENDAR_SPEC: CalendarSpec;
22
22
  constructor(_session: SessionService, _translate: TranslateService, _accounts: AccountService, _chat: ChatInfo, hub: HubService);
23
23
  ngOnChanges(_changes: SimpleChanges): void;
24
- private _initialise;
24
+ private _initialize;
25
25
  private _filter;
26
- private _showAll;
27
- get showAll(): boolean;
28
- set showAll(value: boolean);
26
+ private _showMode;
27
+ get showMode(): ShowMode;
28
+ set showMode(value: ShowMode);
29
29
  private _roleName;
30
30
  chat(e: MouseEvent): void;
31
31
  /**
@@ -51,4 +51,5 @@ interface Trace {
51
51
  fileName?: string;
52
52
  time?: Date;
53
53
  }
54
+ declare type ShowMode = 'everything' | 'active' | 'route';
54
55
  export {};
@@ -128,11 +128,13 @@ export interface AttachmentExtra extends Attachment {
128
128
  fileExt: string;
129
129
  isImage: boolean;
130
130
  progress?: number;
131
- checkedOut?: Date;
132
131
  viewed?: Date;
133
132
  failed?: boolean;
134
133
  }
135
- export interface UploadEvent {
134
+ export declare class UploadEvent {
135
+ readonly fileName: string;
136
136
  progress: number;
137
+ total: number;
137
138
  state: 'pending' | 'progress' | 'done';
139
+ constructor(options: any);
138
140
  }
@@ -61,7 +61,6 @@ export interface DocumentModel<T = any> {
61
61
  };
62
62
  parent?: Chain;
63
63
  children?: Chain[];
64
- toId?: string;
65
64
  }
66
65
  export interface Chain {
67
66
  completed: boolean;
@@ -83,6 +82,7 @@ export interface WorkflowInfo {
83
82
  connectors: ConnectorInfo[];
84
83
  }
85
84
  export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T> {
85
+ extra?: any;
86
86
  actions?: string[];
87
87
  fyi: boolean;
88
88
  originId?: number;
@@ -90,7 +90,6 @@ export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T
90
90
  tags?: string[];
91
91
  }
92
92
  export interface ConnectorInfo {
93
- virtual?: boolean;
94
93
  originId?: number;
95
94
  estimate: boolean;
96
95
  time?: Date;
@@ -98,7 +97,7 @@ export interface ConnectorInfo {
98
97
  targetId: string;
99
98
  }
100
99
  export interface NodeInfo {
101
- virtual?: boolean;
100
+ originId?: number;
102
101
  id: string;
103
102
  /** node */
104
103
  type: string;
@@ -112,7 +111,7 @@ export interface Log {
112
111
  recipientId?: number;
113
112
  userId: string;
114
113
  byId?: string;
115
- toId?: string;
114
+ originId?: string;
116
115
  time: Date;
117
116
  model?: {};
118
117
  type: LogType;
@@ -141,7 +140,6 @@ export interface Recipient {
141
140
  replied?: Date;
142
141
  estimate?: boolean;
143
142
  action?: string;
144
- toId?: string;
145
143
  fyi?: boolean;
146
144
  id: number;
147
145
  note?: string;
@@ -175,15 +173,10 @@ export interface Attachment {
175
173
  byId?: string;
176
174
  time: Date;
177
175
  deleted?: boolean;
178
- mode?: AttachmentMode;
176
+ checkedOut?: boolean;
177
+ private?: boolean;
179
178
  holdingId?: string;
180
179
  }
181
- export declare enum AttachmentMode {
182
- Public = 1,
183
- Private = 2,
184
- CheckedOut = 4,
185
- CheckedIn = 8
186
- }
187
180
  export interface Comment {
188
181
  id: number;
189
182
  image?: string;
@@ -391,7 +384,7 @@ export declare enum FieldType {
391
384
  Address = "Address",
392
385
  Object = "Object",
393
386
  Expression = "Expression",
394
- TimeSpan = "TimeSpan",
387
+ Duration = "Duration",
395
388
  Autocomplete = "Autocomplete",
396
389
  Percent = "Percent",
397
390
  DateRange = "DateRange"
@@ -141,6 +141,10 @@ export declare const STRINGS: {
141
141
  EverybodyRange: string;
142
142
  YourRange: string;
143
143
  Introduction: string;
144
+ AssignTo: string;
145
+ AssignRoundtrip: string;
146
+ AssignFYI: string;
147
+ AssignNoteHint: string;
144
148
  Welcome: string;
145
149
  WelcomeMsg: string;
146
150
  WelcomeHide: string;
@@ -246,6 +250,9 @@ export declare const STRINGS: {
246
250
  YouRepliedTo: string;
247
251
  ReplyingToYou: string;
248
252
  ByYou: string;
253
+ ActionBy: string;
254
+ ActionByBy: string;
255
+ ActionByYou: string;
249
256
  Received: string;
250
257
  ChangeLanguage: string;
251
258
  NewMail: string;
@@ -517,6 +524,7 @@ export declare const STRINGS: {
517
524
  Votes: string;
518
525
  Tasks: string;
519
526
  System: string;
527
+ ActiveRoute: string;
520
528
  Everything: string;
521
529
  NothingHere: string;
522
530
  Matrix: string;
@@ -554,6 +562,7 @@ export declare const STRINGS: {
554
562
  Skipped: string;
555
563
  Route: string;
556
564
  Trace: string;
565
+ ActiveRoute: string;
557
566
  Everything: string;
558
567
  ProfilerSearchHelp: string;
559
568
  TraceSearchHelp: string;
@@ -581,6 +590,10 @@ export declare const STRINGS: {
581
590
  Message: string;
582
591
  ProgrammableExpression: string;
583
592
  FYI: string;
593
+ AssignTo: string;
594
+ AssignFYI: string;
595
+ AssignNoteHint: string;
596
+ AssignRoundtrip: string;
584
597
  SkipInRoute: string;
585
598
  StandardTime: string;
586
599
  EscalateRole: string;
@@ -912,6 +925,9 @@ export declare const STRINGS: {
912
925
  YouRepliedTo: string;
913
926
  ReplyingToYou: string;
914
927
  ByYou: string;
928
+ ActionByYou: string;
929
+ ActionByBy: string;
930
+ ActionBy: string;
915
931
  EscalatedTo: string;
916
932
  EscalatedFrom: string;
917
933
  EscalatedBy: string;
@@ -188,7 +188,7 @@ export declare class CubeService {
188
188
  * get segments
189
189
  * @param cube
190
190
  */
191
- segments(cube: string, type: string): Observable<SegmentMap>;
191
+ segments(cube: string, name: string): Observable<SegmentMap>;
192
192
  /**
193
193
  * get user patterns
194
194
  * @param cube
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.13.0-next.6",
3
+ "version": "1.13.1",
4
4
  "author": "Moding Ltd.",
5
5
  "homepage": "https://github.com/moding-il/bizdoc.core",
6
6
  "license": "https://github.com/moding-il/bizdoc.core/blob/master/License.md",
@@ -30,7 +30,6 @@
30
30
  "hammerjs": "~2",
31
31
  "lottie-web": "^5.8.1",
32
32
  "ngx-cookie-service": "13",
33
- "xlsx": "^0.17.4",
34
33
  "dayjs": "^1.10.7",
35
34
  "zone.js": "^0.11.4",
36
35
  "tslib": "^2.3.0"