asp-lib 1.0.30 → 1.0.31

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.
@@ -17,18 +17,30 @@ export declare class FormComponent implements OnInit, OnChanges {
17
17
  saveClick: EventEmitter<any>;
18
18
  dropItemsList1: any;
19
19
  dragOptionsList1: any;
20
+ dropItemsListMO: any;
21
+ dragOptionsListMO: any;
20
22
  assigned: Set<string | number>;
23
+ assignedMO: Set<string | number>;
21
24
  dropHover: boolean;
25
+ dropHoverMO: boolean;
22
26
  loadingDragOptions: boolean;
27
+ loadingMenuOptionsDragOptions: boolean;
23
28
  loadedDragOptions: any[];
29
+ loadedMenuOptionsDragOptions: any[];
24
30
  loadingDroppedOptions: boolean;
31
+ loadingDroppedOptionsMO: boolean;
25
32
  get hasRadioButtons(): boolean;
26
33
  get hasCheckBoxes(): boolean;
27
34
  get hasDragAndDrop(): boolean;
35
+ get hasMenuOptionsDragAndDrop(): boolean;
28
36
  get dragDropField(): FormField | undefined;
29
37
  get dragDropFieldOptions(): any[] | undefined;
30
38
  get dragOptions(): any[];
31
39
  get droppedItems(): any[];
40
+ get dragMenuOptionsDropField(): FormField | undefined;
41
+ get dragMenuOptionsDropFieldOptions(): any[] | undefined;
42
+ get dragMenuOptionsOptions(): any[];
43
+ get droppedItemsMenuOptions(): any[];
32
44
  get isCreating(): boolean;
33
45
  get dropItemSetupUi(): Type<any> | undefined;
34
46
  entityFormInputs(types: string[]): FormField[];
@@ -38,8 +50,11 @@ export declare class FormComponent implements OnInit, OnChanges {
38
50
  ngOnChanges(changes: SimpleChanges): void;
39
51
  ngOnInit(): void;
40
52
  drop(event: CdkDragDrop<any[]>): void;
53
+ dropMO(event: CdkDragDrop<any[]>): void;
41
54
  setDropHover(value: boolean): void;
55
+ setDropHoverMO(value: boolean): void;
42
56
  removeDroppedItem(item: any): void;
57
+ removeDroppedItemMO(item: any): void;
43
58
  setupItem(item: any): void;
44
59
  constructor(dialog: MatDialog, http: HttpClient);
45
60
  getFormControl(field: any): any;
@@ -12,6 +12,7 @@ export declare class InputComponent {
12
12
  appereance: string;
13
13
  clearButton: boolean;
14
14
  disabled?: boolean;
15
+ type: string;
15
16
  keyup: EventEmitter<any>;
16
17
  hostStyle: any;
17
18
  set style(styleInput: {
@@ -23,5 +24,5 @@ export declare class InputComponent {
23
24
  clearValue(): void;
24
25
  keyupHandler(event: any): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lib-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "className": { "alias": "className"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appereance": { "alias": "appereance"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "keyup": "keyup"; }, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lib-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "className": { "alias": "className"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appereance": { "alias": "appereance"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "keyup": "keyup"; }, never, never, false, never>;
27
28
  }
@@ -28,6 +28,8 @@ export interface FormField {
28
28
  requiresNewValue?: boolean;
29
29
  creationRequired?: boolean;
30
30
  readOnly?: boolean;
31
+ inputType?: string;
32
+ drags?: any[];
31
33
  }
32
34
  export interface RequestDetails {
33
35
  endpoint: string;
@@ -73,11 +75,13 @@ export interface SecurityEndpoints {
73
75
  usersByCustomer?: SecurityEndpoint;
74
76
  listResources?: SecurityEndpoint;
75
77
  resourcesByRole?: SecurityEndpoint;
78
+ optionsbyrole?: SecurityEndpoint;
76
79
  rolesByUser?: SecurityEndpoint;
77
80
  assignUserRole?: SecurityEndpoint;
78
81
  rolesByCustomer?: SecurityEndpoint;
79
82
  assignCustomerRole?: SecurityEndpoint;
80
- assignResource?: SecurityEndpoint;
83
+ assignResources?: SecurityEndpoint;
84
+ assignoptions?: SecurityEndpoint;
81
85
  savePermissions?: SecurityEndpoint;
82
86
  usersByRole?: SecurityEndpoint;
83
87
  assignRoleUsers?: SecurityEndpoint;
@@ -96,4 +100,5 @@ export interface SecurityEndpoints {
96
100
  assignUserAgencies?: SecurityEndpoint;
97
101
  listAllAgencies?: SecurityEndpoint;
98
102
  assignCustomerUsers?: SecurityEndpoint;
103
+ parentoptions?: SecurityEndpoint;
99
104
  }
@@ -33,6 +33,15 @@ export declare class SecurityAdminComponent implements OnInit {
33
33
  setupUi: typeof ResourceActionsComponent;
34
34
  optionsEndpoint: string | import("../interfaces/interfaces").SecurityEndpoint;
35
35
  };
36
+ menuOptionsField: {
37
+ label: string;
38
+ dropLabel: string;
39
+ name: string;
40
+ type: string;
41
+ dragTitle: string;
42
+ setupUi: typeof ResourceActionsComponent;
43
+ optionsEndpoint: string | import("../interfaces/interfaces").SecurityEndpoint;
44
+ };
36
45
  resetItemSelected: Subject<boolean>;
37
46
  assignRoles: (entityType: "Customer" | "User") => void;
38
47
  userActions: {
@@ -57,6 +57,7 @@ export declare class SecurityAdminService {
57
57
  selectRole(role: any): void;
58
58
  saveItem(endpoint: string, updatedItem: any): Observable<Object>;
59
59
  assignResource(roleId: number, resources: any[]): Observable<Object>;
60
+ assignOptions(roleId: number, options: any[]): Observable<Object>;
60
61
  savePermissions(permissions: any[]): Observable<Object>;
61
62
  getMenuTree(): Observable<Object>;
62
63
  getAppModules(): Observable<Object>;
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class SecurityServices {
5
5
  private http;
6
6
  static readonly HISTORY = "/security/secure/gethistory";
7
- static readonly MODULES = "/security/secure/modulelist";
7
+ static readonly MODULES = "/security/secure/modulesbyuser";
8
8
  static readonly MODULE_OPTION = "/security/secure/optionsbymodule";
9
9
  static readonly COMPANIES_INFO = "/security/secure/getCompaniesInfo";
10
10
  static readonly VERIFY_AUTH = "/security/secure/validatesession";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asp-lib",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.2.0 <20.0.0",
6
6
  "@angular/core": ">=16.2.0 <20.0.0",