@configura/web-api 2.1.0 → 2.2.0-alpha.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.
Files changed (102) hide show
  1. package/.eslintrc.json +5 -5
  2. package/LICENSE +201 -201
  3. package/README.md +1 -1
  4. package/dist/CatalogueAPI.d.ts +633 -633
  5. package/dist/CatalogueAPI.js +312 -312
  6. package/dist/CfgMeasure.d.ts +32 -32
  7. package/dist/CfgMeasure.js +30 -30
  8. package/dist/CfgProduct.d.ts +344 -344
  9. package/dist/CfgProduct.js +992 -990
  10. package/dist/CfgReferencePathHelper.d.ts +26 -26
  11. package/dist/CfgReferencePathHelper.js +26 -26
  12. package/dist/index.d.ts +24 -24
  13. package/dist/index.js +24 -24
  14. package/dist/io/CfgHistoryManager.d.ts +83 -83
  15. package/dist/io/CfgHistoryManager.js +144 -144
  16. package/dist/io/CfgHistoryToProdConfConnector.d.ts +21 -21
  17. package/dist/io/CfgHistoryToProdConfConnector.js +50 -50
  18. package/dist/io/CfgIOManager.d.ts +53 -53
  19. package/dist/io/CfgIOManager.js +134 -134
  20. package/dist/io/CfgIOProdConfConnector.d.ts +54 -54
  21. package/dist/io/CfgIOProdConfConnector.js +139 -137
  22. package/dist/io/CfgIOWarningSupplier.d.ts +3 -3
  23. package/dist/io/CfgIOWarningSupplier.js +1 -1
  24. package/dist/io/CfgObservableStateManager.d.ts +25 -25
  25. package/dist/io/CfgObservableStateManager.js +69 -69
  26. package/dist/io/CfgObservableStateToProdConfConnector.d.ts +15 -15
  27. package/dist/io/CfgObservableStateToProdConfConnector.js +17 -17
  28. package/dist/io/CfgWindowEventManager.d.ts +21 -21
  29. package/dist/io/CfgWindowEventManager.js +38 -38
  30. package/dist/io/CfgWindowMessageManager.d.ts +40 -40
  31. package/dist/io/CfgWindowMessageManager.js +91 -91
  32. package/dist/io/CfgWindowMessageToProdConfConnector.d.ts +17 -17
  33. package/dist/io/CfgWindowMessageToProdConfConnector.js +19 -19
  34. package/dist/io/index.d.ts +8 -8
  35. package/dist/io/index.js +8 -8
  36. package/dist/material/CfgMaterialMapping.d.ts +7 -7
  37. package/dist/material/CfgMaterialMapping.js +181 -181
  38. package/dist/material/CfgMtrlApplication.d.ts +18 -18
  39. package/dist/material/CfgMtrlApplication.js +43 -43
  40. package/dist/material/CfgMtrlApplicationSource.d.ts +7 -7
  41. package/dist/material/CfgMtrlApplicationSource.js +8 -8
  42. package/dist/material/CfgMtrlSource.d.ts +19 -19
  43. package/dist/material/CfgMtrlSource.js +40 -40
  44. package/dist/material/CfgMtrlSourceWithMetaData.d.ts +7 -7
  45. package/dist/material/CfgMtrlSourceWithMetaData.js +1 -1
  46. package/dist/productConfiguration/CfgFeature.d.ts +199 -199
  47. package/dist/productConfiguration/CfgFeature.js +691 -691
  48. package/dist/productConfiguration/CfgOption.d.ts +160 -160
  49. package/dist/productConfiguration/CfgOption.js +464 -464
  50. package/dist/productConfiguration/CfgProductConfiguration.d.ts +129 -129
  51. package/dist/productConfiguration/CfgProductConfiguration.js +346 -346
  52. package/dist/productConfiguration/filters.d.ts +17 -17
  53. package/dist/productConfiguration/filters.js +141 -141
  54. package/dist/productConfiguration/productParamsGenerator.d.ts +15 -15
  55. package/dist/productConfiguration/productParamsGenerator.js +65 -64
  56. package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +17 -17
  57. package/dist/productConfiguration/utilitiesProductConfiguration.js +87 -87
  58. package/dist/productLoader.d.ts +33 -33
  59. package/dist/productLoader.js +49 -49
  60. package/dist/syncGroups/SyncGroupsApplyMode.d.ts +20 -20
  61. package/dist/syncGroups/SyncGroupsApplyMode.js +21 -21
  62. package/dist/syncGroups/SyncGroupsHandler.d.ts +47 -47
  63. package/dist/syncGroups/SyncGroupsHandler.js +370 -370
  64. package/dist/syncGroups/SyncGroupsPathHelper.d.ts +26 -26
  65. package/dist/syncGroups/SyncGroupsPathHelper.js +90 -90
  66. package/dist/syncGroups/SyncGroupsState.d.ts +39 -39
  67. package/dist/syncGroups/SyncGroupsState.js +167 -167
  68. package/dist/syncGroups/SyncGroupsTransaction.d.ts +154 -154
  69. package/dist/syncGroups/SyncGroupsTransaction.js +589 -589
  70. package/dist/tasks/TaskHandler.d.ts +77 -77
  71. package/dist/tasks/TaskHandler.js +276 -276
  72. package/dist/tasks/formats.d.ts +4 -4
  73. package/dist/tasks/formats.js +7 -7
  74. package/dist/tests/testData/collectorForTest.d.ts +73 -73
  75. package/dist/tests/testData/collectorForTest.js +194 -194
  76. package/dist/tests/testData/dummyProductForTest.d.ts +4 -4
  77. package/dist/tests/testData/dummyProductForTest.js +32 -32
  78. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +11 -11
  79. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +282 -282
  80. package/dist/tests/testData/testDataCachedGetProduct.d.ts +5 -5
  81. package/dist/tests/testData/testDataCachedGetProduct.js +187 -187
  82. package/dist/tests/testData/testDataCachedPostValidate.d.ts +7 -7
  83. package/dist/tests/testData/testDataCachedPostValidate.js +185 -185
  84. package/dist/tests/testData/testDataConstraints.d.ts +3 -3
  85. package/dist/tests/testData/testDataConstraints.js +174 -174
  86. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.d.ts +3 -3
  87. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1099 -1099
  88. package/dist/tests/testData/testDataOptions.d.ts +12 -12
  89. package/dist/tests/testData/testDataOptions.js +60 -60
  90. package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +6 -6
  91. package/dist/tests/testData/testDataProductAggregatedPrice.js +189 -189
  92. package/dist/tests/testData/testDataUpcharge.d.ts +8 -8
  93. package/dist/tests/testData/testDataUpcharge.js +121 -121
  94. package/dist/utilitiesCatalogueData.d.ts +47 -47
  95. package/dist/utilitiesCatalogueData.js +180 -180
  96. package/dist/utilitiesCataloguePermission.d.ts +38 -38
  97. package/dist/utilitiesCataloguePermission.js +79 -79
  98. package/dist/utilitiesConfiguration.d.ts +28 -28
  99. package/dist/utilitiesConfiguration.js +200 -200
  100. package/dist/utilitiesNumericValues.d.ts +24 -24
  101. package/dist/utilitiesNumericValues.js +114 -114
  102. package/package.json +4 -4
