ngx-techlify-core 18.48.0 → 18.49.0
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/esm2022/lib/base-model/techlify-listing-component.class.mjs +41 -1
- package/esm2022/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.component.mjs +28 -27
- package/esm2022/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.component.mjs +5 -6
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.component.mjs +92 -0
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.module.mjs +32 -0
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view.service.mjs +18 -0
- package/esm2022/lib/techlify-view/techlify-view-form/techlify-view-form.component.mjs +96 -0
- package/esm2022/lib/techlify-view/techlify-view-form/techlify-view-form.module.mjs +39 -0
- package/esm2022/lib/techlify-view/techlify-view.service.mjs +18 -0
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/ngx-techlify-core.mjs +304 -20
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/base-model/techlify-listing-component.class.d.ts +18 -0
- package/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.component.d.ts +8 -7
- package/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.component.d.ts +1 -1
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.component.d.ts +23 -0
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.module.d.ts +11 -0
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view.service.d.ts +8 -0
- package/lib/techlify-view/techlify-view-form/techlify-view-form.component.d.ts +30 -0
- package/lib/techlify-view/techlify-view-form/techlify-view-form.module.d.ts +12 -0
- package/lib/techlify-view/techlify-view.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestHelperService } from '../request-helper/request-helper.service';
|
|
2
2
|
import { TechlifyServiceBaseClass } from './techlify-service.class';
|
|
3
|
+
import { ColumnConfig } from '../column-selector';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Interface used to ensure we have a consistent structure across our listing pages
|
|
@@ -22,6 +23,8 @@ export declare abstract class TechlifyListingControllerInterface {
|
|
|
22
23
|
lastPage: number;
|
|
23
24
|
isWorking: boolean;
|
|
24
25
|
filterForm: any;
|
|
26
|
+
isViewLoaded: boolean;
|
|
27
|
+
columnConfigs: ColumnConfig[];
|
|
25
28
|
/**
|
|
26
29
|
* Boolean to turn off, if we don't want to patch filters from route.
|
|
27
30
|
* This can be overriden in child classes if need
|
|
@@ -117,6 +120,21 @@ export declare abstract class TechlifyListingControllerInterface {
|
|
|
117
120
|
* @param event
|
|
118
121
|
*/
|
|
119
122
|
sortColumn(event: any): void;
|
|
123
|
+
/**
|
|
124
|
+
* It should be overrided in child class to reset a filter form instance.
|
|
125
|
+
* Used by setView method.
|
|
126
|
+
*/
|
|
127
|
+
protected resetFilterForm(): void;
|
|
128
|
+
/**
|
|
129
|
+
* It should be overrided in child class to reset column configs.
|
|
130
|
+
* Used by setView method.
|
|
131
|
+
*/
|
|
132
|
+
protected resetColumnConfigs(): void;
|
|
133
|
+
/**
|
|
134
|
+
* Hook method used to set the selected view
|
|
135
|
+
* @param view optional used by my-view-list
|
|
136
|
+
*/
|
|
137
|
+
setView(view?: any): void;
|
|
120
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyListingControllerInterface, [{ optional: true; }]>;
|
|
121
139
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TechlifyListingControllerInterface, never, never, {}, {}, never, never, false, never>;
|
|
122
140
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
2
|
import { FormConfigurationFormService } from '../form-configuration-form.service';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
4
5
|
import { FormConfigurationFormFieldService } from '../form-configuration-form-field.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FormConfigurationFieldFormComponent implements OnInit {
|
|
7
|
-
private activatedRoute;
|
|
8
8
|
private formConfigurationFormService;
|
|
9
|
+
private activatedRoute;
|
|
9
10
|
private formConfigurationFormFieldService;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
isWorking: boolean;
|
|
12
|
+
formConfiguration: any;
|
|
13
|
+
constructor(formConfigurationFormService: FormConfigurationFormService, activatedRoute: ActivatedRoute, formConfigurationFormFieldService: FormConfigurationFormFieldService);
|
|
12
14
|
ngOnInit(): void;
|
|
13
|
-
|
|
14
|
-
goBack(): void;
|
|
15
|
+
updateField(fieldCode: any, field: any, value: MatSlideToggleChange): void;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormConfigurationFieldFormComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormConfigurationFieldFormComponent, "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormConfigurationFieldFormComponent, "app-form-configuration-field-form", never, {}, {}, never, never, false, never>;
|
|
17
18
|
}
|
|
@@ -6,5 +6,5 @@ export declare class FormConfigurationForFormComponent {
|
|
|
6
6
|
constructor(router: Router);
|
|
7
7
|
openForm(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormConfigurationForFormComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormConfigurationForFormComponent, "
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormConfigurationForFormComponent, "app-form-configuration-for-form", never, { "formCode": { "alias": "formCode"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { MyTechlifyViewService } from './my-techlify-view.service';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { TechlifyListingControllerInterface } from '../../base-model/techlify-listing-component.class';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MyTechlifyViewListingComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
7
|
+
private myTechlifyViewService;
|
|
8
|
+
private dialog;
|
|
9
|
+
pageCode: any;
|
|
10
|
+
columns: any;
|
|
11
|
+
filters: any;
|
|
12
|
+
defaultViewTitle: string;
|
|
13
|
+
activeView: any;
|
|
14
|
+
viewChanged: EventEmitter<any>;
|
|
15
|
+
get viewChangedObservable(): EventEmitter<any>;
|
|
16
|
+
constructor(myTechlifyViewService: MyTechlifyViewService, dialog: MatDialog);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
loadData(): void;
|
|
19
|
+
deleteView(event: any, model: any): void;
|
|
20
|
+
viewSelected(view?: any): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MyTechlifyViewListingComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MyTechlifyViewListingComponent, "app-my-techlify-view-listing", never, { "pageCode": { "alias": "pageCode"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "defaultViewTitle": { "alias": "defaultViewTitle"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; }, { "viewChanged": "viewChanged"; }, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./my-techlify-view-listing.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../techlify-view-form/techlify-view-form.module";
|
|
5
|
+
import * as i4 from "../../material.module";
|
|
6
|
+
import * as i5 from "@angular/flex-layout";
|
|
7
|
+
export declare class MyTechlifyViewListingModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MyTechlifyViewListingModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyTechlifyViewListingModule, [typeof i1.MyTechlifyViewListingComponent], [typeof i2.CommonModule, typeof i3.TechlifyViewFormModule, typeof i4.MaterialModule, typeof i5.FlexLayoutModule], [typeof i1.MyTechlifyViewListingComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MyTechlifyViewListingModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpService } from '../../core/http.service';
|
|
2
|
+
import { TechlifyServiceBaseClass } from '../../base-model/techlify-service.class';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MyTechlifyViewService extends TechlifyServiceBaseClass {
|
|
5
|
+
constructor(http: HttpService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MyTechlifyViewService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MyTechlifyViewService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
4
|
+
import { TechlifyViewService } from '../techlify-view.service';
|
|
5
|
+
import { TechlifyFormComponentInterface } from '../../base-model/techlify-form-component.class';
|
|
6
|
+
import { FormValidatorService } from '../../core/form-validator.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class TechlifyViewFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
9
|
+
private dialog;
|
|
10
|
+
private fb;
|
|
11
|
+
private techlifyViewService;
|
|
12
|
+
isUpdate: boolean;
|
|
13
|
+
success: EventEmitter<any>;
|
|
14
|
+
columns: any;
|
|
15
|
+
filters: any;
|
|
16
|
+
pageCode: any;
|
|
17
|
+
isWorking: boolean;
|
|
18
|
+
errorMessages: any;
|
|
19
|
+
dialogRef: MatDialogRef<any, any>;
|
|
20
|
+
_viewInfo: any;
|
|
21
|
+
get viewInfo(): any;
|
|
22
|
+
set viewInfo(value: any);
|
|
23
|
+
constructor(formValidatorService: FormValidatorService, dialog: MatDialog, fb: UntypedFormBuilder, techlifyViewService: TechlifyViewService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
initialize(): void;
|
|
26
|
+
formDialog(templateRef: TemplateRef<any>): void;
|
|
27
|
+
submit(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyViewFormComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TechlifyViewFormComponent, "app-techlify-view-form", never, { "isUpdate": { "alias": "isUpdate"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "pageCode": { "alias": "pageCode"; "required": false; }; "viewInfo": { "alias": "viewInfo"; "required": false; }; }, { "success": "success"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./techlify-view-form.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../material.module";
|
|
5
|
+
import * as i4 from "@angular/flex-layout";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/material/progress-bar";
|
|
8
|
+
export declare class TechlifyViewFormModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyViewFormModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyViewFormModule, [typeof i1.TechlifyViewFormComponent], [typeof i2.CommonModule, typeof i3.MaterialModule, typeof i4.FlexLayoutModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatProgressBarModule], [typeof i1.TechlifyViewFormComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TechlifyViewFormModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TechlifyServiceBaseClass } from '../base-model/techlify-service.class';
|
|
2
|
+
import { HttpService } from '../core/http.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TechlifyViewService extends TechlifyServiceBaseClass {
|
|
5
|
+
constructor(http: HttpService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyViewService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TechlifyViewService>;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -187,3 +187,9 @@ export * from './lib/form-configuration/form-configuration-field-form/form-confi
|
|
|
187
187
|
export * from './lib/form-configuration/form-configuration-field-form/form-configuration-field-form-routing.module';
|
|
188
188
|
export * from './lib/form-configuration/form-configuration-for-form/form-configuration-for-form.component';
|
|
189
189
|
export * from './lib/form-configuration/form-configuration-for-form/form-configuration-for-form.module';
|
|
190
|
+
export * from './lib/techlify-view/my-techlify-view-listing/my-techlify-view.service';
|
|
191
|
+
export * from './lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.module';
|
|
192
|
+
export * from './lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.component';
|
|
193
|
+
export * from './lib/techlify-view/techlify-view.service';
|
|
194
|
+
export * from './lib/techlify-view/techlify-view-form/techlify-view-form.module';
|
|
195
|
+
export * from './lib/techlify-view/techlify-view-form/techlify-view-form.component';
|