@bizdoc/core 1.10.0-next.6 → 1.10.0

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 (49) hide show
  1. package/assets/bizdoc-schema.json +6 -0
  2. package/esm2020/lib/admin/form/workflow/workflow.component.mjs +2 -2
  3. package/esm2020/lib/browse/browse-items.component.mjs +3 -3
  4. package/esm2020/lib/browse/filter/filter.component.mjs +1 -1
  5. package/esm2020/lib/core/controls/combination-picker-body.mjs +5 -2
  6. package/esm2020/lib/core/controls/select.input.mjs +2 -2
  7. package/esm2020/lib/core/functions.mjs +4 -1
  8. package/esm2020/lib/core/mailbox.service.mjs +20 -23
  9. package/esm2020/lib/core/models.mjs +1 -1
  10. package/esm2020/lib/core/slots/pane-ref.mjs +1 -1
  11. package/esm2020/lib/cube/accum/accum.component.mjs +2 -3
  12. package/esm2020/lib/cube/chart/chart.component.mjs +2 -3
  13. package/esm2020/lib/cube/cube-info.service.mjs +6 -6
  14. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +2 -2
  15. package/esm2020/lib/cube/matrix/matrix.base.mjs +1 -1
  16. package/esm2020/lib/cube/matrix/matrix.component.mjs +8 -8
  17. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +1 -1
  18. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +4 -3
  19. package/esm2020/lib/cube/matrix/table.component.mjs +273 -164
  20. package/esm2020/lib/cube/sum/sum.component.mjs +3 -3
  21. package/esm2020/lib/dashboard/cube/accum-cube.widget.mjs +2 -3
  22. package/esm2020/lib/dashboard/cube/cube-analysis.base.mjs +1 -1
  23. package/esm2020/lib/dashboard/cube/cube-analysis.widget.mjs +3 -1
  24. package/esm2020/lib/dashboard/cube/cube-chart.widget.mjs +2 -3
  25. package/esm2020/lib/dashboard/cube/documents.widget.mjs +1 -1
  26. package/esm2020/lib/dashboard/cube/filter/filter.component.mjs +10 -6
  27. package/esm2020/lib/modules/chart.module.mjs +6 -4
  28. package/esm2020/lib/shared.module.mjs +6 -4
  29. package/esm2020/lib/views/cube/matrix.component.mjs +2 -2
  30. package/esm2020/public-api.mjs +1 -1
  31. package/fesm2015/bizdoc-core.mjs +335 -224
  32. package/fesm2015/bizdoc-core.mjs.map +1 -1
  33. package/fesm2020/bizdoc-core.mjs +342 -225
  34. package/fesm2020/bizdoc-core.mjs.map +1 -1
  35. package/lib/browse/filter/filter.component.d.ts +1 -1
  36. package/lib/core/controls/combination-picker-body.d.ts +4 -6
  37. package/lib/core/functions.d.ts +1 -0
  38. package/lib/core/mailbox.service.d.ts +4 -8
  39. package/lib/core/models.d.ts +2 -2
  40. package/lib/core/slots/pane-ref.d.ts +0 -1
  41. package/lib/cube/cube-info.service.d.ts +4 -6
  42. package/lib/cube/matrix/matrix.base.d.ts +2 -6
  43. package/lib/cube/matrix/matrix.component.d.ts +3 -3
  44. package/lib/cube/matrix/matrix.pane.component.d.ts +1 -0
  45. package/lib/cube/matrix/table.component.d.ts +36 -32
  46. package/lib/shared.module.d.ts +1 -1
  47. package/lib/views/cube/matrix.component.d.ts +3 -11
  48. package/package.json +14 -14
  49. package/public-api.d.ts +1 -1
@@ -61,7 +61,7 @@ export declare class BrowseFilterComponent implements OnInit, OnChanges, AfterVi
61
61
  static ɵfac: i0.ɵɵFactoryDeclaration<BrowseFilterComponent, never>;
62
62
  static ɵcmp: i0.ɵɵComponentDeclaration<BrowseFilterComponent, "bizdoc-browse-filter", never, { "values": "values"; "folderId": "folderId"; "exclude": "exclude"; }, { "valuesChange": "valuesChange"; }, never, never>;
63
63
  }
