@colijnit/transaction 1.9.29 → 12.0.2
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/checkout.component.d.ts +1 -1
- package/app/component/checkout/checkout-login/checkout-login.component.d.ts +1 -1
- package/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +1 -1
- package/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +2 -2
- package/app/component/checkout/ione-checkout.component.d.ts +1 -1
- package/app/component/common/icon/icon.component.d.ts +1 -2
- package/app/component/common/no-image-display/no-image-display.component.d.ts +1 -1
- package/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.d.ts +1 -1
- package/app/component/shopping-cart/ione-shopping-cart.component.d.ts +1 -1
- package/app/component/shopping-cart/shopping-cart/shopping-cart.component.d.ts +2 -2
- package/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.d.ts +1 -1
- package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +1 -1
- package/bundles/colijnit-transaction.umd.js +747 -807
- 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 +24 -26
- 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 +28 -41
- 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 +27 -36
- 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 +28 -33
- 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 +18 -20
- 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 +15 -21
- 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 +32 -47
- 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 +31 -49
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +27 -38
- 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 +8 -8
- 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 +15 -14
- package/esm2015/colijnit-transaction.js +15 -15
- package/esm2015/factory/decorators/complex-field.decorator.js +2 -2
- package/fesm2015/colijnit-transaction.js +638 -763
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +31 -19
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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/
|
|
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/
|
|
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.
|
|
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,
|
|
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_v12'), 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
|
+
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_v12', '@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
|
+
(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_v12, 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_v12, 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 = [];
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -2672,7 +2700,7 @@
|
|
|
2672
2700
|
}());
|
|
2673
2701
|
|
|
2674
2702
|
// The localization service, providing peers with text translation functionality.
|
|
2675
|
-
|
|
2703
|
+
var DictionaryService = /** @class */ (function () {
|
|
2676
2704
|
function DictionaryService() {
|
|
2677
2705
|
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
2678
2706
|
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
@@ -2684,7 +2712,7 @@
|
|
|
2684
2712
|
get: function () {
|
|
2685
2713
|
return this._language;
|
|
2686
2714
|
},
|
|
2687
|
-
enumerable:
|
|
2715
|
+
enumerable: false,
|
|
2688
2716
|
configurable: true
|
|
2689
2717
|
});
|
|
2690
2718
|
Object.defineProperty(DictionaryService.prototype, "rootUrl", {
|
|
@@ -2692,7 +2720,7 @@
|
|
|
2692
2720
|
this._rootUrl = value;
|
|
2693
2721
|
this._dictBasePath = this._rootUrl + "/" + this.dictionaryUrl;
|
|
2694
2722
|
},
|
|
2695
|
-
enumerable:
|
|
2723
|
+
enumerable: false,
|
|
2696
2724
|
configurable: true
|
|
2697
2725
|
});
|
|
2698
2726
|
// Loads the dictionary for given language in memory.
|
|
@@ -2703,9 +2731,9 @@
|
|
|
2703
2731
|
this._language = language || LanguageCode.Dutch;
|
|
2704
2732
|
if (!this._dictionaries.has(this._language)) {
|
|
2705
2733
|
dictionary = new Dictionary();
|
|
2706
|
-
//
|
|
2734
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2707
2735
|
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
2708
|
-
//
|
|
2736
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2709
2737
|
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
2710
2738
|
}
|
|
2711
2739
|
}
|
|
@@ -2738,17 +2766,18 @@
|
|
|
2738
2766
|
text = text.charAt(0).toLowerCase() + text.slice(1);
|
|
2739
2767
|
}
|
|
2740
2768
|
if (replacementTexts.length > 0) {
|
|
2741
|
-
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils,
|
|
2769
|
+
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
|
|
2742
2770
|
}
|
|
2743
2771
|
return text;
|
|
2744
2772
|
};
|
|
2745
2773
|
return DictionaryService;
|
|
2746
2774
|
}());
|
|
2747
|
-
|
|
2748
|
-
i0.Injectable
|
|
2749
|
-
]
|
|
2775
|
+
DictionaryService.decorators = [
|
|
2776
|
+
{ type: i0.Injectable }
|
|
2777
|
+
];
|
|
2778
|
+
DictionaryService.ctorParameters = function () { return []; };
|
|
2750
2779
|
|
|
2751
|
-
|
|
2780
|
+
var TransactionEventService = /** @class */ (function () {
|
|
2752
2781
|
function TransactionEventService() {
|
|
2753
2782
|
this.addToCartBySku = new rxjs.Subject();
|
|
2754
2783
|
this.addToCartBySelectorResult = new rxjs.Subject();
|
|
@@ -2759,10 +2788,10 @@
|
|
|
2759
2788
|
}
|
|
2760
2789
|
return TransactionEventService;
|
|
2761
2790
|
}());
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
i0.Injectable
|
|
2765
|
-
]
|
|
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
|
+
];
|
|
2766
2795
|
|
|
2767
2796
|
var CheckoutSteps;
|
|
2768
2797
|
(function (CheckoutSteps) {
|
|
@@ -2774,7 +2803,7 @@
|
|
|
2774
2803
|
CheckoutSteps[CheckoutSteps["Printing"] = 4] = "Printing";
|
|
2775
2804
|
})(CheckoutSteps || (CheckoutSteps = {}));
|
|
2776
2805
|
|
|
2777
|
-
|
|
2806
|
+
var CheckoutOverviewBlockComponent = /** @class */ (function () {
|
|
2778
2807
|
function CheckoutOverviewBlockComponent() {
|
|
2779
2808
|
this.sequenceNr = 1;
|
|
2780
2809
|
this.startInEdit = false;
|
|
@@ -2799,27 +2828,22 @@
|
|
|
2799
2828
|
};
|
|
2800
2829
|
return CheckoutOverviewBlockComponent;
|
|
2801
2830
|
}());
|
|
2802
|
-
|
|
2803
|
-
i0.
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
i0.
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
selector: "checkout-overview-block",
|
|
2817
|
-
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 ",
|
|
2818
|
-
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}"]
|
|
2819
|
-
})
|
|
2820
|
-
], 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
|
+
};
|
|
2821
2845
|
|
|
2822
|
-
|
|
2846
|
+
var CheckoutOverviewRelationEditComponent = /** @class */ (function () {
|
|
2823
2847
|
function CheckoutOverviewRelationEditComponent(_changeDetector, _transactionService) {
|
|
2824
2848
|
var _this = this;
|
|
2825
2849
|
this._changeDetector = _changeDetector;
|
|
@@ -2842,7 +2866,7 @@
|
|
|
2842
2866
|
// fetches relation suggestions
|
|
2843
2867
|
this._relationNameChangeHandler = functionUtils.FunctionUtils.Throttle(function () {
|
|
2844
2868
|
return _this._relationNameChangedHandlerFn();
|
|
2845
|
-
//
|
|
2869
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2846
2870
|
}, 600);
|
|
2847
2871
|
}
|
|
2848
2872
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "relation", {
|
|
@@ -2854,14 +2878,14 @@
|
|
|
2854
2878
|
this.preparePrimaryEmail();
|
|
2855
2879
|
this.preparePrimaryPhone();
|
|
2856
2880
|
},
|
|
2857
|
-
enumerable:
|
|
2881
|
+
enumerable: false,
|
|
2858
2882
|
configurable: true
|
|
2859
2883
|
});
|
|
2860
2884
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "relationAsCustomer", {
|
|
2861
2885
|
get: function () {
|
|
2862
2886
|
return this._relation && this._relation;
|
|
2863
2887
|
},
|
|
2864
|
-
enumerable:
|
|
2888
|
+
enumerable: false,
|
|
2865
2889
|
configurable: true
|
|
2866
2890
|
});
|
|
2867
2891
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "editFirstAddress", {
|
|
@@ -2878,7 +2902,7 @@
|
|
|
2878
2902
|
return address;
|
|
2879
2903
|
}
|
|
2880
2904
|
},
|
|
2881
|
-
enumerable:
|
|
2905
|
+
enumerable: false,
|
|
2882
2906
|
configurable: true
|
|
2883
2907
|
});
|
|
2884
2908
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "firstAddress", {
|
|
@@ -2894,14 +2918,14 @@
|
|
|
2894
2918
|
addressType_enum.AddressType.NursingAddress
|
|
2895
2919
|
]);
|
|
2896
2920
|
},
|
|
2897
|
-
enumerable:
|
|
2921
|
+
enumerable: false,
|
|
2898
2922
|
configurable: true
|
|
2899
2923
|
});
|
|
2900
2924
|
Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "applicationUser", {
|
|
2901
2925
|
get: function () {
|
|
2902
2926
|
return this._transactionService.applicationUser;
|
|
2903
2927
|
},
|
|
2904
|
-
enumerable:
|
|
2928
|
+
enumerable: false,
|
|
2905
2929
|
configurable: true
|
|
2906
2930
|
});
|
|
2907
2931
|
CheckoutOverviewRelationEditComponent.prototype.ngOnInit = function () {
|
|
@@ -3075,35 +3099,27 @@
|
|
|
3075
3099
|
};
|
|
3076
3100
|
return CheckoutOverviewRelationEditComponent;
|
|
3077
3101
|
}());
|
|
3078
|
-
|
|
3079
|
-
i0.
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
i0.
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
i0.Output
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
i0.Component({
|
|
3098
|
-
selector: "checkout-overview-relation-edit",
|
|
3099
|
-
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 ",
|
|
3100
|
-
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}"]
|
|
3101
|
-
}),
|
|
3102
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
3103
|
-
__param(1, i0.Inject(exports.ɵf))
|
|
3104
|
-
], 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_v12.FormComponent, { static: true },] }],
|
|
3115
|
+
relationSidebar: [{ type: i0.ViewChild, args: [corecomponents_v12.CoSidebarComponent, { static: false },] }],
|
|
3116
|
+
relation: [{ type: i0.Input }],
|
|
3117
|
+
transaction: [{ type: i0.Input }],
|
|
3118
|
+
validSubmit: [{ type: i0.Output }],
|
|
3119
|
+
invalidSubmit: [{ type: i0.Output }]
|
|
3120
|
+
};
|
|
3105
3121
|
|
|
3106
|
-
|
|
3122
|
+
var CheckoutOverviewDeliveryEditComponent = /** @class */ (function () {
|
|
3107
3123
|
function CheckoutOverviewDeliveryEditComponent(cdr, _dictionaryService, service) {
|
|
3108
3124
|
this.cdr = cdr;
|
|
3109
3125
|
this._dictionaryService = _dictionaryService;
|
|
@@ -3148,7 +3164,7 @@
|
|
|
3148
3164
|
}
|
|
3149
3165
|
return this.transaction.invoiceAddress;
|
|
3150
3166
|
},
|
|
3151
|
-
enumerable:
|
|
3167
|
+
enumerable: false,
|
|
3152
3168
|
configurable: true
|
|
3153
3169
|
});
|
|
3154
3170
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "deliveryAddress", {
|
|
@@ -3163,7 +3179,7 @@
|
|
|
3163
3179
|
}
|
|
3164
3180
|
return this.transaction.transactionAddress;
|
|
3165
3181
|
},
|
|
3166
|
-
enumerable:
|
|
3182
|
+
enumerable: false,
|
|
3167
3183
|
configurable: true
|
|
3168
3184
|
});
|
|
3169
3185
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "deliveryDate", {
|
|
@@ -3176,7 +3192,7 @@
|
|
|
3176
3192
|
set: function (value) {
|
|
3177
3193
|
this.transaction.deliveryDate = value;
|
|
3178
3194
|
},
|
|
3179
|
-
enumerable:
|
|
3195
|
+
enumerable: false,
|
|
3180
3196
|
configurable: true
|
|
3181
3197
|
});
|
|
3182
3198
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "preferredDeliveryDate", {
|
|
@@ -3189,7 +3205,7 @@
|
|
|
3189
3205
|
set: function (value) {
|
|
3190
3206
|
this.transaction.preferredDeliveryDate = value;
|
|
3191
3207
|
},
|
|
3192
|
-
enumerable:
|
|
3208
|
+
enumerable: false,
|
|
3193
3209
|
configurable: true
|
|
3194
3210
|
});
|
|
3195
3211
|
CheckoutOverviewDeliveryEditComponent.prototype.newRelationAddress = function () {
|
|
@@ -3356,45 +3372,31 @@
|
|
|
3356
3372
|
};
|
|
3357
3373
|
return CheckoutOverviewDeliveryEditComponent;
|
|
3358
3374
|
}());
|
|
3359
|
-
|
|
3360
|
-
i0.
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
]
|
|
3371
|
-
|
|
3372
|
-
i0.
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
i0.
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
i0.Output
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
i0.Output()
|
|
3382
|
-
], exports.ɵh.prototype, "invalidSubmit", void 0);
|
|
3383
|
-
exports.ɵh = __decorate([
|
|
3384
|
-
i0.Component({
|
|
3385
|
-
selector: "checkout-overview-delivery-edit",
|
|
3386
|
-
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 ",
|
|
3387
|
-
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}"]
|
|
3388
|
-
}),
|
|
3389
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
3390
|
-
__param(1, i0.Inject(exports.ɵi)),
|
|
3391
|
-
__param(2, i0.Inject(exports.ɵf))
|
|
3392
|
-
], 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_v12.FormComponent },] }],
|
|
3389
|
+
locationForm: [{ type: i0.ViewChild, args: ["locationForm", { read: corecomponents_v12.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
|
+
};
|
|
3393
3397
|
|
|
3394
|
-
|
|
3395
|
-
function CheckoutOverviewComponent(
|
|
3396
|
-
// public service: RetailTransactionModuleService
|
|
3397
|
-
) {
|
|
3398
|
+
var CheckoutOverviewComponent = /** @class */ (function () {
|
|
3399
|
+
function CheckoutOverviewComponent() {
|
|
3398
3400
|
this.steps = CheckoutSteps;
|
|
3399
3401
|
//
|
|
3400
3402
|
// @ViewChild("paymentBlock", {read: CheckoutOverviewBlockComponent})
|
|
@@ -3408,7 +3410,7 @@
|
|
|
3408
3410
|
this.loginRequested = false;
|
|
3409
3411
|
this.currentStep = CheckoutSteps.Relation;
|
|
3410
3412
|
this.editMode = true;
|
|
3411
|
-
//
|
|
3413
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
3412
3414
|
this._subscriptions = [];
|
|
3413
3415
|
// TODO: subscribe to relation and transaction service
|
|
3414
3416
|
// this._subscriptions.push(service.relationUpdatedEventEmitter.subscribe((updated: boolean) => {
|
|
@@ -3525,49 +3527,29 @@
|
|
|
3525
3527
|
};
|
|
3526
3528
|
return CheckoutOverviewComponent;
|
|
3527
3529
|
}());
|
|
3528
|
-
|
|
3529
|
-
i0.
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
i0.ViewChild
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
i0.Input
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
i0.
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
i0.
|
|
3548
|
-
|
|
3549
|
-
__decorate([
|
|
3550
|
-
i0.Output()
|
|
3551
|
-
], exports.ɵc.prototype, "saveRelation", void 0);
|
|
3552
|
-
__decorate([
|
|
3553
|
-
i0.Output()
|
|
3554
|
-
], exports.ɵc.prototype, "saveDelivery", void 0);
|
|
3555
|
-
__decorate([
|
|
3556
|
-
i0.Output()
|
|
3557
|
-
], exports.ɵc.prototype, "savePayment", void 0);
|
|
3558
|
-
__decorate([
|
|
3559
|
-
i0.Output()
|
|
3560
|
-
], exports.ɵc.prototype, "stepFinished", void 0);
|
|
3561
|
-
exports.ɵc = __decorate([
|
|
3562
|
-
i0.Component({
|
|
3563
|
-
selector: "checkout-overview",
|
|
3564
|
-
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 ",
|
|
3565
|
-
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}"]
|
|
3566
|
-
})
|
|
3567
|
-
], 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
|
+
};
|
|
3568
3551
|
|
|
3569
|
-
var
|
|
3570
|
-
exports.ɵb = CheckoutComponent_1 = /** @class */ (function () {
|
|
3552
|
+
var CheckoutComponent = /** @class */ (function () {
|
|
3571
3553
|
function CheckoutComponent(service, promptService) {
|
|
3572
3554
|
this.service = service;
|
|
3573
3555
|
this.promptService = promptService;
|
|
@@ -3579,28 +3561,28 @@
|
|
|
3579
3561
|
get: function () {
|
|
3580
3562
|
return this.service.currentRelation;
|
|
3581
3563
|
},
|
|
3582
|
-
enumerable:
|
|
3564
|
+
enumerable: false,
|
|
3583
3565
|
configurable: true
|
|
3584
3566
|
});
|
|
3585
3567
|
Object.defineProperty(CheckoutComponent.prototype, "transaction", {
|
|
3586
3568
|
get: function () {
|
|
3587
3569
|
return this.service.currentTransaction;
|
|
3588
3570
|
},
|
|
3589
|
-
enumerable:
|
|
3571
|
+
enumerable: false,
|
|
3590
3572
|
configurable: true
|
|
3591
3573
|
});
|
|
3592
3574
|
Object.defineProperty(CheckoutComponent.prototype, "canContinue", {
|
|
3593
3575
|
get: function () {
|
|
3594
3576
|
return this.stepper && (this.stepper.selectedIndex !== 0 || !isNill_function.isNill(this.relation));
|
|
3595
3577
|
},
|
|
3596
|
-
enumerable:
|
|
3578
|
+
enumerable: false,
|
|
3597
3579
|
configurable: true
|
|
3598
3580
|
});
|
|
3599
3581
|
Object.defineProperty(CheckoutComponent.prototype, "finished", {
|
|
3600
3582
|
get: function () {
|
|
3601
3583
|
return this.stepper && this.stepper.steps && this.stepper.selectedIndex === this.stepper.steps.length - 1;
|
|
3602
3584
|
},
|
|
3603
|
-
enumerable:
|
|
3585
|
+
enumerable: false,
|
|
3604
3586
|
configurable: true
|
|
3605
3587
|
});
|
|
3606
3588
|
Object.defineProperty(CheckoutComponent.prototype, "userIsApplicationUser", {
|
|
@@ -3608,7 +3590,7 @@
|
|
|
3608
3590
|
// TODO: return this.userService.isApplicationUser;
|
|
3609
3591
|
return true;
|
|
3610
3592
|
},
|
|
3611
|
-
enumerable:
|
|
3593
|
+
enumerable: false,
|
|
3612
3594
|
configurable: true
|
|
3613
3595
|
});
|
|
3614
3596
|
CheckoutComponent._currentStepByIndex = function (index) {
|
|
@@ -3625,12 +3607,12 @@
|
|
|
3625
3607
|
};
|
|
3626
3608
|
CheckoutComponent.prototype.continue = function () {
|
|
3627
3609
|
var toNextStep = false;
|
|
3628
|
-
if (
|
|
3610
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Relation) {
|
|
3629
3611
|
toNextStep = this.overview.relationForm.submit();
|
|
3630
3612
|
this.completedRelation = toNextStep;
|
|
3631
3613
|
this.completedDelivery = false;
|
|
3632
3614
|
}
|
|
3633
|
-
if (
|
|
3615
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Delivery) {
|
|
3634
3616
|
toNextStep = this.overview.deliveryForm.submit();
|
|
3635
3617
|
this.completedDelivery = toNextStep;
|
|
3636
3618
|
}
|
|
@@ -3703,7 +3685,7 @@
|
|
|
3703
3685
|
});
|
|
3704
3686
|
};
|
|
3705
3687
|
CheckoutComponent.prototype.stepChanged = function (event) {
|
|
3706
|
-
this.overview.moveToStep(
|
|
3688
|
+
this.overview.moveToStep(CheckoutComponent._currentStepByIndex(event.selectedIndex), true);
|
|
3707
3689
|
};
|
|
3708
3690
|
CheckoutComponent.prototype.insertData = function () {
|
|
3709
3691
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3734,23 +3716,23 @@
|
|
|
3734
3716
|
};
|
|
3735
3717
|
return CheckoutComponent;
|
|
3736
3718
|
}());
|
|
3737
|
-
|
|
3738
|
-
i0.
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
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_v12.PromptService }
|
|
3729
|
+
]; };
|
|
3730
|
+
CheckoutComponent.propDecorators = {
|
|
3731
|
+
overview: [{ type: i0.ViewChild, args: [CheckoutOverviewComponent,] }],
|
|
3732
|
+
stepper: [{ type: i0.ViewChild, args: ["stepper",] }]
|
|
3733
|
+
};
|
|
3752
3734
|
|
|
3753
|
-
|
|
3735
|
+
var RetailTransactionCheckoutComponent = /** @class */ (function () {
|
|
3754
3736
|
function RetailTransactionCheckoutComponent(service) {
|
|
3755
3737
|
this.service = service;
|
|
3756
3738
|
}
|
|
@@ -3759,7 +3741,7 @@
|
|
|
3759
3741
|
var _a;
|
|
3760
3742
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) !== 0;
|
|
3761
3743
|
},
|
|
3762
|
-
enumerable:
|
|
3744
|
+
enumerable: false,
|
|
3763
3745
|
configurable: true
|
|
3764
3746
|
});
|
|
3765
3747
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "canContinue", {
|
|
@@ -3767,7 +3749,7 @@
|
|
|
3767
3749
|
var _a;
|
|
3768
3750
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) !== 3;
|
|
3769
3751
|
},
|
|
3770
|
-
enumerable:
|
|
3752
|
+
enumerable: false,
|
|
3771
3753
|
configurable: true
|
|
3772
3754
|
});
|
|
3773
3755
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "started", {
|
|
@@ -3775,14 +3757,14 @@
|
|
|
3775
3757
|
var _a;
|
|
3776
3758
|
return this.checkout && ((_a = this.checkout.stepper) === null || _a === void 0 ? void 0 : _a.selectedIndex) === 0;
|
|
3777
3759
|
},
|
|
3778
|
-
enumerable:
|
|
3760
|
+
enumerable: false,
|
|
3779
3761
|
configurable: true
|
|
3780
3762
|
});
|
|
3781
3763
|
Object.defineProperty(RetailTransactionCheckoutComponent.prototype, "finished", {
|
|
3782
3764
|
get: function () {
|
|
3783
3765
|
return this.checkout && this.checkout.finished;
|
|
3784
3766
|
},
|
|
3785
|
-
enumerable:
|
|
3767
|
+
enumerable: false,
|
|
3786
3768
|
configurable: true
|
|
3787
3769
|
});
|
|
3788
3770
|
RetailTransactionCheckoutComponent.prototype.continueCheckout = function () {
|
|
@@ -3793,19 +3775,21 @@
|
|
|
3793
3775
|
};
|
|
3794
3776
|
return RetailTransactionCheckoutComponent;
|
|
3795
3777
|
}());
|
|
3796
|
-
|
|
3797
|
-
i0.
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
|
-
|
|
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
|
+
};
|
|
3807
3791
|
|
|
3808
|
-
|
|
3792
|
+
var CheckoutLoginComponent = /** @class */ (function () {
|
|
3809
3793
|
function CheckoutLoginComponent() {
|
|
3810
3794
|
this.createNewAccountSubmit = new i0.EventEmitter();
|
|
3811
3795
|
this.continueWithoutSubmit = new i0.EventEmitter();
|
|
@@ -3841,30 +3825,23 @@
|
|
|
3841
3825
|
};
|
|
3842
3826
|
return CheckoutLoginComponent;
|
|
3843
3827
|
}());
|
|
3844
|
-
|
|
3845
|
-
i0.
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
i0.
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
i0.Output
|
|
3858
|
-
|
|
3859
|
-
exports.ɵj = __decorate([
|
|
3860
|
-
i0.Component({
|
|
3861
|
-
selector: "checkout-login",
|
|
3862
|
-
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 ",
|
|
3863
|
-
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}"]
|
|
3864
|
-
})
|
|
3865
|
-
], 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
|
+
};
|
|
3866
3843
|
|
|
3867
|
-
|
|
3844
|
+
var IoneCheckoutComponent = /** @class */ (function () {
|
|
3868
3845
|
function IoneCheckoutComponent(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService, globalEvents) {
|
|
3869
3846
|
var _this = this;
|
|
3870
3847
|
this._changeDetector = _changeDetector;
|
|
@@ -3901,7 +3878,7 @@
|
|
|
3901
3878
|
this._optionsService.initialize(options).then();
|
|
3902
3879
|
}
|
|
3903
3880
|
},
|
|
3904
|
-
enumerable:
|
|
3881
|
+
enumerable: false,
|
|
3905
3882
|
configurable: true
|
|
3906
3883
|
});
|
|
3907
3884
|
Object.defineProperty(IoneCheckoutComponent.prototype, "applicationUser", {
|
|
@@ -3912,14 +3889,14 @@
|
|
|
3912
3889
|
this._applicationUser = value;
|
|
3913
3890
|
this._service.applicationUser = this.applicationUser;
|
|
3914
3891
|
},
|
|
3915
|
-
enumerable:
|
|
3892
|
+
enumerable: false,
|
|
3916
3893
|
configurable: true
|
|
3917
3894
|
});
|
|
3918
3895
|
Object.defineProperty(IoneCheckoutComponent.prototype, "transactionNr", {
|
|
3919
3896
|
get: function () {
|
|
3920
3897
|
return this._service.currentTransaction.transactionNr;
|
|
3921
3898
|
},
|
|
3922
|
-
enumerable:
|
|
3899
|
+
enumerable: false,
|
|
3923
3900
|
configurable: true
|
|
3924
3901
|
});
|
|
3925
3902
|
IoneCheckoutComponent.prototype.ngOnInit = function () {
|
|
@@ -3987,34 +3964,30 @@
|
|
|
3987
3964
|
};
|
|
3988
3965
|
return IoneCheckoutComponent;
|
|
3989
3966
|
}());
|
|
3990
|
-
|
|
3991
|
-
i0.
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
]
|
|
3996
|
-
|
|
3997
|
-
i0.
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
__param(5, i0.Inject(exports.ɵl)),
|
|
4013
|
-
__param(6, i0.Inject(corecomponents_v9.PromptService)),
|
|
4014
|
-
__param(7, i0.Inject(exports.ɵl))
|
|
4015
|
-
], 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_v12.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
|
+
};
|
|
4016
3989
|
|
|
4017
|
-
|
|
3990
|
+
var CheckoutOverviewRelationAddressComponent = /** @class */ (function () {
|
|
4018
3991
|
function CheckoutOverviewRelationAddressComponent(_dictionary, _connector) {
|
|
4019
3992
|
this._dictionary = _dictionary;
|
|
4020
3993
|
this._connector = _connector;
|
|
@@ -4033,7 +4006,7 @@
|
|
|
4033
4006
|
set: function (address) {
|
|
4034
4007
|
this._address = address;
|
|
4035
4008
|
},
|
|
4036
|
-
enumerable:
|
|
4009
|
+
enumerable: false,
|
|
4037
4010
|
configurable: true
|
|
4038
4011
|
});
|
|
4039
4012
|
CheckoutOverviewRelationAddressComponent.prototype.ngOnInit = function () {
|
|
@@ -4086,23 +4059,23 @@
|
|
|
4086
4059
|
};
|
|
4087
4060
|
return CheckoutOverviewRelationAddressComponent;
|
|
4088
4061
|
}());
|
|
4089
|
-
|
|
4090
|
-
i0.
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
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
|
+
};
|
|
4104
4077
|
|
|
4105
|
-
|
|
4078
|
+
var CheckoutOverviewDeliveryAddressComponent = /** @class */ (function () {
|
|
4106
4079
|
function CheckoutOverviewDeliveryAddressComponent(service) {
|
|
4107
4080
|
this.service = service;
|
|
4108
4081
|
this.editRequest = new i0.EventEmitter();
|
|
@@ -4112,23 +4085,21 @@
|
|
|
4112
4085
|
};
|
|
4113
4086
|
return CheckoutOverviewDeliveryAddressComponent;
|
|
4114
4087
|
}());
|
|
4115
|
-
|
|
4116
|
-
i0.
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
__param(0, i0.Inject(exports.ɵf))
|
|
4131
|
-
], 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
|
+
};
|
|
4132
4103
|
|
|
4133
4104
|
// Direction type for regular straight directions.
|
|
4134
4105
|
var Direction;
|
|
@@ -4139,7 +4110,7 @@
|
|
|
4139
4110
|
Direction["Down"] = "bottom";
|
|
4140
4111
|
})(Direction || (Direction = {}));
|
|
4141
4112
|
|
|
4142
|
-
|
|
4113
|
+
var CheckOutRelationSuggestionsListComponent = /** @class */ (function () {
|
|
4143
4114
|
function CheckOutRelationSuggestionsListComponent() {
|
|
4144
4115
|
this.suggestions = [];
|
|
4145
4116
|
this.arrowDirection = Direction.Left;
|
|
@@ -4148,27 +4119,23 @@
|
|
|
4148
4119
|
}
|
|
4149
4120
|
return CheckOutRelationSuggestionsListComponent;
|
|
4150
4121
|
}());
|
|
4151
|
-
|
|
4152
|
-
i0.
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
},
|
|
4167
|
-
styles: [""]
|
|
4168
|
-
})
|
|
4169
|
-
], 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
|
+
};
|
|
4170
4137
|
|
|
4171
|
-
|
|
4138
|
+
var CheckOutRelationSuggestionsListItemComponent = /** @class */ (function () {
|
|
4172
4139
|
function CheckOutRelationSuggestionsListItemComponent() {
|
|
4173
4140
|
this.buttonClick = new i0.EventEmitter();
|
|
4174
4141
|
// public icon: Icon;
|
|
@@ -4179,7 +4146,7 @@
|
|
|
4179
4146
|
this._arrowDirection = arrowDirection;
|
|
4180
4147
|
this._updateIcon();
|
|
4181
4148
|
},
|
|
4182
|
-
enumerable:
|
|
4149
|
+
enumerable: false,
|
|
4183
4150
|
configurable: true
|
|
4184
4151
|
});
|
|
4185
4152
|
CheckOutRelationSuggestionsListItemComponent.prototype.ngOnInit = function () {
|
|
@@ -4194,24 +4161,22 @@
|
|
|
4194
4161
|
};
|
|
4195
4162
|
return CheckOutRelationSuggestionsListItemComponent;
|
|
4196
4163
|
}());
|
|
4197
|
-
|
|
4198
|
-
i0.
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
i0.
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
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}"]
|
|
4211
|
-
})
|
|
4212
|
-
], 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
|
+
};
|
|
4213
4177
|
|
|
4214
|
-
|
|
4178
|
+
// A pipe for appending strings to other strings in view templates.
|
|
4179
|
+
var AppendPipe = /** @class */ (function () {
|
|
4215
4180
|
function AppendPipe() {
|
|
4216
4181
|
}
|
|
4217
4182
|
AppendPipe.prototype.transform = function (value, append) {
|
|
@@ -4225,9 +4190,9 @@
|
|
|
4225
4190
|
};
|
|
4226
4191
|
return AppendPipe;
|
|
4227
4192
|
}());
|
|
4228
|
-
|
|
4229
|
-
i0.Pipe
|
|
4230
|
-
]
|
|
4193
|
+
AppendPipe.decorators = [
|
|
4194
|
+
{ type: i0.Pipe, args: [{ name: "append" },] }
|
|
4195
|
+
];
|
|
4231
4196
|
|
|
4232
4197
|
// Time size types, as in 'days' or 'weeks' or 'months'.
|
|
4233
4198
|
var TimeSizeType;
|
|
@@ -4239,7 +4204,7 @@
|
|
|
4239
4204
|
TimeSizeType["Years"] = "years";
|
|
4240
4205
|
})(TimeSizeType || (TimeSizeType = {}));
|
|
4241
4206
|
|
|
4242
|
-
|
|
4207
|
+
var DateDurationPipe = /** @class */ (function () {
|
|
4243
4208
|
function DateDurationPipe(_dictionary) {
|
|
4244
4209
|
this._dictionary = _dictionary;
|
|
4245
4210
|
}
|
|
@@ -4287,12 +4252,14 @@
|
|
|
4287
4252
|
};
|
|
4288
4253
|
return DateDurationPipe;
|
|
4289
4254
|
}());
|
|
4290
|
-
|
|
4291
|
-
i0.Pipe
|
|
4292
|
-
|
|
4293
|
-
|
|
4255
|
+
DateDurationPipe.decorators = [
|
|
4256
|
+
{ type: i0.Pipe, args: [{ name: "dateDuration", pure: false },] }
|
|
4257
|
+
];
|
|
4258
|
+
DateDurationPipe.ctorParameters = function () { return [
|
|
4259
|
+
{ type: DictionaryService }
|
|
4260
|
+
]; };
|
|
4294
4261
|
|
|
4295
|
-
|
|
4262
|
+
var DeliveryTimePipe = /** @class */ (function (_super) {
|
|
4296
4263
|
__extends(DeliveryTimePipe, _super);
|
|
4297
4264
|
function DeliveryTimePipe(_dictionaryService) {
|
|
4298
4265
|
return _super.call(this, _dictionaryService) || this;
|
|
@@ -4315,14 +4282,17 @@
|
|
|
4315
4282
|
}
|
|
4316
4283
|
};
|
|
4317
4284
|
return DeliveryTimePipe;
|
|
4318
|
-
}(
|
|
4319
|
-
|
|
4320
|
-
i0.Pipe
|
|
4321
|
-
|
|
4322
|
-
|
|
4285
|
+
}(DateDurationPipe));
|
|
4286
|
+
DeliveryTimePipe.decorators = [
|
|
4287
|
+
{ type: i0.Pipe, args: [{ name: "deliveryTime", pure: false },] }
|
|
4288
|
+
];
|
|
4289
|
+
DeliveryTimePipe.ctorParameters = function () { return [
|
|
4290
|
+
{ type: DictionaryService }
|
|
4291
|
+
]; };
|
|
4323
4292
|
|
|
4324
|
-
|
|
4325
|
-
|
|
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
|
|
4326
4296
|
function LocalizePipe(_dictionaryService) {
|
|
4327
4297
|
this._dictionaryService = _dictionaryService;
|
|
4328
4298
|
}
|
|
@@ -4337,21 +4307,24 @@
|
|
|
4337
4307
|
if (!Array.isArray(replace)) {
|
|
4338
4308
|
replace = [replace];
|
|
4339
4309
|
}
|
|
4340
|
-
return (_a = this._dictionaryService).get.apply(_a,
|
|
4310
|
+
return (_a = this._dictionaryService).get.apply(_a, __spreadArray([value, upperCaseFirst], __read(replace)));
|
|
4341
4311
|
};
|
|
4342
4312
|
return LocalizePipe;
|
|
4343
4313
|
}());
|
|
4344
|
-
|
|
4345
|
-
i0.Pipe
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
]
|
|
4314
|
+
LocalizePipe.decorators = [
|
|
4315
|
+
{ type: i0.Pipe, args: [{
|
|
4316
|
+
name: "localize"
|
|
4317
|
+
},] }
|
|
4318
|
+
];
|
|
4319
|
+
LocalizePipe.ctorParameters = function () { return [
|
|
4320
|
+
{ type: DictionaryService }
|
|
4321
|
+
]; };
|
|
4352
4322
|
|
|
4353
|
-
|
|
4354
|
-
|
|
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 () {
|
|
4355
4328
|
function CoCurrencyPipe() {
|
|
4356
4329
|
}
|
|
4357
4330
|
CoCurrencyPipe.prototype.transform = function (value, allowZero) {
|
|
@@ -4374,7 +4347,7 @@
|
|
|
4374
4347
|
}
|
|
4375
4348
|
// append ,- if integer
|
|
4376
4349
|
if (numberUtils.NumberUtils.IsInteger(valueAsFloat)) {
|
|
4377
|
-
suffix =
|
|
4350
|
+
suffix = CoCurrencyPipe._WholeNumberedPriceSuffix;
|
|
4378
4351
|
}
|
|
4379
4352
|
var valueAsString = valueAsFloat.toString();
|
|
4380
4353
|
// add extra zero if price has only one decimal, something like '100.2'
|
|
@@ -4386,17 +4359,17 @@
|
|
|
4386
4359
|
valueAsString = valueAsString.replace(",", "#");
|
|
4387
4360
|
valueAsString = valueAsString.replace(".", ",");
|
|
4388
4361
|
valueAsString = valueAsString.replace("#", ".");
|
|
4389
|
-
return
|
|
4362
|
+
return CoCurrencyPipe._CurrencySymbol + " " + valueAsString + suffix;
|
|
4390
4363
|
};
|
|
4391
4364
|
return CoCurrencyPipe;
|
|
4392
4365
|
}());
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
i0.Pipe
|
|
4397
|
-
]
|
|
4366
|
+
CoCurrencyPipe._CurrencySymbol = "€";
|
|
4367
|
+
CoCurrencyPipe._WholeNumberedPriceSuffix = ",-";
|
|
4368
|
+
CoCurrencyPipe.decorators = [
|
|
4369
|
+
{ type: i0.Pipe, args: [{ name: "coCurrency" },] }
|
|
4370
|
+
];
|
|
4398
4371
|
|
|
4399
|
-
|
|
4372
|
+
var SafeStylePipe = /** @class */ (function () {
|
|
4400
4373
|
function SafeStylePipe(_sanitizer) {
|
|
4401
4374
|
this._sanitizer = _sanitizer;
|
|
4402
4375
|
}
|
|
@@ -4405,14 +4378,16 @@
|
|
|
4405
4378
|
};
|
|
4406
4379
|
return SafeStylePipe;
|
|
4407
4380
|
}());
|
|
4408
|
-
|
|
4409
|
-
i0.Pipe
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4381
|
+
SafeStylePipe.decorators = [
|
|
4382
|
+
{ type: i0.Pipe, args: [{
|
|
4383
|
+
name: "safeStyle"
|
|
4384
|
+
},] }
|
|
4385
|
+
];
|
|
4386
|
+
SafeStylePipe.ctorParameters = function () { return [
|
|
4387
|
+
{ type: platformBrowser.DomSanitizer }
|
|
4388
|
+
]; };
|
|
4414
4389
|
|
|
4415
|
-
|
|
4390
|
+
var ImageDisplayComponent = /** @class */ (function () {
|
|
4416
4391
|
function ImageDisplayComponent() {
|
|
4417
4392
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4418
4393
|
this.label = "NO_IMAGE";
|
|
@@ -4429,68 +4404,51 @@
|
|
|
4429
4404
|
get: function () {
|
|
4430
4405
|
return (this.hideOnEmptyModel && !this.model);
|
|
4431
4406
|
},
|
|
4432
|
-
enumerable:
|
|
4407
|
+
enumerable: false,
|
|
4433
4408
|
configurable: true
|
|
4434
4409
|
});
|
|
4435
4410
|
return ImageDisplayComponent;
|
|
4436
4411
|
}());
|
|
4437
|
-
|
|
4438
|
-
i0.
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
i0.Input
|
|
4448
|
-
i0.HostBinding
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
i0.
|
|
4452
|
-
|
|
4453
|
-
], exports.ɵx.prototype, "cover", void 0);
|
|
4454
|
-
__decorate([
|
|
4455
|
-
i0.Input(),
|
|
4456
|
-
i0.HostBinding("class.pointer-hover")
|
|
4457
|
-
], exports.ɵx.prototype, "pointerOnHover", void 0);
|
|
4458
|
-
__decorate([
|
|
4459
|
-
i0.HostBinding("class.hidden")
|
|
4460
|
-
], exports.ɵx.prototype, "shouldBeHidden", null);
|
|
4461
|
-
exports.ɵx = __decorate([
|
|
4462
|
-
i0.Component({
|
|
4463
|
-
selector: "image-display",
|
|
4464
|
-
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 ",
|
|
4465
|
-
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%}"]
|
|
4466
|
-
})
|
|
4467
|
-
], 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
|
+
};
|
|
4468
4428
|
|
|
4469
|
-
|
|
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 () {
|
|
4470
4431
|
function NoImageDisplayComponent() {
|
|
4471
4432
|
// The placeholder icon to show when there is no image. Defaults to 'camera'.
|
|
4472
|
-
this.icon =
|
|
4433
|
+
this.icon = corecomponents_v12.CoreComponentsIcon.Camera;
|
|
4473
4434
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4474
4435
|
this.label = "NO_IMAGE";
|
|
4475
4436
|
}
|
|
4476
4437
|
return NoImageDisplayComponent;
|
|
4477
4438
|
}());
|
|
4478
|
-
|
|
4479
|
-
i0.
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
})
|
|
4490
|
-
// Component that shows a standardized icon and text for when there was no image (default: a camera icon and the 'no image' text).
|
|
4491
|
-
], 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
|
+
};
|
|
4492
4450
|
|
|
4493
|
-
|
|
4451
|
+
var IconComponent = /** @class */ (function () {
|
|
4494
4452
|
function IconComponent(_iconCacheService) {
|
|
4495
4453
|
this._iconCacheService = _iconCacheService;
|
|
4496
4454
|
}
|
|
@@ -4498,7 +4456,7 @@
|
|
|
4498
4456
|
set: function (icon) {
|
|
4499
4457
|
this._setSvg(icon);
|
|
4500
4458
|
},
|
|
4501
|
-
enumerable:
|
|
4459
|
+
enumerable: false,
|
|
4502
4460
|
configurable: true
|
|
4503
4461
|
});
|
|
4504
4462
|
IconComponent.prototype.ngOnDestroy = function () {
|
|
@@ -4509,115 +4467,114 @@
|
|
|
4509
4467
|
};
|
|
4510
4468
|
return IconComponent;
|
|
4511
4469
|
}());
|
|
4512
|
-
|
|
4513
|
-
i0.
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
}
|
|
4524
|
-
|
|
4525
|
-
|
|
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_v12.IconCacheService }
|
|
4479
|
+
]; };
|
|
4480
|
+
IconComponent.propDecorators = {
|
|
4481
|
+
icon: [{ type: i0.Input }],
|
|
4482
|
+
svg: [{ type: i0.HostBinding, args: ["innerHtml",] }]
|
|
4483
|
+
};
|
|
4526
4484
|
|
|
4527
|
-
|
|
4485
|
+
var CoreModule = /** @class */ (function () {
|
|
4528
4486
|
function CoreModule() {
|
|
4529
4487
|
}
|
|
4530
4488
|
return CoreModule;
|
|
4531
4489
|
}());
|
|
4532
|
-
|
|
4533
|
-
i0.NgModule
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
]
|
|
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
|
+
];
|
|
4561
4519
|
|
|
4562
|
-
|
|
4520
|
+
var IoneCheckoutModule = /** @class */ (function () {
|
|
4563
4521
|
function IoneCheckoutModule() {
|
|
4564
4522
|
}
|
|
4565
4523
|
return IoneCheckoutModule;
|
|
4566
4524
|
}());
|
|
4567
|
-
|
|
4568
|
-
i0.NgModule
|
|
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
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
], exports.IoneCheckoutModule);
|
|
4525
|
+
IoneCheckoutModule.decorators = [
|
|
4526
|
+
{ type: i0.NgModule, args: [{
|
|
4527
|
+
imports: [
|
|
4528
|
+
animations.BrowserAnimationsModule,
|
|
4529
|
+
corecomponents_v12.IconModule,
|
|
4530
|
+
corecomponents_v12.InputTextModule,
|
|
4531
|
+
corecomponents_v12.InputCheckboxModule,
|
|
4532
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
4533
|
+
corecomponents_v12.FormModule,
|
|
4534
|
+
corecomponents_v12.InputComboBoxModule,
|
|
4535
|
+
corecomponents_v12.InputDatePickerModule,
|
|
4536
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
4537
|
+
corecomponents_v12.CoDialogModule,
|
|
4538
|
+
corecomponents_v12.CoDialogPromptModule,
|
|
4539
|
+
corecomponents_v12.ButtonModule,
|
|
4540
|
+
flexLayout.FlexModule,
|
|
4541
|
+
corecomponents_v12.MultiSelectListModule,
|
|
4542
|
+
stepper.MatStepperModule,
|
|
4543
|
+
corecomponents_v12.DropDownModule,
|
|
4544
|
+
corecomponents_v12.PopupModule.forRoot(),
|
|
4545
|
+
corecomponents_v12.CoSidebarModule,
|
|
4546
|
+
corecomponents_v12.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
|
+
];
|
|
4619
4576
|
|
|
4620
|
-
|
|
4577
|
+
var ShoppingCartManagerComponent = /** @class */ (function () {
|
|
4621
4578
|
function ShoppingCartManagerComponent(service, transactionEvents, promptService, _dictionaryService) {
|
|
4622
4579
|
var _this = this;
|
|
4623
4580
|
this.service = service;
|
|
@@ -4663,7 +4620,7 @@
|
|
|
4663
4620
|
get: function () {
|
|
4664
4621
|
return numberUtils.NumberUtils.NrOrDefault(this.service.articleAmount, 0);
|
|
4665
4622
|
},
|
|
4666
|
-
enumerable:
|
|
4623
|
+
enumerable: false,
|
|
4667
4624
|
configurable: true
|
|
4668
4625
|
});
|
|
4669
4626
|
Object.defineProperty(ShoppingCartManagerComponent.prototype, "showCharacteristicDialog", {
|
|
@@ -4673,7 +4630,7 @@
|
|
|
4673
4630
|
set: function (value) {
|
|
4674
4631
|
this._showCharacteristic = value;
|
|
4675
4632
|
},
|
|
4676
|
-
enumerable:
|
|
4633
|
+
enumerable: false,
|
|
4677
4634
|
configurable: true
|
|
4678
4635
|
});
|
|
4679
4636
|
ShoppingCartManagerComponent.prototype.ngOnInit = function () {
|
|
@@ -5131,40 +5088,32 @@
|
|
|
5131
5088
|
this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
|
|
5132
5089
|
setTimeout(function () {
|
|
5133
5090
|
_this.characteristicAnswer.open();
|
|
5134
|
-
//
|
|
5091
|
+
// eslint-disable-next-line no-magic-numbers
|
|
5135
5092
|
}, 1000);
|
|
5136
5093
|
};
|
|
5137
5094
|
return ShoppingCartManagerComponent;
|
|
5138
5095
|
}());
|
|
5139
|
-
|
|
5140
|
-
i0.
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
i0.
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
i0.
|
|
5159
|
-
|
|
5160
|
-
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 ",
|
|
5161
|
-
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}co-input-number-picker co-button{max-width:20px}"]
|
|
5162
|
-
}),
|
|
5163
|
-
__param(0, i0.Inject(exports.ɵf)),
|
|
5164
|
-
__param(1, i0.Inject(exports.ɵl)),
|
|
5165
|
-
__param(2, i0.Inject(corecomponents_v9.PromptService)),
|
|
5166
|
-
__param(3, i0.Inject(exports.ɵi))
|
|
5167
|
-
], 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_v12.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
|
+
};
|
|
5168
5117
|
|
|
5169
5118
|
var OrderDiscountType;
|
|
5170
5119
|
(function (OrderDiscountType) {
|
|
@@ -5183,7 +5132,7 @@
|
|
|
5183
5132
|
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
5184
5133
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
5185
5134
|
|
|
5186
|
-
|
|
5135
|
+
var ShoppingCartComponent = /** @class */ (function () {
|
|
5187
5136
|
function ShoppingCartComponent(iconCacheService, _dictionary, service, _transactionEvents, _changeDetector) {
|
|
5188
5137
|
var _this = this;
|
|
5189
5138
|
this.iconCacheService = iconCacheService;
|
|
@@ -5192,8 +5141,8 @@
|
|
|
5192
5141
|
this._transactionEvents = _transactionEvents;
|
|
5193
5142
|
this._changeDetector = _changeDetector;
|
|
5194
5143
|
this.orderDiscountType = OrderDiscountType;
|
|
5195
|
-
this.iconThickLines =
|
|
5196
|
-
this.iconThinLines =
|
|
5144
|
+
this.iconThickLines = corecomponents_v12.CoreComponentsIcon.ThickLines;
|
|
5145
|
+
this.iconThinLines = corecomponents_v12.CoreComponentsIcon.ThinLines;
|
|
5197
5146
|
this.viewModes = ContentViewMode;
|
|
5198
5147
|
this.hideOverviewButton = false;
|
|
5199
5148
|
this.hideCheckoutButton = false;
|
|
@@ -5215,7 +5164,7 @@
|
|
|
5215
5164
|
get: function () {
|
|
5216
5165
|
return this._filteredCollection;
|
|
5217
5166
|
},
|
|
5218
|
-
enumerable:
|
|
5167
|
+
enumerable: false,
|
|
5219
5168
|
configurable: true
|
|
5220
5169
|
});
|
|
5221
5170
|
ShoppingCartComponent.prototype.setFilteredCollection = function (value) {
|
|
@@ -5305,49 +5254,33 @@
|
|
|
5305
5254
|
};
|
|
5306
5255
|
return ShoppingCartComponent;
|
|
5307
5256
|
}());
|
|
5308
|
-
|
|
5309
|
-
i0.
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
]
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
i0.
|
|
5321
|
-
]
|
|
5322
|
-
|
|
5323
|
-
i0.
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
i0.Input
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
i0.Output
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
], exports.ɵbb.prototype, "checkout", void 0);
|
|
5334
|
-
__decorate([
|
|
5335
|
-
i0.Output()
|
|
5336
|
-
], exports.ɵbb.prototype, "overview", void 0);
|
|
5337
|
-
exports.ɵbb = __decorate([
|
|
5338
|
-
i0.Component({
|
|
5339
|
-
selector: "shopping-cart",
|
|
5340
|
-
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 ",
|
|
5341
|
-
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}"]
|
|
5342
|
-
}),
|
|
5343
|
-
__param(0, i0.Inject(corecomponents_v9.IconCacheService)),
|
|
5344
|
-
__param(1, i0.Inject(exports.ɵi)),
|
|
5345
|
-
__param(2, i0.Inject(exports.ɵf)),
|
|
5346
|
-
__param(3, i0.Inject(exports.ɵl)),
|
|
5347
|
-
__param(4, i0.Inject(i0.ChangeDetectorRef))
|
|
5348
|
-
], 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_v12.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_v12.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
|
+
};
|
|
5349
5282
|
|
|
5350
|
-
|
|
5283
|
+
var IoneShoppingCartComponent = /** @class */ (function () {
|
|
5351
5284
|
function IoneShoppingCartComponent(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService) {
|
|
5352
5285
|
var _this = this;
|
|
5353
5286
|
this._changeDetector = _changeDetector;
|
|
@@ -5386,14 +5319,14 @@
|
|
|
5386
5319
|
this._optionsService.initialize(options).then();
|
|
5387
5320
|
}
|
|
5388
5321
|
},
|
|
5389
|
-
enumerable:
|
|
5322
|
+
enumerable: false,
|
|
5390
5323
|
configurable: true
|
|
5391
5324
|
});
|
|
5392
5325
|
Object.defineProperty(IoneShoppingCartComponent.prototype, "transactionNr", {
|
|
5393
5326
|
get: function () {
|
|
5394
5327
|
return this._service.currentTransaction.transactionNr;
|
|
5395
5328
|
},
|
|
5396
|
-
enumerable:
|
|
5329
|
+
enumerable: false,
|
|
5397
5330
|
configurable: true
|
|
5398
5331
|
});
|
|
5399
5332
|
IoneShoppingCartComponent.prototype.ngOnInit = function () {
|
|
@@ -5462,54 +5395,40 @@
|
|
|
5462
5395
|
};
|
|
5463
5396
|
return IoneShoppingCartComponent;
|
|
5464
5397
|
}());
|
|
5465
|
-
|
|
5466
|
-
i0.
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
]
|
|
5471
|
-
|
|
5472
|
-
i0.
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
]
|
|
5480
|
-
|
|
5481
|
-
i0.
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
i0.
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
i0.Output
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
], exports.IoneShoppingCartComponent.prototype, "overview", void 0);
|
|
5492
|
-
exports.IoneShoppingCartComponent = __decorate([
|
|
5493
|
-
i0.Component({
|
|
5494
|
-
selector: "ione-shopping-cart",
|
|
5495
|
-
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 "
|
|
5496
|
-
}),
|
|
5497
|
-
__param(0, i0.Inject(i0.ChangeDetectorRef)),
|
|
5498
|
-
__param(1, i0.Inject(exports.ɵk)),
|
|
5499
|
-
__param(2, i0.Inject(exports.ɵg)),
|
|
5500
|
-
__param(3, i0.Inject(exports.ɵi)),
|
|
5501
|
-
__param(4, i0.Inject(exports.ɵf)),
|
|
5502
|
-
__param(5, i0.Inject(exports.ɵl)),
|
|
5503
|
-
__param(6, i0.Inject(corecomponents_v9.PromptService))
|
|
5504
|
-
], 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_v12.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
|
+
};
|
|
5505
5424
|
|
|
5506
|
-
|
|
5425
|
+
var ShoppingCartLineComponent = /** @class */ (function () {
|
|
5507
5426
|
function ShoppingCartLineComponent(iconCacheService, service, _promptService, _dictionaryService) {
|
|
5508
5427
|
this.iconCacheService = iconCacheService;
|
|
5509
5428
|
this.service = service;
|
|
5510
5429
|
this._promptService = _promptService;
|
|
5511
5430
|
this._dictionaryService = _dictionaryService;
|
|
5512
|
-
this.iconTrashBin =
|
|
5431
|
+
this.iconTrashBin = corecomponents_v12.CoreComponentsIcon.TrashBin;
|
|
5513
5432
|
this.stock = stockStatus_enum.StockStatus.Low;
|
|
5514
5433
|
}
|
|
5515
5434
|
Object.defineProperty(ShoppingCartLineComponent.prototype, "line", {
|
|
@@ -5524,7 +5443,7 @@
|
|
|
5524
5443
|
this.isSelected = this._line.isSelected;
|
|
5525
5444
|
this._loadLineImage();
|
|
5526
5445
|
},
|
|
5527
|
-
enumerable:
|
|
5446
|
+
enumerable: false,
|
|
5528
5447
|
configurable: true
|
|
5529
5448
|
});
|
|
5530
5449
|
ShoppingCartLineComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -5668,64 +5587,53 @@
|
|
|
5668
5587
|
};
|
|
5669
5588
|
return ShoppingCartLineComponent;
|
|
5670
5589
|
}());
|
|
5671
|
-
|
|
5672
|
-
i0.
|
|
5673
|
-
|
|
5674
|
-
]
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
i0.HostBinding
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
i0.
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
i0.Component({
|
|
5693
|
-
selector: "shopping-cart-line",
|
|
5694
|
-
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 ",
|
|
5695
|
-
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}"]
|
|
5696
|
-
}),
|
|
5697
|
-
__param(0, i0.Inject(corecomponents_v9.IconCacheService)),
|
|
5698
|
-
__param(1, i0.Inject(exports.ɵf)),
|
|
5699
|
-
__param(2, i0.Inject(corecomponents_v9.PromptService)),
|
|
5700
|
-
__param(3, i0.Inject(exports.ɵi))
|
|
5701
|
-
], 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_v12.IconCacheService },
|
|
5599
|
+
{ type: TransactionService },
|
|
5600
|
+
{ type: corecomponents_v12.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
|
+
};
|
|
5702
5611
|
|
|
5703
|
-
|
|
5704
|
-
|
|
5612
|
+
// Component that visually shows a stock status with three colored boxes.
|
|
5613
|
+
var StockStatusIndicatorComponent = /** @class */ (function () {
|
|
5705
5614
|
function StockStatusIndicatorComponent() {
|
|
5706
5615
|
}
|
|
5707
5616
|
Object.defineProperty(StockStatusIndicatorComponent.prototype, "stockClass", {
|
|
5708
5617
|
get: function () {
|
|
5709
5618
|
return this.model;
|
|
5710
5619
|
},
|
|
5711
|
-
enumerable:
|
|
5620
|
+
enumerable: false,
|
|
5712
5621
|
configurable: true
|
|
5713
5622
|
});
|
|
5714
5623
|
return StockStatusIndicatorComponent;
|
|
5715
5624
|
}());
|
|
5716
|
-
|
|
5717
|
-
i0.
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
}
|
|
5725
|
-
|
|
5726
|
-
], 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
|
+
};
|
|
5727
5635
|
|
|
5728
|
-
|
|
5636
|
+
var CharacteristicAnswerComponent = /** @class */ (function () {
|
|
5729
5637
|
function CharacteristicAnswerComponent(_dictionaryService) {
|
|
5730
5638
|
this._dictionaryService = _dictionaryService;
|
|
5731
5639
|
this.title = "";
|
|
@@ -5739,7 +5647,7 @@
|
|
|
5739
5647
|
get: function () {
|
|
5740
5648
|
return this.characteristics.length > 0;
|
|
5741
5649
|
},
|
|
5742
|
-
enumerable:
|
|
5650
|
+
enumerable: false,
|
|
5743
5651
|
configurable: true
|
|
5744
5652
|
});
|
|
5745
5653
|
CharacteristicAnswerComponent.prototype.ngOnInit = function () {
|
|
@@ -5764,78 +5672,74 @@
|
|
|
5764
5672
|
};
|
|
5765
5673
|
return CharacteristicAnswerComponent;
|
|
5766
5674
|
}());
|
|
5767
|
-
|
|
5768
|
-
i0.
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
i0.
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
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}"]
|
|
5784
|
-
}),
|
|
5785
|
-
__param(0, i0.Inject(exports.ɵi))
|
|
5786
|
-
], 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
|
+
};
|
|
5787
5691
|
|
|
5788
|
-
|
|
5692
|
+
var IoneShoppingCartModule = /** @class */ (function () {
|
|
5789
5693
|
function IoneShoppingCartModule() {
|
|
5790
5694
|
}
|
|
5791
5695
|
return IoneShoppingCartModule;
|
|
5792
5696
|
}());
|
|
5793
|
-
|
|
5794
|
-
i0.NgModule
|
|
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
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
]
|
|
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_v12.IconModule,
|
|
5711
|
+
corecomponents_v12.InputTextModule,
|
|
5712
|
+
corecomponents_v12.InputCheckboxModule,
|
|
5713
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
5714
|
+
corecomponents_v12.FormModule,
|
|
5715
|
+
corecomponents_v12.InputComboBoxModule,
|
|
5716
|
+
corecomponents_v12.InputDatePickerModule,
|
|
5717
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
5718
|
+
corecomponents_v12.CoDialogModule,
|
|
5719
|
+
corecomponents_v12.CoDialogPromptModule,
|
|
5720
|
+
corecomponents_v12.ButtonModule,
|
|
5721
|
+
flexLayout.FlexModule,
|
|
5722
|
+
corecomponents_v12.MultiSelectListModule,
|
|
5723
|
+
stepper.MatStepperModule,
|
|
5724
|
+
corecomponents_v12.DropDownModule,
|
|
5725
|
+
corecomponents_v12.PopupModule.forRoot(),
|
|
5726
|
+
corecomponents_v12.CoSidebarModule,
|
|
5727
|
+
corecomponents_v12.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
|
+
];
|
|
5839
5743
|
|
|
5840
5744
|
//export * from "./app/component/ione-transaction.module";
|
|
5841
5745
|
|
|
@@ -5843,7 +5747,43 @@
|
|
|
5843
5747
|
* Generated bundle index. Do not edit.
|
|
5844
5748
|
*/
|
|
5845
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
|
+
|
|
5846
5786
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5847
5787
|
|
|
5848
|
-
}))
|
|
5788
|
+
}));
|
|
5849
5789
|
//# sourceMappingURL=colijnit-transaction.umd.js.map
|