@acorex/components 20.3.34 → 20.3.36

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,12 +23,15 @@ 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 {
31
- message: AXMediaViewerData;
31
+ message: {
32
+ data: AXMediaViewerData;
33
+ index: number;
34
+ };
32
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerBaseComponent, never>;
33
36
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerBaseComponent>;
34
37
  }
@@ -36,12 +39,13 @@ declare class AXMediaViewerBaseComponent {
36
39
  declare class AXMediaViewerService {
37
40
  dataArray: i0.WritableSignal<AXMediaViewerData[]>;
38
41
  selectedIndex: i0.WritableSignal<number>;
42
+ dirtyItems: Map<any, any>;
39
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerService, never>;
40
44
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerService>;
41
45
  }
42
46
 
43
47
  type Thumbnail = {
44
- tubmnailImage: string;
48
+ thumbnailImage: string | (() => Promise<string>);
45
49
  svg: string;
46
50
  type: string;
47
51
  id: string;
@@ -88,6 +92,7 @@ declare class AXMediaViewerSliderComponent {
88
92
  #private;
89
93
  protected service: AXMediaViewerService;
90
94
  dataObject: i0.InputSignal<AXMediaViewerData>;
95
+ index: i0.InputSignal<unknown>;
91
96
  /** @ignore */
92
97
  protected portal: i0.WritableSignal<ComponentPortal<any>>;
93
98
  /** @ignore */
@@ -95,12 +100,13 @@ declare class AXMediaViewerSliderComponent {
95
100
  /** @ignore */
96
101
  protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
97
102
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerSliderComponent, never>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
99
104
  }
100
105
 
101
106
  declare class AXAudioPlayerComponent extends AXMediaViewerBaseComponent {
102
- dataObject: i0.WritableSignal<AXMediaViewerData>;
103
- constructor();
107
+ #private;
108
+ protected src: i0.WritableSignal<any>;
109
+ protected service: AXMediaViewerService;
104
110
  static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioPlayerComponent, never>;
105
111
  static ɵcmp: i0.ɵɵComponentDeclaration<AXAudioPlayerComponent, "ax-audio-player", never, {}, {}, never, never, true, never>;
106
112
  }
@@ -113,21 +119,38 @@ declare class AXFileInfoComponent {
113
119
  }
114
120
 
115
121
  declare class AXImageViewerComponent extends AXMediaViewerBaseComponent {
122
+ #private;
116
123
  protected hasError: i0.WritableSignal<boolean>;
124
+ protected src: i0.WritableSignal<any>;
125
+ protected service: AXMediaViewerService;
117
126
  protected handleImageError(): void;
118
127
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
119
128
  static ɵcmp: i0.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
120
129
  }
121
130
 
122
131
  declare class PdfComponent extends AXMediaViewerBaseComponent {
132
+ #private;
123
133
  sanitizer: DomSanitizer;
134
+ protected src: i0.WritableSignal<any>;
135
+ protected service: AXMediaViewerService;
124
136
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
125
137
  static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
126
138
  }
127
139
 
140
+ declare class AXThumbnailViewerComponent extends AXMediaViewerBaseComponent {
141
+ #private;
142
+ protected hasError: i0.WritableSignal<boolean>;
143
+ protected src: i0.WritableSignal<any>;
144
+ item: i0.InputSignal<string | (() => Promise<string>)>;
145
+ protected handleImageError(): void;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXThumbnailViewerComponent, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXThumbnailViewerComponent, "ax-thumbnail-viewer", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
148
+ }
149
+
128
150
  declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
129
- dataObject: i0.WritableSignal<AXMediaViewerData>;
130
- constructor();
151
+ #private;
152
+ protected src: i0.WritableSignal<any>;
153
+ protected service: AXMediaViewerService;
131
154
  static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
132
155
  static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
133
156
  }
@@ -140,9 +163,9 @@ declare class AXMediaViewerModule {
140
163
  static forRoot(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
141
164
  static forChild(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
142
165
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerModule, never>;
143
- 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]>;
166
+ 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]>;
144
167
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMediaViewerModule>;
145
168
  }
146
169
 
147
- export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, PdfComponent, VideoPlayerComponent };
170
+ export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, AXThumbnailViewerComponent, PdfComponent, VideoPlayerComponent };
148
171
  export type { AXMediaViewerData, AXMediaViewerModuleConfig, AXMediaViewerType };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.3.34",
3
+ "version": "20.3.36",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.3.34",
6
- "@acorex/cdk": "20.3.34",
5
+ "@acorex/core": "20.3.36",
6
+ "@acorex/cdk": "20.3.36",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
@@ -185,6 +185,10 @@
185
185
  "types": "./datetime-input/index.d.ts",
