imm-element-ui 1.1.3 → 1.1.5
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/esm2022/lib/am/am.component.mjs +5 -4
- package/esm2022/lib/grid/grid/grid.component.mjs +4 -4
- package/esm2022/lib/grid/grid-utils.mjs +4 -12
- package/esm2022/lib/page-form/page-form.component.mjs +4 -4
- package/esm2022/lib/share/utils.mjs +7 -4
- package/fesm2022/imm-element-ui.mjs +19 -23
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/am/am.component.d.ts +2 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/grid/grid/grid.component.d.ts +1 -0
- package/lib/grid/grid-utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/grid/grid/grid.component.scss +42 -38
package/lib/am/am.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { FormOptions } from '../form/form/form.component';
|
|
4
4
|
import { SearchOptions } from '../search/search/search.component';
|
|
5
|
-
import { MessageService } from 'primeng/api';
|
|
5
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
6
6
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export interface Param {
|
|
@@ -149,6 +149,7 @@ export declare class AmComponent {
|
|
|
149
149
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
150
150
|
http: HttpClient;
|
|
151
151
|
messageService: MessageService;
|
|
152
|
+
confirmationService: ConfirmationService;
|
|
152
153
|
route: ActivatedRoute;
|
|
153
154
|
router: Router;
|
|
154
155
|
constructor();
|
|
@@ -50,7 +50,7 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
50
50
|
listAct(item: any): void;
|
|
51
51
|
actEvent(item: any): void;
|
|
52
52
|
toggleAct(event: any): void;
|
|
53
|
-
setSaveClass(): "
|
|
53
|
+
setSaveClass(): "secondary" | "danger";
|
|
54
54
|
ngOnDestroy(): void;
|
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
56
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "required": false; "isSignal": true; }; "onExport": { "alias": "onExport"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "isList": { "alias": "isList"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; "actionList": { "alias": "actionList"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "saveBtnDisable": { "alias": "saveBtnDisable"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
package/lib/grid/grid-utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { GridOptions } from './grid/grid.component';
|
|
|
4
4
|
import { ActionService } from '../service/action.service';
|
|
5
5
|
export declare const gridUtils: {
|
|
6
6
|
calcRowIds: (api: any, isServerSide: boolean) => any[];
|
|
7
|
-
selectionHandler: (api: any, selectionKeys: any[], startRow: number) => void;
|
|
7
|
+
selectionHandler: (api: any, selectionKeys: any[], startRow: number, dataKey?: string) => void;
|
|
8
8
|
calcGridHeight: (rowCount: number, margin: number) => number;
|
|
9
9
|
getTheme: (themeConfig: ThemeConfigService) => import("ag-grid-enterprise").Theme<{
|
|
10
10
|
accentColor: import("ag-grid-community/dist/types/src/theming/theme-types").ColorValue;
|
package/package.json
CHANGED
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
:host ::ng-deep {
|
|
2
|
-
.ag-grid .ag-body {
|
|
3
|
-
overflow-y: scroll !important;
|
|
4
|
-
scrollbar-gutter: stable;
|
|
5
|
-
transition: height 0.2s ease;
|
|
6
|
-
}
|
|
7
|
-
.ag-grid {
|
|
8
|
-
transition: height 0.2s ease;
|
|
9
|
-
}
|
|
10
|
-
.ag-root-wrapper {
|
|
11
|
-
overflow: initial !important;
|
|
12
|
-
}
|
|
13
|
-
.tree-grid {
|
|
14
|
-
.ag-body-vertical-scroll {
|
|
15
|
-
width: 5px !important;
|
|
16
|
-
max-width: 5px !important;
|
|
17
|
-
min-width: 5px !important;
|
|
18
|
-
display: block !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.cell-wrap-text {
|
|
22
|
-
white-space: normal !important;
|
|
23
|
-
word-break: break-word !important;
|
|
24
|
-
line-height: 1.5 !important;
|
|
25
|
-
padding: 10px 15px;
|
|
26
|
-
}
|
|
27
|
-
.editable-column-header .ag-header-cell-text::after {
|
|
28
|
-
content: '✐';
|
|
29
|
-
padding-left: 6px;
|
|
30
|
-
color: var(--p-primary-color);
|
|
31
|
-
// font-size: 14px;
|
|
32
|
-
}
|
|
33
|
-
.rowSpan{
|
|
34
|
-
.ag-cell {
|
|
35
|
-
border-right: 1px solid color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
1
|
+
:host ::ng-deep {
|
|
2
|
+
.ag-grid .ag-body {
|
|
3
|
+
overflow-y: scroll !important;
|
|
4
|
+
scrollbar-gutter: stable;
|
|
5
|
+
transition: height 0.2s ease;
|
|
6
|
+
}
|
|
7
|
+
.ag-grid {
|
|
8
|
+
transition: height 0.2s ease;
|
|
9
|
+
}
|
|
10
|
+
.ag-root-wrapper {
|
|
11
|
+
overflow: initial !important;
|
|
12
|
+
}
|
|
13
|
+
.tree-grid {
|
|
14
|
+
.ag-body-vertical-scroll {
|
|
15
|
+
width: 5px !important;
|
|
16
|
+
max-width: 5px !important;
|
|
17
|
+
min-width: 5px !important;
|
|
18
|
+
display: block !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.cell-wrap-text {
|
|
22
|
+
white-space: normal !important;
|
|
23
|
+
word-break: break-word !important;
|
|
24
|
+
line-height: 1.5 !important;
|
|
25
|
+
padding: 10px 15px;
|
|
26
|
+
}
|
|
27
|
+
.editable-column-header .ag-header-cell-text::after {
|
|
28
|
+
content: '✐';
|
|
29
|
+
padding-left: 6px;
|
|
30
|
+
color: var(--p-primary-color);
|
|
31
|
+
// font-size: 14px;
|
|
32
|
+
}
|
|
33
|
+
.rowSpan{
|
|
34
|
+
.ag-cell {
|
|
35
|
+
border-right: 1px solid color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.ag-cell {
|
|
39
|
+
display: flex !important;
|
|
40
|
+
align-items: center !important;
|
|
41
|
+
justify-content: start !important;
|
|
42
|
+
}
|
|
39
43
|
}
|