@acorex/components 19.8.0-next.10 → 19.8.0-next.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. package/action-sheet/lib/action-sheet.class.d.ts +1 -2
  2. package/badge/lib/badge.component.d.ts +2 -2
  3. package/button/lib/button.component.d.ts +1 -6
  4. package/button-group/lib/button-group-item.component.d.ts +3 -1
  5. package/button-group/lib/button-group.module.d.ts +2 -1
  6. package/chips/lib/chips.component.d.ts +11 -7
  7. package/color-box/lib/color-box.component.d.ts +5 -1
  8. package/color-palette/lib/color-palette-picker.component.d.ts +19 -14
  9. package/color-palette/lib/color-palette.module.d.ts +2 -1
  10. package/common/lib/classes/styles.class.d.ts +6 -4
  11. package/common/lib/components/button-base-component.class.d.ts +0 -1
  12. package/conversation/lib/conversation-container/conversation-container.component.d.ts +2 -3
  13. package/conversation/lib/conversation-input/conversation-input.component.d.ts +1 -2
  14. package/datetime-picker/lib/datetime-picker.component.d.ts +0 -10
  15. package/datetime-picker/lib/datetime-picker.module.d.ts +2 -1
  16. package/decorators/index.d.ts +5 -4
  17. package/decorators/lib/components/color-indicator/color-indicator.component.d.ts +6 -0
  18. package/decorators/lib/decorators.module.d.ts +7 -6
  19. package/dialog/lib/dialog.component.d.ts +2 -0
  20. package/dropdown-button/lib/dropdown-button.component.d.ts +1 -1
  21. package/fesm2022/acorex-components-action-sheet.mjs +3 -3
  22. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  23. package/fesm2022/acorex-components-alert.mjs +3 -3
  24. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  25. package/fesm2022/acorex-components-audio-wave.mjs +4 -4
  26. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  27. package/fesm2022/acorex-components-avatar.mjs +3 -3
  28. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  29. package/fesm2022/acorex-components-badge.mjs +5 -5
  30. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  31. package/fesm2022/acorex-components-bottom-navigation.mjs +2 -2
  32. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  33. package/fesm2022/acorex-components-breadcrumbs.mjs +2 -2
  34. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  35. package/fesm2022/acorex-components-button-group.mjs +147 -146
  36. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  37. package/fesm2022/acorex-components-button.mjs +18 -21
  38. package/fesm2022/acorex-components-button.mjs.map +1 -1
  39. package/fesm2022/acorex-components-calendar.mjs +4 -4
  40. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  41. package/fesm2022/acorex-components-check-box.mjs +2 -2
  42. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  43. package/fesm2022/acorex-components-chips.mjs +11 -9
  44. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  45. package/fesm2022/acorex-components-circular-progress.mjs +6 -6
  46. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  47. package/fesm2022/acorex-components-collapse.mjs +2 -2
  48. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  49. package/fesm2022/acorex-components-color-box.mjs +11 -4
  50. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  51. package/fesm2022/acorex-components-color-palette.mjs +342 -326
  52. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  53. package/fesm2022/acorex-components-comment.mjs +8 -8
  54. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  55. package/fesm2022/acorex-components-common.mjs +21 -6
  56. package/fesm2022/acorex-components-common.mjs.map +1 -1
  57. package/fesm2022/acorex-components-conversation.mjs +29 -50
  58. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  59. package/fesm2022/acorex-components-cron-job.mjs +2 -2
  60. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  61. package/fesm2022/acorex-components-data-pager.mjs +6 -6
  62. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  63. package/fesm2022/acorex-components-data-table.mjs +4 -4
  64. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  65. package/fesm2022/acorex-components-datetime-box.mjs +2 -3
  66. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  67. package/fesm2022/acorex-components-datetime-input.mjs +2 -2
  68. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  69. package/fesm2022/acorex-components-datetime-picker.mjs +17 -23
  70. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  71. package/fesm2022/acorex-components-decorators.mjs +29 -17
  72. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  73. package/fesm2022/acorex-components-dialog.mjs +10 -3
  74. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  75. package/fesm2022/acorex-components-drawer.mjs +4 -4
  76. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  77. package/fesm2022/acorex-components-dropdown-button.mjs +6 -12
  78. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  79. package/fesm2022/acorex-components-dropdown.mjs +1 -1
  80. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  81. package/fesm2022/acorex-components-form.mjs +10 -3
  82. package/fesm2022/acorex-components-form.mjs.map +1 -1
  83. package/fesm2022/acorex-components-grid-layout-builder.mjs +22 -200
  84. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  85. package/fesm2022/acorex-components-image-editor.mjs +42 -57
  86. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  87. package/fesm2022/acorex-components-image.mjs +2 -2
  88. package/fesm2022/acorex-components-image.mjs.map +1 -1
  89. package/fesm2022/acorex-components-json-viewer.mjs +2 -2
  90. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  91. package/fesm2022/acorex-components-label.mjs +2 -2
  92. package/fesm2022/acorex-components-label.mjs.map +1 -1
  93. package/fesm2022/acorex-components-list.mjs +2 -2
  94. package/fesm2022/acorex-components-list.mjs.map +1 -1
  95. package/fesm2022/acorex-components-loading-dialog.mjs +2 -2
  96. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  97. package/fesm2022/acorex-components-loading.mjs +4 -4
  98. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  99. package/fesm2022/acorex-components-media-viewer.mjs +4 -4
  100. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  101. package/fesm2022/acorex-components-menu.mjs +8 -8
  102. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  103. package/fesm2022/acorex-components-navbar.mjs +3 -3
  104. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  105. package/fesm2022/acorex-components-notification.mjs +4 -4
  106. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  107. package/fesm2022/acorex-components-number-box.mjs +2 -6
  108. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  109. package/fesm2022/acorex-components-otp.mjs +2 -2
  110. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  111. package/fesm2022/acorex-components-paint.mjs +10 -10
  112. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  113. package/fesm2022/acorex-components-password-box.mjs +4 -4
  114. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  115. package/fesm2022/acorex-components-phone-box.mjs +2 -2
  116. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  117. package/fesm2022/acorex-components-picker.mjs +128 -233
  118. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  119. package/fesm2022/acorex-components-popup.mjs +2 -2
  120. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  121. package/fesm2022/acorex-components-progress-bar.mjs +22 -22
  122. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  123. package/fesm2022/acorex-components-rail-navigation.mjs +3 -3
  124. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  125. package/fesm2022/acorex-components-range-slider.mjs +3 -3
  126. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  127. package/fesm2022/acorex-components-rate-picker.mjs +6 -6
  128. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  129. package/fesm2022/acorex-components-result.mjs +2 -2
  130. package/fesm2022/acorex-components-result.mjs.map +1 -1
  131. package/fesm2022/acorex-components-routing-progress.mjs +2 -2
  132. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  133. package/fesm2022/acorex-components-scheduler.mjs +11 -11
  134. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  135. package/fesm2022/acorex-components-search-box.mjs +19 -10
  136. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  137. package/fesm2022/acorex-components-select-box.mjs +3 -2
  138. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  139. package/fesm2022/acorex-components-selection-list.mjs +2 -2
  140. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  141. package/fesm2022/acorex-components-side-menu.mjs +8 -17
  142. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  143. package/fesm2022/acorex-components-skeleton.mjs +2 -2
  144. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  145. package/fesm2022/acorex-components-slider.mjs +2 -2
  146. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  147. package/fesm2022/acorex-components-step-wizard.mjs +2 -2
  148. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  149. package/fesm2022/acorex-components-switch.mjs +8 -3
  150. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  151. package/fesm2022/acorex-components-tabs.mjs +5 -5
  152. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  153. package/fesm2022/acorex-components-tag.mjs +3 -3
  154. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  155. package/fesm2022/acorex-components-text-area.mjs +6 -3
  156. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  157. package/fesm2022/acorex-components-text-box.mjs +2 -2
  158. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  159. package/fesm2022/acorex-components-time-line.mjs +7 -7
  160. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  161. package/fesm2022/acorex-components-toast.mjs +4 -4
  162. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  163. package/fesm2022/acorex-components-toolbar.mjs +3 -12
  164. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  165. package/fesm2022/acorex-components-tooltip.mjs +2 -2
  166. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  167. package/fesm2022/acorex-components-tree-view.mjs +67 -36
  168. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  169. package/fesm2022/acorex-components-uploader.mjs +6 -6
  170. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  171. package/fesm2022/acorex-components-wysiwyg.mjs +25 -25
  172. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  173. package/form/lib/form.component.d.ts +3 -2
  174. package/grid-layout-builder/index.d.ts +0 -1
  175. package/grid-layout-builder/lib/grid-layout-builder.module.d.ts +2 -3
  176. package/grid-layout-builder/lib/grid-layout-container.component.d.ts +10 -14
  177. package/grid-layout-builder/lib/types.d.ts +1 -2
  178. package/image-editor/index.d.ts +0 -1
  179. package/image-editor/lib/image-editor-container/image-editor-container.component.d.ts +22 -3
  180. package/image-editor/lib/image-editor.module.d.ts +16 -17
  181. package/loading/lib/loading-spinner.component.d.ts +1 -1
  182. package/menu/lib/menu-item.component.d.ts +2 -1
  183. package/notification/lib/notification.service.d.ts +1 -1
  184. package/package.json +1 -5
  185. package/paint/lib/paint/paint-view/paint-view.component.d.ts +1 -1
  186. package/picker/index.d.ts +3 -2
  187. package/picker/lib/picker-container/picker-container.component.d.ts +7 -0
  188. package/picker/lib/picker-items/picker-items.component.d.ts +20 -0
  189. package/picker/lib/picker-title/picker-title.component.d.ts +5 -0
  190. package/picker/lib/picker.module.d.ts +6 -4
  191. package/progress-bar/lib/progress-bar.component.d.ts +19 -19
  192. package/range-slider/lib/range-slider.component.d.ts +1 -1
  193. package/scheduler/lib/scheduler-month-view.component.d.ts +6 -6
  194. package/search-box/lib/search-box.component.d.ts +5 -1
  195. package/side-menu/lib/side-menu-item/side-menu-item.component.d.ts +3 -6
  196. package/side-menu/lib/side-menu.component.d.ts +1 -2
  197. package/tabs/lib/tabs.class.d.ts +1 -1
  198. package/text-area/lib/text-area.component.d.ts +5 -1
  199. package/time-line/lib/time-line.component.d.ts +1 -1
  200. package/toast/lib/toast.service.d.ts +1 -1
  201. package/toolbar/lib/toolbar.component.d.ts +1 -3
  202. package/tree-view/lib/tree-view.class.d.ts +0 -1
  203. package/tree-view/lib/tree-view.component.d.ts +7 -1
  204. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +2 -2
  205. package/fesm2022/acorex-components-file-explorer.mjs +0 -231
  206. package/fesm2022/acorex-components-file-explorer.mjs.map +0 -1
  207. package/file-explorer/README.md +0 -3
  208. package/file-explorer/index.d.ts +0 -6
  209. package/file-explorer/lib/file-explorer-container/file-explorer-container.component.d.ts +0 -10
  210. package/file-explorer/lib/file-explorer-item/file-explorer-item.component.d.ts +0 -11
  211. package/file-explorer/lib/file-explorer-types.d.ts +0 -11
  212. package/file-explorer/lib/file-explorer-view/file-explorer-view.component.d.ts +0 -27
  213. package/file-explorer/lib/file-explorer.module.d.ts +0 -16
  214. package/file-explorer/lib/file-explorer.service.d.ts +0 -6
  215. package/grid-layout-builder/lib/grid-layout-widget.directive.d.ts +0 -106
  216. package/image-editor/lib/image-editor-toolbar/image-editor-toolbar.component.d.ts +0 -27
  217. package/picker/lib/picker-column.directive.d.ts +0 -16
  218. package/picker/lib/picker.component.d.ts +0 -61
  219. /package/decorators/lib/components/{clear-button.component.d.ts → clear-button/clear-button.component.d.ts} +0 -0
  220. /package/decorators/lib/components/{close-button.component.d.ts → close-button/close-button.component.d.ts} +0 -0
  221. /package/decorators/lib/components/{full-screen-button.component.d.ts → full-screen/full-screen-button.component.d.ts} +0 -0
  222. /package/decorators/lib/components/{icon.component.d.ts → icon/icon.component.d.ts} +0 -0
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXPickerTitleComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPickerTitleComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPickerTitleComponent, "ax-picker-title", never, {}, {}, never, ["*"], false, never>;
5
+ }
@@ -1,9 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./picker.component";
3
- import * as i2 from "./picker-column.directive";
4
- import * as i3 from "@angular/common";
2
+ import * as i1 from "./picker-container/picker-container.component";
3
+ import * as i2 from "./picker-items/picker-items.component";
4
+ import * as i3 from "./picker-title/picker-title.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@acorex/cdk/carousel";
5
7
  export declare class AXPickerModule {
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPickerModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPickerModule, [typeof i1.AXPickerComponent, typeof i2.AXPickerColumnDirective], [typeof i3.CommonModule], [typeof i1.AXPickerComponent, typeof i2.AXPickerColumnDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPickerModule, [typeof i1.AXPickerContainerComponent, typeof i2.AXPickerItemsComponent, typeof i3.AXPickerTitleComponent], [typeof i4.CommonModule, typeof i5.AXCarouselDirective], [typeof i1.AXPickerContainerComponent, typeof i2.AXPickerItemsComponent, typeof i3.AXPickerTitleComponent]>;
8
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPickerModule>;
9
11
  }
@@ -11,41 +11,41 @@ export declare class AXProgressBarComponent extends MXColorComponent {
11
11
  /** @ignore */
12
12
  circle: ElementRef;
13
13
  /**
14
- * @event
15
- * Emits when the slider value changes.
16
- */
14
+ * @event
15
+ * Emits when the slider value changes.
16
+ */
17
17
  ValueChange: EventEmitter<number>;
18
18
  /** @ignore */
19
19
  private _progress;
20
20
  /**
21
- * Specifies the progress indicator mode.
22
- */
21
+ * Specifies the progress indicator mode.
22
+ */
23
23
  mode: AXProgressMode;
24
24
  /**
25
- * Gets or sets the progress value (0-100).
26
- */
25
+ * Gets or sets the progress value (0-100).
26
+ */
27
27
  get progress(): number;
28
28
  /**
29
- * Sets the progress value (0-100).
30
- * @param {number} v
31
- */
29
+ * Sets the progress value (0-100).
30
+ * @param {number} v
31
+ */
32
32
  set progress(v: number);
33
33
  /**
34
- * Emitted when the size changes.
35
- * @event
36
- */
34
+ * Emitted when the size changes.
35
+ * @event
36
+ */
37
37
  sizeChange: EventEmitter<number>;
38
38
  /** @ignore */
39
39
  private _height;
40
40
  /**
41
- * Gets or sets the height of the component.
42
- * @param {number} v
43
- */
41
+ * Gets or sets the height of the component.
42
+ * @param {number} v
43
+ */
44
44
  get height(): number;
45
45
  /**
46
- * Sets the height of the component.
47
- * @param {number} v
48
- */
46
+ * Sets the height of the component.
47
+ * @param {number} v
48
+ */
49
49
  set height(v: number);
50
50
  /** @ignore */
51
51
  private get __hostClass();
@@ -27,7 +27,7 @@ export declare class AXRangeSliderComponent extends AXRangeSliderComponent_base
27
27
  * Color theme for the slider, affecting highlight, tooltip, and handler.
28
28
  * @default 'primary'
29
29
  */
30
- color: import("@angular/core").InputSignal<"success" | "primary" | "warning" | "danger" | "neutral">;
30
+ color: import("@angular/core").InputSignal<"success" | "primary" | "secondary" | "warning" | "danger">;
31
31
  /**
32
32
  * @description
33
33
  * The value(s) of the slider. Can be a single number for single mode or an array of two numbers for dual mode.
@@ -25,16 +25,16 @@ export declare class AXSchedulerMonthViewComponent extends MXBaseComponent {
25
25
  */
26
26
  get date(): AXDateTime;
27
27
  /**
28
- * Sets the date for the scheduler view and triggers the generation of time slots.
29
- * @param {AXDateTime} v
30
- */
28
+ * Sets the date for the scheduler view and triggers the generation of time slots.
29
+ * @param {AXDateTime} v
30
+ */
31
31
  set date(v: AXDateTime);
32
32
  /** @ignore */
33
33
  ngOnInit(): void;
34
34
  /**
35
- * Generates slots for the scheduler, including CSS classes for days outside the current month
36
- * and a flag for the current day.
37
- */
35
+ * Generates slots for the scheduler, including CSS classes for days outside the current month
36
+ * and a flag for the current day.
37
+ */
38
38
  generateSlots(): void;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSchedulerMonthViewComponent, never>;
40
40
  static ɵcmp: i0.ɵɵComponentDeclaration<AXSchedulerMonthViewComponent, "ax-scheduler-month-view", never, { "date": { "alias": "date"; "required": false; }; }, {}, never, never, false, never>;
@@ -16,6 +16,10 @@ export declare class AXSearchBoxComponent extends AXSearchBoxComponent_base {
16
16
  constructor(
17
17
  /** @ignore */
18
18
  _parent: AXSearchableComponent);
19
+ /**
20
+ * Defines custom CSS classes to apply to the component.
21
+ */
22
+ classNames: string;
19
23
  /**
20
24
  * The delay time for search actions, specified in milliseconds.
21
25
  * @defaultValue 500
@@ -30,6 +34,6 @@ export declare class AXSearchBoxComponent extends AXSearchBoxComponent_base {
30
34
  /** @ignore */
31
35
  get __hostClass(): string[];
32
36
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSearchBoxComponent, [{ optional: true; }]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<AXSearchBoxComponent, "ax-search-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "look": { "alias": "look"; "required": false; }; "delayTime": { "alias": "delayTime"; "required": false; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-prefix", "ax-icon", "ax-clear-button", "ax-suffix"], false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXSearchBoxComponent, "ax-search-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "look": { "alias": "look"; "required": false; }; "classNames": { "alias": "class"; "required": false; }; "delayTime": { "alias": "delayTime"; "required": false; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix"], false, never>;
34
38
  }