@@ -1,38 +1,38 @@
1
- import { CfgIOManager } from "./CfgIOManager.js";
2
- /**
3
- * Base class for classes handling input and output in globally shared environments, using
4
- * event listeners on the window object, for example the History API and window.message API.
5
- * These are global resources where data not being handled by Stage can appear.
6
- */
7
- export class CfgWindowEventManager extends CfgIOManager {
8
- constructor() {
9
- super(...arguments);
10
- this._windowEventListenerBound = this._windowEventListener.bind(this);
11
- }
12
- /**
13
- * Listen for the message messageKey being received. This can for example be the history stack
14
- * being popped or a window.message being received.
15
- */
16
- listenForMessage(l, messageKey) {
17
- const hadListeners = this.hasMessageListeners;
18
- const didStartListen = super.listenForMessage(l, messageKey);
19
- if (!hadListeners && didStartListen) {
20
- window.addEventListener(this.eventType, this._windowEventListenerBound);
21
- }
22
- return didStartListen;
23
- }
24
- /**
25
- * Removes the listener
26
- */
27
- stopListenForMessage(l) {
28
- const didStopListen = super.stopListenForMessage(l);
29
- if (didStopListen && !this.hasMessageListeners) {
30
- window.removeEventListener(this.eventType, this._windowEventListenerBound);
31
- }
32
- return didStopListen;
33
- }
34
- _windowEventListener(event) {
35
- const data = this.getDataFromEvent(event);
36
- super._containerListener(data);
37
- }
38
- }
1
+ import { CfgIOManager } from "./CfgIOManager.js";
2
+ /**
3
+ * Base class for classes handling input and output in globally shared environments, using
4
+ * event listeners on the window object, for example the History API and window.message API.
5
+ * These are global resources where data not being handled by Stage can appear.
6
+ */
7
+ export class CfgWindowEventManager extends CfgIOManager {
8
+ constructor() {
9
+ super(...arguments);
10
+ this._windowEventListenerBound = this._windowEventListener.bind(this);
11
+ }
12
+ /**
13
+ * Listen for the message messageKey being received. This can for example be the history stack
14
+ * being popped or a window.message being received.
15
+ */
16
+ listenForMessage(l, messageKey) {
17
+ const hadListeners = this.hasMessageListeners;
18
+ const didStartListen = super.listenForMessage(l, messageKey);
19
+ if (!hadListeners && didStartListen) {
20
+ window.addEventListener(this.eventType, this._windowEventListenerBound);
21
+ }
22
+ return didStartListen;
23
+ }
24
+ /**
25
+ * Removes the listener
26
+ */
27
+ stopListenForMessage(l) {
28
+ const didStopListen = super.stopListenForMessage(l);
29
+ if (didStopListen && !this.hasMessageListeners) {
30
+ window.removeEventListener(this.eventType, this._windowEventListenerBound);
31
+ }
32
+ return didStopListen;
33
+ }
34
+ _windowEventListener(event) {
35
+ const data = this.getDataFromEvent(event);
36
+ super._containerListener(data);
37
+ }
38
+ }
@@ -1,41 +1,41 @@
1
- import { IOManagerListener } from "./CfgIOManager.js";
2
- import { CfgWindowEventManager } from "./CfgWindowEventManager.js";
3
- /**
4
- * This class is used to coordinate sending and receiving using the post message-API.
5
- * See https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
6
- */
7
- export declare class CfgWindowMessageManager extends CfgWindowEventManager<"message", unknown> {
8
- private static _instance;
9
- static get instance(): CfgWindowMessageManager;
10
- /**
11
- * If uncertain about security, please read https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
12
- */
13
- private constructor();
14
- private _doListenForIncoming;
15
- private _remoteEnds;
16
- private _targetOrigin;
17
- private _acceptableMessageOrigin;
18
- /**
19
- * Listen for incoming messages or not
20
- */
21
- set doListenForIncoming(v: boolean);
22
- /**
23
- * What window object outgoing messages should be sent to. Leave empty if you don't want to broadcast.
24
- */
25
- set remoteEnds(v: Window[]);
26
- /**
27
- * What origins of the target window are acceptable.
28
- */
29
- set targetOrigin(v: string);
30
- /**
31
- * @param _acceptableMessageOrigin What message origins we accept incoming from.
32
- */
33
- set acceptableMessageOrigin(v: string);
34
- listenForMessage(l: IOManagerListener, messageKey: string): boolean;
35
- stopListenForMessage(l: IOManagerListener): boolean;
36
- send(messageKey: string, data: unknown): void;
37
- protected _containerListener(event: MessageEvent): void;
38
- protected readonly eventType = "message";
39
- protected getDataFromEvent(event: MessageEvent): unknown;
40
- }
1
+ import { IOManagerListener } from "./CfgIOManager.js";
2
+ import { CfgWindowEventManager } from "./CfgWindowEventManager.js";
3
+ /**
4
+ * This class is used to coordinate sending and receiving using the post message-API.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
6
+ */
7
+ export declare class CfgWindowMessageManager extends CfgWindowEventManager<"message", unknown> {
8
+ private static _instance;
9
+ static get instance(): CfgWindowMessageManager;
10
+ /**
11
+ * If uncertain about security, please read https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
12
+ */
13
+ private constructor();
14
+ private _doListenForIncoming;
15
+ private _remoteEnds;
16
+ private _targetOrigin;
17
+ private _acceptableMessageOrigin;
18
+ /**
19
+ * Listen for incoming messages or not
20
+ */
21
+ set doListenForIncoming(v: boolean);
22
+ /**
23
+ * What window object outgoing messages should be sent to. Leave empty if you don't want to broadcast.
24
+ */
25
+ set remoteEnds(v: Window[]);
26
+ /**
27
+ * What origins of the target window are acceptable.
28
+ */
29
+ set targetOrigin(v: string);
30
+ /**
31
+ * @param _acceptableMessageOrigin What message origins we accept incoming from.
32
+ */
33
+ set acceptableMessageOrigin(v: string);
34
+ listenForMessage(l: IOManagerListener, messageKey: string): boolean;
35
+ stopListenForMessage(l: IOManagerListener): boolean;
36
+ send(messageKey: string, data: unknown): void;
37
+ protected _containerListener(event: MessageEvent): void;
38
+ protected readonly eventType = "message";
39
+ protected getDataFromEvent(event: MessageEvent): unknown;
40
+ }
41
41
  //# sourceMappingURL=CfgWindowMessageManager.d.ts.map
