@acorex/components 20.10.2 → 20.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
- import * as _acorex_core_components from '@acorex/core/components';
2
- import { AXComponentContent, AXComponentInputs } from '@acorex/core/components';
3
1
  import * as _angular_core from '@angular/core';
4
2
  import { OnDestroy, TemplateRef, Type, Provider } from '@angular/core';
3
+ import { AXComponentContent, AXComponentInputs } from '@acorex/core/components';
5
4
  import { Subject } from 'rxjs';
6
5
  import { AXStyleColorType, AXComponentClosedPromise } from '@acorex/cdk/common';
7
6
  import * as _acorex_core_file from '@acorex/core/file';
@@ -27,18 +26,6 @@ interface AXFileViewerViewPayload {
27
26
  index: number;
28
27
  active: boolean;
29
28
  }
30
- /** Component or template rendered in the file-viewer header center slot. */
31
- type AXFileViewerHeaderContent = AXComponentContent;
32
- /** Inputs passed to {@link AXFileViewerHeaderContent} when it is a component. */
33
- type AXFileViewerHeaderContentInputs = AXComponentInputs;
34
- /** Placeholder component or template shown in the center when {@link AXFileViewerHeaderContent} is omitted. */
35
- type AXFileViewerHeaderPlaceholderContent = AXComponentContent;
36
- /** Inputs passed to the header placeholder when it is a component. */
37
- type AXFileViewerHeaderPlaceholderInputs = AXComponentInputs;
38
- /** Component or template rendered instead of the built-in fallback viewer for `file` type items. */
39
- type AXFileViewerFallbackContent = AXComponentContent;
40
- /** Inputs passed to {@link AXFileViewerFallbackContent} when it is a component. */
41
- type AXFileViewerFallbackContentInputs = AXComponentInputs;
42
29
 
43
30
  /** Carousel state shared between container, slides and thumbnails. Provided per-container. */
