@acorex/components 20.3.33 → 20.3.35

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.
@@ -23,8 +23,8 @@ type AXMediaViewerData = {
23
23
  name?: string;
24
24
  size?: string;
25
25
  type: 'image' | 'audio' | 'pdf' | 'video';
26
- url: string;
27
- thumbnailUrl?: string;
26
+ url: string | (() => Promise<string>);
27
+ thumbnailUrl?: string | (() => Promise<string>);
28
28
  tooltip?: string;
29
29
  };
30
30
  declare class AXMediaViewerBaseComponent {
@@ -41,7 +41,7 @@ declare class AXMediaViewerService {
41
41
  }
42
42
 
43
43
  type Thumbnail = {
44
- tubmnailImage: string;
44
+ thumbnailImage: string | (() => Promise<string>);
45
45
  svg: string;
46
46
  type: string;
47
47
  id: string;
@@ -113,19 +113,35 @@ declare class AXFileInfoComponent {
113
113
  }
114
114
 
115
115
  declare class AXImageViewerComponent extends AXMediaViewerBaseComponent {
116
+ #private;
117
+ protected hasError: i0.WritableSignal<boolean>;
118
+ protected src: i0.WritableSignal<any>;
119
+ protected handleImageError(): void;
116
120
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
117
121
  static ɵcmp: i0.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
118
122
  }
119
123
 
120
124
  declare class PdfComponent extends AXMediaViewerBaseComponent {
125
+ #private;
121
126
  sanitizer: DomSanitizer;
127
+ protected src: i0.WritableSignal<any>;
122
128
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
123
129
  static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
124
130
  }
125
131
 
132
+ declare class AXThumbnailViewerComponent extends AXMediaViewerBaseComponent {
133
+ #private;
134
+ protected hasError: i0.WritableSignal<boolean>;
135
+ protected src: i0.WritableSignal<any>;
136
+ item: i0.InputSignal<string | (() => Promise<string>)>;
137
+ protected handleImageError(): void;
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXThumbnailViewerComponent, never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXThumbnailViewerComponent, "ax-thumbnail-viewer", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
140
+ }
141
+
126
142
  declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
127
- dataObject: i0.WritableSignal<AXMediaViewerData>;
128
- constructor();
143
+ #private;
144
+ protected src: i0.WritableSignal<any>;
129
145
  static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
130
146
  static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
131
147
  }
@@ -138,9 +154,9 @@ declare class AXMediaViewerModule {
138
154
  static forRoot(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
139
155
  static forChild(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
140
156
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerModule, never>;
141
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, never, [typeof i1.CommonModule, typeof i2.AXButtonModule, typeof i3.AXDecoratorModule, typeof i4.CdkPortalOutlet, typeof i5.FormsModule, typeof i6.AXImageModule, typeof i7.AXLoadingModule, typeof i8.AXCarouselDirective, typeof i9.AXPdfReaderModule, typeof i10.AXVideoPlayerModule, typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent], [typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent]>;
157
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, never, [typeof i1.CommonModule, typeof i2.AXButtonModule, typeof i3.AXDecoratorModule, typeof i4.CdkPortalOutlet, typeof i5.FormsModule, typeof i6.AXImageModule, typeof i7.AXLoadingModule, typeof i8.AXCarouselDirective, typeof i9.AXPdfReaderModule, typeof i10.AXVideoPlayerModule, typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent, typeof AXThumbnailViewerComponent], [typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent, typeof AXThumbnailViewerComponent]>;
142
158
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMediaViewerModule>;
143
159
  }
144
160
 
145
- export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, PdfComponent, VideoPlayerComponent };
161
+ export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, AXThumbnailViewerComponent, PdfComponent, VideoPlayerComponent };
146
162
  export type { AXMediaViewerData, AXMediaViewerModuleConfig, AXMediaViewerType };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.3.33",
3
+ "version": "20.3.35",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.3.33",
6
- "@acorex/cdk": "20.3.33",
5
+ "@acorex/core": "20.3.35",
6
+ "@acorex/cdk": "20.3.35",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
@@ -109,14 +109,14 @@
109
109
  "types": "./button/index.d.ts",
110
110
  "default": "./fesm2022/acorex-components-button.mjs"
111
111
  },
112
- "./button-group": {
113
- "types": "./button-group/index.d.ts",
114
- "default": "./fesm2022/acorex-components-button-group.mjs"
115
- },
116
112
  "./calendar": {
117
113
  "types": "./calendar/index.d.ts",
118
114
  "default": "./fesm2022/acorex-components-calendar.mjs"
119
115
  },
116
+ "./button-group": {
117
+ "types": "./button-group/index.d.ts",
118
+ "default": "./fesm2022/acorex-components-button-group.mjs"
119
+ },
120
120
  "./check-box": {
121
121
  "types": "./check-box/index.d.ts",
122
122
  "default": "./fesm2022/acorex-components-check-box.mjs"
@@ -134,6 +134,12 @@ interface AXTreeViewItemTemplateContext {
134
134
  value: boolean | null;
135
135
  isUserInteraction: boolean;
136
136
  }) => void;
137
+ /** Whether drag is enabled for this tree (dragBehavior !== 'none') */
138
+ dragEnabled: boolean;
139
+ /** The drag area mode: 'handler' (drag handle) or 'item' (full item) */
140
+ dragArea: AXTreeViewDragArea;
141
+ /** Whether the drag handle should be shown (dragArea === 'handler' && dragBehavior !== 'none') */
142
+ showDragHandle: boolean;
137
143
  }
138
144
  type AXTreeViewViewLook = 'default' | 'card' | 'with-line';
139
145
  type AXTreeViewDragArea = 'handler' | 'item';