@veloceapps/sdk 2.0.3 → 2.0.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.
- package/bundles/veloce-sdk-cms.umd.js +533 -355
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +145 -173
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +1104 -8
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/components/preview/preview.component.d.ts +4 -1
- package/cms/modules/configuration/index.d.ts +2 -0
- package/cms/modules/configuration/services/configuration-runtime.service.d.ts +29 -0
- package/cms/modules/configuration/services/configuration.service.d.ts +11 -10
- package/cms/modules/configuration/services/runtime-context.service.d.ts +14 -0
- package/cms/modules/configuration/types/configuration-runtime.types.d.ts +6 -0
- package/cms/modules/configuration/types/configuration.types.d.ts +2 -0
- package/esm2015/cms/components/element-children/element-children.component.js +3 -3
- package/esm2015/cms/components/element-children/element-children.module.js +4 -4
- package/esm2015/cms/components/element-renderer/element-renderer.component.js +3 -3
- package/esm2015/cms/components/element-renderer/element-renderer.module.js +4 -4
- package/esm2015/cms/components/federated/federated.component.js +3 -3
- package/esm2015/cms/components/federated/federated.module.js +4 -4
- package/esm2015/cms/components/plugin.component.js +3 -3
- package/esm2015/cms/components/preview/preview.component.js +32 -24
- package/esm2015/cms/components/preview/preview.module.js +4 -4
- package/esm2015/cms/directives/custom-template.directive.js +3 -3
- package/esm2015/cms/launcher.module.js +4 -4
- package/esm2015/cms/modules/configuration/configuration.module.js +25 -6
- package/esm2015/cms/modules/configuration/index.js +3 -1
- package/esm2015/cms/modules/configuration/services/configuration-runtime.service.js +80 -0
- package/esm2015/cms/modules/configuration/services/configuration.service.js +45 -44
- package/esm2015/cms/modules/configuration/services/runtime-context.service.js +60 -0
- package/esm2015/cms/modules/configuration/types/configuration-runtime.types.js +2 -0
- package/esm2015/cms/modules/configuration/types/configuration.types.js +1 -1
- package/esm2015/cms/plugins/configuration.plugin.js +3 -3
- package/esm2015/cms/plugins/io.plugin.js +3 -3
- package/esm2015/cms/plugins/script.plugin.js +3 -3
- package/esm2015/cms/services/dynamic-module.service.js +3 -3
- package/esm2015/cms/services/element-context.service.js +3 -3
- package/esm2015/cms/services/io-provider.service.js +3 -3
- package/esm2015/cms/services/launcher.service.js +3 -3
- package/esm2015/cms/services/templates.service.js +3 -3
- package/esm2015/index.js +2 -2
- package/esm2015/runtime/components/component-preview/component-preview.component.js +3 -3
- package/esm2015/runtime/components/section-renderer/section-renderer.component.js +3 -3
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +3 -3
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +3 -3
- package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +6 -6
- package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +3 -3
- package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +3 -3
- package/esm2015/runtime/execution/components/federated/federated.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +3 -3
- package/esm2015/runtime/execution/directives/section-script.directive.js +3 -3
- package/esm2015/runtime/execution/directives/sf-query.directive.js +3 -3
- package/esm2015/runtime/execution/directives/velo-attribute.directive.js +3 -3
- package/esm2015/runtime/execution/directives/velo-port.directive.js +18 -18
- package/esm2015/runtime/execution/directives/vl-approval.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +3 -3
- package/esm2015/runtime/execution/runtime-execution.module.js +5 -8
- package/esm2015/runtime/runtime.module.js +5 -8
- package/esm2015/runtime/services/cart.service.js +3 -3
- package/esm2015/runtime/services/collapsible-state.service.js +3 -3
- package/esm2015/runtime/services/configuration.service.js +3 -3
- package/esm2015/runtime/services/context.service.js +6 -5
- package/esm2015/runtime/services/current-state.service.js +3 -3
- package/esm2015/runtime/services/form-scope.service.js +3 -3
- package/esm2015/runtime/services/index.js +1 -2
- package/esm2015/runtime/services/product-model-cache.service.js +3 -3
- package/esm2015/runtime/services/quote.service.js +3 -3
- package/esm2015/runtime/services/runtime-context.service.js +3 -3
- package/esm2015/runtime/services/runtime-form.service.js +3 -3
- package/esm2015/runtime/services/runtime.service.js +3 -3
- package/esm2015/runtime/services/section-helper.service.js +3 -3
- package/esm2015/runtime/services/section-scope.service.js +3 -3
- package/esm2015/runtime/services/section-store.service.js +3 -3
- package/esm2015/runtime/services/section.service.js +6 -6
- package/esm2015/runtime/types/index.js +1 -2
- package/esm2015/src/constants.js +2 -0
- package/esm2015/src/flow-routing.module.js +75 -0
- package/esm2015/src/flow.component.js +23 -0
- package/esm2015/src/flow.module.js +24 -0
- package/esm2015/src/guards/context.guard.js +63 -0
- package/esm2015/src/guards/index.js +2 -0
- package/esm2015/src/guards/root.guard.js +41 -0
- package/esm2015/src/index.js +6 -0
- package/esm2015/src/pages/debug/debug.component.js +54 -0
- package/esm2015/src/pages/debug/debug.module.js +44 -0
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +117 -0
- package/esm2015/src/pages/legacy-product/legacy-product.module.js +20 -0
- package/esm2015/src/pages/product/product.component.js +95 -0
- package/esm2015/src/pages/product/product.module.js +20 -0
- package/esm2015/src/pages/record-not-found/record-not-found.component.js +26 -0
- package/esm2015/src/pages/record-not-found/record-not-found.module.js +20 -0
- package/esm2015/src/resolvers/context.resolver.js +42 -0
- package/esm2015/src/resolvers/flow.resolver.js +58 -0
- package/esm2015/src/resolvers/quote.resolver.js +36 -0
- package/esm2015/src/services/flow.service.js +24 -0
- package/esm2015/src/services/index.js +2 -0
- package/esm2015/src/services/router.service.js +47 -0
- package/esm2015/src/types/context-route.types.js +2 -0
- package/esm2015/src/types/flow-customization.types.js +3 -0
- package/esm2015/src/types/flow.types.js +2 -0
- package/esm2015/src/types/index.js +4 -0
- package/esm2015/src/types/route.types.js +2 -0
- package/fesm2015/veloce-sdk-cms.js +466 -318
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +146 -169
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +725 -1
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +1 -1
- package/runtime/services/index.d.ts +0 -1
- package/runtime/types/index.d.ts +0 -1
- package/src/constants.d.ts +1 -0
- package/src/flow-routing.module.d.ts +9 -0
- package/src/flow.component.d.ts +8 -0
- package/src/flow.module.d.ts +12 -0
- package/src/guards/context.guard.d.ts +16 -0
- package/src/guards/index.d.ts +1 -0
- package/src/guards/root.guard.d.ts +15 -0
- package/src/index.d.ts +5 -0
- package/src/pages/debug/debug.component.d.ts +24 -0
- package/src/pages/debug/debug.module.d.ts +13 -0
- package/src/pages/legacy-product/legacy-product.component.d.ts +33 -0
- package/src/pages/legacy-product/legacy-product.module.d.ts +10 -0
- package/src/pages/product/product.component.d.ts +32 -0
- package/src/pages/product/product.module.d.ts +10 -0
- package/src/pages/record-not-found/record-not-found.component.d.ts +11 -0
- package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
- package/src/resolvers/context.resolver.d.ts +16 -0
- package/src/resolvers/flow.resolver.d.ts +14 -0
- package/src/resolvers/quote.resolver.d.ts +15 -0
- package/{runtime → src}/services/flow.service.d.ts +1 -2
- package/src/services/index.d.ts +1 -0
- package/src/services/router.service.d.ts +12 -0
- package/src/types/context-route.types.d.ts +5 -0
- package/src/types/flow-customization.types.d.ts +7 -0
- package/{runtime → src}/types/flow.types.d.ts +0 -0
- package/src/types/index.d.ts +3 -0
- package/src/types/route.types.d.ts +4 -0
- package/esm2015/runtime/services/flow.service.js +0 -24
- package/esm2015/runtime/types/flow.types.js +0 -2
|
@@ -1,13 +1,1109 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@veloce/api'), require('@veloce/components'), require('@veloce/sdk/cms'), require('@veloce/sdk/runtime'), require('@angular/router'), require('rxjs'), require('@veloce/core'), require('@angular/forms'), require('primeng/button'), require('primeng/inputtext'), require('primeng/radiobutton'), require('rxjs/operators'), require('ngx-bootstrap/tooltip'), require('primeng/api'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloce/sdk', ['exports', '@angular/common', '@angular/core', '@veloce/api', '@veloce/components', '@veloce/sdk/cms', '@veloce/sdk/runtime', '@angular/router', 'rxjs', '@veloce/core', '@angular/forms', 'primeng/button', 'primeng/inputtext', 'primeng/radiobutton', 'rxjs/operators', 'ngx-bootstrap/tooltip', 'primeng/api', '@angular/common/http'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = {}), global.ng.common, global.ng.core, global["@veloce/api"], global["@veloce/components"], global.veloce.sdk.cms, global.veloce.sdk.runtime, global.ng.router, global.rxjs, global["@veloce/core"], global.ng.forms, global.i3$1, global.i6, global.i4, global.rxjs.operators, global["ngx-bootstrap/tooltip"], global["primeng/api"], global.ng.common.http));
|
|
5
|
+
})(this, (function (exports, i3, i0, i1$1, i2, i1$2, i2$1, i1, rxjs, core, i5, i3$1, i6, i4, operators, tooltip, i4$1, http) { 'use strict';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
7
24
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
25
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
30
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
33
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
34
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
35
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
36
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
37
|
+
|
|
38
|
+
var VELOCE_FLOW_ROOT_ROUTE = 'VELOCE_FLOW_ROOT_ROUTE';
|
|
39
|
+
|
|
40
|
+
/*! *****************************************************************************
|
|
41
|
+
Copyright (c) Microsoft Corporation.
|
|
42
|
+
|
|
43
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
44
|
+
purpose with or without fee is hereby granted.
|
|
45
|
+
|
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
47
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
48
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
49
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
50
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
51
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
53
|
+
***************************************************************************** */
|
|
54
|
+
/* global Reflect, Promise */
|
|
55
|
+
var extendStatics = function (d, b) {
|
|
56
|
+
extendStatics = Object.setPrototypeOf ||
|
|
57
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
58
|
+
function (d, b) { for (var p in b)
|
|
59
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
60
|
+
d[p] = b[p]; };
|
|
61
|
+
return extendStatics(d, b);
|
|
62
|
+
};
|
|
63
|
+
function __extends(d, b) {
|
|
64
|
+
if (typeof b !== "function" && b !== null)
|
|
65
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
66
|
+
extendStatics(d, b);
|
|
67
|
+
function __() { this.constructor = d; }
|
|
68
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
69
|
+
}
|
|
70
|
+
var __assign = function () {
|
|
71
|
+
__assign = Object.assign || function __assign(t) {
|
|
72
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
73
|
+
s = arguments[i];
|
|
74
|
+
for (var p in s)
|
|
75
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
76
|
+
t[p] = s[p];
|
|
77
|
+
}
|
|
78
|
+
return t;
|
|
79
|
+
};
|
|
80
|
+
return __assign.apply(this, arguments);
|
|
81
|
+
};
|
|
82
|
+
function __rest(s, e) {
|
|
83
|
+
var t = {};
|
|
84
|
+
for (var p in s)
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
86
|
+
t[p] = s[p];
|
|
87
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
88
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
89
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
90
|
+
t[p[i]] = s[p[i]];
|
|
91
|
+
}
|
|
92
|
+
return t;
|
|
93
|
+
}
|
|
94
|
+
function __decorate(decorators, target, key, desc) {
|
|
95
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
96
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
97
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
98
|
+
else
|
|
99
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
100
|
+
if (d = decorators[i])
|
|
101
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
102
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
103
|
+
}
|
|
104
|
+
function __param(paramIndex, decorator) {
|
|
105
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
106
|
+
}
|
|
107
|
+
function __metadata(metadataKey, metadataValue) {
|
|
108
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
109
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
110
|
+
}
|
|
111
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
112
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
113
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
114
|
+
function fulfilled(value) { try {
|
|
115
|
+
step(generator.next(value));
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
reject(e);
|
|
119
|
+
} }
|
|
120
|
+
function rejected(value) { try {
|
|
121
|
+
step(generator["throw"](value));
|
|
122
|
+
}
|
|
123
|
+
catch (e) {
|
|
124
|
+
reject(e);
|
|
125
|
+
} }
|
|
126
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
127
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function __generator(thisArg, body) {
|
|
131
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
132
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
133
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
134
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
135
|
+
function step(op) {
|
|
136
|
+
if (f)
|
|
137
|
+
throw new TypeError("Generator is already executing.");
|
|
138
|
+
while (_)
|
|
139
|
+
try {
|
|
140
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
141
|
+
return t;
|
|
142
|
+
if (y = 0, t)
|
|
143
|
+
op = [op[0] & 2, t.value];
|
|
144
|
+
switch (op[0]) {
|
|
145
|
+
case 0:
|
|
146
|
+
case 1:
|
|
147
|
+
t = op;
|
|
148
|
+
break;
|
|
149
|
+
case 4:
|
|
150
|
+
_.label++;
|
|
151
|
+
return { value: op[1], done: false };
|
|
152
|
+
case 5:
|
|
153
|
+
_.label++;
|
|
154
|
+
y = op[1];
|
|
155
|
+
op = [0];
|
|
156
|
+
continue;
|
|
157
|
+
case 7:
|
|
158
|
+
op = _.ops.pop();
|
|
159
|
+
_.trys.pop();
|
|
160
|
+
continue;
|
|
161
|
+
default:
|
|
162
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
163
|
+
_ = 0;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
167
|
+
_.label = op[1];
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
171
|
+
_.label = t[1];
|
|
172
|
+
t = op;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
if (t && _.label < t[2]) {
|
|
176
|
+
_.label = t[2];
|
|
177
|
+
_.ops.push(op);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
if (t[2])
|
|
181
|
+
_.ops.pop();
|
|
182
|
+
_.trys.pop();
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
op = body.call(thisArg, _);
|
|
186
|
+
}
|
|
187
|
+
catch (e) {
|
|
188
|
+
op = [6, e];
|
|
189
|
+
y = 0;
|
|
190
|
+
}
|
|
191
|
+
finally {
|
|
192
|
+
f = t = 0;
|
|
193
|
+
}
|
|
194
|
+
if (op[0] & 5)
|
|
195
|
+
throw op[1];
|
|
196
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
200
|
+
if (k2 === undefined)
|
|
201
|
+
k2 = k;
|
|
202
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
203
|
+
}) : (function (o, m, k, k2) {
|
|
204
|
+
if (k2 === undefined)
|
|
205
|
+
k2 = k;
|
|
206
|
+
o[k2] = m[k];
|
|
207
|
+
});
|
|
208
|
+
function __exportStar(m, o) {
|
|
209
|
+
for (var p in m)
|
|
210
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
211
|
+
__createBinding(o, m, p);
|
|
212
|
+
}
|
|
213
|
+
function __values(o) {
|
|
214
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
215
|
+
if (m)
|
|
216
|
+
return m.call(o);
|
|
217
|
+
if (o && typeof o.length === "number")
|
|
218
|
+
return {
|
|
219
|
+
next: function () {
|
|
220
|
+
if (o && i >= o.length)
|
|
221
|
+
o = void 0;
|
|
222
|
+
return { value: o && o[i++], done: !o };
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
226
|
+
}
|
|
227
|
+
function __read(o, n) {
|
|
228
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
229
|
+
if (!m)
|
|
230
|
+
return o;
|
|
231
|
+
var i = m.call(o), r, ar = [], e;
|
|
232
|
+
try {
|
|
233
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
234
|
+
ar.push(r.value);
|
|
235
|
+
}
|
|
236
|
+
catch (error) {
|
|
237
|
+
e = { error: error };
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
try {
|
|
241
|
+
if (r && !r.done && (m = i["return"]))
|
|
242
|
+
m.call(i);
|
|
243
|
+
}
|
|
244
|
+
finally {
|
|
245
|
+
if (e)
|
|
246
|
+
throw e.error;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return ar;
|
|
250
|
+
}
|
|
251
|
+
/** @deprecated */
|
|
252
|
+
function __spread() {
|
|
253
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
254
|
+
ar = ar.concat(__read(arguments[i]));
|
|
255
|
+
return ar;
|
|
256
|
+
}
|
|
257
|
+
/** @deprecated */
|
|
258
|
+
function __spreadArrays() {
|
|
259
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
260
|
+
s += arguments[i].length;
|
|
261
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
262
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
263
|
+
r[k] = a[j];
|
|
264
|
+
return r;
|
|
265
|
+
}
|
|
266
|
+
function __spreadArray(to, from, pack) {
|
|
267
|
+
if (pack || arguments.length === 2)
|
|
268
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
269
|
+
if (ar || !(i in from)) {
|
|
270
|
+
if (!ar)
|
|
271
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
272
|
+
ar[i] = from[i];
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
276
|
+
}
|
|
277
|
+
function __await(v) {
|
|
278
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
279
|
+
}
|
|
280
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
281
|
+
if (!Symbol.asyncIterator)
|
|
282
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
283
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
284
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
285
|
+
function verb(n) { if (g[n])
|
|
286
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
287
|
+
function resume(n, v) { try {
|
|
288
|
+
step(g[n](v));
|
|
289
|
+
}
|
|
290
|
+
catch (e) {
|
|
291
|
+
settle(q[0][3], e);
|
|
292
|
+
} }
|
|
293
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
294
|
+
function fulfill(value) { resume("next", value); }
|
|
295
|
+
function reject(value) { resume("throw", value); }
|
|
296
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
297
|
+
resume(q[0][0], q[0][1]); }
|
|
298
|
+
}
|
|
299
|
+
function __asyncDelegator(o) {
|
|
300
|
+
var i, p;
|
|
301
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
302
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
303
|
+
}
|
|
304
|
+
function __asyncValues(o) {
|
|
305
|
+
if (!Symbol.asyncIterator)
|
|
306
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
307
|
+
var m = o[Symbol.asyncIterator], i;
|
|
308
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
309
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
310
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
311
|
+
}
|
|
312
|
+
function __makeTemplateObject(cooked, raw) {
|
|
313
|
+
if (Object.defineProperty) {
|
|
314
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
cooked.raw = raw;
|
|
318
|
+
}
|
|
319
|
+
return cooked;
|
|
320
|
+
}
|
|
321
|
+
;
|
|
322
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
323
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
324
|
+
}) : function (o, v) {
|
|
325
|
+
o["default"] = v;
|
|
326
|
+
};
|
|
327
|
+
function __importStar(mod) {
|
|
328
|
+
if (mod && mod.__esModule)
|
|
329
|
+
return mod;
|
|
330
|
+
var result = {};
|
|
331
|
+
if (mod != null)
|
|
332
|
+
for (var k in mod)
|
|
333
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
334
|
+
__createBinding(result, mod, k);
|
|
335
|
+
__setModuleDefault(result, mod);
|
|
336
|
+
return result;
|
|
337
|
+
}
|
|
338
|
+
function __importDefault(mod) {
|
|
339
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
340
|
+
}
|
|
341
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
342
|
+
if (kind === "a" && !f)
|
|
343
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
344
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
345
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
346
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
347
|
+
}
|
|
348
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
349
|
+
if (kind === "m")
|
|
350
|
+
throw new TypeError("Private method is not writable");
|
|
351
|
+
if (kind === "a" && !f)
|
|
352
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
353
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
354
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
355
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
var RouterService = /** @class */ (function () {
|
|
359
|
+
function RouterService(router) {
|
|
360
|
+
this.router = router;
|
|
361
|
+
this.loading$ = this.router.events.pipe(rxjs.filter(function (e) { return e instanceof i1.NavigationStart ||
|
|
362
|
+
e instanceof i1.NavigationCancel ||
|
|
363
|
+
e instanceof i1.NavigationEnd ||
|
|
364
|
+
e instanceof i1.NavigationError; }), rxjs.map(function (e) { return e instanceof i1.NavigationStart; }), rxjs.startWith(false), rxjs.distinctUntilChanged());
|
|
365
|
+
}
|
|
366
|
+
RouterService.prototype.getFlowRootRoute = function (route) {
|
|
367
|
+
var _a;
|
|
368
|
+
var path = __spreadArray([], __read(route.pathFromRoot));
|
|
369
|
+
while (path.length) {
|
|
370
|
+
var parent = path.pop();
|
|
371
|
+
if (!parent) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
if (((_a = parent.routeConfig) === null || _a === void 0 ? void 0 : _a.id) === VELOCE_FLOW_ROOT_ROUTE) {
|
|
375
|
+
return parent;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return;
|
|
379
|
+
};
|
|
380
|
+
RouterService.prototype.getFlowRootPath = function (route) {
|
|
381
|
+
var rootRoute = this.getFlowRootRoute(route);
|
|
382
|
+
if (!rootRoute) {
|
|
383
|
+
return '';
|
|
384
|
+
}
|
|
385
|
+
var path = rootRoute.pathFromRoot
|
|
386
|
+
.map(function (r) { var _a; return (_a = r.routeConfig) === null || _a === void 0 ? void 0 : _a.path; })
|
|
387
|
+
.filter(Boolean)
|
|
388
|
+
.join('/');
|
|
389
|
+
return '/' + path;
|
|
390
|
+
};
|
|
391
|
+
return RouterService;
|
|
392
|
+
}());
|
|
393
|
+
RouterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RouterService, deps: [{ token: i1__namespace.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
394
|
+
RouterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RouterService, providedIn: 'root' });
|
|
395
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RouterService, decorators: [{
|
|
396
|
+
type: i0.Injectable,
|
|
397
|
+
args: [{ providedIn: 'root' }]
|
|
398
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }]; } });
|
|
399
|
+
|
|
400
|
+
var FlowComponent = /** @class */ (function () {
|
|
401
|
+
function FlowComponent(routerService) {
|
|
402
|
+
this.routerService = routerService;
|
|
403
|
+
}
|
|
404
|
+
return FlowComponent;
|
|
405
|
+
}());
|
|
406
|
+
FlowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowComponent, deps: [{ token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
407
|
+
FlowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlowComponent, selector: "vl-flow", ngImport: i0__namespace, template: "<div class=\"loading-overlay\" *ngIf=\"routerService.loading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n</div>\n\n<router-outlet></router-outlet>\n", styles: [".loading-overlay{position:absolute;height:100%;width:100%;left:0;right:0;top:0;bottom:0;background-color:#ffffff80;z-index:4}\n"], components: [{ type: i2__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], pipes: { "async": i3__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
408
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowComponent, decorators: [{
|
|
409
|
+
type: i0.Component,
|
|
410
|
+
args: [{
|
|
411
|
+
selector: 'vl-flow',
|
|
412
|
+
templateUrl: './flow.component.html',
|
|
413
|
+
styleUrls: ['./flow.component.scss'],
|
|
414
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
415
|
+
}]
|
|
416
|
+
}], ctorParameters: function () { return [{ type: RouterService }]; } });
|
|
417
|
+
|
|
418
|
+
var ContextGuard = /** @class */ (function () {
|
|
419
|
+
function ContextGuard(router, routerService) {
|
|
420
|
+
this.router = router;
|
|
421
|
+
this.routerService = routerService;
|
|
422
|
+
}
|
|
423
|
+
ContextGuard.prototype.getConfigurationContextMode = function (accountId, quoteId, orderId, rpcMessage) {
|
|
424
|
+
if (accountId) {
|
|
425
|
+
return core.ConfigurationContextMode.ACCOUNT;
|
|
426
|
+
}
|
|
427
|
+
if (quoteId) {
|
|
428
|
+
return core.ConfigurationContextMode.QUOTE;
|
|
429
|
+
}
|
|
430
|
+
if (orderId) {
|
|
431
|
+
return core.ConfigurationContextMode.ORDER;
|
|
432
|
+
}
|
|
433
|
+
if (rpcMessage) {
|
|
434
|
+
return core.ConfigurationContextMode.REMOTE;
|
|
435
|
+
}
|
|
436
|
+
return;
|
|
437
|
+
};
|
|
438
|
+
ContextGuard.prototype.checkActivation = function (route) {
|
|
439
|
+
var _a, _b;
|
|
440
|
+
var queryParams = route.queryParams;
|
|
441
|
+
var accountId = queryParams.accountId, quoteId = queryParams.quoteId, orderId = queryParams.orderId;
|
|
442
|
+
var rpcMessage = window['RPC_MESSAGE'];
|
|
443
|
+
var rpcMessageId = rpcMessage && ((_b = (_a = JSON.parse(rpcMessage)) === null || _a === void 0 ? void 0 : _a.quote) === null || _b === void 0 ? void 0 : _b.Id);
|
|
444
|
+
var headerId = accountId || quoteId || orderId || rpcMessageId || 'empty-for-test-mode';
|
|
445
|
+
var mode = this.getConfigurationContextMode(accountId, quoteId, orderId, rpcMessage);
|
|
446
|
+
if (mode === void 0) {
|
|
447
|
+
return this.reject(route, 'Mode is undefined');
|
|
448
|
+
}
|
|
449
|
+
var contextRouteData = {
|
|
450
|
+
headerId: headerId,
|
|
451
|
+
mode: mode,
|
|
452
|
+
};
|
|
453
|
+
route.data = Object.assign(Object.assign({}, route.data), contextRouteData);
|
|
454
|
+
return true;
|
|
455
|
+
};
|
|
456
|
+
ContextGuard.prototype.canActivate = function (route) {
|
|
457
|
+
return this.checkActivation(route);
|
|
458
|
+
};
|
|
459
|
+
ContextGuard.prototype.canActivateChild = function (childRoute) {
|
|
460
|
+
return this.checkActivation(childRoute);
|
|
461
|
+
};
|
|
462
|
+
ContextGuard.prototype.reject = function (route, message) {
|
|
463
|
+
var parentUrl = this.routerService.getFlowRootPath(route);
|
|
464
|
+
this.router.navigate([parentUrl, '404'], {
|
|
465
|
+
state: { message: message },
|
|
466
|
+
});
|
|
467
|
+
return false;
|
|
468
|
+
};
|
|
469
|
+
return ContextGuard;
|
|
470
|
+
}());
|
|
471
|
+
ContextGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextGuard, deps: [{ token: i1__namespace.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
472
|
+
ContextGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextGuard });
|
|
473
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextGuard, decorators: [{
|
|
474
|
+
type: i0.Injectable
|
|
475
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: RouterService }]; } });
|
|
476
|
+
|
|
477
|
+
var RootGuard = /** @class */ (function () {
|
|
478
|
+
function RootGuard(router, routerService) {
|
|
479
|
+
this.router = router;
|
|
480
|
+
this.routerService = routerService;
|
|
481
|
+
this.initialized = false;
|
|
482
|
+
this.navToRestore = null;
|
|
483
|
+
}
|
|
484
|
+
RootGuard.prototype.canActivate = function (route) {
|
|
485
|
+
var _this = this;
|
|
486
|
+
// We always need to initialize root component first, and only then start checking guards/resolvers
|
|
487
|
+
var _a;
|
|
488
|
+
if (!this.initialized) {
|
|
489
|
+
this.initialized = true;
|
|
490
|
+
this.navToRestore = this.router.getCurrentNavigation();
|
|
491
|
+
var rootUrl = this.routerService.getFlowRootPath(route);
|
|
492
|
+
this.router.navigate([rootUrl], { replaceUrl: !((_a = this.navToRestore) === null || _a === void 0 ? void 0 : _a.previousNavigation) });
|
|
493
|
+
}
|
|
494
|
+
else if (this.navToRestore) {
|
|
495
|
+
var nav_1 = this.navToRestore;
|
|
496
|
+
setTimeout(function () {
|
|
497
|
+
_this.router.navigateByUrl(nav_1.extractedUrl, nav_1.extras);
|
|
498
|
+
_this.navToRestore = null;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
return true;
|
|
502
|
+
};
|
|
503
|
+
RootGuard.prototype.canDeactivate = function () {
|
|
504
|
+
this.initialized = false;
|
|
505
|
+
return true;
|
|
506
|
+
};
|
|
507
|
+
return RootGuard;
|
|
508
|
+
}());
|
|
509
|
+
RootGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RootGuard, deps: [{ token: i1__namespace.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
510
|
+
RootGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RootGuard, providedIn: 'root' });
|
|
511
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RootGuard, decorators: [{
|
|
512
|
+
type: i0.Injectable,
|
|
513
|
+
args: [{ providedIn: 'root' }]
|
|
514
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: RouterService }]; } });
|
|
515
|
+
|
|
516
|
+
var FlowService = /** @class */ (function () {
|
|
517
|
+
function FlowService(configurationSettingsApiService) {
|
|
518
|
+
this.configurationSettingsApiService = configurationSettingsApiService;
|
|
519
|
+
this.flowsKey = 'flows';
|
|
520
|
+
}
|
|
521
|
+
FlowService.prototype.getFlow = function (id) {
|
|
522
|
+
return this.fetchFlows().pipe(operators.map(function (flows) { return flows.find(function (flow) { return flow.id == id; }); }));
|
|
523
|
+
};
|
|
524
|
+
FlowService.prototype.fetchFlows = function () {
|
|
525
|
+
return this.configurationSettingsApiService
|
|
526
|
+
.fetchSetting(this.flowsKey)
|
|
527
|
+
.pipe(operators.map(function (_a) {
|
|
528
|
+
var value = _a.value;
|
|
529
|
+
return (value ? JSON.parse(value) : []);
|
|
530
|
+
}));
|
|
531
|
+
};
|
|
532
|
+
return FlowService;
|
|
533
|
+
}());
|
|
534
|
+
FlowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowService, deps: [{ token: i1__namespace$1.ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
535
|
+
FlowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowService });
|
|
536
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowService, decorators: [{
|
|
537
|
+
type: i0.Injectable
|
|
538
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.ConfigurationSettingsApiService }]; } });
|
|
539
|
+
|
|
540
|
+
var DebugComponent = /** @class */ (function () {
|
|
541
|
+
function DebugComponent(flowService, router, activatedRoute) {
|
|
542
|
+
this.flowService = flowService;
|
|
543
|
+
this.router = router;
|
|
544
|
+
this.activatedRoute = activatedRoute;
|
|
545
|
+
this.form = new i5.FormGroup({
|
|
546
|
+
id: new i5.FormControl(''),
|
|
547
|
+
});
|
|
548
|
+
this.flows$ = this.flowService.fetchFlows().pipe(rxjs.map(function (flows) { return flows.map(function (flow) {
|
|
549
|
+
var _a, _b, _c;
|
|
550
|
+
var queryParams = (_b = (_a = flow === null || flow === void 0 ? void 0 : flow.properties) === null || _a === void 0 ? void 0 : _a.queryParams) !== null && _b !== void 0 ? _b : {};
|
|
551
|
+
return {
|
|
552
|
+
id: flow.id,
|
|
553
|
+
entryPath: (_c = flow === null || flow === void 0 ? void 0 : flow.properties) === null || _c === void 0 ? void 0 : _c.entryPath,
|
|
554
|
+
queryParams: queryParams,
|
|
555
|
+
queryParamsStr: JSON.stringify(queryParams),
|
|
556
|
+
};
|
|
557
|
+
}); }), rxjs.shareReplay());
|
|
558
|
+
}
|
|
559
|
+
DebugComponent.prototype.runFlow = function () {
|
|
560
|
+
var id = this.form.value.id;
|
|
561
|
+
if (!id || !this.selectedFlow) {
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
var paths = this.selectedFlow.entryPath.split('/').filter(Boolean);
|
|
565
|
+
this.router.navigate(__spreadArray(['..'], __read(paths)), {
|
|
566
|
+
queryParams: Object.assign({ flowId: this.selectedFlow.id, quoteId: id }, this.selectedFlow.queryParams),
|
|
567
|
+
relativeTo: this.activatedRoute,
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
return DebugComponent;
|
|
571
|
+
}());
|
|
572
|
+
DebugComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugComponent, deps: [{ token: FlowService }, { token: i1__namespace.Router }, { token: i1__namespace.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
573
|
+
DebugComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DebugComponent, selector: "vl-flow-debug", ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\n <div class=\"field\">\n <label>SF Object ID</label>\n <input formControlName=\"id\" pInputText type=\"text\" />\n </div>\n\n <p-button\n styleClass=\"p-button-primary\"\n label=\"Run Flow\"\n [disabled]=\"!form.value.id || !selectedFlow\"\n (onClick)=\"runFlow()\"\n ></p-button>\n</form>\n\n<table>\n <thead>\n <tr>\n <th [width]=\"30\"></th>\n <th [width]=\"160\">ID</th>\n <th [width]=\"160\">Entry Path</th>\n <th>QueryParams</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let flow of flows$ | async\" (click)=\"selectedFlow = flow\">\n <td><p-radioButton [inputId]=\"flow.id\" name=\"flow\" [value]=\"flow\" [(ngModel)]=\"selectedFlow\"></p-radioButton></td>\n <td>{{ flow.id }}</td>\n <td>{{ flow.entryPath }}</td>\n <td>{{ flow.queryParamsStr }}</td>\n </tr>\n </tbody>\n</table>\n", styles: ["form{display:flex;align-items:center;justify-content:space-between}.field{display:flex;flex-direction:column;width:200px;flex-shrink:0}table{width:100%;border-collapse:collapse}tr{cursor:pointer}tr:hover{background-color:#f0f5fa}th{text-align:left;font-weight:600}th,td{padding:0 10px;height:30px;border-bottom:1px solid var(--vl-border-color);margin-right:16px}\n"], components: [{ type: i3__namespace$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }, { type: i4__namespace.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i5__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i5__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace.InputText, selector: "[pInputText]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i3__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
574
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugComponent, decorators: [{
|
|
575
|
+
type: i0.Component,
|
|
576
|
+
args: [{
|
|
577
|
+
selector: 'vl-flow-debug',
|
|
578
|
+
templateUrl: './debug.component.html',
|
|
579
|
+
styleUrls: ['./debug.component.scss'],
|
|
580
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
581
|
+
}]
|
|
582
|
+
}], ctorParameters: function () { return [{ type: FlowService }, { type: i1__namespace.Router }, { type: i1__namespace.ActivatedRoute }]; } });
|
|
583
|
+
|
|
584
|
+
var routes$1 = [{ path: '', component: DebugComponent }];
|
|
585
|
+
var DebugModule = /** @class */ (function () {
|
|
586
|
+
function DebugModule() {
|
|
587
|
+
}
|
|
588
|
+
return DebugModule;
|
|
589
|
+
}());
|
|
590
|
+
DebugModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
591
|
+
DebugModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugModule, declarations: [DebugComponent], imports: [i3.CommonModule,
|
|
592
|
+
i5.FormsModule,
|
|
593
|
+
i5.ReactiveFormsModule, i1__namespace.RouterModule, i4.RadioButtonModule,
|
|
594
|
+
i3$1.ButtonModule,
|
|
595
|
+
i6.InputTextModule] });
|
|
596
|
+
DebugModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugModule, imports: [[
|
|
597
|
+
i3.CommonModule,
|
|
598
|
+
i5.FormsModule,
|
|
599
|
+
i5.ReactiveFormsModule,
|
|
600
|
+
i1.RouterModule.forChild(routes$1),
|
|
601
|
+
i4.RadioButtonModule,
|
|
602
|
+
i3$1.ButtonModule,
|
|
603
|
+
i6.InputTextModule,
|
|
604
|
+
]] });
|
|
605
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DebugModule, decorators: [{
|
|
606
|
+
type: i0.NgModule,
|
|
607
|
+
args: [{
|
|
608
|
+
declarations: [DebugComponent],
|
|
609
|
+
imports: [
|
|
610
|
+
i3.CommonModule,
|
|
611
|
+
i5.FormsModule,
|
|
612
|
+
i5.ReactiveFormsModule,
|
|
613
|
+
i1.RouterModule.forChild(routes$1),
|
|
614
|
+
i4.RadioButtonModule,
|
|
615
|
+
i3$1.ButtonModule,
|
|
616
|
+
i6.InputTextModule,
|
|
617
|
+
],
|
|
618
|
+
}]
|
|
619
|
+
}] });
|
|
620
|
+
|
|
621
|
+
var LegacyProductComponent = /** @class */ (function () {
|
|
622
|
+
function LegacyProductComponent(route, quoteService, quoteApiService, contextService, runtimeContextService, runtimeService, currentStateService) {
|
|
623
|
+
this.route = route;
|
|
624
|
+
this.quoteService = quoteService;
|
|
625
|
+
this.quoteApiService = quoteApiService;
|
|
626
|
+
this.contextService = contextService;
|
|
627
|
+
this.runtimeContextService = runtimeContextService;
|
|
628
|
+
this.runtimeService = runtimeService;
|
|
629
|
+
this.currentStateService = currentStateService;
|
|
630
|
+
this.destroyed$ = new rxjs.Subject();
|
|
631
|
+
}
|
|
632
|
+
LegacyProductComponent.prototype.ngOnInit = function () {
|
|
633
|
+
var _this = this;
|
|
634
|
+
this.quoteService.quote$
|
|
635
|
+
.pipe(operators.first(), operators.takeUntil(this.destroyed$))
|
|
636
|
+
.subscribe(function (quote) { return _this.init(quote, _this.route.snapshot.queryParams); });
|
|
637
|
+
this.runtimeService.onSolutionStopEvent.pipe(operators.take(1)).subscribe(function (lineItem) { return _this.onSolutionStop(lineItem); });
|
|
638
|
+
this.runtimeService.onSolutionReadyEvent.pipe(operators.take(1)).subscribe(function (event) { return _this.onSolutionReady(event); });
|
|
639
|
+
this.runtimeService.onSolutionCancelEvent.pipe(operators.take(1)).subscribe(function () { return _this.onSolutionCancel(); });
|
|
640
|
+
};
|
|
641
|
+
LegacyProductComponent.prototype.ngOnDestroy = function () {
|
|
642
|
+
this.destroyed$.next();
|
|
643
|
+
this.destroyed$.complete();
|
|
644
|
+
};
|
|
645
|
+
LegacyProductComponent.prototype.onSolutionReady = function (lineItem) {
|
|
646
|
+
var _a;
|
|
647
|
+
lineItem.actionCode = (_a = lineItem.actionCode) !== null && _a !== void 0 ? _a : 'ADD';
|
|
648
|
+
};
|
|
649
|
+
LegacyProductComponent.prototype.onSolutionCancel = function () {
|
|
650
|
+
this.quoteService.quote$.pipe(operators.first(), operators.takeUntil(this.destroyed$)).subscribe(function (quote) {
|
|
651
|
+
window['VELO_BACK_FN'].apply(null, [quote.quoteId]);
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
LegacyProductComponent.prototype.onSolutionUpdated = function (lineItem) {
|
|
655
|
+
var states = {
|
|
656
|
+
configurableRamp: lineItem,
|
|
657
|
+
currentState: this.currentStateService.currentState,
|
|
658
|
+
asset: this.getAsset(lineItem),
|
|
659
|
+
};
|
|
660
|
+
this.runtimeService.updateRuntime(states);
|
|
661
|
+
};
|
|
662
|
+
LegacyProductComponent.prototype.onSolutionStop = function (lineItem) {
|
|
663
|
+
var _this = this;
|
|
664
|
+
this.quoteService.quote$.pipe(operators.first(), operators.takeUntil(this.destroyed$)).subscribe(function (quote) {
|
|
665
|
+
var quoteToUpsert = Object.assign(Object.assign({}, quote), { context: _this.contextService.resolve(), currentState: __spreadArray(__spreadArray([], __read((_this.currentStateService.currentState || []).filter(function (li) { return li.id !== lineItem.id; }))), [lineItem]) });
|
|
666
|
+
_this.quoteApiService
|
|
667
|
+
.upsertQuote(quoteToUpsert)
|
|
668
|
+
.pipe(operators.take(1))
|
|
669
|
+
.subscribe(function (quote) {
|
|
670
|
+
window['VELO_BACK_FN'].apply(null, [quote.quoteId]);
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
LegacyProductComponent.prototype.init = function (quote, queryParams) {
|
|
675
|
+
var productId = queryParams['productId'];
|
|
676
|
+
var lineItemId = this.getLineItemId(quote, queryParams);
|
|
677
|
+
this.assets = quote.initialState;
|
|
678
|
+
lineItemId && quote.currentState ? this.reConfigure(lineItemId, quote.currentState) : this.configure(productId);
|
|
679
|
+
};
|
|
680
|
+
LegacyProductComponent.prototype.getLineItemId = function (quote, queryParams) {
|
|
681
|
+
if (core.EntityUtil.isPresent(queryParams['lineItemId'])) {
|
|
682
|
+
return queryParams['lineItemId'];
|
|
683
|
+
}
|
|
684
|
+
return quote.currentState
|
|
685
|
+
.filter(function (lineItem) { return lineItem.productId === queryParams['productId']; })
|
|
686
|
+
.map(function (lineItem) { return lineItem.id; })
|
|
687
|
+
.find(function (id) { return id; });
|
|
688
|
+
};
|
|
689
|
+
LegacyProductComponent.prototype.configure = function (productId) {
|
|
690
|
+
var runtimeContext = this.getRuntimeContext(productId, '', i2$1.RuntimeOperation.INIT);
|
|
691
|
+
this.startRuntime({}, runtimeContext);
|
|
692
|
+
};
|
|
693
|
+
LegacyProductComponent.prototype.reConfigure = function (lineItemId, currentState) {
|
|
694
|
+
var currentStateItem = core.EntityUtil.findById(lineItemId, currentState);
|
|
695
|
+
var runtimeContext = this.getRuntimeContext(currentStateItem.productId, currentStateItem.offeringId, i2$1.RuntimeOperation.UPDATE);
|
|
696
|
+
var states = {
|
|
697
|
+
configurableRamp: currentStateItem,
|
|
698
|
+
currentState: currentState,
|
|
699
|
+
asset: this.getAsset(currentStateItem),
|
|
700
|
+
};
|
|
701
|
+
this.currentStateService.update(currentState);
|
|
702
|
+
this.startRuntime(states, runtimeContext);
|
|
703
|
+
};
|
|
704
|
+
LegacyProductComponent.prototype.getAsset = function (lineItem) {
|
|
705
|
+
return this.assets && this.assets.find(function (a) { return a.id === lineItem.openOrderLineItemId || a.id === lineItem.assetId; });
|
|
706
|
+
};
|
|
707
|
+
LegacyProductComponent.prototype.startRuntime = function (states, runtimeContext$) {
|
|
708
|
+
var _this = this;
|
|
709
|
+
runtimeContext$
|
|
710
|
+
.pipe(operators.take(1), operators.map(function (runtimeContext) {
|
|
711
|
+
_this.runtimeService.startRuntime(runtimeContext, states);
|
|
712
|
+
}))
|
|
713
|
+
.subscribe();
|
|
714
|
+
};
|
|
715
|
+
LegacyProductComponent.prototype.getRuntimeContext = function (productId, offeringId, runtimeOperation) {
|
|
716
|
+
return this.runtimeContextService.getRuntimeContext(productId, offeringId).pipe(operators.map(function (runtimeContext) {
|
|
717
|
+
runtimeContext.invocationContext = { runtimeOperation: i2$1.RuntimeOperation[runtimeOperation] };
|
|
718
|
+
return runtimeContext;
|
|
719
|
+
}));
|
|
720
|
+
};
|
|
721
|
+
return LegacyProductComponent;
|
|
722
|
+
}());
|
|
723
|
+
LegacyProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductComponent, deps: [{ token: i1__namespace.ActivatedRoute }, { token: i2__namespace$1.QuoteService }, { token: i1__namespace$1.QuoteApiService }, { token: i2__namespace$1.ContextService }, { token: i2__namespace$1.RuntimeContextService }, { token: i2__namespace$1.RuntimeService }, { token: i2__namespace$1.CurrentStateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
724
|
+
LegacyProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LegacyProductComponent, selector: "ng-component", ngImport: i0__namespace, template: "<vl-runtime #runtimeView (solutionUpdated)=\"onSolutionUpdated($event)\"></vl-runtime>\n", styles: [":host{display:block;height:100%}\n"], components: [{ type: i2__namespace$1.RuntimeComponent, selector: "vl-runtime", outputs: ["solutionUpdated"] }] });
|
|
725
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductComponent, decorators: [{
|
|
726
|
+
type: i0.Component,
|
|
727
|
+
args: [{
|
|
728
|
+
templateUrl: './legacy-product.component.html',
|
|
729
|
+
styleUrls: ['./legacy-product.component.scss'],
|
|
730
|
+
}]
|
|
731
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.ActivatedRoute }, { type: i2__namespace$1.QuoteService }, { type: i1__namespace$1.QuoteApiService }, { type: i2__namespace$1.ContextService }, { type: i2__namespace$1.RuntimeContextService }, { type: i2__namespace$1.RuntimeService }, { type: i2__namespace$1.CurrentStateService }]; } });
|
|
732
|
+
|
|
733
|
+
var LegacyProductModule = /** @class */ (function () {
|
|
734
|
+
function LegacyProductModule() {
|
|
735
|
+
}
|
|
736
|
+
return LegacyProductModule;
|
|
737
|
+
}());
|
|
738
|
+
LegacyProductModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
739
|
+
LegacyProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductModule, declarations: [LegacyProductComponent], imports: [i3.CommonModule, i2$1.RuntimeModule, tooltip.TooltipModule], exports: [LegacyProductComponent] });
|
|
740
|
+
LegacyProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductModule, imports: [[i3.CommonModule, i2$1.RuntimeModule, tooltip.TooltipModule]] });
|
|
741
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LegacyProductModule, decorators: [{
|
|
742
|
+
type: i0.NgModule,
|
|
743
|
+
args: [{
|
|
744
|
+
declarations: [LegacyProductComponent],
|
|
745
|
+
imports: [i3.CommonModule, i2$1.RuntimeModule, tooltip.TooltipModule],
|
|
746
|
+
exports: [LegacyProductComponent],
|
|
747
|
+
}]
|
|
748
|
+
}] });
|
|
749
|
+
|
|
750
|
+
var FLOW_CUSTOMIZATION = new i0.InjectionToken('FLOW_CUSTOMIZATION');
|
|
751
|
+
|
|
752
|
+
var ProductComponent = /** @class */ (function () {
|
|
753
|
+
function ProductComponent(runtimeService, conigurationService, quoteService, route, messageService, customizationService) {
|
|
754
|
+
this.runtimeService = runtimeService;
|
|
755
|
+
this.conigurationService = conigurationService;
|
|
756
|
+
this.quoteService = quoteService;
|
|
757
|
+
this.route = route;
|
|
758
|
+
this.messageService = messageService;
|
|
759
|
+
this.customizationService = customizationService;
|
|
760
|
+
this.destroy$ = new rxjs.Subject();
|
|
761
|
+
this.state$ = new rxjs.BehaviorSubject({ loading: true, failure: false });
|
|
762
|
+
}
|
|
763
|
+
ProductComponent.prototype.ngOnInit = function () {
|
|
764
|
+
var _this = this;
|
|
765
|
+
this.quoteService.quote$
|
|
766
|
+
.pipe(rxjs.first(), rxjs.takeUntil(this.destroy$))
|
|
767
|
+
.subscribe(function (quote) { return _this.init(quote, _this.route.snapshot.queryParams); });
|
|
768
|
+
};
|
|
769
|
+
ProductComponent.prototype.ngOnDestroy = function () {
|
|
770
|
+
this.destroy$.next();
|
|
771
|
+
this.destroy$.complete();
|
|
772
|
+
};
|
|
773
|
+
ProductComponent.prototype.customize = function (productId) {
|
|
774
|
+
var _this = this;
|
|
775
|
+
var _a;
|
|
776
|
+
if (!((_a = this.customizationService) === null || _a === void 0 ? void 0 : _a.getUiDefinition)) {
|
|
777
|
+
return rxjs.of(null);
|
|
778
|
+
}
|
|
779
|
+
return this.customizationService.getUiDefinition(productId).pipe(rxjs.tap(function (uiDef) {
|
|
780
|
+
var _a;
|
|
781
|
+
if (uiDef) {
|
|
782
|
+
_this.uiDefinition = uiDef;
|
|
783
|
+
_this.runtimeService.uiDefinitionProperties = (_a = uiDef.properties) !== null && _a !== void 0 ? _a : {};
|
|
784
|
+
}
|
|
785
|
+
}));
|
|
786
|
+
};
|
|
787
|
+
ProductComponent.prototype.init = function (quote, queryParams) {
|
|
788
|
+
var _this = this;
|
|
789
|
+
var _a;
|
|
790
|
+
var lineItemId = this.getLineItemId(quote, queryParams);
|
|
791
|
+
var currentStateItem = core.EntityUtil.findById(lineItemId, quote.currentState);
|
|
792
|
+
var productId = (_a = currentStateItem === null || currentStateItem === void 0 ? void 0 : currentStateItem.productId) !== null && _a !== void 0 ? _a : queryParams['productId'];
|
|
793
|
+
var offeringId = (currentStateItem !== null && currentStateItem !== void 0 ? currentStateItem : {}).offeringId;
|
|
794
|
+
if (currentStateItem) {
|
|
795
|
+
this.conigurationService.updateCurrentStates({
|
|
796
|
+
configurableRamp: currentStateItem,
|
|
797
|
+
currentState: quote.currentState,
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
this.runtimeService
|
|
801
|
+
.init({ productId: productId, offeringId: offeringId })
|
|
802
|
+
.pipe(rxjs.tap(function (context) { return (_this.uiDefinition = context === null || context === void 0 ? void 0 : context.uiDefinition); }), rxjs.switchMap(function () { return _this.customize(productId); }), rxjs.switchMap(function () { return _this.conigurationService.configure(); }), rxjs.tap(function () { return _this.state$.next({ loading: false, failure: false }); }), rxjs.catchError(function (error) {
|
|
803
|
+
_this.messageService.add({
|
|
804
|
+
severity: 'error',
|
|
805
|
+
summary: error,
|
|
806
|
+
});
|
|
807
|
+
_this.state$.next({ loading: false, failure: true });
|
|
808
|
+
return rxjs.of();
|
|
809
|
+
}), rxjs.takeUntil(this.destroy$))
|
|
810
|
+
.subscribe();
|
|
811
|
+
};
|
|
812
|
+
ProductComponent.prototype.getLineItemId = function (quote, queryParams) {
|
|
813
|
+
if (core.EntityUtil.isPresent(queryParams['lineItemId'])) {
|
|
814
|
+
return queryParams['lineItemId'];
|
|
815
|
+
}
|
|
816
|
+
return quote.currentState
|
|
817
|
+
.filter(function (lineItem) { return lineItem.productId === queryParams['productId']; })
|
|
818
|
+
.map(function (lineItem) { return lineItem.id; })
|
|
819
|
+
.find(function (id) { return id; });
|
|
820
|
+
};
|
|
821
|
+
return ProductComponent;
|
|
822
|
+
}());
|
|
823
|
+
ProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductComponent, deps: [{ token: i1__namespace$2.ConfigurationRuntimeService }, { token: i1__namespace$2.ConfigurationService }, { token: i2__namespace$1.QuoteService }, { token: i1__namespace.ActivatedRoute }, { token: i4__namespace$1.MessageService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
824
|
+
ProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProductComponent, selector: "vl-flow-product", ngImport: i0__namespace, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [""], components: [{ type: i2__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label"] }, { type: i1__namespace$2.PreviewComponent, selector: "vl-cms-preview", inputs: ["modelId", "uiDefinition"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
825
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductComponent, decorators: [{
|
|
826
|
+
type: i0.Component,
|
|
827
|
+
args: [{
|
|
828
|
+
selector: 'vl-flow-product',
|
|
829
|
+
templateUrl: './product.component.html',
|
|
830
|
+
styleUrls: ['./product.component.scss'],
|
|
831
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
832
|
+
}]
|
|
833
|
+
}], ctorParameters: function () {
|
|
834
|
+
return [{ type: i1__namespace$2.ConfigurationRuntimeService }, { type: i1__namespace$2.ConfigurationService }, { type: i2__namespace$1.QuoteService }, { type: i1__namespace.ActivatedRoute }, { type: i4__namespace$1.MessageService }, { type: undefined, decorators: [{
|
|
835
|
+
type: i0.Optional
|
|
836
|
+
}, {
|
|
837
|
+
type: i0.Inject,
|
|
838
|
+
args: [FLOW_CUSTOMIZATION]
|
|
839
|
+
}] }];
|
|
840
|
+
} });
|
|
841
|
+
|
|
842
|
+
var ProductModule = /** @class */ (function () {
|
|
843
|
+
function ProductModule() {
|
|
844
|
+
}
|
|
845
|
+
return ProductModule;
|
|
846
|
+
}());
|
|
847
|
+
ProductModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
848
|
+
ProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModule, declarations: [ProductComponent], imports: [i3.CommonModule, i1$2.PreviewModule, i2.LoaderModule], exports: [ProductComponent] });
|
|
849
|
+
ProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModule, imports: [[i3.CommonModule, i1$2.PreviewModule, i2.LoaderModule]] });
|
|
850
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModule, decorators: [{
|
|
851
|
+
type: i0.NgModule,
|
|
852
|
+
args: [{
|
|
853
|
+
declarations: [ProductComponent],
|
|
854
|
+
imports: [i3.CommonModule, i1$2.PreviewModule, i2.LoaderModule],
|
|
855
|
+
exports: [ProductComponent],
|
|
856
|
+
}]
|
|
857
|
+
}] });
|
|
858
|
+
|
|
859
|
+
var RecordNotFoundComponent = /** @class */ (function () {
|
|
860
|
+
function RecordNotFoundComponent(router, route) {
|
|
861
|
+
var _a;
|
|
862
|
+
this.router = router;
|
|
863
|
+
this.route = route;
|
|
864
|
+
var navigation = this.router.getCurrentNavigation();
|
|
865
|
+
var state = ((navigation === null || navigation === void 0 ? void 0 : navigation.extras) || {}).state;
|
|
866
|
+
this.message = state === null || state === void 0 ? void 0 : state.message;
|
|
867
|
+
this.subMessage = ((_a = this.message) === null || _a === void 0 ? void 0 : _a.includes('/describe')) ? 'A potential problem with permissions' : '';
|
|
868
|
+
}
|
|
869
|
+
return RecordNotFoundComponent;
|
|
870
|
+
}());
|
|
871
|
+
RecordNotFoundComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundComponent, deps: [{ token: i1__namespace.Router }, { token: i1__namespace.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
872
|
+
RecordNotFoundComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RecordNotFoundComponent, selector: "vl-flow-record-not-found", ngImport: i0__namespace, template: "<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"message-wrapper\">\n <div class=\"msg\">\n <div *ngIf=\"message; else defaultMessage\" class=\"message-title\">\n <p>{{ message }}</p>\n\n <p *ngIf=\"subMessage\" class=\"message-title\">{{ subMessage }}</p>\n </div>\n\n <ng-template #defaultMessage>Record not found</ng-template>\n </div>\n </div>\n </div>\n</div>\n", directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
873
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundComponent, decorators: [{
|
|
874
|
+
type: i0.Component,
|
|
875
|
+
args: [{
|
|
876
|
+
selector: 'vl-flow-record-not-found',
|
|
877
|
+
templateUrl: './record-not-found.component.html',
|
|
878
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
879
|
+
}]
|
|
880
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: i1__namespace.ActivatedRoute }]; } });
|
|
881
|
+
|
|
882
|
+
var routes = [{ path: '', component: RecordNotFoundComponent }];
|
|
883
|
+
var RecordNotFoundModule = /** @class */ (function () {
|
|
884
|
+
function RecordNotFoundModule() {
|
|
885
|
+
}
|
|
886
|
+
return RecordNotFoundModule;
|
|
887
|
+
}());
|
|
888
|
+
RecordNotFoundModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
889
|
+
RecordNotFoundModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundModule, declarations: [RecordNotFoundComponent], imports: [i3.CommonModule, i1__namespace.RouterModule] });
|
|
890
|
+
RecordNotFoundModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundModule, imports: [[i3.CommonModule, i1.RouterModule.forChild(routes)]] });
|
|
891
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecordNotFoundModule, decorators: [{
|
|
892
|
+
type: i0.NgModule,
|
|
893
|
+
args: [{
|
|
894
|
+
declarations: [RecordNotFoundComponent],
|
|
895
|
+
imports: [i3.CommonModule, i1.RouterModule.forChild(routes)],
|
|
896
|
+
}]
|
|
897
|
+
}] });
|
|
898
|
+
|
|
899
|
+
var ContextResolver = /** @class */ (function () {
|
|
900
|
+
function ContextResolver(contextService, router, routerService) {
|
|
901
|
+
this.contextService = contextService;
|
|
902
|
+
this.router = router;
|
|
903
|
+
this.routerService = routerService;
|
|
904
|
+
}
|
|
905
|
+
ContextResolver.prototype.handleError = function (route, message) {
|
|
906
|
+
this.contextService.delete();
|
|
907
|
+
var parentUrl = this.routerService.getFlowRootPath(route);
|
|
908
|
+
return rxjs.from(this.router.navigate([parentUrl, '404'], { state: { message: message } }));
|
|
909
|
+
};
|
|
910
|
+
ContextResolver.prototype.resolve = function (route) {
|
|
911
|
+
var _this = this;
|
|
912
|
+
var queryParams = route.queryParams, data = route.data;
|
|
913
|
+
var uiDefinitionId = queryParams.uiDefinitionId;
|
|
914
|
+
var _a = data !== null && data !== void 0 ? data : {}, headerId = _a.headerId, mode = _a.mode;
|
|
915
|
+
var currentContext = this.contextService.resolve();
|
|
916
|
+
if (headerId && (currentContext === null || currentContext === void 0 ? void 0 : currentContext.headerId) === headerId) {
|
|
917
|
+
return rxjs.of(currentContext);
|
|
918
|
+
}
|
|
919
|
+
return this.contextService.create(headerId, mode).pipe(operators.tap(function (context) {
|
|
920
|
+
_this.contextService.update(Object.assign(Object.assign({}, context), { uiDefinitionId: uiDefinitionId, properties: Object.assign(Object.assign(Object.assign({}, currentContext === null || currentContext === void 0 ? void 0 : currentContext.properties), context.properties), (queryParams !== null && queryParams !== void 0 ? queryParams : {})) }));
|
|
921
|
+
}), operators.catchError(function (e) {
|
|
922
|
+
var message = e instanceof http.HttpErrorResponse ? e.error.message : e;
|
|
923
|
+
_this.handleError(route, message);
|
|
924
|
+
return rxjs.of(null);
|
|
925
|
+
}));
|
|
926
|
+
};
|
|
927
|
+
return ContextResolver;
|
|
928
|
+
}());
|
|
929
|
+
ContextResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextResolver, deps: [{ token: i2__namespace$1.ContextService }, { token: i1__namespace.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
930
|
+
ContextResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextResolver });
|
|
931
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextResolver, decorators: [{
|
|
932
|
+
type: i0.Injectable
|
|
933
|
+
}], ctorParameters: function () { return [{ type: i2__namespace$1.ContextService }, { type: i1__namespace.Router }, { type: RouterService }]; } });
|
|
934
|
+
|
|
935
|
+
var FlowResolver = /** @class */ (function () {
|
|
936
|
+
function FlowResolver(router, flowService, routerService) {
|
|
937
|
+
this.router = router;
|
|
938
|
+
this.flowService = flowService;
|
|
939
|
+
this.routerService = routerService;
|
|
940
|
+
}
|
|
941
|
+
FlowResolver.prototype.handleError = function (route, message, queryParams) {
|
|
942
|
+
var parentUrl = this.routerService.getFlowRootPath(route);
|
|
943
|
+
return this.router.navigate([parentUrl, '404'], {
|
|
944
|
+
queryParams: queryParams,
|
|
945
|
+
state: {
|
|
946
|
+
message: message,
|
|
947
|
+
},
|
|
948
|
+
});
|
|
949
|
+
};
|
|
950
|
+
FlowResolver.prototype.resolve = function (route) {
|
|
951
|
+
var _this = this;
|
|
952
|
+
var queryParams = route.queryParams;
|
|
953
|
+
var flowId = queryParams.flowId;
|
|
954
|
+
if (!flowId) {
|
|
955
|
+
return this.handleError(route);
|
|
956
|
+
}
|
|
957
|
+
return this.flowService.getFlow(flowId).pipe(operators.map(function (flow) {
|
|
958
|
+
if (!flow) {
|
|
959
|
+
return _this.handleError(route, "Flow with flowId=" + flowId + " is not defined");
|
|
960
|
+
}
|
|
961
|
+
var properties = flow.properties;
|
|
962
|
+
var entryPath = properties.entryPath;
|
|
963
|
+
var flowQueryParams = properties.queryParams;
|
|
964
|
+
var mergedParams = Object.assign(Object.assign({}, queryParams), flowQueryParams);
|
|
965
|
+
var parentUrl = _this.routerService.getFlowRootPath(route);
|
|
966
|
+
var entryUrl = String(entryPath !== null && entryPath !== void 0 ? entryPath : '')
|
|
967
|
+
.split('/')
|
|
968
|
+
.filter(Boolean);
|
|
969
|
+
return _this.router
|
|
970
|
+
.navigate(__spreadArray([parentUrl], __read(entryUrl)), {
|
|
971
|
+
queryParams: mergedParams,
|
|
972
|
+
replaceUrl: true,
|
|
973
|
+
})
|
|
974
|
+
.catch(function (e) {
|
|
975
|
+
var message = e instanceof http.HttpErrorResponse ? e.error.message : e;
|
|
976
|
+
return _this.handleError(route, message, mergedParams);
|
|
977
|
+
});
|
|
978
|
+
}));
|
|
979
|
+
};
|
|
980
|
+
return FlowResolver;
|
|
981
|
+
}());
|
|
982
|
+
FlowResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowResolver, deps: [{ token: i1__namespace.Router }, { token: FlowService }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
983
|
+
FlowResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowResolver });
|
|
984
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowResolver, decorators: [{
|
|
985
|
+
type: i0.Injectable
|
|
986
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: FlowService }, { type: RouterService }]; } });
|
|
987
|
+
|
|
988
|
+
var QuoteResolver = /** @class */ (function () {
|
|
989
|
+
function QuoteResolver(router, quoteService, routerService) {
|
|
990
|
+
this.router = router;
|
|
991
|
+
this.quoteService = quoteService;
|
|
992
|
+
this.routerService = routerService;
|
|
993
|
+
}
|
|
994
|
+
QuoteResolver.prototype.handleError = function (route, message) {
|
|
995
|
+
var parentUrl = this.routerService.getFlowRootPath(route);
|
|
996
|
+
return rxjs.from(this.router.navigate([parentUrl, '404'], { state: { message: message } }));
|
|
997
|
+
};
|
|
998
|
+
QuoteResolver.prototype.resolve = function (route) {
|
|
999
|
+
var _this = this;
|
|
1000
|
+
var headerId = route.data.headerId;
|
|
1001
|
+
var quote = this.quoteService.getQuote();
|
|
1002
|
+
if (quote && quote.quoteId === headerId) {
|
|
1003
|
+
return rxjs.of(true);
|
|
1004
|
+
}
|
|
1005
|
+
var queryParams = route.queryParams;
|
|
1006
|
+
return this.quoteService.init(headerId, queryParams).pipe(rxjs.catchError(function (e) {
|
|
1007
|
+
var message = e instanceof http.HttpErrorResponse ? e.error.message : e;
|
|
1008
|
+
return _this.handleError(route, message);
|
|
1009
|
+
}));
|
|
1010
|
+
};
|
|
1011
|
+
return QuoteResolver;
|
|
1012
|
+
}());
|
|
1013
|
+
QuoteResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteResolver, deps: [{ token: i1__namespace.Router }, { token: i2__namespace$1.QuoteService }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1014
|
+
QuoteResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteResolver });
|
|
1015
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteResolver, decorators: [{
|
|
1016
|
+
type: i0.Injectable
|
|
1017
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: i2__namespace$1.QuoteService }, { type: RouterService }]; } });
|
|
1018
|
+
|
|
1019
|
+
var rootRoute = {
|
|
1020
|
+
id: VELOCE_FLOW_ROOT_ROUTE,
|
|
1021
|
+
path: '',
|
|
1022
|
+
component: FlowComponent,
|
|
1023
|
+
canActivate: [RootGuard],
|
|
1024
|
+
canDeactivate: [RootGuard],
|
|
1025
|
+
children: [
|
|
1026
|
+
{
|
|
1027
|
+
path: 'flows',
|
|
1028
|
+
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
|
1029
|
+
resolve: { quote: FlowResolver },
|
|
1030
|
+
canActivate: [ContextGuard],
|
|
1031
|
+
children: [],
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
path: 'legacy',
|
|
1035
|
+
children: [
|
|
1036
|
+
{
|
|
1037
|
+
path: 'product',
|
|
1038
|
+
component: LegacyProductComponent,
|
|
1039
|
+
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
|
1040
|
+
resolve: { context: ContextResolver, quote: QuoteResolver },
|
|
1041
|
+
canActivate: [ContextGuard],
|
|
1042
|
+
},
|
|
1043
|
+
],
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
path: 'product',
|
|
1047
|
+
component: ProductComponent,
|
|
1048
|
+
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
|
1049
|
+
resolve: { context: ContextResolver, quote: QuoteResolver },
|
|
1050
|
+
canActivate: [ContextGuard],
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
path: 'debug',
|
|
1054
|
+
loadChildren: function () { return DebugModule; },
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
path: '404',
|
|
1058
|
+
loadChildren: function () { return RecordNotFoundModule; },
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
};
|
|
1062
|
+
var FlowRoutingModule = /** @class */ (function () {
|
|
1063
|
+
function FlowRoutingModule() {
|
|
1064
|
+
}
|
|
1065
|
+
return FlowRoutingModule;
|
|
1066
|
+
}());
|
|
1067
|
+
FlowRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1068
|
+
FlowRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowRoutingModule, imports: [i1__namespace.RouterModule, ProductModule, LegacyProductModule], exports: [i1.RouterModule] });
|
|
1069
|
+
FlowRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowRoutingModule, providers: [RouterService, RootGuard, ContextGuard, ContextResolver, FlowResolver, QuoteResolver], imports: [[i1.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule], i1.RouterModule] });
|
|
1070
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowRoutingModule, decorators: [{
|
|
1071
|
+
type: i0.NgModule,
|
|
1072
|
+
args: [{
|
|
1073
|
+
imports: [i1.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule],
|
|
1074
|
+
exports: [i1.RouterModule],
|
|
1075
|
+
providers: [RouterService, RootGuard, ContextGuard, ContextResolver, FlowResolver, QuoteResolver],
|
|
1076
|
+
}]
|
|
1077
|
+
}] });
|
|
1078
|
+
|
|
1079
|
+
var FlowModule = /** @class */ (function () {
|
|
1080
|
+
function FlowModule() {
|
|
1081
|
+
}
|
|
1082
|
+
return FlowModule;
|
|
1083
|
+
}());
|
|
1084
|
+
FlowModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1085
|
+
FlowModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowModule, declarations: [FlowComponent], imports: [i3.CommonModule, FlowRoutingModule, i1$1.ApiModule, i1$2.LauncherModule, i2.LoaderModule] });
|
|
1086
|
+
FlowModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowModule, providers: [FlowService, i2$1.ContextService], imports: [[i3.CommonModule, FlowRoutingModule, i1$1.ApiModule, i1$2.LauncherModule, i2.LoaderModule]] });
|
|
1087
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlowModule, decorators: [{
|
|
1088
|
+
type: i0.NgModule,
|
|
1089
|
+
args: [{
|
|
1090
|
+
declarations: [FlowComponent],
|
|
1091
|
+
imports: [i3.CommonModule, FlowRoutingModule, i1$1.ApiModule, i1$2.LauncherModule, i2.LoaderModule],
|
|
1092
|
+
providers: [FlowService, i2$1.ContextService],
|
|
1093
|
+
}]
|
|
1094
|
+
}] });
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Generated bundle index. Do not edit.
|
|
1098
|
+
*/
|
|
1099
|
+
|
|
1100
|
+
exports.ContextGuard = ContextGuard;
|
|
1101
|
+
exports.FLOW_CUSTOMIZATION = FLOW_CUSTOMIZATION;
|
|
1102
|
+
exports.FlowModule = FlowModule;
|
|
1103
|
+
exports.FlowService = FlowService;
|
|
1104
|
+
exports.VELOCE_FLOW_ROOT_ROUTE = VELOCE_FLOW_ROOT_ROUTE;
|
|
1105
|
+
|
|
1106
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
1107
|
|
|
12
1108
|
}));
|
|
13
1109
|
//# sourceMappingURL=veloce-sdk.umd.js.map
|