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.
@@ -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(): "danger" | "secondary";
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>;
@@ -24,6 +24,7 @@ export interface GridOptions extends RawGridOptions {
24
24
  fk?: string;
25
25
  dragSort?: string;
26
26
  selectionMode?: 'none' | 'single' | 'multiple';
27
+ dataKey?: string;
27
28
  }
28
29
  export declare class GridComponent {
29
30
  private action;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "imm-element-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"
@@ -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
  }