@valtimo/layout 13.2.1 → 13.3.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.
@@ -1,9 +1,9 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import { BehaviorSubject, Observable } from 'rxjs';
3
- import { WidgetLayoutService } from '../../services/widget-layout.service';
3
+ import { WidgetLayoutService } from '../../services';
4
4
  import { Widget, WidgetComponentMap, WidgetWithUuid } from '../../models';
5
5
  import * as i0 from "@angular/core";
6
- export declare class WidgetContainerComponent implements AfterViewInit, OnDestroy {
6
+ export declare class WidgetContainerComponent implements OnDestroy {
7
7
  private readonly widgetLayoutService;
8
8
  private _widgetsContainerRef;
9
9
  readonly widgetsWithUuids$: BehaviorSubject<WidgetWithUuid[]>;
@@ -13,10 +13,13 @@ export declare class WidgetContainerComponent implements AfterViewInit, OnDestro
13
13
  set widgetComponentMap(value: WidgetComponentMap);
14
14
  widgetParams: object;
15
15
  readonly loadingWidgetConfiguration$: BehaviorSubject<boolean>;
16
+ readonly reload$: BehaviorSubject<boolean>;
16
17
  readonly loaded$: Observable<boolean>;
17
18
  private _observer;
18
19
  constructor(widgetLayoutService: WidgetLayoutService);
19
- ngAfterViewInit(): void;
20
+ private resetLayout;
21
+ private destroyLayout;
22
+ initLayout(): void;
20
23
  ngOnDestroy(): void;
21
24
  private observerMutation;
22
25
  private initMuuri;
@@ -1 +1 @@
1
- {"version":3,"file":"widget-container.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/layout/src/lib/components/widget-container/widget-container.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAKb,SAAS,EAEV,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAC,eAAe,EAAS,UAAU,EAAO,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAC,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;;AAQxE,qBAQa,wBAAyB,YAAW,aAAa,EAAE,SAAS;IAiC3D,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAhCjB,OAAO,CAAC,oBAAoB,CAA6B;IAExF,SAAgB,iBAAiB,oCAA+C;IAEhF,IAAoB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAM1C;IAED,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAEnC;IAEF,IAAW,mBAAmB,IAAI,UAAU,CAAC,kBAAkB,CAAC,CAE/D;IAED,IAAoB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,EAE/D;IAEgC,YAAY,EAAE,MAAM,CAAM;IAE3D,SAAgB,2BAA2B,2BAAsC;IAEjF,SAAgB,OAAO,sBAAqD;IAE5E,OAAO,CAAC,SAAS,CAAkB;gBAEN,mBAAmB,EAAE,mBAAmB;IAE9D,eAAe,IAAI,IAAI;IASvB,WAAW,IAAI,IAAI;IAK1B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,SAAS;yCA1DN,wBAAwB;2CAAxB,wBAAwB;CAsEpC"}
1
+ {"version":3,"file":"widget-container.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/layout/src/lib/components/widget-container/widget-container.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAKL,SAAS,EAEV,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAC,eAAe,EAAgB,UAAU,EAAO,MAAM,MAAM,CAAC;AAErE,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;;AAQxE,qBAQa,wBAAyB,YAAW,SAAS;IAoC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAnCjB,OAAO,CAAC,oBAAoB,CAA6B;IAExF,SAAgB,iBAAiB,oCAA+C;IAEhF,IAAoB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAQ1C;IAED,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAEnC;IAEF,IAAW,mBAAmB,IAAI,UAAU,CAAC,kBAAkB,CAAC,CAE/D;IAED,IAAoB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,EAE/D;IAEgC,YAAY,EAAE,MAAM,CAAM;IAE3D,SAAgB,2BAA2B,2BAAsC;IAEjF,SAAgB,OAAO,2BAAuC;IAC9D,SAAgB,OAAO,sBAA0E;IAEjG,OAAO,CAAC,SAAS,CAAkB;gBAEN,mBAAmB,EAAE,mBAAmB;IAErE,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,aAAa;IAKd,UAAU,IAAI,IAAI;IASlB,WAAW,IAAI,IAAI;IAI1B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,SAAS;yCAxEN,wBAAwB;2CAAxB,wBAAwB;CAoFpC"}
@@ -1,3 +1,4 @@
1
+ import { EventEmitter, DestroyRef } from '@angular/core';
1
2
  import { Observable } from 'rxjs';
2
3
  import { FormService } from '@valtimo/form';
3
4
  import { FormioForm } from '@formio/angular';
@@ -7,16 +8,23 @@ import * as i0 from "@angular/core";
7
8
  export declare class WidgetFormioComponent {
8
9
  private readonly formService;
9
10
  private readonly widgetLayoutService;
11
+ private readonly destroyRef;
10
12
  set documentId(value: string);
11
13
  set widgetConfiguration(value: FormioWidgetWidgetWithUuid);
12
14
  set widgetUuid(value: string);
15
+ private readonly _refreshTrigger$;
16
+ private _refreshEmitter;
17
+ private _refreshSubscription;
18
+ private _widgetUuid;
19
+ private _hasSignalledExternalDataReady;
20
+ set refreshForm(value: EventEmitter<void> | null);
13
21
  private readonly _widgetConfigurationSubject$;
14
22
  get widgetConfiguration$(): Observable<FormioWidgetWidgetWithUuid>;
15
23
  private readonly _documentIdSubject$;
16
24
  private get _documentId$();
17
25
  readonly prefilledFormDefinition$: Observable<FormioForm>;
18
- constructor(formService: FormService, widgetLayoutService: WidgetLayoutService);
26
+ constructor(formService: FormService, widgetLayoutService: WidgetLayoutService, destroyRef: DestroyRef);
19
27
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetFormioComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetFormioComponent, "valtimo-widget-formio", never, { "documentId": { "alias": "documentId"; "required": false; }; "widgetConfiguration": { "alias": "widgetConfiguration"; "required": false; }; "widgetUuid": { "alias": "widgetUuid"; "required": false; }; }, {}, never, ["*"], true, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetFormioComponent, "valtimo-widget-formio", never, { "documentId": { "alias": "documentId"; "required": false; }; "widgetConfiguration": { "alias": "widgetConfiguration"; "required": false; }; "widgetUuid": { "alias": "widgetUuid"; "required": false; }; "refreshForm": { "alias": "refreshForm"; "required": false; }; }, {}, never, ["*"], true, never>;
21
29
  }
22
30
  //# sourceMappingURL=widget-formio.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widget-formio.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/layout/src/lib/components/widget-formio/widget-formio.component.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA8C,UAAU,EAAqB,MAAM,MAAM,CAAC;AACjG,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;;AAEnD,qBAQa,qBAAqB;IA6C9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IA7CtC,IAAoB,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3C;IAED,IAAoB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,EAGxE;IAED,IAAoB,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3C;IAED,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CACkB;IAC/D,IAAW,oBAAoB,IAAI,UAAU,CAAC,0BAA0B,CAAC,CAExE;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IACvE,OAAO,KAAK,YAAY,GAEvB;IAED,SAAgB,wBAAwB,EAAE,UAAU,CAAC,UAAU,CAAC,CAiB9D;gBAGiB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB;yCA9ChD,qBAAqB;2CAArB,qBAAqB;CAgDjC"}
1
+ {"version":3,"file":"widget-formio.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/layout/src/lib/components/widget-formio/widget-formio.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,YAAY,EAAS,UAAU,EAAC,MAAM,eAAe,CAAC;AAGlG,OAAO,EAML,UAAU,EAIX,MAAM,MAAM,CAAC;AACd,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;;AAGnD,qBAQa,qBAAqB;IA4E9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU;IA7E7B,IAAoB,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3C;IAED,IAAoB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,EAGxE;IAED,IAAoB,UAAU,CAAC,KAAK,EAAE,MAAM,EAK3C;IAED,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwC;IAEzE,OAAO,CAAC,eAAe,CAAmC;IAC1D,OAAO,CAAC,oBAAoB,CAA6B;IACzD,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,8BAA8B,CAAS;IAE/C,IACW,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,EAYtD;IAED,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CACkB;IAC/D,IAAW,oBAAoB,IAAI,UAAU,CAAC,0BAA0B,CAAC,CAExE;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IACvE,OAAO,KAAK,YAAY,GAEvB;IAED,SAAgB,wBAAwB,EAAE,UAAU,CAAC,UAAU,CAAC,CAuB9D;gBAGiB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,UAAU;yCA9E9B,qBAAqB;2CAArB,qBAAqB;CAgFjC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/layout",
3
3
  "license": "EUPL-1.2",
4
- "version": "13.2.1",
4
+ "version": "13.3.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.2.8",
7
7
  "@angular/core": "^19.2.8"