@formio/angular 6.0.0-rc.3 → 6.0.0-rc.5

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.
Files changed (83) hide show
  1. package/FormioBaseComponent.d.ts +6 -1
  2. package/FormioBaseComponent.d.ts.map +1 -1
  3. package/auth/auth.service.d.ts +0 -1
  4. package/auth/auth.service.d.ts.map +1 -1
  5. package/components/formioreport/formioreport.component.d.ts +20 -0
  6. package/components/formioreport/formioreport.component.d.ts.map +1 -0
  7. package/core.d.ts +1 -0
  8. package/core.d.ts.map +1 -1
  9. package/esm2022/FormioBaseComponent.mjs +57 -37
  10. package/esm2022/auth/auth.component.mjs +3 -3
  11. package/esm2022/auth/auth.config.mjs +3 -3
  12. package/esm2022/auth/auth.module.mjs +4 -4
  13. package/esm2022/auth/auth.service.mjs +14 -15
  14. package/esm2022/auth/login/login.component.mjs +3 -3
  15. package/esm2022/auth/register/register.component.mjs +3 -3
  16. package/esm2022/auth/resetpass/resetpass.component.mjs +3 -3
  17. package/esm2022/components/alerts/formio.alerts.component.mjs +3 -3
  18. package/esm2022/components/alerts/parse-html-content.pipe.mjs +3 -3
  19. package/esm2022/components/formbuilder/formbuilder.component.mjs +4 -4
  20. package/esm2022/components/formio/formio.component.mjs +4 -4
  21. package/esm2022/components/formioreport/formioreport.component.mjs +86 -0
  22. package/esm2022/components/loader/formio.loader.component.mjs +3 -3
  23. package/esm2022/core.mjs +2 -1
  24. package/esm2022/custom-component/custom-tags.service.mjs +3 -3
  25. package/esm2022/formio.common.mjs +1 -1
  26. package/esm2022/formio.config.mjs +3 -3
  27. package/esm2022/formio.module.mjs +10 -5
  28. package/esm2022/grid/GridBodyComponent.mjs +3 -3
  29. package/esm2022/grid/GridFooterComponent.mjs +3 -3
  30. package/esm2022/grid/GridHeaderComponent.mjs +3 -3
  31. package/esm2022/grid/form/FormGridBody.component.mjs +3 -3
  32. package/esm2022/grid/form/FormGridFooter.component.mjs +3 -3
  33. package/esm2022/grid/form/FormGridHeader.component.mjs +3 -3
  34. package/esm2022/grid/form/time-since.pipe.mjs +3 -3
  35. package/esm2022/grid/grid.component.mjs +3 -3
  36. package/esm2022/grid/grid.module.mjs +4 -4
  37. package/esm2022/grid/grid.service.mjs +3 -3
  38. package/esm2022/grid/submission/SubmissionGridBody.component.mjs +3 -3
  39. package/esm2022/grid/submission/SubmissionGridFooter.component.mjs +3 -3
  40. package/esm2022/grid/submission/SubmissionGridHeader.component.mjs +3 -3
  41. package/esm2022/manager/create/create.component.mjs +3 -3
  42. package/esm2022/manager/delete/delete.component.mjs +3 -3
  43. package/esm2022/manager/edit/edit.component.mjs +3 -3
  44. package/esm2022/manager/form/form.component.mjs +3 -3
  45. package/esm2022/manager/form-manager.config.mjs +3 -3
  46. package/esm2022/manager/form-manager.module.mjs +4 -4
  47. package/esm2022/manager/form-manager.service.mjs +3 -3
  48. package/esm2022/manager/index/index.component.mjs +3 -3
  49. package/esm2022/manager/submission/delete/delete.component.mjs +3 -3
  50. package/esm2022/manager/submission/edit/edit.component.mjs +3 -3
  51. package/esm2022/manager/submission/index/index.component.mjs +3 -3
  52. package/esm2022/manager/submission/submission/submission.component.mjs +3 -3
  53. package/esm2022/manager/submission/view/view.component.mjs +3 -3
  54. package/esm2022/manager/view/view.component.mjs +3 -3
  55. package/esm2022/resource/create/create.component.mjs +5 -5
  56. package/esm2022/resource/delete/delete.component.mjs +3 -3
  57. package/esm2022/resource/edit/edit.component.mjs +3 -3
  58. package/esm2022/resource/index/index.component.mjs +7 -8
  59. package/esm2022/resource/resource.component.mjs +22 -26
  60. package/esm2022/resource/resource.config.mjs +3 -3
  61. package/esm2022/resource/resource.module.mjs +4 -4
  62. package/esm2022/resource/resource.service.mjs +60 -38
  63. package/esm2022/resource/resources.service.mjs +3 -3
  64. package/esm2022/resource/view/view.component.mjs +3 -3
  65. package/fesm2022/formio-angular-auth.mjs +32 -33
  66. package/fesm2022/formio-angular-auth.mjs.map +1 -1
  67. package/fesm2022/formio-angular-grid.mjs +40 -40
  68. package/fesm2022/formio-angular-manager.mjs +43 -43
  69. package/fesm2022/formio-angular-resource.mjs +112 -96
  70. package/fesm2022/formio-angular-resource.mjs.map +1 -1
  71. package/fesm2022/formio-angular.mjs +166 -64
  72. package/fesm2022/formio-angular.mjs.map +1 -1
  73. package/formio.common.d.ts +9 -0
  74. package/formio.common.d.ts.map +1 -1
  75. package/formio.module.d.ts +8 -7
  76. package/formio.module.d.ts.map +1 -1
  77. package/package.json +4 -4
  78. package/resource/create/create.component.d.ts.map +1 -1
  79. package/resource/index/index.component.d.ts.map +1 -1
  80. package/resource/resource.component.d.ts +6 -4
  81. package/resource/resource.component.d.ts.map +1 -1
  82. package/resource/resource.service.d.ts +13 -10
  83. package/resource/resource.service.d.ts.map +1 -1
