@acorex/components 20.3.37 → 20.3.38

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.
@@ -1,5 +1,5 @@
1
1
  import * as swiper_types from 'swiper/types';
2
- import * as i0 from '@angular/core';
2
+ import * as _angular_core from '@angular/core';
3
3
  import { Type, OnDestroy, ModuleWithProviders } from '@angular/core';
4
4
  import { DomSanitizer } from '@angular/platform-browser';
5
5
  import * as i4 from '@angular/cdk/portal';
@@ -27,43 +27,44 @@ type AXMediaViewerData = {
27
27
  thumbnailUrl?: string | (() => Promise<string>);
28
28
  tooltip?: string;
29
29
  };
30
+ type AXThumbnail = {
31
+ thumbnailImage: string | (() => Promise<string>);
32
+ svg: string;
33
+ type: string;
34
+ id: string;
35
+ tooltip?: string;
36
+ index: number;
37
+ };
30
38
  declare class AXMediaViewerBaseComponent {
31
39
  message: {
32
40
  data: AXMediaViewerData;
33
41
  index: number;
34
42
  };
35
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerBaseComponent, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerBaseComponent>;
43
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerBaseComponent, never>;
44
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMediaViewerBaseComponent>;
37
45
  }
38
46
 
39
47
  declare class AXMediaViewerService {
40
- dataArray: i0.WritableSignal<AXMediaViewerData[]>;
41
- selectedIndex: i0.WritableSignal<number>;
48
+ dataArray: _angular_core.WritableSignal<AXMediaViewerData[]>;
49
+ selectedIndex: _angular_core.WritableSignal<number>;
42
50
  dirtyItems: Map<any, any>;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerService, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerService>;
51
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerService, never>;
52
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMediaViewerService>;
45
53
  }
46
54
 
47
- type Thumbnail = {
48
- thumbnailImage: string | (() => Promise<string>);
49
- svg: string;
50
- type: string;
51
- id: string;
52
- tooltip?: string;
53
- };
54
55
  declare class AXMediaViewerContainerComponent implements OnDestroy {
55
56
  #private;
56
- dataArray: i0.InputSignal<AXMediaViewerData[]>;
57
- thumbnail: i0.InputSignal<boolean>;
58
- pagination: i0.InputSignal<boolean>;
57
+ dataArray: _angular_core.InputSignal<AXMediaViewerData[]>;
58
+ thumbnail: _angular_core.InputSignal<boolean>;
59
+ pagination: _angular_core.InputSignal<boolean>;
59
60
  protected service: AXMediaViewerService;
60
61
  protected sanitizer: DomSanitizer;
61
62
  protected isMobile: boolean;
62
63
  private readonly elementRef;
63
- protected thumbnailArray: i0.WritableSignal<Thumbnail[]>;
64
- protected option: i0.WritableSignal<swiper_types.SwiperOptions>;
65
- protected thumbnailOption: i0.WritableSignal<swiper_types.SwiperOptions>;
66
- protected isFullScreen: i0.WritableSignal<boolean>;
64
+ protected thumbnailArray: _angular_core.WritableSignal<AXThumbnail[]>;
65
+ protected option: _angular_core.WritableSignal<swiper_types.SwiperOptions>;
66
+ protected thumbnailOption: _angular_core.WritableSignal<swiper_types.SwiperOptions>;
67
+ protected isFullScreen: _angular_core.WritableSignal<boolean>;
67
68
  private swiperRef;
68
69
  private swiperRef2;
69
70
  private fullScreenButton;
@@ -76,83 +77,89 @@ declare class AXMediaViewerContainerComponent implements OnDestroy {
76
77
  private interVal?;
77
78
  goToIndex(index: number, speed?: number): void;
78
79
  private init;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerContainerComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; }, {}, ["fullScreenButton"], ["ax-header", "ax-suffix", "ax-prefix"], true, never>;
80
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerContainerComponent, never>;
81
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; }, {}, ["fullScreenButton"], ["ax-header", "ax-suffix", "ax-prefix"], true, never>;
81
82
  }
82
83
 
83
84
  declare class AXMediaViewerTypeRegistryService {
84
85
  private plugins;
85
86
  register(...plugins: AXMediaViewerType[]): void;
86
87
  resolve(name: string): AXMediaViewerType | undefined;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerTypeRegistryService, never>;
88
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerTypeRegistryService>;
88
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerTypeRegistryService, never>;
89
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMediaViewerTypeRegistryService>;
89
90
  }
90
91
 
91
92
  declare class AXMediaViewerSliderComponent {
92
93
  #private;
93
94
  protected service: AXMediaViewerService;
94
- dataObject: i0.InputSignal<AXMediaViewerData>;
95
- index: i0.InputSignal<unknown>;
95
+ dataObject: _angular_core.InputSignal<AXMediaViewerData>;
96
+ index: _angular_core.InputSignal<unknown>;
96
97
  /** @ignore */
97
- protected portal: i0.WritableSignal<ComponentPortal<any>>;
98
+ protected portal: _angular_core.WritableSignal<ComponentPortal<any>>;
98
99
  /** @ignore */
99
100
  protected registryService: AXMediaViewerTypeRegistryService;
100
101
  /** @ignore */
101
102
  protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerSliderComponent, 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>;
103
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerSliderComponent, never>;
104
+ static ɵcmp: _angular_core.ɵɵ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>;
104
105
  }