186
186
  "default": "./fesm2022/acorex-components-datetime-input.mjs"
187
187
  },
188
+ "./datetime-picker": {
189
+ "types": "./datetime-picker/index.d.ts",
190
+ "default": "./fesm2022/acorex-components-datetime-picker.mjs"
191
+ },
188
192
  "./decorators": {
189
193
  "types": "./decorators/index.d.ts",
190
194
  "default": "./fesm2022/acorex-components-decorators.mjs"
@@ -205,10 +209,6 @@
205
209
  "types": "./dropdown/index.d.ts",
206
210
  "default": "./fesm2022/acorex-components-dropdown.mjs"
207
211
  },
208
- "./datetime-picker": {
209
- "types": "./datetime-picker/index.d.ts",
210
- "default": "./fesm2022/acorex-components-datetime-picker.mjs"
211
- },
212
212
  "./dropdown-button": {
213
213
  "types": "./dropdown-button/index.d.ts",
214
214
  "default": "./fesm2022/acorex-components-dropdown-button.mjs"
@@ -217,14 +217,14 @@
217
217
  "types": "./editor/index.d.ts",
218
218
  "default": "./fesm2022/acorex-components-editor.mjs"
219
219
  },
220
- "./flow-chart": {
221
- "types": "./flow-chart/index.d.ts",
222
- "default": "./fesm2022/acorex-components-flow-chart.mjs"
223
- },
224
220
  "./file-explorer": {
225
221
  "types": "./file-explorer/index.d.ts",
226
222
  "default": "./fesm2022/acorex-components-file-explorer.mjs"
227
223
  },
224
+ "./flow-chart": {
225
+ "types": "./flow-chart/index.d.ts",
226
+ "default": "./fesm2022/acorex-components-flow-chart.mjs"
227
+ },
228
228
  "./form": {
229
229
  "types": "./form/index.d.ts",
230
230
  "default": "./fesm2022/acorex-components-form.mjs"
@@ -241,14 +241,14 @@
241
241
  "types": "./image-editor/index.d.ts",
242
242
  "default": "./fesm2022/acorex-components-image-editor.mjs"
243
243
  },
244
- "./kanban": {
245
- "types": "./kanban/index.d.ts",
246
- "default": "./fesm2022/acorex-components-kanban.mjs"
247
- },
248
244
  "./json-viewer": {
249
245
  "types": "./json-viewer/index.d.ts",
250
246
  "default": "./fesm2022/acorex-components-json-viewer.mjs"
251
247
  },
248
+ "./kanban": {
249
+ "types": "./kanban/index.d.ts",
250
+ "default": "./fesm2022/acorex-components-kanban.mjs"
251
+ },
252
252
  "./kbd": {
253
253
  "types": "./kbd/index.d.ts",
254
254
  "default": "./fesm2022/acorex-components-kbd.mjs"
@@ -357,14 +357,14 @@
357
357
  "types": "./rail-navigation/index.d.ts",
358
358
  "default": "./fesm2022/acorex-components-rail-navigation.mjs"
359
359
  },
360
- "./range-slider": {
361
- "types": "./range-slider/index.d.ts",
362
- "default": "./fesm2022/acorex-components-range-slider.mjs"
363
- },
364
360
  "./rate-picker": {
365
361
  "types": "./rate-picker/index.d.ts",
366
362
  "default": "./fesm2022/acorex-components-rate-picker.mjs"
367
363
  },
364
+ "./range-slider": {
365
+ "types": "./range-slider/index.d.ts",
366
+ "default": "./fesm2022/acorex-components-range-slider.mjs"
367
+ },
368
368
  "./rest-api-generator": {
369
369
  "types": "./rest-api-generator/index.d.ts",
370
370
  "default": "./fesm2022/acorex-components-rest-api-generator.mjs"
@@ -36,6 +36,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
36
36
  /** @ignore */
37
37
  private _disabled;
38
38
  readonly width: i0.InputSignal<string>;
39
+ readonly forceDisableActionSheetStyle: i0.InputSignal<boolean>;
39
40
  private translateService;
40
41
  /**
41
42
  * Gets or sets whether the popover is disabled.
@@ -240,7 +241,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
240
241
  /** @ignore */
241
242
  ngOnDestroy(): void;
242
243
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopoverComponent, never>;
243
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "repositionOnScroll": { "alias": "repositionOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
244
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "forceDisableActionSheetStyle": { "alias": "forceDisableActionSheetStyle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "repositionOnScroll": { "alias": "repositionOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
244
245
  }
245
246
 
246
247
  declare class AXPopoverModule {