@@ -1,91 +1,91 @@
1
- import { CfgIOManager } from "./CfgIOManager.js";
2
- import { CfgWindowEventManager } from "./CfgWindowEventManager.js";
3
- /**
4
- * This class is used to coordinate sending and receiving using the post message-API.
5
- * See https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
6
- */
7
- export class CfgWindowMessageManager extends CfgWindowEventManager {
8
- /**
9
- * If uncertain about security, please read https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
10
- */
11
- constructor() {
12
- super();
13
- this._doListenForIncoming = true;
14
- this._remoteEnds = [];
15
- this._targetOrigin = "*";
16
- this._acceptableMessageOrigin = undefined;
17
- this.eventType = "message";
18
- }
19
- static get instance() {
20
- if (this._instance === undefined) {
21
- this._instance = new CfgWindowMessageManager();
22
- }
23
- return this._instance;
24
- }
25
- /**
26
- * Listen for incoming messages or not
27
- */
28
- set doListenForIncoming(v) {
29
- this._doListenForIncoming = v;
30
- }
31
- /**
32
- * What window object outgoing messages should be sent to. Leave empty if you don't want to broadcast.
33
- */
34
- set remoteEnds(v) {
35
- for (const remote of v) {
36
- if (remote === window) {
37
- console.warn("You are providing your own window as a remote end.");
38
- }
39
- }
40
- this._remoteEnds = v;
41
- }
42
- /**
43
- * What origins of the target window are acceptable.
44
- */
45
- set targetOrigin(v) {
46
- this._targetOrigin = v;
47
- }
48
- /**
49
- * @param _acceptableMessageOrigin What message origins we accept incoming from.
50
- */
51
- set acceptableMessageOrigin(v) {
52
- this._acceptableMessageOrigin = v;
53
- }
54
- listenForMessage(l, messageKey) {
55
- if (!this._doListenForIncoming) {
56
- return false;
57
- }
58
- return super.listenForMessage(l, messageKey);
59
- }
60
- stopListenForMessage(l) {
61
- if (!this._doListenForIncoming) {
62
- return false;
63
- }
64
- return super.stopListenForMessage(l);
65
- }
66
- send(messageKey, data) {
67
- if (this.receiveInProgress) {
68
- return;
69
- }
70
- const container = CfgIOManager.makeContainer({
71
- [messageKey]: data,
72
- });
73
- const warnings = this.getWarnings();
74
- if (warnings.length !== 0) {
75
- warnings.forEach((w) => console.warn(w));
76
- }
77
- for (const remoteEnd of this._remoteEnds) {
78
- remoteEnd.postMessage(container, this._targetOrigin);
79
- }
80
- }
81
- _containerListener(event) {
82
- if (this._acceptableMessageOrigin !== undefined &&
83
- event.origin !== this._acceptableMessageOrigin) {
84
- return;
85
- }
86
- super._containerListener(event);
87
- }
88
- getDataFromEvent(event) {
89
- return event.data;
90
- }
91
- }
1
+ import { CfgIOManager } from "./CfgIOManager.js";
2
+ import { CfgWindowEventManager } from "./CfgWindowEventManager.js";
3
+ /**
4
+ * This class is used to coordinate sending and receiving using the post message-API.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
6
+ */
7
+ export class CfgWindowMessageManager extends CfgWindowEventManager {
8
+ /**
9
+ * If uncertain about security, please read https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
10
+ */
11
+ constructor() {
12
+ super();
13
+ this._doListenForIncoming = true;
14
+ this._remoteEnds = [];
15
+ this._targetOrigin = "*";
16
+ this._acceptableMessageOrigin = undefined;
17
+ this.eventType = "message";
18
+ }
19
+ static get instance() {
20
+ if (this._instance === undefined) {
21
+ this._instance = new CfgWindowMessageManager();
22
+ }
23
+ return this._instance;
24
+ }
25
+ /**
26
+ * Listen for incoming messages or not
27
+ */
28
+ set doListenForIncoming(v) {
29
+ this._doListenForIncoming = v;
30
+ }
31
+ /**
32
+ * What window object outgoing messages should be sent to. Leave empty if you don't want to broadcast.
33
+ */
34
+ set remoteEnds(v) {
35
+ for (const remote of v) {
36
+ if (remote === window) {
37
+ console.warn("You are providing your own window as a remote end.");
38
+ }
39
+ }
40
+ this._remoteEnds = v;
41
+ }
42
+ /**
43
+ * What origins of the target window are acceptable.
44
+ */
45
+ set targetOrigin(v) {
46
+ this._targetOrigin = v;
47
+ }
48
+ /**
49
+ * @param _acceptableMessageOrigin What message origins we accept incoming from.
50
+ */
51
+ set acceptableMessageOrigin(v) {
52
+ this._acceptableMessageOrigin = v;
53
+ }
54
+ listenForMessage(l, messageKey) {
55
+ if (!this._doListenForIncoming) {
56
+ return false;
57
+ }
58
+ return super.listenForMessage(l, messageKey);
59
+ }
60
+ stopListenForMessage(l) {
61
+ if (!this._doListenForIncoming) {
62
+ return false;
63
+ }
64
+ return super.stopListenForMessage(l);
65
+ }
66
+ send(messageKey, data) {
67
+ if (this.receiveInProgress) {
68
+ return;
69
+ }
70
+ const container = CfgIOManager.makeContainer({
71
+ [messageKey]: data,
72
+ });
73
+ const warnings = this.getWarnings();
74
+ if (warnings.length !== 0) {
75
+ warnings.forEach((w) => console.warn(w));
76
+ }
77
+ for (const remoteEnd of this._remoteEnds) {
78
+ remoteEnd.postMessage(container, this._targetOrigin);
79
+ }
80
+ }
81
+ _containerListener(event) {
82
+ if (this._acceptableMessageOrigin !== undefined &&
83
+ event.origin !== this._acceptableMessageOrigin) {
84
+ return;
85
+ }
86
+ super._containerListener(event);
87
+ }
88
+ getDataFromEvent(event) {
89
+ return event.data;
90
+ }
91
+ }
@@ -1,18 +1,18 @@
1
- import { DtoProductConf } from "../CatalogueAPI.js";
2
- import { CfgProdConfParts } from "../utilitiesConfiguration.js";
3
- import { CfgIOProdConfConnector, CfgProdConfMessage, CfgProdConfMessageVersions } from "./CfgIOProdConfConnector.js";
4
- import { CfgWindowMessageManager } from "./CfgWindowMessageManager.js";
5
- /**
6
- * Instantiating this will make Stage send product configuration changes using the post message-API.
7
- * It will also make Stage listen for incoming product configuration update messages.
8
- * This can be used to communicate in and out of an iframe for example.
9
- * @param sendVersions What versions of the productConfiguration shall be sent? Multiple can be selected
10
- * @param includeExtendedDataInSend Only for version 2.0. Includes unit and groupCode.
11
- * @param includeProdParamsInSend Only for version 2.0. Includes product params, in both main and additional products.
12
- */
13
- export declare class CfgWindowMessageToProdConfConnector extends CfgIOProdConfConnector<CfgProdConfMessage> {
14
- private _sendVersions;
15
- constructor(manager: CfgWindowMessageManager, _sendVersions?: CfgProdConfMessageVersions, includeInSend?: CfgProdConfParts);
16
- protected makeSendData(conf: DtoProductConf, initial: boolean): CfgProdConfMessage;
17
- }
1
+ import { DtoProductConf } from "../CatalogueAPI.js";
2
+ import { CfgProdConfParts } from "../utilitiesConfiguration.js";
3
+ import { CfgIOProdConfConnector, CfgProdConfMessage, CfgProdConfMessageVersions } from "./CfgIOProdConfConnector.js";
4
+ import { CfgWindowMessageManager } from "./CfgWindowMessageManager.js";
5
+ /**
6
+ * Instantiating this will make Stage send product configuration changes using the post message-API.
7
+ * It will also make Stage listen for incoming product configuration update messages.
8
+ * This can be used to communicate in and out of an iframe for example.
9
+ * @param sendVersions What versions of the productConfiguration shall be sent? Multiple can be selected
10
+ * @param includeExtendedDataInSend Only for version 2.0. Includes unit and groupCode.
11
+ * @param includeProdParamsInSend Only for version 2.0. Includes product params, in both main and additional products.
12
+ */
13
+ export declare class CfgWindowMessageToProdConfConnector extends CfgIOProdConfConnector<CfgProdConfMessage> {
14
+ private _sendVersions;
15
+ constructor(manager: CfgWindowMessageManager, _sendVersions?: CfgProdConfMessageVersions, includeInSend?: CfgProdConfParts);
16
+ protected makeSendData(conf: DtoProductConf, initial: boolean): CfgProdConfMessage;
17
+ }
18
18
  //# sourceMappingURL=CfgWindowMessageToProdConfConnector.d.ts.map