@@ -1,4 +1,4 @@
1
- import { ApplicationRef, EventEmitter } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
3
  import { FormioResourceConfig } from './resource.config';
4
4
  import { FormioResources } from './resources.service';
@@ -6,13 +6,11 @@ import { FormioPromiseService } from '@formio/angular';
6
6
  import { FormioAlerts } from '@formio/angular';
7
7
  import { FormioAppConfig } from '@formio/angular';
8
8
  import { FormioRefreshValue } from '@formio/angular';
9
- import Promise from 'native-promise-only';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class FormioResourceService {
12
11
  appConfig: FormioAppConfig;
13
12
  config: FormioResourceConfig;
14
13
  resourcesService: FormioResources;
15
- appRef: ApplicationRef;
16
14
  initialized: boolean;
17
15
  form: any;
18
16
  alerts: FormioAlerts;
@@ -22,28 +20,33 @@ export declare class FormioResourceService {
22
20
  formFormio: FormioPromiseService;
23
21
  formio: FormioPromiseService;
24
22
  refresh: EventEmitter<FormioRefreshValue>;
25
- resourceLoading?: Promise<any>;
23
+ resourceResolve: any;
24
+ resourceReject: any;
26
25
  resourceLoaded?: Promise<any>;
26
+ resourceLoading?: Promise<any>;
27
27
  resourceId?: string;
28
28
  resources: any;
29
+ ready?: Promise<any>;
30
+ readyResolve: any;
31
+ readyReject: any;
29
32
  formLoading?: Promise<any>;
30
33
  formLoaded: Promise<any>;
31
34
  formResolve: any;
32
35
  formReject: any;
33
36
  isLoading: boolean;
34
- constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, resourcesService: FormioResources, appRef: ApplicationRef);
37
+ constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, resourcesService: FormioResources);
35
38
  initialize(): void;
36
- init(): Promise<any>;
39
+ setResource(resourceId: any): void;
40
+ init(route: ActivatedRoute): Promise<any>;
37
41
  onError(error: any): void;
38
42
  onFormError(err: any): void;
39
- setContext(route: ActivatedRoute): void;
40
43
  loadForm(): Promise<any>;
41
- loadParents(): any;
44
+ loadParents(): Promise<any>;
42
45
  onSubmissionError(err: any): void;
43
- loadResource(route: ActivatedRoute): Promise<any>;
46
+ loadResource(): Promise<any>;
44
47
  save(resource: any): Promise<any>;
45
48
  remove(): Promise<void>;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceService, [null, null, { optional: true; }, null]>;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormioResourceService, [null, null, { optional: true; }]>;
47
50
  static ɵprov: i0.ɵɵInjectableDeclaration<FormioResourceService>;
48
51
  }
49
52
  //# sourceMappingURL=resource.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAwB,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,YAAY,E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IAmDX,iBAAiB,CAAC,GAAG,EAAE,GAAG;IAI1B,YAAY,CAAC,KAAK,EAAE,cAAc;IAqBlC,IAAI,CAAC,QAAQ,EAAE,GAAG;IAclB,MAAM;yCA/MK,qBAAqB;6CAArB,qBAAqB;CA0NjC"}
1
+ {"version":3,"file":"resource.service.d.ts","sourceRoot":"","sources":["../../../projects/angular-formio/resource/src/resource.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAIrD,qBACa,qBAAqB;IA8BvB,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,oBAAoB;IAChB,gBAAgB,EAAE,eAAe;IA/B/C,WAAW,UAAS;IACpB,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAE1C,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9B,eAAe,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC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