@formio/angular 10.0.0 → 10.0.1
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/FormioBaseComponent.d.ts +94 -0
- package/FormioBaseComponent.d.ts.map +1 -0
- package/auth/auth.component.d.ts +6 -0
- package/auth/auth.component.d.ts.map +1 -0
- package/auth/auth.config.d.ts +63 -0
- package/auth/auth.config.d.ts.map +1 -0
- package/auth/auth.module.d.ts +17 -0
- package/auth/auth.module.d.ts.map +1 -0
- package/auth/auth.routes.d.ts +4 -0
- package/auth/auth.routes.d.ts.map +1 -0
- package/auth/auth.service.d.ts +41 -0
- package/auth/auth.service.d.ts.map +1 -0
- package/auth/formio-angular-auth.d.ts.map +1 -0
- package/auth/index.d.ts +9 -147
- package/auth/index.d.ts.map +1 -1
- package/auth/login/login.component.d.ts +10 -0
- package/auth/login/login.component.d.ts.map +1 -0
- package/auth/register/register.component.d.ts +10 -0
- package/auth/register/register.component.d.ts.map +1 -0
- package/auth/resetpass/resetpass.component.d.ts +9 -0
- package/auth/resetpass/resetpass.component.d.ts.map +1 -0
- package/components/alerts/formio.alerts.component.d.ts +12 -0
- package/components/alerts/formio.alerts.component.d.ts.map +1 -0
- package/components/alerts/formio.alerts.d.ts +12 -0
- package/components/alerts/formio.alerts.d.ts.map +1 -0
- package/components/alerts/parse-html-content.pipe.d.ts +8 -0
- package/components/alerts/parse-html-content.pipe.d.ts.map +1 -0
- package/components/formbuilder/formbuilder.component.d.ts +37 -0
- package/components/formbuilder/formbuilder.component.d.ts.map +1 -0
- package/components/formio/formio.component.d.ts +15 -0
- package/components/formio/formio.component.d.ts.map +1 -0
- package/components/formioreport/formioreport.component.d.ts +21 -0
- package/components/formioreport/formioreport.component.d.ts.map +1 -0
- package/components/loader/formio.loader.component.d.ts +7 -0
- package/components/loader/formio.loader.component.d.ts.map +1 -0
- package/core.d.ts +17 -0
- package/core.d.ts.map +1 -0
- package/custom-tags.service.d.ts +8 -0
- package/custom-tags.service.d.ts.map +1 -0
- package/embed/app.service.d.ts +28 -0
- package/embed/app.service.d.ts.map +1 -0
- package/embed/builder.component.d.ts +19 -0
- package/embed/builder.component.d.ts.map +1 -0
- package/embed/embed.module.d.ts +10 -0
- package/embed/embed.module.d.ts.map +1 -0
- package/embed/formio-angular-embed.d.ts.map +1 -0
- package/embed/formio.component.d.ts +21 -0
- package/embed/formio.component.d.ts.map +1 -0
- package/embed/index.d.ts +7 -73
- package/embed/index.d.ts.map +1 -1
- package/fesm2022/formio-angular-auth.mjs +22 -22
- package/fesm2022/formio-angular-embed.mjs +13 -13
- package/fesm2022/formio-angular-embed.mjs.map +1 -1
- package/fesm2022/formio-angular-grid.mjs +40 -40
- package/fesm2022/formio-angular-grid.mjs.map +1 -1
- package/fesm2022/formio-angular-manager.mjs +43 -43
- package/fesm2022/formio-angular-manager.mjs.map +1 -1
- package/fesm2022/formio-angular-resource.mjs +31 -31
- package/fesm2022/formio-angular.mjs +34 -34
- package/fesm2022/formio-angular.mjs.map +1 -1
- package/formio-angular.d.ts.map +1 -0
- package/formio-promise.service.d.ts +16 -0
- package/formio-promise.service.d.ts.map +1 -0
- package/formio.common.d.ts +68 -0
- package/formio.common.d.ts.map +1 -0
- package/formio.config.d.ts +21 -0
- package/formio.config.d.ts.map +1 -0
- package/formio.module.d.ts +15 -0
- package/formio.module.d.ts.map +1 -0
- package/formio.service.d.ts +18 -0
- package/formio.service.d.ts.map +1 -0
- package/formio.utils.d.ts +2 -0
- package/formio.utils.d.ts.map +1 -0
- package/grid/GridBodyComponent.d.ts +35 -0
- package/grid/GridBodyComponent.d.ts.map +1 -0
- package/grid/GridFooterComponent.d.ts +20 -0
- package/grid/GridFooterComponent.d.ts.map +1 -0
- package/grid/GridHeaderComponent.d.ts +16 -0
- package/grid/GridHeaderComponent.d.ts.map +1 -0
- package/grid/form/FormGridBody.component.d.ts +19 -0
- package/grid/form/FormGridBody.component.d.ts.map +1 -0
- package/grid/form/FormGridFooter.component.d.ts +10 -0
- package/grid/form/FormGridFooter.component.d.ts.map +1 -0
- package/grid/form/FormGridHeader.component.d.ts +11 -0
- package/grid/form/FormGridHeader.component.d.ts.map +1 -0
- package/grid/form/index.d.ts +10 -0
- package/grid/form/index.d.ts.map +1 -0
- package/grid/form/time-since.pipe.d.ts +8 -0
- package/grid/form/time-since.pipe.d.ts.map +1 -0
- package/grid/formio-angular-grid.d.ts.map +1 -0
- package/grid/grid.component.d.ts +59 -0
- package/grid/grid.component.d.ts.map +1 -0
- package/grid/grid.module.d.ts +23 -0
- package/grid/grid.module.d.ts.map +1 -0
- package/grid/grid.service.d.ts +10 -0
- package/grid/grid.service.d.ts.map +1 -0
- package/grid/index.d.ts +13 -237
- package/grid/index.d.ts.map +1 -1
- package/grid/submission/SubmissionGridBody.component.d.ts +19 -0
- package/grid/submission/SubmissionGridBody.component.d.ts.map +1 -0
- package/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
- package/grid/submission/SubmissionGridFooter.component.d.ts.map +1 -0
- package/grid/submission/SubmissionGridHeader.component.d.ts +30 -0
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
- package/grid/submission/index.d.ts +10 -0
- package/grid/submission/index.d.ts.map +1 -0
- package/grid/types/grid-column.d.ts +7 -0
- package/grid/types/grid-column.d.ts.map +1 -0
- package/grid/types/grid-footer-positions.d.ts +6 -0
- package/grid/types/grid-footer-positions.d.ts.map +1 -0
- package/grid/types/grid-header.d.ts +13 -0
- package/grid/types/grid-header.d.ts.map +1 -0
- package/index.d.ts +4 -353
- package/index.d.ts.map +1 -1
- package/manager/create/create.component.d.ts +9 -0
- package/manager/create/create.component.d.ts.map +1 -0
- package/manager/delete/delete.component.d.ts +18 -0
- package/manager/delete/delete.component.d.ts.map +1 -0
- package/manager/edit/edit.component.d.ts +31 -0
- package/manager/edit/edit.component.d.ts.map +1 -0
- package/manager/form/form.component.d.ts +29 -0
- package/manager/form/form.component.d.ts.map +1 -0
- package/manager/form-manager.config.d.ts +30 -0
- package/manager/form-manager.config.d.ts.map +1 -0
- package/manager/form-manager.module.d.ts +28 -0
- package/manager/form-manager.module.d.ts.map +1 -0
- package/manager/form-manager.routes.d.ts +4 -0
- package/manager/form-manager.routes.d.ts.map +1 -0
- package/manager/form-manager.service.d.ts +37 -0
- package/manager/form-manager.service.d.ts.map +1 -0
- package/manager/formio-angular-manager.d.ts.map +1 -0
- package/manager/index/index.component.d.ts +28 -0
- package/manager/index/index.component.d.ts.map +1 -0
- package/manager/index.d.ts +17 -242
- package/manager/index.d.ts.map +1 -1
- package/manager/submission/delete/delete.component.d.ts +16 -0
- package/manager/submission/delete/delete.component.d.ts.map +1 -0
- package/manager/submission/edit/edit.component.d.ts +13 -0
- package/manager/submission/edit/edit.component.d.ts.map +1 -0
- package/manager/submission/index/index.component.d.ts +13 -0
- package/manager/submission/index/index.component.d.ts.map +1 -0
- package/manager/submission/submission/submission.component.d.ts +15 -0
- package/manager/submission/submission/submission.component.d.ts.map +1 -0
- package/manager/submission/view/view.component.d.ts +9 -0
- package/manager/submission/view/view.component.d.ts.map +1 -0
- package/manager/view/view.component.d.ts +24 -0
- package/manager/view/view.component.d.ts.map +1 -0
- package/package.json +6 -6
- package/resource/create/create.component.d.ts +19 -0
- package/resource/create/create.component.d.ts.map +1 -0
- package/resource/delete/delete.component.d.ts +14 -0
- package/resource/delete/delete.component.d.ts.map +1 -0
- package/resource/edit/edit.component.d.ts +22 -0
- package/resource/edit/edit.component.d.ts.map +1 -0
- package/resource/formio-angular-resource.d.ts.map +1 -0
- package/resource/index/index.component.d.ts +23 -0
- package/resource/index/index.component.d.ts.map +1 -0
- package/resource/index.d.ts +12 -185
- package/resource/index.d.ts.map +1 -1
- package/resource/resource.component.d.ts +24 -0
- package/resource/resource.component.d.ts.map +1 -0
- package/resource/resource.config.d.ts +17 -0
- package/resource/resource.config.d.ts.map +1 -0
- package/resource/resource.module.d.ts +20 -0
- package/resource/resource.module.d.ts.map +1 -0
- package/resource/resource.routes.d.ts +4 -0
- package/resource/resource.routes.d.ts.map +1 -0
- package/resource/resource.service.d.ts +52 -0
- package/resource/resource.service.d.ts.map +1 -0
- package/resource/resources.service.d.ts +16 -0
- package/resource/resources.service.d.ts.map +1 -0
- package/resource/view/view.component.d.ts +16 -0
- package/resource/view/view.component.d.ts.map +1 -0
- package/types/alerts-position.d.ts +7 -0
- package/types/alerts-position.d.ts.map +1 -0
- package/types/formio-metadata.d.ts +11 -0
- package/types/formio-metadata.d.ts.map +1 -0
- package/types/formio-submission.d.ts +19 -0
- package/types/formio-submission.d.ts.map +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { GridHeaderComponent } from './GridHeaderComponent';
|
|
3
|
+
import { GridService } from './grid.service';
|
|
4
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GridBodyComponent {
|
|
7
|
+
service: GridService;
|
|
8
|
+
header: GridHeaderComponent;
|
|
9
|
+
actionAllowed: any;
|
|
10
|
+
rowSelect: EventEmitter<any>;
|
|
11
|
+
rowAction: EventEmitter<any>;
|
|
12
|
+
template: TemplateRef<any>;
|
|
13
|
+
rows: Array<any>;
|
|
14
|
+
loading: Boolean;
|
|
15
|
+
firstItem: number;
|
|
16
|
+
lastItem: number;
|
|
17
|
+
skip: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
total: number;
|
|
20
|
+
constructor(service: GridService);
|
|
21
|
+
load(formio: FormioPromiseService, query?: any): Promise<any>;
|
|
22
|
+
onRowSelect(event: any, row: any): void;
|
|
23
|
+
onRowAction(event: any, row: any, action: any): void;
|
|
24
|
+
/**
|
|
25
|
+
* Set the rows for this Grid body.
|
|
26
|
+
*
|
|
27
|
+
* @param query
|
|
28
|
+
* @param items
|
|
29
|
+
* @return any
|
|
30
|
+
*/
|
|
31
|
+
setRows(query: any, items: any): any[];
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridBodyComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridBodyComponent, "ng-component", never, { "header": { "alias": "header"; "required": false; }; "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "rowSelect": "rowSelect"; "rowAction": "rowAction"; }, never, never, false, never>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=GridBodyComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridBodyComponent.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/GridBodyComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAa,WAAW,EAAa,MAAM,eAAe,CAAC;AAE/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;;AAErD,qBAIa,iBAAiB;IAaT,OAAO,EAAE,WAAW;IAZ9B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,aAAa,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAC7B,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5D,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,SAAK;IACd,QAAQ,SAAK;IACb,IAAI,SAAK;IACT,KAAK,SAAK;IACV,KAAK,SAAK;gBACE,OAAO,EAAE,WAAW;IAMvC,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAI7D,WAAW,CAAC,KAAK,KAAA,EAAE,GAAG,KAAA;IAKtB,WAAW,CAAC,KAAK,KAAA,EAAE,GAAG,KAAA,EAAE,MAAM,KAAA;IAK9B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;yCAxCnB,iBAAiB;2CAAjB,iBAAiB;CAsE7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GridFooterPositions } from './types/grid-footer-positions';
|
|
2
|
+
import { TemplateRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { GridHeaderComponent } from './GridHeaderComponent';
|
|
4
|
+
import { GridBodyComponent } from './GridBodyComponent';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GridFooterComponent {
|
|
7
|
+
header: GridHeaderComponent;
|
|
8
|
+
body: GridBodyComponent;
|
|
9
|
+
createText: String;
|
|
10
|
+
size: number;
|
|
11
|
+
actionAllowed: any;
|
|
12
|
+
pageChanged: EventEmitter<any>;
|
|
13
|
+
createItem: EventEmitter<any>;
|
|
14
|
+
template: TemplateRef<any>;
|
|
15
|
+
footerPositions: typeof GridFooterPositions;
|
|
16
|
+
constructor();
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridFooterComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridFooterComponent, "ng-component", never, { "header": { "alias": "header"; "required": false; }; "body": { "alias": "body"; "required": false; }; "createText": { "alias": "createText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "pageChanged": "pageChanged"; "createItem": "createItem"; }, never, never, false, never>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=GridFooterComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridFooterComponent.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/GridFooterComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAA4B,WAAW,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;;AAExD,qBAIa,mBAAmB;IACrB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAC/B,UAAU,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACA,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAE5D,eAAe,6BAAuB;;yCAVlC,mBAAmB;2CAAnB,mBAAmB;CAgB/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
3
|
+
import { GridHeader } from './types/grid-header';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GridHeaderComponent {
|
|
6
|
+
actionAllowed: any;
|
|
7
|
+
sort: EventEmitter<GridHeader>;
|
|
8
|
+
template: TemplateRef<any>;
|
|
9
|
+
headers: Array<GridHeader>;
|
|
10
|
+
constructor();
|
|
11
|
+
get numHeaders(): number;
|
|
12
|
+
load(formio: FormioPromiseService, query?: any, columns?: Array<any>): Promise<any>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridHeaderComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridHeaderComponent, "ng-component", never, { "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=GridHeaderComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridHeaderComponent.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/GridHeaderComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAa,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;;AAE/C,qBAIa,mBAAmB;IACrB,aAAa,EAAE,GAAG,CAAC;IAClB,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IACD,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5D,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;;IAMlC,IAAI,UAAU,WAEb;IAED,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;yCAdxE,mBAAmB;2CAAnB,mBAAmB;CAiB/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { GridBodyComponent } from '../GridBodyComponent';
|
|
3
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
4
|
+
import { Tooltip } from 'bootstrap';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FormGridBodyComponent extends GridBodyComponent implements OnDestroy {
|
|
7
|
+
createBtns: ElementRef[];
|
|
8
|
+
viewBtns: ElementRef[];
|
|
9
|
+
editBtns: ElementRef[];
|
|
10
|
+
permissionsBtns: ElementRef[];
|
|
11
|
+
deleteBtns: ElementRef[];
|
|
12
|
+
tooltips: Array<Tooltip>;
|
|
13
|
+
load(formio: FormioPromiseService, query?: any): Promise<void>;
|
|
14
|
+
attachTooltips(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridBodyComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridBodyComponent, "form-grid-body", never, {}, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=FormGridBody.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGridBody.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/form/FormGridBody.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,SAAS,EAA2B,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AACpC,qBAMa,qBAAsB,SAAQ,iBAAkB,YAAW,SAAS;IACvD,UAAU,EAAE,UAAU,EAAE,CAAC;IAC3B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,QAAQ,EAAE,UAAU,EAAE,CAAC;IAChB,eAAe,EAAE,UAAU,EAAE,CAAC;IACnC,UAAU,EAAE,UAAU,EAAE,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAM;IAErC,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG;IAO9C,cAAc;IAkBd,WAAW,IAAI,IAAI;yCAjCR,qBAAqB;2CAArB,qBAAqB;CAoCjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { GridFooterComponent } from '../GridFooterComponent';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormGridFooterComponent extends GridFooterComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridFooterComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridFooterComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=FormGridFooter.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGridFooter.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/form/FormGridFooter.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D,qBAMa,uBAAwB,SAAQ,mBAAoB,YAAW,MAAM;;IAMhF,QAAQ;yCANG,uBAAuB;2CAAvB,uBAAuB;CAcnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GridHeaderComponent } from '../GridHeaderComponent';
|
|
2
|
+
import { GridHeader } from '../types/grid-header';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormGridHeaderComponent extends GridHeaderComponent {
|
|
5
|
+
header: GridHeader;
|
|
6
|
+
load(formio?: any): Promise<GridHeader[]>;
|
|
7
|
+
get numHeaders(): number;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridHeaderComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridHeaderComponent, "form-grid-header", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=FormGridHeader.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGridHeader.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/form/FormGridHeader.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAC,UAAU,EAAW,MAAM,sBAAsB,CAAC;;AAE1D,qBAKa,uBAAwB,SAAQ,mBAAmB;IACvD,MAAM,EAAE,UAAU,CAAC;IAC1B,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG;IAUjB,IAAI,UAAU,WAEb;yCAdU,uBAAuB;2CAAvB,uBAAuB;CAenC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormGridHeaderComponent } from './FormGridHeader.component';
|
|
2
|
+
import { FormGridBodyComponent } from './FormGridBody.component';
|
|
3
|
+
import { FormGridFooterComponent } from './FormGridFooter.component';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
header: typeof FormGridHeaderComponent;
|
|
6
|
+
body: typeof FormGridBodyComponent;
|
|
7
|
+
footer: typeof FormGridFooterComponent;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;;;;;;AACrE,wBAIE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TimeSince implements PipeTransform {
|
|
4
|
+
transform(date: Date): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeSince, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimeSince, "timeSince", false>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=time-since.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-since.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/form/time-since.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAEpD,qBAIa,SAAU,YAAW,aAAa;IAC7C,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;yCADlB,SAAS;uCAAT,SAAS;CAyBrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formio-angular-grid.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/formio-angular-grid.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { GridFooterPositions } from './types/grid-footer-positions';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, EventEmitter, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { FormioAlerts } from '@formio/angular';
|
|
4
|
+
import { GridHeaderComponent } from './GridHeaderComponent';
|
|
5
|
+
import { GridBodyComponent } from './GridBodyComponent';
|
|
6
|
+
import { GridFooterComponent } from './GridFooterComponent';
|
|
7
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
8
|
+
import { GridColumn } from './types/grid-column';
|
|
9
|
+
import { GridHeader } from './types/grid-header';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class FormioGridComponent implements OnChanges, OnInit, AfterViewInit {
|
|
12
|
+
alerts: FormioAlerts;
|
|
13
|
+
private resolver;
|
|
14
|
+
private ref;
|
|
15
|
+
footerPosition: GridFooterPositions;
|
|
16
|
+
src?: string;
|
|
17
|
+
items?: Array<any>;
|
|
18
|
+
onForm?: Promise<any>;
|
|
19
|
+
query?: any;
|
|
20
|
+
refresh?: EventEmitter<object>;
|
|
21
|
+
columns?: Array<GridColumn>;
|
|
22
|
+
gridType?: string;
|
|
23
|
+
size?: number;
|
|
24
|
+
components?: any;
|
|
25
|
+
formio?: FormioPromiseService;
|
|
26
|
+
label?: string;
|
|
27
|
+
createText: String;
|
|
28
|
+
isActionAllowed: any;
|
|
29
|
+
select: EventEmitter<object>;
|
|
30
|
+
rowSelect: EventEmitter<object>;
|
|
31
|
+
rowAction: EventEmitter<object>;
|
|
32
|
+
createItem: EventEmitter<any>;
|
|
33
|
+
error: EventEmitter<any>;
|
|
34
|
+
headerElement: ViewContainerRef;
|
|
35
|
+
bodyElement: ViewContainerRef;
|
|
36
|
+
footerElement: ViewContainerRef;
|
|
37
|
+
page: number;
|
|
38
|
+
isLoading: boolean;
|
|
39
|
+
initialized: boolean;
|
|
40
|
+
header: GridHeaderComponent;
|
|
41
|
+
body: GridBodyComponent;
|
|
42
|
+
footer: GridFooterComponent;
|
|
43
|
+
footerPositions: typeof GridFooterPositions;
|
|
44
|
+
constructor(alerts: FormioAlerts, resolver: ComponentFactoryResolver, ref: ChangeDetectorRef);
|
|
45
|
+
createComponent(property: any, component: any): any;
|
|
46
|
+
loadGrid(src?: string): void;
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
ngOnChanges(changes: any): void;
|
|
49
|
+
ngAfterViewInit(): void;
|
|
50
|
+
actionAllowed(action: any): any;
|
|
51
|
+
onError(error: any): void;
|
|
52
|
+
refreshGrid(query?: any): any;
|
|
53
|
+
setPage(num?: number): void;
|
|
54
|
+
sortColumn(header: GridHeader): void;
|
|
55
|
+
pageChanged(page: any): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioGridComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioGridComponent, "formio-grid", never, { "footerPosition": { "alias": "footerPosition"; "required": false; }; "src": { "alias": "src"; "required": false; }; "items": { "alias": "items"; "required": false; }; "onForm": { "alias": "onForm"; "required": false; }; "query": { "alias": "query"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "components": { "alias": "components"; "required": false; }; "formio": { "alias": "formio"; "required": false; }; "label": { "alias": "label"; "required": false; }; "createText": { "alias": "createText"; "required": false; }; "isActionAllowed": { "alias": "isActionAllowed"; "required": false; }; }, { "select": "select"; "rowSelect": "rowSelect"; "rowAction": "rowAction"; "createItem": "createItem"; "error": "error"; }, never, never, false, never>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=grid.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.component.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACL,aAAa,EACb,iBAAiB,EAEjB,wBAAwB,EACxB,YAAY,EAEZ,SAAS,EACT,MAAM,EAGN,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAW,MAAM,qBAAqB,CAAC;;AAEzD,qBAMa,mBAAoB,YAAW,SAAS,EAAE,MAAM,EAAE,aAAa;IAiCjE,MAAM,EAAE,YAAY;IAC3B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,GAAG;IAlCJ,cAAc,sBAA8B;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,UAAU,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACkC,aAAa,EAAE,gBAAgB,CAAC;IAClC,WAAW,EAAE,gBAAgB,CAAC;IAC5B,aAAa,EAAE,gBAAgB,CAAC;IAE9F,IAAI,SAAK;IACT,SAAS,UAAS;IAClB,WAAW,UAAS;IACpB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,eAAe,6BAAuB;gBAGpC,MAAM,EAAE,YAAY,EACnB,QAAQ,EAAE,wBAAwB,EAClC,GAAG,EAAE,iBAAiB;IAShC,eAAe,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA;IAMnC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM;IAqBrB,QAAQ;IAwBR,WAAW,CAAC,OAAO,EAAE,GAAG;IAoBxB,eAAe;IAWf,aAAa,CAAC,MAAM,KAAA;IAQpB,OAAO,CAAC,KAAK,EAAE,GAAG;IAWlB,WAAW,CAAC,KAAK,CAAC,EAAE,GAAG;IA0BvB,OAAO,CAAC,GAAG,SAAK;IAYhB,UAAU,CAAC,MAAM,EAAE,UAAU;IAwB7B,WAAW,CAAC,IAAI,EAAE,GAAG;yCA/MV,mBAAmB;2CAAnB,mBAAmB;CAkN/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./grid.component";
|
|
3
|
+
import * as i2 from "./form/FormGridHeader.component";
|
|
4
|
+
import * as i3 from "./form/FormGridBody.component";
|
|
5
|
+
import * as i4 from "./form/FormGridFooter.component";
|
|
6
|
+
import * as i5 from "./submission/SubmissionGridHeader.component";
|
|
7
|
+
import * as i6 from "./submission/SubmissionGridBody.component";
|
|
8
|
+
import * as i7 from "./submission/SubmissionGridFooter.component";
|
|
9
|
+
import * as i8 from "./GridHeaderComponent";
|
|
10
|
+
import * as i9 from "./GridBodyComponent";
|
|
11
|
+
import * as i10 from "./GridFooterComponent";
|
|
12
|
+
import * as i11 from "./form/time-since.pipe";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "@angular/forms";
|
|
15
|
+
import * as i14 from "@formio/angular";
|
|
16
|
+
import * as i15 from "@angular/router";
|
|
17
|
+
import * as i16 from "ngx-bootstrap/pagination";
|
|
18
|
+
export declare class FormioGrid {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormioGrid, never>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioGrid, [typeof i1.FormioGridComponent, typeof i2.FormGridHeaderComponent, typeof i3.FormGridBodyComponent, typeof i4.FormGridFooterComponent, typeof i5.SubmissionGridHeaderComponent, typeof i6.SubmissionGridBodyComponent, typeof i7.SubmissionGridFooterComponent, typeof i8.GridHeaderComponent, typeof i9.GridBodyComponent, typeof i10.GridFooterComponent, typeof i11.TimeSince], [typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.FormioModule, typeof i15.RouterModule, typeof i16.PaginationModule], [typeof i1.FormioGridComponent]>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormioGrid>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=grid.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.module.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/grid.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAmBA,qBA6Ba,UAAU;yCAAV,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GridService {
|
|
3
|
+
rows: Array<any>;
|
|
4
|
+
constructor();
|
|
5
|
+
setRows(rows: any): void;
|
|
6
|
+
getFormsPerPage(): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=grid.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/grid.service.ts"],"names":[],"mappings":";AAGA,qBACa,WAAW;IACf,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;;IAGxB,OAAO,CAAC,IAAI,KAAA;IAIZ,eAAe;yCARJ,WAAW;6CAAX,WAAW;CAWvB"}
|
package/grid/index.d.ts
CHANGED
|
@@ -1,237 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
top = 1,
|
|
15
|
-
both = 2
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface GridHeader {
|
|
19
|
-
component?: ComponentInstance;
|
|
20
|
-
key: string;
|
|
21
|
-
sort?: SortType;
|
|
22
|
-
label: string;
|
|
23
|
-
renderCell?(cellValue: any, component?: ComponentInstance): string;
|
|
24
|
-
}
|
|
25
|
-
declare enum SortType {
|
|
26
|
-
ASC = "asc",
|
|
27
|
-
DESC = "desc"
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class GridHeaderComponent {
|
|
31
|
-
actionAllowed: any;
|
|
32
|
-
sort: EventEmitter<GridHeader>;
|
|
33
|
-
template: TemplateRef<any>;
|
|
34
|
-
headers: Array<GridHeader>;
|
|
35
|
-
constructor();
|
|
36
|
-
get numHeaders(): number;
|
|
37
|
-
load(formio: FormioPromiseService, query?: any, columns?: Array<any>): Promise<any>;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridHeaderComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridHeaderComponent, "ng-component", never, { "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare class GridService {
|
|
43
|
-
rows: Array<any>;
|
|
44
|
-
constructor();
|
|
45
|
-
setRows(rows: any): void;
|
|
46
|
-
getFormsPerPage(): number;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare class GridBodyComponent {
|
|
52
|
-
service: GridService;
|
|
53
|
-
header: GridHeaderComponent;
|
|
54
|
-
actionAllowed: any;
|
|
55
|
-
rowSelect: EventEmitter<any>;
|
|
56
|
-
rowAction: EventEmitter<any>;
|
|
57
|
-
template: TemplateRef<any>;
|
|
58
|
-
rows: Array<any>;
|
|
59
|
-
loading: Boolean;
|
|
60
|
-
firstItem: number;
|
|
61
|
-
lastItem: number;
|
|
62
|
-
skip: number;
|
|
63
|
-
limit: number;
|
|
64
|
-
total: number;
|
|
65
|
-
constructor(service: GridService);
|
|
66
|
-
load(formio: FormioPromiseService, query?: any): Promise<any>;
|
|
67
|
-
onRowSelect(event: any, row: any): void;
|
|
68
|
-
onRowAction(event: any, row: any, action: any): void;
|
|
69
|
-
/**
|
|
70
|
-
* Set the rows for this Grid body.
|
|
71
|
-
*
|
|
72
|
-
* @param query
|
|
73
|
-
* @param items
|
|
74
|
-
* @return any
|
|
75
|
-
*/
|
|
76
|
-
setRows(query: any, items: any): any[];
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridBodyComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridBodyComponent, "ng-component", never, { "header": { "alias": "header"; "required": false; }; "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "rowSelect": "rowSelect"; "rowAction": "rowAction"; }, never, never, false, never>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare class GridFooterComponent {
|
|
82
|
-
header: GridHeaderComponent;
|
|
83
|
-
body: GridBodyComponent;
|
|
84
|
-
createText: String;
|
|
85
|
-
size: number;
|
|
86
|
-
actionAllowed: any;
|
|
87
|
-
pageChanged: EventEmitter<any>;
|
|
88
|
-
createItem: EventEmitter<any>;
|
|
89
|
-
template: TemplateRef<any>;
|
|
90
|
-
footerPositions: typeof GridFooterPositions;
|
|
91
|
-
constructor();
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridFooterComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridFooterComponent, "ng-component", never, { "header": { "alias": "header"; "required": false; }; "body": { "alias": "body"; "required": false; }; "createText": { "alias": "createText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "actionAllowed": { "alias": "actionAllowed"; "required": false; }; }, { "pageChanged": "pageChanged"; "createItem": "createItem"; }, never, never, false, never>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface GridColumn {
|
|
97
|
-
label?: string;
|
|
98
|
-
path: string;
|
|
99
|
-
renderCell?(cellValue: any, component?: ComponentInstance): string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare class FormioGridComponent implements OnChanges, OnInit, AfterViewInit {
|
|
103
|
-
alerts: FormioAlerts;
|
|
104
|
-
private resolver;
|
|
105
|
-
private ref;
|
|
106
|
-
footerPosition: GridFooterPositions;
|
|
107
|
-
src?: string;
|
|
108
|
-
items?: Array<any>;
|
|
109
|
-
onForm?: Promise<any>;
|
|
110
|
-
query?: any;
|
|
111
|
-
refresh?: EventEmitter<object>;
|
|
112
|
-
columns?: Array<GridColumn>;
|
|
113
|
-
gridType?: string;
|
|
114
|
-
size?: number;
|
|
115
|
-
components?: any;
|
|
116
|
-
formio?: FormioPromiseService;
|
|
117
|
-
label?: string;
|
|
118
|
-
createText: String;
|
|
119
|
-
isActionAllowed: any;
|
|
120
|
-
select: EventEmitter<object>;
|
|
121
|
-
rowSelect: EventEmitter<object>;
|
|
122
|
-
rowAction: EventEmitter<object>;
|
|
123
|
-
createItem: EventEmitter<any>;
|
|
124
|
-
error: EventEmitter<any>;
|
|
125
|
-
headerElement: ViewContainerRef;
|
|
126
|
-
bodyElement: ViewContainerRef;
|
|
127
|
-
footerElement: ViewContainerRef;
|
|
128
|
-
page: number;
|
|
129
|
-
isLoading: boolean;
|
|
130
|
-
initialized: boolean;
|
|
131
|
-
header: GridHeaderComponent;
|
|
132
|
-
body: GridBodyComponent;
|
|
133
|
-
footer: GridFooterComponent;
|
|
134
|
-
footerPositions: typeof GridFooterPositions;
|
|
135
|
-
constructor(alerts: FormioAlerts, resolver: ComponentFactoryResolver, ref: ChangeDetectorRef);
|
|
136
|
-
createComponent(property: any, component: any): any;
|
|
137
|
-
loadGrid(src?: string): void;
|
|
138
|
-
ngOnInit(): void;
|
|
139
|
-
ngOnChanges(changes: any): void;
|
|
140
|
-
ngAfterViewInit(): void;
|
|
141
|
-
actionAllowed(action: any): any;
|
|
142
|
-
onError(error: any): void;
|
|
143
|
-
refreshGrid(query?: any): any;
|
|
144
|
-
setPage(num?: number): void;
|
|
145
|
-
sortColumn(header: GridHeader): void;
|
|
146
|
-
pageChanged(page: any): void;
|
|
147
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioGridComponent, never>;
|
|
148
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioGridComponent, "formio-grid", never, { "footerPosition": { "alias": "footerPosition"; "required": false; }; "src": { "alias": "src"; "required": false; }; "items": { "alias": "items"; "required": false; }; "onForm": { "alias": "onForm"; "required": false; }; "query": { "alias": "query"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "components": { "alias": "components"; "required": false; }; "formio": { "alias": "formio"; "required": false; }; "label": { "alias": "label"; "required": false; }; "createText": { "alias": "createText"; "required": false; }; "isActionAllowed": { "alias": "isActionAllowed"; "required": false; }; }, { "select": "select"; "rowSelect": "rowSelect"; "rowAction": "rowAction"; "createItem": "createItem"; "error": "error"; }, never, never, false, never>;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
declare class FormGridHeaderComponent extends GridHeaderComponent {
|
|
152
|
-
header: GridHeader;
|
|
153
|
-
load(formio?: any): Promise<GridHeader[]>;
|
|
154
|
-
get numHeaders(): number;
|
|
155
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridHeaderComponent, never>;
|
|
156
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridHeaderComponent, "form-grid-header", never, {}, {}, never, never, false, never>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
declare class FormGridBodyComponent extends GridBodyComponent implements OnDestroy {
|
|
160
|
-
createBtns: ElementRef[];
|
|
161
|
-
viewBtns: ElementRef[];
|
|
162
|
-
editBtns: ElementRef[];
|
|
163
|
-
permissionsBtns: ElementRef[];
|
|
164
|
-
deleteBtns: ElementRef[];
|
|
165
|
-
tooltips: Array<Tooltip>;
|
|
166
|
-
load(formio: FormioPromiseService, query?: any): Promise<void>;
|
|
167
|
-
attachTooltips(): void;
|
|
168
|
-
ngOnDestroy(): void;
|
|
169
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridBodyComponent, never>;
|
|
170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridBodyComponent, "form-grid-body", never, {}, {}, never, never, false, never>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
declare class FormGridFooterComponent extends GridFooterComponent implements OnInit {
|
|
174
|
-
constructor();
|
|
175
|
-
ngOnInit(): void;
|
|
176
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGridFooterComponent, never>;
|
|
177
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGridFooterComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
declare class SubmissionGridHeaderComponent extends GridHeaderComponent {
|
|
181
|
-
formComponents: Map<string, ExtendedComponentSchema>;
|
|
182
|
-
load(formio: FormioPromiseService, query?: any, columns?: Array<GridColumn>): Promise<GridHeader[]>;
|
|
183
|
-
setHeader(header: GridHeader): void;
|
|
184
|
-
getHeaderForColumn(column: GridColumn, component?: ExtendedComponentSchema, sort?: SortType): {
|
|
185
|
-
label: string;
|
|
186
|
-
key: string;
|
|
187
|
-
sort: SortType;
|
|
188
|
-
component: ComponentInstance;
|
|
189
|
-
renderCell: (cellValue: any, component?: ComponentInstance) => string;
|
|
190
|
-
};
|
|
191
|
-
getHeaderForComponent(component: ExtendedComponentSchema, path: string, sort?: SortType): {
|
|
192
|
-
label: string;
|
|
193
|
-
key: string;
|
|
194
|
-
sort: SortType;
|
|
195
|
-
component: ComponentInstance;
|
|
196
|
-
};
|
|
197
|
-
setComponentsHeaders(components: Map<string, ExtendedComponentSchema>, sort?: SortType): void;
|
|
198
|
-
setComponents(components: any): void;
|
|
199
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridHeaderComponent, never>;
|
|
200
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridHeaderComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
declare class SubmissionGridBodyComponent extends GridBodyComponent {
|
|
204
|
-
load(formio: FormioPromiseService, query?: any): Promise<any[]>;
|
|
205
|
-
/**
|
|
206
|
-
* Render the cell data.
|
|
207
|
-
*
|
|
208
|
-
* @param submission
|
|
209
|
-
* @param header
|
|
210
|
-
* @return any
|
|
211
|
-
*/
|
|
212
|
-
view(submission: FormioSubmission, header: GridHeader): string;
|
|
213
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridBodyComponent, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridBodyComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
declare class SubmissionGridFooterComponent extends GridFooterComponent implements OnInit {
|
|
218
|
-
constructor();
|
|
219
|
-
ngOnInit(): void;
|
|
220
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridFooterComponent, never>;
|
|
221
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridFooterComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
declare class TimeSince implements PipeTransform {
|
|
225
|
-
transform(date: Date): string;
|
|
226
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimeSince, never>;
|
|
227
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TimeSince, "timeSince", false>;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
declare class FormioGrid {
|
|
231
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormioGrid, never>;
|
|
232
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioGrid, [typeof FormioGridComponent, typeof FormGridHeaderComponent, typeof FormGridBodyComponent, typeof FormGridFooterComponent, typeof SubmissionGridHeaderComponent, typeof SubmissionGridBodyComponent, typeof SubmissionGridFooterComponent, typeof GridHeaderComponent, typeof GridBodyComponent, typeof GridFooterComponent, typeof TimeSince], [typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.FormioModule, typeof i15.RouterModule, typeof i16.PaginationModule], [typeof FormioGridComponent]>;
|
|
233
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormioGrid>;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export { FormGridBodyComponent, FormGridFooterComponent, FormGridHeaderComponent, FormioGrid, FormioGridComponent, GridBodyComponent, GridFooterComponent, GridHeaderComponent, GridService, SubmissionGridBodyComponent, SubmissionGridFooterComponent, SubmissionGridHeaderComponent };
|
|
237
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { FormioGrid } from './grid.module';
|
|
2
|
+
export { GridHeaderComponent } from './GridHeaderComponent';
|
|
3
|
+
export { GridFooterComponent } from './GridFooterComponent';
|
|
4
|
+
export { GridBodyComponent } from './GridBodyComponent';
|
|
5
|
+
export { FormGridHeaderComponent } from './form/FormGridHeader.component';
|
|
6
|
+
export { FormGridBodyComponent } from './form/FormGridBody.component';
|
|
7
|
+
export { FormGridFooterComponent } from './form/FormGridFooter.component';
|
|
8
|
+
export { SubmissionGridHeaderComponent } from './submission/SubmissionGridHeader.component';
|
|
9
|
+
export { SubmissionGridBodyComponent } from './submission/SubmissionGridBody.component';
|
|
10
|
+
export { SubmissionGridFooterComponent } from './submission/SubmissionGridFooter.component';
|
|
11
|
+
export { FormioGridComponent } from './grid.component';
|
|
12
|
+
export { GridService } from './grid.service';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
package/grid/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/grid/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GridBodyComponent } from '../GridBodyComponent';
|
|
2
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
3
|
+
import { GridHeader } from '../types/grid-header';
|
|
4
|
+
import { FormioSubmission } from '@formio/angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SubmissionGridBodyComponent extends GridBodyComponent {
|
|
7
|
+
load(formio: FormioPromiseService, query?: any): Promise<any[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Render the cell data.
|
|
10
|
+
*
|
|
11
|
+
* @param submission
|
|
12
|
+
* @param header
|
|
13
|
+
* @return any
|
|
14
|
+
*/
|
|
15
|
+
view(submission: FormioSubmission, header: GridHeader): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridBodyComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridBodyComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=SubmissionGridBody.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmissionGridBody.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;;AACjD,qBAIa,2BAA4B,SAAQ,iBAAiB;IAChE,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG;IAM9C;;;;;;OAMG;IACH,IAAI,CAAC,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM;yCAdnD,2BAA2B;2CAA3B,2BAA2B;CA6BvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { GridFooterComponent } from '../GridFooterComponent';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SubmissionGridFooterComponent extends GridFooterComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridFooterComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridFooterComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=SubmissionGridFooter.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmissionGridFooter.component.d.ts","sourceRoot":"","sources":["../../../../projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAoB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D,qBAMa,6BAA8B,SAAQ,mBAAoB,YAAW,MAAM;;IAMtF,QAAQ;yCANG,6BAA6B;2CAA7B,6BAA6B;CAWzC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ExtendedComponentSchema } from '@formio/deprecated-types';
|
|
2
|
+
import { GridHeaderComponent } from '../GridHeaderComponent';
|
|
3
|
+
import { FormioPromiseService } from '@formio/angular';
|
|
4
|
+
import { ComponentInstance } from '@formio/angular';
|
|
5
|
+
import { GridColumn } from '../types/grid-column';
|
|
6
|
+
import { GridHeader, SortType } from '../types/grid-header';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SubmissionGridHeaderComponent extends GridHeaderComponent {
|
|
9
|
+
formComponents: Map<string, ExtendedComponentSchema>;
|
|
10
|
+
load(formio: FormioPromiseService, query?: any, columns?: Array<GridColumn>): Promise<GridHeader[]>;
|
|
11
|
+
setHeader(header: GridHeader): void;
|
|
12
|
+
getHeaderForColumn(column: GridColumn, component?: ExtendedComponentSchema, sort?: SortType): {
|
|
13
|
+
label: string;
|
|
14
|
+
key: string;
|
|
15
|
+
sort: SortType;
|
|
16
|
+
component: ComponentInstance;
|
|
17
|
+
renderCell: (cellValue: any, component?: ComponentInstance) => string;
|
|
18
|
+
};
|
|
19
|
+
getHeaderForComponent(component: ExtendedComponentSchema, path: string, sort?: SortType): {
|
|
20
|
+
label: string;
|
|
21
|
+
key: string;
|
|
22
|
+
sort: SortType;
|
|
23
|
+
component: ComponentInstance;
|
|
24
|
+
};
|
|
25
|
+
setComponentsHeaders(components: Map<string, ExtendedComponentSchema>, sort?: SortType): void;
|
|
26
|
+
setComponents(components: any): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmissionGridHeaderComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmissionGridHeaderComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=SubmissionGridHeader.component.d.ts.map
|