@bizdoc/core 1.16.0 → 1.16.3

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 (78) hide show
  1. package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +60 -37
  2. package/esm2020/lib/admin/configuration-designer/designer.base.mjs +21 -23
  3. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +29 -19
  4. package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +3 -4
  5. package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +6 -6
  6. package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +4 -5
  7. package/esm2020/lib/admin/configuration-designer/elements/anomaly-rule.component.mjs +5 -5
  8. package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +5 -5
  9. package/esm2020/lib/admin/configuration-designer/elements/configuration-datasource.component.mjs +7 -9
  10. package/esm2020/lib/admin/configuration-designer/elements/cube-index-utility.component.mjs +3 -3
  11. package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +3 -3
  12. package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +47 -28
  13. package/esm2020/lib/admin/configuration-designer/elements/documents-report.component.mjs +3 -3
  14. package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +3 -3
  15. package/esm2020/lib/admin/configuration-designer/elements/explore-view.component.mjs +3 -3
  16. package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +3 -5
  17. package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +16 -15
  18. package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +5 -8
  19. package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +9 -13
  20. package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +3 -3
  21. package/esm2020/lib/admin/configuration-designer/elements/performance-widget.component.mjs +3 -3
  22. package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +3 -3
  23. package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +12 -7
  24. package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +5 -5
  25. package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +4 -4
  26. package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +3 -5
  27. package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +3 -3
  28. package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +3 -3
  29. package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +3 -3
  30. package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +4 -5
  31. package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +4 -4
  32. package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +4 -7
  33. package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +3 -6
  34. package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +13 -7
  35. package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +15 -12
  36. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +3 -3
  37. package/esm2020/lib/admin/form/designer/designer.component.mjs +3 -3
  38. package/esm2020/lib/core/datasource.service.mjs +1 -1
  39. package/esm2020/lib/core/layout/layout.component.mjs +2 -2
  40. package/esm2020/lib/core/translations.mjs +4 -1
  41. package/esm2020/lib/cube/matrix/table.component.mjs +3 -3
  42. package/esm2020/lib/system.module.mjs +7 -4
  43. package/esm2020/public-api.mjs +2 -2
  44. package/fesm2015/bizdoc-core.mjs +257 -254
  45. package/fesm2015/bizdoc-core.mjs.map +1 -1
  46. package/fesm2020/bizdoc-core.mjs +254 -248
  47. package/fesm2020/bizdoc-core.mjs.map +1 -1
  48. package/lib/admin/configuration-designer/designer-element.component.d.ts +13 -10
  49. package/lib/admin/configuration-designer/designer.base.d.ts +57 -25
  50. package/lib/admin/configuration-designer/designer.component.d.ts +2 -1
  51. package/lib/admin/configuration-designer/elements/analysis-view.component.d.ts +2 -1
  52. package/lib/admin/configuration-designer/elements/anomaly-rule.component.d.ts +2 -2
  53. package/lib/admin/configuration-designer/elements/box-form.component.d.ts +2 -2
  54. package/lib/admin/configuration-designer/elements/configuration-datasource.component.d.ts +7 -6
  55. package/lib/admin/configuration-designer/elements/cube.component.d.ts +3 -3
  56. package/lib/admin/configuration-designer/elements/documents-widget.component.d.ts +2 -2
  57. package/lib/admin/configuration-designer/elements/folder.component.d.ts +0 -1
  58. package/lib/admin/configuration-designer/elements/form.component.d.ts +3 -2
  59. package/lib/admin/configuration-designer/elements/guide.component.d.ts +0 -1
  60. package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +0 -2
  61. package/lib/admin/configuration-designer/elements/report.component.d.ts +4 -2
  62. package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +3 -3
  63. package/lib/admin/configuration-designer/elements/role.component.d.ts +2 -2
  64. package/lib/admin/configuration-designer/elements/rule.component.d.ts +0 -1
  65. package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +2 -2
  66. package/lib/admin/configuration-designer/elements/utility.component.d.ts +0 -1
  67. package/lib/admin/configuration-designer/elements/view.component.d.ts +0 -1
  68. package/lib/admin/configuration-designer/elements/widget.component.d.ts +6 -3
  69. package/lib/admin/configuration-designer/icon-picker.component.d.ts +2 -1
  70. package/lib/core/datasource.service.d.ts +3 -3
  71. package/lib/core/layout/layout.component.d.ts +0 -1
  72. package/lib/core/translations.d.ts +3 -0
  73. package/lib/cube/matrix/table.component.d.ts +2 -1
  74. package/lib/system.module.d.ts +7 -7
  75. package/package.json +1 -1
  76. package/public-api.d.ts +1 -1
  77. package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +0 -60
  78. package/lib/admin/configuration-designer/privileges.component.d.ts +0 -26
@@ -1,12 +1,12 @@
1
- import { EventEmitter, Injector, OnDestroy, OnInit, ViewContainerRef } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit, ViewContainerRef } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { BizDocComponentFactoryResolver } from "../../core/component-factory-resolver";
4
4
  import { PaneRef } from "../../core/slots/pane-ref";
