@acorex/components 19.11.0-next.1 → 19.11.0-next.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 (157) hide show
  1. package/autocomplete/README.md +3 -0
  2. package/autocomplete/index.d.ts +2 -0
  3. package/autocomplete/lib/autocomplete.component.d.ts +113 -0
  4. package/autocomplete/lib/autocomplete.module.d.ts +7 -0
  5. package/common/lib/classes/components.class.d.ts +14 -1
  6. package/data-table/lib/columns/row-select-column.component.d.ts +8 -7
  7. package/dropdown/lib/dropdown-box.component.d.ts +2 -1
  8. package/dropdown/lib/dropdown-panel.component.d.ts +3 -1
  9. package/dropdown-button/lib/dropdown-button.component.d.ts +2 -1
  10. package/fesm2022/acorex-components-action-sheet.mjs +11 -11
  11. package/fesm2022/acorex-components-alert.mjs +8 -8
  12. package/fesm2022/acorex-components-audio-wave.mjs +8 -8
  13. package/fesm2022/acorex-components-autocomplete.mjs +317 -0
  14. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -0
  15. package/fesm2022/acorex-components-avatar.mjs +11 -11
  16. package/fesm2022/acorex-components-badge.mjs +8 -8
  17. package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
  18. package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
  19. package/fesm2022/acorex-components-button-group.mjs +11 -11
  20. package/fesm2022/acorex-components-button.mjs +15 -15
  21. package/fesm2022/acorex-components-calendar.mjs +15 -15
  22. package/fesm2022/acorex-components-check-box.mjs +11 -11
  23. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  24. package/fesm2022/acorex-components-chips.mjs +8 -8
  25. package/fesm2022/acorex-components-circular-progress.mjs +8 -8
  26. package/fesm2022/acorex-components-collapse.mjs +12 -12
  27. package/fesm2022/acorex-components-color-box.mjs +10 -10
  28. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  29. package/fesm2022/acorex-components-color-palette.mjs +26 -26
  30. package/fesm2022/acorex-components-comment.mjs +29 -29
  31. package/fesm2022/acorex-components-common.mjs +736 -696
  32. package/fesm2022/acorex-components-common.mjs.map +1 -1
  33. package/fesm2022/acorex-components-conversation.mjs +52 -52
  34. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  35. package/fesm2022/acorex-components-cron-job.mjs +47 -47
  36. package/fesm2022/acorex-components-data-pager.mjs +44 -47
  37. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  38. package/fesm2022/acorex-components-data-table.mjs +93 -70
  39. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  40. package/fesm2022/acorex-components-datetime-box.mjs +10 -10
  41. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  42. package/fesm2022/acorex-components-datetime-input.mjs +9 -9
  43. package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
  44. package/fesm2022/acorex-components-decorators.mjs +26 -26
  45. package/fesm2022/acorex-components-dialog.mjs +12 -12
  46. package/fesm2022/acorex-components-drawer.mjs +14 -14
  47. package/fesm2022/acorex-components-dropdown-button.mjs +16 -10
  48. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  49. package/fesm2022/acorex-components-dropdown.mjs +23 -15
  50. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  51. package/fesm2022/acorex-components-file-explorer.mjs +27 -27
  52. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  53. package/fesm2022/acorex-components-form.mjs +17 -17
  54. package/fesm2022/acorex-components-grid-layout-builder.mjs +149 -598
  55. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  56. package/fesm2022/acorex-components-image-editor.mjs +311 -180
  57. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  58. package/fesm2022/acorex-components-image.mjs +8 -8
  59. package/fesm2022/acorex-components-json-viewer.mjs +8 -8
  60. package/fesm2022/acorex-components-kbd.mjs +11 -11
  61. package/fesm2022/acorex-components-label.mjs +8 -8
  62. package/fesm2022/acorex-components-list.mjs +9 -9
  63. package/fesm2022/acorex-components-loading-dialog.mjs +11 -11
  64. package/fesm2022/acorex-components-loading.mjs +18 -18
  65. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  66. package/fesm2022/acorex-components-map.mjs +13729 -39
  67. package/fesm2022/acorex-components-map.mjs.map +1 -1
  68. package/fesm2022/acorex-components-media-viewer.mjs +54 -40
  69. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  70. package/fesm2022/acorex-components-menu.mjs +17 -17
  71. package/fesm2022/acorex-components-navbar.mjs +8 -8
  72. package/fesm2022/acorex-components-notification.mjs +11 -11
  73. package/fesm2022/acorex-components-number-box.mjs +9 -9
  74. package/fesm2022/acorex-components-otp.mjs +9 -9
  75. package/fesm2022/acorex-components-page.mjs +11 -11
  76. package/fesm2022/acorex-components-paint.mjs +20 -20
  77. package/fesm2022/acorex-components-password-box.mjs +12 -12
  78. package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
  79. package/fesm2022/acorex-components-phone-box.mjs +9 -9
  80. package/fesm2022/acorex-components-picker.mjs +14 -14
  81. package/fesm2022/acorex-components-popover.mjs +8 -8
  82. package/fesm2022/acorex-components-popup.mjs +11 -11
  83. package/fesm2022/acorex-components-progress-bar.mjs +8 -8
  84. package/fesm2022/acorex-components-qrcode.mjs +8 -8
  85. package/fesm2022/acorex-components-query-builder.mjs +25 -14
  86. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  87. package/fesm2022/acorex-components-radio.mjs +9 -9
  88. package/fesm2022/acorex-components-rail-navigation.mjs +14 -14
  89. package/fesm2022/acorex-components-range-slider.mjs +8 -8
  90. package/fesm2022/acorex-components-rate-picker.mjs +8 -8
  91. package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
  92. package/fesm2022/acorex-components-result.mjs +8 -8
  93. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  94. package/fesm2022/acorex-components-scheduler.mjs +14 -14
  95. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  96. package/fesm2022/acorex-components-scss.mjs +4 -4
  97. package/fesm2022/acorex-components-search-box.mjs +10 -10
  98. package/fesm2022/acorex-components-select-box.mjs +10 -10
  99. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  100. package/fesm2022/acorex-components-selection-list.mjs +9 -9
  101. package/fesm2022/acorex-components-side-menu.mjs +15 -15
  102. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  103. package/fesm2022/acorex-components-slider.mjs +9 -9
  104. package/fesm2022/acorex-components-sliding-item.mjs +14 -14
  105. package/fesm2022/acorex-components-step-wizard.mjs +14 -14
  106. package/fesm2022/acorex-components-switch.mjs +11 -11
  107. package/fesm2022/acorex-components-tabs.mjs +14 -14
  108. package/fesm2022/acorex-components-tag-box.mjs +121 -0
  109. package/fesm2022/acorex-components-tag-box.mjs.map +1 -0
  110. package/fesm2022/acorex-components-tag.mjs +9 -9
  111. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  112. package/fesm2022/acorex-components-text-area.mjs +9 -9
  113. package/fesm2022/acorex-components-text-box.mjs +14 -14
  114. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  115. package/fesm2022/acorex-components-time-line.mjs +12 -12
  116. package/fesm2022/acorex-components-toast.mjs +11 -11
  117. package/fesm2022/acorex-components-toolbar.mjs +8 -8
  118. package/fesm2022/acorex-components-tooltip.mjs +11 -11
  119. package/fesm2022/acorex-components-tree-view.mjs +31 -27
  120. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  121. package/fesm2022/acorex-components-uploader.mjs +32 -27
  122. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  123. package/fesm2022/acorex-components-video-player.mjs +8 -8
  124. package/fesm2022/acorex-components-wysiwyg.mjs +32 -32
  125. package/grid-layout-builder/index.d.ts +0 -1
  126. package/grid-layout-builder/lib/grid-layout-builder.module.d.ts +1 -2
  127. package/grid-layout-builder/lib/grid-layout-container.component.d.ts +37 -235
  128. package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +6 -86
  129. package/grid-layout-builder/lib/types.d.ts +8 -12
  130. package/image-editor/index.d.ts +7 -2
  131. package/image-editor/lib/image-editor-container/image-editor-container.component.d.ts +4 -1
  132. package/image-editor/lib/image-editor-tools/image-editor-crop/image-editor-crop.component.d.ts +3 -8
  133. package/image-editor/lib/image-editor-tools/image-editor-header/image-editor-header.component.d.ts +12 -0
  134. package/image-editor/lib/image-editor-tools/image-editor-highlight/image-editor-highlight.component.d.ts +18 -0
  135. package/image-editor/lib/image-editor-tools/image-editor-history/image-editor-history.component.d.ts +13 -0
  136. package/image-editor/lib/image-editor-tools/image-editor-pen/image-editor-pen.component.d.ts +18 -0
  137. package/image-editor/lib/image-editor-tools/image-editor-rotate/image-editor-rotate.component.d.ts +16 -0
  138. package/image-editor/lib/image-editor-tools/image-editor-tool-selector/image-editor-tool-selector.component.d.ts +12 -0
  139. package/image-editor/lib/image-editor-view/image-editor-view.component.d.ts +7 -1
  140. package/image-editor/lib/image-editor.module.d.ts +10 -6
  141. package/image-editor/lib/image-editor.service.d.ts +6 -10
  142. package/map/index.d.ts +2 -0
  143. package/map/lib/map.component.d.ts +23 -4
  144. package/map/lib/map.service.d.ts +27 -1
  145. package/map/lib/map.utility.d.ts +2 -0
  146. package/map/lib/map.world-map.d.ts +28 -0
  147. package/package.json +9 -1
  148. package/query-builder/lib/query-builder.component.d.ts +5 -2
  149. package/tag-box/README.md +3 -0
  150. package/tag-box/index.d.ts +2 -0
  151. package/tag-box/lib/tag-box.component.d.ts +30 -0
  152. package/tag-box/lib/tag-box.module.d.ts +7 -0
  153. package/tree-view/lib/tree-view-item.component.d.ts +3 -2
  154. package/tree-view/lib/tree-view.component.d.ts +6 -7
  155. package/grid-layout-builder/lib/grid-layout-widget.directive.d.ts +0 -106
  156. package/image-editor/lib/image-editor-tools/image-editor-color-picker/image-editor-color-picker.component.d.ts +0 -17
  157. package/image-editor/lib/image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component.d.ts +0 -34
