@acorex/components 18.1.4 → 18.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +1 -1
- package/action-sheet/lib/action-sheet.service.d.ts +2 -2
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +8 -8
- package/esm2022/action-sheet/lib/action-sheet.service.mjs +11 -13
- package/esm2022/data-table/lib/base-data-table.class.mjs +2 -1
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +3 -3
- package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +3 -3
- package/fesm2022/acorex-components-action-sheet.mjs +15 -17
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +3 -2
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +2 -2
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/package.json +7 -7
@@ -17,7 +17,7 @@ export declare class AXActionSheetComponent extends MXBaseComponent implements O
|
|
17
17
|
protected onKeydownHandler(): void;
|
18
18
|
_handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
19
19
|
onItemClick(item: AXActionSheetItem): void;
|
20
|
-
close(): void;
|
20
|
+
close(e: any): void;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXActionSheetComponent, never>;
|
22
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {}, {}, never, never, false, never>;
|
23
23
|
}
|
@@ -2,8 +2,8 @@ import { Subject } from 'rxjs';
|
|
2
2
|
import { AXActionSheetConfig } from './action-sheet.class';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export interface AXActionSheetDialogRef {
|
5
|
-
close()
|
6
|
-
closed: Subject<
|
5
|
+
close: (e?: any) => void;
|
6
|
+
closed: Subject<any>;
|
7
7
|
}
|
8
8
|
export declare class AXActionSheetService {
|
9
9
|
private dialog;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { AXClosbaleComponent, AXFocusableComponent, MXBaseComponent
|
1
|
+
import { AXClosbaleComponent, AXFocusableComponent, MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';
|
3
|
-
import { ComponentPortal, TemplatePortal
|
3
|
+
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
4
4
|
import { ChangeDetectionStrategy, Component, HostListener, Inject, TemplateRef, ViewEncapsulation, } from '@angular/core';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/cdk/dialog";
|
@@ -36,7 +36,7 @@ export class AXActionSheetComponent extends MXBaseComponent {
|
|
36
36
|
onKeydownHandler() {
|
37
37
|
const focusedOrHasFocused = this.getHostElement().matches(':focus-within');
|
38
38
|
if (this.data.closeButton && focusedOrHasFocused) {
|
39
|
-
this.close();
|
39
|
+
this.close(null);
|
40
40
|
}
|
41
41
|
}
|
42
42
|
_handleAttched(ref) {
|
@@ -47,21 +47,21 @@ export class AXActionSheetComponent extends MXBaseComponent {
|
|
47
47
|
Object.assign(this._componentRef, { _isPopup: true });
|
48
48
|
if (ref.instance.onClosed) {
|
49
49
|
ref.instance.onClosed.subscribe((e) => {
|
50
|
-
this.close();
|
50
|
+
this.close(e);
|
51
51
|
});
|
52
52
|
}
|
53
53
|
}
|
54
54
|
}
|
55
55
|
onItemClick(item) {
|
56
|
-
this.close();
|
56
|
+
this.close(item);
|
57
57
|
if (item?.onClick)
|
58
58
|
item.onClick();
|
59
59
|
}
|
60
|
-
close() {
|
60
|
+
close(e) {
|
61
61
|
this.dialogRef.close({
|
62
62
|
component: this._componentRef,
|
63
63
|
htmlElement: this.getHostElement(),
|
64
|
-
data:
|
64
|
+
data: e,
|
65
65
|
});
|
66
66
|
}
|
67
67
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXActionSheetComponent, deps: [{ token: DIALOG_DATA }, { token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
@@ -95,4 +95,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
95
95
|
type: HostListener,
|
96
96
|
args: ['keydown.escape']
|
97
97
|
}] } });
|
98
|
-
//# sourceMappingURL=data:application/json;base64,
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXNoZWV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hY3Rpb24tc2hlZXQvc3JjL2xpYi9hY3Rpb24tc2hlZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2FjdGlvbi1zaGVldC9zcmMvbGliL2FjdGlvbi1zaGVldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQXlCLG9CQUFvQixFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlILE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUE4QixlQUFlLEVBQVUsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDMUcsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBRVQsWUFBWSxFQUNaLE1BQU0sRUFFTixXQUFXLEVBQ1gsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0FBb0J2QixNQUFNLE9BQU8sc0JBQXVCLFNBQVEsZUFBZTtJQU16RDs7T0FFRztJQUNILFlBRVksSUFBdUIsRUFDekIsU0FBMkM7UUFFbkQsS0FBSyxFQUFFLENBQUM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kgPSAkaW5kZXg7IHRyYWNrIGkpIHtcbiAgICA8ZGl2XG4gICAgICBjbGFzcz1cImF4LWFjdGlvbi1zaGVldC1pdGVtIGF4LXt7IGl0ZW0uY29sb3IgfX1cIlxuICAgICAgW2NsYXNzLmF4LXN0YXRlLWRpc2FibGVkXT1cIml0ZW0uZGlzYWJsZWRcIlxuICAgICAgW3RhYmluZGV4XT1cImlcIlxuICAgICAgKGNsaWNrKT1cIm9uSXRlbUNsaWNrKGl0ZW0pXCJcbiAgICA+XG4gICAgICBAaWYgKGl0ZW0uaWNvbikge1xuICAgICAgICA8c3BhbiBjbGFzcz1cIml0ZW0taWNvblwiIFtjbGFzc109XCJpdGVtLmljb25cIj48L3NwYW4+XG4gICAgICB9XG4gICAgICA8c3BhbiBjbGFzcz1cIml0ZW0tdGV4dFwiPnt7IGl0ZW0udGV4dCB8IHRyYW5zbGF0ZSB8IGFzeW5jIH19PC9zcGFuPlxuICAgIDwvZGl2PlxuICB9XG48L2Rpdj5cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dialog } from '@angular/cdk/dialog';
|
2
2
|
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
3
3
|
import { Injectable, inject } from '@angular/core';
|
4
|
-
import {
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
5
5
|
import { AXActionSheetComponent } from './action-sheet.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export class AXActionSheetService {
|
@@ -27,24 +27,22 @@ export class AXActionSheetService {
|
|
27
27
|
hasBackdrop: true,
|
28
28
|
panelClass: ['ax-actionsheet-panel'],
|
29
29
|
disableClose: config.closeOnBackdropClick ? false : true,
|
30
|
-
positionStrategy: new GlobalPositionStrategy()
|
31
|
-
.centerHorizontally()
|
32
|
-
.bottom(),
|
30
|
+
positionStrategy: new GlobalPositionStrategy().centerHorizontally().bottom(),
|
33
31
|
});
|
34
32
|
const promise = new Promise((resolve) => {
|
35
|
-
const closed = new
|
33
|
+
const closed = new BehaviorSubject(null);
|
36
34
|
const axDialogRef = {
|
37
|
-
close: () => {
|
38
|
-
dialogRef.close();
|
35
|
+
close: (e) => {
|
36
|
+
dialogRef.close(e);
|
39
37
|
},
|
40
38
|
closed,
|
41
39
|
};
|
42
|
-
dialogRef.closed.subscribe(() => {
|
43
|
-
closed.next();
|
40
|
+
dialogRef.closed.subscribe((d) => {
|
41
|
+
closed.next({ data: d.data.data });
|
42
|
+
if (resolve) {
|
43
|
+
resolve(axDialogRef);
|
44
|
+
}
|
44
45
|
});
|
45
|
-
if (resolve) {
|
46
|
-
resolve(axDialogRef);
|
47
|
-
}
|
48
46
|
});
|
49
47
|
return promise;
|
50
48
|
}
|
@@ -54,4 +52,4 @@ export class AXActionSheetService {
|
|
54
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXActionSheetService, decorators: [{
|
55
53
|
type: Injectable
|
56
54
|
}] });
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXNoZWV0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYWN0aW9uLXNoZWV0L3NyYy9saWIvYWN0aW9uLXNoZWV0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxlQUFlLEVBQVcsTUFBTSxNQUFNLENBQUM7QUFFaEQsT0FBTy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0cnVlLFxuICAgICAgY2xvc2VPbkRlc3Ryb3k6IHRydWUsXG4gICAgICBoYXNCYWNrZHJvcDogdHJ1ZSxcbiAgICAgIHBhbmVsQ2xhc3M6IFsnYXgtYWN0aW9uc2hlZXQtcGFuZWwnXSxcbiAgICAgIGRpc2FibGVDbG9zZTogY29uZmlnLmNsb3NlT25CYWNrZHJvcENsaWNrID8gZmFsc2UgOiB0cnVlLFxuICAgICAgcG9zaXRpb25TdHJhdGVneTogbmV3IEdsb2JhbFBvc2l0aW9uU3RyYXRlZ3koKS5jZW50ZXJIb3Jpem9udGFsbHkoKS5ib3R0b20oKSxcbiAgICB9KTtcbiAgICBjb25zdCBwcm9taXNlID0gbmV3IFByb21pc2U8QVhBY3Rpb25TaGVldERpYWxvZ1JlZj4oKHJlc29sdmUpID0+IHtcbiAgICAgIGNvbnN0IGNsb3NlZCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8YW55PihudWxsKTtcbiAgICAgIGNvbnN0IGF4RGlhbG9nUmVmOiBBWEFjdGlvblNoZWV0RGlhbG9nUmVmID0ge1xuICAgICAgICBjbG9zZTogKGUpID0+IHtcbiAgICAgICAgICBkaWFsb2dSZWYuY2xvc2UoZSk7XG4gICAgICAgIH0sXG4gICAgICAgIGNsb3NlZCxcbiAgICAgIH07XG4gICAgICBkaWFsb2dSZWYuY2xvc2VkLnN1YnNjcmliZSgoZDogYW55KSA9PiB7XG4gICAgICAgIGNsb3NlZC5uZXh0KHsgZGF0YTogZC5kYXRhLmRhdGEgfSk7XG4gICAgICAgIGlmIChyZXNvbHZlKSB7XG4gICAgICAgICAgcmVzb2x2ZShheERpYWxvZ1JlZik7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH0pO1xuICAgIHJldHVybiBwcm9taXNlO1xuICB9XG59XG4iXX0=
|
@@ -13,6 +13,7 @@ export class AXBaseDataTable extends MXBaseComponent {
|
|
13
13
|
}
|
14
14
|
set selectedRows(v) {
|
15
15
|
this._selectedRows.set(v);
|
16
|
+
this.selectedRowsChange.emit(v);
|
16
17
|
}
|
17
18
|
selectRows(...rows) {
|
18
19
|
this.selectedRows = [...this.selectedRows, ...rows];
|
@@ -32,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
32
33
|
}], selectedRows: [{
|
33
34
|
type: Input
|
34
35
|
}] } });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1kYXRhLXRhYmxlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2RhdGEtdGFibGUvc3JjL2xpYi9iYXNlLWRhdGEtdGFibGUuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBVyxlQUFlLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM3RyxPQUFPLEVBQUUsWUFBWSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFrQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBaUJoRyxNQUFNLE9BQWdCLGVBQWdCLFNBQVEsZUFBZTtJQUQ3RDs7UUFFVyxlQUFVLEdBQTBCLHdCQUF3QixDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBRzFFLHVCQUFrQixHQUE0QixJQUFJLFlBQVksRUFBYSxDQUFDO1FBRXBFLGtCQUFhLEdBQThCLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztLQWlCL0Q7SUFoQkMsSUFDVyxZQUFZO1FBQ3JCLE9BQU8sSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDO0lBQzlCLENBQUM7SUFDRCxJQUFXLFlBQVksQ0FBQyxDQUFZO1FB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