@acorex/components 22.2.9 → 22.2.11
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.
- package/fesm2022/acorex-components-audio-wave.mjs +2 -2
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +83 -20
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CJ2TAxPI.mjs → acorex-components-conversation-acorex-components-conversation-BTrREOwX.mjs} +253 -57
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-BTrREOwX.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-veZdIY3W.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DhSMH-wA.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-veZdIY3W.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-DhSMH-wA.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +1 -1
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +36 -6
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +46 -22
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +87 -8
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +20 -2
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +7 -0
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +225 -20
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-combo-box.d.ts +6 -2
- package/types/acorex-components-conversation.d.ts +48 -2
- package/types/acorex-components-decorators.d.ts +13 -1
- package/types/acorex-components-file-viewer.d.ts +5 -0
- package/types/acorex-components-image-editor.d.ts +15 -0
- package/types/acorex-components-lookup.d.ts +4 -0
- package/types/acorex-components-map.d.ts +5 -0
- package/types/acorex-components-tabs.d.ts +91 -17
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-CJ2TAxPI.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, EventEmitter, AfterViewInit, AfterContentInit
|
|
2
|
+
import { TemplateRef, EventEmitter, OnDestroy, AfterViewInit, AfterContentInit } from '@angular/core';
|
|
3
3
|
import { MXInteractiveComponent, AXClickEvent, MXComponentOptionChanged, AXEvent, MXBaseComponent } from '@acorex/cdk/common';
|
|
4
4
|
import * as i1 from '@acorex/cdk/drag-drop';
|
|
5
5
|
import * as i2 from '@acorex/cdk/horizontal-scroll';
|
|
@@ -7,15 +7,6 @@ import * as i1$1 from '@angular/common';
|
|
|
7
7
|
import * as i2$1 from '@angular/cdk/portal';
|
|
8
8
|
import * as i3 from '@acorex/components/decorators';
|
|
9
9
|
|
|
10
|
-
declare class AXTabContentDirective {
|
|
11
|
-
private _viewContainerRef;
|
|
12
|
-
private _portal;
|
|
13
|
-
get portal(): TemplateRef<any> | undefined;
|
|
14
|
-
set portal(v: TemplateRef<any> | undefined);
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabContentDirective, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AXTabContentDirective, "[axTabContent]", ["axTabContent"], { "portal": { "alias": "axTabContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
10
|
/**
|
|
20
11
|
* @category
|
|
21
12
|
* Represents an individual tab item in a tab component.
|
|
@@ -33,7 +24,13 @@ declare class AXTabItemComponent extends MXInteractiveComponent {
|
|
|
33
24
|
* Defines a unique identifier for the component instance.
|
|
34
25
|
*/
|
|
35
26
|
key: string;
|
|
36
|
-
|
|
27
|
+
private _panel?;
|
|
28
|
+
private _contentTemplate;
|
|
29
|
+
/**
|
|
30
|
+
* Template rendered for this tab's content area.
|
|
31
|
+
* Prefer `ng-template[axTabPanel]` so `renderMode="default"` can recreate panel state.
|
|
32
|
+
*/
|
|
33
|
+
get template(): TemplateRef<unknown>;
|
|
37
34
|
/**
|
|
38
35
|
* Defines a custom template for the component's header.
|
|
39
36
|
*/
|
|
@@ -82,7 +79,7 @@ declare class AXTabItemComponent extends MXInteractiveComponent {
|
|
|
82
79
|
top: number;
|
|
83
80
|
};
|
|
84
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabItemComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTabItemComponent, "ax-tab-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "key": { "alias": "key"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "disabledChange": "disabledChange"; "onClick": "onClick"; "onBlur": "onBlur"; "onFocus": "onFocus"; "activeChange": "activeChange"; },
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXTabItemComponent, "ax-tab-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "key": { "alias": "key"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "disabledChange": "disabledChange"; "onClick": "onClick"; "onBlur": "onBlur"; "onFocus": "onFocus"; "activeChange": "activeChange"; }, ["_panel"], ["ax-prefix", "ax-suffix", "ax-content"], true, [{ directive: typeof i1.AXDragDirective; inputs: { "dragStartDelay": "dragStartDelay"; "dragClonedTemplate": "dragClonedTemplate"; }; outputs: {}; }]>;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
declare class AXTabStripChangedEvent extends AXEvent {
|
|
@@ -97,6 +94,62 @@ declare class AXTabsReorderedEvent extends AXEvent {
|
|
|
97
94
|
}
|
|
98
95
|
type AXTabLook = 'default' | 'pills' | 'pills-color' | 'with-line' | 'with-line-color' | 'classic' | 'custom';
|
|
99
96
|
type AXTabLocation = 'top' | 'bottom' | 'start' | 'end';
|
|
97
|
+
type AXTabsRenderMode = 'default' | 'all-tabs' | 'on-demand';
|
|
98
|
+
|
|
99
|
+
declare class AXTabContentDirective implements OnDestroy {
|
|
100
|
+
private readonly viewContainerRef;
|
|
101
|
+
private readonly renderer;
|
|
102
|
+
private readonly panes;
|
|
103
|
+
private _portal;
|
|
104
|
+
private defaultView;
|
|
105
|
+
get portal(): TemplateRef<unknown> | undefined;
|
|
106
|
+
set portal(v: TemplateRef<unknown> | undefined);
|
|
107
|
+
/**
|
|
108
|
+
* Shows the given tab template using the specified render mode.
|
|
109
|
+
*/
|
|
110
|
+
activate(template: TemplateRef<unknown> | undefined, mode: AXTabsRenderMode): void;
|
|
111
|
+
/**
|
|
112
|
+
* Ensures embedded views exist for every tab template (all-tabs mode).
|
|
113
|
+
*/
|
|
114
|
+
preload(templates: TemplateRef<unknown>[]): void;
|
|
115
|
+
/**
|
|
116
|
+
* Removes panes whose tab templates are no longer present.
|
|
117
|
+
*/
|
|
118
|
+
sync(templates: TemplateRef<unknown>[]): void;
|
|
119
|
+
/**
|
|
120
|
+
* Destroys all cached panes and clears the view container.
|
|
121
|
+
*/
|
|
122
|
+
reset(): void;
|
|
123
|
+
ngOnDestroy(): void;
|
|
124
|
+
private destroyDefaultView;
|
|
125
|
+
private resetKeepAlivePanes;
|
|
126
|
+
private ensurePane;
|
|
127
|
+
private showPane;
|
|
128
|
+
private destroyPane;
|
|
129
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabContentDirective, never>;
|
|
130
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXTabContentDirective, "[axTabContent]", ["axTabContent"], { "portal": { "alias": "axTabContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Marks an `ng-template` as tab panel content. Use this instead of projecting
|
|
135
|
+
* components directly into `ax-content` when you need `renderMode="default"`
|
|
136
|
+
* to destroy and recreate panel state on each tab switch.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```html
|
|
140
|
+
* <ax-tab-item text="Account">
|
|
141
|
+
* <ng-template axTabPanel>
|
|
142
|
+
* <my-panel />
|
|
143
|
+
* </ng-template>
|
|
144
|
+
* </ax-tab-item>
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
declare class AXTabPanelDirective {
|
|
148
|
+
readonly template: TemplateRef<unknown>;
|
|
149
|
+
constructor(template: TemplateRef<unknown>);
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabPanelDirective, never>;
|
|
151
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXTabPanelDirective, "ng-template[axTabPanel]", never, {}, {}, never, never, true, never>;
|
|
152
|
+
}
|
|
100
153
|
|
|
101
154
|
/**
|
|
102
155
|
* @category
|
|
@@ -136,6 +189,22 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
136
189
|
* @defaultValue 250
|
|
137
190
|
*/
|
|
138
191
|
reorderDelay: i0.InputSignal<number>;
|
|
192
|
+
/**
|
|
193
|
+
* Controls how tab content is rendered in the DOM.
|
|
194
|
+
*
|
|
195
|
+
* - `default` — Only the active tab's content is in the DOM. Switching tabs replaces content and does not preserve state.
|
|
196
|
+
* - `all-tabs` — All tab contents are rendered and kept in the DOM. State is preserved; higher memory use.
|
|
197
|
+
* - `on-demand` — Only the active tab is rendered initially. Other tabs are rendered on first visit and then kept; state is preserved.
|
|
198
|
+
*
|
|
199
|
+
* @defaultValue 'default'
|
|
200
|
+
*/
|
|
201
|
+
renderMode: i0.InputSignal<AXTabsRenderMode>;
|
|
202
|
+
/**
|
|
203
|
+
* When true, stacks prefix, title, and suffix vertically inside each tab header
|
|
204
|
+
* instead of arranging them in a horizontal row.
|
|
205
|
+
* @defaultValue false
|
|
206
|
+
*/
|
|
207
|
+
stacked: i0.InputSignalWithTransform<boolean, unknown>;
|
|
139
208
|
/**
|
|
140
209
|
* @defaultValue 'false'
|
|
141
210
|
* Specifies whether the component should resize to fit its parent container.
|
|
@@ -149,7 +218,9 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
149
218
|
/**
|
|
150
219
|
* The `AXTabContentDirective` associated with the tab.
|
|
151
220
|
*/
|
|
152
|
-
content: AXTabContentDirective;
|
|
221
|
+
set content(value: AXTabContentDirective);
|
|
222
|
+
get content(): AXTabContentDirective;
|
|
223
|
+
private _content;
|
|
153
224
|
private indicator;
|
|
154
225
|
private zone;
|
|
155
226
|
private platformId;
|
|
@@ -167,6 +238,7 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
167
238
|
private changes;
|
|
168
239
|
private activeTab;
|
|
169
240
|
private viewReady;
|
|
241
|
+
private lastRenderMode;
|
|
170
242
|
/**
|
|
171
243
|
* @event
|
|
172
244
|
*/
|
|
@@ -202,17 +274,19 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
202
274
|
*/
|
|
203
275
|
select(tab: number | AXTabItemComponent): void;
|
|
204
276
|
/** @ignore */
|
|
277
|
+
private _renderContent;
|
|
278
|
+
/** @ignore */
|
|
205
279
|
private getTabIndicatorStats;
|
|
206
280
|
private setIndicatorPosition;
|
|
207
281
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabsComponent, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTabsComponent, "ax-tabs", never, { "look": { "alias": "look"; "required": false; "isSignal": true; }; "location": { "alias": "location"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "reorderDelay": { "alias": "reorderDelay"; "required": false; "isSignal": true; }; "fitParent": { "alias": "fitParent"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "onActiveTabChanged": "onActiveTabChanged"; "onTabsReordered": "onTabsReordered"; }, ["_contentTabs"], ["ax-tab-item"], true, [{ directive: typeof i1.AXDropListDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.AXHorizontalScrollDirective; inputs: {}; outputs: {}; }]>;
|
|
282
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXTabsComponent, "ax-tabs", never, { "look": { "alias": "look"; "required": false; "isSignal": true; }; "location": { "alias": "location"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "reorderDelay": { "alias": "reorderDelay"; "required": false; "isSignal": true; }; "renderMode": { "alias": "renderMode"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "fitParent": { "alias": "fitParent"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "onActiveTabChanged": "onActiveTabChanged"; "onTabsReordered": "onTabsReordered"; }, ["_contentTabs"], ["ax-tab-item"], true, [{ directive: typeof i1.AXDropListDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.AXHorizontalScrollDirective; inputs: {}; outputs: {}; }]>;
|
|
209
283
|
}
|
|
210
284
|
|
|
211
285
|
declare class AXTabsModule {
|
|
212
286
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabsModule, never>;
|
|
213
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTabsModule, never, [typeof i1$1.CommonModule, typeof i2$1.PortalModule, typeof i3.AXDecoratorModule, typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective], [typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective]>;
|
|
287
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTabsModule, never, [typeof i1$1.CommonModule, typeof i2$1.PortalModule, typeof i3.AXDecoratorModule, typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective, typeof AXTabPanelDirective], [typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective, typeof AXTabPanelDirective]>;
|
|
214
288
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXTabsModule>;
|
|
215
289
|
}
|
|
216
290
|
|
|
217
|
-
export { AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTabsReorderedEvent };
|
|
218
|
-
export type { AXTabLocation, AXTabLook };
|
|
291
|
+
export { AXTabContentDirective, AXTabItemComponent, AXTabPanelDirective, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTabsReorderedEvent };
|
|
292
|
+
export type { AXTabLocation, AXTabLook, AXTabsRenderMode };
|