@@ -1,95 +1,15 @@
1
- import { AXGridLayoutNode, AXGridLayoutWidget, AXGridLayoutWidgetCompElement } from './types';
1
+ import { AXGridLayoutNode, AXGridLayoutWidget } from './types';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * A component that represents a widget within the grid layout. It serves as an individual
5
- * item within a `gridstack` layout, providing options for customization and interaction.
6
- *
7
- * This widget component is used within the `AXGridLayoutContainerComponent` to manage the
8
- * layout of widgets in a grid system. The component interacts with the GridStack library
9
- * to offer features like resizing, movement, and customization of the widget's properties.
10
- *
11
- * @example
12
- * <ax-grid-layout-widget [options]="widgetOptions">
13
- * <div>Widget Content</div>
14
- * </ax-grid-layout-widget>
15
- */
16
3
  export declare class AXGridLayoutWidgetComponent {
17
- /**
18
- * A reference to the native element of this widget component. It is used for interaction
19
- * with the underlying DOM element and for updating the widget properties via GridStack.
20
- */
21
4
  private readonly elementRef;
22
- /**
23
- * The native element of the widget component.
24
- */
25
- el: AXGridLayoutWidgetCompElement;
26
- /**
27
- * The current options of the widget. These options are used to define the layout,
28
- * content, and behavior of the widget within the grid.
29
- *
30
- * @internal
31
- */
32
- private _options?;
33
- /**
34
- * Input property that represents the widget's configuration options.
35
- *
36
- * The options include properties such as position, size, content, and other
37
- * configuration values. These options are updated dynamically.
38
- *
39
- * @param {AXGridLayoutNode} val The configuration object for the widget.
40
- * @returns {AXGridLayoutWidgetCompElement} The element associated with the widget.
41
- */
42
- options: import("@angular/core").InputSignalWithTransform<import("gridstack").GridStackNode, import("gridstack").GridStackNode>;
43
- /**
44
- * Clears the widget's options.
45
- *
46
- * This method removes any existing options set for the widget and resets it
47
- * to its default state.
48
- */
49
- clearOptions(): void;
50
- /**
51
- * Constructor that initializes the widget component and sets the reference to
52
- * the grid widget component in the element's properties.
53
- */
54
- constructor();
55
- /**
56
- * Removes this widget from the grid.
57
- *
58
- * This method interacts with GridStack to remove the widget from the layout.
59
- * Once removed, the widget will no longer be part of the grid.
60
- */
61
- removeWidget(): void;
62
- /**
63
- * Sets whether the widget can be locked (i.e., not resizable).
64
- *
65
- * @param {boolean} state Whether the widget should be locked or not.
66
- * @remarks
67
- * If the widget is locked, it cannot be resized.
68
- */
69
- setlockable(state: boolean): void;
70
- /**
71
- * Sets whether the widget can be resized.
72
- *
73
- * @param {boolean} state Whether the widget should be resizable or not.
74
- * @remarks
75
- * If the widget is resizable, the user can change its size by dragging.
76
- */
5
+ options: import("@angular/core").InputSignal<AXGridLayoutNode>;
6
+ eff: import("@angular/core").EffectRef;
7
+ setLockable(state: boolean): void;
77
8
  setResizable(state: boolean): void;
78
- /**
79
- * Updates the options of the widget.
80
- *
81
- * @param {AXGridLayoutWidget} options The new options to apply to the widget.
82
- */
83
9
  setOptions(options: AXGridLayoutWidget): void;
84
- /**
85
- * Retrieves the current options of the widget.
86
- *
87
- * @returns {AXGridLayoutNode} The current configuration options of the widget.
88
- * @remarks
89
- * This method provides access to the widget's layout and configuration.
90
- * If no specific options are set, it returns the default options.
91
- */
92
10
  getOptions(): AXGridLayoutNode;
11
+ element(): import("gridstack").GridItemHTMLElement;
12
+ private updateWidgetOptions;
93
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutWidgetComponent, never>;
94
14
  static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutWidgetComponent, "ax-grid-layout-widget", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
95
15
  }
