@acorex/components 19.2.0 → 19.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/common/lib/classes/components.class.d.ts +1 -0
- package/decorators/lib/components/close-button.component.d.ts +2 -1
- package/fesm2022/acorex-components-action-sheet.mjs +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +7 -5
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +2 -2
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +21 -5
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +286 -23
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +245 -75
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +1 -1
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +39 -0
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -0
- package/fesm2022/acorex-components-popup.mjs +1 -1
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +1 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +5 -3
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +13 -12
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +136 -123
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +37 -0
- package/fesm2022/acorex-components-video-player.mjs.map +1 -0
- package/grid-layout-builder/lib/grid-layout-container.component.d.ts +183 -1
- package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +84 -1
- package/media-viewer/index.d.ts +0 -1
- package/media-viewer/lib/media-viewer-container/media-viewer-container.component.d.ts +21 -6
- package/media-viewer/lib/media-viewer-tools/file-info/file-info.component.d.ts +1 -2
- package/media-viewer/lib/media-viewer-tools/pdf-reader/pdf-reader.component.d.ts +3 -3
- package/media-viewer/lib/media-viewer-tools/video-player/video-player.component.d.ts +3 -3
- package/media-viewer/lib/media-viewer.module.d.ts +17 -15
- package/package.json +9 -1
- package/pdf-reader/README.md +3 -0
- package/pdf-reader/index.d.ts +2 -0
- package/pdf-reader/lib/pdf-reader/pdf-reader.component.d.ts +8 -0
- package/pdf-reader/lib/pdf-reader.module.d.ts +7 -0
- package/tabs/lib/tabs.class.d.ts +1 -1
- package/toast/lib/toast.class.d.ts +1 -0
- package/toast/lib/toast.component.d.ts +4 -0
- package/toast/lib/toast.service.d.ts +3 -4
- package/video-player/README.md +3 -0
- package/video-player/index.d.ts +2 -0
- package/video-player/lib/video-player/video-player.component.d.ts +6 -0
- package/video-player/lib/video-player.module.d.ts +7 -0
- package/media-viewer/lib/media-viewer-thumbnail/media-viewer-thumbnail.component.d.ts +0 -11
@@ -1,51 +1,233 @@
|
|
1
1
|
import { AXGridLayout, AXGridLayoutDroppedEvent, AXGridLayoutElementEvent, AXGridLayoutEventEvent, AXGridLayoutNode, AXGridLayoutNodesEvent, AXGridLayoutOptions, AXGridLayoutWidget, AXGridLayoutWidgetCompElement, AXSaveCallback } from './types';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* The `AXGridLayoutContainerComponent` is an Angular component that acts as a wrapper for the GridStack library.
|
5
|
+
* It provides a flexible grid layout system for arranging items within a container. It integrates with GridStack.js
|
6
|
+
* and allows dynamic manipulation of grid items (widgets), including adding, removing, resizing, and dragging.
|
7
|
+
*
|
8
|
+
* This component uses Angular's reactive signals, outputs, and lifecycle hooks to manage grid state and interactions.
|
9
|
+
*/
|
3
10
|
export declare class AXGridLayoutContainerComponent {
|
11
|
+
private serializedData?;
|
12
|
+
/**
|
13
|
+
* Content children elements of type `AXGridLayoutWidgetComponent` that are dynamically managed within the grid.
|
14
|
+
*/
|
4
15
|
private items;
|
16
|
+
/**
|
17
|
+
* Input that holds options for configuring the GridStack grid layout.
|
18
|
+
*/
|
5
19
|
options: import("@angular/core").InputSignal<import("gridstack").GridStackOptions>;
|
20
|
+
/**
|
21
|
+
* A computed signal that merges the provided `options` with the grid's existing configuration (if any).
|
22
|
+
*/
|
6
23
|
private calcOptions;
|
24
|
+
/**
|
25
|
+
* A reference to the native element of the container component.
|
26
|
+
*/
|
7
27
|
private readonly elementRef;
|
28
|
+
/**
|
29
|
+
* Angular's NgZone for running code outside Angular's change detection.
|
30
|
+
*/
|
8
31
|
private ngZone;
|
32
|
+
/**
|
33
|
+
* A writable signal representing the current state of the grid.
|
34
|
+
*/
|
9
35
|
private grid;
|
36
|
+
/**
|
37
|
+
* Flag indicating whether the grid has been loaded with content.
|
38
|
+
*/
|
10
39
|
private loaded?;
|
40
|
+
/**
|
41
|
+
* A reference to the native element representing the grid container.
|
42
|
+
*/
|
11
43
|
private el;
|
44
|
+
/**
|
45
|
+
* Output event emitted when a widget is added to the grid.
|
46
|
+
*/
|
12
47
|
protected onAdded: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
48
|
+
/**
|
49
|
+
* Output event emitted when a widget or layout is changed.
|
50
|
+
*/
|
13
51
|
protected onChange: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
52
|
+
/**
|
53
|
+
* Output event emitted when the grid is disabled.
|
54
|
+
*/
|
14
55
|
protected onDisable: import("@angular/core").OutputEmitterRef<AXGridLayoutEventEvent>;
|
56
|
+
/**
|
57
|
+
* Output event emitted during a drag operation on a widget.
|
58
|
+
*/
|
15
59
|
protected onDrag: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
60
|
+
/**
|
61
|
+
* Output event emitted when drag starts on a widget.
|
62
|
+
*/
|
16
63
|
protected onDragStart: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
64
|
+
/**
|
65
|
+
* Output event emitted when drag stops on a widget.
|
66
|
+
*/
|
17
67
|
protected onDragStop: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
68
|
+
/**
|
69
|
+
* Output event emitted when a widget is dropped on the grid.
|
70
|
+
*/
|
18
71
|
protected onDropped: import("@angular/core").OutputEmitterRef<AXGridLayoutDroppedEvent>;
|
72
|
+
/**
|
73
|
+
* Output event emitted when the grid is enabled.
|
74
|
+
*/
|
19
75
|
protected onEnable: import("@angular/core").OutputEmitterRef<AXGridLayoutEventEvent>;
|
76
|
+
/**
|
77
|
+
* Output event emitted when a widget is removed from the grid.
|
78
|
+
*/
|
20
79
|
protected onRemoved: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
80
|
+
/**
|
81
|
+
* Output event emitted when a widget is resized.
|
82
|
+
*/
|
21
83
|
protected onResize: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
84
|
+
/**
|
85
|
+
* Output event emitted when resizing starts on a widget.
|
86
|
+
*/
|
22
87
|
protected onResizeStart: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
88
|
+
/**
|
89
|
+
* Output event emitted when resizing stops on a widget.
|
90
|
+
*/
|
23
91
|
protected onResizeStop: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
92
|
+
/**
|
93
|
+
* Output event emitted when the grid is rendered.
|
94
|
+
*/
|
24
95
|
protected isRendered: import("@angular/core").OutputEmitterRef<boolean>;
|
96
|
+
/**
|
97
|
+
* Model that tracks whether the grid container is empty.
|
98
|
+
*/
|
25
99
|
protected isEmpty: import("@angular/core").ModelSignal<boolean>;
|
100
|
+
/**
|
101
|
+
* Initializes the grid layout component and sets up the GridStack grid.
|
102
|
+
*/
|
26
103
|
constructor();
|
104
|
+
/**
|
105
|
+
* Angular lifecycle hook that initializes the grid once the component is created.
|
106
|
+
* It sets up GridStack and loads any initial layout configuration.
|
107
|
+
*/
|
27
108
|
protected ngOnInit(): Promise<void>;
|
109
|
+
/**
|
110
|
+
* Angular lifecycle hook that cleans up resources when the component is destroyed.
|
111
|
+
* It removes event listeners and destroys the GridStack instance.
|
112
|
+
*/
|
28
113
|
protected ngOnDestroy(): void;
|
114
|
+
/**
|
115
|
+
* Effect that reacts to changes in the grid layout and updates the DOM accordingly.
|
116
|
+
*/
|
29
117
|
private gridChange;
|
118
|
+
/**
|
119
|
+
* Effect that reacts to changes in child widgets and updates the grid layout.
|
120
|
+
*/
|
30
121
|
private childChange;
|
122
|
+
/**
|
123
|
+
* Updates the grid layout with the current set of widgets, clearing previous options.
|
124
|
+
*/
|
31
125
|
private updateAll;
|
126
|
+
/**
|
127
|
+
* Checks whether the grid is empty and updates the `isEmpty` model accordingly.
|
128
|
+
*/
|
32
129
|
private checkEmpty;
|
130
|
+
/**
|
131
|
+
* Hooks event listeners to the grid for various grid events (e.g., add, remove, drag, resize).
|
132
|
+
*/
|
33
133
|
private hookEvents;
|
134
|
+
/**
|
135
|
+
* Removes all event listeners from the grid.
|
136
|
+
*/
|
34
137
|
private unhookEvents;
|
138
|
+
/**
|
139
|
+
* Adds a widget to the grid layout. Optionally arranges the grid after adding the widget.
|
140
|
+
*
|
141
|
+
* @param item The widget to add.
|
142
|
+
* @param withAutoArrange If true, the grid will be auto-arranged after adding the widget.
|
143
|
+
* @returns The added widget's layout node.
|
144
|
+
*/
|
35
145
|
add(item: AXGridLayoutWidget, withAutoArrange?: boolean): AXGridLayoutNode;
|
146
|
+
/**
|
147
|
+
* Removes a widget from the grid layout.
|
148
|
+
*
|
149
|
+
* @param element The widget element to remove.
|
150
|
+
* @returns The updated grid instance.
|
151
|
+
*/
|
36
152
|
remove(element: AXGridLayoutWidgetCompElement): AXGridLayout;
|
153
|
+
/**
|
154
|
+
* Clears all widgets from the grid layout.
|
155
|
+
*
|
156
|
+
* @returns The updated grid instance.
|
157
|
+
*/
|
37
158
|
clear(): AXGridLayout;
|
38
|
-
|
159
|
+
/**
|
160
|
+
* Saves the current state of the grid and its widgets.
|
161
|
+
*
|
162
|
+
* @param saveContent If true, the content of the widgets will be saved.
|
163
|
+
* @param saveGridOpt If true, the grid options will be saved.
|
164
|
+
* @param saveCallback Optional callback to invoke after saving the grid state.
|
165
|
+
* @returns The saved grid layout options.
|
166
|
+
*/
|
39
167
|
save(saveContent?: boolean, saveGridOpt?: boolean, saveCallback?: AXSaveCallback): AXGridLayoutOptions;
|
168
|
+
/**
|
169
|
+
* Loads a serialized grid layout configuration into the grid.
|
170
|
+
*
|
171
|
+
* @param serializedData The serialized grid options to load.
|
172
|
+
* @param cleanBeforeLoad If true, the grid will be cleared before loading the new layout.
|
173
|
+
* @returns A promise that resolves to the loaded grid instance.
|
174
|
+
*/
|
40
175
|
load(serializedData?: AXGridLayoutOptions, cleanBeforeLoad?: boolean): Promise<AXGridLayout>;
|
176
|
+
/**
|
177
|
+
* Automatically arranges the widgets within the grid layout.
|
178
|
+
*/
|
41
179
|
autoArrange(): void;
|
180
|
+
/**
|
181
|
+
* Sets whether widgets in the grid can be moved (dragged).
|
182
|
+
*
|
183
|
+
* @param state If true, widgets are movable; otherwise, they are locked.
|
184
|
+
* @param recurse If true, the setting is applied to nested widgets as well.
|
185
|
+
*/
|
42
186
|
setlockable(state: boolean, recurse?: boolean): void;
|
187
|
+
/**
|
188
|
+
* Sets whether widgets in the grid can be resized.
|
189
|
+
*
|
190
|
+
* @param state If true, widgets are resizable; otherwise, they are fixed.
|
191
|
+
* @param recurse If true, the setting is applied to nested widgets as well.
|
192
|
+
*/
|
43
193
|
setResizable(state: boolean, recurse?: boolean): void;
|
194
|
+
/**
|
195
|
+
* Retrieves all the child nodes (widgets) in the grid layout.
|
196
|
+
*
|
197
|
+
* @returns An array of grid layout nodes representing the widgets.
|
198
|
+
*/
|
44
199
|
getChildren(): AXGridLayoutNode[];
|
200
|
+
/**
|
201
|
+
* Sets up draggable functionality for external elements to be added to the grid.
|
202
|
+
*
|
203
|
+
* @param dragIn A CSS selector or an array of elements that can be dragged into the grid.
|
204
|
+
* @param widgets An optional set of widgets that are draggable into the grid.
|
205
|
+
*/
|
45
206
|
setupDraggable(dragIn?: string | HTMLElement[], widgets?: AXGridLayoutWidget): Promise<void>;
|
207
|
+
/**
|
208
|
+
* Sets grid layout options.
|
209
|
+
*
|
210
|
+
* @param options The new grid layout options to apply.
|
211
|
+
*/
|
46
212
|
setOption(options: AXGridLayoutOptions): void;
|
213
|
+
/**
|
214
|
+
* Rotates a specific widget element in the grid layout.
|
215
|
+
*
|
216
|
+
* @param element The widget element to rotate.
|
217
|
+
*/
|
47
218
|
rotate(element: AXGridLayoutWidgetCompElement): void;
|
219
|
+
/**
|
220
|
+
* Sets the number of columns in the grid layout.
|
221
|
+
*
|
222
|
+
* @param count The number of columns to set.
|
223
|
+
*/
|
48
224
|
setColumn(count: number): void;
|
225
|
+
/**
|
226
|
+
* Retrieves the current grid layout options.
|
227
|
+
*
|
228
|
+
* @returns The current grid options.
|
229
|
+
*/
|
230
|
+
getOptions(): import("gridstack").GridStackOptions;
|
49
231
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutContainerComponent, never>;
|
50
232
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutContainerComponent, "ax-grid-layout-container", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "isEmpty": { "alias": "isEmpty"; "required": false; "isSignal": true; }; }, { "onAdded": "onAdded"; "onChange": "onChange"; "onDisable": "onDisable"; "onDrag": "onDrag"; "onDragStart": "onDragStart"; "onDragStop": "onDragStop"; "onDropped": "onDropped"; "onEnable": "onEnable"; "onRemoved": "onRemoved"; "onResize": "onResize"; "onResizeStart": "onResizeStart"; "onResizeStop": "onResizeStop"; "isRendered": "isRendered"; "isEmpty": "isEmptyChange"; }, ["items"], ["*"], false, never>;
|
51
233
|
}
|
@@ -1,12 +1,95 @@
|
|
1
|
-
import { AXGridLayoutWidgetCompElement } from './types';
|
1
|
+
import { AXGridLayoutNode, AXGridLayoutWidget, AXGridLayoutWidgetCompElement } from './types';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* A component that represents a widget within the grid layout. It serves as an individual
|
5
|
+
* item within a `gridstack` layout, providing options for customization and interaction.
|
6
|
+
*
|
7
|
+
* This widget component is used within the `AXGridLayoutContainerComponent` to manage the
|
8
|
+
* layout of widgets in a grid system. The component interacts with the GridStack library
|
9
|
+
* to offer features like resizing, movement, and customization of the widget's properties.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* <ax-grid-layout-widget [options]="widgetOptions">
|
13
|
+
* <div>Widget Content</div>
|
14
|
+
* </ax-grid-layout-widget>
|
15
|
+
*/
|
3
16
|
export declare class AXGridLayoutWidgetComponent {
|
17
|
+
/**
|
18
|
+
* A reference to the native element of this widget component. It is used for interaction
|
19
|
+
* with the underlying DOM element and for updating the widget properties via GridStack.
|
20
|
+
*/
|
4
21
|
private readonly elementRef;
|
22
|
+
/**
|
23
|
+
* The native element of the widget component.
|
24
|
+
*/
|
5
25
|
el: AXGridLayoutWidgetCompElement;
|
26
|
+
/**
|
27
|
+
* The current options of the widget. These options are used to define the layout,
|
28
|
+
* content, and behavior of the widget within the grid.
|
29
|
+
*
|
30
|
+
* @internal
|
31
|
+
*/
|
6
32
|
private _options?;
|
33
|
+
/**
|
34
|
+
* Input property that represents the widget's configuration options.
|
35
|
+
*
|
36
|
+
* The options include properties such as position, size, content, and other
|
37
|
+
* configuration values. These options are updated dynamically.
|
38
|
+
*
|
39
|
+
* @param {AXGridLayoutNode} val The configuration object for the widget.
|
40
|
+
* @returns {AXGridLayoutWidgetCompElement} The element associated with the widget.
|
41
|
+
*/
|
7
42
|
options: import("@angular/core").InputSignalWithTransform<import("gridstack").GridStackNode, import("gridstack").GridStackNode>;
|
43
|
+
/**
|
44
|
+
* Clears the widget's options.
|
45
|
+
*
|
46
|
+
* This method removes any existing options set for the widget and resets it
|
47
|
+
* to its default state.
|
48
|
+
*/
|
8
49
|
clearOptions(): void;
|
50
|
+
/**
|
51
|
+
* Constructor that initializes the widget component and sets the reference to
|
52
|
+
* the grid widget component in the element's properties.
|
53
|
+
*/
|
9
54
|
constructor();
|
55
|
+
/**
|
56
|
+
* Removes this widget from the grid.
|
57
|
+
*
|
58
|
+
* This method interacts with GridStack to remove the widget from the layout.
|
59
|
+
* Once removed, the widget will no longer be part of the grid.
|
60
|
+
*/
|
61
|
+
removeWidget(): void;
|
62
|
+
/**
|
63
|
+
* Sets whether the widget can be locked (i.e., not resizable).
|
64
|
+
*
|
65
|
+
* @param {boolean} state Whether the widget should be locked or not.
|
66
|
+
* @remarks
|
67
|
+
* If the widget is locked, it cannot be resized.
|
68
|
+
*/
|
69
|
+
setlockable(state: boolean): void;
|
70
|
+
/**
|
71
|
+
* Sets whether the widget can be resized.
|
72
|
+
*
|
73
|
+
* @param {boolean} state Whether the widget should be resizable or not.
|
74
|
+
* @remarks
|
75
|
+
* If the widget is resizable, the user can change its size by dragging.
|
76
|
+
*/
|
77
|
+
setResizable(state: boolean): void;
|
78
|
+
/**
|
79
|
+
* Updates the options of the widget.
|
80
|
+
*
|
81
|
+
* @param {AXGridLayoutWidget} options The new options to apply to the widget.
|
82
|
+
*/
|
83
|
+
setOptions(options: AXGridLayoutWidget): void;
|
84
|
+
/**
|
85
|
+
* Retrieves the current options of the widget.
|
86
|
+
*
|
87
|
+
* @returns {AXGridLayoutNode} The current configuration options of the widget.
|
88
|
+
* @remarks
|
89
|
+
* This method provides access to the widget's layout and configuration.
|
90
|
+
* If no specific options are set, it returns the default options.
|
91
|
+
*/
|
92
|
+
getOptions(): AXGridLayoutNode;
|
10
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutWidgetComponent, never>;
|
11
94
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutWidgetComponent, "ax-grid-layout-widget", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
12
95
|
}
|
package/media-viewer/index.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
export * from './lib/media-viewer-container/media-viewer-container.component';
|
2
2
|
export * from './lib/media-viewer-slider/media-viewer-slider.component';
|
3
|
-
export * from './lib/media-viewer-thumbnail/media-viewer-thumbnail.component';
|
4
3
|
export * from './lib/media-viewer-tools/audio-player/audio-player.component';
|
5
4
|
export * from './lib/media-viewer-tools/file-info/file-info.component';
|
6
5
|
export * from './lib/media-viewer-tools/full-screen/full-screen.component';
|
@@ -1,18 +1,33 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
1
3
|
import { AXMediaViewerData } from '../media-viewer-types';
|
2
4
|
import { AXMediaViewerService } from '../media-viewer.service';
|
3
5
|
import * as i0 from "@angular/core";
|
4
|
-
|
6
|
+
type Thumbnail = {
|
7
|
+
tubmnailImage: string;
|
8
|
+
svg: string;
|
9
|
+
type: string;
|
10
|
+
id: string;
|
11
|
+
};
|
12
|
+
export declare class AXMediaViewerContainerComponent implements OnDestroy {
|
13
|
+
#private;
|
5
14
|
dataArray: import("@angular/core").InputSignal<AXMediaViewerData[]>;
|
6
15
|
protected service: AXMediaViewerService;
|
7
|
-
protected
|
8
|
-
|
9
|
-
protected
|
10
|
-
|
16
|
+
protected sanitizer: DomSanitizer;
|
17
|
+
thumbnail: import("@angular/core").InputSignal<boolean>;
|
18
|
+
protected thumbnailArray: import("@angular/core").WritableSignal<Thumbnail[]>;
|
19
|
+
protected option: import("@angular/core").WritableSignal<import("swiper/types").SwiperOptions>;
|
20
|
+
protected option2: import("@angular/core").WritableSignal<import("swiper/types").SwiperOptions>;
|
21
|
+
private swiperRef;
|
22
|
+
private swiperRef2;
|
23
|
+
private setActiveIndex;
|
24
|
+
ngOnDestroy(): void;
|
11
25
|
next(): void;
|
12
26
|
prev(): void;
|
13
27
|
protected closeHandler(): void;
|
14
28
|
/** @ignore */
|
15
29
|
get __hostClass(): string;
|
16
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerContainerComponent, never>;
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; }, {}, never, ["ax-header", "ax-suffix", "ax-prefix"
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; }, {}, never, ["ax-header", "ax-suffix", "ax-prefix"], false, never>;
|
18
32
|
}
|
33
|
+
export {};
|
@@ -2,9 +2,8 @@ import { AXMediaViewerData } from '../../media-viewer-types';
|
|
2
2
|
import { AXMediaViewerService } from '../../media-viewer.service';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AXFileInfoComponent {
|
5
|
-
#private;
|
6
5
|
protected service: AXMediaViewerService;
|
7
|
-
protected infoData: import("@angular/core").
|
6
|
+
protected infoData: import("@angular/core").Signal<AXMediaViewerData>;
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXFileInfoComponent, never>;
|
9
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXFileInfoComponent, "ax-file-info", never, {}, {}, never, never, false, never>;
|
10
9
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { DomSanitizer } from '@angular/platform-browser';
|
2
2
|
import { AXMediaViewerBaseComponent } from '../../media-viewer-types';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class
|
4
|
+
export declare class PdfComponent extends AXMediaViewerBaseComponent {
|
5
5
|
sanitizer: DomSanitizer;
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, false, never>;
|
8
8
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { AXMediaViewerBaseComponent, AXMediaViewerData } from '../../media-viewer-types';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class
|
3
|
+
export declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
|
4
4
|
dataObject: import("@angular/core").WritableSignal<AXMediaViewerData>;
|
5
5
|
constructor();
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, false, never>;
|
8
8
|
}
|
@@ -3,20 +3,22 @@ import { AXMediaViewerType } from './media-viewer-types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "./media-viewer-container/media-viewer-container.component";
|
5
5
|
import * as i2 from "./media-viewer-slider/media-viewer-slider.component";
|
6
|
-
import * as i3 from "./media-viewer-
|
7
|
-
import * as i4 from "./media-viewer-tools/
|
8
|
-
import * as i5 from "./media-viewer-tools/
|
9
|
-
import * as i6 from "./media-viewer-tools/
|
10
|
-
import * as i7 from "./media-viewer-tools/
|
11
|
-
import * as i8 from "./media-viewer-tools/
|
12
|
-
import * as i9 from "
|
13
|
-
import * as i10 from "@
|
14
|
-
import * as i11 from "@acorex/components/
|
15
|
-
import * as i12 from "@
|
16
|
-
import * as i13 from "@angular/
|
17
|
-
import * as i14 from "@
|
18
|
-
import * as i15 from "@acorex/components/
|
19
|
-
import * as i16 from "@acorex/
|
6
|
+
import * as i3 from "./media-viewer-tools/audio-player/audio-player.component";
|
7
|
+
import * as i4 from "./media-viewer-tools/image-viewer/image-viewer.component";
|
8
|
+
import * as i5 from "./media-viewer-tools/pdf-reader/pdf-reader.component";
|
9
|
+
import * as i6 from "./media-viewer-tools/video-player/video-player.component";
|
10
|
+
import * as i7 from "./media-viewer-tools/file-info/file-info.component";
|
11
|
+
import * as i8 from "./media-viewer-tools/full-screen/full-screen.component";
|
12
|
+
import * as i9 from "@angular/common";
|
13
|
+
import * as i10 from "@acorex/components/button";
|
14
|
+
import * as i11 from "@acorex/components/decorators";
|
15
|
+
import * as i12 from "@angular/cdk/portal";
|
16
|
+
import * as i13 from "@angular/forms";
|
17
|
+
import * as i14 from "@acorex/components/image";
|
18
|
+
import * as i15 from "@acorex/components/loading";
|
19
|
+
import * as i16 from "@acorex/cdk/carousel";
|
20
|
+
import * as i17 from "@acorex/components/pdf-reader";
|
21
|
+
import * as i18 from "@acorex/components/video-player";
|
20
22
|
export interface AXMediaViewerModuleConfig {
|
21
23
|
types: AXMediaViewerType[];
|
22
24
|
}
|
@@ -25,6 +27,6 @@ export declare class AXMediaViewerModule {
|
|
25
27
|
static forRoot(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
|
26
28
|
static forChild(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerModule, [{ optional: true; }]>;
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, [typeof i1.AXMediaViewerContainerComponent, typeof i2.AXMediaViewerSliderComponent, typeof i3.
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, [typeof i1.AXMediaViewerContainerComponent, typeof i2.AXMediaViewerSliderComponent, typeof i3.AXAudioPlayerComponent, typeof i4.AXImageViewerComponent, typeof i5.PdfComponent, typeof i6.VideoPlayerComponent, typeof i7.AXFileInfoComponent, typeof i8.AXFullScreenComponent], [typeof i9.CommonModule, typeof i10.AXButtonModule, typeof i11.AXDecoratorModule, typeof i12.CdkPortalOutlet, typeof i13.FormsModule, typeof i14.AXImageModule, typeof i15.AXLoadingModule, typeof i16.AXCarouselDirective, typeof i17.AXPdfReaderModule, typeof i18.AXVideoPlayerModule], [typeof i1.AXMediaViewerContainerComponent, typeof i2.AXMediaViewerSliderComponent, typeof i3.AXAudioPlayerComponent, typeof i4.AXImageViewerComponent, typeof i5.PdfComponent, typeof i6.VideoPlayerComponent, typeof i7.AXFileInfoComponent, typeof i8.AXFullScreenComponent]>;
|
29
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXMediaViewerModule>;
|
30
32
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.3.0",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=19.0.0",
|
6
6
|
"@angular/core": ">=19.0.0",
|
@@ -225,6 +225,10 @@
|
|
225
225
|
"types": "./password-box/index.d.ts",
|
226
226
|
"default": "./fesm2022/acorex-components-password-box.mjs"
|
227
227
|
},
|
228
|
+
"./pdf-reader": {
|
229
|
+
"types": "./pdf-reader/index.d.ts",
|
230
|
+
"default": "./fesm2022/acorex-components-pdf-reader.mjs"
|
231
|
+
},
|
228
232
|
"./phone-box": {
|
229
233
|
"types": "./phone-box/index.d.ts",
|
230
234
|
"default": "./fesm2022/acorex-components-phone-box.mjs"
|
@@ -345,6 +349,10 @@
|
|
345
349
|
"types": "./uploader/index.d.ts",
|
346
350
|
"default": "./fesm2022/acorex-components-uploader.mjs"
|
347
351
|
},
|
352
|
+
"./video-player": {
|
353
|
+
"types": "./video-player/index.d.ts",
|
354
|
+
"default": "./fesm2022/acorex-components-video-player.mjs"
|
355
|
+
},
|
348
356
|
"./wysiwyg": {
|
349
357
|
"types": "./wysiwyg/index.d.ts",
|
350
358
|
"default": "./fesm2022/acorex-components-wysiwyg.mjs"
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXPdfReaderComponent {
|
4
|
+
sanitizer: DomSanitizer;
|
5
|
+
src: import("@angular/core").InputSignal<unknown>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPdfReaderComponent, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPdfReaderComponent, "ax-pdf-reader", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
8
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./pdf-reader/pdf-reader.component";
|
3
|
+
export declare class AXPdfReaderModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPdfReaderModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPdfReaderModule, [typeof i1.AXPdfReaderComponent], never, [typeof i1.AXPdfReaderComponent]>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPdfReaderModule>;
|
7
|
+
}
|
package/tabs/lib/tabs.class.d.ts
CHANGED
@@ -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' | 'classic' | 'custom';
|
7
|
+
export type AXTabLook = 'default' | 'pills' | 'pills-color' | 'with-line' | 'with-line-color' | 'classic' | 'custom';
|
8
8
|
export type AXTabLocation = 'top' | 'bottom' | 'start' | 'end';
|
@@ -3,6 +3,7 @@ import { AXComponentCloseEvent, MXBaseComponent } from '@acorex/components/commo
|
|
3
3
|
import { DialogRef } from '@angular/cdk/dialog';
|
4
4
|
import { OnInit } from '@angular/core';
|
5
5
|
import { AXToastData } from './toast.class';
|
6
|
+
import { AXToastService } from './toast.service';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
@@ -12,6 +13,8 @@ import * as i0 from "@angular/core";
|
|
12
13
|
export declare class AXToastComponent extends MXBaseComponent implements OnInit {
|
13
14
|
config: AXToastData;
|
14
15
|
dialogRef: DialogRef<AXComponentCloseEvent>;
|
16
|
+
toastService: AXToastService;
|
17
|
+
createdDate: import("@angular/core").WritableSignal<number>;
|
15
18
|
/** @ignore */
|
16
19
|
protected _toastWidth: number;
|
17
20
|
/** @ignore */
|
@@ -28,6 +31,7 @@ export declare class AXToastComponent extends MXBaseComponent implements OnInit
|
|
28
31
|
private get __hostClass();
|
29
32
|
/** @ignore */
|
30
33
|
close(): void;
|
34
|
+
closeAll(): void;
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXToastComponent, never>;
|
32
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXToastComponent, "ax-toast", never, {}, {}, never, never, false, never>;
|
33
37
|
}
|
@@ -4,14 +4,13 @@ import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AXToastService {
|
5
5
|
private readonly scrollStrategyOptions;
|
6
6
|
private dialog;
|
7
|
-
private translationService;
|
8
7
|
private defaultConfig;
|
8
|
+
private translationService;
|
9
|
+
private reserveCounter;
|
9
10
|
private activeToasts;
|
10
11
|
private reservedToasts;
|
11
12
|
private toastCounterElement;
|
12
|
-
private
|
13
|
-
private moreToastsLocation;
|
14
|
-
private reserveCounter;
|
13
|
+
private moreToastsConfig;
|
15
14
|
scrollStrategy: ScrollStrategy;
|
16
15
|
constructor(scrollStrategyOptions: ScrollStrategyOptions);
|
17
16
|
primary(content: string): void;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class AXVideoPlayerComponent {
|
3
|
+
src: import("@angular/core").InputSignal<unknown>;
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVideoPlayerComponent, never>;
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXVideoPlayerComponent, "ax-video-player", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
6
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./video-player/video-player.component";
|
3
|
+
export declare class AXVideoPlayerModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVideoPlayerModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXVideoPlayerModule, [typeof i1.AXVideoPlayerComponent], never, [typeof i1.AXVideoPlayerComponent]>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXVideoPlayerModule>;
|
7
|
+
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { AXMediaViewerData } from '../media-viewer-types';
|
2
|
-
import { AXMediaViewerService } from '../media-viewer.service';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class AXMediaViewerThumbnailComponent {
|
5
|
-
protected service: AXMediaViewerService;
|
6
|
-
protected data: import("@angular/core").WritableSignal<AXMediaViewerData[]>;
|
7
|
-
constructor();
|
8
|
-
protected clickHandler(e: MouseEvent, i: number): void;
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerThumbnailComponent, never>;
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerThumbnailComponent, "ax-media-viewer-thumbnail", never, {}, {}, never, never, false, never>;
|
11
|
-
}
|