@bizdoc/core 1.16.2 → 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 (61) hide show
  1. package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +60 -35
  2. package/esm2020/lib/admin/configuration-designer/designer.base.mjs +8 -24
  3. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +32 -23
  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 +3 -3
  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 +5 -5
  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 +10 -15
  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 -9
  17. package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +16 -16
  18. package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +5 -9
  19. package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +3 -3
  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 +10 -9
  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 -4
  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 +3 -3
  32. package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +4 -11
  33. package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +3 -10
  34. package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +11 -9
  35. package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +11 -9
  36. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +3 -3
  37. package/esm2020/lib/system.module.mjs +7 -8
  38. package/esm2020/public-api.mjs +1 -1
  39. package/fesm2015/bizdoc-core.mjs +187 -244
  40. package/fesm2015/bizdoc-core.mjs.map +1 -1
  41. package/fesm2020/bizdoc-core.mjs +184 -238
  42. package/fesm2020/bizdoc-core.mjs.map +1 -1
  43. package/lib/admin/configuration-designer/designer-element.component.d.ts +13 -10
  44. package/lib/admin/configuration-designer/designer.base.d.ts +15 -13
  45. package/lib/admin/configuration-designer/designer.component.d.ts +2 -1
  46. package/lib/admin/configuration-designer/elements/anomaly-rule.component.d.ts +2 -2
  47. package/lib/admin/configuration-designer/elements/box-form.component.d.ts +2 -2
  48. package/lib/admin/configuration-designer/elements/configuration-datasource.component.d.ts +2 -2
  49. package/lib/admin/configuration-designer/elements/folder.component.d.ts +0 -1
  50. package/lib/admin/configuration-designer/elements/form.component.d.ts +3 -1
  51. package/lib/admin/configuration-designer/elements/report.component.d.ts +3 -1
  52. package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +2 -2
  53. package/lib/admin/configuration-designer/elements/utility.component.d.ts +0 -1
  54. package/lib/admin/configuration-designer/elements/view.component.d.ts +0 -1
  55. package/lib/admin/configuration-designer/elements/widget.component.d.ts +5 -2
  56. package/lib/admin/configuration-designer/icon-picker.component.d.ts +2 -1
  57. package/lib/system.module.d.ts +10 -11
  58. package/package.json +1 -1
  59. package/public-api.d.ts +1 -1
  60. package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +0 -60
  61. 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,6 +1,6 @@
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";
@@ -13,7 +13,7 @@ export declare class DesignerRef<O = any> {
13
13
  get element(): ElementInfo;
14
14
  get options(): O;
15
15
  }
