@acorex/components 20.1.5 → 20.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/action-sheet/index.d.ts +2 -1
- package/badge/index.d.ts +3 -4
- package/check-box/index.d.ts +2 -1
- package/color-box/index.d.ts +1 -0
- package/color-palette/index.d.ts +2 -0
- package/conversation/index.d.ts +10 -5
- package/fesm2022/acorex-components-action-sheet.mjs +22 -11
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +2 -2
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +2 -2
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +5 -6
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +8 -6
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +11 -2
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +23 -7
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +2 -2
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +30 -15
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +14 -14
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +1 -1
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +3 -3
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +2 -2
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +5 -4
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +27 -20
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.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-otp.mjs +9 -3
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +41 -18
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +2 -2
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +11 -11
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +2 -2
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +2 -2
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs +8 -8
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +1 -1
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +20 -22
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +4 -4
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +9 -9
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/image-editor/index.d.ts +1 -2
- package/package.json +5 -5
- package/paint/index.d.ts +16 -8
- package/tooltip/index.d.ts +4 -4
package/action-sheet/index.d.ts
CHANGED
@@ -69,6 +69,7 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
69
69
|
private onTouchMoveListenerFn;
|
70
70
|
private onTouchUpListenerFn;
|
71
71
|
private isDragging;
|
72
|
+
private isFullScreen;
|
72
73
|
private curserOffset;
|
73
74
|
private actionSheetHeight;
|
74
75
|
private isActionSheetHeightSet;
|
@@ -89,7 +90,7 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
89
90
|
protected handleMouseDown(e: MouseEvent): void;
|
90
91
|
protected handleTouchDown(e: TouchEvent): void;
|
91
92
|
private handleDown;
|
92
|
-
private
|
93
|
+
private snapToFinalPosition;
|
93
94
|
private heightCalculator;
|
94
95
|
protected handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
95
96
|
onItemClick(item: AXActionSheetItem): void;
|
package/badge/index.d.ts
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { MXColorLookComponent } from '@acorex/cdk/common';
|
3
3
|
import * as i1 from '@angular/common';
|
4
4
|
|
5
|
-
declare class AXBadgeComponent extends
|
5
|
+
declare class AXBadgeComponent extends MXColorLookComponent {
|
6
6
|
/**
|
7
7
|
* Defines the text displayed inside the badge.
|
8
8
|
*
|
9
9
|
* @defaultValue ''
|
10
10
|
*/
|
11
11
|
text: i0.InputSignal<string>;
|
12
|
-
look: i0.InputSignal<string>;
|
13
12
|
/**
|
14
13
|
* @ignore
|
15
14
|
*/
|
16
15
|
private get __hostClass();
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXBadgeComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXBadgeComponent, "ax-badge", never, { "color": { "alias": "color"; "required": false; }; "
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXBadgeComponent, "ax-badge", never, { "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["ax-prefix", "ax-suffix"], true, never>;
|
19
18
|
}
|
20
19
|
|
21
20
|
declare class AXBadgeModule {
|
package/check-box/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ declare const AXCheckBoxComponent_base: polytype.Polytype.ClusteredConstructor<[
|
|
16
16
|
* @category Components
|
17
17
|
*/
|
18
18
|
declare class AXCheckBoxComponent extends AXCheckBoxComponent_base {
|
19
|
+
isLoading: i0.InputSignal<boolean>;
|
19
20
|
/**
|
20
21
|
* @ignore
|
21
22
|
*/
|
@@ -62,7 +63,7 @@ declare class AXCheckBoxComponent extends AXCheckBoxComponent_base {
|
|
62
63
|
private get __hostClass();
|
63
64
|
protected changeValue(): void;
|
64
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCheckBoxComponent, never>;
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXCheckBoxComponent, "ax-check-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; }, ["_labels"], ["ax-label", "ax-form-hint", "ax-validation-rule"], true, never>;
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXCheckBoxComponent, "ax-check-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; }, ["_labels"], ["ax-label", "ax-form-hint", "ax-validation-rule"], true, never>;
|
66
67
|
}
|
67
68
|
|
68
69
|
declare class AXCheckBoxModule {
|
package/color-box/index.d.ts
CHANGED
@@ -59,6 +59,7 @@ declare class AXColorBoxComponent extends AXColorBoxComponent_base {
|
|
59
59
|
* @ignore
|
60
60
|
*/
|
61
61
|
internalValueChanged(value?: Date): void;
|
62
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
62
63
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXColorBoxComponent, never>;
|
63
64
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXColorBoxComponent, "ax-color-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "showBadge": { "alias": "showBadge"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-validation-rule"], true, never>;
|
64
65
|
}
|
package/color-palette/index.d.ts
CHANGED
@@ -48,6 +48,7 @@ declare const AXDefaultColorPalette: {
|
|
48
48
|
declare class AXColorPaletteInputComponent extends MXBaseComponent implements AfterViewInit {
|
49
49
|
_parent: AXColorPaletteParentComponent;
|
50
50
|
private _unsubscriber;
|
51
|
+
private colorService;
|
51
52
|
isValid: boolean;
|
52
53
|
_rgba: {
|
53
54
|
r: number;
|
@@ -108,6 +109,7 @@ declare class AXColorPaletteInputComponent extends MXBaseComponent implements Af
|
|
108
109
|
declare class AXColorPalettePickerComponent extends MXBaseComponent implements OnDestroy {
|
109
110
|
_parent: AXColorPaletteParentComponent;
|
110
111
|
private _unsubscriber;
|
112
|
+
private colorService;
|
111
113
|
render: Renderer2;
|
112
114
|
zone: NgZone;
|
113
115
|
_rgba: {
|
package/conversation/index.d.ts
CHANGED
@@ -61,6 +61,11 @@ declare abstract class AXConversationMessageAction {
|
|
61
61
|
onClick: (id: string) => void;
|
62
62
|
items?: AXConversationMessageAction[];
|
63
63
|
}
|
64
|
+
declare class AXConversationMenuOpeningEvent {
|
65
|
+
items: AXConversationMessageAction[];
|
66
|
+
canceled: boolean;
|
67
|
+
data: AXConversationMessage;
|
68
|
+
}
|
64
69
|
declare class AXConversationMessageBaseComponent {
|
65
70
|
message: AXConversationMessage;
|
66
71
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageBaseComponent, never>;
|
@@ -242,7 +247,7 @@ declare class AXConversationMessageComponent extends MXBaseComponent {
|
|
242
247
|
protected registryService: AXConversationMessageTypeRegistryService;
|
243
248
|
protected actionButtonItemsPrivate: _angular_core.WritableSignal<AXConversationMessageAction[]>;
|
244
249
|
private actionButtonItemsPublic;
|
245
|
-
|
250
|
+
onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
|
246
251
|
protected portal: _angular_core.Signal<ComponentPortal<any>>;
|
247
252
|
protected messageType: _angular_core.Signal<string>;
|
248
253
|
protected get isOwn(): boolean;
|
@@ -253,7 +258,7 @@ declare class AXConversationMessageComponent extends MXBaseComponent {
|
|
253
258
|
protected replyHandler(e: any): void;
|
254
259
|
get __hostClass(): string;
|
255
260
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageComponent, never>;
|
256
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; }, { "
|
261
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; }, { "onActionMenuOpening": "onActionMenuOpening"; }, never, never, true, never>;
|
257
262
|
}
|
258
263
|
|
259
264
|
/**
|
@@ -359,13 +364,13 @@ declare class AXConversationViewComponent extends MXBaseComponent {
|
|
359
364
|
onScrollEnd: _angular_core.OutputEmitterRef<AXEvent>;
|
360
365
|
chatBoxHeight: _angular_core.InputSignal<string>;
|
361
366
|
isReplyArrowShown: _angular_core.InputSignal<boolean>;
|
362
|
-
|
367
|
+
onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
|
363
368
|
onAction: _angular_core.OutputEmitterRef<AXConversationActionEvent>;
|
364
369
|
updatePrevItems(item: any[]): void;
|
365
370
|
callForUpdate(): void;
|
366
371
|
addNewItem(item: any): void;
|
367
372
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationViewComponent, never>;
|
368
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationViewComponent, "ax-conversation-view", never, { "chatBoxHeight": { "alias": "chatBoxHeight"; "required": false; "isSignal": true; }; "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; }, { "onScrollEnd": "onScrollEnd"; "
|
373
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationViewComponent, "ax-conversation-view", never, { "chatBoxHeight": { "alias": "chatBoxHeight"; "required": false; "isSignal": true; }; "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; }, { "onScrollEnd": "onScrollEnd"; "onActionMenuOpening": "onActionMenuOpening"; "onAction": "onAction"; }, never, never, true, never>;
|
369
374
|
}
|
370
375
|
|
371
376
|
/**
|
@@ -643,5 +648,5 @@ declare class AXConversationModule {
|
|
643
648
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXConversationModule>;
|
644
649
|
}
|
645
650
|
|
646
|
-
export { AXConversationActionEvent, AXConversationContainerComponent, AXConversationFileMessageComponent, AXConversationInputComponent, AXConversationMessageAction, AXConversationMessageAudioComponent, AXConversationMessageBaseComponent, AXConversationMessageComponent, AXConversationMessageImageComponent, AXConversationMessageVideoComponent, AXConversationModule, AXConversationTextMessageComponent, AXConversationViewComponent, AXConversationVoiceMessageComponent, AXRecordingService, ConversationMessageImagePopupComponent };
|
651
|
+
export { AXConversationActionEvent, AXConversationContainerComponent, AXConversationFileMessageComponent, AXConversationInputComponent, AXConversationMenuOpeningEvent, AXConversationMessageAction, AXConversationMessageAudioComponent, AXConversationMessageBaseComponent, AXConversationMessageComponent, AXConversationMessageImageComponent, AXConversationMessageVideoComponent, AXConversationModule, AXConversationTextMessageComponent, AXConversationViewComponent, AXConversationVoiceMessageComponent, AXRecordingService, ConversationMessageImagePopupComponent };
|
647
652
|
export type { AXAudioRecorder, AXChatModuleConfig, AXConversationMessage, AXConversationMessageType, AXInputFileChange };
|
@@ -103,6 +103,7 @@ class AXActionSheetComponent extends MXBaseComponent {
|
|
103
103
|
this.onTouchMoveListenerFn = () => undefined;
|
104
104
|
this.onTouchUpListenerFn = () => undefined;
|
105
105
|
this.isDragging = signal(false);
|
106
|
+
this.isFullScreen = signal(false);
|
106
107
|
this.curserOffset = signal(0);
|
107
108
|
this.actionSheetHeight = signal(0);
|
108
109
|
this.isActionSheetHeightSet = signal(false);
|
@@ -148,7 +149,7 @@ class AXActionSheetComponent extends MXBaseComponent {
|
|
148
149
|
isUserInteraction: true,
|
149
150
|
dialogRef: this.dialogRef,
|
150
151
|
});
|
151
|
-
this.
|
152
|
+
this.snapToFinalPosition();
|
152
153
|
}
|
153
154
|
});
|
154
155
|
this.onTouchUpListenerFn = this.renderer.listen(this.document, 'touchend', (e) => {
|
@@ -160,7 +161,7 @@ class AXActionSheetComponent extends MXBaseComponent {
|
|
160
161
|
isUserInteraction: true,
|
161
162
|
dialogRef: this.dialogRef,
|
162
163
|
});
|
163
|
-
this.
|
164
|
+
this.snapToFinalPosition();
|
164
165
|
}
|
165
166
|
});
|
166
167
|
}
|
@@ -206,32 +207,42 @@ class AXActionSheetComponent extends MXBaseComponent {
|
|
206
207
|
this.isActionSheetHeightSet.set(true);
|
207
208
|
}
|
208
209
|
}
|
209
|
-
|
210
|
+
snapToFinalPosition() {
|
210
211
|
this.getHostElement().style.transitionDuration = `${this.transitionDuration()}ms`;
|
211
|
-
this.
|
212
|
-
|
212
|
+
const currentHeight = this.getHostElement().clientHeight;
|
213
|
+
const initialHeight = this.actionSheetHeight();
|
214
|
+
const windowHeight = this.document.documentElement.clientHeight;
|
215
|
+
if (currentHeight < initialHeight * 0.75) {
|
213
216
|
this.close(null);
|
214
217
|
return;
|
215
218
|
}
|
216
|
-
if (this.
|
217
|
-
|
218
|
-
this.
|
219
|
+
if (this.isFullScreen() && currentHeight < windowHeight * 0.9) {
|
220
|
+
this.getHostElement().style.height = `${initialHeight}px`;
|
221
|
+
this.isFullScreen.set(false);
|
222
|
+
this.actionSheetService.setActionSheetEventState({
|
223
|
+
data: { state: 'normalSize' },
|
224
|
+
isUserInteraction: true,
|
225
|
+
dialogRef: this.dialogRef,
|
226
|
+
});
|
227
|
+
return;
|
228
|
+
}
|
229
|
+
if (this.data.dragUp && currentHeight > (windowHeight + initialHeight) / 3) {
|
219
230
|
this.getHostElement().style.height = '100vh';
|
231
|
+
this.isFullScreen.set(true);
|
232
|
+
this.document.body.parentElement.style.overscrollBehaviorY = 'contain';
|
220
233
|
this.actionSheetService.setActionSheetEventState({
|
221
234
|
data: { state: 'fullScreen' },
|
222
235
|
isUserInteraction: true,
|
223
236
|
dialogRef: this.dialogRef,
|
224
237
|
});
|
225
|
-
this.document.body.parentElement.style.overscrollBehaviorY = 'contain';
|
226
238
|
return;
|
227
239
|
}
|
228
|
-
this.getHostElement().style.height =
|
240
|
+
this.getHostElement().style.height = `${initialHeight}px`;
|
229
241
|
this.actionSheetService.setActionSheetEventState({
|
230
242
|
data: { state: 'normalSize' },
|
231
243
|
isUserInteraction: true,
|
232
244
|
dialogRef: this.dialogRef,
|
233
245
|
});
|
234
|
-
return;
|
235
246
|
}
|
236
247
|
heightCalculator(clientY) {
|
237
248
|
if (this.data.dragUp) {
|