ps-toolkit-ui 0.0.93 → 0.0.97

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.
@@ -130,6 +130,10 @@ export declare enum PermissionTypeEnum {
130
130
  OptionModal = 7,
131
131
  OptionConfirm = 8
132
132
  }
133
+ export declare enum PermissionOptionTypeEnum {
134
+ Icon = 0,
135
+ Button = 1
136
+ }
133
137
  export declare enum VehicleType {
134
138
  Car = 1,
135
139
  Motorcycle = 2,
@@ -137,3 +141,8 @@ export declare enum VehicleType {
137
141
  Train = 4,
138
142
  Ship = 5
139
143
  }
144
+ export declare enum TableOptionType {
145
+ Hidden = 1,
146
+ Show = 2,
147
+ Group = 3
148
+ }
@@ -1,15 +1,16 @@
1
- import { PermissionTypeEnum } from './enum.class';
1
+ import { PermissionOptionTypeEnum, PermissionTypeEnum } from './enum.class';
2
2
  import { ModalClass } from './modal.class';
3
3
  export declare class PermissionClass {
4
4
  Name: string;
5
5
  Icon: string;
6
6
  Type: PermissionTypeEnum;
7
+ OptionType: PermissionOptionTypeEnum;
7
8
  Area: string;
8
9
  Controller: string;
9
10
  Action: string;
10
11
  Condition: string;
11
12
  Accesses: PermissionClass[];
12
- constructor(Name?: string, Icon?: string, Type?: PermissionTypeEnum, Area?: string, Controller?: string, Action?: string, Condition?: string, Accesses?: PermissionClass[]);
13
+ constructor(Name?: string, Icon?: string, Type?: PermissionTypeEnum, OptionType?: PermissionOptionTypeEnum, Area?: string, Controller?: string, Action?: string, Condition?: string, Accesses?: PermissionClass[]);
13
14
  Modal: ModalClass;
14
15
  RelatedId: string;
15
16
  OnClick: (btn: any) => void;
@@ -1,6 +1,6 @@
1
1
  import { ModalClass } from './modal.class';
2
2
  import { FormClass, InputClass } from './form.class';
3
- import { Method, TableCollType } from './enum.class';
3
+ import { Method, TableCollType, TableOptionType } from './enum.class';
4
4
  import { PermissionClass } from './permission.class';
5
5
  export declare class TableClass {
6
6
  constructor(environment: any, l: (k: any, v?: any) => string, permissions: PermissionClass, name?: string, cls?: string, perPage?: number, height?: number);
@@ -29,6 +29,7 @@ export declare class TableClass {
29
29
  displayLabel: boolean;
30
30
  isReport: boolean;
31
31
  sortable: boolean;
32
+ optionType: TableOptionType;
32
33
  loading: boolean;
33
34
  hasStatus: boolean;
34
35
  hasChildren: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { TableClass, TableCollClass } from '../../../classes/table.class';
3
- import { InputType } from '../../../classes/enum.class';
3
+ import { InputType, TableOptionType } from '../../../classes/enum.class';
4
4
  import { InputClass } from '../../../classes/form.class';
5
5
  import { PsToolkitUiConfigService } from '../../../services/config.service';
6
6
  export declare class TableRowComponent implements OnInit {
@@ -12,6 +12,7 @@ export declare class TableRowComponent implements OnInit {
12
12
  row: any;
13
13
  loadParent: EventEmitter<string>;
14
14
  get type(): typeof InputType;
15
+ get tableOptionType(): typeof TableOptionType;
15
16
  options: InputClass[];
16
17
  optEdit: InputClass;
17
18
  optDelete: InputClass;
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { TableClass } from '../../classes/table.class';
4
- import { InputType, TableCollType } from '../../classes/enum.class';
4
+ import { InputType, TableCollType, TableOptionType } from '../../classes/enum.class';
5
5
  import { InputClass } from '../../classes/form.class';
6
6
  import { ConfirmComponent } from '../confirm/confirm.component';
7
7
  export declare class TableComponent implements OnInit {
@@ -9,6 +9,7 @@ export declare class TableComponent implements OnInit {
9
9
  table: TableClass;
10
10
  changeRows: EventEmitter<object>;
11
11
  get type(): typeof InputType;
12
+ get tableOptionType(): typeof TableOptionType;
12
13
  get colType(): typeof TableCollType;
13
14
  rows: ElementRef;
14
15
  tableDiv: ElementRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ps-toolkit-ui",
3
- "version": "0.0.93",
3
+ "version": "0.0.97",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^10.1.6",
6
6
  "@angular/core": "^10.1.6"