16
- export interface ElementInfo {
16
+ export interface ElementInfo<O = any> {
17
17
  family?: string;
18
18
  type?: string;
19
19
  name: string;
@@ -22,24 +22,26 @@ export interface ElementInfo {
22
22
  draft?: boolean;
23
23
  empty?: boolean;
24
24
  }
25
+ export interface DesignerElementComponent<T> {
26
+ model: ElementInfo<T>;
27
+ mode: DesignMode;
28
+ form: FormGroup;
29
+ }
30
+ export declare type DesignMode = 'edit' | 'widget';
25
31
  /** */
26
- export declare abstract class DesignerElementComponent<T = any> {
32
+ export declare abstract class DesignerElementComponentBase<T = any> implements DesignerElementComponent<T> {
27
33
  protected _fb: FormBuilder;
28
34
  protected _ref: DesignerRef;
29
- arguments: boolean;
35
+ mode: DesignMode;
30
36
  model: ElementModel<T>;
31
37
  get options(): T;
32
- editMode: boolean;
33
38
  abstract form: FormGroup;
34
39
  constructor(_fb: FormBuilder, _ref: DesignerRef);
35
- ngOnInit(): void;
36
40
  drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponent<any>, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponent<any>, never, never, {}, {}, never, never, false>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponentBase<any>, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponentBase<any>, never, never, {}, {}, never, never, false>;
39
43
  }
40
- export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponent<T> {
41
- setPrivilieges(obj: PrivilegesModel): void;
42
- setOptions(obj: T): void;
44
+ export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponentBase<T> {
43
45
  ngOnInit(): void;
44
46
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
45
47
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false>;
@@ -50,7 +52,7 @@ export declare abstract class DesignerTypeElementComponent<T = any> extends Desi
50
52
  */
51
53
  export declare function programName(name: string): string;
52
54
  /** */
53
- export declare abstract class DesignerCubeElementComponent<T = any> extends DesignerElementComponent<T> implements OnInit {
55
+ export declare abstract class DesignerCubeElementComponent<T = any> extends DesignerElementComponentBase<T> implements OnInit {
54
56
  readonly cubes: ElementInfo[];
55
57
  cube: ElementModel;
56
58
  secondaryAxes: CubeAxis[];
@@ -139,7 +141,7 @@ export interface ElementModel<T = any> {
139
141
  assignable?: boolean;
140
142
  position?: PositionPolicy;
141
143
  dataType?: string;
142
- steps: GuideStep[];
144
+ steps?: GuideStep[];
143
145
  currencyCode?: string;
144
146
  axes?: CubeAxis[];
145
147
  views?: CubeView[];
@@ -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): Promise<import("rxjs").Subscription>;
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 {};
@@ -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,9 +1,9 @@
1
1
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
2
  import { OnInit } from "@angular/core";
3
3
  import { FormArray, FormGroup } from "@angular/forms";
4
- import { DesignerElementComponent } from "../designer.base";
4
+ import { DesignerElementComponentBase } from "../designer.base";
5
5
  import * as i0 from "@angular/core";
6
- export declare class ConfigurationDatasourceDesignComponent extends DesignerElementComponent<Model> implements OnInit {
6
+ export declare class ConfigurationDatasourceDesignComponent extends DesignerElementComponentBase<Model> implements OnInit {
7
7
  readonly items: FormArray<import("@angular/forms").FormControl<{
8
8
  key: string;
9
9
  value: string;
@@ -4,7 +4,6 @@ export declare class FolderDesignComponent extends DesignerTypeElementComponent
4
4
  readonly form: import("@angular/forms").FormGroup<{
5
5
  icon: import("@angular/forms").FormControl<unknown>;
6
6
  }>;
7
- ngOnInit(): void;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FolderDesignComponent, never>;
9
8
  static ɵcmp: i0.ɵɵComponentDeclaration<FolderDesignComponent, "ng-component", never, {}, {}, never, never, false>;
10
9
  }
@@ -4,7 +4,7 @@ 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;
@@ -13,6 +13,7 @@ export declare class FormDesignComponent extends DesignerTypeElementComponent im
13
13
  readonly rules: FormArray<import("@angular/forms").FormControl<unknown>>;
14
14
  readonly form: FormGroup<{
15
15
  rules: FormArray<import("@angular/forms").FormControl<unknown>>;
16
+ guide: import("@angular/forms").FormControl<unknown>;
16
17
  icon: import("@angular/forms").FormControl<unknown>;
17
18
  }>;
18
19
  theme: 'Material' | 'MaterialDark';
@@ -23,6 +24,7 @@ export declare class FormDesignComponent extends DesignerTypeElementComponent im
23
24
  primary: string;
24
25
  readonly enableRtl: boolean;
25
26
  private readonly _destroy;
27
+ readonly guides: ElementInfo[];
26
28
  constructor(fb: FormBuilder, _router: PanesRouter, _service: SystemService, _session: SessionService, ref: DesignerRef);
27
29
  ngOnInit(): void;
28
30
  private _formrule;
@@ -1,9 +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 ReportDesignComponent extends DesignerTypeElementComponent {
4
4
  readonly form: import("@angular/forms").FormGroup<{
5
+ guide: import("@angular/forms").FormControl<unknown>;
5
6
  icon: import("@angular/forms").FormControl<unknown>;
6
7
  }>;
8
+ guides: ElementInfo[];
7
9
  ngOnInit(): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportDesignComponent, never>;
9
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ReportDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from "@angular/core";
2
- import { DesignerElementComponent, ElementInfo } 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
  }>;
@@ -4,7 +4,6 @@ export declare class UtilityDesignComponent extends DesignerTypeElementComponent
4
4
  readonly form: import("@angular/forms").FormGroup<{
5
5
  icon: import("@angular/forms").FormControl<unknown>;
6
6
  }>;
7
- ngOnInit(): void;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilityDesignComponent, never>;
9
8
  static ɵcmp: i0.ɵɵComponentDeclaration<UtilityDesignComponent, "ng-component", never, {}, {}, never, never, false>;
10
9
  }
@@ -2,7 +2,6 @@ import { DesignerTypeElementComponent } from "../designer.base";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ViewDesignComponent extends DesignerTypeElementComponent {
4
4
  form: import("@angular/forms").FormGroup<{}>;
5
- ngOnInit(): void;
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewDesignComponent, never>;
7
6
  static ɵcmp: i0.ɵɵComponentDeclaration<ViewDesignComponent, "ng-component", never, {}, {}, never, never, false>;
8
7
  }
@@ -1,7 +1,10 @@
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
- form: import("@angular/forms").FormGroup<{}>;
4
+ form: import("@angular/forms").FormGroup<{
5
+ guide: import("@angular/forms").FormControl<unknown>;
6
+ }>;
7
+ guides: ElementInfo[];
5
8
  ngOnInit(): void;
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetDesignComponent, never>;
7
10
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetDesignComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -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;
@@ -53,19 +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";
62
- import * as i60 from "@angular/cdk/scrolling";
63
- import * as i61 from "./modules/diagram.module";
64
- import * as i62 from "./modules/chart.module";
65
- import * as i63 from "./shared.module";
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
+ import * as i60 from "./modules/diagram.module";
63
+ import * as i61 from "./modules/chart.module";
64
+ import * as i62 from "./shared.module";
66
65
  export declare class SystemModule {
67
66
  static forChild(): ModuleWithProviders<SystemModule>;
68
67
  static ɵfac: i0.ɵɵFactoryDeclaration<SystemModule, never>;
69
- 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.CdkScrollableModule, typeof i61.SyncfusionDiagramModule, typeof i62.SyncfusionChartModule, typeof i63.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]>;
70
69
  static ɵinj: i0.ɵɵInjectorDeclaration<SystemModule>;
71
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.16.2",
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 { DesignerRef, DesignerInfo, ElementInfo, programName } 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';
@@ -1,60 +0,0 @@
1
- import { Component, EventEmitter, Inject, Input, Output, ViewChild } from "@angular/core";
2
- import { MatSelectionList } from "@angular/material/list";
3
- import { DesignerRef } from "./designer.base";
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/forms";
6
- import * as i2 from "../system.service";
7
- import * as i3 from "@angular/common";
8
- import * as i4 from "@angular/material/list";
9
- import * as i5 from "@angular/material/form-field";
10
- import * as i6 from "../core/ace.input";
11
- import * as i7 from "../../core/pipes/translate.pipe";
12
- import * as i8 from "./designer.base";
13
- export class PrivilegesDesignComponent {
14
- constructor(_fb, _service, _cd, _ref) {
15
- this._fb = _fb;
16
- this._service = _service;
17
- this._cd = _cd;
18
- this._ref = _ref;
19
- this.change = new EventEmitter();
20
- this.form = this._fb.group({
21
- rule: null,
22
- roles: this._fb.control([]),
23
- });
24
- }
25
- ngOnInit() {
26
- this._service.roles().subscribe(r => {
27
- this.roles = r.
28
- concat(this._ref.designer.roles.map((r) => ({
29
- name: r.name,
30
- title: r.title,
31
- dataType: r.dataType
32
- })));
33
- this._cd.detectChanges();
34
- this.list.options.forEach(o => this.model.roles?.indexOf(o.value) > -1 &&
35
- this.list.selectedOptions.select(o));
36
- });
37
- this.form.patchValue(this.model);
38
- this.form.valueChanges.subscribe(v => this.change.emit(v));
39
- }
40
- rolesChange(evt) {
41
- this.form.get('roles').setValue(this.list.selectedOptions.selected.map(o => o.value));
42
- }
43
- }
44
- PrivilegesDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PrivilegesDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SystemService }, { token: i0.ChangeDetectorRef }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component });
45
- PrivilegesDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: { model: "model" }, outputs: { change: "change" }, viewQueries: [{ propertyName: "list", first: true, predicate: MatSelectionList, descendants: true }], ngImport: i0, template: "<div autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n <mat-selection-list (selectionChange)=\"rolesChange($event)\" *ngIf=\"roles\">\r\n <mat-list-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-list-option>\r\n </mat-selection-list>\r\n <!--<mat-form-field>\r\n <mat-label>{{'Roles'|translate}}</mat-label>\r\n <mat-select formControlName=\"roles\" multiple>\r\n <mat-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>-->\r\n <mat-form-field>\r\n <bizdoc-ace-input [placeholder]=\"'Condition'|translate\" formControlName=\"rule\"></bizdoc-ace-input>\r\n <mat-hint> {{ 'ProgrammableExpression'|translate }}</mat-hint>\r\n </mat-form-field>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatSelectionList, selector: "mat-selection-list", inputs: ["disableRipple", "color", "compareWith", "disabled", "multiple"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: i4.MatListOption, selector: "mat-list-option", inputs: ["disableRipple", "checkboxPosition", "color", "value", "disabled", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i6.AceInput, selector: "bizdoc-ace-input", inputs: ["params", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PrivilegesDesignComponent, decorators: [{
47
- type: Component,
48
- args: [{ selector: 'bizdoc-privileges', template: "<div autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n <mat-selection-list (selectionChange)=\"rolesChange($event)\" *ngIf=\"roles\">\r\n <mat-list-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-list-option>\r\n </mat-selection-list>\r\n <!--<mat-form-field>\r\n <mat-label>{{'Roles'|translate}}</mat-label>\r\n <mat-select formControlName=\"roles\" multiple>\r\n <mat-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>-->\r\n <mat-form-field>\r\n <bizdoc-ace-input [placeholder]=\"'Condition'|translate\" formControlName=\"rule\"></bizdoc-ace-input>\r\n <mat-hint> {{ 'ProgrammableExpression'|translate }}</mat-hint>\r\n </mat-form-field>\r\n</div>\r\n" }]
49
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SystemService }, { type: i0.ChangeDetectorRef }, { type: i8.DesignerRef, decorators: [{
50
- type: Inject,
51
- args: [DesignerRef]
52
- }] }]; }, propDecorators: { model: [{
53
- type: Input
54
- }], change: [{
55
- type: Output
56
- }], list: [{
57
- type: ViewChild,
58
- args: [MatSelectionList]
59
- }] } });
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmlsZWdlcy5jb21wb25lbnQuanMiLCJzb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zJ3x0cmFuc2xhdGV9fTwvaDI+XHJcbiAgPG1hdC1zZWxlY3Rpb24tbGlzdCAoc2VsZWN0aW9uQ2hhbmdlKT1cInJvbGVzQ2hhbmdlKCRldmVudClcIiAqbmdJZj1cInJvbGVzXCI+XHJcbiAgICA8bWF0LWxpc3Qtb3B0aW9uICpuZ0Zvcj1cImxldCByIG9mIHJvbGVzXCIgW3ZhbHVlXT1cInIubmFtZVwiPnt7ci50aXRsZX19PC9tYXQtbGlzdC1vcHRpb24+XHJcbiAgPC9tYXQtc2VsZWN0aW9uLWxpc3Q+XHJcbiAgPCEtLTxtYXQtZm9ybS1maWVsZD5cclxuICAgIDxtYXQtbGFiZWw+e3snUm9sZXMnfHRyYW5zbGF0ZX19PC9tYXQtbGFiZWw+XHJcbiAgICA8bWF0LXNlbGVjdCBmb3JtQ29udHJvbE5hbWU9XCJyb2xlc1wiIG11bHRpcGxlPlxyXG4gICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgciBvZiByb2xlc1wiIFt2YWx1ZV09XCJyLm5hbWVcIj57e3IudGl0bGV9fTwvbWF0LW9wdGlvbj5cclxuICAgIDwvbWF0LXNlbGVjdD5cclxuICA8L21hdC1mb3JtLWZpZWxkPi0tPlxyXG4gIDxtYXQtZm9ybS1maWVsZD5cclxuICAgIDxiaXpkb2MtYWNlLWlucHV0IFtwbGFjZWhvbGRlcl09XCInQ29uZGl0aW9uJ3x0cmFuc2xhdGVcIiBmb3JtQ29udHJvbE5hbWU9XCJydWxlXCI+PC9iaXpkb2MtYWNlLWlucHV0PlxyXG4gICAgPG1hdC1oaW50PiB7eyAnUHJvZ3JhbW1hYmxlRXhwcmVzc2lvbid8dHJhbnNsYXRlIH19PC9tYXQtaGludD5cclxuICA8L21hdC1mb3JtLWZpZWxkPlxyXG48L2Rpdj5cclxuIl19
@@ -1,26 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter, OnInit } from "@angular/core";
2
- import { FormBuilder } from "@angular/forms";
3
- import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
4
- import { Role } from "../../core/models";
5
- import { SystemService } from "../system.service";
6
- import { DesignerRef, PrivilegesModel } from "./designer.base";
7
- import * as i0 from "@angular/core";
8
- export declare class PrivilegesDesignComponent implements OnInit {
9
- private _fb;
10
- private _service;
11
- private _cd;
12
- private _ref;
13
- model: PrivilegesModel;
14
- readonly change: EventEmitter<PrivilegesModel>;
15
- list: MatSelectionList;
16
- readonly form: import("@angular/forms").FormGroup<{
17
- rule: import("@angular/forms").FormControl<unknown>;
18
- roles: import("@angular/forms").FormControl<string[]>;
19
- }>;
20
- roles: Role[];
21
- constructor(_fb: FormBuilder, _service: SystemService, _cd: ChangeDetectorRef, _ref: DesignerRef);
22
- ngOnInit(): void;
23
- rolesChange(evt: MatSelectionListChange): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<PrivilegesDesignComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<PrivilegesDesignComponent, "bizdoc-privileges", never, { "model": "model"; }, { "change": "change"; }, never, never, false>;
26
- }