@o3r/components 10.3.0-prerelease.39 → 10.3.0-prerelease.40
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/devkit/components-devkit.interface.d.ts +9 -1
- package/devkit/components-devkit.interface.d.ts.map +1 -1
- package/devkit/components-devtools.message.service.d.ts +5 -2
- package/devkit/components-devtools.message.service.d.ts.map +1 -1
- package/devkit/components-devtools.module.d.ts +2 -1
- package/devkit/components-devtools.module.d.ts.map +1 -1
- package/esm2022/devkit/components-devkit.interface.mjs +2 -1
- package/esm2022/devkit/components-devtools.message.service.mjs +12 -4
- package/esm2022/devkit/components-devtools.module.mjs +8 -4
- package/esm2022/rules-engine/placeholder.action-handler.mjs +1 -1
- package/esm2022/stores/placeholder-template/placeholder-template.actions.mjs +3 -1
- package/esm2022/stores/placeholder-template/placeholder-template.reducer.mjs +10 -2
- package/esm2022/stores/placeholder-template/placeholder-template.selectors.mjs +2 -1
- package/esm2022/stores/placeholder-template/placeholder-template.state.mjs +1 -1
- package/esm2022/tools/placeholder/placeholder.component.mjs +9 -11
- package/esm2022/tools/placeholder/placeholder.module.mjs +1 -1
- package/fesm2022/o3r-components-rules-engine.mjs.map +1 -1
- package/fesm2022/o3r-components.mjs +369 -351
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/package.json +11 -11
- package/rules-engine/placeholder.action-handler.d.ts.map +1 -1
- package/stores/placeholder-template/placeholder-template.actions.d.ts +6 -1
- package/stores/placeholder-template/placeholder-template.actions.d.ts.map +1 -1
- package/stores/placeholder-template/placeholder-template.reducer.d.ts.map +1 -1
- package/stores/placeholder-template/placeholder-template.selectors.d.ts +1 -0
- package/stores/placeholder-template/placeholder-template.selectors.d.ts.map +1 -1
- package/stores/placeholder-template/placeholder-template.state.d.ts +3 -0
- package/stores/placeholder-template/placeholder-template.state.d.ts.map +1 -1
- package/tools/placeholder/placeholder.component.d.ts +5 -3
- package/tools/placeholder/placeholder.component.d.ts.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SetEntityActionPayload } from '@o3r/core';
|
|
2
|
-
import { PlaceholderTemplateModel } from './placeholder-template.state';
|
|
2
|
+
import { type PlaceholderMode, PlaceholderTemplateModel } from './placeholder-template.state';
|
|
3
3
|
/** Action to delete a specific entity */
|
|
4
4
|
export declare const deletePlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] delete entity", (props: {
|
|
5
5
|
id: string;
|
|
@@ -8,4 +8,9 @@ export declare const deletePlaceholderTemplateEntity: import("@ngrx/store").Acti
|
|
|
8
8
|
} & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] delete entity">>;
|
|
9
9
|
/** Action to clear all placeholderTemplate and fill the store with the payload */
|
|
10
10
|
export declare const setPlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] set entity", (props: SetEntityActionPayload<PlaceholderTemplateModel>) => SetEntityActionPayload<PlaceholderTemplateModel> & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] set entity">>;
|
|
11
|
+
export declare const togglePlaceholderModeTemplate: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] toggle mode", (props: {
|
|
12
|
+
mode: PlaceholderMode;
|
|
13
|
+
}) => {
|
|
14
|
+
mode: PlaceholderMode;
|
|
15
|
+
} & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] toggle mode">>;
|
|
11
16
|
//# sourceMappingURL=placeholder-template.actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-template.actions.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"placeholder-template.actions.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EAAC,KAAK,eAAe,EAAE,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAM5F,yCAAyC;AACzC,eAAO,MAAM,+BAA+B;QAAkD,MAAM;;QAAN,MAAM;wFAAM,CAAC;AAE3G,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,2QAA6F,CAAC;AAEvI,eAAO,MAAM,6BAA6B;UAAkD,eAAe;;UAAf,eAAe;sFAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-template.reducer.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAqB,YAAY,EAAC,MAAM,aAAa,CAAC;AAE3E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,gEAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"placeholder-template.reducer.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAqB,YAAY,EAAC,MAAM,aAAa,CAAC;AAE3E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,gEAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,wBAE5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,YAAY,CAAC,wBAAwB,EAAE,aAAa,EAAE,CAAC,EAgBvG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,6FAGtC,CAAC"}
|
|
@@ -61,4 +61,5 @@ export declare const selectPlaceholderRenderedTemplates: (placeholderId: string)
|
|
|
61
61
|
orderedRenderedTemplates: (string | undefined)[] | undefined;
|
|
62
62
|
isPending: boolean;
|
|
63
63
|
} | undefined>;
|
|
64
|
+
export declare const selectPlaceholderTemplateMode: import("@ngrx/store").MemoizedSelector<object, import("./placeholder-template.state").PlaceholderMode, (s1: PlaceholderTemplateState) => import("./placeholder-template.state").PlaceholderMode>;
|
|
64
65
|
//# sourceMappingURL=placeholder-template.selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-template.selectors.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.selectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAKvG,eAAO,MAAM,8BAA8B,8IAAmF,CAAC;AAE/H,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,0RAA4F,CAAC;AAE3I;;;GAGG;AACH,eAAO,MAAM,+BAA+B,kBAAmB,MAAM,+OACsB,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kBAAmB,MAAM;;;;;gBAS5B,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;;;gBAAxE,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;cA2BnG,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,kBAAmB,MAAM;;;;;;;;gBApCzC,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;cA8CnG,CAAC"}
|
|
1
|
+
{"version":3,"file":"placeholder-template.selectors.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.selectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAKvG,eAAO,MAAM,8BAA8B,8IAAmF,CAAC;AAE/H,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,0RAA4F,CAAC;AAE3I;;;GAGG;AACH,eAAO,MAAM,+BAA+B,kBAAmB,MAAM,+OACsB,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kBAAmB,MAAM;;;;;gBAS5B,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;;;gBAAxE,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;cA2BnG,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,kBAAmB,MAAM;;;;;;;;gBApCzC,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;cA8CnG,CAAC;AAGL,eAAO,MAAM,6BAA6B,kMAAwE,CAAC"}
|
|
@@ -11,10 +11,13 @@ export interface PlaceholderTemplateModel {
|
|
|
11
11
|
priority: number;
|
|
12
12
|
}[];
|
|
13
13
|
}
|
|
14
|
+
/** Possible placeholder mode */
|
|
15
|
+
export type PlaceholderMode = 'normal' | 'debug' | 'pending';
|
|
14
16
|
/**
|
|
15
17
|
* PlaceholderTemplate store state
|
|
16
18
|
*/
|
|
17
19
|
export interface PlaceholderTemplateState extends EntityState<PlaceholderTemplateModel> {
|
|
20
|
+
mode: PlaceholderMode;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Name of the PlaceholderTemplate Store
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-template.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,gBAAgB,EAAE;QAAE,MAAM,EAAC,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"placeholder-template.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,gBAAgB,EAAE;QAAE,MAAM,EAAC,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,wBAAwB,CAAC;IACrF,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,gCAAgC;IAChC,CAAC,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;CAC7D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, type Signal } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import {
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { type PlaceholderMode, PlaceholderTemplateStore } from '../../stores/placeholder-template';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Placeholder component that is bind to the PlaceholderTemplateStore to display a template based on its ID
|
|
@@ -12,13 +13,14 @@ export declare class PlaceholderComponent implements OnInit, OnDestroy {
|
|
|
12
13
|
private readonly store;
|
|
13
14
|
private readonly cd;
|
|
14
15
|
private readonly subscription;
|
|
15
|
-
|
|
16
|
+
readonly id$: BehaviorSubject<string | undefined>;
|
|
16
17
|
private readonly afterViewInit$;
|
|
17
18
|
private readonly messages$;
|
|
18
19
|
/** Determine if the placeholder content is pending */
|
|
19
20
|
isPending?: boolean;
|
|
20
21
|
/** Generated HTML template */
|
|
21
22
|
template?: string;
|
|
23
|
+
mode: Signal<PlaceholderMode>;
|
|
22
24
|
/** template identify */
|
|
23
25
|
set id(value: string);
|
|
24
26
|
constructor(store: Store<PlaceholderTemplateStore>, cd: ChangeDetectorRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.component.d.ts","sourceRoot":"","sources":["../../../src/tools/placeholder/placeholder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGjB,SAAS,EACT,MAAM,
|
|
1
|
+
{"version":3,"file":"placeholder.component.d.ts","sourceRoot":"","sources":["../../../src/tools/placeholder/placeholder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGjB,SAAS,EACT,MAAM,EACN,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,eAAe,EAA+C,MAAM,MAAM,CAAC;AAEnF,OAAO,EAAC,KAAK,eAAe,EAAE,wBAAwB,EAAuD,MAAM,mCAAmC,CAAC;;AAGvJ;;;;;GAKG;AACH,qBAWa,oBAAqB,YAAW,MAAM,EAAE,SAAS;IAwBhD,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAmC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAtBxF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD,SAAgB,GAAG,sCAAsD;IAEzE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IAEtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkD;IAE5E,sDAAsD;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B,8BAA8B;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;IAErC,wBAAwB;IACxB,IACW,EAAE,CAAC,KAAK,EAAE,MAAM,EAE1B;gBAE4B,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAmB,EAAE,EAAE,iBAAiB;IAI3G,kBAAkB;IACX,QAAQ;IAmDR,kBAAkB;IAKzB,kBAAkB;IACX,WAAW;yCAtFP,oBAAoB;2CAApB,oBAAoB;CA2FhC"}
|