44
31
  declare class AXFileViewerService {
@@ -66,22 +53,10 @@ declare class AXFileViewerContainerComponent implements OnDestroy {
66
53
  readonly fullscreen: _angular_core.InputSignal<boolean>;
67
54
  /** When true, opens in a gallery overlay and closes when fullscreen exits. */
68
55
  readonly galleryMode: _angular_core.InputSignal<boolean>;
69
- /** Component or template rendered in the header center slot. */
70
- readonly headerContent: _angular_core.InputSignal<AXFileViewerHeaderContent>;
71
- /** Inputs for {@link headerContent} when it is a component. */
72
- readonly headerContentInputs: _angular_core.InputSignal<_acorex_core_components.AXComponentInputs>;
73
- /** Context data exposed as `$implicit` to header templates. */
74
- readonly headerContentData: _angular_core.InputSignal<unknown>;
75
- /** Custom placeholder when {@link headerContent} is omitted. */
76
- readonly headerContentPlaceholder: _angular_core.InputSignal<AXFileViewerHeaderPlaceholderContent>;
77
- /** Inputs for {@link headerContentPlaceholder} when it is a component. */
78
- readonly headerContentPlaceholderInputs: _angular_core.InputSignal<_acorex_core_components.AXComponentInputs>;
79
- /** Component or template replacing the built-in fallback viewer for `file` type items. */
80
- readonly fallbackContent: _angular_core.InputSignal<AXFileViewerFallbackContent>;
81
- /** Inputs for {@link fallbackContent} when it is a component. */
82
- readonly fallbackContentInputs: _angular_core.InputSignal<_acorex_core_components.AXComponentInputs>;
83
- /** Context data exposed as `$implicit` to fallback templates. */
84
- readonly fallbackContentData: _angular_core.InputSignal<unknown>;
56
+ readonly headerContent: _angular_core.InputSignal<AXComponentContent>;
57
+ readonly headerContentInputs: _angular_core.InputSignal<AXComponentInputs>;
58
+ readonly fallbackContent: _angular_core.InputSignal<AXComponentContent>;
59
+ readonly fallbackContentInputs: _angular_core.InputSignal<AXComponentInputs>;
85
60
  /** External loading flag — show overlay while parent data is being fetched. */
86
61
  readonly loading: _angular_core.InputSignal<boolean>;
87
62
  readonly fullscreenClosed: _angular_core.OutputEmitterRef<void>;
@@ -104,11 +79,8 @@ declare class AXFileViewerContainerComponent implements OnDestroy {
104
79
  readonly slideCounter: _angular_core.Signal<string>;
105
80
  readonly headerTemplateContent: _angular_core.Signal<TemplateRef<any>>;
106
81
  readonly headerComponentContent: _angular_core.Signal<Type<unknown>>;
107
- readonly headerPlaceholderTemplateContent: _angular_core.Signal<TemplateRef<any>>;
108
- readonly headerPlaceholderComponentContent: _angular_core.Signal<Type<unknown>>;
109
82
  readonly hasHeaderCenterContent: _angular_core.Signal<boolean>;
110
83
  readonly headerContentContext: _angular_core.Signal<{
111
- $implicit: unknown;
112
84
  item: AXFileViewerItem;
113
85
  items: AXFileViewerItem[];
114
86
  selectedIndex: number;
@@ -132,7 +104,7 @@ declare class AXFileViewerContainerComponent implements OnDestroy {
132
104
  downloadCurrent(): Promise<void>;
133
105
  ngOnDestroy(): void;
134
106
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFileViewerContainerComponent, never>;
135
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileViewerContainerComponent, "ax-file-viewer-container", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "startIndex": { "alias": "startIndex"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "download": { "alias": "download"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; "galleryMode": { "alias": "galleryMode"; "required": false; "isSignal": true; }; "headerContent": { "alias": "headerContent"; "required": false; "isSignal": true; }; "headerContentInputs": { "alias": "headerContentInputs"; "required": false; "isSignal": true; }; "headerContentData": { "alias": "headerContentData"; "required": false; "isSignal": true; }; "headerContentPlaceholder": { "alias": "headerContentPlaceholder"; "required": false; "isSignal": true; }; "headerContentPlaceholderInputs": { "alias": "headerContentPlaceholderInputs"; "required": false; "isSignal": true; }; "fallbackContent": { "alias": "fallbackContent"; "required": false; "isSignal": true; }; "fallbackContentInputs": { "alias": "fallbackContentInputs"; "required": false; "isSignal": true; }; "fallbackContentData": { "alias": "fallbackContentData"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "fullscreenClosed": "fullscreenClosed"; }, never, never, true, never>;
107
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileViewerContainerComponent, "ax-file-viewer-container", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "startIndex": { "alias": "startIndex"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "download": { "alias": "download"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; "galleryMode": { "alias": "galleryMode"; "required": false; "isSignal": true; }; "headerContent": { "alias": "headerContent"; "required": false; "isSignal": true; }; "headerContentInputs": { "alias": "headerContentInputs"; "required": false; "isSignal": true; }; "fallbackContent": { "alias": "fallbackContent"; "required": false; "isSignal": true; }; "fallbackContentInputs": { "alias": "fallbackContentInputs"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "fullscreenClosed": "fullscreenClosed"; }, never, never, true, never>;
136
108
  }
137
109
 
138
110
  interface AXFileViewerGalleryConfig {
@@ -142,14 +114,10 @@ interface AXFileViewerGalleryConfig {
142
114
  download?: boolean;
143
115
  loading?: boolean;
144
116
  panelClass?: string[];
145
- headerContent?: AXFileViewerHeaderContent | null;
146
- headerContentInputs?: AXFileViewerHeaderContentInputs;
147
- headerContentData?: unknown;
148
- headerContentPlaceholder?: AXFileViewerHeaderPlaceholderContent | null;
149
- headerContentPlaceholderInputs?: AXFileViewerHeaderPlaceholderInputs;
150
- fallbackContent?: AXFileViewerFallbackContent | null;
151
- fallbackContentInputs?: AXFileViewerFallbackContentInputs;
152
- fallbackContentData?: unknown;
117
+ headerContent?: AXComponentContent | null;
118
+ headerContentInputs?: AXComponentInputs | null;
119
+ fallbackContent?: AXComponentContent | null;
120
+ fallbackContentInputs?: AXComponentInputs | null;
153
121
  }
154
122
  interface AXFileViewerGalleryRef<TResult = any> {
155
123
  close: (data?: TResult) => void;
@@ -196,7 +164,7 @@ declare function provideFileViewer(): Provider[];
196
164
 
197
165
  declare function createFileViewerFileTypes(): AXFileType[];
198
166
 
199
- /** Optional center header slot component for use with {@link headerContentPlaceholder}. */
167
+ /** Optional center header slot component for use with {@link headerContent}. */
200
168
  declare class AXFileViewerHeaderPlaceholderComponent {
201
169
  readonly slideCounter: _angular_core.InputSignal<string>;
202
170
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFileViewerHeaderPlaceholderComponent, never>;
@@ -206,12 +174,8 @@ declare class AXFileViewerHeaderPlaceholderComponent {
206
174
  declare class AXFileViewerSlideComponent {
207
175
  readonly item: _angular_core.InputSignal<AXFileViewerItem>;
208
176
  readonly index: _angular_core.InputSignal<number>;
209
- /** Component or template replacing the built-in fallback viewer for `file` type items. */
210
- readonly fallbackContent: _angular_core.InputSignal<AXFileViewerFallbackContent>;
211
- /** Inputs for {@link fallbackContent} when it is a component. */
212
- readonly fallbackContentInputs: _angular_core.InputSignal<_acorex_core_components.AXComponentInputs>;
213
- /** Context data exposed as `$implicit` to fallback templates. */
214
- readonly fallbackContentData: _angular_core.InputSignal<unknown>;
177
+ readonly fallbackContent: _angular_core.InputSignal<AXComponentContent>;
178
+ readonly fallbackContentInputs: _angular_core.InputSignal<AXComponentInputs>;
215
179
  private readonly service;
216
180
  readonly fileTypeName: _angular_core.Signal<string>;
217
181
  readonly extensionHint: _angular_core.Signal<_acorex_core_file.AXFileTypeExtensionHint>;
@@ -220,7 +184,6 @@ declare class AXFileViewerSlideComponent {
220
184
  readonly fallbackComponentContent: _angular_core.Signal<Type<unknown>>;
221
185
  readonly useCustomFallback: _angular_core.Signal<boolean>;
222
186
  readonly fallbackContentContext: _angular_core.Signal<{
223
- $implicit: unknown;
224
187
  payload: AXFileViewerViewPayload;
225
188
  item: AXFileViewerItem;
226
189
  index: number;
@@ -230,7 +193,7 @@ declare class AXFileViewerSlideComponent {
230
193
  payload: AXFileViewerViewPayload;
231
194
  }>;
232
195
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFileViewerSlideComponent, never>;
233
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileViewerSlideComponent, "ax-file-viewer-slide", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "index": { "alias": "index"; "required": true; "isSignal": true; }; "fallbackContent": { "alias": "fallbackContent"; "required": false; "isSignal": true; }; "fallbackContentInputs": { "alias": "fallbackContentInputs"; "required": false; "isSignal": true; }; "fallbackContentData": { "alias": "fallbackContentData"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
196
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileViewerSlideComponent, "ax-file-viewer-slide", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "index": { "alias": "index"; "required": true; "isSignal": true; }; "fallbackContent": { "alias": "fallbackContent"; "required": false; "isSignal": true; }; "fallbackContentInputs": { "alias": "fallbackContentInputs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
234
197
  }
235
198
 
236
199
  declare class AXFileViewerThumbPreviewComponent {
@@ -306,4 +269,4 @@ declare class AXFileViewerFileFallbackComponent implements AXFileTypeViewCompone
306
269
  }
307
270
 
308
271
  export { AXFileViewerAudioComponent, AXFileViewerContainerComponent, AXFileViewerFileFallbackComponent, AXFileViewerGalleryService, AXFileViewerHeaderPlaceholderComponent, AXFileViewerImageComponent, AXFileViewerPdfComponent, AXFileViewerService, AXFileViewerSlideComponent, AXFileViewerThumbPreviewComponent, AXFileViewerThumbnailsComponent, AXFileViewerVideoComponent, buildFileViewerExtensionHint, createFileViewerFileTypes, provideFileViewer, resolveFileViewerFileType };
309
- export type { AXFileViewerFallbackContent, AXFileViewerFallbackContentInputs, AXFileViewerGalleryConfig, AXFileViewerGalleryRef, AXFileViewerHeaderContent, AXFileViewerHeaderContentInputs, AXFileViewerHeaderPlaceholderContent, AXFileViewerHeaderPlaceholderInputs, AXFileViewerItem, AXFileViewerViewPayload };
272
+ export type { AXFileViewerGalleryConfig, AXFileViewerGalleryRef, AXFileViewerItem, AXFileViewerViewPayload };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.10.2",
3
+ "version": "20.10.3",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.10.2",
6
- "@acorex/cdk": "20.10.2",
5
+ "@acorex/core": "20.10.3",
6
+ "@acorex/cdk": "20.10.3",
7
7
  "polytype": ">=0.17.0",
8
8
  "angular-imask": ">=7.6.1",
9
9
  "imask": ">=7.6.1",
@@ -61,6 +61,10 @@
61
61
  "types": "./accordion/index.d.ts",
62
62
  "default": "./fesm2022/acorex-components-accordion.mjs"
63
63
  },
64
+ "./action-sheet": {
65
+ "types": "./action-sheet/index.d.ts",
66
+ "default": "./fesm2022/acorex-components-action-sheet.mjs"
67
+ },
64
68
  "./alert": {
65
69
  "types": "./alert/index.d.ts",
66
70
  "default": "./fesm2022/acorex-components-alert.mjs"
@@ -73,10 +77,6 @@
73
77
  "types": "./audio-wave/index.d.ts",
74
78
  "default": "./fesm2022/acorex-components-audio-wave.mjs"
75
79
  },
76
- "./action-sheet": {
77
- "types": "./action-sheet/index.d.ts",
78
- "default": "./fesm2022/acorex-components-action-sheet.mjs"
79
- },
80
80
  "./autocomplete": {
81
81
  "types": "./autocomplete/index.d.ts",
82
82
  "default": "./fesm2022/acorex-components-autocomplete.mjs"
@@ -325,14 +325,14 @@
325
325
  "types": "./picker/index.d.ts",
326
326
  "default": "./fesm2022/acorex-components-picker.mjs"
327
327
  },
328
- "./popup": {
329
- "types": "./popup/index.d.ts",
330
- "default": "./fesm2022/acorex-components-popup.mjs"
331
- },
332
328
  "./popover": {
333
329
  "types": "./popover/index.d.ts",
334
330
  "default": "./fesm2022/acorex-components-popover.mjs"
335
331
  },
332
+ "./popup": {
333
+ "types": "./popup/index.d.ts",
334
+ "default": "./fesm2022/acorex-components-popup.mjs"
335
+ },
336
336
  "./progress-bar": {
337
337
  "types": "./progress-bar/index.d.ts",
338
338
  "default": "./fesm2022/acorex-components-progress-bar.mjs"
@@ -345,14 +345,14 @@
345
345
  "types": "./query-builder/index.d.ts",
346
346
  "default": "./fesm2022/acorex-components-query-builder.mjs"
347
347
  },
348
- "./rail-navigation": {
349
- "types": "./rail-navigation/index.d.ts",
350
- "default": "./fesm2022/acorex-components-rail-navigation.mjs"
351
- },
352
348
  "./radio": {
353
349
  "types": "./radio/index.d.ts",
354
350
  "default": "./fesm2022/acorex-components-radio.mjs"
355
351
  },
352
+ "./rail-navigation": {
353
+ "types": "./rail-navigation/index.d.ts",
354
+ "default": "./fesm2022/acorex-components-rail-navigation.mjs"
355
+ },
356
356
  "./range-slider": {
357
357
  "types": "./range-slider/index.d.ts",
358
358
  "default": "./fesm2022/acorex-components-range-slider.mjs"
@@ -421,10 +421,6 @@
421
421
  "types": "./sliding-item/index.d.ts",
422
422
  "default": "./fesm2022/acorex-components-sliding-item.mjs"
423
423
  },
424
- "./step-wizard": {
425
- "types": "./step-wizard/index.d.ts",
426
- "default": "./fesm2022/acorex-components-step-wizard.mjs"
427
- },
428
424
  "./switch": {
429
425
  "types": "./switch/index.d.ts",
430
426
  "default": "./fesm2022/acorex-components-switch.mjs"
@@ -433,14 +429,14 @@
433
429
  "types": "./tabs/index.d.ts",
434
430
  "default": "./fesm2022/acorex-components-tabs.mjs"
435
431
  },
436
- "./tag-box": {
437
- "types": "./tag-box/index.d.ts",
438
- "default": "./fesm2022/acorex-components-tag-box.mjs"
439
- },
440
432
  "./tag": {
441
433
  "types": "./tag/index.d.ts",
442
434
  "default": "./fesm2022/acorex-components-tag.mjs"
443
435
  },
436
+ "./tag-box": {
437
+ "types": "./tag-box/index.d.ts",
438
+ "default": "./fesm2022/acorex-components-tag-box.mjs"
439
+ },
444
440
  "./text-area": {
445
441
  "types": "./text-area/index.d.ts",
446
442
  "default": "./fesm2022/acorex-components-text-area.mjs"
@@ -477,9 +473,9 @@
477
473
  "types": "./tree-view-legacy/index.d.ts",
478
474
  "default": "./fesm2022/acorex-components-tree-view-legacy.mjs"
479
475
  },
480
- "./uploader": {
481
- "types": "./uploader/index.d.ts",
482
- "default": "./fesm2022/acorex-components-uploader.mjs"
476
+ "./step-wizard": {
477
+ "types": "./step-wizard/index.d.ts",
478
+ "default": "./fesm2022/acorex-components-step-wizard.mjs"
483
479
  },
484
480
  "./video-player": {
485
481
  "types": "./video-player/index.d.ts",
@@ -488,6 +484,10 @@
488
484
  "./wysiwyg": {
489
485
  "types": "./wysiwyg/index.d.ts",
490
486
  "default": "./fesm2022/acorex-components-wysiwyg.mjs"
487
+ },
488
+ "./uploader": {
489
+ "types": "./uploader/index.d.ts",
490
+ "default": "./fesm2022/acorex-components-uploader.mjs"
491
491
  }
492
492
  }
493
493
  }