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.
- package/bundles/ps-toolkit-ui.umd.js +29 -9
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/enum.class.js +12 -1
- package/esm2015/lib/classes/permission.class.js +3 -2
- package/esm2015/lib/classes/table.class.js +4 -3
- package/esm2015/lib/components/base.component.js +2 -2
- package/esm2015/lib/components/sidebar/sidebar.component.js +1 -3
- package/esm2015/lib/components/table/row/table.row.component.js +5 -4
- package/esm2015/lib/components/table/table.component.js +4 -3
- package/fesm2015/ps-toolkit-ui.js +23 -10
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +9 -0
- package/lib/classes/permission.class.d.ts +3 -2
- package/lib/classes/table.class.d.ts +2 -1
- package/lib/components/table/row/table.row.component.d.ts +2 -1
- package/lib/components/table/table.component.d.ts +2 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -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;
|