@acorex/layout 6.5.29 → 6.5.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/README.md +1 -1
  2. package/acorex-layout.d.ts +5 -5
  3. package/esm2020/acorex-layout.mjs +4 -4
  4. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +46 -46
  5. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -21
  6. package/esm2020/lib/widget-board/widget-board.component.mjs +450 -450
  7. package/esm2020/lib/widget-board/widget-board.module.mjs +111 -111
  8. package/esm2020/lib/widget-board/widget-config.component.mjs +82 -82
  9. package/esm2020/lib/widget-board/widget-host.component.mjs +295 -295
  10. package/esm2020/lib/widget-board/widget-save.component.mjs +79 -79
  11. package/esm2020/lib/widget-board/widget.class.mjs +127 -127
  12. package/esm2020/public-api.mjs +7 -7
  13. package/fesm2015/acorex-layout.mjs +1147 -1147
  14. package/fesm2015/acorex-layout.mjs.map +1 -1
  15. package/fesm2020/acorex-layout.mjs +1140 -1140
  16. package/fesm2020/acorex-layout.mjs.map +1 -1
  17. package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +19 -19
  18. package/lib/widget-board/editors/widget-size-editor/widget-size.module.d.ts +10 -10
  19. package/lib/widget-board/widget-board.component.d.ts +61 -61
  20. package/lib/widget-board/widget-board.module.d.ts +18 -18
  21. package/lib/widget-board/widget-config.component.d.ts +23 -23
  22. package/lib/widget-board/widget-host.component.d.ts +52 -52
  23. package/lib/widget-board/widget-save.component.d.ts +19 -19
  24. package/lib/widget-board/widget.class.d.ts +58 -58
  25. package/package.json +1 -1
  26. package/public-api.d.ts +6 -6