64
- export interface BrowseFilterArgs extends AxesMap {
64
+ export interface BrowseFilterArgs {
65
65
  form?: string;
66
66
  flag?: boolean;
67
67
  state?: string;
@@ -7,6 +7,7 @@ import { CubeService } from "../../cube/cube.service";
7
7
  import { DatasourceService } from "../datasource.service";
8
8
  import { PromptService } from "../prompt.service";
9
9
  import { CubeInfo } from "../../cube/cube-info.service";
10
+ import { SumSettings } from "../../cube/matrix/table.component";
10
11
  import * as i0 from "@angular/core";
11
12
  export declare const COMBINATION_PICKER_BODY: InjectionToken<CombinationBodyData>;
12
13
  export interface CombinationBodyData {
@@ -19,6 +20,7 @@ export interface CombinationBodyData {
19
20
  }
20
21
  export interface ExploreSettings {
21
22
  enable?: boolean;
23
+ /** cube view name */
22
24
  view?: string;
23
25
  defaults?: {
24
26
  [axis: string]: (string | number);
@@ -27,12 +29,8 @@ export interface ExploreSettings {
27
29
  /** one or more axis */
28
30
  filters?: string[] | string;
29
31
  xAxis: string;
30
- serie: string;
31
- sum?: {
32
- xAxis?: string | number;
33
- serie?: string | number;
34
- title: string;
35
- };
32
+ series: string;
33
+ sum?: SumSettings | SumSettings[];
36
34
  /** */
37
35
  aggregate?: string[] | string;
38
36
  }
@@ -2,6 +2,7 @@ export declare type MaterialMode = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700
2
2
  export declare function cleanup(params: any): any;
3
3
  export declare function outOfBound(element: HTMLElement): boolean;
4
4
  export declare function isMobile(): boolean;
5
+ export declare function isFunction(val: any): val is Function;
5
6
  export declare function isBoolean(val: any): val is boolean;
6
7
  export declare function isObject(val: any): boolean;
7
8
  export declare function isPrimitive(val: any): boolean;
@@ -19,14 +19,9 @@ export declare class MailboxService {
19
19
  readonly changed: Observable<RecipientModel<any>>;
20
20
  readonly deleted: Observable<number>;
21
21
  constructor(_session: SessionService, messaging: HubService, _http: HttpClient);
22
- /**
23
- *
24
- * @param date
25
- */
26
- private _isAboveWatermark;
27
22
  download(documentId: number, fileId: number): Observable<any>;
28
23
  removeattachment(id: number, fileId: number): Observable<any>;
29
- read(id: number, read: boolean): Observable<any>;
24
+ read(id: number, read: boolean, folderId?: string, received?: Date): Observable<any>;
30
25
  comments(id: number, before: Date): Observable<Comment[]>;
31
26
  tags(id: number, tags: string[]): Observable<any>;
32
27
  /**
@@ -88,11 +83,12 @@ export declare class MailboxService {
88
83
  }): Observable<HeaderModel[]>;
89
84
  create<T = any>(form: string): Observable<RecipientModel<T>>;
90
85
  get<T = any>(id: number, read?: boolean): Observable<RecipientModel<T>>;
86
+ private _updateunreadcounter;
91
87
  save<T = any>(id: number, version: number, form: string, model: {}): Observable<RecipientModel<T>>;
92
88
  delete(id: number): Observable<any>;
93
89
  removecomment(id: number): Observable<any>;
94
- submit<T = any>(id: number, version: number, form: string, model?: any): Observable<RecipientModel<T>>;
95
- send<T = any>(id: number, version: number, form: string, model: any, action: string, actionArgs: {}): Observable<RecipientModel<T>>;
90
+ submit<T = any>(id: number, version: number, form: string, model?: any, read?: boolean, folderId?: string, received?: Date): Observable<RecipientModel<T>>;
91
+ send<T = any>(id: number, version: number, form: string, model: any, action: string, actionArgs: {}, read?: boolean, folderId?: string, received?: Date): Observable<RecipientModel<T>>;
96
92
  events(starting: Date, ending?: Date, contains?: string): Observable<ScheduledEvent[]>;
97
93
  changeEvent(id: number, options: {
98
94
  starting: Date;
@@ -549,7 +549,7 @@ export interface CubeAxis {
549
549
  combination?: boolean;
550
550
  selectionMode?: 'Single' | 'Pattern' | 'Multiple' | 'Search' | 'None';
551
551
  }
552
- export declare type AxisType = string | number | boolean | Array<string | number>;
552
+ export declare type AxisType = string | number | Array<string | number>;
553
553
  export interface AxesMap {
554
554
  [axis: string]: AxisType;
555
555
  }
@@ -616,7 +616,7 @@ export declare type ChartType = 'Pie' |
616
616
  /** Define the radar series */
617
617
  'Radar' |
618
618
  /** Define the Pareto series */
619
- 'Pareto' | 'Doughnut' | 'HalfDoughnut' | 'Funnel' | 'StackingStepArea';
619
+ 'Pareto' | 'Doughnut' | 'HalfDoughnut' | 'Funnel' | 'Pyramid' | 'StackingStepArea';
620
620
  interface OutOfOfficeSettings {
621
621
  from?: Date;
622
622
  to?: Date;
@@ -59,7 +59,6 @@ export declare class PaneRef<T = any> {
59
59
  _queryString: string;
60
60
  _injector: Injector;
61
61
  _portal: ComponentPortal<T>;
62
- width: string;
63
62
  pinned: boolean;
64
63
  badge?: number;
65
64
  animation: string;
@@ -5,6 +5,7 @@ import { BizDocComponentFactoryResolver } from "../core/component-factory-resolv
5
5
  import { CubeService, ScopeType } from "./cube.service";
6
6
  import { Popup } from "../core/popup/popup.service";
7
7
  import { RouterImpl } from "../core/router";
8
+ import { SumSettings } from "./matrix/table.component";
8
9
  import * as i0 from "@angular/core";
9
10
  export interface CubeData {
10
11
  axes: AxesMap;
@@ -13,18 +14,15 @@ export interface CubeData {
13
14
  export interface CubeDataOptions {
14
15
  cube?: string;
15
16
  xAxis: string;
16
- serie: string;
17
+ series: string;
17
18
  indices?: string[] | string;
18
19
  view?: string;
19
20
  /** one or more axis */
20
21
  filters?: string[] | string;
21
22
  /** */
22
23
  aggregate?: string[] | string;
23
- sum?: {
24
- xAxis?: string | number;
25
- serie?: string | number;
26
- title: string;
27
- };
24
+ sum?: SumSettings | SumSettings[];
25
+ available?: string;
28
26
  }
29
27
  export interface ExploreOptions {
30
28
  cube?: string;
@@ -3,7 +3,7 @@ import { SessionService } from '../../core/session.service';
3
3
  import { DatasourceService } from '../../core/datasource.service';
4
4
  import { CubeService, Pattern } from '../cube.service';
5
5
  import { AxesMap, Cube, CubeAxis } from '../../core/models';
6
- import { CubeMatrixComponent } from './table.component';
6
+ import { CubeMatrixComponent, SumSettings } from './table.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class CubeMatrixBase {
9
9
  protected _service: CubeService;
@@ -35,11 +35,7 @@ export declare abstract class CubeMatrixBase {
35
35
  private _cube;
36
36
  get cube(): string;
37
37
  set cube(value: string);
38
- sum?: {
39
- xAxis?: string | number;
40
- serie?: string | number;
41
- title: string;
42
- };
38
+ sum?: SumSettings | SumSettings[];
43
39
  /** one or more axis */
44
40
  protected aggregation?: string[] | string;
45
41
  private _selection;
@@ -9,7 +9,7 @@ import { PopupRef } from "../../core/popup/popup-ref";
9
9
  import { CubeMatrixBase } from './matrix.base';
10
10
  import * as i0 from "@angular/core";
11
11
  /** cube matrix component*/
12
- export declare class CubeMatrixPageComponent extends CubeMatrixBase implements OnInit {
12
+ export declare class CubeMatrixPopupComponent extends CubeMatrixBase implements OnInit {
13
13
  private _ref;
14
14
  private _sb;
15
15
  table: CubeMatrixComponent;
@@ -18,6 +18,6 @@ export declare class CubeMatrixPageComponent extends CubeMatrixBase implements O
18
18
  /** cube-info ctor */
19
19
  constructor(_ref: PopupRef, data: CubeData, service: CubeService, ds: DatasourceService, session: SessionService, _sb: PromptService);
20
20
  ngOnInit(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixPageComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixPageComponent, "ng-component", never, {}, {}, never, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixPopupComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixPopupComponent, "ng-component", never, {}, {}, never, never>;
23
23
  }
@@ -12,6 +12,7 @@ export declare class CubeMatrixPaneComponent extends CubeMatrixBase implements O
12
12
  private _pane;
13
13
  private _router;
14
14
  private _translate;
15
+ available: string;
15
16
  /** cube-info ctor */
16
17
  constructor(_pane: PaneRef<CubeMatrixPaneComponent>, _router: PanesRouter, _translate: TranslateService, service: CubeService, ds: DatasourceService, session: SessionService);
17
18
  ngOnInit(): void;
@@ -12,17 +12,18 @@ export declare class CubeMatrixComponent implements OnChanges {
12
12
  private _session;
13
13
  private _ds;
14
14
  readonly PRECISION: string;
15
+ readonly LANGUAGE: string;
15
16
  CURRENCY: string;
17
+ SYMBOL: string;
16
18
  tableElement: ElementRef<HTMLTableElement>;
19
+ available: string;
17
20
  _cube?: string;
18
21
  _xAxis: string;
19
22
  _series: string;
20
23
  private _indices?;
21
- get indices(): string[] | string;
22
- set indices(value: string[] | string);
23
24
  scope: ScopeType;
24
25
  private _sum;
25
- set sum(val: SumOptions);
26
+ set sum(val: SumSettings | SumSettings[]);
26
27
  filters: AxesMap;
27
28
  private _interactive;
28
29
  loading: boolean;
@@ -30,55 +31,58 @@ export declare class CubeMatrixComponent implements OnChanges {
30
31
  set interactive(value: boolean);
31
32
  readonly onExplore: EventEmitter<AxesMap>;
32
33
  readonly loadingChange: EventEmitter<boolean>;
33
- rows: KeyValue[];
34
- columns: KeyValue[];
35
- indexes: CubeIndex[];
34
+ rows: HeaderInfo[];
35
+ columns: HeaderInfo[];
36
+ indices: CubeIndex[];
36
37
  data: {
37
- [row: string]: {
38
- [column: string]: number;
38
+ [series: string]: {
39
+ [xAxis: string]: string;
39
40
  };
40
41
  };
41
42
  totals: {
42
- [column: string]: number;
43
+ [xAxis: string]: number;
43
44
  };
44
45
  cube: Cube;
45
46
  xAxis: CubeAxis;
46
47
  series: CubeAxis;
48
+ private _data;
47
49
  private _prepare;
48
50
  constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _ds: DatasourceService);
49
51
  ngOnChanges(changes: SimpleChanges): void;
50
- /** */
51
- private _addsum;
52
+ private _addsumheaders;
52
53
  refresh(): void;
54
+ private _stringfy;
53
55
  private _totals;
54
56
  private _calculatesum;
55
- explore(x: string | number | string[] | number[], serie: string | number | string[] | number[]): void;
57
+ private _format;
58
+ explore(column: HeaderInfo, row: HeaderInfo): void;
56
59
  move(x: any, y: any): void;
57
60
  static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixComponent, "bizdoc-cube-matrix", never, { "_cube": "cube"; "_xAxis": "xAxis"; "_series": "series"; "indices": "indices"; "scope": "scope"; "sum": "sum"; "filters": "filters"; "loading": "loading"; "interactive": "interactive"; }, { "onExplore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixComponent, "bizdoc-cube-matrix", never, { "available": "available"; "_cube": "cube"; "_xAxis": "xAxis"; "_series": "series"; "_indices": "indices"; "scope": "scope"; "sum": "sum"; "filters": "filters"; "loading": "loading"; "interactive": "interactive"; }, { "onExplore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
59
62
  }
60
- export declare class CubeInfoCellArgs {
61
- private _value;
62
- get value(): number;
63
- private _summary;
64
- get summary(): boolean;
65
- color: string;
66
- backgroundColor: string;
67
- data: {
68
- [row: string]: {
69
- [column: string]: number;
63
+ export declare type SumSettings = {
64
+ value?: string | number;
65
+ axis: 'series' | 'xAxis';
66
+ title: string;
67
+ format?: 'percent' | 'currency' | 'number';
68
+ precision?: string;
69
+ accumulate?: boolean;
70
+ calculate?: 'quarter' | 'year' | 'month' | CalculateFn;
71
+ };
72
+ export declare interface CalculateFn {
73
+ (value: string, data: {
74
+ [series: string]: {
75
+ [xAxis: string]: number;
70
76
  };
71
- };
72
- row: string;
73
- column: string;
77
+ }): number;
74
78
  }
75
- declare type SumOptions = {
76
- xAxis?: string | number;
77
- series?: string | number;
78
- title: any;
79
- };
80
- declare type KeyValue = {
79
+ declare type HeaderInfo = {
81
80
  key: string;
82
81
  value: any;
82
+ format?: 'percent' | 'currency' | 'number';
83
+ precision?: string;
84
+ accumulate?: boolean;
85
+ explorable?: boolean;
86
+ index?: number;
83
87
  };
84
88
  export {};
@@ -178,6 +178,6 @@ import * as i174 from "./modules/material.module";
178
178
  export declare class SharedModule {
179
179
  static forChild(config?: SharedConfig): ModuleWithProviders<SharedModule>;
180
180
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
181
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.DateFormatPipe, typeof i2.CalendarPipe, typeof i3.DifferencePipe, typeof i4.DurationPipe, typeof i5.TimeAgoPipe, typeof i6.CheckboxComponent, typeof i7.CubeParallelComponent, typeof i8.CubeSumComponent, typeof i9.CubeParallelViewComponent, typeof i10.CubeChartViewComponent, typeof i11.CubeExploreViewComponent, typeof i12.CubeDocumentSumComponent, typeof i13.ExploreItemImplComponent, typeof i14.DocumentInfoComponent, typeof i15.DocumentViewsComponent, typeof i16.ViewItemComponent, typeof i17.CubeDocumentMatrixComponent, typeof i18.CubeDocumentViewComponent, typeof i19.CubePivotViewComponent, typeof i20.ActionPicker, typeof i21.HtmlSimplePipe, typeof i22.QuickCommentComponent, typeof i23.DurationFormatPipe, typeof i24.CombinationPicker, typeof i25.CombinationPickerBody, typeof i26.CombinationPool, typeof i27.TimelineViewComponent, typeof i28.MatIconAnimate, typeof i29.DateRangePipe, typeof i29.AgoPipe, typeof i30.ColorPicker, typeof i31.StateDirective, typeof i32.BrokenPage, typeof i33.JoinPipe, typeof i34.TimePicker, typeof i35.TypeValuePipe, typeof i36.TypeSelect, typeof i37.TypeAutocomplete, typeof i38.TranslatePipe, typeof i39.IdentityName, typeof i40.SanitizeHtmlPipe, typeof i41.AceInput, typeof i42.TimespanInput, typeof i43.AddressInput, typeof i44.StatePipe, typeof i45.ActionPipe, typeof i46.RolePipe, typeof i47.FormPipe, typeof i48.FilterPipe, typeof i48.ArraySortPipe, typeof i49.UserNamePipe, typeof i50.LayoutComponent, typeof i51.HtmlField, typeof i52.NumericField, typeof i53.AutocompleteField, typeof i54.CheckField, typeof i55.DateField, typeof i56.DateRangeField, typeof i57.ExpressionField, typeof i58.InputField, typeof i59.SelectField, typeof i60.SwitchField, typeof i61.TextareaField, typeof i62.TimespanField, typeof i63.ReturnActionComponent, typeof i64.AssignActionComponent, typeof i65.AvatarComponent, typeof i66.PeopleComponent, typeof i67.EditInputComponent, typeof i68.NgxComponentOutlet, typeof i32.BizDocApp, typeof i69.LottieAnimation, typeof i21.ContactsComponent, typeof i70.CubeMatrixComponent, typeof i71.FilterTagsComponent, typeof i72.ExploreItemsComponent, typeof i73.CompareNameDirective, typeof i73.CompareGroupDirective, typeof i73.CompareContextDirective, typeof i74.GuideComponent, typeof i75.OutOfOfficeToast, typeof i76.NotificationsTableComponent, typeof i77.NotificationsFilterComponent, typeof i78.TaggingPipe, typeof i79.PrivilegeHiddenDirective, typeof i80.TaggingItemDirective, typeof i81.TaggingDirective, typeof i82.DocumentTaggingComponent, typeof i83.UserTaggingComponent, typeof i79.PrivilegeDisabledDirective, typeof i84.CubeGridDocumentsComponent, typeof i85.LongRunningTaskNotification, typeof i86.TaggedNotification, typeof i87.CommentedNotification, typeof i88.NudgeNotification, typeof i89.TextNotification, typeof i90.CubeAnomalyNotification, typeof i91.EscalatedNotification, typeof i92.LikedNotification, typeof i93.StateChangedNotification, typeof i94.UpcomingEventNotification, typeof i95.NoneComponent, typeof i96.ScheduleViewComponent, typeof i97.OptionsComponent, typeof i98.TraceViewComponent, typeof i99.ProgressButtonDirective, typeof i100.AttachmentsComponent, typeof i101.DocumentEventsComponent, typeof i102.TagsComponent, typeof i103.MapComponent, typeof i104.MaskComponent, typeof i105.SaveChangesDialog, typeof i106.FlowViewComponent, typeof i107.SubstitutionComponent, typeof i108.PopupComponent, typeof i109.AttachmentPreview, typeof i110.CommentsComponent, typeof i111.CommentComponent, typeof i112.EditCommentComponent, typeof i113.CommentLikesComponent, typeof i114.CommentEditsComponent, typeof i115.BrowseItemsComponent, typeof i116.BrowseFilterComponent, typeof i117.ExpandedItemComponent, typeof i118.ComposeFormComponent, typeof i119.CubeViewComponent, typeof i120.CubeFilterComponent, typeof i121.CubeAccumulationChartComponent, typeof i122.CubeChartComponent, typeof i123.CubePivotComponent, typeof i124.CubeSpreadsheetComponent, typeof i125.CubeGridComponent, typeof i126.ReportViewerComponent, typeof i127.TableViewComponent, typeof i128.ReportArgumentsComponent, typeof i129.DashboardComponent, typeof i130.WidgetItemComponent, typeof i131.CubeWidgetFilterComponent, typeof i132.CubeAccumAnalysisWidget, typeof i133.CubeAnalysisWidget, typeof i134.CubeChartAnalysisWidget, typeof i135.ActionsWidget, typeof i136.RecentsWidget, typeof i137.AskDialog, typeof i138.AboutDialog, typeof i139.ActionDialog, typeof i140.ImpersonateDialog, typeof i141.ConversationComponent, typeof i142.CubeMatrixPageComponent, typeof i143.VersionCompareComponent, typeof i144.ExploreDocumentComponent, typeof i145.TasksComponent, typeof i146.PendingResultsWidget, typeof i147.CompareDepartmentsWidget, typeof i148.CubeDocumentsComponent, typeof i149.CubeDocumentsWidget, typeof i150.PersonalScoreWidget, typeof i151.PersonalActivityWidget, typeof i152.PeersPerformanceWidget, typeof i153.UsagePivotComponent, typeof i154.UsageChartComponent, typeof i155.UsageReportArgs, typeof i156.EmojiHostComponent, typeof i157.TooltipDirective, typeof i157.TooltipComponent], [typeof i158.CommonModule, typeof i159.HttpClientModule, typeof i160.ReactiveFormsModule, typeof i161.FlexLayoutModule, typeof i162.RouterModule, typeof i163.PickerModule, typeof i164.SyncfusionGanttModule, typeof i165.SyncfusionScheduleModule, typeof i166.SyncfusionCircularGaugeModule, typeof i167.SyncfusionChartModule, typeof i164.SyncfusionGanttModule, typeof i168.SyncfusionGridModule, typeof i169.SyncfusionTextEditorModule, typeof i170.SyncfusionSpreadsheetModule, typeof i171.SyncfusionPivotModule, typeof i172.KanbanModule, typeof i173.SyncfusionDiagramModule, typeof i174.MaterialModule], [typeof i1.DateFormatPipe, typeof i2.CalendarPipe, typeof i3.DifferencePipe, typeof i4.DurationPipe, typeof i5.TimeAgoPipe, typeof i6.CheckboxComponent, typeof i7.CubeParallelComponent, typeof i8.CubeSumComponent, typeof i13.ExploreItemImplComponent, typeof i14.DocumentInfoComponent, typeof i15.DocumentViewsComponent, typeof i129.DashboardComponent, typeof i102.TagsComponent, typeof i22.QuickCommentComponent, typeof i174.MaterialModule, typeof i110.CommentsComponent, typeof i32.BrokenPage, typeof i139.ActionDialog, typeof i116.BrowseFilterComponent, typeof i120.CubeFilterComponent, typeof i96.ScheduleViewComponent, typeof i126.ReportViewerComponent, typeof i130.WidgetItemComponent, typeof i119.CubeViewComponent, typeof i72.ExploreItemsComponent, typeof i118.ComposeFormComponent, typeof i115.BrowseItemsComponent, typeof i76.NotificationsTableComponent, typeof i20.ActionPicker, typeof i141.ConversationComponent, typeof i31.StateDirective, typeof i21.ContactsComponent, typeof i70.CubeMatrixComponent, typeof i23.DurationFormatPipe, typeof i24.CombinationPicker, typeof i26.CombinationPool, typeof i34.TimePicker, typeof i157.TooltipDirective, typeof i29.DateRangePipe, typeof i68.NgxComponentOutlet, typeof i28.MatIconAnimate, typeof i41.AceInput, typeof i33.JoinPipe, typeof i35.TypeValuePipe, typeof i36.TypeSelect, typeof i37.TypeAutocomplete, typeof i44.StatePipe, typeof i45.ActionPipe, typeof i46.RolePipe, typeof i47.FormPipe, typeof i48.FilterPipe, typeof i48.ArraySortPipe, typeof i49.UserNamePipe, typeof i40.SanitizeHtmlPipe, typeof i38.TranslatePipe, typeof i39.IdentityName, typeof i43.AddressInput, typeof i65.AvatarComponent, typeof i128.ReportArgumentsComponent, typeof i32.BizDocApp, typeof i109.AttachmentPreview, typeof i79.PrivilegeHiddenDirective, typeof i79.PrivilegeDisabledDirective, typeof i73.CompareGroupDirective, typeof i73.CompareNameDirective, typeof i73.CompareContextDirective, typeof i98.TraceViewComponent, typeof i106.FlowViewComponent, typeof i64.AssignActionComponent, typeof i63.ReturnActionComponent, typeof i144.ExploreDocumentComponent, typeof i135.ActionsWidget, typeof i133.CubeAnalysisWidget, typeof i149.CubeDocumentsWidget, typeof i136.RecentsWidget, typeof i151.PersonalActivityWidget, typeof i147.CompareDepartmentsWidget, typeof i152.PeersPerformanceWidget, typeof i146.PendingResultsWidget, typeof i150.PersonalScoreWidget, typeof i131.CubeWidgetFilterComponent, typeof i148.CubeDocumentsComponent, typeof i84.CubeGridDocumentsComponent, typeof i145.TasksComponent, typeof i155.UsageReportArgs, typeof i154.UsageChartComponent, typeof i153.UsagePivotComponent, typeof i42.TimespanInput, typeof i143.VersionCompareComponent, typeof i69.LottieAnimation, typeof i121.CubeAccumulationChartComponent, typeof i122.CubeChartComponent, typeof i123.CubePivotComponent, typeof i124.CubeSpreadsheetComponent, typeof i125.CubeGridComponent]>;
181
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.DateFormatPipe, typeof i2.CalendarPipe, typeof i3.DifferencePipe, typeof i4.DurationPipe, typeof i5.TimeAgoPipe, typeof i6.CheckboxComponent, typeof i7.CubeParallelComponent, typeof i8.CubeSumComponent, typeof i9.CubeParallelViewComponent, typeof i10.CubeChartViewComponent, typeof i11.CubeExploreViewComponent, typeof i12.CubeDocumentSumComponent, typeof i13.ExploreItemImplComponent, typeof i14.DocumentInfoComponent, typeof i15.DocumentViewsComponent, typeof i16.ViewItemComponent, typeof i17.CubeDocumentMatrixComponent, typeof i18.CubeDocumentViewComponent, typeof i19.CubePivotViewComponent, typeof i20.ActionPicker, typeof i21.HtmlSimplePipe, typeof i22.QuickCommentComponent, typeof i23.DurationFormatPipe, typeof i24.CombinationPicker, typeof i25.CombinationPickerBody, typeof i26.CombinationPool, typeof i27.TimelineViewComponent, typeof i28.MatIconAnimate, typeof i29.DateRangePipe, typeof i29.AgoPipe, typeof i30.ColorPicker, typeof i31.StateDirective, typeof i32.BrokenPage, typeof i33.JoinPipe, typeof i34.TimePicker, typeof i35.TypeValuePipe, typeof i36.TypeSelect, typeof i37.TypeAutocomplete, typeof i38.TranslatePipe, typeof i39.IdentityName, typeof i40.SanitizeHtmlPipe, typeof i41.AceInput, typeof i42.TimespanInput, typeof i43.AddressInput, typeof i44.StatePipe, typeof i45.ActionPipe, typeof i46.RolePipe, typeof i47.FormPipe, typeof i48.FilterPipe, typeof i48.ArraySortPipe, typeof i49.UserNamePipe, typeof i50.LayoutComponent, typeof i51.HtmlField, typeof i52.NumericField, typeof i53.AutocompleteField, typeof i54.CheckField, typeof i55.DateField, typeof i56.DateRangeField, typeof i57.ExpressionField, typeof i58.InputField, typeof i59.SelectField, typeof i60.SwitchField, typeof i61.TextareaField, typeof i62.TimespanField, typeof i63.ReturnActionComponent, typeof i64.AssignActionComponent, typeof i65.AvatarComponent, typeof i66.PeopleComponent, typeof i67.EditInputComponent, typeof i68.NgxComponentOutlet, typeof i32.BizDocApp, typeof i69.LottieAnimation, typeof i21.ContactsComponent, typeof i70.CubeMatrixComponent, typeof i71.FilterTagsComponent, typeof i72.ExploreItemsComponent, typeof i73.CompareNameDirective, typeof i73.CompareGroupDirective, typeof i73.CompareContextDirective, typeof i74.GuideComponent, typeof i75.OutOfOfficeToast, typeof i76.NotificationsTableComponent, typeof i77.NotificationsFilterComponent, typeof i78.TaggingPipe, typeof i79.PrivilegeHiddenDirective, typeof i80.TaggingItemDirective, typeof i81.TaggingDirective, typeof i82.DocumentTaggingComponent, typeof i83.UserTaggingComponent, typeof i79.PrivilegeDisabledDirective, typeof i84.CubeGridDocumentsComponent, typeof i85.LongRunningTaskNotification, typeof i86.TaggedNotification, typeof i87.CommentedNotification, typeof i88.NudgeNotification, typeof i89.TextNotification, typeof i90.CubeAnomalyNotification, typeof i91.EscalatedNotification, typeof i92.LikedNotification, typeof i93.StateChangedNotification, typeof i94.UpcomingEventNotification, typeof i95.NoneComponent, typeof i96.ScheduleViewComponent, typeof i97.OptionsComponent, typeof i98.TraceViewComponent, typeof i99.ProgressButtonDirective, typeof i100.AttachmentsComponent, typeof i101.DocumentEventsComponent, typeof i102.TagsComponent, typeof i103.MapComponent, typeof i104.MaskComponent, typeof i105.SaveChangesDialog, typeof i106.FlowViewComponent, typeof i107.SubstitutionComponent, typeof i108.PopupComponent, typeof i109.AttachmentPreview, typeof i110.CommentsComponent, typeof i111.CommentComponent, typeof i112.EditCommentComponent, typeof i113.CommentLikesComponent, typeof i114.CommentEditsComponent, typeof i115.BrowseItemsComponent, typeof i116.BrowseFilterComponent, typeof i117.ExpandedItemComponent, typeof i118.ComposeFormComponent, typeof i119.CubeViewComponent, typeof i120.CubeFilterComponent, typeof i121.CubeAccumulationChartComponent, typeof i122.CubeChartComponent, typeof i123.CubePivotComponent, typeof i124.CubeSpreadsheetComponent, typeof i125.CubeGridComponent, typeof i126.ReportViewerComponent, typeof i127.TableViewComponent, typeof i128.ReportArgumentsComponent, typeof i129.DashboardComponent, typeof i130.WidgetItemComponent, typeof i131.CubeWidgetFilterComponent, typeof i132.CubeAccumAnalysisWidget, typeof i133.CubeAnalysisWidget, typeof i134.CubeChartAnalysisWidget, typeof i135.ActionsWidget, typeof i136.RecentsWidget, typeof i137.AskDialog, typeof i138.AboutDialog, typeof i139.ActionDialog, typeof i140.ImpersonateDialog, typeof i141.ConversationComponent, typeof i142.CubeMatrixPopupComponent, typeof i143.VersionCompareComponent, typeof i144.ExploreDocumentComponent, typeof i145.TasksComponent, typeof i146.PendingResultsWidget, typeof i147.CompareDepartmentsWidget, typeof i148.CubeDocumentsComponent, typeof i149.CubeDocumentsWidget, typeof i150.PersonalScoreWidget, typeof i151.PersonalActivityWidget, typeof i152.PeersPerformanceWidget, typeof i153.UsagePivotComponent, typeof i154.UsageChartComponent, typeof i155.UsageReportArgs, typeof i156.EmojiHostComponent, typeof i157.TooltipDirective, typeof i157.TooltipComponent], [typeof i158.CommonModule, typeof i159.HttpClientModule, typeof i160.ReactiveFormsModule, typeof i161.FlexLayoutModule, typeof i162.RouterModule, typeof i163.PickerModule, typeof i164.SyncfusionGanttModule, typeof i165.SyncfusionScheduleModule, typeof i166.SyncfusionCircularGaugeModule, typeof i167.SyncfusionChartModule, typeof i164.SyncfusionGanttModule, typeof i168.SyncfusionGridModule, typeof i169.SyncfusionTextEditorModule, typeof i170.SyncfusionSpreadsheetModule, typeof i171.SyncfusionPivotModule, typeof i172.KanbanModule, typeof i173.SyncfusionDiagramModule, typeof i174.MaterialModule], [typeof i1.DateFormatPipe, typeof i2.CalendarPipe, typeof i3.DifferencePipe, typeof i4.DurationPipe, typeof i5.TimeAgoPipe, typeof i6.CheckboxComponent, typeof i7.CubeParallelComponent, typeof i8.CubeSumComponent, typeof i13.ExploreItemImplComponent, typeof i14.DocumentInfoComponent, typeof i15.DocumentViewsComponent, typeof i129.DashboardComponent, typeof i102.TagsComponent, typeof i22.QuickCommentComponent, typeof i174.MaterialModule, typeof i110.CommentsComponent, typeof i32.BrokenPage, typeof i139.ActionDialog, typeof i116.BrowseFilterComponent, typeof i120.CubeFilterComponent, typeof i96.ScheduleViewComponent, typeof i126.ReportViewerComponent, typeof i130.WidgetItemComponent, typeof i119.CubeViewComponent, typeof i72.ExploreItemsComponent, typeof i118.ComposeFormComponent, typeof i115.BrowseItemsComponent, typeof i76.NotificationsTableComponent, typeof i20.ActionPicker, typeof i141.ConversationComponent, typeof i31.StateDirective, typeof i21.ContactsComponent, typeof i70.CubeMatrixComponent, typeof i23.DurationFormatPipe, typeof i24.CombinationPicker, typeof i26.CombinationPool, typeof i34.TimePicker, typeof i157.TooltipDirective, typeof i29.DateRangePipe, typeof i68.NgxComponentOutlet, typeof i28.MatIconAnimate, typeof i41.AceInput, typeof i33.JoinPipe, typeof i35.TypeValuePipe, typeof i36.TypeSelect, typeof i37.TypeAutocomplete, typeof i44.StatePipe, typeof i45.ActionPipe, typeof i46.RolePipe, typeof i47.FormPipe, typeof i48.FilterPipe, typeof i48.ArraySortPipe, typeof i49.UserNamePipe, typeof i40.SanitizeHtmlPipe, typeof i38.TranslatePipe, typeof i39.IdentityName, typeof i43.AddressInput, typeof i65.AvatarComponent, typeof i128.ReportArgumentsComponent, typeof i32.BizDocApp, typeof i109.AttachmentPreview, typeof i79.PrivilegeHiddenDirective, typeof i79.PrivilegeDisabledDirective, typeof i73.CompareGroupDirective, typeof i73.CompareNameDirective, typeof i73.CompareContextDirective, typeof i98.TraceViewComponent, typeof i106.FlowViewComponent, typeof i64.AssignActionComponent, typeof i63.ReturnActionComponent, typeof i144.ExploreDocumentComponent, typeof i135.ActionsWidget, typeof i133.CubeAnalysisWidget, typeof i149.CubeDocumentsWidget, typeof i136.RecentsWidget, typeof i151.PersonalActivityWidget, typeof i147.CompareDepartmentsWidget, typeof i152.PeersPerformanceWidget, typeof i146.PendingResultsWidget, typeof i150.PersonalScoreWidget, typeof i131.CubeWidgetFilterComponent, typeof i148.CubeDocumentsComponent, typeof i84.CubeGridDocumentsComponent, typeof i145.TasksComponent, typeof i155.UsageReportArgs, typeof i154.UsageChartComponent, typeof i153.UsagePivotComponent, typeof i42.TimespanInput, typeof i143.VersionCompareComponent, typeof i69.LottieAnimation, typeof i121.CubeAccumulationChartComponent, typeof i122.CubeChartComponent, typeof i123.CubePivotComponent, typeof i124.CubeSpreadsheetComponent, typeof i125.CubeGridComponent]>;
182
182
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
183
183
  }
@@ -6,7 +6,7 @@ import { RouterImpl } from "../../core/router";
6
6
  import { CubeService, Pattern, ScopeType } from "../../cube/cube.service";
7
7
  import { DocumentViewRef } from "../document-view-ref";
8
8
  import { CubeBase } from "./cube-base";
9
- import { CubeMatrixComponent } from "../../cube/matrix/table.component";
9
+ import { CubeMatrixComponent, SumSettings } from "../../cube/matrix/table.component";
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class CubeDocumentMatrixComponent extends CubeBase<Options> {
12
12
  private _router;
@@ -22,11 +22,7 @@ export declare class CubeDocumentMatrixComponent extends CubeBase<Options> {
22
22
  indices?: string | string[];
23
23
  xAxis: string;
24
24
  serie: string;
25
- sum?: {
26
- xAxis?: string | number;
27
- serie?: string | number;
28
- title: string;
29
- };
25
+ sum?: SumSettings | SumSettings[];
30
26
  constructor(viewRef: DocumentViewRef<Options>, _router: RouterImpl, service: CubeService, _ds: DatasourceService, session: SessionService);
31
27
  onViewBind(): void;
32
28
  explore(axes: AxesMap): void;
@@ -46,11 +42,7 @@ export declare class CubeDocumentMatrixComponent extends CubeBase<Options> {
46
42
  }
47
43
  export interface Options {
48
44
  filters: string[] | string;
49
- sum: {
50
- xAxis?: string | number;
51
- serie?: string | number;
52
- title: string;
53
- };
45
+ sum: SumSettings | SumSettings[];
54
46
  indices: string[] | string;
55
47
  aggregate: string[];
56
48
  xAxis: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.10.0-next.6",
3
+ "version": "1.10.0",
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",
@@ -11,31 +11,31 @@
11
11
  "dependencies": {
12
12
  "@ctrl/ngx-emoji-mart": "^6.1.1",
13
13
  "@microsoft/signalr": "^6.0.0",
14
- "@syncfusion/ej2": "^19.3.54",
15
- "@syncfusion/ej2-angular-charts": "^19.3.54",
14
+ "@syncfusion/ej2": "^19.3.57",
15
+ "@syncfusion/ej2-angular-charts": "^19.3.55",
16
16
  "@syncfusion/ej2-angular-circulargauge": "^19.3.53",
17
- "@syncfusion/ej2-angular-diagrams": "^19.3.53",
18
- "@syncfusion/ej2-angular-gantt": "^19.3.53",
19
- "@syncfusion/ej2-angular-grids": "^19.3.54",
20
- "@syncfusion/ej2-angular-kanban": "^19.3.53",
21
- "@syncfusion/ej2-angular-pivotview": "^19.3.53",
22
- "@syncfusion/ej2-angular-richtexteditor": "^19.3.53",
23
- "@syncfusion/ej2-angular-schedule": "^19.3.53",
24
- "@syncfusion/ej2-angular-spreadsheet": "^19.3.53",
25
- "@syncfusion/ej2-base": "^19.3.54",
17
+ "@syncfusion/ej2-angular-diagrams": "^19.3.56",
18
+ "@syncfusion/ej2-angular-gantt": "^19.3.57",
19
+ "@syncfusion/ej2-angular-grids": "^19.3.57",
20
+ "@syncfusion/ej2-angular-kanban": "^19.3.55",
21
+ "@syncfusion/ej2-angular-pivotview": "^19.3.57",
22
+ "@syncfusion/ej2-angular-richtexteditor": "^19.3.57",
23
+ "@syncfusion/ej2-angular-schedule": "^19.3.55",
24
+ "@syncfusion/ej2-angular-spreadsheet": "^19.3.57",
25
+ "@syncfusion/ej2-base": "^19.3.56",
26
26
  "@teamhive/lottie-player": "^1.0.0",
27
27
  "brace": "^0.11.1",
28
28
  "cookie": "^0.4.1",
29
- "firebase": "^9.5.0",
29
+ "firebase": "^9.6.0",
30
30
  "hammerjs": "~2",
31
31
  "lottie-web": "^5.8.1",
32
32
  "ngx-cookie-service": "13",
33
33
  "xlsx": "^0.17.4",
34
+ "dayjs": "^1.10.7",
34
35
  "zone.js": "^0.11.4",
35
36
  "tslib": "^2.3.0"
36
37
  },
37
38
  "peerDependencies": {
38
- "dayjs": "^1.10.7",
39
39
  "@angular/animations": "12 || 13",
40
40
  "@angular/cdk": "12 || 13",
41
41
  "@angular/common": "12 || 13",
package/public-api.d.ts CHANGED
@@ -103,7 +103,7 @@ export { AssignActionComponent } from './lib/compose/action/assign-action.compon
103
103
  export { ReturnActionComponent } from './lib/compose/action/return-action.component';
104
104
  export { ContactsComponent } from './lib/chat/contacts.component';
105
105
  export { ConversationComponent } from './lib/chat/conversation.component';
106
- export { CubeMatrixComponent } from './lib/cube/matrix/table.component';
106
+ export { CubeMatrixComponent, SumSettings, CalculateFn } from './lib/cube/matrix/table.component';
107
107
  export { VersionCompareComponent } from './lib/compose/version-compare/version-compare.component';
108
108
  export { TimespanInput } from './lib/core/controls/timespan.input';
109
109
  export { AceInput } from './lib/admin/core/ace.input';