@acorex/components 19.13.0-next.9 → 19.13.0

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 (126) hide show
  1. package/README.md +12 -14
  2. package/calendar/lib/calendar-range.component.d.ts +2 -6
  3. package/data-pager/lib/data-pager-base.component.d.ts +2 -2
  4. package/data-pager/lib/data-pager-info.component.d.ts +1 -1
  5. package/data-pager/lib/data-pager-input-selector.component.d.ts +1 -1
  6. package/data-pager/lib/data-pager-next-buttons.component.d.ts +1 -1
  7. package/data-pager/lib/data-pager-numeric-selector.component.d.ts +1 -1
  8. package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +1 -1
  9. package/data-pager/lib/data-pager-prev-buttons.component.d.ts +1 -1
  10. package/fesm2022/acorex-components-action-sheet.mjs +10 -10
  11. package/fesm2022/acorex-components-alert.mjs +7 -7
  12. package/fesm2022/acorex-components-audio-wave.mjs +7 -7
  13. package/fesm2022/acorex-components-autocomplete.mjs +7 -7
  14. package/fesm2022/acorex-components-avatar.mjs +10 -10
  15. package/fesm2022/acorex-components-badge.mjs +7 -7
  16. package/fesm2022/acorex-components-bottom-navigation.mjs +10 -10
  17. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  18. package/fesm2022/acorex-components-button-group.mjs +10 -10
  19. package/fesm2022/acorex-components-button.mjs +15 -15
  20. package/fesm2022/acorex-components-button.mjs.map +1 -1
  21. package/fesm2022/acorex-components-calendar.mjs +22 -20
  22. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  23. package/fesm2022/acorex-components-check-box.mjs +7 -7
  24. package/fesm2022/acorex-components-chips.mjs +7 -7
  25. package/fesm2022/acorex-components-circular-progress.mjs +7 -7
  26. package/fesm2022/acorex-components-collapse.mjs +10 -10
  27. package/fesm2022/acorex-components-color-box.mjs +7 -7
  28. package/fesm2022/acorex-components-color-palette.mjs +25 -25
  29. package/fesm2022/acorex-components-comment.mjs +28 -28
  30. package/fesm2022/acorex-components-common.mjs +91 -91
  31. package/fesm2022/acorex-components-conversation.mjs +49 -49
  32. package/fesm2022/acorex-components-cron-job.mjs +46 -46
  33. package/fesm2022/acorex-components-data-pager.mjs +45 -45
  34. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  35. package/fesm2022/acorex-components-data-table.mjs +37 -37
  36. package/fesm2022/acorex-components-datetime-box.mjs +7 -7
  37. package/fesm2022/acorex-components-datetime-input.mjs +9 -9
  38. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  39. package/fesm2022/acorex-components-datetime-picker.mjs +7 -7
  40. package/fesm2022/acorex-components-decorators.mjs +27 -27
  41. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  42. package/fesm2022/acorex-components-dialog.mjs +10 -10
  43. package/fesm2022/acorex-components-drawer.mjs +13 -13
  44. package/fesm2022/acorex-components-dropdown-button.mjs +7 -7
  45. package/fesm2022/acorex-components-dropdown.mjs +13 -13
  46. package/fesm2022/acorex-components-file-explorer.mjs +25 -25
  47. package/fesm2022/acorex-components-flow-chart.mjs +669 -0
  48. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -0
  49. package/fesm2022/acorex-components-form.mjs +29 -30
  50. package/fesm2022/acorex-components-form.mjs.map +1 -1
  51. package/fesm2022/acorex-components-grid-layout-builder.mjs +10 -10
  52. package/fesm2022/acorex-components-image-editor.mjs +34 -34
  53. package/fesm2022/acorex-components-image.mjs +7 -7
  54. package/fesm2022/acorex-components-json-viewer.mjs +7 -7
  55. package/fesm2022/acorex-components-kbd.mjs +10 -10
  56. package/fesm2022/acorex-components-label.mjs +7 -7
  57. package/fesm2022/acorex-components-list.mjs +7 -7
  58. package/fesm2022/acorex-components-loading-dialog.mjs +10 -10
  59. package/fesm2022/acorex-components-loading.mjs +16 -16
  60. package/fesm2022/acorex-components-map.mjs +10 -10
  61. package/fesm2022/acorex-components-media-viewer.mjs +34 -34
  62. package/fesm2022/acorex-components-menu.mjs +16 -16
  63. package/fesm2022/{acorex-components-modal-acorex-components-modal-CNCEtZYq.mjs → acorex-components-modal-acorex-components-modal-B4nBGqa3.mjs} +21 -21
  64. package/fesm2022/{acorex-components-modal-acorex-components-modal-CNCEtZYq.mjs.map → acorex-components-modal-acorex-components-modal-B4nBGqa3.mjs.map} +1 -1
  65. package/fesm2022/{acorex-components-modal-modal-content.component-Cs1IGBQX.mjs → acorex-components-modal-modal-content.component-oWerCvDI.mjs} +5 -5
  66. package/fesm2022/{acorex-components-modal-modal-content.component-Cs1IGBQX.mjs.map → acorex-components-modal-modal-content.component-oWerCvDI.mjs.map} +1 -1
  67. package/fesm2022/acorex-components-modal.mjs +1 -1
  68. package/fesm2022/acorex-components-navbar.mjs +7 -7
  69. package/fesm2022/acorex-components-notification.mjs +10 -10
  70. package/fesm2022/acorex-components-number-box.mjs +7 -7
  71. package/fesm2022/acorex-components-otp.mjs +7 -7
  72. package/fesm2022/acorex-components-page.mjs +10 -10
  73. package/fesm2022/acorex-components-paint.mjs +25 -25
  74. package/fesm2022/acorex-components-password-box.mjs +10 -10
  75. package/fesm2022/acorex-components-pdf-reader.mjs +7 -7
  76. package/fesm2022/acorex-components-phone-box.mjs +7 -7
  77. package/fesm2022/acorex-components-picker.mjs +13 -13
  78. package/fesm2022/acorex-components-popover.mjs +7 -7
  79. package/fesm2022/acorex-components-popup.mjs +11 -11
  80. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  81. package/fesm2022/acorex-components-progress-bar.mjs +7 -7
  82. package/fesm2022/acorex-components-qrcode.mjs +7 -7
  83. package/fesm2022/acorex-components-query-builder.mjs +7 -7
  84. package/fesm2022/acorex-components-radio.mjs +7 -7
  85. package/fesm2022/acorex-components-rail-navigation.mjs +13 -13
  86. package/fesm2022/acorex-components-range-slider.mjs +7 -7
  87. package/fesm2022/acorex-components-rate-picker.mjs +7 -7
  88. package/fesm2022/acorex-components-rest-api-generator.mjs +22 -22
  89. package/fesm2022/acorex-components-result.mjs +7 -7
  90. package/fesm2022/acorex-components-routing-progress.mjs +7 -7
  91. package/fesm2022/acorex-components-scheduler.mjs +31 -31
  92. package/fesm2022/acorex-components-scss.mjs +4 -4
  93. package/fesm2022/acorex-components-search-box.mjs +7 -7
  94. package/fesm2022/acorex-components-select-box.mjs +7 -7
  95. package/fesm2022/acorex-components-selection-list.mjs +7 -7
  96. package/fesm2022/acorex-components-side-menu.mjs +13 -13
  97. package/fesm2022/acorex-components-skeleton.mjs +7 -7
  98. package/fesm2022/acorex-components-slider.mjs +7 -7
  99. package/fesm2022/acorex-components-sliding-item.mjs +13 -13
  100. package/fesm2022/acorex-components-step-wizard.mjs +13 -13
  101. package/fesm2022/acorex-components-switch.mjs +10 -10
  102. package/fesm2022/acorex-components-tabs.mjs +13 -13
  103. package/fesm2022/acorex-components-tag-box.mjs +7 -7
  104. package/fesm2022/acorex-components-tag.mjs +7 -7
  105. package/fesm2022/acorex-components-text-area.mjs +7 -7
  106. package/fesm2022/acorex-components-text-box.mjs +10 -10
  107. package/fesm2022/acorex-components-time-line.mjs +10 -10
  108. package/fesm2022/acorex-components-toast.mjs +10 -10
  109. package/fesm2022/acorex-components-toolbar.mjs +7 -7
  110. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  111. package/fesm2022/acorex-components-tree-view.mjs +10 -10
  112. package/fesm2022/acorex-components-uploader.mjs +29 -29
  113. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  114. package/fesm2022/acorex-components-video-player.mjs +7 -7
  115. package/fesm2022/acorex-components-wysiwyg.mjs +31 -31
  116. package/flow-chart/README.md +3 -0
  117. package/flow-chart/index.d.ts +5 -0
  118. package/flow-chart/lib/flow-chart-creator/flow-chart-creator.component.d.ts +13 -0
  119. package/flow-chart/lib/flow-chart-renderer/flow-chart-renderer.component.d.ts +22 -0
  120. package/flow-chart/lib/flow-chart.component.d.ts +24 -0
  121. package/flow-chart/lib/flow-chart.module.d.ts +10 -0
  122. package/flow-chart/lib/flow-chart.service.d.ts +57 -0
  123. package/flow-chart/lib/flow-chart.type.d.ts +37 -0
  124. package/form/lib/form-field.component.d.ts +3 -2
  125. package/form/lib/validation-summary.component.d.ts +2 -4
  126. package/package.json +5 -1