35
39
  export {};
@@ -1,12 +1,11 @@
1
- import { AXClickEvent, MXColorComponent, MXInteractiveComponent } from '@acorex/components/common';
1
+ import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';
2
2
  import { ElementRef } from '@angular/core';
3
3
  import { IsActiveMatchOptions, UrlTree } from '@angular/router';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AXSideMenuItemClickEvent extends AXClickEvent {
6
6
  handled: boolean;
7
7
  }
8
- declare const AXSideMenuItemComponent_base: import("polytype").Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXColorComponent]>;
9
- export declare class AXSideMenuItemComponent extends AXSideMenuItemComponent_base {
8
+ export declare class AXSideMenuItemComponent extends MXInteractiveComponent {
10
9
  private elem;
11
10
  text: import("@angular/core").ModelSignal<string>;
12
11
  active: import("@angular/core").ModelSignal<boolean>;
@@ -26,8 +25,6 @@ export declare class AXSideMenuItemComponent extends AXSideMenuItemComponent_bas
26
25
  toggle(): void;
27
26
  open(): void;
28
27
  close(): void;
29
- private get __hostClass();
30
28
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSideMenuItemComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<AXSideMenuItemComponent, "ax-side-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkActive": { "alias": "routerLinkActive"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, { "text": "textChange"; "active": "activeChange"; "isLoading": "isLoadingChange"; "isCollapsed": "isCollapsedChange"; "onClick": "onClick"; }, never, ["ax-title", "ax-side-menu-item, ng-container", "ax-divider", "ax-prefix", "*", "ax-suffix"], false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXSideMenuItemComponent, "ax-side-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkActive": { "alias": "routerLinkActive"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, { "text": "textChange"; "active": "activeChange"; "isLoading": "isLoadingChange"; "isCollapsed": "isCollapsedChange"; "onClick": "onClick"; }, never, ["ax-title", "ax-side-menu-item, ng-container", "ax-divider", "ax-prefix", "*", "ax-suffix"], false, never>;
32
30
  }
33
- export {};
@@ -1,4 +1,4 @@
1
- import { AXStyleColorType, NXComponent } from '@acorex/components/common';
1
+ import { NXComponent } from '@acorex/components/common';
2
2
  import { IsActiveMatchOptions, UrlTree } from '@angular/router';
3
3
  import { AXSideMenuItemComponent } from './side-menu-item/side-menu-item.component';
4
4
  import * as i0 from "@angular/core";
@@ -14,7 +14,6 @@ export type AXSideMenuItem = {
14
14
  href?: string;
15
15
  target?: '_blank' | '_self' | '_parent' | '_top';
16
16
  text: string;
17
- color?: AXStyleColorType;
18
17
  active?: boolean;
19
18
  disabled?: boolean;
20
19
  isLoading?: boolean;
@@ -4,5 +4,5 @@ export declare class AXTabStripChangedEvent extends AXEvent {
4
4
  tab: AXTabItemComponent;
5
5
  index: number;
6
6
  }
7
- export type AXTabLook = 'default' | 'pills' | 'pills-color' | 'with-line' | 'with-line-color' | 'classic' | 'custom';
7
+ export type AXTabLook = 'default' | 'pills' | 'pills-color' | 'with-line' | 'with-line-color' | 'classic';
8
8
  export type AXTabLocation = 'top' | 'bottom' | 'start' | 'end';
@@ -29,9 +29,13 @@ export declare class AXTextAreaComponent extends AXTextAreaComponent_base {
29
29
  * Specifies the maximum number of characters allowed in the input field.
30
30
  */
31
31
  maxLength: number;
32
+ /**
33
+ * CSS classes to apply to the component.
34
+ */
35
+ classNames: string;
32
36
  /** @ignore */
33
37
  protected _handleModelChange(value: string | null): void;
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<AXTextAreaComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<AXTextAreaComponent, "ax-text-area", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "look": { "alias": "look"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "allowResize": { "alias": "allowResize"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-validation-rule"], false, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXTextAreaComponent, "ax-text-area", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "look": { "alias": "look"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "allowResize": { "alias": "allowResize"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "classNames": { "alias": "class"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-validation-rule"], false, never>;
36
40
  }
37
41
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export type AXTimeLineMode = 'icon' | 'bulet';
2
+ export type AXTimeLineMode = 'icon' | 'bullet';
3
3
  export declare class AXTimeLineComponent {
4
4
  #private;
5
5
  mode: import("@angular/core").InputSignal<AXTimeLineMode>;
@@ -14,7 +14,7 @@ export declare class AXToastService {
14
14
  scrollStrategy: ScrollStrategy;
15
15
  constructor(scrollStrategyOptions: ScrollStrategyOptions);
16
16
  primary(content: string): void;
17
- neutral(content: string): void;
17
+ secondary(content: string): void;
18
18
  success(content: string): void;
19
19
  warning(content: string): void;
20
20
  danger(content: string): void;
@@ -2,13 +2,11 @@ import * as i0 from "@angular/core";
2
2
  export declare class AXToolBarComponent {
3
3
  #private;
4
4
  private buttons;
5
- private textBox;
6
- dividerState: import("@angular/core").InputSignal<boolean>;
7
5
  private decorators;
8
6
  protected prefixState: import("@angular/core").WritableSignal<boolean>;
9
7
  protected suffixState: import("@angular/core").WritableSignal<boolean>;
10
8
  protected contentState: import("@angular/core").WritableSignal<boolean>;
11
9
  get __hostClass(): string;
12
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AXToolBarComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<AXToolBarComponent, "ax-toolbar", never, { "dividerState": { "alias": "dividerState"; "required": false; "isSignal": true; }; }, {}, ["buttons", "textBox", "decorators"], ["ax-prefix", "ax-content", "ax-suffix"], false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXToolBarComponent, "ax-toolbar", never, {}, {}, ["buttons", "decorators"], ["ax-prefix", "ax-content", "ax-suffix"], false, never>;
14
12
  }
@@ -14,7 +14,6 @@ export interface AXTreeViewSchema {
14
14
  visible?: boolean;
15
15
  tooltip?: string;
16
16
  exteraData?: any;
17
- extension?: string;
18
17
  }
19
18
  export declare class AXTreeItemClickBaseEvent extends AXClickEvent {
20
19
  nativeElement: any;
@@ -3,9 +3,13 @@ import { AXTreeItemClickBaseEvent, AXTreeViewSchema, SelectionBehaviorType } fro
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AXTreeViewComponent extends NXComponent {
5
5
  #private;
6
+ constructor();
6
7
  private itemsSignal;
7
8
  private itemsPromise;
8
- items: import("@angular/core").InputSignal<AXTreeViewSchema[] | ((selectedItemId?: string | number) => AXTreeViewSchema[] | Promise<AXTreeViewSchema[]>)>;
9
+ private cdr;
10
+ items: import("@angular/core").InputSignal<AXTreeViewSchema[] | ((options?: {
11
+ parentId: string | number;
12
+ }) => AXTreeViewSchema[] | Promise<AXTreeViewSchema[]>)>;
9
13
  protected get resolvedItems(): AXTreeViewSchema[];
10
14
  selectable: import("@angular/core").InputSignal<boolean>;
11
15
  selectionMode: import("@angular/core").InputSignal<"single" | "multiple">;
@@ -74,6 +78,8 @@ export declare class AXTreeViewComponent extends NXComponent {
74
78
  private loadingState;
75
79
  protected isNodeLoading(nodeId: string | number): boolean;
76
80
  private setNodeLoading;
81
+ setActiveNodeByValueField(valueField: number | string, value: boolean): void;
82
+ setExpandNodeByValueField(valueField: number | string, value: boolean): void;
77
83
  static ɵfac: i0.ɵɵFactoryDeclaration<AXTreeViewComponent, never>;
78
84
  static ɵcmp: i0.ɵɵComponentDeclaration<AXTreeViewComponent, "ax-tree-view", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "showActiveNode": { "alias": "showActiveNode"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "visibleField": { "alias": "visibleField"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "expandBehavior": { "alias": "expandBehavior"; "required": false; "isSignal": true; }; }, { "onSelectionChange": "onSelectionChange"; "onItemClick": "onItemClick"; "onNodeClick": "onNodeClick"; "onNodeExpandClick": "onNodeExpandClick"; }, never, never, false, never>;
79
85
  }
@@ -18,9 +18,9 @@ export declare class AXWysiwygContainerComponent extends AXWysiwygContainerCompo
18
18
  /** @ignore */
19
19
  private zone;
20
20
  /** @ignore */
21
- protected quillChangeTriggred: import("@angular/core").WritableSignal<boolean>;
21
+ protected quillChangeTriggered: import("@angular/core").WritableSignal<boolean>;
22
22
  /** @ignore */
23
- protected ngModleChangeTriggred: import("@angular/core").WritableSignal<boolean>;
23
+ protected ngModelChangeTriggered: import("@angular/core").WritableSignal<boolean>;
24
24
  /**
25
25
  * Specifies the placeholder text.
26
26
  *
@@ -1,231 +0,0 @@
1
- import * as i3 from '@acorex/components/drawer';
2
- import { AXDrawerComponent, AXDrawerModule } from '@acorex/components/drawer';
3
- import * as i0 from '@angular/core';
4
- import { signal, Injectable, inject, viewChild, effect, Component, ViewEncapsulation, input, output, ChangeDetectionStrategy, afterNextRender, NgModule } from '@angular/core';
5
- import * as i1 from '@acorex/components/decorators';
6
- import { AXDecoratorModule } from '@acorex/components/decorators';
7
- import * as i2 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import { MXBaseComponent } from '@acorex/components/common';
10
- import * as i6 from '@acorex/components/menu';
11
- import { AXContextMenuComponent, AXMenuModule } from '@acorex/components/menu';
12
- import * as i2$1 from '@acorex/components/button';
13
- import { AXButtonModule } from '@acorex/components/button';
14
- import * as i3$1 from '@acorex/components/breadcrumbs';
15
- import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
16
- import * as i5 from '@acorex/components/toolbar';
17
- import { AXToolBarModule } from '@acorex/components/toolbar';
18
-
19
- class AXFileExplorerService {
20
- constructor() {
21
- this.treeViewState = signal(false);
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerService }); }
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerService, decorators: [{
27
- type: Injectable
28
- }] });
29
-
30
- class AXFileExplorerContainerComponent {
31
- constructor() {
32
- this.service = inject(AXFileExplorerService);
33
- this.drawer = viewChild(AXDrawerComponent);
34
- this.#effect = effect(() => {
35
- if (this.service.treeViewState()) {
36
- this.drawer().open();
37
- }
38
- else {
39
- this.drawer().close();
40
- }
41
- });
42
- }
43
- #effect;
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXFileExplorerContainerComponent, isStandalone: false, selector: "ax-file-explorer-container", providers: [AXFileExplorerService], viewQueries: [{ propertyName: "drawer", first: true, predicate: AXDrawerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-drawer-container [ngStyle]=\"this.service.treeViewState() ? { width: 'fit-content' } : { width: 0 }\">\n <ax-drawer location=\"start\" mode=\"push\">\n <ax-content>\n <ng-content select=\"ax-tree-view\"></ng-content>\n </ax-content>\n </ax-drawer>\n</ax-drawer-container>\n\n<ax-divider></ax-divider>\n\n<ng-content select=\"ax-file-explorer-view\"></ng-content>\n", styles: ["ax-file-explorer-container{border:1px solid rgb(var(--ax-color-input-border));border-radius:var(--ax-rounded-border-default);display:flex;min-width:30vw;max-height:40vh;overflow:hidden;background-color:rgba(var(--ax-color-input-surface))}ax-file-explorer-container ax-divider{display:block;width:1px;background-color:rgba(var(--ax-color-border-default))}ax-file-explorer-container ax-drawer-container{height:auto}ax-file-explorer-container ax-drawer-container ax-drawer{background-color:rgba(var(--ax-color-input-surface));max-width:100%}ax-file-explorer-container ax-drawer-container ax-drawer ax-content{padding:.5rem}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.AXDrawerComponent, selector: "ax-drawer", inputs: ["location", "showBackdrop", "mode", "closeOthers", "collapsed"], outputs: ["locationChange", "modeChange", "collapsedChange"] }, { kind: "component", type: i3.AXDrawerContainerComponent, selector: "ax-drawer-container" }], encapsulation: i0.ViewEncapsulation.None }); }
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerContainerComponent, decorators: [{
48
- type: Component,
49
- args: [{ selector: 'ax-file-explorer-container', standalone: false, encapsulation: ViewEncapsulation.None, providers: [AXFileExplorerService], template: "<ax-drawer-container [ngStyle]=\"this.service.treeViewState() ? { width: 'fit-content' } : { width: 0 }\">\n <ax-drawer location=\"start\" mode=\"push\">\n <ax-content>\n <ng-content select=\"ax-tree-view\"></ng-content>\n </ax-content>\n </ax-drawer>\n</ax-drawer-container>\n\n<ax-divider></ax-divider>\n\n<ng-content select=\"ax-file-explorer-view\"></ng-content>\n", styles: ["ax-file-explorer-container{border:1px solid rgb(var(--ax-color-input-border));border-radius:var(--ax-rounded-border-default);display:flex;min-width:30vw;max-height:40vh;overflow:hidden;background-color:rgba(var(--ax-color-input-surface))}ax-file-explorer-container ax-divider{display:block;width:1px;background-color:rgba(var(--ax-color-border-default))}ax-file-explorer-container ax-drawer-container{height:auto}ax-file-explorer-container ax-drawer-container ax-drawer{background-color:rgba(var(--ax-color-input-surface));max-width:100%}ax-file-explorer-container ax-drawer-container ax-drawer ax-content{padding:.5rem}\n"] }]
50
- }] });
51
-
52
- class AXFileExplorerItemComponent extends MXBaseComponent {
53
- constructor() {
54
- super(...arguments);
55
- this.data = input();
56
- this.dbClick = output();
57
- this.viewMode = input();
58
- }
59
- dbClickHandler() {
60
- this.dbClick.emit();
61
- }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerItemComponent, isStandalone: false, selector: "ax-file-explorer-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dbClick: "dbClick" }, usesInheritance: true, ngImport: i0, template: "@if (viewMode() === 'ax-list-icon') {\n <div class=\"ax-list-icon\" (dblclick)=\"dbClickHandler()\">\n <div class=\"ax-thumb-file\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n\n @if (data().extension) {\n <ax-text>\n {{ data().size }}\n </ax-text>\n }\n\n <ax-text>\n {{ data().description }}\n </ax-text>\n\n <ax-text>\n {{ data().lastModify }}\n </ax-text>\n </div>\n} @else {\n <div [ngClass]=\"viewMode()\" (dblclick)=\"dbClickHandler()\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n}\n", styles: ["ax-file-explorer-item{-webkit-user-select:none;user-select:none;cursor:pointer}ax-file-explorer-item .ax-large-icon,ax-file-explorer-item .ax-small-icon{display:flex;flex-direction:column;justify-content:center;align-items:center}ax-file-explorer-item .ax-small-icon ax-icon{font-size:.9rem}ax-file-explorer-item .ax-small-icon ax-text{font-size:.7rem}ax-file-explorer-item .ax-large-icon ax-icon{font-size:3rem}ax-file-explorer-item .ax-large-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.1rem;align-items:center;padding:.3rem;border-bottom:1px solid rgb(var(--ax-color-input-border));margin-bottom:.5rem}ax-file-explorer-item .ax-list-icon ax-icon{font-size:1.2rem;margin-inline-end:.5rem}ax-file-explorer-item .ax-list-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon .ax-thumb-file{display:flex}ax-file-explorer-item .ax-list-icon .ax-thumb-file ax-text{max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-file-explorer-item .ax-list-icon>ax-text{color:rgb(var(--ax-color-neutral-500));max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
64
- }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerItemComponent, decorators: [{
66
- type: Component,
67
- args: [{ selector: 'ax-file-explorer-item', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (viewMode() === 'ax-list-icon') {\n <div class=\"ax-list-icon\" (dblclick)=\"dbClickHandler()\">\n <div class=\"ax-thumb-file\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n\n @if (data().extension) {\n <ax-text>\n {{ data().size }}\n </ax-text>\n }\n\n <ax-text>\n {{ data().description }}\n </ax-text>\n\n <ax-text>\n {{ data().lastModify }}\n </ax-text>\n </div>\n} @else {\n <div [ngClass]=\"viewMode()\" (dblclick)=\"dbClickHandler()\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n}\n", styles: ["ax-file-explorer-item{-webkit-user-select:none;user-select:none;cursor:pointer}ax-file-explorer-item .ax-large-icon,ax-file-explorer-item .ax-small-icon{display:flex;flex-direction:column;justify-content:center;align-items:center}ax-file-explorer-item .ax-small-icon ax-icon{font-size:.9rem}ax-file-explorer-item .ax-small-icon ax-text{font-size:.7rem}ax-file-explorer-item .ax-large-icon ax-icon{font-size:3rem}ax-file-explorer-item .ax-large-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.1rem;align-items:center;padding:.3rem;border-bottom:1px solid rgb(var(--ax-color-input-border));margin-bottom:.5rem}ax-file-explorer-item .ax-list-icon ax-icon{font-size:1.2rem;margin-inline-end:.5rem}ax-file-explorer-item .ax-list-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon .ax-thumb-file{display:flex}ax-file-explorer-item .ax-list-icon .ax-thumb-file ax-text{max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-file-explorer-item .ax-list-icon>ax-text{color:rgb(var(--ax-color-neutral-500));max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center}\n"] }]
68
- }] });
69
-
70
- class AXFileExplorerViewComponent {
71
- constructor() {
72
- this.dataCallBack = input();
73
- this.allData = signal([]);
74
- this.showData = signal([]);
75
- this.activeFolderId = signal(null);
76
- this.clickedItems = new Set();
77
- this.breadcrumbsData = signal(['root']);
78
- this.contextMenu = viewChild(AXContextMenuComponent);
79
- this.viewMode = signal('ax-large-icon');
80
- this.service = inject(AXFileExplorerService);
81
- this.#effect = afterNextRender(() => {
82
- this.setInitialAllData();
83
- });
84
- this.#effect2 = effect(() => {
85
- if (this.activeFolderId()) {
86
- const result = this.findItemInNestedArray(this.allData(), (item) => item.id === this.activeFolderId());
87
- this.showData.set(result.childrens);
88
- }
89
- else {
90
- this.showData.set(this.allData());
91
- }
92
- setTimeout(() => {
93
- this.contextMenu().refresh();
94
- });
95
- });
96
- }
97
- #effect;
98
- #effect2;
99
- async setInitialAllData() {
100
- const rootData = await this.dataCallBack()();
101
- this.allData.set(rootData);
102
- }
103
- async dbclickHandler(item) {
104
- if (item.extension)
105
- return;
106
- if (!item?.id)
107
- return;
108
- this.activeFolderId.set(item.id);
109
- const clickedItem = this.findItemInNestedArray(this.allData(), (e) => e.id === item.id);
110
- this.breadcrumbsData.update((prev) => [...prev, clickedItem.text]);
111
- let canPass = true;
112
- this.clickedItems.forEach((e) => {
113
- if (e === item.id)
114
- canPass = false;
115
- });
116
- this.clickedItems.add(item.id);
117
- if (!canPass)
118
- return;
119
- const newChild = await this.dataCallBack()(item.id);
120
- this.allData.update((prev) => {
121
- const copy = [...prev];
122
- const find = this.findItemInNestedArray(copy, (e) => e.id === item.id);
123
- find.childrens = newChild;
124
- return copy;
125
- });
126
- }
127
- findItemInNestedArray(array, predicate) {
128
- for (const item of array) {
129
- if (predicate(item)) {
130
- return item;
131
- }
132
- if (item.childrens) {
133
- const found = this.findItemInNestedArray(item.childrens, predicate);
134
- if (found)
135
- return found;
136
- }
137
- }
138
- return null;
139
- }
140
- backButtonHandler() {
141
- this.breadcrumbsData.update((prev) => {
142
- const copy = [...prev];
143
- if (copy.length !== 1)
144
- copy.pop();
145
- return copy;
146
- });
147
- const parentId = this.showData()[0].parentId;
148
- const parent = this.findItemInNestedArray(this.allData(), (item) => item.id === parentId);
149
- if (parent?.parentId) {
150
- this.activeFolderId.set(parent.parentId);
151
- }
152
- else {
153
- this.activeFolderId.set(null);
154
- }
155
- }
156
- handleContextMenuOpening(e) {
157
- const target = e.targetElement['__axContext__'];
158
- const items = [{ text: 'open', data: target }];
159
- e.items.push(...items);
160
- // if (items.length) {
161
- // e.items.push(...items);
162
- // } else {
163
- // e.canceled = true;
164
- // }
165
- }
166
- handleContextMenuItemClick(e) {
167
- console.log(e);
168
- this.dbclickHandler(e.item.data.data());
169
- }
170
- changeViewHandler(v) {
171
- this.viewMode.set(v);
172
- }
173
- async sortItemHandler(sort) {
174
- const newChild = await this.dataCallBack()(this.activeFolderId(), sort);
175
- }
176
- menuToggleHandler() {
177
- this.service.treeViewState.update((prev) => !prev);
178
- }
179
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
180
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerViewComponent, isStandalone: false, selector: "ax-file-explorer-view", inputs: { dataCallBack: { classPropertyName: "dataCallBack", publicName: "dataCallBack", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contextMenu", first: true, predicate: AXContextMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-toolbar [dividerState]=\"false\">\n <ax-prefix>\n <ax-button (onClick)=\"menuToggleHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-menu\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-button (onClick)=\"backButtonHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-up-folder\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-breadcrumbs>\n <ng-template *ngIf=\"false\" #divider> '|' </ng-template>\n @for (item of breadcrumbsData(); track item; let idx = $last) {\n <ax-breadcrumbs-item [active]=\"idx\">\n <p>{{ item }}</p>\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </ax-prefix>\n\n <ax-suffix>\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-text>View</ax-text>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-large-icon')\">\n <ax-text>Large</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-small-icon')\">\n <ax-text>Small</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-list-icon')\">\n <ax-text>List</ax-text>\n </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n\n <ax-divider></ax-divider>\n\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-prefix>\n <ax-icon class=\"ax-icon ax-icon-sort\"></ax-icon>\n </ax-prefix>\n <ax-menu-item (onClick)=\"sortItemHandler('name')\"> <ax-text>Name</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"sortItemHandler('date')\"> <ax-text>Date</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"sortItemHandler('type')\"> <ax-text>Type</ax-text> </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n </ax-suffix>\n</ax-toolbar>\n\n<div [ngClass]=\"viewMode()\" class=\"ax-file-container\">\n @for (item of showData(); track item.id) {\n <ax-file-explorer-item\n id=\"ax-file-explore-item-ref\"\n (dbClick)=\"dbclickHandler(item)\"\n [data]=\"item\"\n [viewMode]=\"viewMode()\"\n ></ax-file-explorer-item>\n }\n</div>\n<ax-context-menu\n target=\"#ax-file-explore-item-ref\"\n orientation=\"vertical\"\n (onOpening)=\"handleContextMenuOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n>\n</ax-context-menu>\n", styles: ["ax-file-explorer-view{flex-grow:1}ax-file-explorer-view .ax-file-container.ax-large-icon,ax-file-explorer-view .ax-file-container.ax-small-icon{display:flex;flex-wrap:wrap;padding:.5rem;overflow:auto;gap:.6rem}ax-file-explorer-view .ax-file-container.ax-list-icon{overflow:auto;height:100%;padding:.5rem}ax-file-explorer-view ax-toolbar{border-bottom:1px solid rgb(var(--ax-color-input-border));width:100%;justify-content:space-between}ax-file-explorer-view ax-toolbar ax-menu.ax-action-list-horizontal{min-width:fit-content}ax-file-explorer-view ax-toolbar ax-prefix{flex-wrap:nowrap}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i3$1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i3$1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.AXToolBarComponent, selector: "ax-toolbar", inputs: ["dividerState"] }, { kind: "component", type: i6.AXMenuItemComponent, selector: "ax-menu-item", inputs: ["name", "data", "disabled", "color"], outputs: ["onClick"] }, { kind: "component", type: i6.AXMenuComponent, selector: "ax-menu", inputs: ["orientation", "openOn", "closeOn", "items", "hasArrow"], outputs: ["onItemClick"] }, { kind: "component", type: i6.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }, { kind: "component", type: AXFileExplorerItemComponent, selector: "ax-file-explorer-item", inputs: ["data", "viewMode"], outputs: ["dbClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
181
- }
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerViewComponent, decorators: [{
183
- type: Component,
184
- args: [{ selector: 'ax-file-explorer-view', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-toolbar [dividerState]=\"false\">\n <ax-prefix>\n <ax-button (onClick)=\"menuToggleHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-menu\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-button (onClick)=\"backButtonHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-up-folder\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-breadcrumbs>\n <ng-template *ngIf=\"false\" #divider> '|' </ng-template>\n @for (item of breadcrumbsData(); track item; let idx = $last) {\n <ax-breadcrumbs-item [active]=\"idx\">\n <p>{{ item }}</p>\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </ax-prefix>\n\n <ax-suffix>\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-text>View</ax-text>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-large-icon')\">\n <ax-text>Large</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-small-icon')\">\n <ax-text>Small</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"changeViewHandler('ax-list-icon')\">\n <ax-text>List</ax-text>\n </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n\n <ax-divider></ax-divider>\n\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-prefix>\n <ax-icon class=\"ax-icon ax-icon-sort\"></ax-icon>\n </ax-prefix>\n <ax-menu-item (onClick)=\"sortItemHandler('name')\"> <ax-text>Name</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"sortItemHandler('date')\"> <ax-text>Date</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"sortItemHandler('type')\"> <ax-text>Type</ax-text> </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n </ax-suffix>\n</ax-toolbar>\n\n<div [ngClass]=\"viewMode()\" class=\"ax-file-container\">\n @for (item of showData(); track item.id) {\n <ax-file-explorer-item\n id=\"ax-file-explore-item-ref\"\n (dbClick)=\"dbclickHandler(item)\"\n [data]=\"item\"\n [viewMode]=\"viewMode()\"\n ></ax-file-explorer-item>\n }\n</div>\n<ax-context-menu\n target=\"#ax-file-explore-item-ref\"\n orientation=\"vertical\"\n (onOpening)=\"handleContextMenuOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n>\n</ax-context-menu>\n", styles: ["ax-file-explorer-view{flex-grow:1}ax-file-explorer-view .ax-file-container.ax-large-icon,ax-file-explorer-view .ax-file-container.ax-small-icon{display:flex;flex-wrap:wrap;padding:.5rem;overflow:auto;gap:.6rem}ax-file-explorer-view .ax-file-container.ax-list-icon{overflow:auto;height:100%;padding:.5rem}ax-file-explorer-view ax-toolbar{border-bottom:1px solid rgb(var(--ax-color-input-border));width:100%;justify-content:space-between}ax-file-explorer-view ax-toolbar ax-menu.ax-action-list-horizontal{min-width:fit-content}ax-file-explorer-view ax-toolbar ax-prefix{flex-wrap:nowrap}\n"] }]
185
- }] });
186
-
187
- const COMPONENT = [
188
- AXFileExplorerContainerComponent,
189
- AXFileExplorerViewComponent,
190
- AXFileExplorerItemComponent,
191
- ];
192
- const MODULES = [
193
- AXDecoratorModule,
194
- AXButtonModule,
195
- AXBreadcrumbsModule,
196
- CommonModule,
197
- AXToolBarModule,
198
- AXMenuModule,
199
- AXDrawerModule,
200
- ];
201
- class AXFileExplorerModule {
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
203
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, declarations: [AXFileExplorerContainerComponent,
204
- AXFileExplorerViewComponent,
205
- AXFileExplorerItemComponent], imports: [AXDecoratorModule,
206
- AXButtonModule,
207
- AXBreadcrumbsModule,
208
- CommonModule,
209
- AXToolBarModule,
210
- AXMenuModule,
211
- AXDrawerModule], exports: [AXFileExplorerContainerComponent,
212
- AXFileExplorerViewComponent,
213
- AXFileExplorerItemComponent] }); }
214
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, imports: [MODULES] }); }
215
- }
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, decorators: [{
217
- type: NgModule,
218
- args: [{
219
- declarations: [...COMPONENT],
220
- imports: [...MODULES],
221
- exports: [...COMPONENT],
222
- providers: [],
223
- }]
224
- }] });
225
-
226
- /**
227
- * Generated bundle index. Do not edit.
228
- */
229
-
230
- export { AXFileExplorerContainerComponent, AXFileExplorerItemComponent, AXFileExplorerModule, AXFileExplorerService, AXFileExplorerViewComponent };
231
- //# sourceMappingURL=acorex-components-file-explorer.mjs.map