@bizdoc/core 1.10.0-next.9 → 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 (32) hide show
  1. package/esm2020/lib/admin/form/workflow/workflow.component.mjs +2 -2
  2. package/esm2020/lib/browse/filter/filter.component.mjs +1 -1
  3. package/esm2020/lib/core/controls/select.input.mjs +2 -2
  4. package/esm2020/lib/core/models.mjs +1 -1
  5. package/esm2020/lib/core/slots/pane-ref.mjs +1 -1
  6. package/esm2020/lib/cube/accum/accum.component.mjs +2 -3
  7. package/esm2020/lib/cube/chart/chart.component.mjs +2 -3
  8. package/esm2020/lib/cube/cube-info.service.mjs +3 -3
  9. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +2 -2
  10. package/esm2020/lib/cube/matrix/matrix.component.mjs +1 -1
  11. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +1 -1
  12. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +4 -3
  13. package/esm2020/lib/cube/matrix/table.component.mjs +152 -103
  14. package/esm2020/lib/cube/sum/sum.component.mjs +3 -3
  15. package/esm2020/lib/dashboard/cube/accum-cube.widget.mjs +2 -3
  16. package/esm2020/lib/dashboard/cube/cube-chart.widget.mjs +2 -3
  17. package/esm2020/lib/modules/chart.module.mjs +4 -2
  18. package/esm2020/lib/shared.module.mjs +3 -1
  19. package/esm2020/lib/views/cube/matrix.component.mjs +1 -1
  20. package/esm2020/public-api.mjs +1 -1
  21. package/fesm2015/bizdoc-core.mjs +170 -122
  22. package/fesm2015/bizdoc-core.mjs.map +1 -1
  23. package/fesm2020/bizdoc-core.mjs +171 -123
  24. package/fesm2020/bizdoc-core.mjs.map +1 -1
  25. package/lib/browse/filter/filter.component.d.ts +1 -1
  26. package/lib/core/models.d.ts +1 -1
  27. package/lib/core/slots/pane-ref.d.ts +0 -1
  28. package/lib/cube/cube-info.service.d.ts +1 -0
  29. package/lib/cube/matrix/matrix.pane.component.d.ts +1 -0
  30. package/lib/cube/matrix/table.component.d.ts +21 -7
  31. package/package.json +1 -1
  32. 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;
@@ -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
  }
@@ -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;
@@ -22,6 +22,7 @@ export interface CubeDataOptions {
22
22
  /** */
23
23
  aggregate?: string[] | string;
24
24
  sum?: SumSettings | SumSettings[];
25
+ available?: string;
25
26
  }
26
27
  export interface ExploreOptions {
27
28
  cube?: string;
@@ -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,8 +12,11 @@ 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;
@@ -28,12 +31,12 @@ export declare class CubeMatrixComponent implements OnChanges {
28
31
  set interactive(value: boolean);
29
32
  readonly onExplore: EventEmitter<AxesMap>;
30
33
  readonly loadingChange: EventEmitter<boolean>;
31
- rows: KeyValue[];
32
- columns: KeyValue[];
34
+ rows: HeaderInfo[];
35
+ columns: HeaderInfo[];
33
36
  indices: CubeIndex[];
34
37
  data: {
35
38
  [series: string]: {
36
- [xAxis: string]: number;
39
+ [xAxis: string]: string;
37
40
  };
38
41
  };
39
42
  totals: {
@@ -42,22 +45,28 @@ export declare class CubeMatrixComponent implements OnChanges {
42
45
  cube: Cube;
43
46
  xAxis: CubeAxis;
44
47
  series: CubeAxis;
48
+ private _data;
45
49
  private _prepare;
46
50
  constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _ds: DatasourceService);
47
51
  ngOnChanges(changes: SimpleChanges): void;
48
- private _addsum;
52
+ private _addsumheaders;
49
53
  refresh(): void;
54
+ private _stringfy;
50
55
  private _totals;
51
56
  private _calculatesum;
52
- explore(x: string | number | string[] | number[], series: string | number | string[] | number[]): void;
57
+ private _format;
58
+ explore(column: HeaderInfo, row: HeaderInfo): void;
53
59
  move(x: any, y: any): void;
54
60
  static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
55
- 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>;
56
62
  }
57
63
  export declare type SumSettings = {
58
64
  value?: string | number;
59
65
  axis: 'series' | 'xAxis';
60
66
  title: string;
67
+ format?: 'percent' | 'currency' | 'number';
68
+ precision?: string;
69
+ accumulate?: boolean;
61
70
  calculate?: 'quarter' | 'year' | 'month' | CalculateFn;
62
71
  };
63
72
  export declare interface CalculateFn {
@@ -67,8 +76,13 @@ export declare interface CalculateFn {
67
76
  };
68
77
  }): number;
69
78
  }
70
- declare type KeyValue = {
79
+ declare type HeaderInfo = {
71
80
  key: string;
72
81
  value: any;
82
+ format?: 'percent' | 'currency' | 'number';
83
+ precision?: string;
84
+ accumulate?: boolean;
85
+ explorable?: boolean;
86
+ index?: number;
73
87
  };
74
88
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.10.0-next.9",
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",
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, SumSettings } 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';