@@ -0,0 +1,24 @@
1
+ import { NXComponent } from '@acorex/components/common';
2
+ import { AXFlowChartEdges, AXFlowChartNodes } from './flow-chart.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXFlowChartComponent extends NXComponent {
5
+ #private;
6
+ private flowChartService;
7
+ initialFlowChartNode: import("@angular/core").InputSignal<AXFlowChartNodes[]>;
8
+ initialFlowChartEdge: import("@angular/core").InputSignal<AXFlowChartEdges[]>;
9
+ selectedNode: import("@angular/core").Signal<AXFlowChartNodes>;
10
+ selectedEdge: import("@angular/core").Signal<AXFlowChartEdges>;
11
+ handleKeyboardEvent(event: KeyboardEvent): void;
12
+ drawEdges(edges: AXFlowChartEdges[]): void;
13
+ removeEdge(edge: AXFlowChartEdges): void;
14
+ createNode(nodes: {
15
+ id: string;
16
+ type: string;
17
+ label: string;
18
+ x: number;
19
+ y: number;
20
+ }[]): void;
21
+ removeNode(nodeId: string): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXFlowChartComponent, never>;
23
+ static ɵcmp: i0.ɵɵ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>;
24
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./flow-chart-renderer/flow-chart-renderer.component";
4
+ import * as i3 from "./flow-chart-creator/flow-chart-creator.component";
5
+ import * as i4 from "./flow-chart.component";
6
+ export declare class AXFlowChartModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXFlowChartModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXFlowChartModule, never, [typeof i1.CommonModule, typeof i2.AXFlowChartRendererComponent, typeof i3.AXFlowChartCreatorComponent, typeof i4.AXFlowChartComponent], [typeof i2.AXFlowChartRendererComponent, typeof i3.AXFlowChartCreatorComponent, typeof i4.AXFlowChartComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXFlowChartModule>;
10
+ }
@@ -0,0 +1,57 @@
1
+ import { Subject } from 'rxjs';
2
+ import { AXFlowChartEdges, AXFlowChartNodes, AXLineClickEvent, AXNodeClickEvent } from './flow-chart.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXFlowChartService {
5
+ #private;
6
+ private zone;
7
+ initialFlowChartEdge: import("@angular/core").WritableSignal<any[]>;
8
+ initialFlowChartNode: import("@angular/core").WritableSignal<any[]>;
9
+ selectedNode: import("@angular/core").WritableSignal<AXFlowChartNodes>;
10
+ selectedEdge: import("@angular/core").WritableSignal<AXFlowChartEdges>;
11
+ readonly svgService: import("@angular/core").WritableSignal<any>;
12
+ readonly canvasService: import("@angular/core").WritableSignal<any>;
13
+ readonly lineClick: Subject<AXLineClickEvent>;
14
+ readonly lineDbClick: Subject<AXLineClickEvent>;
15
+ readonly nodeClick: Subject<AXNodeClickEvent>;
16
+ readonly nodeDbClick: Subject<AXNodeClickEvent>;
17
+ readonly onEdgeUpdate: Subject<AXFlowChartEdges>;
18
+ readonly onNodeUpdate: Subject<AXFlowChartNodes>;
19
+ private nodesMap;
20
+ private eventListeners;
21
+ private anchorClickBuffer;
22
+ private currentConnection;
23
+ private draggingConnection;
24
+ private tempLine;
25
+ private addEventListener;
26
+ private removeEventListeners;
27
+ private setupNodeEventListeners;
28
+ private setupAnchorEventListeners;
29
+ private addAnchors;
30
+ private makeDraggable;
31
+ private positionAnchor;
32
+ private getAnchorPoint;
33
+ private startTempLine;
34
+ private clearTempLine;
35
+ private pushAndCreateEdgeData;
36
+ drawEdges(edges?: AXFlowChartEdges[]): void;
37
+ createLine(from: {
38
+ x: number;
39
+ y: number;
40
+ }, to: {
41
+ x: number;
42
+ y: number;
43
+ }, edge: AXFlowChartEdges): SVGLineElement;
44
+ private finishConnection;
45
+ removeEdge(edge: AXFlowChartEdges): void;
46
+ createNode(nodes: {
47
+ id: string;
48
+ type: string;
49
+ label: string;
50
+ x: number;
51
+ y: number;
52
+ }[]): void;
53
+ removeNode(nodeId: string): void;
54
+ cleanup(): void;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXFlowChartService, never>;
56
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXFlowChartService>;
57
+ }
@@ -0,0 +1,37 @@
1
+ export interface AXFlowChart {
2
+ nodes: AXFlowChartNodes[];
3
+ edges: AXFlowChartEdges[];
4
+ }
5
+ export interface AXFlowChartNodes {
6
+ id: string;
7
+ type: string;
8
+ label: string;
9
+ x: number;
10
+ y: number;
11
+ }
12
+ export interface AXFlowChartEdges {
13
+ id: string;
14
+ source: {
15
+ id: string;
16
+ anchor: string;
17
+ };
18
+ target: {
19
+ id: string;
20
+ anchor: string;
21
+ };
22
+ }
23
+ export interface HTMLElementWithDataset extends HTMLElement {
24
+ dataset: {
25
+ id?: string;
26
+ anchor?: string;
27
+ nodeId?: string;
28
+ };
29
+ }
30
+ export type AXNodeClickEvent = {
31
+ target: HTMLElementWithDataset;
32
+ event: MouseEvent;
33
+ };
34
+ export type AXLineClickEvent = {
35
+ target: AXFlowChartEdges;
36
+ event: MouseEvent;
37
+ };
@@ -1,5 +1,5 @@
1
1
  import { MXBaseComponent } from '@acorex/components/common';