5
- import { ElementModel, DesignerModel } from "./designer.base";
5
+ import { SystemService } from "../system.service";
6
+ import { ElementModel, DesignerModel, DesignMode } from "./designer.base";
6
7
  import * as i0 from "@angular/core";
7
8
  export interface ElemetData {
8
- editMode: boolean;
9
- isNew: boolean;
9
+ mode: DesignMode;
10
10
  template: string;
11
11
  model: ElementModel;
12
12
  designer: DesignerModel;
@@ -15,23 +15,26 @@ export declare class DesignerItemComponent implements OnInit, OnDestroy {
15
15
  private _injector;
16
16
  private _pane;
17
17
  private _fb;
18
+ private _service;
18
19
  private _cfr;
20
+ private _cd;
19
21
  form: FormGroup;
20
- editMode: boolean;
22
+ mode: DesignMode;
21
23
  template: string;
22
24
  model: ElementModel;
23
25
  designer: DesignerModel;
24
- change: EventEmitter<void>;
26
+ change: EventEmitter<ElementModel>;
25
27
  _container: ViewContainerRef;
26
28
  _econtainer: ViewContainerRef;
27
29
  valid: boolean;
28
30
  dirty: boolean;
29
- private _isNew;
30
- private _model;
31
+ roles: ElementModel[];
31
32
  private _destroy;
32
- constructor(_injector: Injector, _pane: PaneRef, _fb: FormBuilder, _cfr: BizDocComponentFactoryResolver);
33
+ constructor(_injector: Injector, _pane: PaneRef, _fb: FormBuilder, _service: SystemService, _cfr: BizDocComponentFactoryResolver, _cd: ChangeDetectorRef);
33
34
  save(): void;
34
35
  ngOnInit(): void;
36
+ setOptions(obj: any): void;
37
+ overrideResource(): void;
35
38
  assignargs(evt: any): void;
36
39
  /**
37
40
  * Ctrl-s save
@@ -39,6 +42,6 @@ export declare class DesignerItemComponent implements OnInit, OnDestroy {
39
42
  */
40
43
  handleKeyboardEvent(event: KeyboardEvent): void;
41
44
  ngOnDestroy(): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerItemComponent, [null, { optional: true; }, null, null]>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignerItemComponent, [null, { optional: true; }, null, null, null, null]>;
43
46
  static ɵcmp: i0.ɵɵComponentDeclaration<DesignerItemComponent, "bizdoc-designer-element", never, { "template": "template"; "model": "model"; "designer": "designer"; }, {}, never, never, false>;
44
47
  }
@@ -1,43 +1,59 @@
1
- import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
1
  import { OnInit } from "@angular/core";
3
2
  import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
3
+ import { CdkDragDrop } from "@angular/cdk/drag-drop";
4
4
  import { MatSelectChange } from "@angular/material/select";
5
5
  import { ScopeType } from "../../core/configuration";
6
6
  import { AxesMap, CubeAxis, CubeIndex, CubeView, FieldInfo, GuideStep, PositionPolicy } from "../../core/models";
7
7
  import * as i0 from "@angular/core";
8
- export declare class DesignerRef {
8
+ export declare class DesignerRef<O = any> {
9
9
  private _designer;
10
10
  private _element;
11
11
  constructor(_designer: DesignerModel, _element: ElementModel);
12
- get designer(): DesignerModel;
13
- get element(): ElementModel<any>;
12
+ get designer(): DesignerInfo;
13
+ get element(): ElementInfo;
14
+ get options(): O;
15
+ }
16
+ export interface ElementInfo<O = any> {
17
+ family?: string;
18
+ type?: string;
19
+ name: string;
20
+ title: string;
21
+ disabled?: boolean;
22
+ draft?: boolean;
23
+ empty?: boolean;
14
24
  }
15
- export declare abstract class DesignerElementComponent<T = any> {
25
+ export interface DesignerElementComponent<T> {
26
+ model: ElementInfo<T>;
27
+ mode: DesignMode;
28
+ form: FormGroup;
29
+ }
30
+ export declare type DesignMode = 'edit' | 'widget';
31
+ /** */
32
+ export declare abstract class DesignerElementComponentBase<T = any> implements DesignerElementComponent<T> {
16
33
  protected _fb: FormBuilder;
17
34
  protected _ref: DesignerRef;
18
- arguments: boolean;
35
+ mode: DesignMode;
19
36
  model: ElementModel<T>;
20
37
  get options(): T;
21
- editMode: boolean;
22
38
  abstract form: FormGroup;
23
39
  constructor(_fb: FormBuilder, _ref: DesignerRef);
24
- ngOnInit(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponent<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponent<any>, never, never, {}, {}, never, never, false>;
27
- }
28
- export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponent<T> {
29
- setPrivilieges(obj: any): void;
30
- disablefancyname: boolean;
31
- privilieges: boolean;
32
40
  drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponentBase<any>, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponentBase<any>, never, never, {}, {}, never, never, false>;
43
+ }
44
+ export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponentBase<T> {
33
45
  ngOnInit(): void;
34
46
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
35
47
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false>;
36
48
  }
49
+ /**
50
+ *
51
+ * @param name
52
+ */
37
53
  export declare function programName(name: string): string;
38
54
  /** */
39
- export declare abstract class DesignerCubeElementComponent<T = any> extends DesignerElementComponent<T> implements OnInit {
40
- readonly cubes: ElementModel[];
55
+ export declare abstract class DesignerCubeElementComponent<T = any> extends DesignerElementComponentBase<T> implements OnInit {
56
+ readonly cubes: ElementInfo[];
41
57
  cube: ElementModel;
42
58
  secondaryAxes: CubeAxis[];
43
59
  thirdAxes: CubeAxis[];
@@ -54,6 +70,22 @@ export declare abstract class DesignerCubeElementComponent<T = any> extends Desi
54
70
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerCubeElementComponent<any>, never>;
55
71
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerCubeElementComponent<any>, never, never, {}, {}, never, never, false>;
56
72
  }
73
+ export interface DesignerInfo {
74
+ types: ElementInfo[];
75
+ guides: ElementInfo[];
76
+ reports: ElementInfo[];
77
+ tReports: TemplateInfo[];
78
+ forms: ElementInfo[];
79
+ cubes: ElementInfo[];
80
+ utilities: ElementInfo[];
81
+ folders: ElementInfo[];
82
+ roles: ElementInfo[];
83
+ rules: ElementInfo[];
84
+ views: ElementInfo[];
85
+ widgets: ElementInfo[];
86
+ actions: ElementInfo[];
87
+ states: ElementInfo[];
88
+ }
57
89
  export interface DesignerModel {
58
90
  types: ElementModel<any>[];
59
91
  tTypes: TemplateInfo[];
@@ -90,15 +122,18 @@ export interface TemplateInfo {
90
122
  export interface ElementModel<T = any> {
91
123
  ordinal?: number;
92
124
  help?: string;
93
- family?: string;
94
125
  configurationFile?: string;
95
- type?: string;
96
126
  template?: string;
127
+ icon?: string;
128
+ resource?: boolean;
129
+ copyOf?: string;
130
+ family?: string;
131
+ type?: string;
97
132
  name: string;
98
133
  title: string;
99
- icon?: string;
100
134
  disabled?: boolean;
101
- resource?: boolean;
135
+ draft?: boolean;
136
+ empty?: boolean;
102
137
  options?: T;
103
138
  arguments?: FieldInfo[];
104
139
  privileges?: PrivilegesModel;
@@ -106,17 +141,14 @@ export interface ElementModel<T = any> {
106
141
  assignable?: boolean;
107
142
  position?: PositionPolicy;
108
143
  dataType?: string;
109
- steps: GuideStep[];
144
+ steps?: GuideStep[];
110
145
  currencyCode?: string;
111
146
  axes?: CubeAxis[];
112
147
  views?: CubeView[];
113
148
  indices?: CubeIndex[];
114
- copyOf?: string;
115
149
  scope?: ScopeType;
116
150
  color?: string;
117
151
  backgroundColor?: string;
118
- draft?: boolean;
119
- empty?: boolean;
120
152
  rules?: PermissionModel[];
121
153
  positions?: {
122
154
  [key: string]: string[];
@@ -32,7 +32,7 @@ export declare class ConfigurationDesignerComponent implements UtilityComponent,
32
32
  add(section: Section, menu: MatMenuTrigger, evt: Event): void;
33
33
  create(section: Section, template: TemplateInfo): void;
34
34
  copy(section: Section, element: ElementModel): void;
35
- edit(element: ElementModel, section: Section, isNew?: boolean): void;
35
+ edit(element: ElementModel, section: Section): Promise<unknown>;
36
36
  toggleDisabled(element: ElementModel): void;
37
37
  save(): Promise<void>;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationDesignerComponent, never>;
@@ -43,5 +43,6 @@ interface Section {
43
43
  type: string;
44
44
  elements: ElementModel[];
45
45
  templates: TemplateInfo[];
46
+ privileges?: boolean;
46
47
  }
47
48
  export {};
@@ -8,9 +8,10 @@ export declare class ChartViewDesignComponent extends DesignerCubeElementCompone
8
8
  xAxis: import("@angular/forms").FormControl<any>;
9
9
  series: import("@angular/forms").FormControl<unknown>;
10
10
  indices: import("@angular/forms").FormControl<unknown>;
11
- filters: import("@angular/forms").FormGroup<{}>;
12
11
  chartType: import("@angular/forms").FormControl<unknown>;
13
12
  indicesChartType: import("@angular/forms").FormControl<unknown>;
13
+ aggregate: import("@angular/forms").FormControl<unknown>;
14
+ filters: import("@angular/forms").FormGroup<{}>;
14
15
  scope: import("@angular/forms").FormControl<unknown>;
15
16
  }>;
16
17
  get isAccum(): boolean;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from "@angular/core";
2
- import { DesignerElementComponent } from "../designer.base";
2
+ import { DesignerElementComponentBase } from "../designer.base";
3
3
  import * as i0 from "@angular/core";
4
- export declare class AnomalyRuleDesignComponent extends DesignerElementComponent<Model> implements OnInit {
4
+ export declare class AnomalyRuleDesignComponent extends DesignerElementComponentBase<Model> implements OnInit {
5
5
  readonly form: import("@angular/forms").FormGroup<{}>;
6
6
  ngOnInit(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AnomalyRuleDesignComponent, never>;
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { BoxFormMetadata } from "../../form/designer/designer.component";
3
- import { DesignerElementComponent } from "../designer.base";
3
+ import { DesignerElementComponentBase } from "../designer.base";
4
4
  import * as i0 from "@angular/core";
5
- export declare class BoxFormDesignComponent extends DesignerElementComponent<BoxFormMetadata> implements OnInit {
5
+ export declare class BoxFormDesignComponent extends DesignerElementComponentBase<BoxFormMetadata> implements OnInit {
6
6
  readonly form: import("@angular/forms").FormGroup<{}>;
7
7
  ngOnInit(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BoxFormDesignComponent, never>;
@@ -1,20 +1,21 @@
1
1
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
2
  import { OnInit } from "@angular/core";
3
- import { DesignerElementComponent } from "../designer.base";
3
+ import { FormArray, FormGroup } from "@angular/forms";
4
+ import { DesignerElementComponentBase } from "../designer.base";
4
5
  import * as i0 from "@angular/core";
5
- export declare class ConfigurationDatasourceDesignComponent extends DesignerElementComponent<Model> implements OnInit {
6
- readonly items: import("@angular/forms").FormArray<import("@angular/forms").FormControl<{
6
+ export declare class ConfigurationDatasourceDesignComponent extends DesignerElementComponentBase<Model> implements OnInit {
7
+ readonly items: FormArray<import("@angular/forms").FormControl<{
7
8
  key: string;
8
9
  value: string;
9
10
  }>>;
10
- readonly form: import("@angular/forms").FormGroup<{
11
- items: import("@angular/forms").FormGroup<{}>;
11
+ readonly form: FormGroup<{
12
+ items: FormGroup<{}>;
12
13
  }>;
13
14
  ngOnInit(): void;
14
15
  private _tomap;
15
16
  add(): void;
16
17
  private _itemform;
17
- drop(event: CdkDragDrop<Model>): void;
18
+ drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationDatasourceDesignComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationDatasourceDesignComponent, "ng-component", never, {}, {}, never, never, false>;
20
21
  }
@@ -5,16 +5,16 @@ import { MatSelectChange } from "@angular/material/select";
5
5
  import { CubeAxis } from "../../../core/models";
6
6
  import { PromptService } from "../../../core/prompt.service";
7
7
  import { CubeInfo, SystemService } from "../../system.service";
8
- import { DesignerTypeElementComponent, DesignerRef, ElementModel } from "../designer.base";
8
+ import { DesignerTypeElementComponent, DesignerRef, ElementInfo } from "../designer.base";
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class CubeDesignComponent extends DesignerTypeElementComponent implements OnInit {
11
11
  private _service;
12
12
  private _ps;
13
- privilieges: boolean;
14
13
  readonly views: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
15
14
  readonly axes: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
16
15
  readonly indices: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
17
16
  readonly patterns: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
17
+ private _cubeAxesValidator;
18
18
  readonly form: FormGroup<{
19
19
  patterns: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
20
20
  views: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
@@ -26,7 +26,7 @@ export declare class CubeDesignComponent extends DesignerTypeElementComponent im
26
26
  secondaryAxes: CubeAxis[][];
27
27
  usage: CubeInfo;
28
28
  syncing: boolean;
29
- readonly types: ElementModel<any>[];
29
+ readonly types: ElementInfo[];
30
30
  constructor(fb: FormBuilder, _service: SystemService, _ps: PromptService, ref: DesignerRef);
31
31
  sync(): void;
32
32
  ngOnInit(): void;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { FormBuilder } from "@angular/forms";
3
3
  import { CubeDocumentsSettingsModel } from "../../../dashboard/cube/documents.widget";
4
- import { DesignerCubeElementComponent, DesignerRef, ElementModel } from "../designer.base";
4
+ import { DesignerCubeElementComponent, DesignerRef, ElementInfo } from "../designer.base";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DocumentsWidgetDesignComponent extends DesignerCubeElementComponent<CubeDocumentsSettingsModel> implements OnInit {
7
7
  readonly form: import("@angular/forms").FormGroup<{
@@ -12,7 +12,7 @@ export declare class DocumentsWidgetDesignComponent extends DesignerCubeElementC
12
12
  take: import("@angular/forms").FormControl<unknown>;
13
13
  pending: import("@angular/forms").FormControl<unknown>;
14
14
  }>;
15
- states: ElementModel<any>[];
15
+ states: ElementInfo[];
16
16
  constructor(fb: FormBuilder, ref: DesignerRef);
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsWidgetDesignComponent, never>;
18
18
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsWidgetDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,7 +1,6 @@
1
1
  import { DesignerTypeElementComponent } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FolderDesignComponent extends DesignerTypeElementComponent {
4
- privilieges: boolean;
5
4
  readonly form: import("@angular/forms").FormGroup<{
6
5
  icon: import("@angular/forms").FormControl<unknown>;
7
6
  }>;
@@ -4,16 +4,16 @@ import { AxisSettingsModel, SparklineMarkerSettingsModel, SparklineTooltipSettin
4
4
  import { SessionService } from "../../../core/session.service";
5
5
  import { PanesRouter } from "../../../core/slots/router.service";
6
6
  import { SystemService, RangeInfo } from "../../system.service";
7
- import { DesignerTypeElementComponent, DesignerRef } from "../designer.base";
7
+ import { DesignerTypeElementComponent, DesignerRef, ElementInfo } from "../designer.base";
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class FormDesignComponent extends DesignerTypeElementComponent implements OnInit {
10
10
  private _router;
11
11
  private _service;
12
12
  private _session;
13
13
  readonly rules: FormArray<import("@angular/forms").FormControl<unknown>>;
14
- privilieges: boolean;
15
14
  readonly form: FormGroup<{
16
15
  rules: FormArray<import("@angular/forms").FormControl<unknown>>;
16
+ guide: import("@angular/forms").FormControl<unknown>;
17
17
  icon: import("@angular/forms").FormControl<unknown>;
18
18
  }>;
19
19
  theme: 'Material' | 'MaterialDark';
@@ -24,6 +24,7 @@ export declare class FormDesignComponent extends DesignerTypeElementComponent im
24
24
  primary: string;
25
25
  readonly enableRtl: boolean;
26
26
  private readonly _destroy;
27
+ readonly guides: ElementInfo[];
27
28
  constructor(fb: FormBuilder, _router: PanesRouter, _service: SystemService, _session: SessionService, ref: DesignerRef);
28
29
  ngOnInit(): void;
29
30
  private _formrule;
@@ -2,7 +2,6 @@ import { OnInit } from "@angular/core";
2
2
  import { DesignerTypeElementComponent } from "../designer.base";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GuideDesignComponent extends DesignerTypeElementComponent implements OnInit {
5
- privilieges: boolean;
6
5
  readonly steps: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
7
6
  readonly form: import("@angular/forms").FormGroup<{
8
7
  steps: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
@@ -1,4 +1,3 @@
1
- import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
1
  import { OnInit } from "@angular/core";
3
2
  import { SumSettings } from "../../../cube/matrix/table.component";
4
3
  import { MatrixSettingsModel } from "../../../views/cube/matrix.component";
@@ -17,7 +16,6 @@ export declare class MatrixViewDesignComponent extends DesignerCubeElementCompon
17
16
  }>;
18
17
  ngOnInit(): void;
19
18
  add(sum?: SumSettings): void;
20
- drop(event: CdkDragDrop<SumSettings[]>): void;
21
19
  static ɵfac: i0.ɵɵFactoryDeclaration<MatrixViewDesignComponent, never>;
22
20
  static ɵcmp: i0.ɵɵComponentDeclaration<MatrixViewDesignComponent, "ng-component", never, {}, {}, never, never, false>;
23
21
  }
@@ -1,10 +1,12 @@
1
- import { DesignerTypeElementComponent } from "../designer.base";
1
+ import { DesignerTypeElementComponent, ElementInfo } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ReportDesignComponent extends DesignerTypeElementComponent {
4
- privilieges: boolean;
5
4
  readonly form: import("@angular/forms").FormGroup<{
5
+ guide: import("@angular/forms").FormControl<unknown>;
6
6
  icon: import("@angular/forms").FormControl<unknown>;
7
7
  }>;
8
+ guides: ElementInfo[];
9
+ ngOnInit(): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportDesignComponent, never>;
9
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ReportDesignComponent, "ng-component", never, {}, {}, never, never, false>;
10
12
  }
@@ -1,11 +1,11 @@
1
1
  import { OnInit } from "@angular/core";
2
- import { DesignerElementComponent, ElementModel } from "../designer.base";
2
+ import { DesignerElementComponentBase, ElementInfo } from "../designer.base";
3
3
  import * as i0 from "@angular/core";
4
- export declare class ReturnToRoleActionDesignComponent extends DesignerElementComponent<Model> implements OnInit {
4
+ export declare class ReturnToRoleActionDesignComponent extends DesignerElementComponentBase<Model> implements OnInit {
5
5
  readonly form: import("@angular/forms").FormGroup<{
6
6
  roleId: import("@angular/forms").FormControl<any>;
7
7
  }>;
8
- roles: ElementModel[];
8
+ roles: ElementInfo[];
9
9
  ngOnInit(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ReturnToRoleActionDesignComponent, never>;
11
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ReturnToRoleActionDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,10 +1,10 @@
1
- import { DesignerTypeElementComponent, ElementModel } from "../designer.base";
1
+ import { DesignerTypeElementComponent, ElementInfo } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class RoleDesignComponent extends DesignerTypeElementComponent {
4
4
  readonly form: import("@angular/forms").FormGroup<{
5
5
  dataType: import("@angular/forms").FormControl<any>;
6
6
  }>;
7
- types: ElementModel<any>[];
7
+ types: ElementInfo[];
8
8
  ngOnInit(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<RoleDesignComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<RoleDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -2,7 +2,6 @@ import { FormGroup } from "@angular/forms";
2
2
  import { DesignerTypeElementComponent } from "../designer.base";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class RuleDesignComponent extends DesignerTypeElementComponent {
5
- disablefancyname: boolean;
6
5
  form: FormGroup<{}>;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<RuleDesignComponent, never>;
8
7
  static ɵcmp: i0.ɵɵComponentDeclaration<RuleDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { TasksSettingsModel } from "../../../reports/tasks/tasks.component";
3
- import { DesignerCubeElementComponent, ElementModel } from "../designer.base";
3
+ import { DesignerCubeElementComponent, ElementInfo } from "../designer.base";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TasksReportDesignComponent extends DesignerCubeElementComponent<TasksSettingsModel> implements OnInit {
6
6
  readonly form: import("@angular/forms").FormGroup<{
@@ -9,7 +9,7 @@ export declare class TasksReportDesignComponent extends DesignerCubeElementCompo
9
9
  states: import("@angular/forms").FormControl<unknown>;
10
10
  scope: import("@angular/forms").FormControl<unknown>;
11
11
  }>;
12
- states: ElementModel<any>[];
12
+ states: ElementInfo[];
13
13
  ngOnInit(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TasksReportDesignComponent, never>;
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<TasksReportDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,7 +1,6 @@
1
1
  import { DesignerTypeElementComponent } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UtilityDesignComponent extends DesignerTypeElementComponent {
4
- privilieges: boolean;
5
4
  readonly form: import("@angular/forms").FormGroup<{
6
5
  icon: import("@angular/forms").FormControl<unknown>;
7
6
  }>;
@@ -1,7 +1,6 @@
1
1
  import { DesignerTypeElementComponent } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ViewDesignComponent extends DesignerTypeElementComponent {
4
- privilieges: boolean;
5
4
  form: import("@angular/forms").FormGroup<{}>;
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewDesignComponent, never>;
7
6
  static ɵcmp: i0.ɵɵComponentDeclaration<ViewDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,8 +1,11 @@
1
- import { DesignerTypeElementComponent } from "../designer.base";
1
+ import { DesignerTypeElementComponent, ElementInfo } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class WidgetDesignComponent extends DesignerTypeElementComponent {
4
- privilieges: boolean;
5
- form: import("@angular/forms").FormGroup<{}>;
4
+ form: import("@angular/forms").FormGroup<{
5
+ guide: import("@angular/forms").FormControl<unknown>;
6
+ }>;
7
+ guides: ElementInfo[];
8
+ ngOnInit(): void;
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetDesignComponent, never>;
7
10
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetDesignComponent, "ng-component", never, {}, {}, never, never, false>;
8
11
  }
@@ -16,6 +16,7 @@ export declare class IconPickerComponent implements MatFormFieldControl<string>,
16
16
  private static nextId;
17
17
  id: string;
18
18
  private _value;
19
+ items: IconInfo[];
19
20
  get value(): string;
20
21
  set value(val: string);
21
22
  get empty(): boolean;
@@ -32,7 +33,7 @@ export declare class IconPickerComponent implements MatFormFieldControl<string>,
32
33
  panel: TemplateRef<any>;
33
34
  readonly categories: CategoryInfo[];
34
35
  readonly filter: FormControl<any>;
35
- private static icons;
36
+ static icons: IconInfo[];
36
37
  private _overlayRef;
37
38
  private _onChange;
38
39
  private _onTouched;
@@ -33,9 +33,9 @@ export declare class DatasourceService {
33
33
  * @param type
34
34
  * @param params
35
35
  */
36
- all(type: string, queryParams?: string | number | ParamMap): Observable<{
37
- key: string;
38
- value: any;
36
+ all<K = any, V = any>(type: string, queryParams?: string | number | ParamMap): Observable<{
37
+ key: K;
38
+ value: V;
39
39
  }[]>;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceService, never>;
41
41
  static ɵprov: i0.ɵɵInjectableDeclaration<DatasourceService>;
@@ -16,7 +16,6 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
16
16
  containerRef: ViewContainerRef;
17
17
  private readonly _destroy;
18
18
  form: FormGroup;
19
- private _instance;
20
19
  private _children;
21
20
  /** layout ctor */
22
21
  constructor(_resolver: ComponentFactoryResolver, _zone: NgZone);
@@ -84,7 +84,10 @@ export declare const STRINGS: {
84
84
  ar: {};
85
85
  ru: {};
86
86
  en: {
87
+ XAxis: string;
88
+ Series: string;
87
89
  Steps: string;
90
+ Sum: string;
88
91
  ProgramPatternErr: string;
89
92
  Summary: string;
90
93
  SecurityLevel: string;
@@ -79,10 +79,11 @@ export declare type SumSettings = {
79
79
  format?: FormatType;
80
80
  precision?: string;
81
81
  explorable?: boolean;
82
+ place?: AxisPlace;
82
83
  calculate?: CalculateType;
83
84
  };
84
85
  export declare type FormatType = 'Percent' | 'Currency' | 'Number';
85
- export declare type CalculateType = 'Quarter' | 'Year' | 'Month' | 'Accumulate' | CalculateFn;
86
+ export declare type CalculateType = 'Quarter' | 'Year' | 'Month' | 'Sum' | CalculateFn;
86
87
  export declare interface CalculateFn {
87
88
  (value: string, data: {
88
89
  [series: string]: {
@@ -53,18 +53,18 @@ import * as i50 from "./admin/form/workflow/workflow.component";
53
53
  import * as i51 from "./admin/form/workflow/node.component";
54
54
  import * as i52 from "./admin/form/workflow/role-node.component";
55
55
  import * as i53 from "./admin/patterns/patterns.component";
56
- import * as i54 from "./admin/configuration-designer/privileges.component";
57
- import * as i55 from "@angular/common";
58
- import * as i56 from "@angular/common/http";
59
- import * as i57 from "@angular/forms";
60
- import * as i58 from "@angular/flex-layout";
61
- import * as i59 from "@angular/router";
56
+ import * as i54 from "@angular/common";
57
+ import * as i55 from "@angular/common/http";
58
+ import * as i56 from "@angular/forms";
59
+ import * as i57 from "@angular/flex-layout";
60
+ import * as i58 from "@angular/router";
61
+ import * as i59 from "@angular/cdk/scrolling";
62
62
  import * as i60 from "./modules/diagram.module";
63
63
  import * as i61 from "./modules/chart.module";
64
64
  import * as i62 from "./shared.module";
65
65
  export declare class SystemModule {
66
66
  static forChild(): ModuleWithProviders<SystemModule>;
67
67
  static ɵfac: i0.ɵɵFactoryDeclaration<SystemModule, never>;
68
- static ɵmod: i0.ɵɵNgModuleDeclaration<SystemModule, [typeof i1.IconPickerComponent, typeof i2.StateDesignComponent, typeof i3.RoleDesignComponent, typeof i4.GuideDesignComponent, typeof i5.RuleDesignComponent, typeof i6.ReportDesignComponent, typeof i7.FolderDesignComponent, typeof i8.UtilityDesignComponent, typeof i9.FormDesignComponent, typeof i10.WidgetDesignComponent, typeof i11.CubeDesignComponent, typeof i12.ActionDesignComponent, typeof i6.ReportDesignComponent, typeof i13.ViewDesignComponent, typeof i14.TypeDesignComponent, typeof i15.CubeIndexDesignComponent, typeof i16.ConfigurationDatasourceDesignComponent, typeof i17.ReturnToRoleActionDesignComponent, typeof i18.PivotViewDesignComponent, typeof i19.CubeViewDesignComponent, typeof i20.BoxFormDesignComponent, typeof i21.AnomalyRuleDesignComponent, typeof i22.UsageReportDesignComponent, typeof i23.DocumentsWidgetDesignComponent, typeof i24.PerformanceWidgetDesignComponent, typeof i25.DocumentsReportDesignComponent, typeof i26.TasksReportDesignComponent, typeof i27.ExploreViewDesignComponent, typeof i28.AnalysisWidgetDesignComponent, typeof i29.ParallelViewDesignComponent, typeof i30.SumViewDesignComponent, typeof i31.MatrixViewDesignComponent, typeof i32.ChartViewDesignComponent, typeof i33.ConfigurationDesignerComponent, typeof i34.FormDesignerComponent, typeof i35.DesignerItemComponent, typeof i36.PermissionsUtility, typeof i37.ManageCubeIndexUtility, typeof i38.ProfileSettingsDialog, typeof i39.UtilityWrapperComponent, typeof i40.UtilityPaneComponent, typeof i41.SearchInput, typeof i42.ColorPicker, typeof i43.ReassignDialog, typeof i44.SystemDiffComponent, typeof i45.DocumentTraceComponent, typeof i46.TraceElementComponent, typeof i47.ProfilerComponent, typeof i48.PositionsComponent, typeof i49.PositionsPopup, typeof i50.WorkflowComponent, typeof i51.WorkflowNodeComponent, typeof i52.RoleNodeComponent, typeof i53.PatternsComponent, typeof i54.PrivilegesDesignComponent], [typeof i55.CommonModule, typeof i56.HttpClientModule, typeof i57.ReactiveFormsModule, typeof i58.FlexLayoutModule, typeof i59.RouterModule, typeof i60.SyncfusionDiagramModule, typeof i61.SyncfusionChartModule, typeof i62.SharedModule], [typeof i36.PermissionsUtility, typeof i37.ManageCubeIndexUtility, typeof i39.UtilityWrapperComponent, typeof i40.UtilityPaneComponent, typeof i44.SystemDiffComponent, typeof i45.DocumentTraceComponent, typeof i47.ProfilerComponent, typeof i48.PositionsComponent, typeof i50.WorkflowComponent, typeof i52.RoleNodeComponent, typeof i53.PatternsComponent]>;
68
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SystemModule, [typeof i1.IconPickerComponent, typeof i2.StateDesignComponent, typeof i3.RoleDesignComponent, typeof i4.GuideDesignComponent, typeof i5.RuleDesignComponent, typeof i6.ReportDesignComponent, typeof i7.FolderDesignComponent, typeof i8.UtilityDesignComponent, typeof i9.FormDesignComponent, typeof i10.WidgetDesignComponent, typeof i11.CubeDesignComponent, typeof i12.ActionDesignComponent, typeof i6.ReportDesignComponent, typeof i13.ViewDesignComponent, typeof i14.TypeDesignComponent, typeof i15.CubeIndexDesignComponent, typeof i16.ConfigurationDatasourceDesignComponent, typeof i17.ReturnToRoleActionDesignComponent, typeof i18.PivotViewDesignComponent, typeof i19.CubeViewDesignComponent, typeof i20.BoxFormDesignComponent, typeof i21.AnomalyRuleDesignComponent, typeof i22.UsageReportDesignComponent, typeof i23.DocumentsWidgetDesignComponent, typeof i24.PerformanceWidgetDesignComponent, typeof i25.DocumentsReportDesignComponent, typeof i26.TasksReportDesignComponent, typeof i27.ExploreViewDesignComponent, typeof i28.AnalysisWidgetDesignComponent, typeof i29.ParallelViewDesignComponent, typeof i30.SumViewDesignComponent, typeof i31.MatrixViewDesignComponent, typeof i32.ChartViewDesignComponent, typeof i33.ConfigurationDesignerComponent, typeof i34.FormDesignerComponent, typeof i35.DesignerItemComponent, typeof i36.PermissionsUtility, typeof i37.ManageCubeIndexUtility, typeof i38.ProfileSettingsDialog, typeof i39.UtilityWrapperComponent, typeof i40.UtilityPaneComponent, typeof i41.SearchInput, typeof i42.ColorPicker, typeof i43.ReassignDialog, typeof i44.SystemDiffComponent, typeof i45.DocumentTraceComponent, typeof i46.TraceElementComponent, typeof i47.ProfilerComponent, typeof i48.PositionsComponent, typeof i49.PositionsPopup, typeof i50.WorkflowComponent, typeof i51.WorkflowNodeComponent, typeof i52.RoleNodeComponent, typeof i53.PatternsComponent], [typeof i54.CommonModule, typeof i55.HttpClientModule, typeof i56.ReactiveFormsModule, typeof i57.FlexLayoutModule, typeof i58.RouterModule, typeof i59.ScrollingModule, typeof i60.SyncfusionDiagramModule, typeof i61.SyncfusionChartModule, typeof i62.SharedModule], [typeof i36.PermissionsUtility, typeof i37.ManageCubeIndexUtility, typeof i39.UtilityWrapperComponent, typeof i40.UtilityPaneComponent, typeof i44.SystemDiffComponent, typeof i45.DocumentTraceComponent, typeof i47.ProfilerComponent, typeof i48.PositionsComponent, typeof i50.WorkflowComponent, typeof i52.RoleNodeComponent, typeof i53.PatternsComponent]>;
69
69
  static ɵinj: i0.ɵɵInjectorDeclaration<SystemModule>;
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.16.0",
3
+ "version": "1.16.3",
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
@@ -46,7 +46,7 @@ export { IdentityName } from './lib/core/identity/identity.component';
46
46
  export { ArraySortPipe, FilterPipe } from './lib/core/pipes/sort.pipe';
47
47
  export { TranslatePipe } from "./lib/core/pipes/translate.pipe";
48
48
  export { FormPipe } from './lib/core/pipes/form.pipe';
49
- export * from './lib/admin/configuration-designer/designer.base';
49
+ export { DesignerElementComponent, DesignMode, DesignerRef, DesignerInfo, ElementInfo, programName } from './lib/admin/configuration-designer/designer.base';
50
50
  export { RolePipe } from './lib/core/pipes/role.pipe';
51
51
  export { JoinPipe } from "./lib/core/pipes/join.pipe";
52
52
  export { SanitizeHtmlPipe } from './lib/core/pipes/sanitize-html.pipe';