@guiexpert/angular-table 16.0.9 → 16.0.11

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.
@@ -1,157 +0,0 @@
1
- import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from "@angular/core";
2
- import { Subject } from "rxjs";
3
- import { EventListenerIf, GeModelChangeEvent, GeMouseEvent, TableApi, TableModelIf, TableOptionsIf } from '@guiexpert/table';
4
- import { DomService } from "./service/dom-service";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * TableComponent is a reusable GUI component that displays tabular data.
8
- * It provides various event outputs for user interactions such as mouse movement, dragging, clicking, etc.
9
- * It requires a TableModelIf instance to specify the data and TableOptionsIf instance to configure the appearance and behavior.
10
- *
11
- * @example
12
- * <guiexpert-table
13
- * [licenseKey]="licenseKey"
14
- * [tableModel]="tableModel"
15
- * [tableOptions]="tableOptions"
16
- * [debounceMouseClickDelay]="150"
17
- * (tableReady)="handleTableReady($event)"
18
- * (mouseMoved)="handleMouseMoved($event)"
19
- * (mouseDragging)="handleMouseDragging($event)"
20
- * (mouseDraggingEnded)="handleMouseDraggingEnded($event)"
21
- * (contextmenu)="handleContextMenu($event)"
22
- * (mouseClicked)="handleMouseClicked($event)"
23
- * (modelChanged)="handleModelChanged($event)"
24
- * (checkboxChanged)="handleCheckboxChanged($event)">
25
- * </guiexpert-table>
26
- *
27
- * @requires CommonModule from '@angular/common'
28
- * @requires DomService
29
- *
30
- * @remarks
31
- * This component is designed to be standalone and should not have any parent components wrapping it.
32
- * It uses OnPush change detection strategy and has ViewEncapsulation.None encapsulation.
33
- *
34
- * @publicApi
35
- */
36
- export declare class TableComponent implements OnInit, OnDestroy, EventListenerIf {
37
- private readonly renderer;
38
- private readonly elementRef;
39
- private readonly zone;
40
- private readonly domService;
41
- /**
42
- * Set the license key for the LicenseManager.
43
- *
44
- * @param {string} key - The license key to set.
45
- * @returns {void}
46
- */
47
- set licenseKey(key: string);
48
- /**
49
- * Represents a Subject variable used to notify subscribers when a table is ready.
50
- *
51
- * @type {Subject<TableApi>}
52
- */
53
- tableReady: Subject<TableApi>;
54
- /**
55
- * Represents the event emitter for the mouse moved event.
56
- *
57
- * @type {Subject<GeMouseEvent>}
58
- * @memberOf MyApplication
59
- */
60
- mouseMoved: Subject<GeMouseEvent>;
61
- /**
62
- * Represents a variable for tracking mouse dragging events.
63
- *
64
- * @type {Subject<GeMouseEvent>}
65
- */
66
- mouseDragging: Subject<GeMouseEvent>;
67
- /**
68
- * An instance of `Subject` that represents the event when mouse dragging has ended.
69
- *
70
- * @type {Subject<GeMouseEvent>}
71
- * @memberof [Your Object/Class/Module]
72
- */
73
- mouseDraggingEnded: Subject<GeMouseEvent>;
74
- /**
75
- * Represents the context menu event subject.
76
- *
77
- * @name contextmenu
78
- * @type {Subject<GeMouseEvent>}
79
- *
80
- * @description
81
- * The `contextmenu` variable is an instance of the `Subject` class from the 'rxjs' library.
82
- * It is used for broadcasting context menu events of type `GeMouseEvent`.
83
- * Other parts of the code can subscribe to this subject to be notified when a context menu event occurs.
84
- * The subject allows multiple observers to receive the event simultaneously.
85
- */
86
- contextmenu: Subject<GeMouseEvent>;
87
- /**
88
- * Represents a stream of mouse click events.
89
- *
90
- * @type {Subject<GeMouseEvent>}
91
- */
92
- mouseClicked: Subject<GeMouseEvent>;
93
- /**
94
- * A variable representing an observable subject for model change events.
95
- *
96
- * @type {Subject<GeModelChangeEvent>}
97
- */
98
- modelChanged: Subject<GeModelChangeEvent>;
99
- /**
100
- * Represents a Subject that emits an array of any type when a checkbox is changed.
101
- *
102
- * @type {Subject<any[]>}
103
- */
104
- checkboxChanged: Subject<any[]>;
105
- /**
106
- * Represents a table model.
107
- *
108
- * @typedef {object} TableModel
109
- * @property {any[]} [data] - An array containing the data for the table rows.
110
- * @property {string[]} [headers] - An array containing the table column headers.
111
- * @property {function} [updateData] - A function that updates the data in the table.
112
- * @property {function} [updateHeaders] - A function that updates the column headers in the table.
113
- * @property {function} [getData] - A function that retrieves the current data in the table.
114
- * @property {function} [getHeaders] - A function that retrieves the column headers in the table.
115
- */
116
- tableModel?: TableModelIf;
117
- /**
118
- * Represents the options for configuring a table.
119
- *
120
- * @typedef {Object} TableOptions
121
- * @property {string} [option1] - Optional property to configure option1.
122
- * @property {number} [option2] - Optional property to configure option2.
123
- * @property {boolean} [option3] - Optional property to configure option3.
124
- * @property {any[]} [option4] - Optional property to configure option4.
125
- *
126
- * @example
127
- * const tableOptions: TableOptions = new TableOptions();
128
- * tableOptions.option1 = 'value1';
129
- * tableOptions.option2 = 5;
130
- * tableOptions.option3 = true;
131
- * tableOptions.option4 = [1, 2, 3];
132
- */
133
- tableOptions: TableOptionsIf;
134
- /**
135
- * The debounceMouseClickDelay variable represents the delay in milliseconds for debouncing mouse clicks.
136
- *
137
- * @type {number}
138
- */
139
- debounceMouseClickDelay: number;
140
- private debounceMouseClick;
141
- private tableScope?;
142
- private alive;
143
- constructor(renderer: Renderer2, elementRef: ElementRef, zone: NgZone, domService: DomService);
144
- onContextmenu(evt: GeMouseEvent): void;
145
- onMouseMoved(evt: GeMouseEvent): void;
146
- onMouseClicked(evt: GeMouseEvent): void;
147
- onCheckboxChanged(arr: any[]): void;
148
- onModelChanged(evt: GeModelChangeEvent): void;
149
- ngOnInit(): void;
150
- ngOnDestroy(): void;
151
- onMouseDragging(evt: GeMouseEvent): void;
152
- onMouseDraggingEnd(evt: GeMouseEvent): void;
153
- private initModel;
154
- private init;
155
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
156
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "guiexpert-table", never, { "licenseKey": { "alias": "licenseKey"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "tableOptions": { "alias": "tableOptions"; "required": false; }; "debounceMouseClickDelay": { "alias": "debounceMouseClickDelay"; "required": false; }; }, { "tableReady": "tableReady"; "mouseMoved": "mouseMoved"; "mouseDragging": "mouseDragging"; "mouseDraggingEnded": "mouseDraggingEnded"; "contextmenu": "contextmenu"; "mouseClicked": "mouseClicked"; "modelChanged": "modelChanged"; "checkboxChanged": "checkboxChanged"; }, never, never, true, never>;
157
- }