2
- import { ViewContainerRef, WritableSignal } from '@angular/core';
2
+ import { AfterContentChecked, ViewContainerRef, WritableSignal } from '@angular/core';
3
3
  import { AXFormComponent, AXLabelMode } from './form.component';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  *
8
8
  * @category Components
9
9
  */
10
- export declare class AXFormFieldComponent extends MXBaseComponent {
10
+ export declare class AXFormFieldComponent extends MXBaseComponent implements AfterContentChecked {
11
11
  /**
12
12
  * Specifies the mode of the label in the form field.
13
13
  * @defaultValue 'static'
@@ -33,6 +33,7 @@ export declare class AXFormFieldComponent extends MXBaseComponent {
33
33
  * @ignore
34
34
  */
35
35
  constructor();
36
+ ngAfterContentChecked(): void;
36
37
  /**
37
38
  * Calculates and sets the indentation size for the label based on the width of the prefix element.
38
39
  * @ignore
@@ -1,6 +1,5 @@
1
1
  import { MXBaseComponent } from '@acorex/components/common';
2
2
  import { AXToastService } from '@acorex/components/toast';
3
- import { AXTranslationService } from '@acorex/core/translation';
4
3
  import { OnDestroy } from '@angular/core';
5
4
  import { AXFormComponent } from './form.component';
6
5
  import * as i0 from "@angular/core";
@@ -13,7 +12,6 @@ export type AXValidationSummaryDisplayMode = 'toast' | 'alert';
13
12
  export declare class AXValidationSummaryComponent extends MXBaseComponent implements OnDestroy {
14
13
  private _tosatService;
15
14
  private host;
16
- private translateService;
17
15
  /**
18
16
  * @ignore
19
17
  */
@@ -58,7 +56,7 @@ export declare class AXValidationSummaryComponent extends MXBaseComponent implem
58
56
  /**
59
57
  * @ignore
60
58
  */
61
- constructor(_tosatService: AXToastService, host: AXFormComponent, translateService: AXTranslationService);
59
+ constructor(_tosatService: AXToastService, host: AXFormComponent);
62
60
  /**
63
61
  * @ignore
64
62
  */
@@ -71,6 +69,6 @@ export declare class AXValidationSummaryComponent extends MXBaseComponent implem
71
69
  * @ignore
72
70
  */
73
71
  ngOnDestroy(): void;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationSummaryComponent, [null, { optional: true; }, null]>;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationSummaryComponent, [null, { optional: true; }]>;
75
73
  static ɵcmp: i0.ɵɵComponentDeclaration<AXValidationSummaryComponent, "ax-validation-summary", never, { "title": { "alias": "title"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "timeOut": { "alias": "timeOut"; "required": false; }; "autoHide": { "alias": "autoHide"; "required": false; }; }, {}, never, never, true, never>;
76
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "19.13.0-next.9",
3
+ "version": "19.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -153,6 +153,10 @@
153
153
  "types": "./file-explorer/index.d.ts",
154
154
  "default": "./fesm2022/acorex-components-file-explorer.mjs"
155
155
  },
156
+ "./flow-chart": {
157
+ "types": "./flow-chart/index.d.ts",
158
+ "default": "./fesm2022/acorex-components-flow-chart.mjs"
159
+ },
156
160
  "./form": {
157
161
  "types": "./form/index.d.ts",
158
162
  "default": "./fesm2022/acorex-components-form.mjs"