@@ -1,19 +1,19 @@
1
- import { CfgProdConfParts } from "../utilitiesConfiguration.js";
2
- import { CfgIOProdConfConnector, CfgProdConfMessageVersions, } from "./CfgIOProdConfConnector.js";
3
- /**
4
- * Instantiating this will make Stage send product configuration changes using the post message-API.
5
- * It will also make Stage listen for incoming product configuration update messages.
6
- * This can be used to communicate in and out of an iframe for example.
7
- * @param sendVersions What versions of the productConfiguration shall be sent? Multiple can be selected
8
- * @param includeExtendedDataInSend Only for version 2.0. Includes unit and groupCode.
9
- * @param includeProdParamsInSend Only for version 2.0. Includes product params, in both main and additional products.
10
- */
11
- export class CfgWindowMessageToProdConfConnector extends CfgIOProdConfConnector {
12
- constructor(manager, _sendVersions = CfgProdConfMessageVersions.V2dot0, includeInSend = CfgProdConfParts.NoExtra) {
13
- super(manager, includeInSend);
14
- this._sendVersions = _sendVersions;
15
- }
16
- makeSendData(conf, initial) {
17
- return CfgIOProdConfConnector.makeMessage(conf, initial, this._sendVersions);
18
- }
19
- }
1
+ import { CfgProdConfParts } from "../utilitiesConfiguration.js";
2
+ import { CfgIOProdConfConnector, CfgProdConfMessageVersions, } from "./CfgIOProdConfConnector.js";
3
+ /**
4
+ * Instantiating this will make Stage send product configuration changes using the post message-API.
5
+ * It will also make Stage listen for incoming product configuration update messages.
6
+ * This can be used to communicate in and out of an iframe for example.
7
+ * @param sendVersions What versions of the productConfiguration shall be sent? Multiple can be selected
8
+ * @param includeExtendedDataInSend Only for version 2.0. Includes unit and groupCode.
9
+ * @param includeProdParamsInSend Only for version 2.0. Includes product params, in both main and additional products.
10
+ */
11
+ export class CfgWindowMessageToProdConfConnector extends CfgIOProdConfConnector {
12
+ constructor(manager, _sendVersions = CfgProdConfMessageVersions.V2dot0, includeInSend = CfgProdConfParts.NoExtra) {
13
+ super(manager, includeInSend);
14
+ this._sendVersions = _sendVersions;
15
+ }
16
+ makeSendData(conf, initial) {
17
+ return CfgIOProdConfConnector.makeMessage(conf, initial, this._sendVersions);
18
+ }
19
+ }
@@ -1,9 +1,9 @@
1
- export * from "./CfgHistoryManager.js";
2
- export * from "./CfgHistoryToProdConfConnector.js";
3
- export * from "./CfgIOManager.js";
4
- export * from "./CfgIOProdConfConnector.js";
5
- export * from "./CfgObservableStateManager.js";
6
- export * from "./CfgObservableStateToProdConfConnector.js";
7
- export * from "./CfgWindowMessageManager.js";
8
- export * from "./CfgWindowMessageToProdConfConnector.js";
1
+ export * from "./CfgHistoryManager.js";
2
+ export * from "./CfgHistoryToProdConfConnector.js";
3
+ export * from "./CfgIOManager.js";
4
+ export * from "./CfgIOProdConfConnector.js";
5
+ export * from "./CfgObservableStateManager.js";
6
+ export * from "./CfgObservableStateToProdConfConnector.js";
7
+ export * from "./CfgWindowMessageManager.js";
8
+ export * from "./CfgWindowMessageToProdConfConnector.js";
9
9
  //# sourceMappingURL=index.d.ts.map
