@acorex/components 22.2.5 → 22.2.7

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,187 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnDestroy } from '@angular/core';
3
- import { NXComponent } from '@acorex/cdk/common';
4
- import { Subject } from 'rxjs';
5
- import * as i1 from '@angular/common';
6
-
7
- interface AXFlowChart {
8
- nodes: AXFlowChartNodes[];
9
- edges: AXFlowChartEdges[];
10
- }
11
- interface AXFlowChartNodes {
12
- id: string;
13
- type: string;
14
- label: string;
15
- x: number;
16
- y: number;
17
- }
18
- interface AXFlowChartEdges {
19
- id: string;
20
- source: {
21
- id: string;
22
- anchor: string;
23
- };
24
- target: {
25
- id: string;
26
- anchor: string;
27
- };
28
- }
29
- interface HTMLElementWithDataset extends HTMLElement {
30
- dataset: {
31
- id?: string;
32
- anchor?: string;
33
- nodeId?: string;
34
- };
35
- }
36
- type AXNodeClickEvent = {
37
- target: HTMLElementWithDataset;
38
- event: MouseEvent;
39
- };
40
- type AXLineClickEvent = {
41
- target: AXFlowChartEdges;
42
- event: MouseEvent;
43
- };
44
-
45
- declare class AXFlowChartService {
46
- #private;
47
- private zone;
48
- private platformId;
49
- private document;
50
- initialFlowChartEdge: _angular_core.WritableSignal<any[]>;
51
- initialFlowChartNode: _angular_core.WritableSignal<any[]>;
52
- selectedNode: _angular_core.WritableSignal<AXFlowChartNodes>;
53
- selectedEdge: _angular_core.WritableSignal<AXFlowChartEdges>;
54
- readonly svgService: _angular_core.WritableSignal<any>;
55
- readonly canvasService: _angular_core.WritableSignal<any>;
56
- readonly lineClick: Subject<AXLineClickEvent>;
57
- readonly lineDbClick: Subject<AXLineClickEvent>;
58
- readonly nodeClick: Subject<AXNodeClickEvent>;
59
- readonly nodeDbClick: Subject<AXNodeClickEvent>;
60
- readonly onEdgeUpdate: Subject<AXFlowChartEdges>;
61
- readonly onNodeUpdate: Subject<AXFlowChartNodes>;
62
- private nodesMap;
63
- private eventListeners;
64
- private anchorClickBuffer;
65
- private currentConnection;
66
- private draggingConnection;
67
- private tempLine;
68
- private addEventListener;
69
- private removeEventListeners;
70
- private setupNodeEventListeners;
71
- private setupAnchorEventListeners;
72
- private addAnchors;
73
- private makeDraggable;
74
- private positionAnchor;
75
- private getAnchorPoint;
76
- private startTempLine;
77
- private clearTempLine;
78
- private pushAndCreateEdgeData;
79
- drawEdges(edges?: AXFlowChartEdges[]): void;
80
- createLine(from: {
81
- x: number;
82
- y: number;
83
- }, to: {
84
- x: number;
85
- y: number;
86
- }, edge: AXFlowChartEdges): SVGLineElement;
87
- private finishConnection;
88
- removeEdge(edge: AXFlowChartEdges): void;
89
- createNode(nodes: {
90
- id: string;
91
- type: string;
92
- label: string;
93
- x: number;
94
- y: number;
95
- }[]): void;
96
- removeNode(nodeId: string): void;
97
- cleanup(): void;
98
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFlowChartService, never>;
99
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXFlowChartService>;
100
- }
101
-
102
- declare class AXFlowChartCreatorComponent extends NXComponent {
103
- service: AXFlowChartService;
104
- protected selectedShape: _angular_core.WritableSignal<string>;
105
- protected label: string;
106
- protected selectShapeHandler(shape: 'rectangle' | 'circle' | 'diamond'): void;
107
- protected createShapeHandler(): void;
108
- protected printChart(): void;
109
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFlowChartCreatorComponent, never>;
110
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFlowChartCreatorComponent, "ax-flow-chart-creator", never, {}, {}, never, never, true, never>;
111
- }
112
-
113
- declare class AXFlowChartRendererComponent extends NXComponent implements OnDestroy {
114
- #private;
115
- private canvas;
116
- private svg;
117
- private service;
118
- private document;
119
- private platformId;
120
- readonly onLineClick: _angular_core.OutputEmitterRef<AXLineClickEvent>;
121
- readonly onLineDbClick: _angular_core.OutputEmitterRef<AXLineClickEvent>;
122
- readonly onNodeClick: _angular_core.OutputEmitterRef<AXNodeClickEvent>;
123
- readonly onNodeDbClick: _angular_core.OutputEmitterRef<AXNodeClickEvent>;
124
- readonly onEdgeUpdate: _angular_core.OutputEmitterRef<AXFlowChartEdges>;
125
- readonly onNodeUpdate: _angular_core.OutputEmitterRef<AXFlowChartNodes>;
126
- private setupEventListeners;
127
- private initializeServices;
128
- ngOnDestroy(): void;
129
- private cleanup;
130
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFlowChartRendererComponent, never>;
131
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFlowChartRendererComponent, "ax-flow-chart-renderer", never, {}, { "onLineClick": "onLineClick"; "onLineDbClick": "onLineDbClick"; "onNodeClick": "onNodeClick"; "onNodeDbClick": "onNodeDbClick"; "onEdgeUpdate": "onEdgeUpdate"; "onNodeUpdate": "onNodeUpdate"; }, never, never, true, never>;
132
- }
133
-
134
- declare class AXFlowChartComponent extends NXComponent {
135
- #private;
136
- private flowChartService;
137
- initialFlowChartNode: _angular_core.InputSignal<AXFlowChartNodes[]>;
138
- initialFlowChartEdge: _angular_core.InputSignal<AXFlowChartEdges[]>;
139
- selectedNode: _angular_core.Signal<AXFlowChartNodes>;
140
- selectedEdge: _angular_core.Signal<AXFlowChartEdges>;
141
- handleKeyboardEvent(event: KeyboardEvent): void;
142
- /**
143
- * Draws edges on the flow chart.
144
- *
145
- * @param edges Array of edges to draw.
146
- * @returns void
147
- */
148
- drawEdges(edges: AXFlowChartEdges[]): void;
149
- /**
150
- * Removes a specific edge from the flow chart.
151
- *
152
- * @param edge The edge object to remove.
153
- * @returns void
154
- */
155
- removeEdge(edge: AXFlowChartEdges): void;
156
- /**
157
- * Creates one or more nodes on the flow chart.
158
- *
159
- * @param nodes Array of node definitions to create.
160
- * @returns void
161
- */
162
- createNode(nodes: {
163
- id: string;
164
- type: string;
165
- label: string;
166
- x: number;
167
- y: number;
168
- }[]): void;
169
- /**
170
- * Removes a node by its identifier.
171
- *
172
- * @param nodeId The unique id of the node to remove.
173
- * @returns void
174
- */
175
- removeNode(nodeId: string): void;
176
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFlowChartComponent, never>;
177
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFlowChartComponent, "ax-flow-chart", never, { "initialFlowChartNode": { "alias": "initialFlowChartNode"; "required": true; "isSignal": true; }; "initialFlowChartEdge": { "alias": "initialFlowChartEdge"; "required": true; "isSignal": true; }; }, {}, never, ["ax-header", "ax-flow-chart-renderer", "ax-footer"], true, never>;
178
- }
179
-
180
- declare class AXFlowChartModule {
181
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFlowChartModule, never>;
182
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXFlowChartModule, never, [typeof i1.CommonModule, typeof AXFlowChartRendererComponent, typeof AXFlowChartCreatorComponent, typeof AXFlowChartComponent], [typeof AXFlowChartRendererComponent, typeof AXFlowChartCreatorComponent, typeof AXFlowChartComponent]>;
183
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXFlowChartModule>;
184
- }
185
-
186
- export { AXFlowChartComponent, AXFlowChartCreatorComponent, AXFlowChartModule, AXFlowChartRendererComponent };
187
- export type { AXFlowChart, AXFlowChartEdges, AXFlowChartNodes, AXLineClickEvent, AXNodeClickEvent, HTMLElementWithDataset };
@@ -1,52 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import * as i1 from '@acorex/components/button-group';
3
- import { AXButtonGroupItemComponent } from '@acorex/components/button-group';
4
- import { AXDataSource, AXValueChangedEvent } from '@acorex/cdk/common';
5
- import * as i3 from '@acorex/components/select-box';
6
- import { AXSelectBoxComponent } from '@acorex/components/select-box';
7
- import * as i2 from '@acorex/components/decorators';
8
- import * as i4 from '@acorex/components/button';
9
- import * as i5 from '@acorex/components/text-box';
10
- import * as i6 from '@acorex/components/number-box';
11
- import * as i7 from '@acorex/components/datetime-box';
12
- import * as i8 from '@angular/common';
13
-
14
- declare class AXQueryBuilderComponent {
15
- #private;
16
- readonly columnData: _angular_core.InputSignal<any[]>;
17
- queryData: _angular_core.ModelSignal<any[]>;
18
- onValueChanged: _angular_core.OutputEmitterRef<any[]>;
19
- protected selectBoxRef: _angular_core.Signal<AXSelectBoxComponent>;
20
- protected selectedItem: _angular_core.WritableSignal<any>;
21
- ds: AXDataSource<unknown>;
22
- protected operators: {
23
- string: string[];
24
- boolean: string[];
25
- number: string[];
26
- date: string[];
27
- };
28
- protected conditionHandler(e: AXButtonGroupItemComponent, i: any): void;
29
- protected columnDataHandler(e: AXValueChangedEvent<any>, i: any): void;
30
- protected operatorDataHandler(e: any, i: any): void;
31
- private recursiveFind;
32
- private recursiveRemove;
33
- protected addRulesHandler(i: any): void;
34
- protected addGroupHandler(i: any): void;
35
- protected booleanValueHandler(e: any, i: any): void;
36
- protected stringValueHandler(e: any, i: any): void;
37
- protected numberValueHandler(e: any, i: any): void;
38
- protected dateValueHandler(e: any, i: any): void;
39
- protected removeGroupHandler(i: any): void;
40
- protected removeRulesHandler(i: any): void;
41
- protected trackById(_: number, item: any): number;
42
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXQueryBuilderComponent, never>;
43
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXQueryBuilderComponent, "ax-query-builder", never, { "columnData": { "alias": "columnData"; "required": true; "isSignal": true; }; "queryData": { "alias": "queryData"; "required": true; "isSignal": true; }; }, { "queryData": "queryDataChange"; "onValueChanged": "onValueChanged"; }, never, never, true, never>;
44
- }
45
-
46
- declare class AXQueryBuilderModule {
47
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXQueryBuilderModule, never>;
48
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXQueryBuilderModule, never, [typeof i1.AXButtonGroupModule, typeof i2.AXDecoratorModule, typeof i3.AXSelectBoxModule, typeof i4.AXButtonModule, typeof i5.AXTextBoxModule, typeof i6.AXNumberBoxModule, typeof i7.AXDateTimeBoxModule, typeof i8.CommonModule, typeof AXQueryBuilderComponent], [typeof AXQueryBuilderComponent]>;
49
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXQueryBuilderModule>;
50
- }
51
-
52
- export { AXQueryBuilderComponent, AXQueryBuilderModule };
@@ -1,129 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { AXValueChangedEvent } from '@acorex/cdk/common';
3
- import * as i1 from '@acorex/components/text-box';
4
- import * as i2 from '@acorex/components/decorators';
5
- import * as i3 from '@acorex/components/select-box';
6
- import * as i4 from '@acorex/components/tabs';
7
- import * as i5 from '@acorex/components/button';
8
- import * as i6 from '@acorex/components/text-area';
9
- import * as i7 from '@acorex/components/selection-list';
10
- import * as i8 from '@angular/forms';
11
-
12
- type Queries = {
13
- tempId?: string;
14
- [key: string]: string;
15
- };
16
- type HeadersFix = {
17
- Authorization: string;
18
- ContentType: string;
19
- };
20
- type HeadersDynamic = {
21
- tempId?: string;
22
- [key: string]: string;
23
- };
24
- type Headers = HeadersFix & HeadersDynamic;
25
- type AXRestApiOutput = {
26
- url: string;
27
- method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH';
28
- body: string;
29
- headers: Headers;
30
- queries: Queries[];
31
- };
32
-
33
- declare class AXRestApiGeneratorService {
34
- outPutJSON: i0.WritableSignal<AXRestApiOutput>;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRestApiGeneratorService, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<AXRestApiGeneratorService>;
37
- }
38
-
39
- declare class AXQueryParamsComponent {
40
- #private;
41
- protected service: AXRestApiGeneratorService;
42
- protected queryParamsArray: i0.WritableSignal<Queries[]>;
43
- protected addQueryParamsHandler(): void;
44
- protected removeQueryParamsHandler(id: string): void;
45
- protected queryParamsValueHandler(e: AXValueChangedEvent<any>, id: string): void;
46
- protected queryParamsKeyHandler(e: AXValueChangedEvent<any>, id: string): void;
47
- protected setInitialState(item: Queries, type: string): string;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<AXQueryParamsComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<AXQueryParamsComponent, "ax-query-params", never, {}, {}, never, never, true, never>;
50
- }
51
-
52
- declare class AXRequestBodyComponent {
53
- #private;
54
- protected service: AXRestApiGeneratorService;
55
- protected value: i0.WritableSignal<any>;
56
- protected selectedItem: i0.WritableSignal<{
57
- id: any;
58
- text: string;
59
- placeHolder: string;
60
- }>;
61
- protected items: {
62
- id: number;
63
- text: string;
64
- placeHolder: string;
65
- }[];
66
- protected bodyReqHandler(e: AXValueChangedEvent<any>): void;
67
- protected bodyTextHandler(e: AXValueChangedEvent<any>): void;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRequestBodyComponent, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRequestBodyComponent, "ax-request-body", never, {}, {}, never, never, true, never>;
70
- }
71
-
72
- declare class AXRequestHeadersComponent {
73
- #private;
74
- protected service: AXRestApiGeneratorService;
75
- protected headersArray: i0.WritableSignal<HeadersDynamic[]>;
76
- protected addHeadersHandler(): void;
77
- protected removeHeadersHandler(id: string): void;
78
- protected headersValueHandler(e: AXValueChangedEvent<any>, id: string): void;
79
- protected headersKeyHandler(e: AXValueChangedEvent<any>, id: string): void;
80
- protected setInitialState(item: HeadersDynamic, type: string): string;
81
- protected filterUnnecessaryKey(): {
82
- [key: string]: string;
83
- Authorization: string;
84
- ContentType: string;
85
- tempId?: string;
86
- }[];
87
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRequestHeadersComponent, never>;
88
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRequestHeadersComponent, "ax-request-headers", never, {}, {}, never, never, true, never>;
89
- }
90
-
91
- declare class AXRestApiAuthComponent {
92
- #private;
93
- protected service: AXRestApiGeneratorService;
94
- protected value: i0.WritableSignal<any>;
95
- protected selectedItem: i0.WritableSignal<{
96
- id: any;
97
- text: string;
98
- placeHolder: string;
99
- }>;
100
- protected items: {
101
- id: number;
102
- text: string;
103
- placeHolder: string;
104
- }[];
105
- protected authTypeHandler(e: AXValueChangedEvent<any>): void;
106
- protected authInputHandler(e: AXValueChangedEvent<any>): void;
107
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRestApiAuthComponent, never>;
108
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRestApiAuthComponent, "ax-rest-api-auth", never, {}, {}, never, never, true, never>;
109
- }
110
-
111
- declare class AXRestApiGeneratorComponent {
112
- #private;
113
- readonly value: i0.InputSignal<AXRestApiOutput>;
114
- onValueChange: i0.OutputEmitterRef<AXRestApiOutput>;
115
- protected service: AXRestApiGeneratorService;
116
- protected urlHandler(e: AXValueChangedEvent<any>): void;
117
- protected methodHandler(e: AXValueChangedEvent<any>): void;
118
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRestApiGeneratorComponent, never>;
119
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRestApiGeneratorComponent, "ax-rest-api-generator", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "onValueChange": "onValueChange"; }, never, never, true, never>;
120
- }
121
-
122
- declare class AXRestApiGeneratorModule {
123
- static ɵfac: i0.ɵɵFactoryDeclaration<AXRestApiGeneratorModule, never>;
124
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXRestApiGeneratorModule, never, [typeof i1.AXTextBoxModule, typeof i2.AXDecoratorModule, typeof i3.AXSelectBoxModule, typeof i4.AXTabsModule, typeof i5.AXButtonModule, typeof i6.AXTextAreaModule, typeof i7.AXSelectionListModule, typeof i8.FormsModule, typeof AXRestApiGeneratorComponent, typeof AXQueryParamsComponent, typeof AXRequestBodyComponent, typeof AXRestApiAuthComponent, typeof AXRequestHeadersComponent], [typeof AXRestApiGeneratorComponent, typeof AXQueryParamsComponent, typeof AXRequestBodyComponent, typeof AXRestApiAuthComponent, typeof AXRequestHeadersComponent]>;
125
- static ɵinj: i0.ɵɵInjectorDeclaration<AXRestApiGeneratorModule>;
126
- }
127
-
128
- export { AXQueryParamsComponent, AXRequestBodyComponent, AXRequestHeadersComponent, AXRestApiAuthComponent, AXRestApiGeneratorComponent, AXRestApiGeneratorModule, AXRestApiGeneratorService };
129
- export type { AXRestApiOutput, Headers, HeadersDynamic, HeadersFix, Queries };