@@ -1,61 +1,61 @@
1
- import { OnInit, ElementRef, NgZone, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { AXWidgetConfig, AXWidgetConfigChanged, AXWidgetBoardConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';
3
- import { AXWidgetHostComponent } from './widget-host.component';
4
- import * as i0 from "@angular/core";
5
- export declare class AXWidgetBoardComponent implements OnInit {
6
- private ref;
7
- private zone;
8
- private cdr;
9
- private container;
10
- private widgetHosts;
11
- widgets: AXWidgetConfig[];
12
- galleryItems: AXWidgetConfig[];
13
- tileSize: number;
14
- gapSize: number;
15
- readonly: boolean;
16
- private newWidget;
17
- rtl: boolean;
18
- private _isInEditing;
19
- isInEditing(): boolean;
20
- private isDragging;
21
- private dragItem;
22
- provideValue: (e: any) => any;
23
- private readonly DATA_COL;
24
- private readonly DATA_ROW;
25
- private readonly DATA_SIZE_X;
26
- private readonly DATA_SIZE_Y;
27
- private readonly DATA_OLD_COL;
28
- private readonly DATA_OLD_ROW;
29
- onConfigChanged: EventEmitter<AXWidgetBoardConfigChanged>;
30
- onWidgetSave: EventEmitter<AXWidgetConfigSavedEvent>;
31
- constructor(ref: ElementRef<HTMLDivElement>, zone: NgZone, cdr: ChangeDetectorRef);
32
- ngOnInit(): void;
33
- ngAfterViewInit(): void;
34
- private calcGridSize;
35
- toggleEdit(): void;
36
- private dragStart;
37
- removePositionData(): void;
38
- resetPositionData(): void;
39
- private setPosition;
40
- private drag;
41
- private dragEnd;
42
- private detectFirstEmptySlot;
43
- private detectBestPlacement;
44
- private addPlaceholder;
45
- private removePlaceholder;
46
- startEdit(): void;
47
- finishEdit(): void;
48
- addWidget(widget: AXWidgetConfig): void;
49
- handleOnRemove(w: AXWidgetHostComponent): void;
50
- handleOnSave(e: AXWidgetConfigSavedEvent): void;
51
- trackByFn(index: any, item: any): any;
52
- load(widgets: string | AXWidgetConfig[]): Promise<void>;
53
- clear(): void;
54
- save(): Promise<string>;
55
- refresh(): void;
56
- handleOnConfigChanged(e: AXWidgetConfigChanged): void;
57
- handleOnResizedChanged(e: AXWidgetConfigChanged): void;
58
- private emitConfigChanged;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetBoardComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetBoardComponent, "ax-widget-board", never, { "galleryItems": "galleryItems"; "tileSize": "tileSize"; "gapSize": "gapSize"; "readonly": "readonly"; "provideValue": "provideValue"; }, { "onConfigChanged": "onConfigChanged"; "onWidgetSave": "onWidgetSave"; }, never, never>;
61
- }
1
+ import { OnInit, ElementRef, NgZone, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { AXWidgetConfig, AXWidgetConfigChanged, AXWidgetBoardConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';
3
+ import { AXWidgetHostComponent } from './widget-host.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AXWidgetBoardComponent implements OnInit {
6
+ private ref;
7
+ private zone;
8
+ private cdr;
9
+ private container;
10
+ private widgetHosts;
11
+ widgets: AXWidgetConfig[];
12
+ galleryItems: AXWidgetConfig[];
13
+ tileSize: number;
14
+ gapSize: number;
15
+ readonly: boolean;
16
+ private newWidget;
17
+ rtl: boolean;
18
+ private _isInEditing;
19
+ isInEditing(): boolean;
20
+ private isDragging;
21
+ private dragItem;
22
+ provideValue: (e: any) => any;
23
+ private readonly DATA_COL;
24
+ private readonly DATA_ROW;
25
+ private readonly DATA_SIZE_X;
26
+ private readonly DATA_SIZE_Y;
27
+ private readonly DATA_OLD_COL;
28
+ private readonly DATA_OLD_ROW;
29
+ onConfigChanged: EventEmitter<AXWidgetBoardConfigChanged>;
30
+ onWidgetSave: EventEmitter<AXWidgetConfigSavedEvent>;
31
+ constructor(ref: ElementRef<HTMLDivElement>, zone: NgZone, cdr: ChangeDetectorRef);
32
+ ngOnInit(): void;
33
+ ngAfterViewInit(): void;
34
+ private calcGridSize;
35
+ toggleEdit(): void;
36
+ private dragStart;
37
+ removePositionData(): void;
38
+ resetPositionData(): void;
39
+ private setPosition;
40
+ private drag;
41
+ private dragEnd;
42
+ private detectFirstEmptySlot;
43
+ private detectBestPlacement;
44
+ private addPlaceholder;
45
+ private removePlaceholder;
46
+ startEdit(): void;
47
+ finishEdit(): void;
48
+ addWidget(widget: AXWidgetConfig): void;
49
+ handleOnRemove(w: AXWidgetHostComponent): void;
50
+ handleOnSave(e: AXWidgetConfigSavedEvent): void;
51
+ trackByFn(index: any, item: any): any;
52
+ load(widgets: string | AXWidgetConfig[]): Promise<void>;
53
+ clear(): void;
54
+ save(): Promise<string>;
55
+ refresh(): void;
56
+ handleOnConfigChanged(e: AXWidgetConfigChanged): void;
57
+ handleOnResizedChanged(e: AXWidgetConfigChanged): void;
58
+ private emitConfigChanged;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetBoardComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetBoardComponent, "ax-widget-board", never, { "galleryItems": "galleryItems"; "tileSize": "tileSize"; "gapSize": "gapSize"; "readonly": "readonly"; "provideValue": "provideValue"; }, { "onConfigChanged": "onConfigChanged"; "onWidgetSave": "onWidgetSave"; }, never, never>;
61
+ }
@@ -1,18 +1,18 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./widget-board.component";
3
- import * as i2 from "./widget-host.component";
4
- import * as i3 from "./widget-config.component";
5
- import * as i4 from "./widget-save.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@acorex/components";
8
- import * as i7 from "@angular/router";
9
- import * as i8 from "@acorex/core";
10
- export declare class AXWidgetBoardModule {
11
- /**
12
- *
13
- */
14
- constructor();
15
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetBoardModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXWidgetBoardModule, [typeof i1.AXWidgetBoardComponent, typeof i2.AXWidgetHostComponent, typeof i3.AXWidgetConfigComponent, typeof i4.AXWidgetSaveComponent], [typeof i5.CommonModule, typeof i6.AXSearchBoxModule, typeof i6.AXLoadingModule, typeof i7.RouterModule, typeof i6.AXProppertyEditorModule, typeof i6.AXPageModule, typeof i6.AXToolbarModule, typeof i8.AXTranslatorModule, typeof i6.AXLabelModule, typeof i6.AXTextAreaModule, typeof i6.AXFieldsetModule, typeof i6.AXTextBoxModule, typeof i6.AXFormGroupModule, typeof i6.AXTabStripModule, typeof i6.AXCheckBoxModule, typeof i6.AXMenuModule, typeof i8.AXTranslatorModule, typeof i6.AXValidationModule, typeof i7.RouterModule], [typeof i1.AXWidgetBoardComponent, typeof i6.AXProppertyEditorModule]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<AXWidgetBoardModule>;
18
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./widget-board.component";
3
+ import * as i2 from "./widget-host.component";
4
+ import * as i3 from "./widget-config.component";
5
+ import * as i4 from "./widget-save.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@acorex/components";
8
+ import * as i7 from "@angular/router";
9
+ import * as i8 from "@acorex/core";
10
+ export declare class AXWidgetBoardModule {
11
+ /**
12
+ *
13
+ */
14
+ constructor();
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetBoardModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXWidgetBoardModule, [typeof i1.AXWidgetBoardComponent, typeof i2.AXWidgetHostComponent, typeof i3.AXWidgetConfigComponent, typeof i4.AXWidgetSaveComponent], [typeof i5.CommonModule, typeof i6.AXSearchBoxModule, typeof i6.AXLoadingModule, typeof i7.RouterModule, typeof i6.AXProppertyEditorModule, typeof i6.AXPageModule, typeof i6.AXToolbarModule, typeof i8.AXTranslatorModule, typeof i6.AXLabelModule, typeof i6.AXTextAreaModule, typeof i6.AXFieldsetModule, typeof i6.AXTextBoxModule, typeof i6.AXFormGroupModule, typeof i6.AXTabStripModule, typeof i6.AXCheckBoxModule, typeof i6.AXMenuModule, typeof i8.AXTranslatorModule, typeof i6.AXValidationModule, typeof i7.RouterModule], [typeof i1.AXWidgetBoardComponent, typeof i6.AXProppertyEditorModule]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXWidgetBoardModule>;
18
+ }
@@ -1,23 +1,23 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { AXPropertyConfig, AXBasePopupPageComponent, AXMenuItemClickEvent, AXProperyEditorValueChangeEvent, AXValidationFormComponent } from '@acorex/components';
3
- import { AXButtonItem } from '@acorex/core';
4
- import { AXWidgetComponent } from './widget.class';
5
- import * as i0 from "@angular/core";
6
- export declare class AXWidgetConfigComponent extends AXBasePopupPageComponent {
7
- private cdr;
8
- form: AXValidationFormComponent;
9
- constructor(cdr: ChangeDetectorRef);
10
- widget: AXWidgetComponent;
11
- props: AXPropertyConfig[];
12
- displayProps: AXPropertyConfig[];
13
- changes: AXPropertyConfig[];
14
- context: any;
15
- getFooterButtons(): AXButtonItem[];
16
- onFooterButtonClick(e: AXMenuItemClickEvent): void;
17
- handleValueChange(e: AXProperyEditorValueChangeEvent): void;
18
- ngOnInit(): void;
19
- private updateContext;
20
- identify(index: any, item: AXPropertyConfig): string;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetConfigComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetConfigComponent, "ng-component", never, {}, {}, never, never>;
23
- }
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { AXPropertyConfig, AXBasePopupPageComponent, AXMenuItemClickEvent, AXProperyEditorValueChangeEvent, AXValidationFormComponent } from '@acorex/components';
3
+ import { AXButtonItem } from '@acorex/core';
4
+ import { AXWidgetComponent } from './widget.class';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AXWidgetConfigComponent extends AXBasePopupPageComponent {
7
+ private cdr;
8
+ form: AXValidationFormComponent;
9
+ constructor(cdr: ChangeDetectorRef);
10
+ widget: AXWidgetComponent;
11
+ props: AXPropertyConfig[];
12
+ displayProps: AXPropertyConfig[];
13
+ changes: AXPropertyConfig[];
14
+ context: any;
15
+ getFooterButtons(): AXButtonItem[];
16
+ onFooterButtonClick(e: AXMenuItemClickEvent): void;
17
+ handleValueChange(e: AXProperyEditorValueChangeEvent): void;
18
+ ngOnInit(): void;
19
+ private updateContext;
20
+ identify(index: any, item: AXPropertyConfig): string;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetConfigComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetConfigComponent, "ng-component", never, {}, {}, never, never>;
23
+ }
@@ -1,52 +1,52 @@
1
- import { ElementRef, ComponentFactoryResolver, ViewContainerRef, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
- import { AXWidgetConfig, AXWidgetComponent, AXWidgetConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';
3
- import { AXRenderService } from '@acorex/core';
4
- import { AXPopupService, AXLoadingService } from '@acorex/components';
5
- import { AXMenuItem } from '@acorex/core';
6
- import * as i0 from "@angular/core";
7
- export declare class AXWidgetHostComponent {
8
- private ref;
9
- private componentFactoryResolver;
10
- private rendererService;
11
- private cdr;
12
- private popup;
13
- private loadingService;
14
- private _widget;
15
- get widget(): AXWidgetComponent;
16
- _hasProps: boolean;
17
- _hasMenu: boolean;
18
- provideValue: (e: any) => any;
19
- get element(): HTMLDivElement;
20
- configMenuItem: AXMenuItem[];
21
- onRemove: EventEmitter<AXWidgetHostComponent>;
22
- onConfigChanged: EventEmitter<AXWidgetConfigChanged>;
23
- onResized: EventEmitter<AXWidgetConfigChanged>;
24
- onSave: EventEmitter<AXWidgetConfigSavedEvent>;
25
- config: AXWidgetConfig;
26
- vc: ViewContainerRef;
27
- readonly: boolean;
28
- private componentRef;
29
- private _loadingId;
30
- private _isLoading;
31
- get isLoading(): boolean;
32
- set isLoading(v: boolean);
33
- get isConfigured(): boolean;
34
- constructor(ref: ElementRef<HTMLDivElement>, componentFactoryResolver: ComponentFactoryResolver, rendererService: AXRenderService, cdr: ChangeDetectorRef, popup: AXPopupService, loadingService: AXLoadingService);
35
- ngOnInit(): void;
36
- ngAfterViewInit(): Promise<void>;
37
- sizeX: number;
38
- sizeY: number;
39
- col: number;
40
- row: number;
41
- private setSizeFromOptions;
42
- remove(e: MouseEvent): boolean;
43
- handleConfig(e: MouseEvent): boolean;
44
- private openConfigDialog;
45
- private openSaveDialog;
46
- handleOptionClick(e: MouseEvent): boolean;
47
- ngOnDestroy(): void;
48
- private getMergedProps;
49
- private emitConfigChanged;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetHostComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetHostComponent, "ax-widget-host", never, { "provideValue": "provideValue"; "config": "config"; "readonly": "readonly"; "sizeX": "sizeX"; "sizeY": "sizeY"; "col": "col"; "row": "row"; }, { "onRemove": "onRemove"; "onConfigChanged": "onConfigChanged"; "onResized": "onResized"; "onSave": "onSave"; }, never, never>;
52
- }
1
+ import { ElementRef, ComponentFactoryResolver, ViewContainerRef, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
+ import { AXWidgetConfig, AXWidgetComponent, AXWidgetConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';
3
+ import { AXRenderService } from '@acorex/core';
4
+ import { AXPopupService, AXLoadingService } from '@acorex/components';
5
+ import { AXMenuItem } from '@acorex/core';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AXWidgetHostComponent {
8
+ private ref;
9
+ private componentFactoryResolver;
10
+ private rendererService;
11
+ private cdr;
12
+ private popup;
13
+ private loadingService;
14
+ private _widget;
15
+ get widget(): AXWidgetComponent;
16
+ _hasProps: boolean;
17
+ _hasMenu: boolean;
18
+ provideValue: (e: any) => any;
19
+ get element(): HTMLDivElement;
20
+ configMenuItem: AXMenuItem[];
21
+ onRemove: EventEmitter<AXWidgetHostComponent>;
22
+ onConfigChanged: EventEmitter<AXWidgetConfigChanged>;
23
+ onResized: EventEmitter<AXWidgetConfigChanged>;
24
+ onSave: EventEmitter<AXWidgetConfigSavedEvent>;
25
+ config: AXWidgetConfig;
26
+ vc: ViewContainerRef;
27
+ readonly: boolean;
28
+ private componentRef;
29
+ private _loadingId;
30
+ private _isLoading;
31
+ get isLoading(): boolean;
32
+ set isLoading(v: boolean);
33
+ get isConfigured(): boolean;
34
+ constructor(ref: ElementRef<HTMLDivElement>, componentFactoryResolver: ComponentFactoryResolver, rendererService: AXRenderService, cdr: ChangeDetectorRef, popup: AXPopupService, loadingService: AXLoadingService);
35
+ ngOnInit(): void;
36
+ ngAfterViewInit(): Promise<void>;
37
+ sizeX: number;
38
+ sizeY: number;
39
+ col: number;
40
+ row: number;
41
+ private setSizeFromOptions;
42
+ remove(e: MouseEvent): boolean;
43
+ handleConfig(e: MouseEvent): boolean;
44
+ private openConfigDialog;
45
+ private openSaveDialog;
46
+ handleOptionClick(e: MouseEvent): boolean;
47
+ ngOnDestroy(): void;
48
+ private getMergedProps;
49
+ private emitConfigChanged;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetHostComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetHostComponent, "ax-widget-host", never, { "provideValue": "provideValue"; "config": "config"; "readonly": "readonly"; "sizeX": "sizeX"; "sizeY": "sizeY"; "col": "col"; "row": "row"; }, { "onRemove": "onRemove"; "onConfigChanged": "onConfigChanged"; "onResized": "onResized"; "onSave": "onSave"; }, never, never>;
52
+ }
@@ -1,19 +1,19 @@
1
- import { AXWidgetConfig, AXWidgetSaveAsData } from './widget.class';
2
- import { AXButtonItem } from '@acorex/core';
3
- import { AXPropertyConfig, AXMenuItemClickEvent, AXBasePopupPageComponent } from '@acorex/components';
4
- import * as i0 from "@angular/core";
5
- export declare class AXWidgetSaveComponent extends AXBasePopupPageComponent {
6
- config: AXWidgetConfig;
7
- props: AXPropertyConfig[];
8
- displayProps: {
9
- name: string;
10
- title: string;
11
- allow: boolean;
12
- }[];
13
- data: AXWidgetSaveAsData;
14
- getFooterButtons(): AXButtonItem[];
15
- ngOnInit(): void;
16
- onFooterButtonClick(e: AXMenuItemClickEvent): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetSaveComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetSaveComponent, "ng-component", never, {}, {}, never, never>;
19
- }
1
+ import { AXWidgetConfig, AXWidgetSaveAsData } from './widget.class';
2
+ import { AXButtonItem } from '@acorex/core';
3
+ import { AXPropertyConfig, AXMenuItemClickEvent, AXBasePopupPageComponent } from '@acorex/components';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AXWidgetSaveComponent extends AXBasePopupPageComponent {
6
+ config: AXWidgetConfig;
7
+ props: AXPropertyConfig[];
8
+ displayProps: {
9
+ name: string;
10
+ title: string;
11
+ allow: boolean;
12
+ }[];
13
+ data: AXWidgetSaveAsData;
14
+ getFooterButtons(): AXButtonItem[];
15
+ ngOnInit(): void;
16
+ onFooterButtonClick(e: AXMenuItemClickEvent): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetSaveComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXWidgetSaveComponent, "ng-component", never, {}, {}, never, never>;
19
+ }
@@ -1,58 +1,58 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { AXValueEvent, AXBaseEvent, AXDataEvent } from '@acorex/components';
3
- import * as i0 from "@angular/core";
4
- export interface AXWidgetConfig {
5
- uniqueName: string;
6
- component: any;
7
- title: string;
8
- sizeX: number;
9
- sizeY: number;
10
- col?: number;
11
- row?: number;
12
- options?: any;
13
- props?: any;
14
- readonly?: boolean;
15
- }
16
- export interface AXWidgetConfigChanged extends AXBaseEvent {
17
- config: AXWidgetConfig;
18
- }
19
- export interface AXWidgetBoardConfigChanged extends AXBaseEvent {
20
- mode: 'clear' | 'add' | 'remove' | 'load' | 'config';
21
- }
22
- export interface AXWidgetConfigSavedEvent extends AXDataEvent<AXWidgetSaveAsData> {
23
- }
24
- export interface AXWidgetSaveAsData {
25
- title?: string;
26
- description?: string;
27
- icon?: string;
28
- group?: string;
29
- uniqueName: string;
30
- component: any;
31
- options?: any;
32
- props?: any;
33
- }
34
- export declare abstract class AXWidgetComponent {
35
- readonly uid: string;
36
- provideValue: (e: any) => any;
37
- onBusyChanged: EventEmitter<AXValueEvent<boolean>>;
38
- private _isBusy;
39
- get isBusy(): boolean;
40
- set isBusy(v: boolean);
41
- widgetSize: number[];
42
- refreshRate: any;
43
- getRefreshRate(): any;
44
- private intervalId;
45
- constructor();
46
- private startRefreshTimer;
47
- private stopRefreshTimer;
48
- private restartRefreshTimer;
49
- ngOnDestroy(): void;
50
- redraw(): void;
51
- refresh(): void;
52
- onConfiguredChanged: EventEmitter<void>;
53
- get isConfigured(): boolean;
54
- setValue(name: string, value?: any): void;
55
- getValue(name: string): Promise<any>;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetComponent, never>;
57
- static ɵprov: i0.ɵɵInjectableDeclaration<AXWidgetComponent>;
58
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AXValueEvent, AXBaseEvent, AXDataEvent } from '@acorex/components';
3
+ import * as i0 from "@angular/core";
4
+ export interface AXWidgetConfig {
5
+ uniqueName: string;
6
+ component: any;
7
+ title: string;
8
+ sizeX: number;
9
+ sizeY: number;
10
+ col?: number;
11
+ row?: number;
12
+ options?: any;
13
+ props?: any;
14
+ readonly?: boolean;
15
+ }
16
+ export interface AXWidgetConfigChanged extends AXBaseEvent {
17
+ config: AXWidgetConfig;
18
+ }
19
+ export interface AXWidgetBoardConfigChanged extends AXBaseEvent {
20
+ mode: 'clear' | 'add' | 'remove' | 'load' | 'config';
21
+ }
22
+ export interface AXWidgetConfigSavedEvent extends AXDataEvent<AXWidgetSaveAsData> {
23
+ }
24
+ export interface AXWidgetSaveAsData {
25
+ title?: string;
26
+ description?: string;
27
+ icon?: string;
28
+ group?: string;
29
+ uniqueName: string;
30
+ component: any;
31
+ options?: any;
32
+ props?: any;
33
+ }
34
+ export declare abstract class AXWidgetComponent {
35
+ readonly uid: string;
36
+ provideValue: (e: any) => any;
37
+ onBusyChanged: EventEmitter<AXValueEvent<boolean>>;
38
+ private _isBusy;
39
+ get isBusy(): boolean;
40
+ set isBusy(v: boolean);
41
+ widgetSize: number[];
42
+ refreshRate: any;
43
+ getRefreshRate(): any;
44
+ private intervalId;
45
+ constructor();
46
+ private startRefreshTimer;
47
+ private stopRefreshTimer;
48
+ private restartRefreshTimer;
49
+ ngOnDestroy(): void;
50
+ redraw(): void;
51
+ refresh(): void;
52
+ onConfiguredChanged: EventEmitter<void>;
53
+ get isConfigured(): boolean;
54
+ setValue(name: string, value?: any): void;
55
+ getValue(name: string): Promise<any>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXWidgetComponent, never>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXWidgetComponent>;
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/layout",
3
- "version": "6.5.29",
3
+ "version": "6.5.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.8",
6
6
  "@angular/core": "^13.3.8"
package/public-api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './lib/widget-board/widget.class';
2
- export * from './lib/widget-board/widget-board.component';
3
- export * from './lib/widget-board/widget-host.component';
4
- export * from './lib/widget-board/widget-board.module';
5
- export * from './lib/widget-board/editors/widget-size-editor/widget-size.editor';
6
- export * from './lib/widget-board/editors/widget-size-editor/widget-size.module';
1
+ export * from './lib/widget-board/widget.class';
2
+ export * from './lib/widget-board/widget-board.component';
3
+ export * from './lib/widget-board/widget-host.component';
4
+ export * from './lib/widget-board/widget-board.module';
5
+ export * from './lib/widget-board/editors/widget-size-editor/widget-size.editor';
6
+ export * from './lib/widget-board/editors/widget-size-editor/widget-size.module';