imm-element-ui 1.4.1 → 1.4.3

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.
@@ -4,6 +4,8 @@ import { FormOptions } from '../form/form/form.component';
4
4
  import { SearchOptions } from '../search/search/search.component';
5
5
  import { ConfirmationService, MessageService } from 'primeng/api';
6
6
  import { ActivatedRoute, Router } from '@angular/router';
7
+ import { LoadingService } from '../service/loading.service';
8
+ import { I18nService } from '../service/i18n.service';
7
9
  import * as i0 from "@angular/core";
8
10
  export interface Param {
9
11
  id?: number;
@@ -146,12 +148,13 @@ export declare class AmComponent {
146
148
  searchPrm: Search;
147
149
  exportPrm: Search;
148
150
  tamplate: Deal;
149
- isLoading: import("@angular/core").WritableSignal<boolean>;
150
151
  http: HttpClient;
151
152
  messageService: MessageService;
152
153
  confirmationService: ConfirmationService;
154
+ loadingService: LoadingService;
153
155
  route: ActivatedRoute;
154
156
  router: Router;
157
+ i18n: I18nService;
155
158
  constructor();
156
159
  rfd(prm: Rfd): Observable<any>;
157
160
  webget(param: amWeb): Observable<any>;
@@ -49,7 +49,7 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
49
49
  listAct(item: any): void;
50
50
  actEvent(item: any): void;
51
51
  toggleAct(event: any): void;
52
- setSaveClass(): "danger" | "secondary";
52
+ setSaveClass(): "secondary" | "danger";
53
53
  ngOnDestroy(): void;
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
55
55
  static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "importVisible": { "alias": "importVisible"; "required": false; "isSignal": true; }; "exportVisible": { "alias": "exportVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "required": false; "isSignal": true; }; "configNewPath": { "alias": "configNewPath"; "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>;
@@ -9,6 +9,6 @@ export declare const fieldUtils: {
9
9
  triggerHookAndSetValue: (field: FormField, value: any, emitEvent: boolean, emitHook: boolean, hookObservers: any[], callback: any, datePipe: DatePipe) => void;
10
10
  fromFieldValue: (field: FormField, target: any, datePipe: DatePipe) => any;
11
11
  preloadLog: (rawModel: any, fieldList: FormField[], datePipe: DatePipe) => any;
12
- transLog: (rawModel: any, changedModel: any, mainValue: any, isNew: boolean) => string;
12
+ transLog: (rawModel: any, changedModel: any, mainValue: any, isNew: boolean, i18n: any) => string;
13
13
  isFakedChange: (newValue: any, oldValue: any, field: FormField) => boolean;
14
14
  };
@@ -256,10 +256,10 @@ export declare class GridComponent {
256
256
  rawPrm?: Search;
257
257
  deleteEmit: import("@angular/core").OutputEmitterRef<number[]>;
258
258
  addEmit: import("@angular/core").OutputEmitterRef<void>;
259
- addType: import("@angular/core").InputSignal<"none" | "select" | "handle" | undefined>;
259
+ addType: import("@angular/core").InputSignal<"select" | "none" | "handle" | undefined>;
260
260
  selectData: import("@angular/core").InputSignal<any[] | undefined>;
261
261
  showAct: import("@angular/core").InputSignal<boolean>;
262
- actPos: import("@angular/core").InputSignal<"bottom" | "top">;
262
+ actPos: import("@angular/core").InputSignal<"top" | "bottom">;
263
263
  authLevel: import("@angular/core").InputSignal<number>;
264
264
  http: HttpClient;
265
265
  renderer: Renderer2;
@@ -0,0 +1,9 @@
1
+ import { LoadingService } from '../service/loading.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoadingComponent {
4
+ private loadingService;
5
+ visible: import("@angular/core").Signal<boolean>;
6
+ constructor(loadingService: LoadingService);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "custom-loading", never, {}, {}, never, never, true, never>;
9
+ }
@@ -6,7 +6,6 @@ import { GridComponent, GridOptions } from '../grid/grid/grid.component';
6
6
  import { AmComponent, Get } from '../am/am.component';
7
7
  import { Search } from '../am/am.component';
8
8
  import { HrefBtnList } from './page-form.interface';
9
- import { I18nService } from '../service/i18n.service';
10
9
  import { PermissionBtn } from './page-form.interface';
11
10
  import { ActionService } from '../service/action.service';
12
11
  import * as i0 from "@angular/core";
@@ -39,7 +38,6 @@ export declare class PageFormComponent extends AmComponent implements OnInit {
39
38
  selectData: any[];
40
39
  pageUrl: string;
41
40
  newUrl: string;
42
- i18n: I18nService;
43
41
  authLevel: import("@angular/core").InputSignal<number>;
44
42
  hrefs: any[];
45
43
  action: ActionService;
@@ -0,0 +1,11 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoadingService {
4
+ loading: import("@angular/core").WritableSignal<boolean>;
5
+ loading$: Subject<boolean>;
6
+ constructor();
7
+ setLoading(loading: boolean): void;
8
+ getLoading(): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imm-element-ui",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"
package/public-api.d.ts CHANGED
@@ -14,11 +14,13 @@ export * from './lib/import/import.component';
14
14
  export * from './lib/log/log.component';
15
15
  export * from './lib/row-selector/row-selector.component';
16
16
  export * from './lib/share/utils';
17
+ export * from './lib/service/loading.service';
17
18
  export * from './lib/service/action.service';
18
19
  export * from './lib/service/i18n.service';
19
20
  export * from './lib/service/themeConfig.service';
20
21
  export * from './lib/page-form/page-form.component';
21
22
  export * from './lib/page-grid-list/page-grid-list.component';
23
+ export * from './lib/loading/loading.component';
22
24
  export * from './lib/steps/steps.component';
23
25
  export * from './lib/row-selector/row-selector.component';
24
26
  export * from './lib/search/search/search.component';
@@ -0,0 +1,31 @@
1
+ .mask {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ height: 100vh;
6
+ width: 100vw;
7
+ z-index: 9998;
8
+ }
9
+ .progress {
10
+ position: fixed;
11
+ top: 35vh;
12
+ left: 50vw;
13
+ height: 5rem;
14
+ width: 5rem;
15
+ border-radius: 0.5rem;
16
+ display: flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ z-index: 9999;
20
+ }
21
+
22
+ :host ::ng-deep .custom-spinner .p-progress-spinner-circle {
23
+ animation: custom-progress-spinner-dash 3s ease-in-out infinite, custom-progress-spinner-color 12s ease-in-out infinite;
24
+ }
25
+
26
+ @keyframes custom-progress-spinner-color {
27
+ 100%,
28
+ 0% {
29
+ stroke: #fff;
30
+ }
31
+ }