ps-toolkit-ui 1.3.99 → 1.4.2

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.
@@ -0,0 +1,9 @@
1
+ export declare class CurrentDataClass {
2
+ constructor(data?: any);
3
+ user: any;
4
+ permissions: any[];
5
+ modules: any[];
6
+ software: {
7
+ Version: string;
8
+ };
9
+ }
@@ -1,8 +1,9 @@
1
1
  export declare class SidebarClass {
2
- constructor(l: (k: any, v?: any) => string, name: string, controller: string, action: string, icon: string, children?: SidebarClass[], count?: number);
2
+ constructor(l: (k: any, v?: any) => string, name: string, controller: string, action: string, url: string, icon: string, children?: SidebarClass[], count?: number);
3
3
  l: (k: any, v?: any) => string;
4
4
  controller: string;
5
5
  action: string;
6
+ url: string;
6
7
  name: string;
7
8
  icon: string;
8
9
  count: number;
@@ -1,10 +1,10 @@
1
1
  export declare const strings: {
2
2
  fa: {
3
- public: {
4
- header: {
3
+ Public: {
4
+ Header: {
5
5
  Logout: string;
6
6
  };
7
- login: {
7
+ Login: {
8
8
  ReSendCodeDes: string;
9
9
  ReSendCodeRemain: string;
10
10
  Code: string;
@@ -20,15 +20,15 @@ export declare const strings: {
20
20
  DeviceId: string;
21
21
  Copy: string;
22
22
  };
23
- footer: {
23
+ Footer: {
24
24
  Copyright: string;
25
25
  CreatorDesc: string;
26
26
  CreatorCom: string;
27
27
  };
28
- app: {
28
+ App: {
29
29
  Notfound: string;
30
30
  };
31
- notfound: {
31
+ Notfound: {
32
32
  Text: string;
33
33
  Back: string;
34
34
  };
@@ -1,8 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { CurrentDataClass } from '../../classes/current-data.class';
2
3
  export declare class LayoutComponent {
3
- permissions: any[];
4
- area: string;
5
- version: string;
4
+ currentData: CurrentDataClass;
6
5
  logout: EventEmitter<any>;
7
6
  constructor();
8
7
  }
@@ -6,7 +6,6 @@ export declare class SidebarItemComponent {
6
6
  i: number;
7
7
  base: boolean;
8
8
  currentSidebar: any;
9
- area: string;
10
9
  l: (k: any, v?: any) => string;
11
10
  constructor(config: PsToolkitUiConfigService);
12
11
  openClose(e: any): void;
@@ -2,12 +2,11 @@ import { OnInit } from '@angular/core';
2
2
  import { PsToolkitUiConfigService } from '../../services/config.service';
3
3
  import { SidebarClass } from '../../classes/sidebar.class';
4
4
  import { Router } from '@angular/router';
5
+ import { CurrentDataClass } from '../../classes/current-data.class';
5
6
  export declare class SidebarComponent implements OnInit {
6
7
  config: PsToolkitUiConfigService;
7
8
  private router;
8
- permissions: any[];
9
- area: string;
10
- version: string;
9
+ currentData: CurrentDataClass;
11
10
  sidebar: SidebarClass[];
12
11
  currentSidebar: any;
13
12
  l: (k: any, v?: any) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ps-toolkit-ui",
3
- "version": "1.3.99",
3
+ "version": "1.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^10.1.6",
6
6
  "@angular/core": "^10.1.6"