@acorex/components 22.1.6 → 22.1.7
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-conversation-acorex-components-conversation-CdAHDQD1.mjs → acorex-components-conversation-acorex-components-conversation-EiqMwr9v.mjs} +8 -8
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs.map → acorex-components-conversation-acorex-components-conversation-EiqMwr9v.mjs.map} +1 -1
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs → acorex-components-conversation-open-composer-picker-for-files-C7BnTUw2.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs.map → acorex-components-conversation-open-composer-picker-for-files-C7BnTUw2.mjs.map} +1 -1
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DuRLMEa3.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-DuRLMEa3.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-rest-api-generator.mjs +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +163 -34
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/package.json +4 -3
- package/types/acorex-components-tabs.d.ts +47 -6
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { TemplateRef, EventEmitter, AfterViewInit, AfterContentInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { MXInteractiveComponent, AXClickEvent, MXComponentOptionChanged, AXEvent, MXBaseComponent } from '@acorex/cdk/common';
|
|
4
|
-
import * as i1 from '@
|
|
5
|
-
import * as i2 from '@
|
|
4
|
+
import * as i1 from '@acorex/cdk/drag-drop';
|
|
5
|
+
import * as i2 from '@acorex/cdk/horizontal-scroll';
|
|
6
|
+
import * as i1$1 from '@angular/common';
|
|
7
|
+
import * as i2$1 from '@angular/cdk/portal';
|
|
6
8
|
import * as i3 from '@acorex/components/decorators';
|
|
7
9
|
|
|
8
10
|
declare class AXTabContentDirective {
|
|
@@ -19,6 +21,8 @@ declare class AXTabContentDirective {
|
|
|
19
21
|
* Represents an individual tab item in a tab component.
|
|
20
22
|
*/
|
|
21
23
|
declare class AXTabItemComponent extends MXInteractiveComponent {
|
|
24
|
+
private readonly _drag;
|
|
25
|
+
private _reorderEnabled;
|
|
22
26
|
/**
|
|
23
27
|
* Defines the text content to be displayed within the component.
|
|
24
28
|
*/
|
|
@@ -50,6 +54,10 @@ declare class AXTabItemComponent extends MXInteractiveComponent {
|
|
|
50
54
|
*/
|
|
51
55
|
get active(): boolean;
|
|
52
56
|
set active(value: boolean);
|
|
57
|
+
/** @ignore */
|
|
58
|
+
setReorderEnabled(enabled: boolean, delay?: number, touchAction?: 'none' | 'pan-x' | 'pan-y'): void;
|
|
59
|
+
/** @ignore */
|
|
60
|
+
private updateDragState;
|
|
53
61
|
/**
|
|
54
62
|
* @ignore
|
|
55
63
|
*/
|
|
@@ -70,13 +78,19 @@ declare class AXTabItemComponent extends MXInteractiveComponent {
|
|
|
70
78
|
top: number;
|
|
71
79
|
};
|
|
72
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabItemComponent, never>;
|
|
73
|
-
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"; }, never, ["ax-prefix", "ax-suffix", "ax-content"], true,
|
|
81
|
+
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"; }, never, ["ax-prefix", "ax-suffix", "ax-content"], true, [{ directive: typeof i1.AXDragDirective; inputs: { "dragCursor": "dragCursor"; "dragStartDelay": "dragStartDelay"; "dragClonedTemplate": "dragClonedTemplate"; }; outputs: {}; }]>;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
declare class AXTabStripChangedEvent extends AXEvent {
|
|
77
85
|
tab: AXTabItemComponent;
|
|
78
86
|
index: number;
|
|
79
87
|
}
|
|
88
|
+
/** Event emitted when tab items are reordered via drag and drop. */
|
|
89
|
+
declare class AXTabsReorderedEvent extends AXEvent {
|
|
90
|
+
tab: AXTabItemComponent;
|
|
91
|
+
previousIndex: number;
|
|
92
|
+
currentIndex: number;
|
|
93
|
+
}
|
|
80
94
|
type AXTabLook = 'default' | 'pills' | 'pills-color' | 'with-line' | 'with-line-color' | 'classic' | 'custom';
|
|
81
95
|
type AXTabLocation = 'top' | 'bottom' | 'start' | 'end';
|
|
82
96
|
|
|
@@ -87,6 +101,8 @@ type AXTabLocation = 'top' | 'bottom' | 'start' | 'end';
|
|
|
87
101
|
declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
88
102
|
#private;
|
|
89
103
|
private readonly renderer;
|
|
104
|
+
private readonly _dropList;
|
|
105
|
+
private readonly _scroll;
|
|
90
106
|
/**
|
|
91
107
|
* @ignore
|
|
92
108
|
*/
|
|
@@ -101,6 +117,20 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
101
117
|
* @defaultValue 'bottom'
|
|
102
118
|
*/
|
|
103
119
|
location: i0.InputSignal<AXTabLocation>;
|
|
120
|
+
/**
|
|
121
|
+
* Enables drag-and-drop reordering of tab items. Reordering starts only after the user
|
|
122
|
+
* presses and holds a tab for {@link reorderDelay} milliseconds; a quick swipe without
|
|
123
|
+
* holding scrolls the strip instead.
|
|
124
|
+
* @defaultValue false
|
|
125
|
+
*/
|
|
126
|
+
reorderable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
127
|
+
/**
|
|
128
|
+
* Press-and-hold duration in milliseconds before a tab can be dragged to reorder.
|
|
129
|
+
* After this delay the cursor changes to indicate reorder mode. Moving before the
|
|
130
|
+
* delay ends cancels reorder and allows swipe or pan scrolling instead.
|
|
131
|
+
* @defaultValue 250
|
|
132
|
+
*/
|
|
133
|
+
reorderDelay: i0.InputSignal<number>;
|
|
104
134
|
/**
|
|
105
135
|
* @defaultValue 'false'
|
|
106
136
|
* Specifies whether the component should resize to fit its parent container.
|
|
@@ -133,8 +163,15 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
133
163
|
* @event
|
|
134
164
|
*/
|
|
135
165
|
onActiveTabChanged: EventEmitter<AXTabStripChangedEvent>;
|
|
166
|
+
/**
|
|
167
|
+
* Emitted when tab items are reordered via drag and drop after the press-and-hold
|
|
168
|
+
* delay has elapsed and the user drags a tab to a new position.
|
|
169
|
+
* @event
|
|
170
|
+
*/
|
|
171
|
+
onTabsReordered: EventEmitter<AXTabsReorderedEvent>;
|
|
136
172
|
/** @ignore */
|
|
137
173
|
private get __hostClass();
|
|
174
|
+
constructor();
|
|
138
175
|
/** @ignore */
|
|
139
176
|
ngAfterContentInit(): void;
|
|
140
177
|
/** @ignore */
|
|
@@ -142,6 +179,10 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
142
179
|
ngOnDestroy(): void;
|
|
143
180
|
/** @ignore */
|
|
144
181
|
private _bindOnClickEvent;
|
|
182
|
+
/** @ignore */
|
|
183
|
+
private _syncDragState;
|
|
184
|
+
/** @ignore */
|
|
185
|
+
private _applyReorder;
|
|
145
186
|
/**
|
|
146
187
|
* Activates the specified tab and updates the content.
|
|
147
188
|
*
|
|
@@ -150,14 +191,14 @@ declare class AXTabsComponent extends MXBaseComponent implements AfterViewInit,
|
|
|
150
191
|
select(tab: number | AXTabItemComponent): void;
|
|
151
192
|
private setIndicatorPosition;
|
|
152
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabsComponent, never>;
|
|
153
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTabsComponent, "ax-tabs", never, { "look": { "alias": "look"; "required": false; "isSignal": true; }; "location": { "alias": "location"; "required": false; "isSignal": true; }; "fitParent": { "alias": "fitParent"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "onActiveTabChanged": "onActiveTabChanged"; }, ["_contentTabs"], ["ax-tab-item"], true,
|
|
194
|
+
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: {}; }]>;
|
|
154
195
|
}
|
|
155
196
|
|
|
156
197
|
declare class AXTabsModule {
|
|
157
198
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTabsModule, never>;
|
|
158
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTabsModule, never, [typeof i1.CommonModule, typeof i2.PortalModule, typeof i3.AXDecoratorModule, typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective], [typeof AXTabsComponent, typeof AXTabItemComponent, typeof AXTabContentDirective]>;
|
|
199
|
+
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]>;
|
|
159
200
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXTabsModule>;
|
|
160
201
|
}
|
|
161
202
|
|
|
162
|
-
export { AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule };
|
|
203
|
+
export { AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTabsReorderedEvent };
|
|
163
204
|
export type { AXTabLocation, AXTabLook };
|