@acorex/components 18.4.3 → 18.4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.class.d.ts +0 -9
- package/action-sheet/lib/action-sheet.component.d.ts +3 -3
- package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +1 -1
- package/esm2022/data-table/lib/base-data-table.class.mjs +3 -2
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +16 -12
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +17 -12
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/package.json +71 -71
@@ -20,12 +20,3 @@ export interface AXActionSheetConfig {
|
|
20
20
|
items?: AXActionSheetItem[];
|
21
21
|
content?: AXActionSheetContentType;
|
22
22
|
}
|
23
|
-
export interface AXActionSheetData {
|
24
|
-
title: string;
|
25
|
-
subTitle?: string;
|
26
|
-
closeButton?: boolean;
|
27
|
-
header: boolean;
|
28
|
-
data: unknown;
|
29
|
-
content?: AXActionSheetContentType;
|
30
|
-
items?: AXActionSheetItem[];
|
31
|
-
}
|
@@ -2,17 +2,17 @@ import { AXComponentCloseEvent, MXBaseComponent } from '@acorex/components/commo
|
|
2
2
|
import { DialogRef } from '@angular/cdk/dialog';
|
3
3
|
import { CdkPortalOutletAttachedRef, Portal } from '@angular/cdk/portal';
|
4
4
|
import { OnInit } from '@angular/core';
|
5
|
-
import {
|
5
|
+
import { AXActionSheetConfig, AXActionSheetItem } from './action-sheet.class';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class AXActionSheetComponent extends MXBaseComponent implements OnInit {
|
8
|
-
protected data:
|
8
|
+
protected data: AXActionSheetConfig;
|
9
9
|
private dialogRef;
|
10
10
|
protected _selectedPortal: Portal<any>;
|
11
11
|
private _componentRef;
|
12
12
|
/**
|
13
13
|
* @ignore
|
14
14
|
*/
|
15
|
-
constructor(data:
|
15
|
+
constructor(data: AXActionSheetConfig, dialogRef: DialogRef<AXComponentCloseEvent>);
|
16
16
|
ngOnInit(): void;
|
17
17
|
protected onKeydownHandler(): void;
|
18
18
|
_handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXNoZWV0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2FjdGlvbi1zaGVldC9zcmMvbGliL2FjdGlvbi1zaGVldC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhTdHlsZUNvbG9yVHlwZSB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9jb21tb24nO1xuaW1wb3J0IHsgQ29tcG9uZW50VHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9wb3J0YWwnO1xuaW1wb3J0IHsgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBBWEFjdGlvblNoZWV0SXRlbSB7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIHRleHQ6IHN0cmluZztcbiAgaWNvbj86IHN0cmluZztcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICBjb2xvcj86IEFYU3R5bGVDb2xvclR5cGU7XG4gIG9uQ2xpY2s/
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXNoZWV0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2FjdGlvbi1zaGVldC9zcmMvbGliL2FjdGlvbi1zaGVldC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhTdHlsZUNvbG9yVHlwZSB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9jb21tb24nO1xuaW1wb3J0IHsgQ29tcG9uZW50VHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9wb3J0YWwnO1xuaW1wb3J0IHsgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBBWEFjdGlvblNoZWV0SXRlbSB7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIHRleHQ6IHN0cmluZztcbiAgaWNvbj86IHN0cmluZztcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICBjb2xvcj86IEFYU3R5bGVDb2xvclR5cGU7XG4gIG9uQ2xpY2s/OiAoKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgdHlwZSBBWEFjdGlvblNoZWV0Q29udGVudFR5cGUgPSBUZW1wbGF0ZVJlZjx1bmtub3duPiB8IENvbXBvbmVudFR5cGU8dW5rbm93bj47XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhBY3Rpb25TaGVldENvbmZpZyB7XG4gIHRpdGxlPzogc3RyaW5nO1xuICBzdWJUaXRsZT86IHN0cmluZztcbiAgY2xvc2VCdXR0b24/OiBib29sZWFuO1xuICBoZWFkZXI/OiBib29sZWFuO1xuICBkYXRhPzogdW5rbm93bjtcbiAgY2xvc2VPbkJhY2tkcm9wQ2xpY2s/OiBib29sZWFuO1xuICBpdGVtcz86IEFYQWN0aW9uU2hlZXRJdGVtW107XG4gIGNvbnRlbnQ/OiBBWEFjdGlvblNoZWV0Q29udGVudFR5cGU7XG59XG4iXX0=
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXNoZWV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hY3Rpb24tc2hlZXQvc3JjL2xpYi9hY3Rpb24tc2hlZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2FjdGlvbi1zaGVldC9zcmMvbGliL2FjdGlvbi1zaGVldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQXlCLG9CQUFvQixFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlILE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUE4QixlQUFlLEVBQVUsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDMUcsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBRVQsWUFBWSxFQUNaLE1BQU0sRUFFTixXQUFXLEVBQ1gsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0FBb0J2QixNQUFNLE9BQU8sc0JBQXVCLFNBQVEsZUFBZTtJQU16RDs7T0FFRztJQUNILFlBRVksSUFBeUIsRUFDM0IsU0FBMkM7UUFFbkQsS0FBSyxFQUFFLENBQUM7UUFIRSxTQUFJLEdBQUosSUFBSSxDQUFxQjtRQUMzQixjQUFTLEdBQVQsU0FBUyxDQUFrQztJQUdyRCxDQUFDO0lBRVEsUUFBUTtRQUNmLEtBQUssQ0FBQyxRQU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biAgICAgIFt0YWJpbmRleF09XCJpXCJcbiAgICAgIChjbGljayk9XCJvbkl0ZW1DbGljayhpdGVtKVwiXG4gICAgPlxuICAgICAgQGlmIChpdGVtLmljb24pIHtcbiAgICAgICAgPHNwYW4gY2xhc3M9XCJpdGVtLWljb25cIiBbY2xhc3NdPVwiaXRlbS5pY29uXCI+PC9zcGFuPlxuICAgICAgfVxuICAgICAgPHNwYW4gY2xhc3M9XCJpdGVtLXRleHRcIj57eyBpdGVtLnRleHQgfCB0cmFuc2xhdGUgfCBhc3luYyB9fTwvc3Bhbj5cbiAgICA8L2Rpdj5cbiAgfVxuPC9kaXY+XG4iXX0=
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { AXDataSource, MXBaseComponent, convertArrayToDataSource } from '@acorex/components/common';
|
2
2
|
import { EventEmitter, Injectable, Input, Output, signal } from '@angular/core';
|
3
|
+
import _ from 'lodash';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
export class AXBaseDataTable extends MXBaseComponent {
|
5
6
|
constructor() {
|
@@ -16,7 +17,7 @@ export class AXBaseDataTable extends MXBaseComponent {
|
|
16
17
|
this.selectedRowsChange.emit(v);
|
17
18
|
}
|
18
19
|
selectRows(...rows) {
|
19
|
-
this.selectedRows =
|
20
|
+
this.selectedRows = _.uniq(this.selectedRows.concat(rows));
|
20
21
|
}
|
21
22
|
unSelectRows(...rows) {
|
22
23
|
this.selectedRows = this.selectedRows.filter((c) => !rows.includes(c));
|
@@ -33,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
33
34
|
}], selectedRows: [{
|
34
35
|
type: Input
|
35
36
|
}] } });
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1kYXRhLXRhYmxlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsi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