@acorex/components 20.1.4 → 20.1.6
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 +23 -27
- 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 +41 -30
- 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-kanban.mjs +10 -4
- package/fesm2022/acorex-components-kanban.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-number-box-2.mjs +1 -3
- package/fesm2022/acorex-components-number-box-2.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +46 -16
- 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 +28 -29
- 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 +40 -10
- 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/kanban/index.d.ts +7 -2
- package/package.json +5 -5
- package/paint/index.d.ts +17 -7
- package/tooltip/index.d.ts +4 -4
- package/tree-view/index.d.ts +3 -0
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
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i3 from '@acorex/cdk/common';
|
2
|
-
import { AXHtmlEvent, AXEvent, MXInputBaseValueComponent, MXLookComponent, AXClickEvent, MXBaseComponent } from '@acorex/cdk/common';
|
2
|
+
import { AXHtmlEvent, AXEvent, AXStyleColorType, MXInputBaseValueComponent, MXLookComponent, AXClickEvent, MXBaseComponent } from '@acorex/cdk/common';
|
3
3
|
import * as _angular_core from '@angular/core';
|
4
4
|
import { Type, WritableSignal, ElementRef, Signal, OnDestroy, Renderer2, OnInit, ModuleWithProviders } from '@angular/core';
|
5
5
|
import * as polytype from 'polytype';
|
@@ -54,6 +54,18 @@ interface AXConversationMessage {
|
|
54
54
|
onDownloadClick?: () => void;
|
55
55
|
onCancelClick?: () => void;
|
56
56
|
}
|
57
|
+
declare abstract class AXConversationMessageAction {
|
58
|
+
color?: AXStyleColorType;
|
59
|
+
text: string;
|
60
|
+
icon?: string;
|
61
|
+
onClick: (id: string) => void;
|
62
|
+
items?: AXConversationMessageAction[];
|
63
|
+
}
|
64
|
+
declare class AXConversationMenuOpeningEvent {
|
65
|
+
items: AXConversationMessageAction[];
|
66
|
+
canceled: boolean;
|
67
|
+
data: AXConversationMessage;
|
68
|
+
}
|
57
69
|
declare class AXConversationMessageBaseComponent {
|
58
70
|
message: AXConversationMessage;
|
59
71
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageBaseComponent, never>;
|
@@ -109,25 +121,10 @@ declare const AXConversationInputComponent_base: polytype.Polytype.ClusteredCons
|
|
109
121
|
* @category Components
|
110
122
|
*/
|
111
123
|
declare class AXConversationInputComponent extends AXConversationInputComponent_base {
|
112
|
-
/**
|
113
|
-
* @ignore
|
114
|
-
*/
|
115
124
|
protected inputFile: ElementRef<HTMLInputElement>;
|
116
|
-
/**
|
117
|
-
* @ignore
|
118
|
-
*/
|
119
125
|
protected sendIcon: Signal<unknown>;
|
120
|
-
/**
|
121
|
-
* @ignore
|
122
|
-
*/
|
123
126
|
protected conversationService: AXConversationService;
|
124
|
-
/**
|
125
|
-
* @ignore
|
126
|
-
*/
|
127
127
|
protected chats: Signal<AXConversationMessage[]>;
|
128
|
-
/**
|
129
|
-
* @ignore
|
130
|
-
*/
|
131
128
|
protected replyChat: Signal<AXConversationMessage>;
|
132
129
|
/** Maximum length of input text */
|
133
130
|
maxLength: _angular_core.InputSignal<number>;
|
@@ -245,19 +242,23 @@ declare class AXConversationMessageTypeRegistryService {
|
|
245
242
|
declare class AXConversationMessageComponent extends MXBaseComponent {
|
246
243
|
protected popover: _angular_core.Signal<AXPopoverComponent>;
|
247
244
|
isReplyArrowShown: _angular_core.InputSignal<boolean>;
|
248
|
-
protected conversationService: AXConversationService;
|
249
245
|
chatMessage: _angular_core.InputSignal<AXConversationMessage>;
|
246
|
+
protected conversationService: AXConversationService;
|
250
247
|
protected registryService: AXConversationMessageTypeRegistryService;
|
248
|
+
protected actionButtonItemsPrivate: _angular_core.WritableSignal<AXConversationMessageAction[]>;
|
249
|
+
private actionButtonItemsPublic;
|
250
|
+
onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
|
251
251
|
protected portal: _angular_core.Signal<ComponentPortal<any>>;
|
252
252
|
protected messageType: _angular_core.Signal<string>;
|
253
253
|
protected get isOwn(): boolean;
|
254
|
-
|
254
|
+
protected handleActionClick(): void;
|
255
255
|
protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
|
256
256
|
protected handleResendClick(): void;
|
257
257
|
protected handleDeleteClick(): void;
|
258
258
|
protected replyHandler(e: any): void;
|
259
|
+
get __hostClass(): string;
|
259
260
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageComponent, never>;
|
260
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
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>;
|
261
262
|
}
|
262
263
|
|
263
264
|
/**
|
@@ -359,22 +360,17 @@ declare class AXConversationMessageAudioComponent extends AXConversationMessageB
|
|
359
360
|
* @category Components
|
360
361
|
*/
|
361
362
|
declare class AXConversationViewComponent extends MXBaseComponent {
|
362
|
-
/** @ignore */
|
363
363
|
protected conversationService: AXConversationService;
|
364
364
|
onScrollEnd: _angular_core.OutputEmitterRef<AXEvent>;
|
365
365
|
chatBoxHeight: _angular_core.InputSignal<string>;
|
366
366
|
isReplyArrowShown: _angular_core.InputSignal<boolean>;
|
367
|
-
|
368
|
-
* Emits an event when an action is performed within the conversation view.
|
369
|
-
*
|
370
|
-
* @event
|
371
|
-
*/
|
367
|
+
onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
|
372
368
|
onAction: _angular_core.OutputEmitterRef<AXConversationActionEvent>;
|
373
369
|
updatePrevItems(item: any[]): void;
|
374
370
|
callForUpdate(): void;
|
375
371
|
addNewItem(item: any): void;
|
376
372
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationViewComponent, never>;
|
377
|
-
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"; "onAction": "onAction"; }, never, never, true, never>;
|
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>;
|
378
374
|
}
|
379
375
|
|
380
376
|
/**
|
@@ -652,5 +648,5 @@ declare class AXConversationModule {
|
|
652
648
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXConversationModule>;
|
653
649
|
}
|
654
650
|
|
655
|
-
export { AXConversationActionEvent, AXConversationContainerComponent, AXConversationFileMessageComponent, AXConversationInputComponent, 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 };
|
656
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) {
|