@@ -1,12 +1,11 @@
1
+ import { NXEvent } from '@acorex/components/common';
1
2
  import { AXGridLayoutContainerComponent } from './grid-layout-container.component';
2
- import { AXGridLayoutWidgetComponent } from './grid-layout-widget.component';
3
- import { AXGridLayoutWidgetDirective } from './grid-layout-widget.directive';
4
- export type AXGridLayoutNode = import('gridstack').GridStackNode;
3
+ export type AXGridLayoutNode = import('gridstack').GridStackNode & {
4
+ data?: unknown;
5
+ };
5
6
  export type AXGridLayout = import('gridstack').GridStack;
6
7
  export type AXGridLayoutOptions = import('gridstack').GridStackOptions;
7
- export type AXGridLayoutWidget = import('gridstack').GridStackWidget & {
8
- data?: any;
9
- };
8
+ export type AXGridLayoutWidget = import('gridstack').GridStackWidget;
10
9
  export type AXGridLayoutContainerElement = import('gridstack').GridHTMLElement;
11
10
  export type AXGridLayoutWidgetElement = import('gridstack').GridItemHTMLElement;
12
11
  export type AXGridLayoutEventEvent = {
@@ -20,15 +19,12 @@ export type AXGridLayoutNodesEvent = {
20
19
  event: Event;
21
20
  nodes: AXGridLayoutNode[];
22
21
  };
22
+ export interface AXGridLayoutChangedEvent extends NXEvent<AXGridLayoutContainerComponent> {
23
+ nodes: AXGridLayoutNode[];
24
+ }
23
25
  export type AXGridLayoutDroppedEvent = {
24
26
  event: Event;
25
27
  previousNode: AXGridLayoutNode;
26
28
  newNode: AXGridLayoutNode;
27
29
  };
28
- export interface AXGridLayoutContainerCompElement extends AXGridLayoutContainerElement {
29
- _gridComp?: AXGridLayoutContainerComponent;
30
- }
31
- export interface AXGridLayoutWidgetCompElement extends AXGridLayoutWidgetElement {
32
- _gridWidgetComp?: AXGridLayoutWidgetComponent | AXGridLayoutWidgetDirective;
33
- }
34
30
  export type AXSaveCallback = import('gridstack').SaveFcn;
@@ -1,6 +1,11 @@
1
1
  export * from './lib/image-editor-container/image-editor-container.component';
2
- export * from './lib/image-editor-tools/image-editor-color-picker/image-editor-color-picker.component';
3
2
  export * from './lib/image-editor-tools/image-editor-crop/image-editor-crop.component';
4
- export * from './lib/image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component';
3
+ export * from './lib/image-editor-tools/image-editor-header/image-editor-header.component';
4
+ export * from './lib/image-editor-tools/image-editor-highlight/image-editor-highlight.component';
5
+ export * from './lib/image-editor-tools/image-editor-history/image-editor-history.component';
6
+ export * from './lib/image-editor-tools/image-editor-pen/image-editor-pen.component';
7
+ export * from './lib/image-editor-tools/image-editor-rotate/image-editor-rotate.component';
8
+ export * from './lib/image-editor-tools/image-editor-tool-selector/image-editor-tool-selector.component';
5
9
  export * from './lib/image-editor-view/image-editor-view.component';
6
10
  export * from './lib/image-editor.module';
11
+ export * from './lib/image-editor.service';
@@ -1,6 +1,7 @@
1
1
  import { MXInputBaseValueComponent, MXLookComponent } from '@acorex/components/common';
2
2
  import { AXDialogService } from '@acorex/components/dialog';
3
3
  import { ElementRef } from '@angular/core';
4
+ import { AXImageEditorViewComponent } from '../image-editor-view/image-editor-view.component';
4
5
  import { AXImageEditorService } from '../image-editor.service';
5
6
  import * as i0 from "@angular/core";
6
7
  declare const AXImageEditorContainerComponent_base: import("polytype").Polytype.ClusteredConstructor<[{
@@ -16,6 +17,7 @@ export declare class AXImageEditorContainerComponent extends AXImageEditorContai
16
17
  /** @ignore */
17
18
  protected service: AXImageEditorService;
18
19
  imageEditorContainer: import("@angular/core").Signal<ElementRef<any>>;
20
+ view: import("@angular/core").Signal<AXImageEditorViewComponent>;
19
21
  /** @ignore */
20
22
  protected dialogService: AXDialogService;
21
23
  /** @ignore */
@@ -28,7 +30,8 @@ export declare class AXImageEditorContainerComponent extends AXImageEditorContai
28
30
  draggable: boolean;
29
31
  }>;
30
32
  save(): void;
33
+ protected cropButtonHandler(): void;
31
34
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorContainerComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorContainerComponent, "ax-image-editor-container", never, { "look": { "alias": "look"; "required": false; }; }, { "onValueChanged": "onValueChanged"; }, never, ["*", "ax-validation-rule"], true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorContainerComponent, "ax-image-editor-container", never, { "look": { "alias": "look"; "required": false; }; }, { "onValueChanged": "onValueChanged"; }, ["view"], ["ax-image-editor-view", "ax-validation-rule"], true, never>;
33
36
  }
34
37
  export {};
@@ -5,14 +5,9 @@ import * as i0 from "@angular/core";
5
5
  * @category Components
6
6
  */
7
7
  export declare class AXImageEditorCropComponent {
8
- /** @ignore */
9
8
  protected service: AXImageEditorService;
10
- /** @ignore */
11
- protected rotateRightHandler(): void;
12
- /** @ignore */
13
- protected rotateLeftHandler(): void;
14
- /** @ignore */
15
- protected crop(): void;
9
+ cropPressed: import("@angular/core").OutputEmitterRef<void>;
10
+ protected cropButtonHandler(): void;
16
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorCropComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorCropComponent, "ax-image-editor-crop", never, {}, {}, never, never, true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorCropComponent, "ax-image-editor-crop", never, {}, { "cropPressed": "cropPressed"; }, never, never, true, never>;
18
13
  }
@@ -0,0 +1,12 @@
1
+ import { AXImageEditorContainerComponent } from '../../image-editor-container/image-editor-container.component';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXimageEditorHeaderComponent {
8
+ protected parent: AXImageEditorContainerComponent;
9
+ protected saveHandler(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXimageEditorHeaderComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXimageEditorHeaderComponent, "ax-image-editor-header", never, {}, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,18 @@
1
+ import { AXImageEditorService } from '../../image-editor.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXImageEditorHighlightComponent {
8
+ protected service: AXImageEditorService;
9
+ /** @ignore */
10
+ protected selectedColor: import("@angular/core").WritableSignal<string | CanvasGradient | CanvasPattern>;
11
+ /** @ignore */
12
+ protected value: number;
13
+ protected changeColorHandler(e: string): void;
14
+ /** @ignore */
15
+ protected valueHandler(e: number): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorHighlightComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorHighlightComponent, "ax-image-editor-highlight", never, {}, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { AXImageEditorService } from '../../image-editor.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXImageEditorHistoryComponent {
8
+ protected service: AXImageEditorService;
9
+ protected UndoHandler(): void;
10
+ protected RedoHandler(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorHistoryComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorHistoryComponent, "ax-image-editor-history", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,18 @@
1
+ import { AXImageEditorService } from '../../image-editor.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXImageEditorPenComponent {
8
+ protected service: AXImageEditorService;
9
+ /** @ignore */
10
+ protected value: number;
11
+ /** @ignore */
12
+ protected selectedColor: import("@angular/core").WritableSignal<string | CanvasGradient | CanvasPattern>;
13
+ protected changeColorHandler(e: string): void;
14
+ /** @ignore */
15
+ protected valueHandler(e: number): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorPenComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorPenComponent, "ax-image-editor-pen", never, {}, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,16 @@
1
+ import { AXImageEditorService } from '../../image-editor.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXImageEditorRotateComponent {
8
+ /** @ignore */
9
+ protected service: AXImageEditorService;
10
+ /** @ignore */
11
+ protected rotateRightHandler(): void;
12
+ /** @ignore */
13
+ protected rotateLeftHandler(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorRotateComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorRotateComponent, "ax-image-editor-rotate", never, {}, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,12 @@
1
+ import { AXImageEditorService } from '../../image-editor.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * paint mode.
5
+ * @category Components
6
+ */
7
+ export declare class AXImageEditorToolSelectorComponent {
8
+ protected service: AXImageEditorService;
9
+ protected changeToolHandler(tool: 'pen' | 'highlight' | 'crop' | 'rotate'): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorToolSelectorComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorToolSelectorComponent, "ax-image-editor-tool-selector", never, {}, {}, never, never, true, never>;
12
+ }
@@ -27,10 +27,14 @@ export declare class AXImageEditorViewComponent extends MXBaseComponent implemen
27
27
  /** @ignore */
28
28
  protected cropEndY: import("@angular/core").WritableSignal<number>;
29
29
  /** @ignore */
30
+ protected isDrawRectangleCreated: import("@angular/core").WritableSignal<boolean>;
31
+ /** @ignore */
30
32
  protected parent: AXImageEditorContainerComponent;
31
33
  protected renderer: Renderer2;
32
34
  /** @ignore */
33
35
  protected imageAspect: import("@angular/core").Signal<number>;
36
+ protected imageEditorHistory: import("@angular/core").WritableSignal<HTMLImageElement[]>;
37
+ protected imageEditorHistoryPointer: import("@angular/core").WritableSignal<number>;
34
38
  private ngZone;
35
39
  /** @ignore */
36
40
  resizeEventListener: any;
@@ -47,6 +51,8 @@ export declare class AXImageEditorViewComponent extends MXBaseComponent implemen
47
51
  /** @ignore */
48
52
  protected imageLoaded(): void;
49
53
  /** @ignore */
54
+ protected imageChanged(): void;
55
+ /** @ignore */
50
56
  protected penConfigHandler(penType: 'pen' | 'highlight'): void;
51
57
  /** @ignore */
52
58
  protected getBoundingCanvasHandler(): DOMRect;
@@ -67,7 +73,7 @@ export declare class AXImageEditorViewComponent extends MXBaseComponent implemen
67
73
  /** @ignore */
68
74
  protected cropImageFunction(): void;
69
75
  /** @ignore */
70
- protected cropButtonHandler(): void;
76
+ cropButtonHandler(): void;
71
77
  /** @ignore */
72
78
  protected rotateImage(): void;
73
79
  /** @ignore */
@@ -9,13 +9,17 @@ import * as i7 from "@acorex/components/decorators";
9
9
  import * as i8 from "@acorex/components/loading";
10
10
  import * as i9 from "@acorex/components/dialog";
11
11
  import * as i10 from "@acorex/components/tooltip";
12
- import * as i11 from "./image-editor-tools/image-editor-color-picker/image-editor-color-picker.component";
13
- import * as i12 from "./image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component";
14
- import * as i13 from "./image-editor-view/image-editor-view.component";
15
- import * as i14 from "./image-editor-container/image-editor-container.component";
16
- import * as i15 from "./image-editor-tools/image-editor-crop/image-editor-crop.component";
12
+ import * as i11 from "./image-editor-view/image-editor-view.component";
13
+ import * as i12 from "./image-editor-container/image-editor-container.component";
14
+ import * as i13 from "./image-editor-tools/image-editor-crop/image-editor-crop.component";
15
+ import * as i14 from "./image-editor-tools/image-editor-history/image-editor-history.component";
16
+ import * as i15 from "./image-editor-tools/image-editor-tool-selector/image-editor-tool-selector.component";
17
+ import * as i16 from "./image-editor-tools/image-editor-pen/image-editor-pen.component";
18
+ import * as i17 from "./image-editor-tools/image-editor-highlight/image-editor-highlight.component";
19
+ import * as i18 from "./image-editor-tools/image-editor-rotate/image-editor-rotate.component";
20
+ import * as i19 from "./image-editor-tools/image-editor-header/image-editor-header.component";
17
21
  export declare class AXImageEditorModule {
18
22
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXImageEditorModule, never, [typeof i1.AXButtonModule, typeof i2.FormsModule, typeof i3.AXRangeSliderModule, typeof i4.AXSelectBoxModule, typeof i5.AXColorBoxModule, typeof i6.AXPopoverModule, typeof i7.AXDecoratorModule, typeof i8.AXLoadingModule, typeof i9.AXDialogModule, typeof i10.AXTooltipModule, typeof i11.AXImageEditorColorPickerComponent, typeof i12.AXImageEditorPenModeChangerComponent, typeof i13.AXImageEditorViewComponent, typeof i14.AXImageEditorContainerComponent, typeof i15.AXImageEditorCropComponent], [typeof i11.AXImageEditorColorPickerComponent, typeof i12.AXImageEditorPenModeChangerComponent, typeof i13.AXImageEditorViewComponent, typeof i14.AXImageEditorContainerComponent, typeof i15.AXImageEditorCropComponent]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXImageEditorModule, never, [typeof i1.AXButtonModule, typeof i2.FormsModule, typeof i3.AXRangeSliderModule, typeof i4.AXSelectBoxModule, typeof i5.AXColorBoxModule, typeof i6.AXPopoverModule, typeof i7.AXDecoratorModule, typeof i8.AXLoadingModule, typeof i9.AXDialogModule, typeof i10.AXTooltipModule, typeof i11.AXImageEditorViewComponent, typeof i12.AXImageEditorContainerComponent, typeof i13.AXImageEditorCropComponent, typeof i14.AXImageEditorHistoryComponent, typeof i15.AXImageEditorToolSelectorComponent, typeof i16.AXImageEditorPenComponent, typeof i17.AXImageEditorHighlightComponent, typeof i18.AXImageEditorRotateComponent, typeof i19.AXimageEditorHeaderComponent], [typeof i11.AXImageEditorViewComponent, typeof i12.AXImageEditorContainerComponent, typeof i13.AXImageEditorCropComponent, typeof i14.AXImageEditorHistoryComponent, typeof i15.AXImageEditorToolSelectorComponent, typeof i16.AXImageEditorPenComponent, typeof i17.AXImageEditorHighlightComponent, typeof i18.AXImageEditorRotateComponent, typeof i19.AXimageEditorHeaderComponent]>;
20
24
  static ɵinj: i0.ɵɵInjectorDeclaration<AXImageEditorModule>;
21
25
  }
@@ -1,17 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class AXImageEditorService {
3
+ activeToolState: import("@angular/core").WritableSignal<"pen" | "highlight" | "crop" | "rotate" | "history">;
3
4
  penColor: import("@angular/core").WritableSignal<string | CanvasGradient | CanvasPattern>;
4
- lineCap: import("@angular/core").WritableSignal<CanvasLineCap>;
5
- lineWidth: import("@angular/core").WritableSignal<number>;
5
+ highlightColor: import("@angular/core").WritableSignal<string | CanvasGradient | CanvasPattern>;
6
+ penWidth: import("@angular/core").WritableSignal<number>;
7
+ highlightWidth: import("@angular/core").WritableSignal<number>;
6
8
  penType: import("@angular/core").WritableSignal<"pen" | "highlight">;
7
- toggleClear: import("@angular/core").WritableSignal<{
8
- state: boolean;
9
- userInteract: boolean;
10
- }>;
11
- cropState: import("@angular/core").WritableSignal<{
12
- state: boolean;
13
- userInteract: boolean;
14
- }>;
15
9
  rotate: import("@angular/core").WritableSignal<{
16
10
  state: number;
17
11
  userInteract: boolean;
@@ -20,6 +14,8 @@ export declare class AXImageEditorService {
20
14
  newImage: import("@angular/core").WritableSignal<HTMLImageElement>;
21
15
  initialImage: import("@angular/core").WritableSignal<HTMLImageElement>;
22
16
  imageBlob: import("@angular/core").WritableSignal<Blob[]>;
17
+ undoPressed: import("@angular/core").WritableSignal<boolean>;
18
+ redoPressed: import("@angular/core").WritableSignal<boolean>;
23
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorService, never>;
24
20
  static ɵprov: i0.ɵɵInjectableDeclaration<AXImageEditorService>;
25
21
  }
package/map/index.d.ts CHANGED
@@ -3,3 +3,5 @@ export * from './lib/map.config';
3
3
  export * from './lib/map.module';
4
4
  export * from './lib/map.service';
5
5
  export * from './lib/map.type';
6
+ export * from './lib/map.utility';
7
+ export * from './lib/map.world-map';
@@ -17,17 +17,17 @@ export declare class AXMapComponent implements OnDestroy {
17
17
  * @description
18
18
  * Zoom level of the map.
19
19
  */
20
- zoomLevel: import("@angular/core").InputSignal<number>;
20
+ zoomLevel: import("@angular/core").ModelSignal<number>;
21
21
  /**
22
22
  * @description
23
23
  * Latitude of the map center.
24
24
  */
25
- latitude: import("@angular/core").InputSignal<number>;
25
+ latitude: import("@angular/core").ModelSignal<number>;
26
26
  /**
27
27
  * @description
28
28
  * Longitude of the map center.
29
29
  */
30
- longitude: import("@angular/core").InputSignal<number>;
30
+ longitude: import("@angular/core").ModelSignal<number>;
31
31
  /**
32
32
  * @description
33
33
  * Maximum number of markers allowed on the map.
@@ -52,6 +52,18 @@ export declare class AXMapComponent implements OnDestroy {
52
52
  * @default false
53
53
  */
54
54
  hasLocator: import("@angular/core").InputSignal<boolean>;
55
+ /**
56
+ * @description
57
+ * whener map should contain all draw items.
58
+ * @default false
59
+ */
60
+ fitToDraw: import("@angular/core").InputSignal<boolean>;
61
+ /**
62
+ * @description
63
+ * whener map draw has to limit in area.
64
+ * @default undefined
65
+ */
66
+ limitDraw: import("@angular/core").InputSignal<AXMapPolygon[]>;
55
67
  /**
56
68
  * @description
57
69
  * Position of the marker control on the map.
@@ -101,6 +113,11 @@ export declare class AXMapComponent implements OnDestroy {
101
113
  * Event triggered when a location is found via the location control.
102
114
  */
103
115
  onLocationFound: import("@angular/core").OutputEmitterRef<AXMapMarker>;
116
+ /**
117
+ * @description
118
+ * Event triggered map is loaded.
119
+ */
120
+ onMapReady: import("@angular/core").OutputEmitterRef<void>;
104
121
  private mapContainer;
105
122
  private leafletService;
106
123
  private rendered;
@@ -142,6 +159,8 @@ export declare class AXMapComponent implements OnDestroy {
142
159
  * Adjusts the map view to fit all markers and polygons currently on the map.
143
160
  */
144
161
  fitBoundsToDrawItems(): void;
162
+ setLimitDraw(data: AXMapPolygon[]): void;
163
+ removeLimitDraw(): void;
145
164
  /**
146
165
  * @description
147
166
  * Flies the map to a specific location with optional zoom, marker placement, and animation duration.
@@ -164,5 +183,5 @@ export declare class AXMapComponent implements OnDestroy {
164
183
  */
165
184
  ngOnDestroy(): void;
166
185
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMapComponent, never>;
167
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; }, { "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; }, never, never, true, never>;
186
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "fitToDraw": { "alias": "fitToDraw"; "required": false; "isSignal": true; }; "limitDraw": { "alias": "limitDraw"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; }, { "zoomLevel": "zoomLevelChange"; "latitude": "latitudeChange"; "longitude": "longitudeChange"; "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; "onMapReady": "onMapReady"; }, never, never, true, never>;
168
187
  }
@@ -16,6 +16,20 @@ export declare class AXLeafletService {
16
16
  private drawControl?;
17
17
  private locateControl?;
18
18
  private drawnItems;
19
+ private boundary;
20
+ private boundaryLayer;
21
+ /**
22
+ * Emits when the zoom level of the map changes.
23
+ */
24
+ onZoomChanged: EventEmitter<number>;
25
+ /**
26
+ * Emits when the longitude of the map center changes.
27
+ */
28
+ onLongitudeChanged: EventEmitter<number>;
29
+ /**
30
+ * Emits when the latitude of the map center changes.
31
+ */
32
+ onLatitudeChanged: EventEmitter<number>;
19
33
  /**
20
34
  * Emits when marker data changes.
21
35
  */
@@ -47,6 +61,8 @@ export declare class AXLeafletService {
47
61
  * @param zoom The initial zoom level. Defaults to 13.
48
62
  */
49
63
  initMap(mapElement: HTMLElement, location: AXMapLatLng, zoom?: number): Promise<void>;
64
+ private handleZoomChange;
65
+ private handleCenterChange;
50
66
  /**
51
67
  * Gets the Leaflet map instance.
52
68
  * @returns The Leaflet map instance, or undefined if not initialized.
@@ -81,7 +97,7 @@ export declare class AXLeafletService {
81
97
  */
82
98
  addMarker(locations: AXMapMarker | AXMapMarker[]): void;
83
99
  /**
84
- * Adds a polygon or polygons to the map.
100
+ * Adds a polygon or polygons to the map, respecting the boundary if set.
85
101
  * @param polygons The polygon or polygons to add.
86
102
  * @param clickCallback Optional callback function to be executed on polygon click.
87
103
  */
@@ -137,6 +153,16 @@ export declare class AXLeafletService {
137
153
  * Adjusts the map view to fit all markers and polygons currently on the map.
138
154
  */
139
155
  fitBoundsToDrawItems(): void;
156
+ /**
157
+ * Sets a boundary for restricting markers and polygons.
158
+ * @param boundaryPolygon The polygon defining the boundary area.
159
+ */
160
+ setBoundary(boundaryPolygons: AXMapPolygon[]): void;
161
+ isPointInPolygon(point: AXMapLatLng, polygon: AXMapPolygon): boolean;
162
+ /**
163
+ * Removes the boundary, allowing unrestricted drawing.
164
+ */
165
+ removeBoundary(): void;
140
166
  /**
141
167
  * Destroys the map instance and removes all event listeners.
142
168
  */
@@ -0,0 +1,2 @@
1
+ import { AXMapPolygon } from './map.type';
2
+ export declare function AXConvertGeoJSONToAXMapPolygons(geoJSON: any): AXMapPolygon[];
@@ -0,0 +1,28 @@
1
+ export declare const AX_WORLD_GEO_JSON: {
2
+ type: string;
3
+ features: ({
4
+ type: string;
5
+ id: string;
6
+ properties: {
7
+ name: string;
8
+ };
9
+ geometry: {
10
+ type: string;
11
+ coordinates: number[][][];
12
+ };
13
+ } | {
14
+ type: string;
15
+ id: string;
16
+ properties: {
17
+ name: string;
18
+ };
19
+ geometry: {
20
+ type: string;
21
+ coordinates: number[][][][];
22
+ };
23
+ })[];
24
+ };
25
+ export declare const AX_WORLD_COUNTRIES: {
26
+ id: string;
27
+ text: string;
28
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "19.11.0-next.1",
3
+ "version": "19.11.0-next.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -37,6 +37,10 @@
37
37
  "types": "./audio-wave/index.d.ts",
38
38
  "default": "./fesm2022/acorex-components-audio-wave.mjs"
39
39
  },
40
+ "./autocomplete": {
41
+ "types": "./autocomplete/index.d.ts",
42
+ "default": "./fesm2022/acorex-components-autocomplete.mjs"
43
+ },
40
44
  "./avatar": {
41
45
  "types": "./avatar/index.d.ts",
42
46
  "default": "./fesm2022/acorex-components-avatar.mjs"
@@ -341,6 +345,10 @@
341
345
  "types": "./tag/index.d.ts",
342
346
  "default": "./fesm2022/acorex-components-tag.mjs"
343
347
  },
348
+ "./tag-box": {
349
+ "types": "./tag-box/index.d.ts",
350
+ "default": "./fesm2022/acorex-components-tag-box.mjs"
351
+ },
344
352
  "./text-area": {
345
353
  "types": "./text-area/index.d.ts",
346
354
  "default": "./fesm2022/acorex-components-text-area.mjs"
@@ -1,12 +1,15 @@
1
1
  import { AXButtonGroupItemComponent } from '@acorex/components/button-group';
2
- import { AXValueChangedEvent } from '@acorex/components/common';
2
+ import { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';
3
+ import { AXSelectBoxComponent } from '@acorex/components/select-box';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class AXQueryBuilderComponent {
5
6
  #private;
6
- protected reRender: import("@angular/core").WritableSignal<boolean>;
7
7
  columnData: import("@angular/core").InputSignal<any[]>;
8
8
  queryData: import("@angular/core").ModelSignal<any[]>;
9
9
  onValueChanged: import("@angular/core").OutputEmitterRef<any[]>;
10
+ protected selectBoxRef: import("@angular/core").Signal<AXSelectBoxComponent>;
11
+ protected selectedItem: import("@angular/core").WritableSignal<any>;
12
+ ds: AXDataSource<unknown>;
10
13
  protected operators: {
11
14
  string: string[];
12
15
  boolean: string[];
@@ -0,0 +1,3 @@
1
+ # @acorex/components/text-box
2
+
3
+ Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/text-box`.
@@ -0,0 +1,2 @@
1
+ export * from './lib/tag-box.component';
2
+ export * from './lib/tag-box.module';