105
106
 
106
107
  declare class AXAudioPlayerComponent extends AXMediaViewerBaseComponent {
107
108
  #private;
108
- protected src: i0.WritableSignal<any>;
109
+ protected src: _angular_core.WritableSignal<any>;
109
110
  protected service: AXMediaViewerService;
110
- static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioPlayerComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<AXAudioPlayerComponent, "ax-audio-player", never, {}, {}, never, never, true, never>;
111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXAudioPlayerComponent, never>;
112
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXAudioPlayerComponent, "ax-audio-player", never, {}, {}, never, never, true, never>;
112
113
  }
113
114
 
114
115
  declare class AXFileInfoComponent {
115
116
  protected service: AXMediaViewerService;
116
- protected infoData: i0.Signal<AXMediaViewerData>;
117
- static ɵfac: i0.ɵɵFactoryDeclaration<AXFileInfoComponent, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<AXFileInfoComponent, "ax-file-info", never, {}, {}, never, never, true, never>;
117
+ protected infoData: _angular_core.Signal<AXMediaViewerData>;
118
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFileInfoComponent, never>;
119
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileInfoComponent, "ax-file-info", never, {}, {}, never, never, true, never>;
119
120
  }
120
121
 
121
122
  declare class AXImageViewerComponent extends AXMediaViewerBaseComponent {
122
123
  #private;
123
- protected hasError: i0.WritableSignal<boolean>;
124
- protected src: i0.WritableSignal<any>;
124
+ protected hasError: _angular_core.WritableSignal<boolean>;
125
+ protected src: _angular_core.WritableSignal<any>;
125
126
  protected service: AXMediaViewerService;
127
+ protected loading: _angular_core.WritableSignal<boolean>;
126
128
  protected handleImageError(): void;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
128
- static ɵcmp: i0.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
129
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
130
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
129
131
  }
130
132
 
131
133
  declare class PdfComponent extends AXMediaViewerBaseComponent {
132
134
  #private;
133
135
  sanitizer: DomSanitizer;
134
- protected src: i0.WritableSignal<any>;
136
+ protected src: _angular_core.WritableSignal<any>;
135
137
  protected service: AXMediaViewerService;
136
- static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
137
- static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
138
+ protected loading: _angular_core.WritableSignal<boolean>;
139
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfComponent, never>;
140
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
138
141
  }
139
142
 
140
143
  declare class AXThumbnailViewerComponent extends AXMediaViewerBaseComponent {
141
144
  #private;
142
- protected hasError: i0.WritableSignal<boolean>;
143
- protected src: i0.WritableSignal<any>;
144
- item: i0.InputSignal<string | (() => Promise<string>)>;
145
+ protected hasError: _angular_core.WritableSignal<boolean>;
146
+ protected src: _angular_core.WritableSignal<any>;
147
+ item: _angular_core.InputSignal<string | (() => Promise<string>)>;
148
+ index: _angular_core.InputSignal<number>;
149
+ protected service: AXMediaViewerService;
150
+ protected loading: _angular_core.WritableSignal<boolean>;
145
151
  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>;
152
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXThumbnailViewerComponent, never>;
153
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXThumbnailViewerComponent, "ax-thumbnail-viewer", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
148
154
  }
149
155
 
150
156
  declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
151
157
  #private;
152
- protected src: i0.WritableSignal<any>;
158
+ protected src: _angular_core.WritableSignal<any>;
153
159
  protected service: AXMediaViewerService;
154
- static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
155
- static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
160
+ protected loading: _angular_core.WritableSignal<boolean>;
161
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
162
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
156
163
  }
157
164
 
158
165
  interface AXMediaViewerModuleConfig {
@@ -162,10 +169,10 @@ declare class AXMediaViewerModule {
162
169
  constructor();
163
170
  static forRoot(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
164
171
  static forChild(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
165
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerModule, never>;
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]>;
167
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMediaViewerModule>;
172
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMediaViewerModule, never>;
173
+ static ɵmod: _angular_core.ɵɵ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]>;
174
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMediaViewerModule>;
168
175
  }
169
176
 
170
177
  export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, AXThumbnailViewerComponent, PdfComponent, VideoPlayerComponent };
171
- export type { AXMediaViewerData, AXMediaViewerModuleConfig, AXMediaViewerType };
178
+ export type { AXMediaViewerData, AXMediaViewerModuleConfig, AXMediaViewerType, AXThumbnail };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.3.37",
3
+ "version": "20.3.38",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.3.37",
6
- "@acorex/cdk": "20.3.37",
5
+ "@acorex/core": "20.3.38",
6
+ "@acorex/cdk": "20.3.38",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",