package/dist/io/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./CfgHistoryManager.js";
2
- export * from "./CfgHistoryToProdConfConnector.js";
3
- export * from "./CfgIOManager.js";
4
- export * from "./CfgIOProdConfConnector.js";
5
- export * from "./CfgObservableStateManager.js";
6
- export * from "./CfgObservableStateToProdConfConnector.js";
7
- export * from "./CfgWindowMessageManager.js";
8
- export * from "./CfgWindowMessageToProdConfConnector.js";
1
+ export * from "./CfgHistoryManager.js";
2
+ export * from "./CfgHistoryToProdConfConnector.js";
3
+ export * from "./CfgIOManager.js";
4
+ export * from "./CfgIOProdConfConnector.js";
5
+ export * from "./CfgObservableStateManager.js";
6
+ export * from "./CfgObservableStateToProdConfConnector.js";
7
+ export * from "./CfgWindowMessageManager.js";
8
+ export * from "./CfgWindowMessageToProdConfConnector.js";
@@ -1,8 +1,8 @@
1
- import { CfgProductConfiguration } from "../productConfiguration/CfgProductConfiguration.js";
2
- import { CfgMtrlApplication } from "./CfgMtrlApplication.js";
3
- import { CfgMtrlSourceWithMetaData } from "./CfgMtrlSourceWithMetaData.js";
4
- export declare type CfgMaterialMapping = Map<string, CfgMtrlSourceWithMetaData>;
5
- export declare function aggregateAllMaterialApplications(applicationAreas: CfgMtrlApplication[], productMtrlApplications: CfgMtrlApplication[], productConfiguration: CfgProductConfiguration, debugMtrlApplications?: CfgMtrlApplication[]): CfgMaterialMapping;
6
- export declare function logMtrlSourceWithMetaDataToConsole(mtrlSourceWithMetaData: CfgMtrlSourceWithMetaData): void;
7
- export declare function logMaterialMappingToConsole(areasToMaterials: CfgMaterialMapping): void;
1
+ import { CfgProductConfiguration } from "../productConfiguration/CfgProductConfiguration.js";
2
+ import { CfgMtrlApplication } from "./CfgMtrlApplication.js";
3
+ import { CfgMtrlSourceWithMetaData } from "./CfgMtrlSourceWithMetaData.js";
4
+ export declare type CfgMaterialMapping = Map<string, CfgMtrlSourceWithMetaData>;
5
+ export declare function aggregateAllMaterialApplications(applicationAreas: CfgMtrlApplication[], productMtrlApplications: CfgMtrlApplication[], productConfiguration: CfgProductConfiguration, debugMtrlApplications?: CfgMtrlApplication[]): CfgMaterialMapping;
6
+ export declare function logMtrlSourceWithMetaDataToConsole(mtrlSourceWithMetaData: CfgMtrlSourceWithMetaData): void;
7
+ export declare function logMaterialMappingToConsole(areasToMaterials: CfgMaterialMapping): void;
8
8
  //# sourceMappingURL=CfgMaterialMapping.d.ts.map