@colijnit/transaction 1.9.28 → 12.0.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.
- package/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +4 -0
- package/app/component/common/icon/icon.component.d.ts +1 -2
- package/app/service/ione-connector-adapter.service.d.ts +1 -1
- package/bundles/colijnit-transaction.umd.js +762 -809
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +14 -14
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout/checkout.component.js +23 -25
- package/esm2015/app/component/checkout/checkout-login/checkout-login.component.js +18 -27
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +26 -49
- package/esm2015/app/component/checkout/checkout-overview-block/checkout-overview-block.component.js +17 -24
- package/esm2015/app/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +19 -23
- package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +48 -42
- package/esm2015/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +20 -21
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +26 -35
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +18 -24
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +16 -21
- package/esm2015/app/component/checkout/ione-checkout.component.js +27 -32
- package/esm2015/app/component/checkout/ione-checkout.module.js +55 -58
- package/esm2015/app/component/checkout/retail-transaction-checkout/retail-transaction-checkout.component.js +17 -17
- package/esm2015/app/component/common/icon/icon.component.js +17 -19
- package/esm2015/app/component/common/image-display/image-display.component.js +19 -36
- package/esm2015/app/component/common/no-image-display/no-image-display.component.js +14 -20
- package/esm2015/app/component/core/core.module.js +32 -34
- package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +21 -26
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +31 -46
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +51 -52
- package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +29 -47
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +26 -37
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +28 -37
- package/esm2015/app/component/shopping-cart/stock-status-indicator/stock-status-indicator.component.js +13 -17
- package/esm2015/app/model/business-object.js +6 -6
- package/esm2015/app/pipe/append.pipe.js +6 -8
- package/esm2015/app/pipe/co-currency.pipe.js +8 -11
- package/esm2015/app/pipe/date-duration.pipe.js +10 -10
- package/esm2015/app/pipe/delivery-time.pipe.js +10 -10
- package/esm2015/app/pipe/localize.pipe.js +13 -16
- package/esm2015/app/pipe/safe-style-pipe.js +12 -12
- package/esm2015/app/service/dictionary.service.js +10 -10
- package/esm2015/app/service/ione-connector-adapter.service.js +11 -11
- package/esm2015/app/service/options.service.js +8 -8
- package/esm2015/app/service/transaction-event.service.js +6 -8
- package/esm2015/app/service/transaction.service.js +17 -16
- package/esm2015/assets/dictionary/text.properties.js +13 -5
- package/esm2015/colijnit-transaction.js +15 -15
- package/esm2015/factory/decorators/complex-field.decorator.js +2 -2
- package/fesm2015/colijnit-transaction.js +677 -775
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +32 -20
- package/bundles/colijnit-transaction.umd.min.js +0 -16
- package/bundles/colijnit-transaction.umd.min.js.map +0 -1
- package/enum/icon.enum.d.ts +0 -281
- package/esm2015/enum/icon.enum.js +0 -283
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/line-operation-response.bo'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/utils/array-utils'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/line-operation-status.bo'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/corecomponents_v9'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/platform-browser/animations'), require('@angular/flex-layout'), require('@angular/material/stepper'), require('@angular/common'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/enum/sort-direction'), require('@colijnit/transactionapi/build/enum/sort-type.enum'), require('@colijnit/transactionapi/build/utils/sort-utils'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/line-operation-response.bo', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/utils/array-utils', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/line-operation-status.bo', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/corecomponents_v9', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/platform-browser/animations', '@angular/flex-layout', '@angular/material/stepper', '@angular/common', '@angular/platform-browser', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/enum/sort-direction', '@colijnit/transactionapi/build/enum/sort-type.enum', '@colijnit/transactionapi/build/utils/sort-utils', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.rxjs, global.options, global.customerFullObject_bo, global.transactionInfoResponse_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.articleFullObject, global.lineOperationResponse_bo, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.arrayUtils, global.setTransactionDeliveryOptionsRequest_bo, global.transactionTotal_bo, global.transactionLineType_enum, global.lineOperationStatus_bo, global.transactionInfo_bo, global.pendingReasonType_enum, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.addressType_enum, global.genderType_enum, global.businessObjectUtils, global.corecomponents_v9, global.functionUtils, global.address_bo, global.ng.platformBrowser.animations, global.ng.flexLayout, global.ng.material.stepper, global.ng.common, global.ng.platformBrowser, global.resolvePendingReasonRequest_bo, global.sortDirection, global.sortType_enum, global.sortUtils, global.stockStatus_enum));
|
|
5
|
-
}(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, articleFullObject, lineOperationResponse_bo, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils, corecomponents_v9, functionUtils, address_bo, animations, flexLayout, stepper, common, platformBrowser, resolvePendingReasonRequest_bo, sortDirection, sortType_enum, sortUtils, stockStatus_enum) { 'use strict';
|
|
5
|
+
})(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, articleFullObject, lineOperationResponse_bo, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils, corecomponents_v9, functionUtils, address_bo, animations, flexLayout, stepper, common, platformBrowser, resolvePendingReasonRequest_bo, sortDirection, sortType_enum, sortUtils, stockStatus_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -45,11 +43,13 @@
|
|
|
45
43
|
extendStatics = Object.setPrototypeOf ||
|
|
46
44
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47
45
|
function (d, b) { for (var p in b)
|
|
48
|
-
if (
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
49
47
|
d[p] = b[p]; };
|
|
50
48
|
return extendStatics(d, b);
|
|
51
49
|
};
|
|
52
50
|
function __extends(d, b) {
|
|
51
|
+
if (typeof b !== "function" && b !== null)
|
|
52
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53
53
|
extendStatics(d, b);
|
|
54
54
|
function __() { this.constructor = d; }
|
|
55
55
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -183,15 +183,19 @@
|
|
|
183
183
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
187
|
+
if (k2 === undefined)
|
|
188
|
+
k2 = k;
|
|
189
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
190
|
+
}) : (function (o, m, k, k2) {
|
|
187
191
|
if (k2 === undefined)
|
|
188
192
|
k2 = k;
|
|
189
193
|
o[k2] = m[k];
|
|
190
|
-
}
|
|
191
|
-
function __exportStar(m,
|
|
194
|
+
});
|
|
195
|
+
function __exportStar(m, o) {
|
|
192
196
|
for (var p in m)
|
|
193
|
-
if (p !== "default" && !
|
|
194
|
-
|
|
197
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
198
|
+
__createBinding(o, m, p);
|
|
195
199
|
}
|
|
196
200
|
function __values(o) {
|
|
197
201
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -231,11 +235,13 @@
|
|
|
231
235
|
}
|
|
232
236
|
return ar;
|
|
233
237
|
}
|
|
238
|
+
/** @deprecated */
|
|
234
239
|
function __spread() {
|
|
235
240
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
236
241
|
ar = ar.concat(__read(arguments[i]));
|
|
237
242
|
return ar;
|
|
238
243
|
}
|
|
244
|
+
/** @deprecated */
|
|
239
245
|
function __spreadArrays() {
|
|
240
246
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
241
247
|
s += arguments[i].length;
|
|
@@ -244,7 +250,17 @@
|
|
|
244
250
|
r[k] = a[j];
|
|
245
251
|
return r;
|
|
246
252
|
}
|
|
247
|
-
|
|
253
|
+
function __spreadArray(to, from, pack) {
|
|
254
|
+
if (pack || arguments.length === 2)
|
|
255
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
256
|
+
if (ar || !(i in from)) {
|
|
257
|
+
if (!ar)
|
|
258
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
259
|
+
ar[i] = from[i];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
263
|
+
}
|
|
248
264
|
function __await(v) {
|
|
249
265
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
250
266
|
}
|
|
@@ -290,35 +306,43 @@
|
|
|
290
306
|
return cooked;
|
|
291
307
|
}
|
|
292
308
|
;
|
|
309
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
310
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
311
|
+
}) : function (o, v) {
|
|
312
|
+
o["default"] = v;
|
|
313
|
+
};
|
|
293
314
|
function __importStar(mod) {
|
|
294
315
|
if (mod && mod.__esModule)
|
|
295
316
|
return mod;
|
|
296
317
|
var result = {};
|
|
297
318
|
if (mod != null)
|
|
298
319
|
for (var k in mod)
|
|
299
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
300
|
-
result
|
|
301
|
-
result
|
|
320
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
321
|
+
__createBinding(result, mod, k);
|
|
322
|
+
__setModuleDefault(result, mod);
|
|
302
323
|
return result;
|
|
303
324
|
}
|
|
304
325
|
function __importDefault(mod) {
|
|
305
326
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
306
327
|
}
|
|
307
|
-
function __classPrivateFieldGet(receiver,
|
|
308
|
-
if (!
|
|
309
|
-
throw new TypeError("
|
|
310
|
-
|
|
311
|
-
|
|
328
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
329
|
+
if (kind === "a" && !f)
|
|
330
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
331
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
332
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
333
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
312
334
|
}
|
|
313
|
-
function __classPrivateFieldSet(receiver,
|
|
314
|
-
if (
|
|
315
|
-
throw new TypeError("
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
335
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
336
|
+
if (kind === "m")
|
|
337
|
+
throw new TypeError("Private method is not writable");
|
|
338
|
+
if (kind === "a" && !f)
|
|
339
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
340
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
341
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
342
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
319
343
|
}
|
|
320
344
|
|
|
321
|
-
|
|
345
|
+
var OptionsService = /** @class */ (function () {
|
|
322
346
|
function OptionsService() {
|
|
323
347
|
this.optionsLoaded = new rxjs.BehaviorSubject(false);
|
|
324
348
|
}
|
|
@@ -329,7 +353,7 @@
|
|
|
329
353
|
set: function (value) {
|
|
330
354
|
this._options = value;
|
|
331
355
|
},
|
|
332
|
-
enumerable:
|
|
356
|
+
enumerable: false,
|
|
333
357
|
configurable: true
|
|
334
358
|
});
|
|
335
359
|
OptionsService.prototype.createSettingsFromObject = function (obj) {
|
|
@@ -417,9 +441,10 @@
|
|
|
417
441
|
};
|
|
418
442
|
return OptionsService;
|
|
419
443
|
}());
|
|
420
|
-
|
|
421
|
-
i0.Injectable
|
|
422
|
-
]
|
|
444
|
+
OptionsService.decorators = [
|
|
445
|
+
{ type: i0.Injectable }
|
|
446
|
+
];
|
|
447
|
+
OptionsService.ctorParameters = function () { return []; };
|
|
423
448
|
|
|
424
449
|
var PROP_META_KEY$3 = "complexField";
|
|
425
450
|
/**
|
|
@@ -446,7 +471,7 @@
|
|
|
446
471
|
// warn the programmer if given type was undefined; it's probably an import order glitch that caused this, because decorators seem
|
|
447
472
|
// to be immediately processed when a class is first imported
|
|
448
473
|
if (!type) {
|
|
449
|
-
//
|
|
474
|
+
// eslint-disable-next-line no-console
|
|
450
475
|
console.warn("@ComplexField(type): type was UNDEFINED. Called on prop (" + objectUtils.ObjectUtils.GetClassName(target) + ", " + propertyKey + "). " +
|
|
451
476
|
"Class will not properly serialize and deserialize now. We've always been able to fix this by CHANGING IMPORT ORDERS " +
|
|
452
477
|
"where both classes and their dependencies are used, e.g. factory, repository or models..");
|
|
@@ -932,7 +957,7 @@
|
|
|
932
957
|
var mapKeys = mapProperty_decorator.MapPropertyDecorator.GetMapProperty(_this, key).split(",");
|
|
933
958
|
var len = mapKeys.length;
|
|
934
959
|
for (var i = 0; i < len; i++) {
|
|
935
|
-
//
|
|
960
|
+
// eslint-disable-next-line
|
|
936
961
|
var mapKey = mapKeys[i].trim();
|
|
937
962
|
var objProp = rawData[mapKey];
|
|
938
963
|
var decorated = false;
|
|
@@ -947,13 +972,13 @@
|
|
|
947
972
|
}
|
|
948
973
|
if (complexArray_decorator.ComplexArrayDecorator.IsComplexArray(_this, key)) {
|
|
949
974
|
var arrayClass = complexArray_decorator.ComplexArrayDecorator.GetComplexArrayType(_this, key);
|
|
950
|
-
//
|
|
975
|
+
// eslint-disable-next-line
|
|
951
976
|
var origArray = _this[key];
|
|
952
|
-
//
|
|
977
|
+
// eslint-disable-next-line
|
|
953
978
|
var newArray = [];
|
|
954
|
-
//
|
|
979
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
955
980
|
for (var j = 0; j < origArray.length; j++) {
|
|
956
|
-
//
|
|
981
|
+
// eslint-disable-next-line
|
|
957
982
|
var item = new arrayClass(origArray[j]);
|
|
958
983
|
newArray.push(item);
|
|
959
984
|
}
|
|
@@ -1100,7 +1125,7 @@
|
|
|
1100
1125
|
return BusinessObjectFactory;
|
|
1101
1126
|
}());
|
|
1102
1127
|
|
|
1103
|
-
|
|
1128
|
+
var IOneConnectorAdapterService = /** @class */ (function () {
|
|
1104
1129
|
function IOneConnectorAdapterService() {
|
|
1105
1130
|
this._boFactory = new BusinessObjectFactory();
|
|
1106
1131
|
this._countryList = [];
|
|
@@ -1277,10 +1302,10 @@
|
|
|
1277
1302
|
});
|
|
1278
1303
|
});
|
|
1279
1304
|
};
|
|
1280
|
-
IOneConnectorAdapterService.prototype.saveTransaction = function (uuid
|
|
1305
|
+
IOneConnectorAdapterService.prototype.saveTransaction = function (uuid) {
|
|
1281
1306
|
var _this = this;
|
|
1282
1307
|
return new Promise(function (resolve, reject) {
|
|
1283
|
-
return _this.connector.saveTransaction(uuid
|
|
1308
|
+
return _this.connector.saveTransaction(uuid).then(function (result) {
|
|
1284
1309
|
if (result.validationResult && result.validationResult.success) {
|
|
1285
1310
|
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
1286
1311
|
}
|
|
@@ -1412,7 +1437,7 @@
|
|
|
1412
1437
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1413
1438
|
return _this.connector.addRelationToTransaction(uuid, relationId).then(function (result) {
|
|
1414
1439
|
if (result.validationResult && result.validationResult.success) {
|
|
1415
|
-
resolve(result.
|
|
1440
|
+
resolve(result.validationResult.success);
|
|
1416
1441
|
}
|
|
1417
1442
|
else {
|
|
1418
1443
|
reject(result.validationMessagesAsString);
|
|
@@ -1633,11 +1658,12 @@
|
|
|
1633
1658
|
};
|
|
1634
1659
|
return IOneConnectorAdapterService;
|
|
1635
1660
|
}());
|
|
1636
|
-
|
|
1637
|
-
i0.Injectable
|
|
1638
|
-
]
|
|
1661
|
+
IOneConnectorAdapterService.decorators = [
|
|
1662
|
+
{ type: i0.Injectable }
|
|
1663
|
+
];
|
|
1664
|
+
IOneConnectorAdapterService.ctorParameters = function () { return []; };
|
|
1639
1665
|
|
|
1640
|
-
|
|
1666
|
+
var TransactionService = /** @class */ (function () {
|
|
1641
1667
|
function TransactionService(_connector) {
|
|
1642
1668
|
this._connector = _connector;
|
|
1643
1669
|
this.transactionUpdated = new i0.EventEmitter();
|
|
@@ -1659,7 +1685,7 @@
|
|
|
1659
1685
|
this._currentLines = value;
|
|
1660
1686
|
this.articleAmount = arrayUtils.ArrayUtils.FindAll(this._currentLines, function (line) { return line.isArticle; }).length;
|
|
1661
1687
|
},
|
|
1662
|
-
enumerable:
|
|
1688
|
+
enumerable: false,
|
|
1663
1689
|
configurable: true
|
|
1664
1690
|
});
|
|
1665
1691
|
Object.defineProperty(TransactionService.prototype, "currentTotals", {
|
|
@@ -1669,21 +1695,21 @@
|
|
|
1669
1695
|
set: function (value) {
|
|
1670
1696
|
this._currentTotals = value;
|
|
1671
1697
|
},
|
|
1672
|
-
enumerable:
|
|
1698
|
+
enumerable: false,
|
|
1673
1699
|
configurable: true
|
|
1674
1700
|
});
|
|
1675
1701
|
Object.defineProperty(TransactionService.prototype, "currentRelation", {
|
|
1676
1702
|
get: function () {
|
|
1677
1703
|
return this._currentRelation;
|
|
1678
1704
|
},
|
|
1679
|
-
enumerable:
|
|
1705
|
+
enumerable: false,
|
|
1680
1706
|
configurable: true
|
|
1681
1707
|
});
|
|
1682
1708
|
Object.defineProperty(TransactionService.prototype, "currentTransaction", {
|
|
1683
1709
|
get: function () {
|
|
1684
1710
|
return this._currentTransaction;
|
|
1685
1711
|
},
|
|
1686
|
-
enumerable:
|
|
1712
|
+
enumerable: false,
|
|
1687
1713
|
configurable: true
|
|
1688
1714
|
});
|
|
1689
1715
|
Object.defineProperty(TransactionService.prototype, "currentLineOperationStatuses", {
|
|
@@ -1693,7 +1719,7 @@
|
|
|
1693
1719
|
set: function (values) {
|
|
1694
1720
|
this._currentLineOperationStatuses = values;
|
|
1695
1721
|
},
|
|
1696
|
-
enumerable:
|
|
1722
|
+
enumerable: false,
|
|
1697
1723
|
configurable: true
|
|
1698
1724
|
});
|
|
1699
1725
|
Object.defineProperty(TransactionService.prototype, "currentLineOperationStatus", {
|
|
@@ -1705,7 +1731,7 @@
|
|
|
1705
1731
|
set: function (value) {
|
|
1706
1732
|
this._currentLineOperationStatus = value;
|
|
1707
1733
|
},
|
|
1708
|
-
enumerable:
|
|
1734
|
+
enumerable: false,
|
|
1709
1735
|
configurable: true
|
|
1710
1736
|
});
|
|
1711
1737
|
TransactionService.prototype.getArticleFullObject = function (goodId) {
|
|
@@ -1912,8 +1938,8 @@
|
|
|
1912
1938
|
_this._connector.getTransactionByNrAndKind(kind, transactionNr)
|
|
1913
1939
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1914
1940
|
return __generator(this, function (_a) {
|
|
1941
|
+
this._rememberCurrentTransaction(response);
|
|
1915
1942
|
if (response.isSuccess) {
|
|
1916
|
-
this._rememberCurrentTransaction(response);
|
|
1917
1943
|
resolve(true);
|
|
1918
1944
|
}
|
|
1919
1945
|
else {
|
|
@@ -1933,7 +1959,7 @@
|
|
|
1933
1959
|
var response;
|
|
1934
1960
|
return __generator(this, function (_a) {
|
|
1935
1961
|
switch (_a.label) {
|
|
1936
|
-
case 0: return [4 /*yield*/, this._connector.saveTransaction(this.currentTransaction.uuid
|
|
1962
|
+
case 0: return [4 /*yield*/, this._connector.saveTransaction(this.currentTransaction.uuid)];
|
|
1937
1963
|
case 1:
|
|
1938
1964
|
response = _a.sent();
|
|
1939
1965
|
if (response.isSuccess) {
|
|
@@ -2144,7 +2170,7 @@
|
|
|
2144
2170
|
reject(error);
|
|
2145
2171
|
})
|
|
2146
2172
|
.catch(function (reason) {
|
|
2147
|
-
resolve();
|
|
2173
|
+
resolve(null);
|
|
2148
2174
|
});
|
|
2149
2175
|
})];
|
|
2150
2176
|
});
|
|
@@ -2169,7 +2195,7 @@
|
|
|
2169
2195
|
});
|
|
2170
2196
|
}); })
|
|
2171
2197
|
.catch(function (reason) {
|
|
2172
|
-
resolve();
|
|
2198
|
+
resolve(null);
|
|
2173
2199
|
});
|
|
2174
2200
|
})];
|
|
2175
2201
|
});
|
|
@@ -2195,7 +2221,7 @@
|
|
|
2195
2221
|
});
|
|
2196
2222
|
}); })
|
|
2197
2223
|
.catch(function (reason) {
|
|
2198
|
-
resolve();
|
|
2224
|
+
resolve(null);
|
|
2199
2225
|
});
|
|
2200
2226
|
})];
|
|
2201
2227
|
});
|
|
@@ -2217,7 +2243,7 @@
|
|
|
2217
2243
|
return [2 /*return*/];
|
|
2218
2244
|
});
|
|
2219
2245
|
}); }).catch(function (reason) {
|
|
2220
|
-
resolve();
|
|
2246
|
+
resolve(null);
|
|
2221
2247
|
});
|
|
2222
2248
|
})];
|
|
2223
2249
|
});
|
|
@@ -2305,10 +2331,12 @@
|
|
|
2305
2331
|
};
|
|
2306
2332
|
return TransactionService;
|
|
2307
2333
|
}());
|
|
2308
|
-
|
|
2309
|
-
i0.Injectable
|
|
2310
|
-
|
|
2311
|
-
|
|
2334
|
+
TransactionService.decorators = [
|
|
2335
|
+
{ type: i0.Injectable }
|
|
2336
|
+
];
|
|
2337
|
+
TransactionService.ctorParameters = function () { return [
|
|
2338
|
+
{ type: IOneConnectorAdapterService }
|
|
2339
|
+
]; };
|
|
2312
2340
|
|
|
2313
2341
|
var LanguageCode;
|
|
2314
2342
|
(function (LanguageCode) {
|
|
@@ -2407,6 +2435,7 @@
|
|
|
2407
2435
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
2408
2436
|
"ARTICLE_NR": "Artikelnummer",
|
|
2409
2437
|
"ASSEMBLY_COSTS": "Montagekosten",
|
|
2438
|
+
"ASSEMBLY_DATE": "Montagedatum",
|
|
2410
2439
|
"AMOUNT": "Aantal",
|
|
2411
2440
|
"BACK": "Terug",
|
|
2412
2441
|
"CANCEL": "Annuleren",
|
|
@@ -2433,18 +2462,20 @@
|
|
|
2433
2462
|
"DELIVERY_ADDRESS_ADD": "Bezorgadres toevoegen",
|
|
2434
2463
|
"DELIVERY_ADDRESS_CHANGE": "Bezorgadres wijzigen",
|
|
2435
2464
|
"DELIVERY_COSTS": "Bezorgkosten",
|
|
2436
|
-
"DELIVERY_DATE": "
|
|
2465
|
+
"DELIVERY_DATE": "Leverdatum",
|
|
2466
|
+
"DELIVERY_DATE_FINAL": "Definitieve leverdatum",
|
|
2437
2467
|
"DELIVERY_DIRECT": "Direct leverbaar",
|
|
2438
2468
|
"DELIVERY_LOCATION": "Bezorgingslocatie",
|
|
2439
|
-
"DELIVERY_OPTIONS": "
|
|
2440
|
-
"DELIVERY_METHOD2": "
|
|
2441
|
-
"DELIVERY_MOMENT": "
|
|
2469
|
+
"DELIVERY_OPTIONS": "Leveropties",
|
|
2470
|
+
"DELIVERY_METHOD2": "Levermethode",
|
|
2471
|
+
"DELIVERY_MOMENT": "Levermoment",
|
|
2442
2472
|
"DELIVERY_OPTARTICLE_NRIONS": "Bezorgopties",
|
|
2443
2473
|
"DELIVERY_TIME_PERIOD": "Levertijd",
|
|
2444
2474
|
"DESCRIPTION": "Omschrijving",
|
|
2445
2475
|
"DISCOUNT": "Korting",
|
|
2446
2476
|
"DISCOUNT_AMOUNT": "Kortingsbedrag",
|
|
2447
2477
|
"DISCOUNT_PERCENTAGE": "Kortings %",
|
|
2478
|
+
"DROPSHIPMENT": "Dropshipment",
|
|
2448
2479
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2449
2480
|
"EXISTING_CUSTOMERS": "Bestaande klanten",
|
|
2450
2481
|
"FEMALE": "Vrouw",
|
|
@@ -2518,6 +2549,7 @@
|
|
|
2518
2549
|
"SURCHARGE_AMOUNT": "Toeslag",
|
|
2519
2550
|
"STREET": "Straatnaam",
|
|
2520
2551
|
"TOTAL_GROSS": "Totaal bruto",
|
|
2552
|
+
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
2521
2553
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
2522
2554
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
2523
2555
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
@@ -2544,6 +2576,7 @@
|
|
|
2544
2576
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
2545
2577
|
"ARTICLE_NR": "Article number",
|
|
2546
2578
|
"ASSEMBLY_COSTS": "Assembly costs",
|
|
2579
|
+
"ASSEMBLY_DATE": "Assembly date",
|
|
2547
2580
|
"AMOUNT": "Amount",
|
|
2548
2581
|
"BACK": "Back",
|
|
2549
2582
|
"CANCEL": "Cancel",
|
|
@@ -2571,6 +2604,7 @@
|
|
|
2571
2604
|
"DELIVERY_ADDRESS_CHANGE": "Change delivery address",
|
|
2572
2605
|
"DELIVERY_COSTS": "Delivery costs",
|
|
2573
2606
|
"DELIVERY_DATE": "Delivery date",
|
|
2607
|
+
"DELIVERY_DATE_FINAL": "Final delivery date",
|
|
2574
2608
|
"DELIVERY_DIRECT": "Direct delivery",
|
|
2575
2609
|
"DELIVERY_LOCATION": "Delivery location",
|
|
2576
2610
|
"DELIVERY_OPTIONS": "Delivery options",
|
|
@@ -2582,6 +2616,7 @@
|
|
|
2582
2616
|
"DISCOUNT": "Discount",
|
|
2583
2617
|
"DISCOUNT_AMOUNT": "Discount amount",
|
|
2584
2618
|
"DISCOUNT_PERCENTAGE": "Discount %",
|
|
2619
|
+
"DROPSHIPMENT": "Dropshipment",
|
|
2585
2620
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2586
2621
|
"EXISTING_CUSTOMERS": "Existing customers",
|
|
2587
2622
|
"FEMALE": "Female",
|
|
@@ -2647,6 +2682,7 @@
|
|
|
2647
2682
|
"SURCHARGE_AMOUNT": "Surcharge",
|
|
2648
2683
|
"STREET": "Streetname",
|
|
2649
2684
|
"TOTAL_GROSS": "Gross total",
|
|
2685
|
+
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
2650
2686
|
"TRANSACTION_DISCOUNT": "Total transaction discount",
|
|
2651
2687
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. discount",
|
|
2652
2688
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
@@ -2664,7 +2700,7 @@
|
|
|
2664
2700
|
}());
|
|
2665
2701
|
|
|
2666
2702
|
// The localization service, providing peers with text translation functionality.
|
|
2667
|
-
|
|
2703
|
+
var DictionaryService = /** @class */ (function () {
|
|
2668
2704
|
function DictionaryService() {
|
|
2669
2705
|
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
2670
2706
|
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
@@ -2676,7 +2712,7 @@
|
|
|
2676
2712
|
get: function () {
|
|
2677
2713
|
return this._language;
|
|
2678
2714
|
},
|
|
2679
|
-
enumerable:
|
|
2715
|
+
enumerable: false,
|
|
2680
2716
|
configurable: true
|
|
2681
2717
|
});
|
|
2682
2718
|
Object.defineProperty(DictionaryService.prototype, "rootUrl", {
|
|
@@ -2684,7 +2720,7 @@
|
|
|
2684
2720
|
this._rootUrl = value;
|
|
2685
2721
|
this._dictBasePath = this._rootUrl + "/" + this.dictionaryUrl;
|
|
2686
2722
|
},
|
|
2687
|
-
enumerable:
|
|
2723
|
+
enumerable: false,
|
|
2688
2724
|
configurable: true
|
|
2689
2725
|
});
|
|
2690
2726
|
// Loads the dictionary for given language in memory.
|
|
@@ -2695,9 +2731,9 @@
|
|
|
2695
2731
|
this._language = language || LanguageCode.Dutch;
|
|
2696
2732
|
if (!this._dictionaries.has(this._language)) {
|
|
2697
2733
|
dictionary = new Dictionary();
|
|
2698
|
-
//
|
|
2734
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2699
2735
|
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
2700
|
-
//
|
|
2736
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2701
2737
|
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
2702
2738
|
}
|
|
2703
2739
|
}
|
|
@@ -2730,17 +2766,18 @@
|
|
|
2730
2766
|
text = text.charAt(0).toLowerCase() + text.slice(1);
|
|
2731
2767
|
}
|
|
2732
2768
|
if (replacementTexts.length > 0) {
|
|
2733
|
-
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils,
|
|
2769
|
+
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
|
|
2734
2770
|
}
|
|
2735
2771
|
return text;
|
|
2736
2772
|
};
|
|
2737
2773
|
return DictionaryService;
|
|
2738
2774
|
}());
|
|
2739
|
-
|
|
2740
|
-
i0.Injectable
|
|
2741
|
-
]
|
|
2775
|
+
DictionaryService.decorators = [
|
|
2776
|
+
{ type: i0.Injectable }
|
|
2777
|
+
];
|
|
2778
|
+
DictionaryService.ctorParameters = function () { return []; };
|
|
2742
2779
|
|
|
2743
|
-
|
|
2780
|
+
var TransactionEventService = /** @class */ (function () {
|
|
2744
2781
|
function TransactionEventService() {
|
|
2745
2782
|
this.addToCartBySku = new rxjs.Subject();
|
|
2746
2783
|
this.addToCartBySelectorResult = new rxjs.Subject();
|
|
@@ -2751,10 +2788,10 @@
|
|
|
2751
2788
|
}
|
|
2752
2789
|
return TransactionEventService;
|
|
2753
2790
|
}());
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
i0.Injectable
|
|
2757
|
-
]
|
|
2791
|
+
TransactionEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
2792
|
+
TransactionEventService.decorators = [
|
|
2793
|
+
{ type: i0.Injectable, args: [{ providedIn: "root" },] }
|
|
2794
|
+
];
|
|
2758
2795
|
|
|
2759
2796
|
var CheckoutSteps;
|
|
2760
2797
|
(function (CheckoutSteps) {
|
|
@@ -2766,7 +2803,7 @@
|
|
|
2766
2803
|
CheckoutSteps[CheckoutSteps["Printing"] = 4] = "Printing";
|
|
2767
2804
|
})(CheckoutSteps || (CheckoutSteps = {}));
|
|
2768
2805
|
|
|
2769
|
-
|
|
2806
|
+
var CheckoutOverviewBlockComponent = /** @class */ (function () {
|
|
2770
2807
|
function CheckoutOverviewBlockComponent() {
|
|
2771
2808
|
this.sequenceNr = 1;
|
|
2772
2809
|
this.startInEdit = false;
|
|
@@ -2791,27 +2828,22 @@
|
|
|
2791
2828
|
};
|
|
2792
2829
|
return CheckoutOverviewBlockComponent;
|
|
2793
2830
|
}());
|
|
2794
|
-
|
|
2795
|
-
i0.
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
i0.
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
selector: "checkout-overview-block",
|
|
2809
|
-
template: "\n <div class=\"overview-wrapper\" fxLayout=\"column\" fxLayoutGap=\"0px\">\n <div class=\"overview-header\" fxLayout=\"row\">\n </div>\n <div class=\"overview-body\" fxLayout=\"row\" fxLayoutGap=\"20px\">\n <ng-content select=\"[edit-mode-content]\"></ng-content>\n </div>\n </div>\n ",
|
|
2810
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]
|
|
2811
|
-
})
|
|
2812
|
-
], exports.ɵd);
|
|
2831
|
+
CheckoutOverviewBlockComponent.decorators = [
|
|
2832
|
+
{ type: i0.Component, args: [{
|
|
2833
|
+
selector: "checkout-overview-block",
|
|
2834
|
+
template: "\n <div class=\"overview-wrapper\" fxLayout=\"column\" fxLayoutGap=\"0px\">\n <div class=\"overview-header\" fxLayout=\"row\">\n </div>\n <div class=\"overview-body\" fxLayout=\"row\" fxLayoutGap=\"20px\">\n <ng-content select=\"[edit-mode-content]\"></ng-content>\n </div>\n </div>\n ",
|
|
2835
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
2836
|
+
},] }
|
|
2837
|
+
];
|
|
2838
|
+
CheckoutOverviewBlockComponent.ctorParameters = function () { return []; };
|
|
2839
|
+
CheckoutOverviewBlockComponent.propDecorators = {
|
|
2840
|
+
sequenceNr: [{ type: i0.Input }],
|
|
2841
|
+
label: [{ type: i0.Input }],
|
|
2842
|
+
startInEdit: [{ type: i0.Input }],
|
|
2843
|
+
editModeChange: [{ type: i0.Output }]
|
|
2844
|
+
};
|
|
2813
2845
|
|
|
2814
|
-
|
|
2846
|
+
var CheckoutOverviewRelationEditComponent = /** @class */ (function () {
|
|
2815
2847
|
function CheckoutOverviewRelationEditComponent(_changeDetector, _transactionService) {
|
|
2816
2848
|
var _this = this;
|
|
2817
2849
|
this._changeDetector = _changeDetector;
|
|
@@ -2834,7 +2866,7 @@
|
|
|
2834
2866
|
// fetches relation suggestions
|
|
2835
2867
|
this._relationNameChangeHandler = functionUtils.FunctionUtils.Throttle(function () {
|
|
2836
2868
|
return _this._relationNameChangedHandlerFn();
|
|
2837
|
-
//
|
|
2869
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2838
2870
|
}, 600);
|
|
2839
2871
|
}
|
|
2840
2872
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "relation", {
|
|
@@ -2846,14 +2878,14 @@
|
|
|
2846
2878
|
this.preparePrimaryEmail();
|
|
2847
2879
|
this.preparePrimaryPhone();
|
|
2848
2880
|
},
|
|
2849
|
-
enumerable:
|
|
2881
|
+
enumerable: false,
|
|
2850
2882
|
configurable: true
|
|
2851
2883
|
});
|
|
2852
2884
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "relationAsCustomer", {
|
|
2853
2885
|
get: function () {
|
|
2854
2886
|
return this._relation && this._relation;
|
|
2855
2887
|
},
|
|
2856
|
-
enumerable:
|
|
2888
|
+
enumerable: false,
|
|
2857
2889
|
configurable: true
|
|
2858
2890
|
});
|
|
2859
2891
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "editFirstAddress", {
|
|
@@ -2870,7 +2902,7 @@
|
|
|
2870
2902
|
return address;
|
|
2871
2903
|
}
|
|
2872
2904
|
},
|
|
2873
|
-
enumerable:
|
|
2905
|
+
enumerable: false,
|
|
2874
2906
|
configurable: true
|
|
2875
2907
|
});
|
|
2876
2908
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "firstAddress", {
|
|
@@ -2886,14 +2918,14 @@
|
|
|
2886
2918
|
addressType_enum.AddressType.NursingAddress
|
|
2887
2919
|
]);
|
|
2888
2920
|
},
|
|
2889
|
-
enumerable:
|
|
2921
|
+
enumerable: false,
|
|
2890
2922
|
configurable: true
|
|
2891
2923
|
});
|
|
2892
2924
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "applicationUser", {
|
|
2893
2925
|
get: function () {
|
|
2894
2926
|
return this._transactionService.applicationUser;
|
|
2895
2927
|
},
|
|
2896
|
-
enumerable:
|
|
2928
|
+
enumerable: false,
|
|
2897
2929
|
configurable: true
|
|
2898
2930
|
});
|
|
2899
2931
|
CheckoutOverviewRelationEditComponent.prototype.ngOnInit = function () {
|
|
@@ -3067,35 +3099,27 @@
|
|
|
3067
3099
|
};
|
|
3068
3100
|
return CheckoutOverviewRelationEditComponent;
|
|
3069
3101
|
}());
|
|
3070
|
-
|
|
3071
|
-
i0.
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
i0.
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
i0.Output
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
i0.Component({
|
|
3090
|
-
selector: "checkout-overview-relation-edit",
|
|
3091
|
-
template: "\n <co-form (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div>\n <label [textContent]=\"'ACCOUNT_DETAILS' | localize\"\n class=\"checkout-label-h2\"\n ></label>\n </div>\n <div>\n <label [textContent]=\"'PERSONAL_DATA' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <div>\n <div>\n <label [textContent]=\"'ORDER_TYPE' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <div>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"relation.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [(model)]=\"relation.type\"\n [checked]=\"relation.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"relation.type === relType.Private\">\n <label [textContent]=\"'SALUTATION' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"relation.type === relType.Private\">\n <div>\n <label [textContent]=\"'NAME' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize \"\n (modelChange)=\"firstNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize \"\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n required></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div >\n <div *ngIf=\"relation?.type === relType.Company\" class=\"default-flex-column\">\n <label [textContent]=\"'COMPANY_NAME' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n <co-input-text [(model)]=\"relation.familyName\" [label]=\"'COMPANY_NAME'\" required></co-input-text>\n </div>\n </div>\n\n <div>\n <checkout-overview-relation-address\n label=\"DELIVERY_ADDRESS\" [address]=\"editFirstAddress\"\n ></checkout-overview-relation-address>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\" required></co-input-date>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"phoneNumber.value\" [placeholder]=\"'PHONE_NO' | localize \" required></co-input-text>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'LOGIN_DETAILS' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <div>\n <p>{{ 'ACCOUNT_EXPLANATION' | localize }}</p>\n </div>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"emailAddress.value\" [placeholder]=\"'EMAIL_ADDRESS' | localize \" [type]=\"'email'\" required></co-input-text>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div *ngIf=\"!applicationUser\" class=\"default-flex-column\">\n <co-input-text [(model)]=\"accountPassword\" [placeholder]=\"'PASSWORD' | localize \" [type]=\"'password'\" required></co-input-text>\n </div>\n <div *ngIf=\"applicationUser\" class=\"default-flex-column\">\n <co-input-checkbox [label]=\"'INVITE_TO_ACCOUNT' | localize\" [(model)]=\"inviteToAccount\"></co-input-checkbox>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'PRIVACY_PREFERENCES' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div *ngFor=\"let privacySetting of privacySettings\">\n <div class=\"privacy-row\">\n <div class=\"privacy-column-left\">\n <co-input-checkbox [label]=\"privacySetting.description\"\n [model]=\"isShared(privacySetting)\"\n (modelChange)=\"changePrivacySetting(privacySetting, $event)\"\n ></co-input-checkbox>\n </div>\n <div class=\"privacy-column-right\">\n {{ privacySetting.explanation }}\n </div>\n </div>\n </div>\n </co-form>\n\n <co-sidebar #relationSidebar isOpen=\"false\" *ngIf=\"showRelationSidebar\">\n <div class=\"relation-sidebar-header\">\n <label [textContent]=\"'SUGGESTIONS' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <checkout-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionButtonClick)=\"onRelationSuggestionClick($event)\"\n ></checkout-relation-suggestions-list>\n </co-sidebar>\n\n ",
|
|
3092
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}", ".relation-sidebar-header{margin-left:5px}"]
|
|
3093
|
-
}),
|
|
3094
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
3095
|
-
__param(1, i0.Inject(exports.ɵf))
|
|
3096
|
-
], exports.ɵe);
|
|
3102
|
+
CheckoutOverviewRelationEditComponent.decorators = [
|
|
3103
|
+
{ type: i0.Component, args: [{
|
|
3104
|
+
selector: "checkout-overview-relation-edit",
|
|
3105
|
+
template: "\n <co-form (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div>\n <label [textContent]=\"'ACCOUNT_DETAILS' | localize\"\n class=\"checkout-label-h2\"\n ></label>\n </div>\n <div>\n <label [textContent]=\"'PERSONAL_DATA' | localize\"\n class=\"checkout-label-h3\"\n ></label>7\n </div>\n <div>\n <div>\n <label [textContent]=\"'ORDER_TYPE' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <div>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"relation.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [(model)]=\"relation.type\"\n [checked]=\"relation.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"relation.type === relType.Private\">\n <label [textContent]=\"'SALUTATION' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"relation.type === relType.Private\">\n <div>\n <label [textContent]=\"'NAME' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize \"\n (modelChange)=\"firstNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize \"\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n required></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div >\n <div *ngIf=\"relation?.type === relType.Company\" class=\"default-flex-column\">\n <label [textContent]=\"'COMPANY_NAME' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n <co-input-text [(model)]=\"relation.familyName\" [label]=\"'COMPANY_NAME'\" required></co-input-text>\n </div>\n </div>\n\n <div>\n <checkout-overview-relation-address\n label=\"DELIVERY_ADDRESS\" [address]=\"editFirstAddress\"\n ></checkout-overview-relation-address>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\" required></co-input-date>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"phoneNumber.value\" [placeholder]=\"'PHONE_NO' | localize \" required></co-input-text>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'LOGIN_DETAILS' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <div>\n <p>{{ 'ACCOUNT_EXPLANATION' | localize }}</p>\n </div>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"emailAddress.value\" [placeholder]=\"'EMAIL_ADDRESS' | localize \" [type]=\"'email'\" required></co-input-text>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div *ngIf=\"!applicationUser\" class=\"default-flex-column\">\n <co-input-text [(model)]=\"accountPassword\" [placeholder]=\"'PASSWORD' | localize \" [type]=\"'password'\" required></co-input-text>\n </div>\n <div *ngIf=\"applicationUser\" class=\"default-flex-column\">\n <co-input-checkbox [label]=\"'INVITE_TO_ACCOUNT' | localize\" [(model)]=\"inviteToAccount\"></co-input-checkbox>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'PRIVACY_PREFERENCES' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div *ngFor=\"let privacySetting of privacySettings\">\n <div class=\"privacy-row\">\n <div class=\"privacy-column-left\">\n <co-input-checkbox [label]=\"privacySetting.description\"\n [model]=\"isShared(privacySetting)\"\n (modelChange)=\"changePrivacySetting(privacySetting, $event)\"\n ></co-input-checkbox>\n </div>\n <div class=\"privacy-column-right\">\n {{ privacySetting.explanation }}\n </div>\n </div>\n </div>\n </co-form>\n\n <co-sidebar #relationSidebar isOpen=\"false\" *ngIf=\"showRelationSidebar\">\n <div class=\"relation-sidebar-header\">\n <label [textContent]=\"'SUGGESTIONS' | localize \"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n <checkout-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionButtonClick)=\"onRelationSuggestionClick($event)\"\n ></checkout-relation-suggestions-list>\n </co-sidebar>\n\n ",
|
|
3106
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n", ".relation-sidebar-header{margin-left:5px}\n"]
|
|
3107
|
+
},] }
|
|
3108
|
+
];
|
|
3109
|
+
CheckoutOverviewRelationEditComponent.ctorParameters = function () { return [
|
|
3110
|
+
{ type: i0.ChangeDetectorRef },
|
|
3111
|
+
{ type: TransactionService }
|
|
3112
|
+
]; };
|
|
3113
|
+
CheckoutOverviewRelationEditComponent.propDecorators = {
|
|
3114
|
+
relationForm: [{ type: i0.ViewChild, args: [corecomponents_v9.FormComponent, { static: true },] }],
|
|
3115
|
+
relationSidebar: [{ type: i0.ViewChild, args: [corecomponents_v9.CoSidebarComponent, { static: false },] }],
|
|
3116
|
+
relation: [{ type: i0.Input }],
|
|
3117
|
+
transaction: [{ type: i0.Input }],
|
|
3118
|
+
validSubmit: [{ type: i0.Output }],
|
|
3119
|
+
invalidSubmit: [{ type: i0.Output }]
|
|
3120
|
+
};
|
|
3097
3121
|
|
|
3098
|
-
|
|
3122
|
+
var CheckoutOverviewDeliveryEditComponent = /** @class */ (function () {
|
|
3099
3123
|
function CheckoutOverviewDeliveryEditComponent(cdr, _dictionaryService, service) {
|
|
3100
3124
|
this.cdr = cdr;
|
|
3101
3125
|
this._dictionaryService = _dictionaryService;
|
|
@@ -3121,6 +3145,11 @@
|
|
|
3121
3145
|
this.marketingFields = { text: "description", value: "code" };
|
|
3122
3146
|
this.addresses = [];
|
|
3123
3147
|
this.columns = [];
|
|
3148
|
+
// TODO: Deze velden nog opnemen in Transaction!!
|
|
3149
|
+
this.deliveryDateFinal = false;
|
|
3150
|
+
this.assemblyDate = new Date();
|
|
3151
|
+
this.totalAssemblyTime = "";
|
|
3152
|
+
this.dropshipment = false;
|
|
3124
3153
|
this.columns.push({ field: "streetName", headerText: this._dictionaryService.get("STREET") }, { field: "houseNo", headerText: this._dictionaryService.get("HOUSE_NO") }, { field: "houseNoAddition", headerText: this._dictionaryService.get("HOUSE_NO_ADDITION") }, { field: "postalCode", headerText: this._dictionaryService.get("POSTAL_CODE"), allowFiltering: false }, { field: "city", headerText: this._dictionaryService.get("CITY") });
|
|
3125
3154
|
}
|
|
3126
3155
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "billingAddress", {
|
|
@@ -3135,7 +3164,7 @@
|
|
|
3135
3164
|
}
|
|
3136
3165
|
return this.transaction.invoiceAddress;
|
|
3137
3166
|
},
|
|
3138
|
-
enumerable:
|
|
3167
|
+
enumerable: false,
|
|
3139
3168
|
configurable: true
|
|
3140
3169
|
});
|
|
3141
3170
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "deliveryAddress", {
|
|
@@ -3150,7 +3179,7 @@
|
|
|
3150
3179
|
}
|
|
3151
3180
|
return this.transaction.transactionAddress;
|
|
3152
3181
|
},
|
|
3153
|
-
enumerable:
|
|
3182
|
+
enumerable: false,
|
|
3154
3183
|
configurable: true
|
|
3155
3184
|
});
|
|
3156
3185
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "deliveryDate", {
|
|
@@ -3163,7 +3192,7 @@
|
|
|
3163
3192
|
set: function (value) {
|
|
3164
3193
|
this.transaction.deliveryDate = value;
|
|
3165
3194
|
},
|
|
3166
|
-
enumerable:
|
|
3195
|
+
enumerable: false,
|
|
3167
3196
|
configurable: true
|
|
3168
3197
|
});
|
|
3169
3198
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "preferredDeliveryDate", {
|
|
@@ -3176,7 +3205,7 @@
|
|
|
3176
3205
|
set: function (value) {
|
|
3177
3206
|
this.transaction.preferredDeliveryDate = value;
|
|
3178
3207
|
},
|
|
3179
|
-
enumerable:
|
|
3208
|
+
enumerable: false,
|
|
3180
3209
|
configurable: true
|
|
3181
3210
|
});
|
|
3182
3211
|
CheckoutOverviewDeliveryEditComponent.prototype.newRelationAddress = function () {
|
|
@@ -3343,45 +3372,31 @@
|
|
|
3343
3372
|
};
|
|
3344
3373
|
return CheckoutOverviewDeliveryEditComponent;
|
|
3345
3374
|
}());
|
|
3346
|
-
|
|
3347
|
-
i0.
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
]
|
|
3358
|
-
|
|
3359
|
-
i0.
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
i0.
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
i0.Output
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
i0.Output()
|
|
3369
|
-
], exports.ɵh.prototype, "invalidSubmit", void 0);
|
|
3370
|
-
exports.ɵh = __decorate([
|
|
3371
|
-
i0.Component({
|
|
3372
|
-
selector: "checkout-overview-delivery-edit",
|
|
3373
|
-
template: "\n <co-form #deliveryForm (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div>\n <div>\n <label [textContent]=\"'DELIVERY' | localize\"\n class=\"checkout-label-h2\"\n ></label>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <label [textContent]=\"'DELIVERY_ADDRESS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <checkout-overview-delivery-address [address]=\"deliveryAddress\"></checkout-overview-delivery-address>\n <div *ngIf=\"deliveryAddress\" class=\"container-button-change-address\">\n <co-button [label]=\"'DELIVERY_ADDRESS_CHANGE' | localize\" (click)=\"changeAddress(deliveryAddressType)\"></co-button>\n </div>\n </div>\n\n <div class=\"default-flex-column\">\n <label [textContent]=\"'INVOICE_ADDRESS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <checkout-overview-delivery-address [address]=\"billingAddress\"></checkout-overview-delivery-address>\n <div *ngIf=\"billingAddress\" class=\"container-button-change-address\">\n <co-button [label]=\"'INVOICE_ADDRESS_CHANGE' | localize\" (click)=\"changeAddress(billingAddressType)\"></co-button>\n </div>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'DELIVERY_MOMENT' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'DELIVERY_DATE' | localize \" [(model)]=\"deliveryDate\"></co-input-date>\n <co-input-checkbox [label]=\"'PART_DELIVERIES' | localize\" [(model)]=\"transaction.allowPartialDelivery\"></co-input-checkbox>\n </div>\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'PREFERRED_DATE' | localize \" [(model)]=\"preferredDate\"></co-input-date>\n <ng-container *ngFor=\"let preferredDateOption of preferredDateOptions\">\n <co-input-radio-button [name]=\"'preferedDeliveryDate2'\"\n [label]=\"preferredDateOption.text | localize\"\n [value]=\"preferredDateOption.value\"\n [checked]=\"transaction.preferredDeliveryDate2 === preferredDateOption.value\"\n (modelChange)=\"changePreferredDeliveryDate2(preferredDateOption.value)\"\n ></co-input-radio-button>\n </ng-container>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"transaction.deliveryMethod\"\n [source]=\"deliveryMethods\"\n [fields]=\"deliveryMethodFields\"\n [placeholder]=\"'DELIVERY_METHOD2' | localize\"\n [required]=\"true\"\n (modelChange)=\"onDeliveryMethodChange($event)\"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'DELIVERY_OPTIONS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-multi-select-list\n [placeHolder]=\"'DELIVERY_OPTIONS' | localize\"\n [collection]=\"deliveryOptions\"\n [fields]=\"deliveryOptionFields\"\n [(model)]=\"transaction.deliveryOptions\"\n [showCheckbox]=\"true\"\n [required]=\"true\"\n ></co-multi-select-list>\n </div>\n </div>\n\n <div class=\"\">\n <label [textContent]=\"'REMARKS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.remark\" [placeholder]=\"'REMARKS' | localize\"></co-input-text>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div>\n <label [textContent]=\"'DELIVERY_COSTS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>{{ deliveryCosts }}</div>\n </div>\n <div>\n <label [textContent]=\"'ASSEMBLY_COSTS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>{{ assemblyCosts }}</div>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'MARKETING' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"transaction.marketingCode\"\n [source]=\"marketing\"\n [fields]=\"marketingFields\"\n [placeholder]=\"'MARKETING' | localize\"\n [required]=\"true\"\n (modelChange)=\"onMarketingCodeChange($event)\"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.relationReference\" [placeholder]=\"'REFERENCE_RELATION' | localize\"></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.ownReference\" [placeholder]=\"'OWN_REFERENCE' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n\n <co-dialog [visible]=\"addLocationPopup\">\n <ng-container header>{{ 'NEW_LOCATION' | localize }}</ng-container>\n <co-form #locationForm (validSubmit)=\"saveLocation()\">\n <checkout-overview-relation-address\n label=\"ADDRESS\" [address]=\"newAddress\"\n ></checkout-overview-relation-address>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"end\">\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"addLocationPopup = false;\"></co-button>\n <co-button [label]=\"'SAVE' | localize\" (click)=\"saveNewLocation()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n\n <co-dialog #changeLocationDialog\n [visible]=\"changeLocationPopup\"\n (closeClick)=\"onChangeLocationCancelClick()\"\n (overlayClick)=\"onChangeLocationCancelClick()\"\n >\n <ng-container header>{{ 'ADDRESS' | localize }}</ng-container>\n <co-form>\n <div class=\"form-content\">\n <div>\n <co-grid #addressGrid\n [data]=\"addresses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleAddressSelected($event)\"\n ></co-grid>\n </div>\n </div>\n <div class=\"flex-center\" fxLayoutGap=\"10px\">\n <co-button [label]=\"'ADDRESS_ADD' | localize\" (click)=\"onAddLocationOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onChangeLocationCancelClick()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ",
|
|
3374
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}", ".container-button-change-address{margin-top:5px}"]
|
|
3375
|
-
}),
|
|
3376
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
3377
|
-
__param(1, i0.Inject(exports.ɵi)),
|
|
3378
|
-
__param(2, i0.Inject(exports.ɵf))
|
|
3379
|
-
], exports.ɵh);
|
|
3375
|
+
CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
3376
|
+
{ type: i0.Component, args: [{
|
|
3377
|
+
selector: "checkout-overview-delivery-edit",
|
|
3378
|
+
template: "\n <co-form #deliveryForm (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div>\n <div>\n <label [textContent]=\"'DELIVERY' | localize\"\n class=\"checkout-label-h2\"\n ></label>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <label [textContent]=\"'DELIVERY_ADDRESS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <checkout-overview-delivery-address [address]=\"deliveryAddress\"></checkout-overview-delivery-address>\n <div class=\"container-button-change-address\">\n <co-button [label]=\"'DELIVERY_ADDRESS_CHANGE' | localize\" (click)=\"changeAddress(deliveryAddressType)\"></co-button>\n </div>\n </div>\n\n <div class=\"default-flex-column\">\n <label [textContent]=\"'INVOICE_ADDRESS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <checkout-overview-delivery-address [address]=\"billingAddress\"></checkout-overview-delivery-address>\n <div class=\"container-button-change-address\">\n <co-button [label]=\"'INVOICE_ADDRESS_CHANGE' | localize\" (click)=\"changeAddress(billingAddressType)\"></co-button>\n </div>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'DELIVERY_MOMENT' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'DELIVERY_DATE' | localize \" [(model)]=\"deliveryDate\"></co-input-date>\n <co-input-checkbox [label]=\"'PART_DELIVERIES' | localize\" [(model)]=\"transaction.allowPartialDelivery\"></co-input-checkbox>\n </div>\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'PREFERRED_DATE' | localize \" [(model)]=\"preferredDate\"></co-input-date>\n <ng-container *ngFor=\"let preferredDateOption of preferredDateOptions\">\n <co-input-radio-button [name]=\"'preferedDeliveryDate2'\"\n [label]=\"preferredDateOption.text | localize\"\n [value]=\"preferredDateOption.value\"\n [checked]=\"transaction.preferredDeliveryDate2 === preferredDateOption.value\"\n (modelChange)=\"changePreferredDeliveryDate2(preferredDateOption.value)\"\n ></co-input-radio-button>\n </ng-container>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"transaction.deliveryMethod\"\n [source]=\"deliveryMethods\"\n [fields]=\"deliveryMethodFields\"\n [placeholder]=\"'DELIVERY_METHOD2' | localize\"\n [required]=\"true\"\n (modelChange)=\"onDeliveryMethodChange($event)\"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'DELIVERY_OPTIONS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-multi-select-list\n [placeHolder]=\"'DELIVERY_OPTIONS' | localize\"\n [collection]=\"deliveryOptions\"\n [fields]=\"deliveryOptionFields\"\n [(model)]=\"transaction.deliveryOptions\"\n [showCheckbox]=\"true\"\n [required]=\"true\"\n ></co-multi-select-list>\n </div>\n </div>\n\n <div class=\"\">\n <label [textContent]=\"'REMARKS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.remark\" [placeholder]=\"'REMARKS' | localize\"></co-input-text>\n </div>\n </div>\n\n <div class=\"default-flex-column\">\n <co-input-checkbox [label]=\"'DELIVERY_DATE_FINAL' | localize\" [(model)]=\"deliveryDateFinal\"></co-input-checkbox>\n </div>\n <div class=\"default-flex-column\">\n <co-input-date [placeholder]=\"'ASSEMBLY_DATE' | localize \" [(model)]=\"assemblyDate\"></co-input-date>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [placeholder]=\"'TOTAL_ASSEMBLY_TIME' | localize \" [(model)]=\"totalAssemblyTime\"></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-checkbox [label]=\"'DROPSHIPMENT' | localize\" [(model)]=\"dropshipment\"></co-input-checkbox>\n </div>\n\n <div class=\"default-flex-row\">\n <div>\n <label [textContent]=\"'DELIVERY_COSTS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>{{ deliveryCosts }}</div>\n </div>\n <div>\n <label [textContent]=\"'ASSEMBLY_COSTS' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div>{{ assemblyCosts }}</div>\n </div>\n </div>\n\n <div>\n <label [textContent]=\"'MARKETING' | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"transaction.marketingCode\"\n [source]=\"marketing\"\n [fields]=\"marketingFields\"\n [placeholder]=\"'MARKETING' | localize\"\n [required]=\"true\"\n (modelChange)=\"onMarketingCodeChange($event)\"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.relationReference\" [placeholder]=\"'REFERENCE_RELATION' | localize\"></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"transaction.ownReference\" [placeholder]=\"'OWN_REFERENCE' | localize\"></co-input-text>\n </div>\n </div>\n\n </co-form>\n\n <co-dialog [visible]=\"addLocationPopup\">\n <ng-container header>{{ 'NEW_LOCATION' | localize }}</ng-container>\n <co-form #locationForm (validSubmit)=\"saveLocation()\">\n <checkout-overview-relation-address\n label=\"ADDRESS\" [address]=\"newAddress\"\n ></checkout-overview-relation-address>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"end\">\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"addLocationPopup = false;\"></co-button>\n <co-button [label]=\"'SAVE' | localize\" (click)=\"saveNewLocation()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n\n <co-dialog #changeLocationDialog\n [visible]=\"changeLocationPopup\"\n (closeClick)=\"onChangeLocationCancelClick()\"\n (overlayClick)=\"onChangeLocationCancelClick()\"\n >\n <ng-container header>{{ 'ADDRESS' | localize }}</ng-container>\n <co-form>\n <div class=\"form-content\">\n <div>\n <co-grid #addressGrid\n [data]=\"addresses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleAddressSelected($event)\"\n ></co-grid>\n </div>\n </div>\n <div class=\"flex-center\" fxLayoutGap=\"10px\">\n <co-button [label]=\"'ADDRESS_ADD' | localize\" (click)=\"onAddLocationOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onChangeLocationCancelClick()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ",
|
|
3379
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n", ".container-button-change-address{margin-top:5px}\n"]
|
|
3380
|
+
},] }
|
|
3381
|
+
];
|
|
3382
|
+
CheckoutOverviewDeliveryEditComponent.ctorParameters = function () { return [
|
|
3383
|
+
{ type: i0.ChangeDetectorRef },
|
|
3384
|
+
{ type: DictionaryService },
|
|
3385
|
+
{ type: TransactionService }
|
|
3386
|
+
]; };
|
|
3387
|
+
CheckoutOverviewDeliveryEditComponent.propDecorators = {
|
|
3388
|
+
deliveryForm: [{ type: i0.ViewChild, args: ["deliveryForm", { read: corecomponents_v9.FormComponent },] }],
|
|
3389
|
+
locationForm: [{ type: i0.ViewChild, args: ["locationForm", { read: corecomponents_v9.FormComponent },] }],
|
|
3390
|
+
changeLocationDialog: [{ type: i0.ViewChild, args: ["changeLocationDialog",] }],
|
|
3391
|
+
addressGrid: [{ type: i0.ViewChild, args: ["addressGrid",] }],
|
|
3392
|
+
relation: [{ type: i0.Input }],
|
|
3393
|
+
transaction: [{ type: i0.Input }],
|
|
3394
|
+
validSubmit: [{ type: i0.Output }],
|
|
3395
|
+
invalidSubmit: [{ type: i0.Output }]
|
|
3396
|
+
};
|
|
3380
3397
|
|
|
3381
|
-
|
|
3382
|
-
function CheckoutOverviewComponent(
|
|
3383
|
-
// public service: RetailTransactionModuleService
|
|
3384
|
-
) {
|
|
3398
|
+
var CheckoutOverviewComponent = /** @class */ (function () {
|
|
3399
|
+
function CheckoutOverviewComponent() {
|
|
3385
3400
|
this.steps = CheckoutSteps;
|
|
3386
3401
|
//
|
|
3387
3402
|
// @ViewChild("paymentBlock", {read: CheckoutOverviewBlockComponent})
|
|
@@ -3395,7 +3410,7 @@
|
|
|
3395
3410
|
this.loginRequested = false;
|
|
3396
3411
|
this.currentStep = CheckoutSteps.Relation;
|
|
3397
3412
|
this.editMode = true;
|
|
3398
|
-
//
|
|
3413
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
3399
3414
|
this._subscriptions = [];
|
|
3400
3415
|
// TODO: subscribe to relation and transaction service
|
|
3401
3416
|
// this._subscriptions.push(service.relationUpdatedEventEmitter.subscribe((updated: boolean) => {
|
|
@@ -3512,49 +3527,29 @@
|
|
|
3512
3527
|
};
|
|
3513
3528
|
return CheckoutOverviewComponent;
|
|
3514
3529
|
}());
|
|
3515
|
-
|
|
3516
|
-
i0.
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
i0.ViewChild
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
i0.Input
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
i0.
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
i0.
|
|
3535
|
-
|
|
3536
|
-
__decorate([
|
|
3537
|
-
i0.Output()
|
|
3538
|
-
], exports.ɵc.prototype, "saveRelation", void 0);
|
|
3539
|
-
__decorate([
|
|
3540
|
-
i0.Output()
|
|
3541
|
-
], exports.ɵc.prototype, "saveDelivery", void 0);
|
|
3542
|
-
__decorate([
|
|
3543
|
-
i0.Output()
|
|
3544
|
-
], exports.ɵc.prototype, "savePayment", void 0);
|
|
3545
|
-
__decorate([
|
|
3546
|
-
i0.Output()
|
|
3547
|
-
], exports.ɵc.prototype, "stepFinished", void 0);
|
|
3548
|
-
exports.ɵc = __decorate([
|
|
3549
|
-
i0.Component({
|
|
3550
|
-
selector: "checkout-overview",
|
|
3551
|
-
template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep == steps.Relation && editMode\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onRelationValid()\"\n (invalidSubmit)=\"onRelationInvalid()\"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr=\"3\" label=\"DELIVERY\"\n [hidden]=\"currentStep !== steps.Delivery\"\n (editModeChange)=\"handleEditChangeDelivery($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]=\"currentStep !== steps.Delivery\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onDeliveryValid()\"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ",
|
|
3552
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]
|
|
3553
|
-
})
|
|
3554
|
-
], exports.ɵc);
|
|
3530
|
+
CheckoutOverviewComponent.decorators = [
|
|
3531
|
+
{ type: i0.Component, args: [{
|
|
3532
|
+
selector: "checkout-overview",
|
|
3533
|
+
template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep == steps.Relation && editMode\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onRelationValid()\"\n (invalidSubmit)=\"onRelationInvalid()\"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr=\"3\" label=\"DELIVERY\"\n [hidden]=\"currentStep !== steps.Delivery\"\n (editModeChange)=\"handleEditChangeDelivery($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]=\"currentStep !== steps.Delivery\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onDeliveryValid()\"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ",
|
|
3534
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
3535
|
+
},] }
|
|
3536
|
+
];
|
|
3537
|
+
CheckoutOverviewComponent.ctorParameters = function () { return []; };
|
|
3538
|
+
CheckoutOverviewComponent.propDecorators = {
|
|
3539
|
+
relationBlock: [{ type: i0.ViewChild, args: ["relationBlock", { read: CheckoutOverviewBlockComponent },] }],
|
|
3540
|
+
relationForm: [{ type: i0.ViewChild, args: ["relationForm", { read: CheckoutOverviewRelationEditComponent },] }],
|
|
3541
|
+
deliveryBlock: [{ type: i0.ViewChild, args: ["deliveryBlock", { read: CheckoutOverviewBlockComponent },] }],
|
|
3542
|
+
deliveryForm: [{ type: i0.ViewChild, args: ["deliveryForm", { read: CheckoutOverviewDeliveryEditComponent },] }],
|
|
3543
|
+
relation: [{ type: i0.Input }],
|
|
3544
|
+
transaction: [{ type: i0.Input }],
|
|
3545
|
+
userIsApplicationUser: [{ type: i0.Input }],
|
|
3546
|
+
saveRelation: [{ type: i0.Output }],
|
|
3547
|
+
saveDelivery: [{ type: i0.Output }],
|
|
3548
|
+
savePayment: [{ type: i0.Output }],
|
|
3549
|
+
stepFinished: [{ type: i0.Output }]
|
|
3550
|
+
};
|
|
3555
3551
|
|
|
3556
|
-
var
|
|
3557
|
-
exports.ɵb = CheckoutComponent_1 = /** @class */ (function () {
|
|
3552
|
+
var CheckoutComponent = /** @class */ (function () {
|
|
3558
3553
|
function CheckoutComponent(service, promptService) {
|
|
3559
3554
|
this.service = service;
|
|
3560
3555
|
this.promptService = promptService;
|
|
@@ -3566,28 +3561,28 @@
|
|
|
3566
3561
|
get: function () {
|
|
3567
3562
|
return this.service.currentRelation;
|
|
3568
3563
|
},
|
|
3569
|
-
enumerable:
|
|
3564
|
+
enumerable: false,
|
|
3570
3565
|
configurable: true
|
|
3571
3566
|
});
|
|
3572
3567
|
Object.defineProperty(CheckoutComponent.prototype, "transaction", {
|
|
3573
3568
|
get: function () {
|
|
3574
3569
|
return this.service.currentTransaction;
|
|
3575
3570
|
},
|
|
3576
|
-
enumerable:
|
|
3571
|
+
enumerable: false,
|
|
3577
3572
|
configurable: true
|
|
3578
3573
|
});
|
|
3579
3574
|
Object.defineProperty(CheckoutComponent.prototype, "canContinue", {
|
|
3580
3575
|
get: function () {
|
|
3581
3576
|
return this.stepper && (this.stepper.selectedIndex !== 0 || !isNill_function.isNill(this.relation));
|
|
3582
3577
|
},
|
|
3583
|
-
enumerable:
|
|
3578
|
+
enumerable: false,
|
|
3584
3579
|
configurable: true
|
|
3585
3580
|
});
|
|
3586
3581
|
Object.defineProperty(CheckoutComponent.prototype, "finished", {
|
|
3587
3582
|
get: function () {
|
|
3588
3583
|
return this.stepper && this.stepper.steps && this.stepper.selectedIndex === this.stepper.steps.length - 1;
|
|
3589
3584
|
},
|
|
3590
|
-
enumerable:
|
|
3585
|
+
enumerable: false,
|
|
3591
3586
|
configurable: true
|
|
3592
3587
|
});
|
|
3593
3588
|
Object.defineProperty(CheckoutComponent.prototype, "userIsApplicationUser", {
|
|
@@ -3595,7 +3590,7 @@
|
|
|
3595
3590
|
// TODO: return this.userService.isApplicationUser;
|
|
3596
3591
|
return true;
|
|
3597
3592
|
},
|
|
3598
|
-
enumerable:
|
|
3593
|
+
enumerable: false,
|
|
3599
3594
|
configurable: true
|
|
3600
3595
|
});
|
|
3601
3596
|
CheckoutComponent._currentStepByIndex = function (index) {
|
|
@@ -3612,12 +3607,12 @@
|
|
|
3612
3607
|
};
|
|
3613
3608
|
CheckoutComponent.prototype.continue = function () {
|
|
3614
3609
|
var toNextStep = false;
|
|
3615
|
-
if (
|
|
3610
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Relation) {
|
|
3616
3611
|
toNextStep = this.overview.relationForm.submit();
|
|
3617
3612
|
this.completedRelation = toNextStep;
|
|
3618
3613
|
this.completedDelivery = false;
|
|
3619
3614
|
}
|
|
3620
|
-
if (
|
|
3615
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Delivery) {
|
|
3621
3616
|
toNextStep = this.overview.deliveryForm.submit();
|
|
3622
3617
|
this.completedDelivery = toNextStep;
|
|
3623
3618
|
}
|
|
@@ -3690,7 +3685,7 @@
|
|
|
3690
3685
|
});
|
|
3691
3686
|
};
|
|
3692
3687
|
CheckoutComponent.prototype.stepChanged = function (event) {
|
|
3693
|
-
this.overview.moveToStep(
|
|
3688
|
+
this.overview.moveToStep(CheckoutComponent._currentStepByIndex(event.selectedIndex), true);
|
|
3694
3689
|
};
|
|
3695
3690
|
CheckoutComponent.prototype.insertData = function () {
|
|
3696
3691
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3721,23 +3716,23 @@
|
|
|
3721
3716
|
};
|
|
3722
3717
|
return CheckoutComponent;
|
|
3723
3718
|
}());
|
|
3724
|
-
|
|
3725
|
-
i0.
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3719
|
+
CheckoutComponent.decorators = [
|
|
3720
|
+
{ type: i0.Component, args: [{
|
|
3721
|
+
selector: "app-checkout",
|
|
3722
|
+
template: "\n <div class=\"checkout-viewport\">\n <mat-horizontal-stepper #stepper\n [linear]=\"true\" labelPosition=\"bottom\"\n (selectionChange)=\"stepChanged($event)\">\n <mat-step [label]=\"'YOUR_DATA' | localize\" [completed]=\"completedRelation\"></mat-step>\n <mat-step [label]=\"'DELIVERY' | localize\" [completed]=\"completedDelivery\"></mat-step>\n <mat-step [label]=\"'PAYMENT' | localize\"></mat-step>\n <mat-step [label]=\"'OVERVIEW' | localize\"></mat-step>\n </mat-horizontal-stepper>\n <checkout-overview [relation]=\"relation\"\n [transaction]=\"transaction\"\n [userIsApplicationUser]=\"userIsApplicationUser\"\n (saveRelation)=\"handleSaveRelation()\"\n (saveDelivery)=\"handleSaveDelivery()\"\n (stepFinished)=\"stepFinished()\"></checkout-overview>\n <div class=\"step-content-customer\"></div>\n </div>\n ",
|
|
3723
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
3724
|
+
},] }
|
|
3725
|
+
];
|
|
3726
|
+
CheckoutComponent.ctorParameters = function () { return [
|
|
3727
|
+
{ type: TransactionService },
|
|
3728
|
+
{ type: corecomponents_v9.PromptService }
|
|
3729
|
+
]; };
|
|
3730
|
+
CheckoutComponent.propDecorators = {
|
|
3731
|
+
overview: [{ type: i0.ViewChild, args: [CheckoutOverviewComponent,] }],
|
|
3732
|
+
stepper: [{ type: i0.ViewChild, args: ["stepper",] }]
|
|
3733
|
+
};
|
|
3739
3734
|
|
|
3740
|
-
|
|
3735
|
+
var RetailTransactionCheckoutComponent = /** @class */ (function () {
|
|
3741
3736
|
function RetailTransactionCheckoutComponent(service) {
|
|
3742
3737
|
this.service = service;
|
|
3743
3738
|
}
|
|
@@ -3746,7 +3741,7 @@
|
|
|
3746
3741
|
var _a;
|
|
3747
3742
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) !== 0;
|
|
3748
3743
|
},
|
|
3749
|
-
enumerable:
|
|
3744
|
+
enumerable: false,
|
|
3750
3745
|
configurable: true
|
|
3751
3746
|
});
|
|
3752
3747
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "canContinue", {
|
|
@@ -3754,7 +3749,7 @@
|
|
|
3754
3749
|
var _a;
|
|
3755
3750
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) !== 3;
|
|
3756
3751
|
},
|
|
3757
|
-
enumerable:
|
|
3752
|
+
enumerable: false,
|
|
3758
3753
|
configurable: true
|
|
3759
3754
|
});
|
|
3760
3755
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "started", {
|
|
@@ -3762,14 +3757,14 @@
|
|
|
3762
3757
|
var _a;
|
|
3763
3758
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) === 0;
|
|
3764
3759
|
},
|
|
3765
|
-
enumerable:
|
|
3760
|
+
enumerable: false,
|
|
3766
3761
|
configurable: true
|
|
3767
3762
|
});
|
|
3768
3763
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "finished", {
|
|
3769
3764
|
get: function () {
|
|
3770
3765
|
return this.checkout && this.checkout.finished;
|
|
3771
3766
|
},
|
|
3772
|
-
enumerable:
|
|
3767
|
+
enumerable: false,
|
|
3773
3768
|
configurable: true
|
|
3774
3769
|
});
|
|
3775
3770
|
RetailTransactionCheckoutComponent.prototype.continueCheckout = function () {
|
|
@@ -3780,19 +3775,21 @@
|
|
|
3780
3775
|
};
|
|
3781
3776
|
return RetailTransactionCheckoutComponent;
|
|
3782
3777
|
}());
|
|
3783
|
-
|
|
3784
|
-
i0.
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
}
|
|
3792
|
-
|
|
3793
|
-
|
|
3778
|
+
RetailTransactionCheckoutComponent.decorators = [
|
|
3779
|
+
{ type: i0.Component, args: [{
|
|
3780
|
+
selector: "app-retail-transaction-checkout",
|
|
3781
|
+
template: "\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n <app-checkout class=\"checkout\"></app-checkout>\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n <ng-template #content>\n <div class=\"checkout-retail-viewport checkout-row-end\">\n <co-button [label]=\"'BACK'| localize\" [disabled]=\"!canPrevious\" (click)=\"previousCheckout()\"></co-button>\n <co-button [label]=\"'CONTINUE'| localize\" [disabled]=\"!canContinue\" (click)=\"continueCheckout()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
3782
|
+
styles: [".checkout-retail-viewport{max-width:60%;margin-left:20%}.checkout-row-end{display:flex;flex-direction:row;grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;justify-content:flex-end}\n"]
|
|
3783
|
+
},] }
|
|
3784
|
+
];
|
|
3785
|
+
RetailTransactionCheckoutComponent.ctorParameters = function () { return [
|
|
3786
|
+
{ type: TransactionService }
|
|
3787
|
+
]; };
|
|
3788
|
+
RetailTransactionCheckoutComponent.propDecorators = {
|
|
3789
|
+
checkout: [{ type: i0.ViewChild, args: [CheckoutComponent, { static: true },] }]
|
|
3790
|
+
};
|
|
3794
3791
|
|
|
3795
|
-
|
|
3792
|
+
var CheckoutLoginComponent = /** @class */ (function () {
|
|
3796
3793
|
function CheckoutLoginComponent() {
|
|
3797
3794
|
this.createNewAccountSubmit = new i0.EventEmitter();
|
|
3798
3795
|
this.continueWithoutSubmit = new i0.EventEmitter();
|
|
@@ -3828,30 +3825,23 @@
|
|
|
3828
3825
|
};
|
|
3829
3826
|
return CheckoutLoginComponent;
|
|
3830
3827
|
}());
|
|
3831
|
-
|
|
3832
|
-
i0.
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
i0.
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
i0.Output
|
|
3845
|
-
|
|
3846
|
-
exports.ɵj = __decorate([
|
|
3847
|
-
i0.Component({
|
|
3848
|
-
selector: "checkout-login",
|
|
3849
|
-
template: "\n <h1>{{ \"LOGIN\" | localize}}</h1>\n <div class=\"users\">\n <co-form #loginForm (validSubmit)=\"login()\">\n <div class=\"existing-user\">\n <p><strong>{{ \"EXISTING_CUSTOMERS\" | localize }}</strong></p>\n <co-input-text\n [(model)]=\"userEmailAddress\"\n [placeholder]=\"'EMAIL_ADDRESS' | localize \"\n [type]=\"'email'\"\n required\n ></co-input-text>\n\n <co-input-text\n [(model)]=\"userPassword\"\n [placeholder]=\"'PASSWORD' | localize \"\n [type]=\"'password'\"\n required\n ></co-input-text>\n <div class=\"login-button\">\n <co-button\n [label]=\"'LOGIN' | localize\" (click)=\"submit()\"\n ></co-button>\n </div>\n </div>\n </co-form>\n\n <co-form #accountForm (validSubmit)=\"accountLogin()\">\n <div class=\"new-user\">\n <p class=\"boxedbottom\">\n <strong>{{ \"NEW_AT\" | localize}}{{company}}</strong>\n <br/>{{ \"CREATE_ACCOUNT_IN_2_MIN\" | localize }}\n </p>\n <div class=\"new-user-e-mail\">\n <co-input-text\n [(model)]=\"userNewEmailAddress\"\n [placeholder]=\"'EMAIL_ADDRESS' | localize \"\n [type]=\"'email'\"\n required\n ></co-input-text>\n </div>\n <div class=\"login-button\">\n <co-button\n [label]=\"'CREATE_ACCOUNT' | localize\"\n (click)=\"createAccountSubmit()\"\n ></co-button>\n <co-button\n [label]=\"'CONTINUE_WITHOUT_ACCOUNT' | localize\"\n (click)=\"continueSubmit()\"\n ></co-button>\n </div>\n </div>\n </co-form>\n </div>\n ",
|
|
3850
|
-
styles: [".users{display:flex;flex-direction:row}.users co-form{width:50%}.existing-user{padding-right:2rem;margin-bottom:0;border-right:1px solid #aaa}.new-user{padding-left:2rem}.new-user-e-mail{padding-top:2.6rem}.boxedbottom{margin-bottom:.5rem}.login-button{display:flex;margin-top:10px}.login-button co-button{margin-right:10px}"]
|
|
3851
|
-
})
|
|
3852
|
-
], exports.ɵj);
|
|
3828
|
+
CheckoutLoginComponent.decorators = [
|
|
3829
|
+
{ type: i0.Component, args: [{
|
|
3830
|
+
selector: "checkout-login",
|
|
3831
|
+
template: "\n <h1>{{ \"LOGIN\" | localize}}</h1>\n <div class=\"users\">\n <co-form #loginForm (validSubmit)=\"login()\">\n <div class=\"existing-user\">\n <p><strong>{{ \"EXISTING_CUSTOMERS\" | localize }}</strong></p>\n <co-input-text\n [(model)]=\"userEmailAddress\"\n [placeholder]=\"'EMAIL_ADDRESS' | localize \"\n [type]=\"'email'\"\n required\n ></co-input-text>\n\n <co-input-text\n [(model)]=\"userPassword\"\n [placeholder]=\"'PASSWORD' | localize \"\n [type]=\"'password'\"\n required\n ></co-input-text>\n <div class=\"login-button\">\n <co-button\n [label]=\"'LOGIN' | localize\" (click)=\"submit()\"\n ></co-button>\n </div>\n </div>\n </co-form>\n\n <co-form #accountForm (validSubmit)=\"accountLogin()\">\n <div class=\"new-user\">\n <p class=\"boxedbottom\">\n <strong>{{ \"NEW_AT\" | localize}}{{company}}</strong>\n <br/>{{ \"CREATE_ACCOUNT_IN_2_MIN\" | localize }}\n </p>\n <div class=\"new-user-e-mail\">\n <co-input-text\n [(model)]=\"userNewEmailAddress\"\n [placeholder]=\"'EMAIL_ADDRESS' | localize \"\n [type]=\"'email'\"\n required\n ></co-input-text>\n </div>\n <div class=\"login-button\">\n <co-button\n [label]=\"'CREATE_ACCOUNT' | localize\"\n (click)=\"createAccountSubmit()\"\n ></co-button>\n <co-button\n [label]=\"'CONTINUE_WITHOUT_ACCOUNT' | localize\"\n (click)=\"continueSubmit()\"\n ></co-button>\n </div>\n </div>\n </co-form>\n </div>\n ",
|
|
3832
|
+
styles: [".users{display:flex;flex-direction:row}.users co-form{width:50%}.existing-user{padding-right:2rem;margin-bottom:0;border-right:1px solid #aaa}.new-user{padding-left:2rem}.new-user-e-mail{padding-top:2.6rem}.boxedbottom{margin-bottom:.5rem}.login-button{display:flex;margin-top:10px}.login-button co-button{margin-right:10px}\n"]
|
|
3833
|
+
},] }
|
|
3834
|
+
];
|
|
3835
|
+
CheckoutLoginComponent.ctorParameters = function () { return []; };
|
|
3836
|
+
CheckoutLoginComponent.propDecorators = {
|
|
3837
|
+
loginForm: [{ type: i0.ViewChild, args: ["loginForm",] }],
|
|
3838
|
+
accountForm: [{ type: i0.ViewChild, args: ["accountForm",] }],
|
|
3839
|
+
createNewAccountSubmit: [{ type: i0.Output }],
|
|
3840
|
+
continueWithoutSubmit: [{ type: i0.Output }],
|
|
3841
|
+
loginSubmit: [{ type: i0.Output }]
|
|
3842
|
+
};
|
|
3853
3843
|
|
|
3854
|
-
|
|
3844
|
+
var IoneCheckoutComponent = /** @class */ (function () {
|
|
3855
3845
|
function IoneCheckoutComponent(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService, globalEvents) {
|
|
3856
3846
|
var _this = this;
|
|
3857
3847
|
this._changeDetector = _changeDetector;
|
|
@@ -3888,7 +3878,7 @@
|
|
|
3888
3878
|
this._optionsService.initialize(options).then();
|
|
3889
3879
|
}
|
|
3890
3880
|
},
|
|
3891
|
-
enumerable:
|
|
3881
|
+
enumerable: false,
|
|
3892
3882
|
configurable: true
|
|
3893
3883
|
});
|
|
3894
3884
|
Object.defineProperty(IoneCheckoutComponent.prototype, "applicationUser", {
|
|
@@ -3899,14 +3889,14 @@
|
|
|
3899
3889
|
this._applicationUser = value;
|
|
3900
3890
|
this._service.applicationUser = this.applicationUser;
|
|
3901
3891
|
},
|
|
3902
|
-
enumerable:
|
|
3892
|
+
enumerable: false,
|
|
3903
3893
|
configurable: true
|
|
3904
3894
|
});
|
|
3905
3895
|
Object.defineProperty(IoneCheckoutComponent.prototype, "transactionNr", {
|
|
3906
3896
|
get: function () {
|
|
3907
3897
|
return this._service.currentTransaction.transactionNr;
|
|
3908
3898
|
},
|
|
3909
|
-
enumerable:
|
|
3899
|
+
enumerable: false,
|
|
3910
3900
|
configurable: true
|
|
3911
3901
|
});
|
|
3912
3902
|
IoneCheckoutComponent.prototype.ngOnInit = function () {
|
|
@@ -3974,34 +3964,30 @@
|
|
|
3974
3964
|
};
|
|
3975
3965
|
return IoneCheckoutComponent;
|
|
3976
3966
|
}());
|
|
3977
|
-
|
|
3978
|
-
i0.
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
]
|
|
3983
|
-
|
|
3984
|
-
i0.
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
__param(5, i0.Inject(exports.ɵl)),
|
|
4000
|
-
__param(6, i0.Inject(corecomponents_v9.PromptService)),
|
|
4001
|
-
__param(7, i0.Inject(exports.ɵl))
|
|
4002
|
-
], exports.IoneCheckoutComponent);
|
|
3967
|
+
IoneCheckoutComponent.decorators = [
|
|
3968
|
+
{ type: i0.Component, args: [{
|
|
3969
|
+
selector: "ione-checkout",
|
|
3970
|
+
template: "\n <ng-container *ngIf=\"show && (applicationUser || loggedIn)\">\n <app-retail-transaction-checkout></app-retail-transaction-checkout>\n </ng-container>\n\n\n <div *ngIf=\"show && !applicationUser && !loggedIn\">\n <checkout-login\n #checkoutLogin\n (continueWithoutSubmit)=\"continueWithoutAccount()\"\n (createNewAccountSubmit)=\"createNewAccount()\"\n ></checkout-login>\n </div>\n "
|
|
3971
|
+
},] }
|
|
3972
|
+
];
|
|
3973
|
+
IoneCheckoutComponent.ctorParameters = function () { return [
|
|
3974
|
+
{ type: i0.ChangeDetectorRef },
|
|
3975
|
+
{ type: OptionsService },
|
|
3976
|
+
{ type: IOneConnectorAdapterService },
|
|
3977
|
+
{ type: DictionaryService },
|
|
3978
|
+
{ type: TransactionService },
|
|
3979
|
+
{ type: TransactionEventService },
|
|
3980
|
+
{ type: corecomponents_v9.PromptService },
|
|
3981
|
+
{ type: TransactionEventService }
|
|
3982
|
+
]; };
|
|
3983
|
+
IoneCheckoutComponent.propDecorators = {
|
|
3984
|
+
retailCheckout: [{ type: i0.ViewChild, args: [RetailTransactionCheckoutComponent,] }],
|
|
3985
|
+
checkoutLogin: [{ type: i0.ViewChild, args: [CheckoutLoginComponent,] }],
|
|
3986
|
+
options: [{ type: i0.Input }],
|
|
3987
|
+
applicationUser: [{ type: i0.Input }]
|
|
3988
|
+
};
|
|
4003
3989
|
|
|
4004
|
-
|
|
3990
|
+
var CheckoutOverviewRelationAddressComponent = /** @class */ (function () {
|
|
4005
3991
|
function CheckoutOverviewRelationAddressComponent(_dictionary, _connector) {
|
|
4006
3992
|
this._dictionary = _dictionary;
|
|
4007
3993
|
this._connector = _connector;
|
|
@@ -4020,7 +4006,7 @@
|
|
|
4020
4006
|
set: function (address) {
|
|
4021
4007
|
this._address = address;
|
|
4022
4008
|
},
|
|
4023
|
-
enumerable:
|
|
4009
|
+
enumerable: false,
|
|
4024
4010
|
configurable: true
|
|
4025
4011
|
});
|
|
4026
4012
|
CheckoutOverviewRelationAddressComponent.prototype.ngOnInit = function () {
|
|
@@ -4073,23 +4059,23 @@
|
|
|
4073
4059
|
};
|
|
4074
4060
|
return CheckoutOverviewRelationAddressComponent;
|
|
4075
4061
|
}());
|
|
4076
|
-
|
|
4077
|
-
i0.
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4062
|
+
CheckoutOverviewRelationAddressComponent.decorators = [
|
|
4063
|
+
{ type: i0.Component, args: [{
|
|
4064
|
+
selector: "checkout-overview-relation-address",
|
|
4065
|
+
template: "\n <label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange) = \"changeHouseNo()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n </div>\n </div>\n <div>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.streetName\" [placeholder]=\"'STREET' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.city\" [placeholder]=\"'CITY' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"address.countryId\"\n [source]=\"countries\"\n [fields]=\"fields\"\n [placeholder]=\"'COUNTRY'| localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n </div>\n </div>\n ",
|
|
4066
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
4067
|
+
},] }
|
|
4068
|
+
];
|
|
4069
|
+
CheckoutOverviewRelationAddressComponent.ctorParameters = function () { return [
|
|
4070
|
+
{ type: DictionaryService },
|
|
4071
|
+
{ type: IOneConnectorAdapterService }
|
|
4072
|
+
]; };
|
|
4073
|
+
CheckoutOverviewRelationAddressComponent.propDecorators = {
|
|
4074
|
+
label: [{ type: i0.Input }],
|
|
4075
|
+
address: [{ type: i0.Input }]
|
|
4076
|
+
};
|
|
4091
4077
|
|
|
4092
|
-
|
|
4078
|
+
var CheckoutOverviewDeliveryAddressComponent = /** @class */ (function () {
|
|
4093
4079
|
function CheckoutOverviewDeliveryAddressComponent(service) {
|
|
4094
4080
|
this.service = service;
|
|
4095
4081
|
this.editRequest = new i0.EventEmitter();
|
|
@@ -4099,23 +4085,21 @@
|
|
|
4099
4085
|
};
|
|
4100
4086
|
return CheckoutOverviewDeliveryAddressComponent;
|
|
4101
4087
|
}());
|
|
4102
|
-
|
|
4103
|
-
i0.
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
__param(0, i0.Inject(exports.ɵf))
|
|
4118
|
-
], exports.ɵn);
|
|
4088
|
+
CheckoutOverviewDeliveryAddressComponent.decorators = [
|
|
4089
|
+
{ type: i0.Component, args: [{
|
|
4090
|
+
selector: "checkout-overview-delivery-address",
|
|
4091
|
+
template: "\n <div>\n <div>\n <label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n </div>\n\n <div (click)=\"onClick()\">\n <div>\n {{ address?.streetName }} {{ address?.houseNo}} {{ address?.houseNoAddition}}\n </div>\n <div>\n {{ address?.postalCode }} {{ address?.city}}\n </div>\n <div>\n {{ address?.countryName }}\n </div>\n </div>\n </div>\n ",
|
|
4092
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n", ""]
|
|
4093
|
+
},] }
|
|
4094
|
+
];
|
|
4095
|
+
CheckoutOverviewDeliveryAddressComponent.ctorParameters = function () { return [
|
|
4096
|
+
{ type: TransactionService }
|
|
4097
|
+
]; };
|
|
4098
|
+
CheckoutOverviewDeliveryAddressComponent.propDecorators = {
|
|
4099
|
+
label: [{ type: i0.Input }],
|
|
4100
|
+
address: [{ type: i0.Input }],
|
|
4101
|
+
editRequest: [{ type: i0.Output }]
|
|
4102
|
+
};
|
|
4119
4103
|
|
|
4120
4104
|
// Direction type for regular straight directions.
|
|
4121
4105
|
var Direction;
|
|
@@ -4126,7 +4110,7 @@
|
|
|
4126
4110
|
Direction["Down"] = "bottom";
|
|
4127
4111
|
})(Direction || (Direction = {}));
|
|
4128
4112
|
|
|
4129
|
-
|
|
4113
|
+
var CheckOutRelationSuggestionsListComponent = /** @class */ (function () {
|
|
4130
4114
|
function CheckOutRelationSuggestionsListComponent() {
|
|
4131
4115
|
this.suggestions = [];
|
|
4132
4116
|
this.arrowDirection = Direction.Left;
|
|
@@ -4135,27 +4119,23 @@
|
|
|
4135
4119
|
}
|
|
4136
4120
|
return CheckOutRelationSuggestionsListComponent;
|
|
4137
4121
|
}());
|
|
4138
|
-
|
|
4139
|
-
i0.
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
},
|
|
4154
|
-
styles: [""]
|
|
4155
|
-
})
|
|
4156
|
-
], exports.ɵo);
|
|
4122
|
+
CheckOutRelationSuggestionsListComponent.decorators = [
|
|
4123
|
+
{ type: i0.Component, args: [{
|
|
4124
|
+
selector: "checkout-relation-suggestions-list",
|
|
4125
|
+
template: "\n <div class=\"flex-column items-wrapper\">\n <checkout-relation-suggestions-list-item *ngFor=\"let suggestion of suggestions\" [suggestion]=\"suggestion\"\n [arrowDirection]=\"arrowDirection\"\n (buttonClick)=\"suggestionButtonClick.emit(suggestion)\"></checkout-relation-suggestions-list-item>\n <span *ngIf=\"suggestions?.length === 0\" class=\"no-results\" localize=\"NO_RESULTS_FOUND\"></span>\n </div>\n ",
|
|
4126
|
+
host: {
|
|
4127
|
+
"class": "narrow-scrollbar"
|
|
4128
|
+
},
|
|
4129
|
+
styles: [""]
|
|
4130
|
+
},] }
|
|
4131
|
+
];
|
|
4132
|
+
CheckOutRelationSuggestionsListComponent.propDecorators = {
|
|
4133
|
+
suggestions: [{ type: i0.Input }],
|
|
4134
|
+
arrowDirection: [{ type: i0.Input }],
|
|
4135
|
+
suggestionButtonClick: [{ type: i0.Output }]
|
|
4136
|
+
};
|
|
4157
4137
|
|
|
4158
|
-
|
|
4138
|
+
var CheckOutRelationSuggestionsListItemComponent = /** @class */ (function () {
|
|
4159
4139
|
function CheckOutRelationSuggestionsListItemComponent() {
|
|
4160
4140
|
this.buttonClick = new i0.EventEmitter();
|
|
4161
4141
|
// public icon: Icon;
|
|
@@ -4166,7 +4146,7 @@
|
|
|
4166
4146
|
this._arrowDirection = arrowDirection;
|
|
4167
4147
|
this._updateIcon();
|
|
4168
4148
|
},
|
|
4169
|
-
enumerable:
|
|
4149
|
+
enumerable: false,
|
|
4170
4150
|
configurable: true
|
|
4171
4151
|
});
|
|
4172
4152
|
CheckOutRelationSuggestionsListItemComponent.prototype.ngOnInit = function () {
|
|
@@ -4181,24 +4161,22 @@
|
|
|
4181
4161
|
};
|
|
4182
4162
|
return CheckOutRelationSuggestionsListItemComponent;
|
|
4183
4163
|
}());
|
|
4184
|
-
|
|
4185
|
-
i0.
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
i0.
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,:host{display:flex}.flex-center{flex-direction:row;align-items:center!important;justify-content:center!important}:host{flex-shrink:0;padding-top:11px;padding-bottom:11px}div.address,div.email,div.phone{padding-bottom:5px}:host{padding-top:20px}:host,div.right{padding-left:11px}:host{padding-right:11px;position:relative}:host:hover co-button.popup{visibility:visible}co-button.popup{position:absolute!important;transform:translate(-50%,-50%);top:50%;left:50%;margin-right:-50%;visibility:hidden}div.name{font-weight:700}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;border:1px solid #dce4ea;border-radius:5px;margin:5px;max-width:250px}:host:hover{background-color:#e8eceb}div.name{font-size:15px}div.address,div.email,div.phone{color:#747b87;font-size:13px}div.right{display:flex;flex-direction:column;justify-content:center}"]
|
|
4198
|
-
})
|
|
4199
|
-
], exports.ɵp);
|
|
4164
|
+
CheckOutRelationSuggestionsListItemComponent.decorators = [
|
|
4165
|
+
{ type: i0.Component, args: [{
|
|
4166
|
+
selector: "checkout-relation-suggestions-list-item",
|
|
4167
|
+
template: "\n<!-- <div class=\"left\" fxLayout fxLayoutAlign=\"start center\">-->\n<!-- <avatar [relation]=\"suggestion\" class=\"smaller\"></avatar>-->\n<!-- </div>-->\n <div class=\"right\">\n <div class=\"name medium-big-font\" *ngIf=\"suggestion.displayName as displayName\" [textContent]=\"displayName\"></div>\n <div class=\"email\" *ngIf=\"suggestion.email\">\n {{ suggestion.email }}\n </div>\n <div class=\"address\" *ngIf=\"suggestion.displayAddress as address\" [textContent]=\"address\"></div>\n <div class=\"phone\" *ngIf=\"suggestion.tel1\">\n {{ suggestion?.tel1 }}\n </div>\n </div>\n <co-button [label]=\"'SELECT' | localize\" class=\"popup rounded\" (click)=\"buttonClick.emit($event)\"></co-button>\n ",
|
|
4168
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{flex-shrink:0}:host{padding-top:11px}:host{padding-bottom:11px}div.email,div.address,div.phone{padding-bottom:5px}:host{padding-top:20px}:host,div.right{padding-left:11px}:host{padding-right:11px}:host{position:relative}:host:hover co-button.popup{visibility:visible}co-button.popup{position:absolute!important}co-button.popup{transform:translate(-50%,-50%)}co-button.popup{top:50%;left:50%;margin-right:-50%}co-button.popup{visibility:hidden}div.name{font-weight:bold}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;border:1px solid #DCE4EA;border-radius:5px;margin:5px;max-width:250px}:host:hover{background-color:#e8eceb}div.name{font-size:15px}div.email,div.address,div.phone{color:#747b87;font-size:13px}div.right{display:flex;flex-direction:column;justify-content:center}\n"]
|
|
4169
|
+
},] }
|
|
4170
|
+
];
|
|
4171
|
+
CheckOutRelationSuggestionsListItemComponent.ctorParameters = function () { return []; };
|
|
4172
|
+
CheckOutRelationSuggestionsListItemComponent.propDecorators = {
|
|
4173
|
+
suggestion: [{ type: i0.Input }],
|
|
4174
|
+
arrowDirection: [{ type: i0.Input }],
|
|
4175
|
+
buttonClick: [{ type: i0.Output }]
|
|
4176
|
+
};
|
|
4200
4177
|
|
|
4201
|
-
|
|
4178
|
+
// A pipe for appending strings to other strings in view templates.
|
|
4179
|
+
var AppendPipe = /** @class */ (function () {
|
|
4202
4180
|
function AppendPipe() {
|
|
4203
4181
|
}
|
|
4204
4182
|
AppendPipe.prototype.transform = function (value, append) {
|
|
@@ -4212,9 +4190,9 @@
|
|
|
4212
4190
|
};
|
|
4213
4191
|
return AppendPipe;
|
|
4214
4192
|
}());
|
|
4215
|
-
|
|
4216
|
-
i0.Pipe
|
|
4217
|
-
]
|
|
4193
|
+
AppendPipe.decorators = [
|
|
4194
|
+
{ type: i0.Pipe, args: [{ name: "append" },] }
|
|
4195
|
+
];
|
|
4218
4196
|
|
|
4219
4197
|
// Time size types, as in 'days' or 'weeks' or 'months'.
|
|
4220
4198
|
var TimeSizeType;
|
|
@@ -4226,7 +4204,7 @@
|
|
|
4226
4204
|
TimeSizeType["Years"] = "years";
|
|
4227
4205
|
})(TimeSizeType || (TimeSizeType = {}));
|
|
4228
4206
|
|
|
4229
|
-
|
|
4207
|
+
var DateDurationPipe = /** @class */ (function () {
|
|
4230
4208
|
function DateDurationPipe(_dictionary) {
|
|
4231
4209
|
this._dictionary = _dictionary;
|
|
4232
4210
|
}
|
|
@@ -4274,12 +4252,14 @@
|
|
|
4274
4252
|
};
|
|
4275
4253
|
return DateDurationPipe;
|
|
4276
4254
|
}());
|
|
4277
|
-
|
|
4278
|
-
i0.Pipe
|
|
4279
|
-
|
|
4280
|
-
|
|
4255
|
+
DateDurationPipe.decorators = [
|
|
4256
|
+
{ type: i0.Pipe, args: [{ name: "dateDuration", pure: false },] }
|
|
4257
|
+
];
|
|
4258
|
+
DateDurationPipe.ctorParameters = function () { return [
|
|
4259
|
+
{ type: DictionaryService }
|
|
4260
|
+
]; };
|
|
4281
4261
|
|
|
4282
|
-
|
|
4262
|
+
var DeliveryTimePipe = /** @class */ (function (_super) {
|
|
4283
4263
|
__extends(DeliveryTimePipe, _super);
|
|
4284
4264
|
function DeliveryTimePipe(_dictionaryService) {
|
|
4285
4265
|
return _super.call(this, _dictionaryService) || this;
|
|
@@ -4302,14 +4282,17 @@
|
|
|
4302
4282
|
}
|
|
4303
4283
|
};
|
|
4304
4284
|
return DeliveryTimePipe;
|
|
4305
|
-
}(
|
|
4306
|
-
|
|
4307
|
-
i0.Pipe
|
|
4308
|
-
|
|
4309
|
-
|
|
4285
|
+
}(DateDurationPipe));
|
|
4286
|
+
DeliveryTimePipe.decorators = [
|
|
4287
|
+
{ type: i0.Pipe, args: [{ name: "deliveryTime", pure: false },] }
|
|
4288
|
+
];
|
|
4289
|
+
DeliveryTimePipe.ctorParameters = function () { return [
|
|
4290
|
+
{ type: DictionaryService }
|
|
4291
|
+
]; };
|
|
4310
4292
|
|
|
4311
|
-
|
|
4312
|
-
|
|
4293
|
+
// A pipe for localizing string values in view templates.
|
|
4294
|
+
var LocalizePipe = /** @class */ (function () {
|
|
4295
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
4313
4296
|
function LocalizePipe(_dictionaryService) {
|
|
4314
4297
|
this._dictionaryService = _dictionaryService;
|
|
4315
4298
|
}
|
|
@@ -4324,21 +4307,24 @@
|
|
|
4324
4307
|
if (!Array.isArray(replace)) {
|
|
4325
4308
|
replace = [replace];
|
|
4326
4309
|
}
|
|
4327
|
-
return (_a = this._dictionaryService).get.apply(_a,
|
|
4310
|
+
return (_a = this._dictionaryService).get.apply(_a, __spreadArray([value, upperCaseFirst], __read(replace)));
|
|
4328
4311
|
};
|
|
4329
4312
|
return LocalizePipe;
|
|
4330
4313
|
}());
|
|
4331
|
-
|
|
4332
|
-
i0.Pipe
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
]
|
|
4314
|
+
LocalizePipe.decorators = [
|
|
4315
|
+
{ type: i0.Pipe, args: [{
|
|
4316
|
+
name: "localize"
|
|
4317
|
+
},] }
|
|
4318
|
+
];
|
|
4319
|
+
LocalizePipe.ctorParameters = function () { return [
|
|
4320
|
+
{ type: DictionaryService }
|
|
4321
|
+
]; };
|
|
4339
4322
|
|
|
4340
|
-
|
|
4341
|
-
|
|
4323
|
+
/**
|
|
4324
|
+
* A pipe for transforming strings or numbers to currency formatted strings for display as a price text, e.g. the number 1300.82 to "€ 1,300.82"
|
|
4325
|
+
* or the string "9000" to "€ 9000,-"
|
|
4326
|
+
*/
|
|
4327
|
+
var CoCurrencyPipe = /** @class */ (function () {
|
|
4342
4328
|
function CoCurrencyPipe() {
|
|
4343
4329
|
}
|
|
4344
4330
|
CoCurrencyPipe.prototype.transform = function (value, allowZero) {
|
|
@@ -4361,7 +4347,7 @@
|
|
|
4361
4347
|
}
|
|
4362
4348
|
// append ,- if integer
|
|
4363
4349
|
if (numberUtils.NumberUtils.IsInteger(valueAsFloat)) {
|
|
4364
|
-
suffix =
|
|
4350
|
+
suffix = CoCurrencyPipe._WholeNumberedPriceSuffix;
|
|
4365
4351
|
}
|
|
4366
4352
|
var valueAsString = valueAsFloat.toString();
|
|
4367
4353
|
// add extra zero if price has only one decimal, something like '100.2'
|
|
@@ -4373,17 +4359,17 @@
|
|
|
4373
4359
|
valueAsString = valueAsString.replace(",", "#");
|
|
4374
4360
|
valueAsString = valueAsString.replace(".", ",");
|
|
4375
4361
|
valueAsString = valueAsString.replace("#", ".");
|
|
4376
|
-
return
|
|
4362
|
+
return CoCurrencyPipe._CurrencySymbol + " " + valueAsString + suffix;
|
|
4377
4363
|
};
|
|
4378
4364
|
return CoCurrencyPipe;
|
|
4379
4365
|
}());
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
i0.Pipe
|
|
4384
|
-
]
|
|
4366
|
+
CoCurrencyPipe._CurrencySymbol = "€";
|
|
4367
|
+
CoCurrencyPipe._WholeNumberedPriceSuffix = ",-";
|
|
4368
|
+
CoCurrencyPipe.decorators = [
|
|
4369
|
+
{ type: i0.Pipe, args: [{ name: "coCurrency" },] }
|
|
4370
|
+
];
|
|
4385
4371
|
|
|
4386
|
-
|
|
4372
|
+
var SafeStylePipe = /** @class */ (function () {
|
|
4387
4373
|
function SafeStylePipe(_sanitizer) {
|
|
4388
4374
|
this._sanitizer = _sanitizer;
|
|
4389
4375
|
}
|
|
@@ -4392,14 +4378,16 @@
|
|
|
4392
4378
|
};
|
|
4393
4379
|
return SafeStylePipe;
|
|
4394
4380
|
}());
|
|
4395
|
-
|
|
4396
|
-
i0.Pipe
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4381
|
+
SafeStylePipe.decorators = [
|
|
4382
|
+
{ type: i0.Pipe, args: [{
|
|
4383
|
+
name: "safeStyle"
|
|
4384
|
+
},] }
|
|
4385
|
+
];
|
|
4386
|
+
SafeStylePipe.ctorParameters = function () { return [
|
|
4387
|
+
{ type: platformBrowser.DomSanitizer }
|
|
4388
|
+
]; };
|
|
4401
4389
|
|
|
4402
|
-
|
|
4390
|
+
var ImageDisplayComponent = /** @class */ (function () {
|
|
4403
4391
|
function ImageDisplayComponent() {
|
|
4404
4392
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4405
4393
|
this.label = "NO_IMAGE";
|
|
@@ -4416,44 +4404,30 @@
|
|
|
4416
4404
|
get: function () {
|
|
4417
4405
|
return (this.hideOnEmptyModel && !this.model);
|
|
4418
4406
|
},
|
|
4419
|
-
enumerable:
|
|
4407
|
+
enumerable: false,
|
|
4420
4408
|
configurable: true
|
|
4421
4409
|
});
|
|
4422
4410
|
return ImageDisplayComponent;
|
|
4423
4411
|
}());
|
|
4424
|
-
|
|
4425
|
-
i0.
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
i0.Input
|
|
4435
|
-
i0.HostBinding
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
i0.
|
|
4439
|
-
|
|
4440
|
-
], exports.ɵx.prototype, "cover", void 0);
|
|
4441
|
-
__decorate([
|
|
4442
|
-
i0.Input(),
|
|
4443
|
-
i0.HostBinding("class.pointer-hover")
|
|
4444
|
-
], exports.ɵx.prototype, "pointerOnHover", void 0);
|
|
4445
|
-
__decorate([
|
|
4446
|
-
i0.HostBinding("class.hidden")
|
|
4447
|
-
], exports.ɵx.prototype, "shouldBeHidden", null);
|
|
4448
|
-
exports.ɵx = __decorate([
|
|
4449
|
-
i0.Component({
|
|
4450
|
-
selector: "image-display",
|
|
4451
|
-
template: "\n <div class=\"img-wrapper\">\n <div *ngIf=\"!!model\" class=\"image\" [style.background-image]=\"'url(' + model + ')' | safeStyle\"></div>\n <no-image-display *ngIf=\"!model\" [label]=\"label\"></no-image-display>\n <ng-content></ng-content>\n </div>\n ",
|
|
4452
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,:host,div.img-wrapper{display:flex}.flex-center{flex-direction:row}.flex-center,:host,div.img-wrapper{align-items:center!important;justify-content:center!important}:host,div.image,div.img-wrapper{width:100%;height:100%}div.img-wrapper{position:relative}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.cover-image div.image{background-size:cover}:host.circle .image,:host.circle .img-wrapper{border-radius:50%}div.image{background-repeat:no-repeat;background-size:contain;background-position:50%}"]
|
|
4453
|
-
})
|
|
4454
|
-
], exports.ɵx);
|
|
4412
|
+
ImageDisplayComponent.decorators = [
|
|
4413
|
+
{ type: i0.Component, args: [{
|
|
4414
|
+
selector: "image-display",
|
|
4415
|
+
template: "\n <div class=\"img-wrapper\">\n <div *ngIf=\"!!model\" class=\"image\" [style.background-image]=\"'url(' + model + ')' | safeStyle\"></div>\n <no-image-display *ngIf=\"!model\" [label]=\"label\"></no-image-display>\n <ng-content></ng-content>\n </div>\n ",
|
|
4416
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host,div.img-wrapper{display:flex}.flex-center{flex-direction:row}.flex-center,:host,div.img-wrapper{align-items:center!important;justify-content:center!important}:host,div.img-wrapper,div.image{width:100%}:host,div.img-wrapper,div.image{height:100%}div.img-wrapper{position:relative}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.cover-image div.image{background-size:cover}:host.circle .img-wrapper,:host.circle .image{border-radius:50%}div.image{background-repeat:no-repeat;background-size:contain;background-position:center center}\n"]
|
|
4417
|
+
},] }
|
|
4418
|
+
];
|
|
4419
|
+
ImageDisplayComponent.propDecorators = {
|
|
4420
|
+
model: [{ type: i0.Input }],
|
|
4421
|
+
label: [{ type: i0.Input }],
|
|
4422
|
+
hideOnEmptyModel: [{ type: i0.Input }],
|
|
4423
|
+
circle: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.circle",] }],
|
|
4424
|
+
cover: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.cover-image",] }],
|
|
4425
|
+
pointerOnHover: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.pointer-hover",] }],
|
|
4426
|
+
shouldBeHidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
4427
|
+
};
|
|
4455
4428
|
|
|
4456
|
-
|
|
4429
|
+
// Component that shows a standardized icon and text for when there was no image (default: a camera icon and the 'no image' text).
|
|
4430
|
+
var NoImageDisplayComponent = /** @class */ (function () {
|
|
4457
4431
|
function NoImageDisplayComponent() {
|
|
4458
4432
|
// The placeholder icon to show when there is no image. Defaults to 'camera'.
|
|
4459
4433
|
this.icon = corecomponents_v9.CoreComponentsIcon.Camera;
|
|
@@ -4462,22 +4436,19 @@
|
|
|
4462
4436
|
}
|
|
4463
4437
|
return NoImageDisplayComponent;
|
|
4464
4438
|
}());
|
|
4465
|
-
|
|
4466
|
-
i0.
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
})
|
|
4477
|
-
// Component that shows a standardized icon and text for when there was no image (default: a camera icon and the 'no image' text).
|
|
4478
|
-
], exports.ɵy);
|
|
4439
|
+
NoImageDisplayComponent.decorators = [
|
|
4440
|
+
{ type: i0.Component, args: [{
|
|
4441
|
+
selector: "no-image-display",
|
|
4442
|
+
template: "\n <icon [icon]=\"icon\"></icon>\n <span [textContent]=\"label | localize\" class=\"no-image-label\"></span>\n ",
|
|
4443
|
+
styles: [""]
|
|
4444
|
+
},] }
|
|
4445
|
+
];
|
|
4446
|
+
NoImageDisplayComponent.propDecorators = {
|
|
4447
|
+
icon: [{ type: i0.Input }],
|
|
4448
|
+
label: [{ type: i0.Input }]
|
|
4449
|
+
};
|
|
4479
4450
|
|
|
4480
|
-
|
|
4451
|
+
var IconComponent = /** @class */ (function () {
|
|
4481
4452
|
function IconComponent(_iconCacheService) {
|
|
4482
4453
|
this._iconCacheService = _iconCacheService;
|
|
4483
4454
|
}
|
|
@@ -4485,7 +4456,7 @@
|
|
|
4485
4456
|
set: function (icon) {
|
|
4486
4457
|
this._setSvg(icon);
|
|
4487
4458
|
},
|
|
4488
|
-
enumerable:
|
|
4459
|
+
enumerable: false,
|
|
4489
4460
|
configurable: true
|
|
4490
4461
|
});
|
|
4491
4462
|
IconComponent.prototype.ngOnDestroy = function () {
|
|
@@ -4496,115 +4467,114 @@
|
|
|
4496
4467
|
};
|
|
4497
4468
|
return IconComponent;
|
|
4498
4469
|
}());
|
|
4499
|
-
|
|
4500
|
-
i0.
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
}
|
|
4511
|
-
|
|
4512
|
-
|
|
4470
|
+
IconComponent.decorators = [
|
|
4471
|
+
{ type: i0.Component, args: [{
|
|
4472
|
+
selector: "icon",
|
|
4473
|
+
template: "",
|
|
4474
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.circle:host{border-radius:50%}.flex-center{display:flex}:host{display:inline-flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.no-shrink:host{flex-shrink:0}:host.action ::ng-deep{cursor:pointer}:host ::ng-deep svg{width:100%}:host ::ng-deep svg{height:100%}.massive:host{width:100px;height:100px}.humongous:host{width:70px;height:70px}.very-big:host{width:45px;height:45px}.big:host{width:40px;height:40px}:host{width:30px;height:30px}.small:host{width:25px;height:25px}.nano:host{width:18px;height:18px}.pico:host{width:14px;height:14px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.dark ::ng-deep [fill]{fill:#22313c}:host.light ::ng-deep [fill]{fill:#fff}:host.red ::ng-deep [fill]{fill:#c1002a}:host.grey ::ng-deep [fill]{fill:#dad9d9}:host.action-color ::ng-deep [fill]{fill:#2b60a7}:host.inactive{opacity:.25}:host.disabled{opacity:.25!important}:host:hover.action ::ng-deep [fill]{fill:#2b60a7}\n"]
|
|
4475
|
+
},] }
|
|
4476
|
+
];
|
|
4477
|
+
IconComponent.ctorParameters = function () { return [
|
|
4478
|
+
{ type: corecomponents_v9.IconCacheService }
|
|
4479
|
+
]; };
|
|
4480
|
+
IconComponent.propDecorators = {
|
|
4481
|
+
icon: [{ type: i0.Input }],
|
|
4482
|
+
svg: [{ type: i0.HostBinding, args: ["innerHtml",] }]
|
|
4483
|
+
};
|
|
4513
4484
|
|
|
4514
|
-
|
|
4485
|
+
var CoreModule = /** @class */ (function () {
|
|
4515
4486
|
function CoreModule() {
|
|
4516
4487
|
}
|
|
4517
4488
|
return CoreModule;
|
|
4518
4489
|
}());
|
|
4519
|
-
|
|
4520
|
-
i0.NgModule
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
]
|
|
4490
|
+
CoreModule.decorators = [
|
|
4491
|
+
{ type: i0.NgModule, args: [{
|
|
4492
|
+
declarations: [
|
|
4493
|
+
AppendPipe,
|
|
4494
|
+
DeliveryTimePipe,
|
|
4495
|
+
DateDurationPipe,
|
|
4496
|
+
LocalizePipe,
|
|
4497
|
+
CoCurrencyPipe,
|
|
4498
|
+
SafeStylePipe,
|
|
4499
|
+
ImageDisplayComponent,
|
|
4500
|
+
NoImageDisplayComponent,
|
|
4501
|
+
IconComponent,
|
|
4502
|
+
],
|
|
4503
|
+
exports: [
|
|
4504
|
+
LocalizePipe,
|
|
4505
|
+
CoCurrencyPipe,
|
|
4506
|
+
AppendPipe,
|
|
4507
|
+
DeliveryTimePipe,
|
|
4508
|
+
SafeStylePipe,
|
|
4509
|
+
CoCurrencyPipe,
|
|
4510
|
+
ImageDisplayComponent,
|
|
4511
|
+
NoImageDisplayComponent,
|
|
4512
|
+
IconComponent,
|
|
4513
|
+
],
|
|
4514
|
+
imports: [
|
|
4515
|
+
common.CommonModule
|
|
4516
|
+
]
|
|
4517
|
+
},] }
|
|
4518
|
+
];
|
|
4548
4519
|
|
|
4549
|
-
|
|
4520
|
+
var IoneCheckoutModule = /** @class */ (function () {
|
|
4550
4521
|
function IoneCheckoutModule() {
|
|
4551
4522
|
}
|
|
4552
4523
|
return IoneCheckoutModule;
|
|
4553
4524
|
}());
|
|
4554
|
-
|
|
4555
|
-
i0.NgModule
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
], exports.IoneCheckoutModule);
|
|
4525
|
+
IoneCheckoutModule.decorators = [
|
|
4526
|
+
{ type: i0.NgModule, args: [{
|
|
4527
|
+
imports: [
|
|
4528
|
+
animations.BrowserAnimationsModule,
|
|
4529
|
+
corecomponents_v9.IconModule,
|
|
4530
|
+
corecomponents_v9.InputTextModule,
|
|
4531
|
+
corecomponents_v9.InputCheckboxModule,
|
|
4532
|
+
corecomponents_v9.InputRadioButtonModule,
|
|
4533
|
+
corecomponents_v9.FormModule,
|
|
4534
|
+
corecomponents_v9.InputComboBoxModule,
|
|
4535
|
+
corecomponents_v9.InputDatePickerModule,
|
|
4536
|
+
corecomponents_v9.InputNumberPickerModule,
|
|
4537
|
+
corecomponents_v9.CoDialogModule,
|
|
4538
|
+
corecomponents_v9.CoDialogPromptModule,
|
|
4539
|
+
corecomponents_v9.ButtonModule,
|
|
4540
|
+
flexLayout.FlexModule,
|
|
4541
|
+
corecomponents_v9.MultiSelectListModule,
|
|
4542
|
+
stepper.MatStepperModule,
|
|
4543
|
+
corecomponents_v9.DropDownModule,
|
|
4544
|
+
corecomponents_v9.PopupModule.forRoot(),
|
|
4545
|
+
corecomponents_v9.CoSidebarModule,
|
|
4546
|
+
corecomponents_v9.CoGridModule,
|
|
4547
|
+
CoreModule,
|
|
4548
|
+
],
|
|
4549
|
+
declarations: [
|
|
4550
|
+
CheckoutComponent,
|
|
4551
|
+
CheckoutOverviewComponent,
|
|
4552
|
+
CheckoutOverviewBlockComponent,
|
|
4553
|
+
CheckoutOverviewRelationEditComponent,
|
|
4554
|
+
CheckoutOverviewRelationAddressComponent,
|
|
4555
|
+
CheckoutOverviewDeliveryEditComponent,
|
|
4556
|
+
RetailTransactionCheckoutComponent,
|
|
4557
|
+
CheckoutOverviewDeliveryAddressComponent,
|
|
4558
|
+
CheckOutRelationSuggestionsListComponent,
|
|
4559
|
+
CheckOutRelationSuggestionsListItemComponent,
|
|
4560
|
+
CheckoutLoginComponent,
|
|
4561
|
+
IoneCheckoutComponent,
|
|
4562
|
+
],
|
|
4563
|
+
providers: [
|
|
4564
|
+
IOneConnectorAdapterService,
|
|
4565
|
+
DictionaryService,
|
|
4566
|
+
TransactionService,
|
|
4567
|
+
OptionsService
|
|
4568
|
+
],
|
|
4569
|
+
entryComponents: [
|
|
4570
|
+
IoneCheckoutComponent
|
|
4571
|
+
],
|
|
4572
|
+
exports: [IoneCheckoutComponent],
|
|
4573
|
+
bootstrap: [IoneCheckoutComponent]
|
|
4574
|
+
},] }
|
|
4575
|
+
];
|
|
4606
4576
|
|
|
4607
|
-
|
|
4577
|
+
var ShoppingCartManagerComponent = /** @class */ (function () {
|
|
4608
4578
|
function ShoppingCartManagerComponent(service, transactionEvents, promptService, _dictionaryService) {
|
|
4609
4579
|
var _this = this;
|
|
4610
4580
|
this.service = service;
|
|
@@ -4650,7 +4620,7 @@
|
|
|
4650
4620
|
get: function () {
|
|
4651
4621
|
return numberUtils.NumberUtils.NrOrDefault(this.service.articleAmount, 0);
|
|
4652
4622
|
},
|
|
4653
|
-
enumerable:
|
|
4623
|
+
enumerable: false,
|
|
4654
4624
|
configurable: true
|
|
4655
4625
|
});
|
|
4656
4626
|
Object.defineProperty(ShoppingCartManagerComponent.prototype, "showCharacteristicDialog", {
|
|
@@ -4660,7 +4630,7 @@
|
|
|
4660
4630
|
set: function (value) {
|
|
4661
4631
|
this._showCharacteristic = value;
|
|
4662
4632
|
},
|
|
4663
|
-
enumerable:
|
|
4633
|
+
enumerable: false,
|
|
4664
4634
|
configurable: true
|
|
4665
4635
|
});
|
|
4666
4636
|
ShoppingCartManagerComponent.prototype.ngOnInit = function () {
|
|
@@ -5118,40 +5088,32 @@
|
|
|
5118
5088
|
this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
|
|
5119
5089
|
setTimeout(function () {
|
|
5120
5090
|
_this.characteristicAnswer.open();
|
|
5121
|
-
//
|
|
5091
|
+
// eslint-disable-next-line no-magic-numbers
|
|
5122
5092
|
}, 1000);
|
|
5123
5093
|
};
|
|
5124
5094
|
return ShoppingCartManagerComponent;
|
|
5125
5095
|
}());
|
|
5126
|
-
|
|
5127
|
-
i0.
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
i0.
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
i0.
|
|
5146
|
-
|
|
5147
|
-
template: "\n <co-dialog #warehouseDialog\n (closeClick)=\"hide()\"\n (overlayClick)=\"onStockManagerCancelClick()\"\n >\n <ng-container header>{{ 'STOCK_NOTIFICATION' | localize }}</ng-container>\n\n <ng-container content style=\"max-height: 100%;\">\n <co-form>\n <div class=\"form-content\">\n <span *ngIf=\"message\" class=\"message-field\" [textContent]=\"message | localize\"></span>\n <div class=\"commission-fields\" fxLayout=\"row\">\n <co-input-number-picker class=\"horizontal\" [(model)]=\"amount\" [min]=\"0\" decimals=\"3\"></co-input-number-picker>\n <co-input-combo-box [(model)]=\"commissionCode\"\n [source]=\"commissionCodes\"\n [fields]=\"commissionFields\"\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div>\n <co-grid #warehouseGrid\n [data]=\"transactionArticleWarehouses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n </co-form>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onStockManagerOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onStockManagerCancelClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <characteristic-answer\n #characteristicAnswer\n (okClick)=\"handleCharacteristicAnswerOkClick($event)\"\n ></characteristic-answer>\n ",
|
|
5148
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,.warehouse-line-container{display:flex;flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.commission-fields,::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{margin-left:11px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}"]
|
|
5149
|
-
}),
|
|
5150
|
-
__param(0, i0.Inject(exports.ɵf)),
|
|
5151
|
-
__param(1, i0.Inject(exports.ɵl)),
|
|
5152
|
-
__param(2, i0.Inject(corecomponents_v9.PromptService)),
|
|
5153
|
-
__param(3, i0.Inject(exports.ɵi))
|
|
5154
|
-
], exports.ɵba);
|
|
5096
|
+
ShoppingCartManagerComponent.decorators = [
|
|
5097
|
+
{ type: i0.Component, args: [{
|
|
5098
|
+
selector: "shopping-cart-manager",
|
|
5099
|
+
template: "\n <co-dialog #warehouseDialog\n (closeClick)=\"hide()\"\n (overlayClick)=\"onStockManagerCancelClick()\"\n >\n <ng-container header>{{ 'STOCK_NOTIFICATION' | localize }}</ng-container>\n\n <ng-container content>\n <co-form>\n <div class=\"form-content\">\n <span *ngIf=\"message\" class=\"message-field\" [textContent]=\"message | localize\"></span>\n <div class=\"commission-fields\" fxLayout=\"row\">\n <co-input-number-picker class=\"horizontal\" [(model)]=\"amount\" [min]=\"0\" decimals=\"3\"></co-input-number-picker>\n <co-input-combo-box [(model)]=\"commissionCode\"\n [source]=\"commissionCodes\"\n [fields]=\"commissionFields\"\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div>\n <co-grid #warehouseGrid\n [data]=\"transactionArticleWarehouses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n </co-form>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onStockManagerOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onStockManagerCancelClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <characteristic-answer\n #characteristicAnswer\n (okClick)=\"handleCharacteristicAnswerOkClick($event)\"\n ></characteristic-answer>\n ",
|
|
5100
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
|
|
5101
|
+
},] }
|
|
5102
|
+
];
|
|
5103
|
+
ShoppingCartManagerComponent.ctorParameters = function () { return [
|
|
5104
|
+
{ type: TransactionService },
|
|
5105
|
+
{ type: TransactionEventService },
|
|
5106
|
+
{ type: corecomponents_v9.PromptService },
|
|
5107
|
+
{ type: DictionaryService }
|
|
5108
|
+
]; };
|
|
5109
|
+
ShoppingCartManagerComponent.propDecorators = {
|
|
5110
|
+
warehouseDialog: [{ type: i0.ViewChild, args: ["warehouseDialog",] }],
|
|
5111
|
+
warehouseGrid: [{ type: i0.ViewChild, args: ["warehouseGrid",] }],
|
|
5112
|
+
characteristicAnswer: [{ type: i0.ViewChild, args: ["characteristicAnswer",] }],
|
|
5113
|
+
linesChanged: [{ type: i0.Output }],
|
|
5114
|
+
openCart: [{ type: i0.Output }],
|
|
5115
|
+
articleAdded: [{ type: i0.Output }]
|
|
5116
|
+
};
|
|
5155
5117
|
|
|
5156
5118
|
var OrderDiscountType;
|
|
5157
5119
|
(function (OrderDiscountType) {
|
|
@@ -5170,7 +5132,7 @@
|
|
|
5170
5132
|
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
5171
5133
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
5172
5134
|
|
|
5173
|
-
|
|
5135
|
+
var ShoppingCartComponent = /** @class */ (function () {
|
|
5174
5136
|
function ShoppingCartComponent(iconCacheService, _dictionary, service, _transactionEvents, _changeDetector) {
|
|
5175
5137
|
var _this = this;
|
|
5176
5138
|
this.iconCacheService = iconCacheService;
|
|
@@ -5202,7 +5164,7 @@
|
|
|
5202
5164
|
get: function () {
|
|
5203
5165
|
return this._filteredCollection;
|
|
5204
5166
|
},
|
|
5205
|
-
enumerable:
|
|
5167
|
+
enumerable: false,
|
|
5206
5168
|
configurable: true
|
|
5207
5169
|
});
|
|
5208
5170
|
ShoppingCartComponent.prototype.setFilteredCollection = function (value) {
|
|
@@ -5292,49 +5254,33 @@
|
|
|
5292
5254
|
};
|
|
5293
5255
|
return ShoppingCartComponent;
|
|
5294
5256
|
}());
|
|
5295
|
-
|
|
5296
|
-
i0.
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
]
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
i0.
|
|
5308
|
-
]
|
|
5309
|
-
|
|
5310
|
-
i0.
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
i0.Input
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
i0.Output
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
], exports.ɵbb.prototype, "checkout", void 0);
|
|
5321
|
-
__decorate([
|
|
5322
|
-
i0.Output()
|
|
5323
|
-
], exports.ɵbb.prototype, "overview", void 0);
|
|
5324
|
-
exports.ɵbb = __decorate([
|
|
5325
|
-
i0.Component({
|
|
5326
|
-
selector: "shopping-cart",
|
|
5327
|
-
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"getCartLabel()\"></span>\n <div class=\"view-mode-buttons\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n <co-button [iconData]=\"iconCacheService.getIcon(iconThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n </div>\n <div class=\"cart-lines\">\n <div class=\"cart-list-wrapper\" *ngIf=\"this.activeViewMode == viewModes.List\" fxFlex=\"column\">\n <shopping-cart-line [overlayMode]=\"overlayMode\" [overviewMode]=\"overviewMode\"\n *ngFor=\"let line of filteredCollection; trackBy:trackByFn;\"\n [line]=\"line\"\n ></shopping-cart-line>\n </div>\n <div class=\"cart-list-wrapper\" *ngIf=\"this.activeViewMode == viewModes.Grid\" fxFlex=\"column\">\n <co-grid\n [data]=\"filteredCollection\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n <div class=\"shopping-cart-totals\" fxLayout=\"column\" fxLayoutGap=\"10px\">\n <div fxLayout=\"row\">\n <span [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.grossAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.discountAmount\">\n <span [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.discountAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.transactionDiscountAmount\">\n <span [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.transactionDiscountAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.transactionDiscountPercentage\">\n <span [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </div>\n <div fxLayout=\"row\">\n <span [textContent]=\"'ORDER_NET'| localize\"></span>\n <span [textContent]=\"service.currentTotals?.netAmount | coCurrency: true\"></span>\n </div>\n <a (click)=\"addDiscount()\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n <div class=\"shopping-cart-row-end\">\n <co-button *ngIf=\"!hideOverviewButton\" [label]=\"'OVERVIEW' | localize\"\n (click)=\"overview.emit()\"\n ></co-button>\n <co-button *ngIf=\"!hideCloseCartButton\"[label]=\"'SHOPPING_CART_RESUME' | localize\"\n (click)=\"closeCart.emit()\"\n ></co-button>\n <co-button *ngIf=\"!hideCheckoutButton\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n\n <co-sidebar #discountsSidebar isOpen=\"false\" *ngIf=\"showDiscountsSidebar\">\n <div fxLayout=\"column\" fxLayoutGap=\"10px\">\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.DiscountPercentage, 'TRANSACTION_DISCOUNT_PERC')\"></co-button>\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_DISCOUNT'| localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.DiscountAmount, 'TRANSACTION_DISCOUNT')\"></co-button>\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_TOTAL'| localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.OrderTotal, 'TRANSACTION_TOTAL')\"></co-button>\n\n </div>\n </co-sidebar>\n\n <co-dialog [visible]=\"inputDiscounts\">\n <ng-container header>{{ discountHeader | localize }}</ng-container>\n <co-form>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.DiscountPercentage\"\n [type]=\"'number'\"\n [(model)]=\"transactionDiscountPercentage\"\n [placeholder]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"\n ></co-input-text>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.DiscountAmount\"\n [type]=\"'number'\"\n [(model)]=\"transactionDiscountAmount\"\n [placeholder]=\"'TRANSACTION_DISCOUNT' | localize\"\n ></co-input-text>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.OrderTotal\"\n [type]=\"'number'\"\n [(model)]=\"transactionTotal\"\n [placeholder]=\"'TRANSACTION_TOTAL' | localize\"\n ></co-input-text>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"end\">\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"inputDiscounts = false\"></co-button>\n <co-button [label]=\"'OK' | localize\" (click)=\"onInputDiscountsOkClick()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ",
|
|
5328
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}.shopping-cart-totals{padding-bottom:20px;padding-top:20px}.cart-header{margin-top:20px;margin-bottom:20px}.cart-header .view-mode-buttons{margin-left:11px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;opacity:1;display:flex;flex-direction:column;height:100%;color:#22313c}.cart-header{display:flex;justify-content:space-between}.cart-header .cart-header-label{font-weight:700}.cart-header .view-mode-buttons{display:flex;flex-direction:row}.cart-header .view-mode-buttons co-button{padding:0}.cart-header .view-mode-buttons co-button ::ng-deep co-button{border-radius:0}.cart-header .view-mode-buttons co-button:first-child ::ng-deep co-button{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.cart-header .view-mode-buttons co-button:nth-child(2) ::ng-deep co-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.cart-header .view-mode-buttons co-button:last-child ::ng-deep co-button{border-top-right-radius:3px;border-bottom-right-radius:3px}.cart-lines{display:flex;height:100%;overflow:auto}.shopping-cart-totals{align-items:flex-end}.shopping-cart-totals>div{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.shopping-cart-totals>div span:last-of-type{min-width:6em;text-align:right}.shopping-cart-totals div:last-of-type{font-weight:700}", ":host .shopping-cart-viewport{max-width:60%;margin-left:20%}:host .shopping-cart-row-end{display:flex;flex-direction:row;-moz-column-gap:10px;column-gap:10px;justify-content:flex-end}"]
|
|
5329
|
-
}),
|
|
5330
|
-
__param(0, i0.Inject(corecomponents_v9.IconCacheService)),
|
|
5331
|
-
__param(1, i0.Inject(exports.ɵi)),
|
|
5332
|
-
__param(2, i0.Inject(exports.ɵf)),
|
|
5333
|
-
__param(3, i0.Inject(exports.ɵl)),
|
|
5334
|
-
__param(4, i0.Inject(i0.ChangeDetectorRef))
|
|
5335
|
-
], exports.ɵbb);
|
|
5257
|
+
ShoppingCartComponent.decorators = [
|
|
5258
|
+
{ type: i0.Component, args: [{
|
|
5259
|
+
selector: "shopping-cart",
|
|
5260
|
+
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"getCartLabel()\"></span>\n <div class=\"view-mode-buttons\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n <co-button [iconData]=\"iconCacheService.getIcon(iconThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n </div>\n <div class=\"cart-lines\">\n <div class=\"cart-list-wrapper\" *ngIf=\"this.activeViewMode == viewModes.List\" fxFlex=\"column\">\n <shopping-cart-line [overlayMode]=\"overlayMode\" [overviewMode]=\"overviewMode\"\n *ngFor=\"let line of filteredCollection; trackBy:trackByFn;\"\n [line]=\"line\"\n ></shopping-cart-line>\n </div>\n <div class=\"cart-list-wrapper\" *ngIf=\"this.activeViewMode == viewModes.Grid\" fxFlex=\"column\">\n <co-grid\n [data]=\"filteredCollection\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n <div class=\"shopping-cart-totals\" fxLayout=\"column\" fxLayoutGap=\"10px\">\n <div fxLayout=\"row\">\n <span [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.grossAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.discountAmount\">\n <span [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.discountAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.transactionDiscountAmount\">\n <span [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.transactionDiscountAmount | coCurrency: true\"></span>\n </div>\n <div fxLayout=\"row\" *ngIf=\"service.currentTotals?.transactionDiscountPercentage\">\n <span [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span [textContent]=\"service.currentTotals?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </div>\n <div fxLayout=\"row\">\n <span [textContent]=\"'ORDER_NET'| localize\"></span>\n <span [textContent]=\"service.currentTotals?.netAmount | coCurrency: true\"></span>\n </div>\n <a (click)=\"addDiscount()\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n <div class=\"shopping-cart-row-end\">\n <co-button *ngIf=\"!hideOverviewButton\" [label]=\"'OVERVIEW' | localize\"\n (click)=\"overview.emit()\"\n ></co-button>\n <co-button *ngIf=\"!hideCloseCartButton\"[label]=\"'SHOPPING_CART_RESUME' | localize\"\n (click)=\"closeCart.emit()\"\n ></co-button>\n <co-button *ngIf=\"!hideCheckoutButton\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n\n <co-sidebar #discountsSidebar isOpen=\"false\" *ngIf=\"showDiscountsSidebar\">\n <div fxLayout=\"column\" fxLayoutGap=\"10px\">\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.DiscountPercentage, 'TRANSACTION_DISCOUNT_PERC')\"></co-button>\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_DISCOUNT'| localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.DiscountAmount, 'TRANSACTION_DISCOUNT')\"></co-button>\n <co-button class=\"rectangular\" [label]=\"'TRANSACTION_TOTAL'| localize\"\n (click)=\"onStartDiscountInput(orderDiscountType.OrderTotal, 'TRANSACTION_TOTAL')\"></co-button>\n\n </div>\n </co-sidebar>\n\n <co-dialog [visible]=\"inputDiscounts\">\n <ng-container header>{{ discountHeader | localize }}</ng-container>\n <co-form>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.DiscountPercentage\"\n [type]=\"'number'\"\n [(model)]=\"transactionDiscountPercentage\"\n [placeholder]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"\n ></co-input-text>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.DiscountAmount\"\n [type]=\"'number'\"\n [(model)]=\"transactionDiscountAmount\"\n [placeholder]=\"'TRANSACTION_DISCOUNT' | localize\"\n ></co-input-text>\n <co-input-text\n *ngIf=\"discountType === orderDiscountType.OrderTotal\"\n [type]=\"'number'\"\n [(model)]=\"transactionTotal\"\n [placeholder]=\"'TRANSACTION_TOTAL' | localize\"\n ></co-input-text>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"end\">\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"inputDiscounts = false\"></co-button>\n <co-button [label]=\"'OK' | localize\" (click)=\"onInputDiscountsOkClick()\"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ",
|
|
5261
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.shopping-cart-totals{padding-bottom:20px}.shopping-cart-totals{padding-top:20px}.cart-header{margin-top:20px}.cart-header{margin-bottom:20px}.cart-header .view-mode-buttons{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;opacity:1;display:flex;flex-direction:column;height:100%;color:#22313c}.cart-header{display:flex;justify-content:space-between}.cart-header .cart-header-label{font-weight:bold}.cart-header .view-mode-buttons{display:flex;flex-direction:row}.cart-header .view-mode-buttons co-button{padding:0}.cart-header .view-mode-buttons co-button ::ng-deep co-button{border-radius:0}.cart-header .view-mode-buttons co-button:first-child ::ng-deep co-button{border-radius:3px}.cart-header .view-mode-buttons co-button:nth-child(2) ::ng-deep co-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.cart-header .view-mode-buttons co-button:last-child ::ng-deep co-button{border-top-right-radius:3px;border-bottom-right-radius:3px}.cart-lines{display:flex;height:100%;overflow:auto}.shopping-cart-totals{align-items:flex-end}.shopping-cart-totals>div{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.shopping-cart-totals>div span:last-of-type{min-width:6em;text-align:right}.shopping-cart-totals div:last-of-type{font-weight:bold}\n", ":host .shopping-cart-viewport{max-width:60%;margin-left:20%}:host .shopping-cart-row-end{display:flex;flex-direction:row;grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;justify-content:flex-end}\n"]
|
|
5262
|
+
},] }
|
|
5263
|
+
];
|
|
5264
|
+
ShoppingCartComponent.ctorParameters = function () { return [
|
|
5265
|
+
{ type: corecomponents_v9.IconCacheService },
|
|
5266
|
+
{ type: DictionaryService },
|
|
5267
|
+
{ type: TransactionService },
|
|
5268
|
+
{ type: TransactionEventService },
|
|
5269
|
+
{ type: i0.ChangeDetectorRef }
|
|
5270
|
+
]; };
|
|
5271
|
+
ShoppingCartComponent.propDecorators = {
|
|
5272
|
+
discountsSidebar: [{ type: i0.ViewChild, args: [corecomponents_v9.CoSidebarComponent, { static: false },] }],
|
|
5273
|
+
overlayMode: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.overlayed",] }],
|
|
5274
|
+
overviewMode: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.overview",] }],
|
|
5275
|
+
hideOverviewButton: [{ type: i0.Input }],
|
|
5276
|
+
hideCheckoutButton: [{ type: i0.Input }],
|
|
5277
|
+
hideCloseCartButton: [{ type: i0.Input }],
|
|
5278
|
+
closeCart: [{ type: i0.Output }],
|
|
5279
|
+
checkout: [{ type: i0.Output }],
|
|
5280
|
+
overview: [{ type: i0.Output }]
|
|
5281
|
+
};
|
|
5336
5282
|
|
|
5337
|
-
|
|
5283
|
+
var IoneShoppingCartComponent = /** @class */ (function () {
|
|
5338
5284
|
function IoneShoppingCartComponent(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService) {
|
|
5339
5285
|
var _this = this;
|
|
5340
5286
|
this._changeDetector = _changeDetector;
|
|
@@ -5373,14 +5319,14 @@
|
|
|
5373
5319
|
this._optionsService.initialize(options).then();
|
|
5374
5320
|
}
|
|
5375
5321
|
},
|
|
5376
|
-
enumerable:
|
|
5322
|
+
enumerable: false,
|
|
5377
5323
|
configurable: true
|
|
5378
5324
|
});
|
|
5379
5325
|
Object.defineProperty(IoneShoppingCartComponent.prototype, "transactionNr", {
|
|
5380
5326
|
get: function () {
|
|
5381
5327
|
return this._service.currentTransaction.transactionNr;
|
|
5382
5328
|
},
|
|
5383
|
-
enumerable:
|
|
5329
|
+
enumerable: false,
|
|
5384
5330
|
configurable: true
|
|
5385
5331
|
});
|
|
5386
5332
|
IoneShoppingCartComponent.prototype.ngOnInit = function () {
|
|
@@ -5449,48 +5395,34 @@
|
|
|
5449
5395
|
};
|
|
5450
5396
|
return IoneShoppingCartComponent;
|
|
5451
5397
|
}());
|
|
5452
|
-
|
|
5453
|
-
i0.
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
]
|
|
5458
|
-
|
|
5459
|
-
i0.
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
]
|
|
5467
|
-
|
|
5468
|
-
i0.
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
i0.
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
i0.Output
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
], exports.IoneShoppingCartComponent.prototype, "overview", void 0);
|
|
5479
|
-
exports.IoneShoppingCartComponent = __decorate([
|
|
5480
|
-
i0.Component({
|
|
5481
|
-
selector: "ione-shopping-cart",
|
|
5482
|
-
template: "\n <ng-container *ngIf=\"upAndLoaded\">\n <shopping-cart-manager\n (linesChanged)=\"linesChanged($event)\"\n ></shopping-cart-manager>\n </ng-container>\n <ng-container *ngIf=\"show\">\n <shopping-cart\n [hideOverviewButton]=\"hideOverviewButton\"\n [hideCloseCartButton]=\"hideCloseCartButton\"\n [hideCheckoutButton]=\"hideCheckoutButton\"\n (overview)=\"onOverviewButtonClicked()\"\n (closeCart)=\"onCloseCartButtonClicked()\"\n (checkout)=\"onCheckoutButtonClicked()\"\n ></shopping-cart>\n </ng-container>\n "
|
|
5483
|
-
}),
|
|
5484
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
5485
|
-
__param(1, i0.Inject(exports.ɵk)),
|
|
5486
|
-
__param(2, i0.Inject(exports.ɵg)),
|
|
5487
|
-
__param(3, i0.Inject(exports.ɵi)),
|
|
5488
|
-
__param(4, i0.Inject(exports.ɵf)),
|
|
5489
|
-
__param(5, i0.Inject(exports.ɵl)),
|
|
5490
|
-
__param(6, i0.Inject(corecomponents_v9.PromptService))
|
|
5491
|
-
], exports.IoneShoppingCartComponent);
|
|
5398
|
+
IoneShoppingCartComponent.decorators = [
|
|
5399
|
+
{ type: i0.Component, args: [{
|
|
5400
|
+
selector: "ione-shopping-cart",
|
|
5401
|
+
template: "\n <ng-container *ngIf=\"upAndLoaded\">\n <shopping-cart-manager\n (linesChanged)=\"linesChanged($event)\"\n ></shopping-cart-manager>\n </ng-container>\n <ng-container *ngIf=\"show\">\n <shopping-cart\n [hideOverviewButton]=\"hideOverviewButton\"\n [hideCloseCartButton]=\"hideCloseCartButton\"\n [hideCheckoutButton]=\"hideCheckoutButton\"\n (overview)=\"onOverviewButtonClicked()\"\n (closeCart)=\"onCloseCartButtonClicked()\"\n (checkout)=\"onCheckoutButtonClicked()\"\n ></shopping-cart>\n </ng-container>\n "
|
|
5402
|
+
},] }
|
|
5403
|
+
];
|
|
5404
|
+
IoneShoppingCartComponent.ctorParameters = function () { return [
|
|
5405
|
+
{ type: i0.ChangeDetectorRef },
|
|
5406
|
+
{ type: OptionsService },
|
|
5407
|
+
{ type: IOneConnectorAdapterService },
|
|
5408
|
+
{ type: DictionaryService },
|
|
5409
|
+
{ type: TransactionService },
|
|
5410
|
+
{ type: TransactionEventService },
|
|
5411
|
+
{ type: corecomponents_v9.PromptService }
|
|
5412
|
+
]; };
|
|
5413
|
+
IoneShoppingCartComponent.propDecorators = {
|
|
5414
|
+
manager: [{ type: i0.ViewChild, args: [ShoppingCartManagerComponent,] }],
|
|
5415
|
+
shoppingCart: [{ type: i0.ViewChild, args: [ShoppingCartComponent,] }],
|
|
5416
|
+
options: [{ type: i0.Input }],
|
|
5417
|
+
hideOverviewButton: [{ type: i0.Input }],
|
|
5418
|
+
hideCheckoutButton: [{ type: i0.Input }],
|
|
5419
|
+
hideCloseCartButton: [{ type: i0.Input }],
|
|
5420
|
+
closeCart: [{ type: i0.Output }],
|
|
5421
|
+
checkout: [{ type: i0.Output }],
|
|
5422
|
+
overview: [{ type: i0.Output }]
|
|
5423
|
+
};
|
|
5492
5424
|
|
|
5493
|
-
|
|
5425
|
+
var ShoppingCartLineComponent = /** @class */ (function () {
|
|
5494
5426
|
function ShoppingCartLineComponent(iconCacheService, service, _promptService, _dictionaryService) {
|
|
5495
5427
|
this.iconCacheService = iconCacheService;
|
|
5496
5428
|
this.service = service;
|
|
@@ -5511,7 +5443,7 @@
|
|
|
5511
5443
|
this.isSelected = this._line.isSelected;
|
|
5512
5444
|
this._loadLineImage();
|
|
5513
5445
|
},
|
|
5514
|
-
enumerable:
|
|
5446
|
+
enumerable: false,
|
|
5515
5447
|
configurable: true
|
|
5516
5448
|
});
|
|
5517
5449
|
ShoppingCartLineComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -5655,64 +5587,53 @@
|
|
|
5655
5587
|
};
|
|
5656
5588
|
return ShoppingCartLineComponent;
|
|
5657
5589
|
}());
|
|
5658
|
-
|
|
5659
|
-
i0.
|
|
5660
|
-
|
|
5661
|
-
]
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
i0.HostBinding
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
i0.
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
i0.Component({
|
|
5680
|
-
selector: "shopping-cart-line",
|
|
5681
|
-
template: "\n <div *ngIf=\"line.isArticle\" class=\"cart-line-r\" fxFlex>\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconTrashBin)\"\n [title]=\"'DELETE_TRANSACTION_LINE_HINT' | localize\"\n (click)=\"deleteTransactionLineClick()\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <image-display [model]=\"image\" hideOnEmptyModel></image-display>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"cart-line-right\">\n <div fxLayout=\"column\" class=\"cart-line-stock\" *ngIf=\"!overlayMode && !overviewMode\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"cart-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"localAmount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n\n <div class=\"cart-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n <div *ngIf=\"line.isText\" class=\"cart-line-t\" fxFlex\n [class.article-text]=\"line.articleBound\"\n [textContent]=\"line.text\">\n </div>\n ",
|
|
5682
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}:host{padding-bottom:20px;padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px;margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-totals,.cart-line-t{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #dbe3e8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width:800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:700}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:700}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}"]
|
|
5683
|
-
}),
|
|
5684
|
-
__param(0, i0.Inject(corecomponents_v9.IconCacheService)),
|
|
5685
|
-
__param(1, i0.Inject(exports.ɵf)),
|
|
5686
|
-
__param(2, i0.Inject(corecomponents_v9.PromptService)),
|
|
5687
|
-
__param(3, i0.Inject(exports.ɵi))
|
|
5688
|
-
], exports.ɵbc);
|
|
5590
|
+
ShoppingCartLineComponent.decorators = [
|
|
5591
|
+
{ type: i0.Component, args: [{
|
|
5592
|
+
selector: "shopping-cart-line",
|
|
5593
|
+
template: "\n <div *ngIf=\"line.isArticle\" class=\"cart-line-r\" fxFlex>\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconTrashBin)\"\n [title]=\"'DELETE_TRANSACTION_LINE_HINT' | localize\"\n (click)=\"deleteTransactionLineClick()\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <image-display [model]=\"image\" hideOnEmptyModel></image-display>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"cart-line-right\">\n <div fxLayout=\"column\" class=\"cart-line-stock\" *ngIf=\"!overlayMode && !overviewMode\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"cart-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"localAmount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n\n <div class=\"cart-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n <div *ngIf=\"line.isText\" class=\"cart-line-t\" fxFlex\n [class.article-text]=\"line.articleBound\"\n [textContent]=\"line.text\">\n </div>\n ",
|
|
5594
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
|
|
5595
|
+
},] }
|
|
5596
|
+
];
|
|
5597
|
+
ShoppingCartLineComponent.ctorParameters = function () { return [
|
|
5598
|
+
{ type: corecomponents_v9.IconCacheService },
|
|
5599
|
+
{ type: TransactionService },
|
|
5600
|
+
{ type: corecomponents_v9.PromptService },
|
|
5601
|
+
{ type: DictionaryService }
|
|
5602
|
+
]; };
|
|
5603
|
+
ShoppingCartLineComponent.propDecorators = {
|
|
5604
|
+
overlayMode: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.overlayed",] }],
|
|
5605
|
+
overviewMode: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.overview",] }],
|
|
5606
|
+
isText: [{ type: i0.HostBinding, args: ["class.is-text",] }],
|
|
5607
|
+
isArticle: [{ type: i0.HostBinding, args: ["class.is-article",] }],
|
|
5608
|
+
isSelected: [{ type: i0.HostBinding, args: ["class.is-selected",] }],
|
|
5609
|
+
line: [{ type: i0.Input }]
|
|
5610
|
+
};
|
|
5689
5611
|
|
|
5690
|
-
|
|
5691
|
-
|
|
5612
|
+
// Component that visually shows a stock status with three colored boxes.
|
|
5613
|
+
var StockStatusIndicatorComponent = /** @class */ (function () {
|
|
5692
5614
|
function StockStatusIndicatorComponent() {
|
|
5693
5615
|
}
|
|
5694
5616
|
Object.defineProperty(StockStatusIndicatorComponent.prototype, "stockClass", {
|
|
5695
5617
|
get: function () {
|
|
5696
5618
|
return this.model;
|
|
5697
5619
|
},
|
|
5698
|
-
enumerable:
|
|
5620
|
+
enumerable: false,
|
|
5699
5621
|
configurable: true
|
|
5700
5622
|
});
|
|
5701
5623
|
return StockStatusIndicatorComponent;
|
|
5702
5624
|
}());
|
|
5703
|
-
|
|
5704
|
-
i0.
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
}
|
|
5712
|
-
|
|
5713
|
-
], exports.ɵbd);
|
|
5625
|
+
StockStatusIndicatorComponent.decorators = [
|
|
5626
|
+
{ type: i0.Component, args: [{
|
|
5627
|
+
selector: "stock-status-indicator",
|
|
5628
|
+
template: "\n <div [class]=\"stockClass\">\n <div class=\"square-1\"></div>\n <div class=\"square-2\"></div>\n <div class=\"square-3\"></div>\n </div>\n ",
|
|
5629
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}:host{display:inline-block}.flex-center,:host>div{display:flex}.flex-center{flex-direction:row}.flex-center,:host>div{align-items:center!important;justify-content:center!important}:host>div{width:100%}:host>div{height:100%}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#ffffff40;width:30px;height:20px}:host>div>div{width:5px;height:5px;flex-shrink:0;flex-grow:0;margin-right:2px}:host>div.low>div.square-1,:host>div.empty>div.square-1,:host>div.none>div.square-1{background-color:#c1002a}:host>div.low>div.square-2,:host>div.low div.square-3,:host>div.empty>div.square-2,:host>div.empty div.square-3,:host>div.none>div.square-2,:host>div.none div.square-3{background-color:#dad9d9}:host>div.medium>div.square-1,:host>div.medium div.square-2{background-color:#df7c2a}:host>div.medium>div.square-3{background-color:#dad9d9}:host>div.high>div.square-1,:host>div.high div.square-2,:host>div.high div.square-3{background-color:#429777}\n"]
|
|
5630
|
+
},] }
|
|
5631
|
+
];
|
|
5632
|
+
StockStatusIndicatorComponent.propDecorators = {
|
|
5633
|
+
model: [{ type: i0.Input }]
|
|
5634
|
+
};
|
|
5714
5635
|
|
|
5715
|
-
|
|
5636
|
+
var CharacteristicAnswerComponent = /** @class */ (function () {
|
|
5716
5637
|
function CharacteristicAnswerComponent(_dictionaryService) {
|
|
5717
5638
|
this._dictionaryService = _dictionaryService;
|
|
5718
5639
|
this.title = "";
|
|
@@ -5726,7 +5647,7 @@
|
|
|
5726
5647
|
get: function () {
|
|
5727
5648
|
return this.characteristics.length > 0;
|
|
5728
5649
|
},
|
|
5729
|
-
enumerable:
|
|
5650
|
+
enumerable: false,
|
|
5730
5651
|
configurable: true
|
|
5731
5652
|
});
|
|
5732
5653
|
CharacteristicAnswerComponent.prototype.ngOnInit = function () {
|
|
@@ -5751,78 +5672,74 @@
|
|
|
5751
5672
|
};
|
|
5752
5673
|
return CharacteristicAnswerComponent;
|
|
5753
5674
|
}());
|
|
5754
|
-
|
|
5755
|
-
i0.
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
i0.
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.characteristic-title{margin-right:10px}.characteristic-title,.characteristic-value{font-weight:700;font-size:20px}.characteristic-header{display:flex;justify-content:center}"]
|
|
5771
|
-
}),
|
|
5772
|
-
__param(0, i0.Inject(exports.ɵi))
|
|
5773
|
-
], exports.ɵbe);
|
|
5675
|
+
CharacteristicAnswerComponent.decorators = [
|
|
5676
|
+
{ type: i0.Component, args: [{
|
|
5677
|
+
selector: "characteristic-answer",
|
|
5678
|
+
template: "\n <co-dialog\n #characteristic\n [showCloseIcon]=\"false\"\n >\n <ng-container header>\n <div>\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('ARTICLE')\"\n ></span>\n <span [textContent]=\"title\"></span>\n </div>\n </ng-container>\n\n <ng-container>\n <div>\n <div class=\"characteristic-header\">\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('CHARACTERISTIC_QUESTION')\"\n ></span>\n </div>\n <div class=\"characteristic-header\">\n <span [textContent]=\"question | localize\"></span>\n </div>\n <div *ngIf=\"characteristicOptions\" class=\"npm characteristic-options\">\n <co-input-combo-box [(model)]=\"value\"\n [source]=\"characteristics\"\n [fields]=\"characteristicsFields\"\n [placeholder]=\"'VALUE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div *ngIf=\"!characteristicOptions\" class=\"characteristic-value\">\n <co-input-text\n [(model)]=\"value\"\n [placeholder]=\"'VALUE' | localize \"\n required\n ></co-input-text>\n </div>\n </div>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onCharacteristicOkClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
|
|
5679
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.characteristic-title{font-weight:bold;font-size:20px;margin-right:10px}.characteristic-value{font-weight:bold;font-size:20px}.characteristic-header{display:flex;justify-content:center}\n"]
|
|
5680
|
+
},] }
|
|
5681
|
+
];
|
|
5682
|
+
CharacteristicAnswerComponent.ctorParameters = function () { return [
|
|
5683
|
+
{ type: DictionaryService }
|
|
5684
|
+
]; };
|
|
5685
|
+
CharacteristicAnswerComponent.propDecorators = {
|
|
5686
|
+
characteristicDialog: [{ type: i0.ViewChild, args: ["characteristic",] }],
|
|
5687
|
+
title: [{ type: i0.Input }],
|
|
5688
|
+
question: [{ type: i0.Input }],
|
|
5689
|
+
okClick: [{ type: i0.Output }]
|
|
5690
|
+
};
|
|
5774
5691
|
|
|
5775
|
-
|
|
5692
|
+
var IoneShoppingCartModule = /** @class */ (function () {
|
|
5776
5693
|
function IoneShoppingCartModule() {
|
|
5777
5694
|
}
|
|
5778
5695
|
return IoneShoppingCartModule;
|
|
5779
5696
|
}());
|
|
5780
|
-
|
|
5781
|
-
i0.NgModule
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
]
|
|
5697
|
+
IoneShoppingCartModule.decorators = [
|
|
5698
|
+
{ type: i0.NgModule, args: [{
|
|
5699
|
+
declarations: [
|
|
5700
|
+
ShoppingCartManagerComponent,
|
|
5701
|
+
ShoppingCartComponent,
|
|
5702
|
+
ShoppingCartLineComponent,
|
|
5703
|
+
StockStatusIndicatorComponent,
|
|
5704
|
+
IoneShoppingCartComponent,
|
|
5705
|
+
CharacteristicAnswerComponent,
|
|
5706
|
+
],
|
|
5707
|
+
imports: [
|
|
5708
|
+
animations.BrowserAnimationsModule,
|
|
5709
|
+
common.CommonModule,
|
|
5710
|
+
corecomponents_v9.IconModule,
|
|
5711
|
+
corecomponents_v9.InputTextModule,
|
|
5712
|
+
corecomponents_v9.InputCheckboxModule,
|
|
5713
|
+
corecomponents_v9.InputRadioButtonModule,
|
|
5714
|
+
corecomponents_v9.FormModule,
|
|
5715
|
+
corecomponents_v9.InputComboBoxModule,
|
|
5716
|
+
corecomponents_v9.InputDatePickerModule,
|
|
5717
|
+
corecomponents_v9.InputNumberPickerModule,
|
|
5718
|
+
corecomponents_v9.CoDialogModule,
|
|
5719
|
+
corecomponents_v9.CoDialogPromptModule,
|
|
5720
|
+
corecomponents_v9.ButtonModule,
|
|
5721
|
+
flexLayout.FlexModule,
|
|
5722
|
+
corecomponents_v9.MultiSelectListModule,
|
|
5723
|
+
stepper.MatStepperModule,
|
|
5724
|
+
corecomponents_v9.DropDownModule,
|
|
5725
|
+
corecomponents_v9.PopupModule.forRoot(),
|
|
5726
|
+
corecomponents_v9.CoSidebarModule,
|
|
5727
|
+
corecomponents_v9.CoGridModule,
|
|
5728
|
+
CoreModule,
|
|
5729
|
+
],
|
|
5730
|
+
providers: [
|
|
5731
|
+
IOneConnectorAdapterService,
|
|
5732
|
+
DictionaryService,
|
|
5733
|
+
TransactionService,
|
|
5734
|
+
OptionsService
|
|
5735
|
+
],
|
|
5736
|
+
entryComponents: [
|
|
5737
|
+
IoneShoppingCartComponent
|
|
5738
|
+
],
|
|
5739
|
+
exports: [IoneShoppingCartComponent],
|
|
5740
|
+
bootstrap: [IoneShoppingCartComponent]
|
|
5741
|
+
},] }
|
|
5742
|
+
];
|
|
5826
5743
|
|
|
5827
5744
|
//export * from "./app/component/ione-transaction.module";
|
|
5828
5745
|
|
|
@@ -5830,7 +5747,43 @@
|
|
|
5830
5747
|
* Generated bundle index. Do not edit.
|
|
5831
5748
|
*/
|
|
5832
5749
|
|
|
5750
|
+
exports.IoneCheckoutComponent = IoneCheckoutComponent;
|
|
5751
|
+
exports.IoneCheckoutModule = IoneCheckoutModule;
|
|
5752
|
+
exports.IoneShoppingCartComponent = IoneShoppingCartComponent;
|
|
5753
|
+
exports.IoneShoppingCartModule = IoneShoppingCartModule;
|
|
5754
|
+
exports["ɵa"] = RetailTransactionCheckoutComponent;
|
|
5755
|
+
exports["ɵb"] = CheckoutComponent;
|
|
5756
|
+
exports["ɵba"] = ShoppingCartManagerComponent;
|
|
5757
|
+
exports["ɵbb"] = ShoppingCartComponent;
|
|
5758
|
+
exports["ɵbc"] = ShoppingCartLineComponent;
|
|
5759
|
+
exports["ɵbd"] = StockStatusIndicatorComponent;
|
|
5760
|
+
exports["ɵbe"] = CharacteristicAnswerComponent;
|
|
5761
|
+
exports["ɵc"] = CheckoutOverviewComponent;
|
|
5762
|
+
exports["ɵd"] = CheckoutOverviewBlockComponent;
|
|
5763
|
+
exports["ɵe"] = CheckoutOverviewRelationEditComponent;
|
|
5764
|
+
exports["ɵf"] = TransactionService;
|
|
5765
|
+
exports["ɵg"] = IOneConnectorAdapterService;
|
|
5766
|
+
exports["ɵh"] = CheckoutOverviewDeliveryEditComponent;
|
|
5767
|
+
exports["ɵi"] = DictionaryService;
|
|
5768
|
+
exports["ɵj"] = CheckoutLoginComponent;
|
|
5769
|
+
exports["ɵk"] = OptionsService;
|
|
5770
|
+
exports["ɵl"] = TransactionEventService;
|
|
5771
|
+
exports["ɵm"] = CoreModule;
|
|
5772
|
+
exports["ɵn"] = AppendPipe;
|
|
5773
|
+
exports["ɵo"] = DeliveryTimePipe;
|
|
5774
|
+
exports["ɵp"] = DateDurationPipe;
|
|
5775
|
+
exports["ɵq"] = LocalizePipe;
|
|
5776
|
+
exports["ɵr"] = CoCurrencyPipe;
|
|
5777
|
+
exports["ɵs"] = SafeStylePipe;
|
|
5778
|
+
exports["ɵt"] = ImageDisplayComponent;
|
|
5779
|
+
exports["ɵu"] = NoImageDisplayComponent;
|
|
5780
|
+
exports["ɵv"] = IconComponent;
|
|
5781
|
+
exports["ɵw"] = CheckoutOverviewRelationAddressComponent;
|
|
5782
|
+
exports["ɵx"] = CheckoutOverviewDeliveryAddressComponent;
|
|
5783
|
+
exports["ɵy"] = CheckOutRelationSuggestionsListComponent;
|
|
5784
|
+
exports["ɵz"] = CheckOutRelationSuggestionsListItemComponent;
|
|
5785
|
+
|
|
5833
5786
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5834
5787
|
|
|
5835
|
-
}))
|
|
5788
|
+
}));
|
|
5836
5789
|
//# sourceMappingURL=colijnit-transaction.umd.js.map
|