@colijnit/transaction 1.9.31 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/component/common/icon/icon.component.d.ts +1 -2
- package/bundles/colijnit-transaction.umd.js +950 -983
- 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 +22 -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 +18 -24
- package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +27 -42
- package/esm2015/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +19 -22
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +25 -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 +27 -34
- package/esm2015/app/component/checkout/ione-checkout.module.js +55 -58
- package/esm2015/app/component/checkout/retail-transaction-checkout/retail-transaction-checkout.component.js +16 -18
- package/esm2015/app/component/common/icon/icon.component.js +14 -18
- package/esm2015/app/component/common/image-display/image-display.component.js +19 -36
- package/esm2015/app/component/common/no-image-display/no-image-display.component.js +14 -20
- package/esm2015/app/component/core/core.module.js +32 -34
- package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +20 -27
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +31 -48
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +51 -52
- package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +29 -49
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +25 -38
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +27 -38
- package/esm2015/app/component/shopping-cart/stock-status-indicator/stock-status-indicator.component.js +13 -17
- package/esm2015/app/enum/checkout-steps.enum.js +1 -1
- package/esm2015/app/enum/content-view-mode.enum.js +1 -1
- package/esm2015/app/enum/direction.enum.js +1 -1
- package/esm2015/app/enum/language-code.enum.js +1 -1
- package/esm2015/app/enum/order-discount-type.enum.js +1 -1
- package/esm2015/app/enum/time-size.type.js +1 -1
- package/esm2015/app/model/business-object.js +6 -6
- package/esm2015/app/model/text-value-container.js +1 -1
- 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 +6 -8
- package/esm2015/app/pipe/delivery-time.pipe.js +6 -8
- package/esm2015/app/pipe/localize.pipe.js +9 -13
- package/esm2015/app/pipe/safe-style-pipe.js +9 -11
- 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 +11 -12
- package/esm2015/app/utils/string-utils.js +1 -1
- package/esm2015/assets/dictionary/text.properties.js +1 -1
- package/esm2015/colijnit-transaction.js +15 -15
- package/esm2015/factory/business-object-factory.js +1 -1
- package/esm2015/factory/decorators/boolean.decorator.js +1 -1
- package/esm2015/factory/decorators/complex-array.decorator.js +1 -1
- package/esm2015/factory/decorators/complex-field.decorator.js +2 -2
- package/esm2015/factory/decorators/date-field.decorator.js +1 -1
- package/esm2015/factory/decorators/string-number.decorator.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/utils/array-utils.js +1 -1
- package/esm2015/utils/is-nill.function.js +1 -1
- package/fesm2015/colijnit-transaction.js +640 -799
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +33 -23
- 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
- package/esm5/app/component/checkout/checkout/checkout.component.js +0 -196
- package/esm5/app/component/checkout/checkout-login/checkout-login.component.js +0 -62
- package/esm5/app/component/checkout/checkout-overview/checkout-overview.component.js +0 -183
- package/esm5/app/component/checkout/checkout-overview-block/checkout-overview-block.component.js +0 -48
- package/esm5/app/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +0 -34
- package/esm5/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +0 -298
- package/esm5/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +0 -98
- package/esm5/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +0 -303
- package/esm5/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +0 -33
- package/esm5/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +0 -48
- package/esm5/app/component/checkout/ione-checkout.component.js +0 -163
- package/esm5/app/component/checkout/ione-checkout.module.js +0 -82
- package/esm5/app/component/checkout/retail-transaction-checkout/retail-transaction-checkout.component.js +0 -62
- package/esm5/app/component/common/icon/icon.component.js +0 -40
- package/esm5/app/component/common/image-display/image-display.component.js +0 -57
- package/esm5/app/component/common/no-image-display/no-image-display.component.js +0 -29
- package/esm5/app/component/core/core.module.js +0 -48
- package/esm5/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +0 -66
- package/esm5/app/component/shopping-cart/ione-shopping-cart.component.js +0 -169
- package/esm5/app/component/shopping-cart/ione-shopping-cart.module.js +0 -70
- package/esm5/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +0 -179
- package/esm5/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +0 -208
- package/esm5/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +0 -563
- package/esm5/app/component/shopping-cart/stock-status-indicator/stock-status-indicator.component.js +0 -28
- package/esm5/app/enum/checkout-steps.enum.js +0 -10
- package/esm5/app/enum/content-view-mode.enum.js +0 -10
- package/esm5/app/enum/direction.enum.js +0 -9
- package/esm5/app/enum/language-code.enum.js +0 -8
- package/esm5/app/enum/order-discount-type.enum.js +0 -7
- package/esm5/app/enum/time-size.type.js +0 -10
- package/esm5/app/model/business-object.js +0 -85
- package/esm5/app/model/text-value-container.js +0 -7
- package/esm5/app/pipe/append.pipe.js +0 -22
- package/esm5/app/pipe/co-currency.pipe.js +0 -55
- package/esm5/app/pipe/date-duration.pipe.js +0 -61
- package/esm5/app/pipe/delivery-time.pipe.js +0 -38
- package/esm5/app/pipe/localize.pipe.js +0 -34
- package/esm5/app/pipe/safe-style-pipe.js +0 -22
- package/esm5/app/service/dictionary.service.js +0 -83
- package/esm5/app/service/ione-connector-adapter.service.js +0 -549
- package/esm5/app/service/options.service.js +0 -108
- package/esm5/app/service/transaction-event.service.js +0 -21
- package/esm5/app/service/transaction.service.js +0 -690
- package/esm5/app/utils/string-utils.js +0 -73
- package/esm5/assets/dictionary/text.properties.js +0 -282
- package/esm5/colijnit-transaction.js +0 -36
- package/esm5/enum/icon.enum.js +0 -283
- package/esm5/factory/business-object-factory.js +0 -122
- package/esm5/factory/decorators/boolean.decorator.js +0 -106
- package/esm5/factory/decorators/complex-array.decorator.js +0 -59
- package/esm5/factory/decorators/complex-field.decorator.js +0 -61
- package/esm5/factory/decorators/date-field.decorator.js +0 -40
- package/esm5/factory/decorators/string-number.decorator.js +0 -47
- package/esm5/public_api.js +0 -8
- package/esm5/utils/array-utils.js +0 -188
- package/esm5/utils/is-nill.function.js +0 -5
- package/fesm5/colijnit-transaction.js +0 -5620
- package/fesm5/colijnit-transaction.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { __awaiter
|
|
2
|
-
import
|
|
1
|
+
import { __awaiter } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, EventEmitter, Component, Input, Output, ChangeDetectorRef, ViewChild, Pipe, HostBinding, NgModule } from '@angular/core';
|
|
3
4
|
import { BehaviorSubject, Subject, throwError } from 'rxjs';
|
|
4
5
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
5
6
|
import { CustomerFullObject } from '@colijnit/transactionapi/build/model/customer-full-object.bo';
|
|
@@ -53,7 +54,7 @@ import { SortType } from '@colijnit/transactionapi/build/enum/sort-type.enum';
|
|
|
53
54
|
import { SortUtils } from '@colijnit/transactionapi/build/utils/sort-utils';
|
|
54
55
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
class OptionsService {
|
|
57
58
|
constructor() {
|
|
58
59
|
this.optionsLoaded = new BehaviorSubject(false);
|
|
59
60
|
}
|
|
@@ -135,12 +136,13 @@ let OptionsService = class OptionsService {
|
|
|
135
136
|
languageCode: "NL",
|
|
136
137
|
}).then();
|
|
137
138
|
}
|
|
138
|
-
}
|
|
139
|
-
OptionsService =
|
|
140
|
-
Injectable
|
|
141
|
-
]
|
|
139
|
+
}
|
|
140
|
+
OptionsService.decorators = [
|
|
141
|
+
{ type: Injectable }
|
|
142
|
+
];
|
|
143
|
+
OptionsService.ctorParameters = () => [];
|
|
142
144
|
|
|
143
|
-
const PROP_META_KEY = "complexField";
|
|
145
|
+
const PROP_META_KEY$3 = "complexField";
|
|
144
146
|
/**
|
|
145
147
|
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
146
148
|
*/
|
|
@@ -165,13 +167,13 @@ function ComplexField(type) {
|
|
|
165
167
|
// warn the programmer if given type was undefined; it's probably an import order glitch that caused this, because decorators seem
|
|
166
168
|
// to be immediately processed when a class is first imported
|
|
167
169
|
if (!type) {
|
|
168
|
-
//
|
|
170
|
+
// eslint-disable-next-line no-console
|
|
169
171
|
console.warn(`@ComplexField(type): type was UNDEFINED. Called on prop (${ObjectUtils.GetClassName(target)}, ${propertyKey}). ` +
|
|
170
172
|
`Class will not properly serialize and deserialize now. We've always been able to fix this by CHANGING IMPORT ORDERS ` +
|
|
171
173
|
`where both classes and their dependencies are used, e.g. factory, repository or models..`);
|
|
172
174
|
return;
|
|
173
175
|
}
|
|
174
|
-
Reflect.defineMetadata(PROP_META_KEY, type, target, propertyKey);
|
|
176
|
+
Reflect.defineMetadata(PROP_META_KEY$3, type, target, propertyKey);
|
|
175
177
|
};
|
|
176
178
|
}
|
|
177
179
|
// Utility function holder of the ComplexFieldDecorator decorator.
|
|
@@ -184,18 +186,18 @@ class ComplexFieldDecorator {
|
|
|
184
186
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
185
187
|
return false;
|
|
186
188
|
}
|
|
187
|
-
return (notNill(Reflect.getMetadata(PROP_META_KEY, target, propertyKey)));
|
|
189
|
+
return (notNill(Reflect.getMetadata(PROP_META_KEY$3, target, propertyKey)));
|
|
188
190
|
}
|
|
189
191
|
// Returns the VALUE of the @ComplexField(VALUE) property decorator on the given propertyKey on the given modelObject.
|
|
190
192
|
static GetComplexFieldType(target, propertyKey) {
|
|
191
193
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
192
194
|
return undefined;
|
|
193
195
|
}
|
|
194
|
-
return Reflect.getMetadata(PROP_META_KEY, target, propertyKey);
|
|
196
|
+
return Reflect.getMetadata(PROP_META_KEY$3, target, propertyKey);
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
199
|
|
|
198
|
-
const PROP_META_KEY$
|
|
200
|
+
const PROP_META_KEY$2 = "complexArray";
|
|
199
201
|
/**
|
|
200
202
|
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
201
203
|
*/
|
|
@@ -222,7 +224,7 @@ function ComplexArray(type) {
|
|
|
222
224
|
`where both classes and their dependencies are used, e.g. factory, repository or models..`);
|
|
223
225
|
return;
|
|
224
226
|
}
|
|
225
|
-
Reflect.defineMetadata(PROP_META_KEY$
|
|
227
|
+
Reflect.defineMetadata(PROP_META_KEY$2, type, target, propertyKey);
|
|
226
228
|
};
|
|
227
229
|
}
|
|
228
230
|
// Utility function holder of the ComplexArrayDecorator decorator.
|
|
@@ -235,7 +237,7 @@ class ComplexArrayDecorator {
|
|
|
235
237
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
236
238
|
return false;
|
|
237
239
|
}
|
|
238
|
-
return (notNill(Reflect.getMetadata(PROP_META_KEY$
|
|
240
|
+
return (notNill(Reflect.getMetadata(PROP_META_KEY$2, target, propertyKey)));
|
|
239
241
|
}
|
|
240
242
|
/**
|
|
241
243
|
* Returns the VALUE of the @ComplexArray(VALUE) property decorator on the given propertyKey on the given modelobject.
|
|
@@ -244,7 +246,7 @@ class ComplexArrayDecorator {
|
|
|
244
246
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
245
247
|
return undefined;
|
|
246
248
|
}
|
|
247
|
-
return Reflect.getMetadata(PROP_META_KEY$
|
|
249
|
+
return Reflect.getMetadata(PROP_META_KEY$2, target, propertyKey);
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
|
|
@@ -346,7 +348,7 @@ class BooleanTextDecorator {
|
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
|
|
349
|
-
const PROP_META_KEY$
|
|
351
|
+
const PROP_META_KEY$1 = "dateField";
|
|
350
352
|
/**
|
|
351
353
|
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
352
354
|
*/
|
|
@@ -364,7 +366,7 @@ function DateField() {
|
|
|
364
366
|
if (!target || !propertyKey) {
|
|
365
367
|
return;
|
|
366
368
|
}
|
|
367
|
-
Reflect.defineMetadata(PROP_META_KEY$
|
|
369
|
+
Reflect.defineMetadata(PROP_META_KEY$1, undefined, target, propertyKey);
|
|
368
370
|
};
|
|
369
371
|
}
|
|
370
372
|
// Utility function holder of the @DateField() decorator.
|
|
@@ -374,14 +376,14 @@ class DateFieldFieldDecorator {
|
|
|
374
376
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
375
377
|
return false;
|
|
376
378
|
}
|
|
377
|
-
return Reflect.hasMetadata(PROP_META_KEY$
|
|
379
|
+
return Reflect.hasMetadata(PROP_META_KEY$1, target, propertyKey);
|
|
378
380
|
}
|
|
379
381
|
static StringAsDate(str) {
|
|
380
382
|
return DateUtils.StringAsDate(str);
|
|
381
383
|
}
|
|
382
384
|
}
|
|
383
385
|
|
|
384
|
-
const PROP_META_KEY
|
|
386
|
+
const PROP_META_KEY = "stringNumber";
|
|
385
387
|
/**
|
|
386
388
|
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
387
389
|
*/
|
|
@@ -403,7 +405,7 @@ function StringNumber() {
|
|
|
403
405
|
if (!target || !propertyKey) {
|
|
404
406
|
return;
|
|
405
407
|
}
|
|
406
|
-
Reflect.defineMetadata(PROP_META_KEY
|
|
408
|
+
Reflect.defineMetadata(PROP_META_KEY, undefined, target, propertyKey);
|
|
407
409
|
};
|
|
408
410
|
}
|
|
409
411
|
// Utility function holder of the @StringNumber() decorator.
|
|
@@ -413,7 +415,7 @@ class StringNumberDecorator {
|
|
|
413
415
|
if (!target || !propertyKey || typeof target !== "object") {
|
|
414
416
|
return false;
|
|
415
417
|
}
|
|
416
|
-
return Reflect.hasMetadata(PROP_META_KEY
|
|
418
|
+
return Reflect.hasMetadata(PROP_META_KEY, target, propertyKey);
|
|
417
419
|
}
|
|
418
420
|
static StringAsNumber(str) {
|
|
419
421
|
return NumberUtils.ParseFloatKeepPrecision(str);
|
|
@@ -630,7 +632,7 @@ class BusinessObject {
|
|
|
630
632
|
const mapKeys = MapPropertyDecorator.GetMapProperty(this, key).split(",");
|
|
631
633
|
const len = mapKeys.length;
|
|
632
634
|
for (let i = 0; i < len; i++) {
|
|
633
|
-
//
|
|
635
|
+
// eslint-disable-next-line
|
|
634
636
|
const mapKey = mapKeys[i].trim();
|
|
635
637
|
const objProp = rawData[mapKey];
|
|
636
638
|
let decorated = false;
|
|
@@ -645,13 +647,13 @@ class BusinessObject {
|
|
|
645
647
|
}
|
|
646
648
|
if (ComplexArrayDecorator$1.IsComplexArray(this, key)) {
|
|
647
649
|
const arrayClass = ComplexArrayDecorator$1.GetComplexArrayType(this, key);
|
|
648
|
-
//
|
|
650
|
+
// eslint-disable-next-line
|
|
649
651
|
const origArray = this[key];
|
|
650
|
-
//
|
|
652
|
+
// eslint-disable-next-line
|
|
651
653
|
const newArray = [];
|
|
652
|
-
//
|
|
654
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
653
655
|
for (let j = 0; j < origArray.length; j++) {
|
|
654
|
-
//
|
|
656
|
+
// eslint-disable-next-line
|
|
655
657
|
const item = new arrayClass(origArray[j]);
|
|
656
658
|
newArray.push(item);
|
|
657
659
|
}
|
|
@@ -796,7 +798,7 @@ class BusinessObjectFactory {
|
|
|
796
798
|
}
|
|
797
799
|
}
|
|
798
800
|
|
|
799
|
-
|
|
801
|
+
class IOneConnectorAdapterService {
|
|
800
802
|
constructor() {
|
|
801
803
|
this._boFactory = new BusinessObjectFactory();
|
|
802
804
|
this._countryList = [];
|
|
@@ -1246,12 +1248,13 @@ let IOneConnectorAdapterService = class IOneConnectorAdapterService {
|
|
|
1246
1248
|
});
|
|
1247
1249
|
});
|
|
1248
1250
|
}
|
|
1249
|
-
}
|
|
1250
|
-
IOneConnectorAdapterService =
|
|
1251
|
-
Injectable
|
|
1252
|
-
]
|
|
1251
|
+
}
|
|
1252
|
+
IOneConnectorAdapterService.decorators = [
|
|
1253
|
+
{ type: Injectable }
|
|
1254
|
+
];
|
|
1255
|
+
IOneConnectorAdapterService.ctorParameters = () => [];
|
|
1253
1256
|
|
|
1254
|
-
|
|
1257
|
+
class TransactionService {
|
|
1255
1258
|
constructor(_connector) {
|
|
1256
1259
|
this._connector = _connector;
|
|
1257
1260
|
this.transactionUpdated = new EventEmitter();
|
|
@@ -1534,7 +1537,7 @@ let TransactionService = class TransactionService {
|
|
|
1534
1537
|
reject(error);
|
|
1535
1538
|
})
|
|
1536
1539
|
.catch((reason) => {
|
|
1537
|
-
resolve();
|
|
1540
|
+
resolve(null);
|
|
1538
1541
|
});
|
|
1539
1542
|
});
|
|
1540
1543
|
});
|
|
@@ -1553,7 +1556,7 @@ let TransactionService = class TransactionService {
|
|
|
1553
1556
|
}
|
|
1554
1557
|
}))
|
|
1555
1558
|
.catch((reason) => {
|
|
1556
|
-
resolve();
|
|
1559
|
+
resolve(null);
|
|
1557
1560
|
});
|
|
1558
1561
|
});
|
|
1559
1562
|
});
|
|
@@ -1573,7 +1576,7 @@ let TransactionService = class TransactionService {
|
|
|
1573
1576
|
}
|
|
1574
1577
|
}))
|
|
1575
1578
|
.catch((reason) => {
|
|
1576
|
-
resolve();
|
|
1579
|
+
resolve(null);
|
|
1577
1580
|
});
|
|
1578
1581
|
});
|
|
1579
1582
|
});
|
|
@@ -1589,7 +1592,7 @@ let TransactionService = class TransactionService {
|
|
|
1589
1592
|
}
|
|
1590
1593
|
resolve(response);
|
|
1591
1594
|
})).catch((reason) => {
|
|
1592
|
-
resolve();
|
|
1595
|
+
resolve(null);
|
|
1593
1596
|
});
|
|
1594
1597
|
});
|
|
1595
1598
|
});
|
|
@@ -1658,13 +1661,13 @@ let TransactionService = class TransactionService {
|
|
|
1658
1661
|
transactionDeliveryOptionsRequest.invoiceAddress = this._currentTransaction.invoiceAddress.nawNr;
|
|
1659
1662
|
return transactionDeliveryOptionsRequest;
|
|
1660
1663
|
}
|
|
1661
|
-
}
|
|
1664
|
+
}
|
|
1665
|
+
TransactionService.decorators = [
|
|
1666
|
+
{ type: Injectable }
|
|
1667
|
+
];
|
|
1662
1668
|
TransactionService.ctorParameters = () => [
|
|
1663
1669
|
{ type: IOneConnectorAdapterService }
|
|
1664
|
-
];
|
|
1665
|
-
TransactionService = __decorate([
|
|
1666
|
-
Injectable()
|
|
1667
|
-
], TransactionService);
|
|
1670
|
+
];
|
|
1668
1671
|
|
|
1669
1672
|
var LanguageCode;
|
|
1670
1673
|
(function (LanguageCode) {
|
|
@@ -2019,7 +2022,7 @@ class Dictionary {
|
|
|
2019
2022
|
}
|
|
2020
2023
|
|
|
2021
2024
|
// The localization service, providing peers with text translation functionality.
|
|
2022
|
-
|
|
2025
|
+
class DictionaryService {
|
|
2023
2026
|
constructor() {
|
|
2024
2027
|
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
2025
2028
|
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
@@ -2040,9 +2043,9 @@ let DictionaryService = class DictionaryService {
|
|
|
2040
2043
|
this._language = language || LanguageCode.Dutch;
|
|
2041
2044
|
if (!this._dictionaries.has(this._language)) {
|
|
2042
2045
|
const dictionary = new Dictionary();
|
|
2043
|
-
//
|
|
2046
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2044
2047
|
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
2045
|
-
//
|
|
2048
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2046
2049
|
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
2047
2050
|
}
|
|
2048
2051
|
}
|
|
@@ -2072,12 +2075,13 @@ let DictionaryService = class DictionaryService {
|
|
|
2072
2075
|
}
|
|
2073
2076
|
return text;
|
|
2074
2077
|
}
|
|
2075
|
-
}
|
|
2076
|
-
DictionaryService =
|
|
2077
|
-
Injectable
|
|
2078
|
-
]
|
|
2078
|
+
}
|
|
2079
|
+
DictionaryService.decorators = [
|
|
2080
|
+
{ type: Injectable }
|
|
2081
|
+
];
|
|
2082
|
+
DictionaryService.ctorParameters = () => [];
|
|
2079
2083
|
|
|
2080
|
-
|
|
2084
|
+
class TransactionEventService {
|
|
2081
2085
|
constructor() {
|
|
2082
2086
|
this.addToCartBySku = new Subject();
|
|
2083
2087
|
this.addToCartBySelectorResult = new Subject();
|
|
@@ -2086,11 +2090,11 @@ let TransactionEventService = class TransactionEventService {
|
|
|
2086
2090
|
this.addNewUserToShoppingCartModule = new Subject();
|
|
2087
2091
|
this.addUserRelationShoppingCartModule = new Subject();
|
|
2088
2092
|
}
|
|
2089
|
-
}
|
|
2090
|
-
TransactionEventService.ɵprov =
|
|
2091
|
-
TransactionEventService =
|
|
2092
|
-
Injectable
|
|
2093
|
-
]
|
|
2093
|
+
}
|
|
2094
|
+
TransactionEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
2095
|
+
TransactionEventService.decorators = [
|
|
2096
|
+
{ type: Injectable, args: [{ providedIn: "root" },] }
|
|
2097
|
+
];
|
|
2094
2098
|
|
|
2095
2099
|
var CheckoutSteps;
|
|
2096
2100
|
(function (CheckoutSteps) {
|
|
@@ -2102,7 +2106,7 @@ var CheckoutSteps;
|
|
|
2102
2106
|
CheckoutSteps[CheckoutSteps["Printing"] = 4] = "Printing";
|
|
2103
2107
|
})(CheckoutSteps || (CheckoutSteps = {}));
|
|
2104
2108
|
|
|
2105
|
-
|
|
2109
|
+
class CheckoutOverviewBlockComponent {
|
|
2106
2110
|
constructor() {
|
|
2107
2111
|
this.sequenceNr = 1;
|
|
2108
2112
|
this.startInEdit = false;
|
|
@@ -2124,23 +2128,11 @@ let CheckoutOverviewBlockComponent = class CheckoutOverviewBlockComponent {
|
|
|
2124
2128
|
this.editModeChange.emit(this.editMode);
|
|
2125
2129
|
}
|
|
2126
2130
|
}
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
Input()
|
|
2133
|
-
], CheckoutOverviewBlockComponent.prototype, "label", void 0);
|
|
2134
|
-
__decorate([
|
|
2135
|
-
Input()
|
|
2136
|
-
], CheckoutOverviewBlockComponent.prototype, "startInEdit", void 0);
|
|
2137
|
-
__decorate([
|
|
2138
|
-
Output()
|
|
2139
|
-
], CheckoutOverviewBlockComponent.prototype, "editModeChange", void 0);
|
|
2140
|
-
CheckoutOverviewBlockComponent = __decorate([
|
|
2141
|
-
Component({
|
|
2142
|
-
selector: "checkout-overview-block",
|
|
2143
|
-
template: `
|
|
2131
|
+
}
|
|
2132
|
+
CheckoutOverviewBlockComponent.decorators = [
|
|
2133
|
+
{ type: Component, args: [{
|
|
2134
|
+
selector: "checkout-overview-block",
|
|
2135
|
+
template: `
|
|
2144
2136
|
<div class="overview-wrapper" fxLayout="column" fxLayoutGap="0px">
|
|
2145
2137
|
<div class="overview-header" fxLayout="row">
|
|
2146
2138
|
</div>
|
|
@@ -2149,11 +2141,18 @@ CheckoutOverviewBlockComponent = __decorate([
|
|
|
2149
2141
|
</div>
|
|
2150
2142
|
</div>
|
|
2151
2143
|
`,
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
]
|
|
2144
|
+
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"]
|
|
2145
|
+
},] }
|
|
2146
|
+
];
|
|
2147
|
+
CheckoutOverviewBlockComponent.ctorParameters = () => [];
|
|
2148
|
+
CheckoutOverviewBlockComponent.propDecorators = {
|
|
2149
|
+
sequenceNr: [{ type: Input }],
|
|
2150
|
+
label: [{ type: Input }],
|
|
2151
|
+
startInEdit: [{ type: Input }],
|
|
2152
|
+
editModeChange: [{ type: Output }]
|
|
2153
|
+
};
|
|
2155
2154
|
|
|
2156
|
-
|
|
2155
|
+
class CheckoutOverviewRelationEditComponent {
|
|
2157
2156
|
constructor(_changeDetector, _transactionService) {
|
|
2158
2157
|
this._changeDetector = _changeDetector;
|
|
2159
2158
|
this._transactionService = _transactionService;
|
|
@@ -2175,7 +2174,7 @@ let CheckoutOverviewRelationEditComponent = class CheckoutOverviewRelationEditCo
|
|
|
2175
2174
|
// fetches relation suggestions
|
|
2176
2175
|
this._relationNameChangeHandler = FunctionUtils.Throttle(() => {
|
|
2177
2176
|
return this._relationNameChangedHandlerFn();
|
|
2178
|
-
//
|
|
2177
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2179
2178
|
}, 600);
|
|
2180
2179
|
}
|
|
2181
2180
|
set relation(value) {
|
|
@@ -2343,33 +2342,11 @@ let CheckoutOverviewRelationEditComponent = class CheckoutOverviewRelationEditCo
|
|
|
2343
2342
|
this.relationSuggestions = yield this._transactionService.getRelationListObjects(relationRequest);
|
|
2344
2343
|
});
|
|
2345
2344
|
}
|
|
2346
|
-
}
|
|
2347
|
-
CheckoutOverviewRelationEditComponent.
|
|
2348
|
-
{ type:
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
__decorate([
|
|
2352
|
-
ViewChild(FormComponent, { static: true })
|
|
2353
|
-
], CheckoutOverviewRelationEditComponent.prototype, "relationForm", void 0);
|
|
2354
|
-
__decorate([
|
|
2355
|
-
ViewChild(CoSidebarComponent, { static: false })
|
|
2356
|
-
], CheckoutOverviewRelationEditComponent.prototype, "relationSidebar", void 0);
|
|
2357
|
-
__decorate([
|
|
2358
|
-
Input()
|
|
2359
|
-
], CheckoutOverviewRelationEditComponent.prototype, "relation", null);
|
|
2360
|
-
__decorate([
|
|
2361
|
-
Input()
|
|
2362
|
-
], CheckoutOverviewRelationEditComponent.prototype, "transaction", void 0);
|
|
2363
|
-
__decorate([
|
|
2364
|
-
Output()
|
|
2365
|
-
], CheckoutOverviewRelationEditComponent.prototype, "validSubmit", void 0);
|
|
2366
|
-
__decorate([
|
|
2367
|
-
Output()
|
|
2368
|
-
], CheckoutOverviewRelationEditComponent.prototype, "invalidSubmit", void 0);
|
|
2369
|
-
CheckoutOverviewRelationEditComponent = __decorate([
|
|
2370
|
-
Component({
|
|
2371
|
-
selector: "checkout-overview-relation-edit",
|
|
2372
|
-
template: `
|
|
2345
|
+
}
|
|
2346
|
+
CheckoutOverviewRelationEditComponent.decorators = [
|
|
2347
|
+
{ type: Component, args: [{
|
|
2348
|
+
selector: "checkout-overview-relation-edit",
|
|
2349
|
+
template: `
|
|
2373
2350
|
<co-form (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">
|
|
2374
2351
|
<div>
|
|
2375
2352
|
<label [textContent]="'ACCOUNT_DETAILS' | localize"
|
|
@@ -2539,11 +2516,23 @@ CheckoutOverviewRelationEditComponent = __decorate([
|
|
|
2539
2516
|
</co-sidebar>
|
|
2540
2517
|
|
|
2541
2518
|
`,
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
]
|
|
2519
|
+
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"]
|
|
2520
|
+
},] }
|
|
2521
|
+
];
|
|
2522
|
+
CheckoutOverviewRelationEditComponent.ctorParameters = () => [
|
|
2523
|
+
{ type: ChangeDetectorRef },
|
|
2524
|
+
{ type: TransactionService }
|
|
2525
|
+
];
|
|
2526
|
+
CheckoutOverviewRelationEditComponent.propDecorators = {
|
|
2527
|
+
relationForm: [{ type: ViewChild, args: [FormComponent, { static: true },] }],
|
|
2528
|
+
relationSidebar: [{ type: ViewChild, args: [CoSidebarComponent, { static: false },] }],
|
|
2529
|
+
relation: [{ type: Input }],
|
|
2530
|
+
transaction: [{ type: Input }],
|
|
2531
|
+
validSubmit: [{ type: Output }],
|
|
2532
|
+
invalidSubmit: [{ type: Output }]
|
|
2533
|
+
};
|
|
2545
2534
|
|
|
2546
|
-
|
|
2535
|
+
class CheckoutOverviewDeliveryEditComponent {
|
|
2547
2536
|
constructor(cdr, _dictionaryService, service) {
|
|
2548
2537
|
this.cdr = cdr;
|
|
2549
2538
|
this._dictionaryService = _dictionaryService;
|
|
@@ -2739,40 +2728,11 @@ let CheckoutOverviewDeliveryEditComponent = class CheckoutOverviewDeliveryEditCo
|
|
|
2739
2728
|
}
|
|
2740
2729
|
});
|
|
2741
2730
|
}
|
|
2742
|
-
}
|
|
2743
|
-
CheckoutOverviewDeliveryEditComponent.
|
|
2744
|
-
{ type:
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
];
|
|
2748
|
-
__decorate([
|
|
2749
|
-
ViewChild("deliveryForm", { read: FormComponent })
|
|
2750
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "deliveryForm", void 0);
|
|
2751
|
-
__decorate([
|
|
2752
|
-
ViewChild("locationForm", { read: FormComponent })
|
|
2753
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "locationForm", void 0);
|
|
2754
|
-
__decorate([
|
|
2755
|
-
ViewChild("changeLocationDialog")
|
|
2756
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "changeLocationDialog", void 0);
|
|
2757
|
-
__decorate([
|
|
2758
|
-
ViewChild("addressGrid")
|
|
2759
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "addressGrid", void 0);
|
|
2760
|
-
__decorate([
|
|
2761
|
-
Input()
|
|
2762
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "relation", void 0);
|
|
2763
|
-
__decorate([
|
|
2764
|
-
Input()
|
|
2765
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "transaction", void 0);
|
|
2766
|
-
__decorate([
|
|
2767
|
-
Output()
|
|
2768
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "validSubmit", void 0);
|
|
2769
|
-
__decorate([
|
|
2770
|
-
Output()
|
|
2771
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "invalidSubmit", void 0);
|
|
2772
|
-
CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
2773
|
-
Component({
|
|
2774
|
-
selector: "checkout-overview-delivery-edit",
|
|
2775
|
-
template: `
|
|
2731
|
+
}
|
|
2732
|
+
CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
2733
|
+
{ type: Component, args: [{
|
|
2734
|
+
selector: "checkout-overview-delivery-edit",
|
|
2735
|
+
template: `
|
|
2776
2736
|
<co-form #deliveryForm (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">
|
|
2777
2737
|
<div>
|
|
2778
2738
|
<div>
|
|
@@ -2966,14 +2926,27 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2966
2926
|
</co-form>
|
|
2967
2927
|
</co-dialog>
|
|
2968
2928
|
`,
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
]
|
|
2929
|
+
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"]
|
|
2930
|
+
},] }
|
|
2931
|
+
];
|
|
2932
|
+
CheckoutOverviewDeliveryEditComponent.ctorParameters = () => [
|
|
2933
|
+
{ type: ChangeDetectorRef },
|
|
2934
|
+
{ type: DictionaryService },
|
|
2935
|
+
{ type: TransactionService }
|
|
2936
|
+
];
|
|
2937
|
+
CheckoutOverviewDeliveryEditComponent.propDecorators = {
|
|
2938
|
+
deliveryForm: [{ type: ViewChild, args: ["deliveryForm", { read: FormComponent },] }],
|
|
2939
|
+
locationForm: [{ type: ViewChild, args: ["locationForm", { read: FormComponent },] }],
|
|
2940
|
+
changeLocationDialog: [{ type: ViewChild, args: ["changeLocationDialog",] }],
|
|
2941
|
+
addressGrid: [{ type: ViewChild, args: ["addressGrid",] }],
|
|
2942
|
+
relation: [{ type: Input }],
|
|
2943
|
+
transaction: [{ type: Input }],
|
|
2944
|
+
validSubmit: [{ type: Output }],
|
|
2945
|
+
invalidSubmit: [{ type: Output }]
|
|
2946
|
+
};
|
|
2972
2947
|
|
|
2973
|
-
|
|
2974
|
-
constructor(
|
|
2975
|
-
// public service: RetailTransactionModuleService
|
|
2976
|
-
) {
|
|
2948
|
+
class CheckoutOverviewComponent {
|
|
2949
|
+
constructor() {
|
|
2977
2950
|
this.steps = CheckoutSteps;
|
|
2978
2951
|
//
|
|
2979
2952
|
// @ViewChild("paymentBlock", {read: CheckoutOverviewBlockComponent})
|
|
@@ -2987,7 +2960,7 @@ let CheckoutOverviewComponent = class CheckoutOverviewComponent {
|
|
|
2987
2960
|
this.loginRequested = false;
|
|
2988
2961
|
this.currentStep = CheckoutSteps.Relation;
|
|
2989
2962
|
this.editMode = true;
|
|
2990
|
-
//
|
|
2963
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
2991
2964
|
this._subscriptions = [];
|
|
2992
2965
|
// TODO: subscribe to relation and transaction service
|
|
2993
2966
|
// this._subscriptions.push(service.relationUpdatedEventEmitter.subscribe((updated: boolean) => {
|
|
@@ -3101,44 +3074,11 @@ let CheckoutOverviewComponent = class CheckoutOverviewComponent {
|
|
|
3101
3074
|
isRelation() {
|
|
3102
3075
|
return (this.relation !== NULL_RELATION_OBJECT);
|
|
3103
3076
|
}
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
ViewChild("relationForm", { read: CheckoutOverviewRelationEditComponent })
|
|
3110
|
-
], CheckoutOverviewComponent.prototype, "relationForm", void 0);
|
|
3111
|
-
__decorate([
|
|
3112
|
-
ViewChild("deliveryBlock", { read: CheckoutOverviewBlockComponent })
|
|
3113
|
-
], CheckoutOverviewComponent.prototype, "deliveryBlock", void 0);
|
|
3114
|
-
__decorate([
|
|
3115
|
-
ViewChild("deliveryForm", { read: CheckoutOverviewDeliveryEditComponent })
|
|
3116
|
-
], CheckoutOverviewComponent.prototype, "deliveryForm", void 0);
|
|
3117
|
-
__decorate([
|
|
3118
|
-
Input()
|
|
3119
|
-
], CheckoutOverviewComponent.prototype, "relation", void 0);
|
|
3120
|
-
__decorate([
|
|
3121
|
-
Input()
|
|
3122
|
-
], CheckoutOverviewComponent.prototype, "transaction", void 0);
|
|
3123
|
-
__decorate([
|
|
3124
|
-
Input()
|
|
3125
|
-
], CheckoutOverviewComponent.prototype, "userIsApplicationUser", void 0);
|
|
3126
|
-
__decorate([
|
|
3127
|
-
Output()
|
|
3128
|
-
], CheckoutOverviewComponent.prototype, "saveRelation", void 0);
|
|
3129
|
-
__decorate([
|
|
3130
|
-
Output()
|
|
3131
|
-
], CheckoutOverviewComponent.prototype, "saveDelivery", void 0);
|
|
3132
|
-
__decorate([
|
|
3133
|
-
Output()
|
|
3134
|
-
], CheckoutOverviewComponent.prototype, "savePayment", void 0);
|
|
3135
|
-
__decorate([
|
|
3136
|
-
Output()
|
|
3137
|
-
], CheckoutOverviewComponent.prototype, "stepFinished", void 0);
|
|
3138
|
-
CheckoutOverviewComponent = __decorate([
|
|
3139
|
-
Component({
|
|
3140
|
-
selector: "checkout-overview",
|
|
3141
|
-
template: `
|
|
3077
|
+
}
|
|
3078
|
+
CheckoutOverviewComponent.decorators = [
|
|
3079
|
+
{ type: Component, args: [{
|
|
3080
|
+
selector: "checkout-overview",
|
|
3081
|
+
template: `
|
|
3142
3082
|
<checkout-overview-block #relationBlock sequenceNr="2" label="YOUR_DATA"
|
|
3143
3083
|
*ngIf="currentStep === steps.Relation"
|
|
3144
3084
|
(editModeChange)="handleEditChangeRelation($event)">
|
|
@@ -3166,12 +3106,25 @@ CheckoutOverviewComponent = __decorate([
|
|
|
3166
3106
|
</ng-container>
|
|
3167
3107
|
</checkout-overview-block>
|
|
3168
3108
|
`,
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
]
|
|
3109
|
+
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"]
|
|
3110
|
+
},] }
|
|
3111
|
+
];
|
|
3112
|
+
CheckoutOverviewComponent.ctorParameters = () => [];
|
|
3113
|
+
CheckoutOverviewComponent.propDecorators = {
|
|
3114
|
+
relationBlock: [{ type: ViewChild, args: ["relationBlock", { read: CheckoutOverviewBlockComponent },] }],
|
|
3115
|
+
relationForm: [{ type: ViewChild, args: ["relationForm", { read: CheckoutOverviewRelationEditComponent },] }],
|
|
3116
|
+
deliveryBlock: [{ type: ViewChild, args: ["deliveryBlock", { read: CheckoutOverviewBlockComponent },] }],
|
|
3117
|
+
deliveryForm: [{ type: ViewChild, args: ["deliveryForm", { read: CheckoutOverviewDeliveryEditComponent },] }],
|
|
3118
|
+
relation: [{ type: Input }],
|
|
3119
|
+
transaction: [{ type: Input }],
|
|
3120
|
+
userIsApplicationUser: [{ type: Input }],
|
|
3121
|
+
saveRelation: [{ type: Output }],
|
|
3122
|
+
saveDelivery: [{ type: Output }],
|
|
3123
|
+
savePayment: [{ type: Output }],
|
|
3124
|
+
stepFinished: [{ type: Output }]
|
|
3125
|
+
};
|
|
3172
3126
|
|
|
3173
|
-
|
|
3174
|
-
let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
3127
|
+
class CheckoutComponent {
|
|
3175
3128
|
constructor(service, promptService) {
|
|
3176
3129
|
this.service = service;
|
|
3177
3130
|
this.promptService = promptService;
|
|
@@ -3209,12 +3162,12 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3209
3162
|
}
|
|
3210
3163
|
continue() {
|
|
3211
3164
|
let toNextStep = false;
|
|
3212
|
-
if (
|
|
3165
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Relation) {
|
|
3213
3166
|
toNextStep = this.overview.relationForm.submit();
|
|
3214
3167
|
this.completedRelation = toNextStep;
|
|
3215
3168
|
this.completedDelivery = false;
|
|
3216
3169
|
}
|
|
3217
|
-
if (
|
|
3170
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Delivery) {
|
|
3218
3171
|
toNextStep = this.overview.deliveryForm.submit();
|
|
3219
3172
|
this.completedDelivery = toNextStep;
|
|
3220
3173
|
}
|
|
@@ -3264,7 +3217,7 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3264
3217
|
});
|
|
3265
3218
|
}
|
|
3266
3219
|
stepChanged(event) {
|
|
3267
|
-
this.overview.moveToStep(
|
|
3220
|
+
this.overview.moveToStep(CheckoutComponent._currentStepByIndex(event.selectedIndex), true);
|
|
3268
3221
|
}
|
|
3269
3222
|
insertData() {
|
|
3270
3223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3277,21 +3230,11 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3277
3230
|
yield this.service.updateCustomer(relation);
|
|
3278
3231
|
});
|
|
3279
3232
|
}
|
|
3280
|
-
}
|
|
3281
|
-
CheckoutComponent.
|
|
3282
|
-
{ type:
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
__decorate([
|
|
3286
|
-
ViewChild(CheckoutOverviewComponent)
|
|
3287
|
-
], CheckoutComponent.prototype, "overview", void 0);
|
|
3288
|
-
__decorate([
|
|
3289
|
-
ViewChild("stepper")
|
|
3290
|
-
], CheckoutComponent.prototype, "stepper", void 0);
|
|
3291
|
-
CheckoutComponent = CheckoutComponent_1 = __decorate([
|
|
3292
|
-
Component({
|
|
3293
|
-
selector: "app-checkout",
|
|
3294
|
-
template: `
|
|
3233
|
+
}
|
|
3234
|
+
CheckoutComponent.decorators = [
|
|
3235
|
+
{ type: Component, args: [{
|
|
3236
|
+
selector: "app-checkout",
|
|
3237
|
+
template: `
|
|
3295
3238
|
<div class="checkout-viewport">
|
|
3296
3239
|
<mat-horizontal-stepper #stepper
|
|
3297
3240
|
[linear]="true" labelPosition="bottom"
|
|
@@ -3310,11 +3253,19 @@ CheckoutComponent = CheckoutComponent_1 = __decorate([
|
|
|
3310
3253
|
<div class="step-content-customer"></div>
|
|
3311
3254
|
</div>
|
|
3312
3255
|
`,
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
]
|
|
3256
|
+
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"]
|
|
3257
|
+
},] }
|
|
3258
|
+
];
|
|
3259
|
+
CheckoutComponent.ctorParameters = () => [
|
|
3260
|
+
{ type: TransactionService },
|
|
3261
|
+
{ type: PromptService }
|
|
3262
|
+
];
|
|
3263
|
+
CheckoutComponent.propDecorators = {
|
|
3264
|
+
overview: [{ type: ViewChild, args: [CheckoutOverviewComponent,] }],
|
|
3265
|
+
stepper: [{ type: ViewChild, args: ["stepper",] }]
|
|
3266
|
+
};
|
|
3316
3267
|
|
|
3317
|
-
|
|
3268
|
+
class RetailTransactionCheckoutComponent {
|
|
3318
3269
|
constructor(service) {
|
|
3319
3270
|
this.service = service;
|
|
3320
3271
|
}
|
|
@@ -3339,17 +3290,11 @@ let RetailTransactionCheckoutComponent = class RetailTransactionCheckoutComponen
|
|
|
3339
3290
|
previousCheckout() {
|
|
3340
3291
|
this.checkout.previous();
|
|
3341
3292
|
}
|
|
3342
|
-
}
|
|
3343
|
-
RetailTransactionCheckoutComponent.
|
|
3344
|
-
{ type:
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
ViewChild(CheckoutComponent, { static: true })
|
|
3348
|
-
], RetailTransactionCheckoutComponent.prototype, "checkout", void 0);
|
|
3349
|
-
RetailTransactionCheckoutComponent = __decorate([
|
|
3350
|
-
Component({
|
|
3351
|
-
selector: "app-retail-transaction-checkout",
|
|
3352
|
-
template: `
|
|
3293
|
+
}
|
|
3294
|
+
RetailTransactionCheckoutComponent.decorators = [
|
|
3295
|
+
{ type: Component, args: [{
|
|
3296
|
+
selector: "app-retail-transaction-checkout",
|
|
3297
|
+
template: `
|
|
3353
3298
|
<ng-container [ngTemplateOutlet]="content"></ng-container>
|
|
3354
3299
|
<app-checkout class="checkout"></app-checkout>
|
|
3355
3300
|
<ng-container [ngTemplateOutlet]="content"></ng-container>
|
|
@@ -3360,11 +3305,17 @@ RetailTransactionCheckoutComponent = __decorate([
|
|
|
3360
3305
|
</div>
|
|
3361
3306
|
</ng-template>
|
|
3362
3307
|
`,
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
]
|
|
3308
|
+
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"]
|
|
3309
|
+
},] }
|
|
3310
|
+
];
|
|
3311
|
+
RetailTransactionCheckoutComponent.ctorParameters = () => [
|
|
3312
|
+
{ type: TransactionService }
|
|
3313
|
+
];
|
|
3314
|
+
RetailTransactionCheckoutComponent.propDecorators = {
|
|
3315
|
+
checkout: [{ type: ViewChild, args: [CheckoutComponent, { static: true },] }]
|
|
3316
|
+
};
|
|
3366
3317
|
|
|
3367
|
-
|
|
3318
|
+
class CheckoutLoginComponent {
|
|
3368
3319
|
constructor() {
|
|
3369
3320
|
this.createNewAccountSubmit = new EventEmitter();
|
|
3370
3321
|
this.continueWithoutSubmit = new EventEmitter();
|
|
@@ -3398,26 +3349,11 @@ let CheckoutLoginComponent = class CheckoutLoginComponent {
|
|
|
3398
3349
|
this.createNewAccountSubmit.emit();
|
|
3399
3350
|
}
|
|
3400
3351
|
}
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
ViewChild("accountForm")
|
|
3407
|
-
], CheckoutLoginComponent.prototype, "accountForm", void 0);
|
|
3408
|
-
__decorate([
|
|
3409
|
-
Output()
|
|
3410
|
-
], CheckoutLoginComponent.prototype, "createNewAccountSubmit", void 0);
|
|
3411
|
-
__decorate([
|
|
3412
|
-
Output()
|
|
3413
|
-
], CheckoutLoginComponent.prototype, "continueWithoutSubmit", void 0);
|
|
3414
|
-
__decorate([
|
|
3415
|
-
Output()
|
|
3416
|
-
], CheckoutLoginComponent.prototype, "loginSubmit", void 0);
|
|
3417
|
-
CheckoutLoginComponent = __decorate([
|
|
3418
|
-
Component({
|
|
3419
|
-
selector: "checkout-login",
|
|
3420
|
-
template: `
|
|
3352
|
+
}
|
|
3353
|
+
CheckoutLoginComponent.decorators = [
|
|
3354
|
+
{ type: Component, args: [{
|
|
3355
|
+
selector: "checkout-login",
|
|
3356
|
+
template: `
|
|
3421
3357
|
<h1>{{ "LOGIN" | localize}}</h1>
|
|
3422
3358
|
<div class="users">
|
|
3423
3359
|
<co-form #loginForm (validSubmit)="login()">
|
|
@@ -3472,11 +3408,19 @@ CheckoutLoginComponent = __decorate([
|
|
|
3472
3408
|
</co-form>
|
|
3473
3409
|
</div>
|
|
3474
3410
|
`,
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
]
|
|
3411
|
+
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"]
|
|
3412
|
+
},] }
|
|
3413
|
+
];
|
|
3414
|
+
CheckoutLoginComponent.ctorParameters = () => [];
|
|
3415
|
+
CheckoutLoginComponent.propDecorators = {
|
|
3416
|
+
loginForm: [{ type: ViewChild, args: ["loginForm",] }],
|
|
3417
|
+
accountForm: [{ type: ViewChild, args: ["accountForm",] }],
|
|
3418
|
+
createNewAccountSubmit: [{ type: Output }],
|
|
3419
|
+
continueWithoutSubmit: [{ type: Output }],
|
|
3420
|
+
loginSubmit: [{ type: Output }]
|
|
3421
|
+
};
|
|
3478
3422
|
|
|
3479
|
-
|
|
3423
|
+
class IoneCheckoutComponent {
|
|
3480
3424
|
constructor(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService, globalEvents) {
|
|
3481
3425
|
this._changeDetector = _changeDetector;
|
|
3482
3426
|
this._optionsService = _optionsService;
|
|
@@ -3566,33 +3510,11 @@ let IoneCheckoutComponent = class IoneCheckoutComponent {
|
|
|
3566
3510
|
this.loggedIn = true;
|
|
3567
3511
|
this.show = true;
|
|
3568
3512
|
}
|
|
3569
|
-
}
|
|
3570
|
-
IoneCheckoutComponent.
|
|
3571
|
-
{ type:
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
{ type: DictionaryService },
|
|
3575
|
-
{ type: TransactionService },
|
|
3576
|
-
{ type: TransactionEventService },
|
|
3577
|
-
{ type: PromptService },
|
|
3578
|
-
{ type: TransactionEventService }
|
|
3579
|
-
];
|
|
3580
|
-
__decorate([
|
|
3581
|
-
ViewChild(RetailTransactionCheckoutComponent)
|
|
3582
|
-
], IoneCheckoutComponent.prototype, "retailCheckout", void 0);
|
|
3583
|
-
__decorate([
|
|
3584
|
-
ViewChild(CheckoutLoginComponent)
|
|
3585
|
-
], IoneCheckoutComponent.prototype, "checkoutLogin", void 0);
|
|
3586
|
-
__decorate([
|
|
3587
|
-
Input()
|
|
3588
|
-
], IoneCheckoutComponent.prototype, "options", null);
|
|
3589
|
-
__decorate([
|
|
3590
|
-
Input()
|
|
3591
|
-
], IoneCheckoutComponent.prototype, "applicationUser", null);
|
|
3592
|
-
IoneCheckoutComponent = __decorate([
|
|
3593
|
-
Component({
|
|
3594
|
-
selector: "ione-checkout",
|
|
3595
|
-
template: `
|
|
3513
|
+
}
|
|
3514
|
+
IoneCheckoutComponent.decorators = [
|
|
3515
|
+
{ type: Component, args: [{
|
|
3516
|
+
selector: "ione-checkout",
|
|
3517
|
+
template: `
|
|
3596
3518
|
<ng-container *ngIf="show && (applicationUser || loggedIn)">
|
|
3597
3519
|
<app-retail-transaction-checkout></app-retail-transaction-checkout>
|
|
3598
3520
|
</ng-container>
|
|
@@ -3606,10 +3528,26 @@ IoneCheckoutComponent = __decorate([
|
|
|
3606
3528
|
></checkout-login>
|
|
3607
3529
|
</div>
|
|
3608
3530
|
`
|
|
3609
|
-
|
|
3610
|
-
]
|
|
3531
|
+
},] }
|
|
3532
|
+
];
|
|
3533
|
+
IoneCheckoutComponent.ctorParameters = () => [
|
|
3534
|
+
{ type: ChangeDetectorRef },
|
|
3535
|
+
{ type: OptionsService },
|
|
3536
|
+
{ type: IOneConnectorAdapterService },
|
|
3537
|
+
{ type: DictionaryService },
|
|
3538
|
+
{ type: TransactionService },
|
|
3539
|
+
{ type: TransactionEventService },
|
|
3540
|
+
{ type: PromptService },
|
|
3541
|
+
{ type: TransactionEventService }
|
|
3542
|
+
];
|
|
3543
|
+
IoneCheckoutComponent.propDecorators = {
|
|
3544
|
+
retailCheckout: [{ type: ViewChild, args: [RetailTransactionCheckoutComponent,] }],
|
|
3545
|
+
checkoutLogin: [{ type: ViewChild, args: [CheckoutLoginComponent,] }],
|
|
3546
|
+
options: [{ type: Input }],
|
|
3547
|
+
applicationUser: [{ type: Input }]
|
|
3548
|
+
};
|
|
3611
3549
|
|
|
3612
|
-
|
|
3550
|
+
class CheckoutOverviewRelationAddressComponent {
|
|
3613
3551
|
constructor(_dictionary, _connector) {
|
|
3614
3552
|
this._dictionary = _dictionary;
|
|
3615
3553
|
this._connector = _connector;
|
|
@@ -3656,21 +3594,11 @@ let CheckoutOverviewRelationAddressComponent = class CheckoutOverviewRelationAdd
|
|
|
3656
3594
|
changeHouseNo() {
|
|
3657
3595
|
this.address.houseNo = Number(this.address.houseNo);
|
|
3658
3596
|
}
|
|
3659
|
-
}
|
|
3660
|
-
CheckoutOverviewRelationAddressComponent.
|
|
3661
|
-
{ type:
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
__decorate([
|
|
3665
|
-
Input()
|
|
3666
|
-
], CheckoutOverviewRelationAddressComponent.prototype, "label", void 0);
|
|
3667
|
-
__decorate([
|
|
3668
|
-
Input()
|
|
3669
|
-
], CheckoutOverviewRelationAddressComponent.prototype, "address", null);
|
|
3670
|
-
CheckoutOverviewRelationAddressComponent = __decorate([
|
|
3671
|
-
Component({
|
|
3672
|
-
selector: "checkout-overview-relation-address",
|
|
3673
|
-
template: `
|
|
3597
|
+
}
|
|
3598
|
+
CheckoutOverviewRelationAddressComponent.decorators = [
|
|
3599
|
+
{ type: Component, args: [{
|
|
3600
|
+
selector: "checkout-overview-relation-address",
|
|
3601
|
+
template: `
|
|
3674
3602
|
<label [textContent]="label | localize"
|
|
3675
3603
|
class="checkout-label-h3"
|
|
3676
3604
|
></label>
|
|
@@ -3715,11 +3643,19 @@ CheckoutOverviewRelationAddressComponent = __decorate([
|
|
|
3715
3643
|
</div>
|
|
3716
3644
|
</div>
|
|
3717
3645
|
`,
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
]
|
|
3646
|
+
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"]
|
|
3647
|
+
},] }
|
|
3648
|
+
];
|
|
3649
|
+
CheckoutOverviewRelationAddressComponent.ctorParameters = () => [
|
|
3650
|
+
{ type: DictionaryService },
|
|
3651
|
+
{ type: IOneConnectorAdapterService }
|
|
3652
|
+
];
|
|
3653
|
+
CheckoutOverviewRelationAddressComponent.propDecorators = {
|
|
3654
|
+
label: [{ type: Input }],
|
|
3655
|
+
address: [{ type: Input }]
|
|
3656
|
+
};
|
|
3721
3657
|
|
|
3722
|
-
|
|
3658
|
+
class CheckoutOverviewDeliveryAddressComponent {
|
|
3723
3659
|
constructor(service) {
|
|
3724
3660
|
this.service = service;
|
|
3725
3661
|
this.editRequest = new EventEmitter();
|
|
@@ -3727,23 +3663,11 @@ let CheckoutOverviewDeliveryAddressComponent = class CheckoutOverviewDeliveryAdd
|
|
|
3727
3663
|
onClick() {
|
|
3728
3664
|
this.editRequest.emit();
|
|
3729
3665
|
}
|
|
3730
|
-
}
|
|
3731
|
-
CheckoutOverviewDeliveryAddressComponent.
|
|
3732
|
-
{ type:
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
Input()
|
|
3736
|
-
], CheckoutOverviewDeliveryAddressComponent.prototype, "label", void 0);
|
|
3737
|
-
__decorate([
|
|
3738
|
-
Input()
|
|
3739
|
-
], CheckoutOverviewDeliveryAddressComponent.prototype, "address", void 0);
|
|
3740
|
-
__decorate([
|
|
3741
|
-
Output()
|
|
3742
|
-
], CheckoutOverviewDeliveryAddressComponent.prototype, "editRequest", void 0);
|
|
3743
|
-
CheckoutOverviewDeliveryAddressComponent = __decorate([
|
|
3744
|
-
Component({
|
|
3745
|
-
selector: "checkout-overview-delivery-address",
|
|
3746
|
-
template: `
|
|
3666
|
+
}
|
|
3667
|
+
CheckoutOverviewDeliveryAddressComponent.decorators = [
|
|
3668
|
+
{ type: Component, args: [{
|
|
3669
|
+
selector: "checkout-overview-delivery-address",
|
|
3670
|
+
template: `
|
|
3747
3671
|
<div>
|
|
3748
3672
|
<div>
|
|
3749
3673
|
<label [textContent]="label | localize"
|
|
@@ -3764,9 +3688,17 @@ CheckoutOverviewDeliveryAddressComponent = __decorate([
|
|
|
3764
3688
|
</div>
|
|
3765
3689
|
</div>
|
|
3766
3690
|
`,
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
]
|
|
3691
|
+
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", ""]
|
|
3692
|
+
},] }
|
|
3693
|
+
];
|
|
3694
|
+
CheckoutOverviewDeliveryAddressComponent.ctorParameters = () => [
|
|
3695
|
+
{ type: TransactionService }
|
|
3696
|
+
];
|
|
3697
|
+
CheckoutOverviewDeliveryAddressComponent.propDecorators = {
|
|
3698
|
+
label: [{ type: Input }],
|
|
3699
|
+
address: [{ type: Input }],
|
|
3700
|
+
editRequest: [{ type: Output }]
|
|
3701
|
+
};
|
|
3770
3702
|
|
|
3771
3703
|
// Direction type for regular straight directions.
|
|
3772
3704
|
var Direction;
|
|
@@ -3777,27 +3709,18 @@ var Direction;
|
|
|
3777
3709
|
Direction["Down"] = "bottom";
|
|
3778
3710
|
})(Direction || (Direction = {}));
|
|
3779
3711
|
|
|
3780
|
-
|
|
3712
|
+
class CheckOutRelationSuggestionsListComponent {
|
|
3781
3713
|
constructor() {
|
|
3782
3714
|
this.suggestions = [];
|
|
3783
3715
|
this.arrowDirection = Direction.Left;
|
|
3784
3716
|
// Emits the clicked relation list object.
|
|
3785
3717
|
this.suggestionButtonClick = new EventEmitter();
|
|
3786
3718
|
}
|
|
3787
|
-
}
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
Input()
|
|
3793
|
-
], CheckOutRelationSuggestionsListComponent.prototype, "arrowDirection", void 0);
|
|
3794
|
-
__decorate([
|
|
3795
|
-
Output()
|
|
3796
|
-
], CheckOutRelationSuggestionsListComponent.prototype, "suggestionButtonClick", void 0);
|
|
3797
|
-
CheckOutRelationSuggestionsListComponent = __decorate([
|
|
3798
|
-
Component({
|
|
3799
|
-
selector: "checkout-relation-suggestions-list",
|
|
3800
|
-
template: `
|
|
3719
|
+
}
|
|
3720
|
+
CheckOutRelationSuggestionsListComponent.decorators = [
|
|
3721
|
+
{ type: Component, args: [{
|
|
3722
|
+
selector: "checkout-relation-suggestions-list",
|
|
3723
|
+
template: `
|
|
3801
3724
|
<div class="flex-column items-wrapper">
|
|
3802
3725
|
<checkout-relation-suggestions-list-item *ngFor="let suggestion of suggestions" [suggestion]="suggestion"
|
|
3803
3726
|
[arrowDirection]="arrowDirection"
|
|
@@ -3805,14 +3728,19 @@ CheckOutRelationSuggestionsListComponent = __decorate([
|
|
|
3805
3728
|
<span *ngIf="suggestions?.length === 0" class="no-results" localize="NO_RESULTS_FOUND"></span>
|
|
3806
3729
|
</div>
|
|
3807
3730
|
`,
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
]
|
|
3731
|
+
host: {
|
|
3732
|
+
"class": "narrow-scrollbar"
|
|
3733
|
+
},
|
|
3734
|
+
styles: [""]
|
|
3735
|
+
},] }
|
|
3736
|
+
];
|
|
3737
|
+
CheckOutRelationSuggestionsListComponent.propDecorators = {
|
|
3738
|
+
suggestions: [{ type: Input }],
|
|
3739
|
+
arrowDirection: [{ type: Input }],
|
|
3740
|
+
suggestionButtonClick: [{ type: Output }]
|
|
3741
|
+
};
|
|
3814
3742
|
|
|
3815
|
-
|
|
3743
|
+
class CheckOutRelationSuggestionsListItemComponent {
|
|
3816
3744
|
constructor() {
|
|
3817
3745
|
this.buttonClick = new EventEmitter();
|
|
3818
3746
|
// public icon: Icon;
|
|
@@ -3832,20 +3760,11 @@ let CheckOutRelationSuggestionsListItemComponent = class CheckOutRelationSuggest
|
|
|
3832
3760
|
// this.icon = Icon.ArrowFatRight;
|
|
3833
3761
|
// }
|
|
3834
3762
|
}
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
Input()
|
|
3841
|
-
], CheckOutRelationSuggestionsListItemComponent.prototype, "arrowDirection", null);
|
|
3842
|
-
__decorate([
|
|
3843
|
-
Output()
|
|
3844
|
-
], CheckOutRelationSuggestionsListItemComponent.prototype, "buttonClick", void 0);
|
|
3845
|
-
CheckOutRelationSuggestionsListItemComponent = __decorate([
|
|
3846
|
-
Component({
|
|
3847
|
-
selector: "checkout-relation-suggestions-list-item",
|
|
3848
|
-
template: `
|
|
3763
|
+
}
|
|
3764
|
+
CheckOutRelationSuggestionsListItemComponent.decorators = [
|
|
3765
|
+
{ type: Component, args: [{
|
|
3766
|
+
selector: "checkout-relation-suggestions-list-item",
|
|
3767
|
+
template: `
|
|
3849
3768
|
<!-- <div class="left" fxLayout fxLayoutAlign="start center">-->
|
|
3850
3769
|
<!-- <avatar [relation]="suggestion" class="smaller"></avatar>-->
|
|
3851
3770
|
<!-- </div>-->
|
|
@@ -3861,11 +3780,18 @@ CheckOutRelationSuggestionsListItemComponent = __decorate([
|
|
|
3861
3780
|
</div>
|
|
3862
3781
|
<co-button [label]="'SELECT' | localize" class="popup rounded" (click)="buttonClick.emit($event)"></co-button>
|
|
3863
3782
|
`,
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
]
|
|
3783
|
+
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"]
|
|
3784
|
+
},] }
|
|
3785
|
+
];
|
|
3786
|
+
CheckOutRelationSuggestionsListItemComponent.ctorParameters = () => [];
|
|
3787
|
+
CheckOutRelationSuggestionsListItemComponent.propDecorators = {
|
|
3788
|
+
suggestion: [{ type: Input }],
|
|
3789
|
+
arrowDirection: [{ type: Input }],
|
|
3790
|
+
buttonClick: [{ type: Output }]
|
|
3791
|
+
};
|
|
3867
3792
|
|
|
3868
|
-
|
|
3793
|
+
// A pipe for appending strings to other strings in view templates.
|
|
3794
|
+
class AppendPipe {
|
|
3869
3795
|
transform(value, append) {
|
|
3870
3796
|
if (!value) {
|
|
3871
3797
|
return "";
|
|
@@ -3875,10 +3801,10 @@ let AppendPipe = class AppendPipe {
|
|
|
3875
3801
|
}
|
|
3876
3802
|
return value + append;
|
|
3877
3803
|
}
|
|
3878
|
-
}
|
|
3879
|
-
AppendPipe =
|
|
3880
|
-
Pipe
|
|
3881
|
-
]
|
|
3804
|
+
}
|
|
3805
|
+
AppendPipe.decorators = [
|
|
3806
|
+
{ type: Pipe, args: [{ name: "append" },] }
|
|
3807
|
+
];
|
|
3882
3808
|
|
|
3883
3809
|
// Time size types, as in 'days' or 'weeks' or 'months'.
|
|
3884
3810
|
var TimeSizeType;
|
|
@@ -3890,7 +3816,7 @@ var TimeSizeType;
|
|
|
3890
3816
|
TimeSizeType["Years"] = "years";
|
|
3891
3817
|
})(TimeSizeType || (TimeSizeType = {}));
|
|
3892
3818
|
|
|
3893
|
-
|
|
3819
|
+
class DateDurationPipe {
|
|
3894
3820
|
constructor(_dictionary) {
|
|
3895
3821
|
this._dictionary = _dictionary;
|
|
3896
3822
|
}
|
|
@@ -3935,15 +3861,15 @@ let DateDurationPipe = class DateDurationPipe {
|
|
|
3935
3861
|
}
|
|
3936
3862
|
return deltaWeeks + " " + weeksSuffix;
|
|
3937
3863
|
}
|
|
3938
|
-
}
|
|
3864
|
+
}
|
|
3865
|
+
DateDurationPipe.decorators = [
|
|
3866
|
+
{ type: Pipe, args: [{ name: "dateDuration", pure: false },] }
|
|
3867
|
+
];
|
|
3939
3868
|
DateDurationPipe.ctorParameters = () => [
|
|
3940
3869
|
{ type: DictionaryService }
|
|
3941
|
-
];
|
|
3942
|
-
DateDurationPipe = __decorate([
|
|
3943
|
-
Pipe({ name: "dateDuration", pure: false })
|
|
3944
|
-
], DateDurationPipe);
|
|
3870
|
+
];
|
|
3945
3871
|
|
|
3946
|
-
|
|
3872
|
+
class DeliveryTimePipe extends DateDurationPipe {
|
|
3947
3873
|
constructor(_dictionaryService) {
|
|
3948
3874
|
super(_dictionaryService);
|
|
3949
3875
|
}
|
|
@@ -3963,18 +3889,17 @@ let DeliveryTimePipe = class DeliveryTimePipe extends DateDurationPipe {
|
|
|
3963
3889
|
return super.transform(value, timeSize);
|
|
3964
3890
|
}
|
|
3965
3891
|
}
|
|
3966
|
-
}
|
|
3892
|
+
}
|
|
3893
|
+
DeliveryTimePipe.decorators = [
|
|
3894
|
+
{ type: Pipe, args: [{ name: "deliveryTime", pure: false },] }
|
|
3895
|
+
];
|
|
3967
3896
|
DeliveryTimePipe.ctorParameters = () => [
|
|
3968
3897
|
{ type: DictionaryService }
|
|
3969
|
-
];
|
|
3970
|
-
DeliveryTimePipe = __decorate([
|
|
3971
|
-
Pipe({ name: "deliveryTime", pure: false })
|
|
3972
|
-
], DeliveryTimePipe);
|
|
3898
|
+
];
|
|
3973
3899
|
|
|
3974
|
-
let LocalizePipe =
|
|
3975
3900
|
// A pipe for localizing string values in view templates.
|
|
3976
3901
|
class LocalizePipe {
|
|
3977
|
-
//
|
|
3902
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
3978
3903
|
constructor(_dictionaryService) {
|
|
3979
3904
|
this._dictionaryService = _dictionaryService;
|
|
3980
3905
|
}
|
|
@@ -3988,19 +3913,21 @@ class LocalizePipe {
|
|
|
3988
3913
|
}
|
|
3989
3914
|
return this._dictionaryService.get(value, upperCaseFirst, ...replace);
|
|
3990
3915
|
}
|
|
3991
|
-
}
|
|
3916
|
+
}
|
|
3917
|
+
LocalizePipe.decorators = [
|
|
3918
|
+
{ type: Pipe, args: [{
|
|
3919
|
+
name: "localize"
|
|
3920
|
+
},] }
|
|
3921
|
+
];
|
|
3992
3922
|
LocalizePipe.ctorParameters = () => [
|
|
3993
3923
|
{ type: DictionaryService }
|
|
3994
|
-
];
|
|
3995
|
-
LocalizePipe = __decorate([
|
|
3996
|
-
Pipe({
|
|
3997
|
-
name: "localize"
|
|
3998
|
-
})
|
|
3999
|
-
// A pipe for localizing string values in view templates.
|
|
4000
|
-
], LocalizePipe);
|
|
3924
|
+
];
|
|
4001
3925
|
|
|
4002
|
-
|
|
4003
|
-
|
|
3926
|
+
/**
|
|
3927
|
+
* 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"
|
|
3928
|
+
* or the string "9000" to "€ 9000,-"
|
|
3929
|
+
*/
|
|
3930
|
+
class CoCurrencyPipe {
|
|
4004
3931
|
transform(value, allowZero = false) {
|
|
4005
3932
|
if (value === null || value === undefined) {
|
|
4006
3933
|
if (allowZero) {
|
|
@@ -4020,7 +3947,7 @@ let CoCurrencyPipe = CoCurrencyPipe_1 = class CoCurrencyPipe {
|
|
|
4020
3947
|
}
|
|
4021
3948
|
// append ,- if integer
|
|
4022
3949
|
if (NumberUtils.IsInteger(valueAsFloat)) {
|
|
4023
|
-
suffix =
|
|
3950
|
+
suffix = CoCurrencyPipe._WholeNumberedPriceSuffix;
|
|
4024
3951
|
}
|
|
4025
3952
|
let valueAsString = valueAsFloat.toString();
|
|
4026
3953
|
// add extra zero if price has only one decimal, something like '100.2'
|
|
@@ -4032,33 +3959,33 @@ let CoCurrencyPipe = CoCurrencyPipe_1 = class CoCurrencyPipe {
|
|
|
4032
3959
|
valueAsString = valueAsString.replace(",", "#");
|
|
4033
3960
|
valueAsString = valueAsString.replace(".", ",");
|
|
4034
3961
|
valueAsString = valueAsString.replace("#", ".");
|
|
4035
|
-
return
|
|
3962
|
+
return CoCurrencyPipe._CurrencySymbol + " " + valueAsString + suffix;
|
|
4036
3963
|
}
|
|
4037
|
-
}
|
|
3964
|
+
}
|
|
4038
3965
|
CoCurrencyPipe._CurrencySymbol = "€";
|
|
4039
3966
|
CoCurrencyPipe._WholeNumberedPriceSuffix = ",-";
|
|
4040
|
-
CoCurrencyPipe =
|
|
4041
|
-
Pipe
|
|
4042
|
-
]
|
|
3967
|
+
CoCurrencyPipe.decorators = [
|
|
3968
|
+
{ type: Pipe, args: [{ name: "coCurrency" },] }
|
|
3969
|
+
];
|
|
4043
3970
|
|
|
4044
|
-
|
|
3971
|
+
class SafeStylePipe {
|
|
4045
3972
|
constructor(_sanitizer) {
|
|
4046
3973
|
this._sanitizer = _sanitizer;
|
|
4047
3974
|
}
|
|
4048
3975
|
transform(value) {
|
|
4049
3976
|
return this._sanitizer.bypassSecurityTrustStyle(value);
|
|
4050
3977
|
}
|
|
4051
|
-
}
|
|
3978
|
+
}
|
|
3979
|
+
SafeStylePipe.decorators = [
|
|
3980
|
+
{ type: Pipe, args: [{
|
|
3981
|
+
name: "safeStyle"
|
|
3982
|
+
},] }
|
|
3983
|
+
];
|
|
4052
3984
|
SafeStylePipe.ctorParameters = () => [
|
|
4053
3985
|
{ type: DomSanitizer }
|
|
4054
|
-
];
|
|
4055
|
-
SafeStylePipe = __decorate([
|
|
4056
|
-
Pipe({
|
|
4057
|
-
name: "safeStyle"
|
|
4058
|
-
})
|
|
4059
|
-
], SafeStylePipe);
|
|
3986
|
+
];
|
|
4060
3987
|
|
|
4061
|
-
|
|
3988
|
+
class ImageDisplayComponent {
|
|
4062
3989
|
constructor() {
|
|
4063
3990
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4064
3991
|
this.label = "NO_IMAGE";
|
|
@@ -4074,46 +4001,30 @@ let ImageDisplayComponent = class ImageDisplayComponent {
|
|
|
4074
4001
|
get shouldBeHidden() {
|
|
4075
4002
|
return (this.hideOnEmptyModel && !this.model);
|
|
4076
4003
|
}
|
|
4077
|
-
}
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
Input()
|
|
4083
|
-
], ImageDisplayComponent.prototype, "label", void 0);
|
|
4084
|
-
__decorate([
|
|
4085
|
-
Input()
|
|
4086
|
-
], ImageDisplayComponent.prototype, "hideOnEmptyModel", void 0);
|
|
4087
|
-
__decorate([
|
|
4088
|
-
Input(),
|
|
4089
|
-
HostBinding("class.circle")
|
|
4090
|
-
], ImageDisplayComponent.prototype, "circle", void 0);
|
|
4091
|
-
__decorate([
|
|
4092
|
-
Input(),
|
|
4093
|
-
HostBinding("class.cover-image")
|
|
4094
|
-
], ImageDisplayComponent.prototype, "cover", void 0);
|
|
4095
|
-
__decorate([
|
|
4096
|
-
Input(),
|
|
4097
|
-
HostBinding("class.pointer-hover")
|
|
4098
|
-
], ImageDisplayComponent.prototype, "pointerOnHover", void 0);
|
|
4099
|
-
__decorate([
|
|
4100
|
-
HostBinding("class.hidden")
|
|
4101
|
-
], ImageDisplayComponent.prototype, "shouldBeHidden", null);
|
|
4102
|
-
ImageDisplayComponent = __decorate([
|
|
4103
|
-
Component({
|
|
4104
|
-
selector: "image-display",
|
|
4105
|
-
template: `
|
|
4004
|
+
}
|
|
4005
|
+
ImageDisplayComponent.decorators = [
|
|
4006
|
+
{ type: Component, args: [{
|
|
4007
|
+
selector: "image-display",
|
|
4008
|
+
template: `
|
|
4106
4009
|
<div class="img-wrapper">
|
|
4107
4010
|
<div *ngIf="!!model" class="image" [style.background-image]="'url(' + model + ')' | safeStyle"></div>
|
|
4108
4011
|
<no-image-display *ngIf="!model" [label]="label"></no-image-display>
|
|
4109
4012
|
<ng-content></ng-content>
|
|
4110
4013
|
</div>
|
|
4111
4014
|
`,
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
]
|
|
4015
|
+
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"]
|
|
4016
|
+
},] }
|
|
4017
|
+
];
|
|
4018
|
+
ImageDisplayComponent.propDecorators = {
|
|
4019
|
+
model: [{ type: Input }],
|
|
4020
|
+
label: [{ type: Input }],
|
|
4021
|
+
hideOnEmptyModel: [{ type: Input }],
|
|
4022
|
+
circle: [{ type: Input }, { type: HostBinding, args: ["class.circle",] }],
|
|
4023
|
+
cover: [{ type: Input }, { type: HostBinding, args: ["class.cover-image",] }],
|
|
4024
|
+
pointerOnHover: [{ type: Input }, { type: HostBinding, args: ["class.pointer-hover",] }],
|
|
4025
|
+
shouldBeHidden: [{ type: HostBinding, args: ["class.hidden",] }]
|
|
4026
|
+
};
|
|
4115
4027
|
|
|
4116
|
-
let NoImageDisplayComponent =
|
|
4117
4028
|
// Component that shows a standardized icon and text for when there was no image (default: a camera icon and the 'no image' text).
|
|
4118
4029
|
class NoImageDisplayComponent {
|
|
4119
4030
|
constructor() {
|
|
@@ -4122,26 +4033,23 @@ class NoImageDisplayComponent {
|
|
|
4122
4033
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4123
4034
|
this.label = "NO_IMAGE";
|
|
4124
4035
|
}
|
|
4125
|
-
}
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
Input()
|
|
4131
|
-
], NoImageDisplayComponent.prototype, "label", void 0);
|
|
4132
|
-
NoImageDisplayComponent = __decorate([
|
|
4133
|
-
Component({
|
|
4134
|
-
selector: "no-image-display",
|
|
4135
|
-
template: `
|
|
4036
|
+
}
|
|
4037
|
+
NoImageDisplayComponent.decorators = [
|
|
4038
|
+
{ type: Component, args: [{
|
|
4039
|
+
selector: "no-image-display",
|
|
4040
|
+
template: `
|
|
4136
4041
|
<icon [icon]="icon"></icon>
|
|
4137
4042
|
<span [textContent]="label | localize" class="no-image-label"></span>
|
|
4138
4043
|
`,
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4044
|
+
styles: [""]
|
|
4045
|
+
},] }
|
|
4046
|
+
];
|
|
4047
|
+
NoImageDisplayComponent.propDecorators = {
|
|
4048
|
+
icon: [{ type: Input }],
|
|
4049
|
+
label: [{ type: Input }]
|
|
4050
|
+
};
|
|
4143
4051
|
|
|
4144
|
-
|
|
4052
|
+
class IconComponent {
|
|
4145
4053
|
constructor(_iconCacheService) {
|
|
4146
4054
|
this._iconCacheService = _iconCacheService;
|
|
4147
4055
|
}
|
|
@@ -4154,112 +4062,109 @@ let IconComponent = class IconComponent {
|
|
|
4154
4062
|
_setSvg(icon) {
|
|
4155
4063
|
this.svg = this._iconCacheService.getIcon(icon);
|
|
4156
4064
|
}
|
|
4157
|
-
}
|
|
4065
|
+
}
|
|
4066
|
+
IconComponent.decorators = [
|
|
4067
|
+
{ type: Component, args: [{
|
|
4068
|
+
selector: "icon",
|
|
4069
|
+
template: "",
|
|
4070
|
+
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"]
|
|
4071
|
+
},] }
|
|
4072
|
+
];
|
|
4158
4073
|
IconComponent.ctorParameters = () => [
|
|
4159
4074
|
{ type: IconCacheService }
|
|
4160
4075
|
];
|
|
4161
|
-
|
|
4162
|
-
Input
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
HostBinding("innerHtml")
|
|
4166
|
-
], IconComponent.prototype, "svg", void 0);
|
|
4167
|
-
IconComponent = __decorate([
|
|
4168
|
-
Component({
|
|
4169
|
-
selector: "icon",
|
|
4170
|
-
template: "",
|
|
4171
|
-
styles: ["body,html{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.circle:host{border-radius:50%}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important;margin:10px 0}:host{display:inline-flex;width:30px;height:30px}.no-shrink:host{flex-shrink:0}:host.action ::ng-deep{cursor:pointer}:host ::ng-deep svg{width:100%;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}.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%}: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}"]
|
|
4172
|
-
})
|
|
4173
|
-
], IconComponent);
|
|
4076
|
+
IconComponent.propDecorators = {
|
|
4077
|
+
icon: [{ type: Input }],
|
|
4078
|
+
svg: [{ type: HostBinding, args: ["innerHtml",] }]
|
|
4079
|
+
};
|
|
4174
4080
|
|
|
4175
|
-
|
|
4176
|
-
}
|
|
4177
|
-
CoreModule =
|
|
4178
|
-
NgModule
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
]
|
|
4081
|
+
class CoreModule {
|
|
4082
|
+
}
|
|
4083
|
+
CoreModule.decorators = [
|
|
4084
|
+
{ type: NgModule, args: [{
|
|
4085
|
+
declarations: [
|
|
4086
|
+
AppendPipe,
|
|
4087
|
+
DeliveryTimePipe,
|
|
4088
|
+
DateDurationPipe,
|
|
4089
|
+
LocalizePipe,
|
|
4090
|
+
CoCurrencyPipe,
|
|
4091
|
+
SafeStylePipe,
|
|
4092
|
+
ImageDisplayComponent,
|
|
4093
|
+
NoImageDisplayComponent,
|
|
4094
|
+
IconComponent,
|
|
4095
|
+
],
|
|
4096
|
+
exports: [
|
|
4097
|
+
LocalizePipe,
|
|
4098
|
+
CoCurrencyPipe,
|
|
4099
|
+
AppendPipe,
|
|
4100
|
+
DeliveryTimePipe,
|
|
4101
|
+
SafeStylePipe,
|
|
4102
|
+
CoCurrencyPipe,
|
|
4103
|
+
ImageDisplayComponent,
|
|
4104
|
+
NoImageDisplayComponent,
|
|
4105
|
+
IconComponent,
|
|
4106
|
+
],
|
|
4107
|
+
imports: [
|
|
4108
|
+
CommonModule
|
|
4109
|
+
]
|
|
4110
|
+
},] }
|
|
4111
|
+
];
|
|
4206
4112
|
|
|
4207
|
-
|
|
4208
|
-
}
|
|
4209
|
-
IoneCheckoutModule =
|
|
4210
|
-
NgModule
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
], IoneCheckoutModule);
|
|
4113
|
+
class IoneCheckoutModule {
|
|
4114
|
+
}
|
|
4115
|
+
IoneCheckoutModule.decorators = [
|
|
4116
|
+
{ type: NgModule, args: [{
|
|
4117
|
+
imports: [
|
|
4118
|
+
BrowserAnimationsModule,
|
|
4119
|
+
IconModule,
|
|
4120
|
+
InputTextModule,
|
|
4121
|
+
InputCheckboxModule,
|
|
4122
|
+
InputRadioButtonModule,
|
|
4123
|
+
FormModule,
|
|
4124
|
+
InputComboBoxModule,
|
|
4125
|
+
InputDatePickerModule,
|
|
4126
|
+
InputNumberPickerModule,
|
|
4127
|
+
CoDialogModule,
|
|
4128
|
+
CoDialogPromptModule,
|
|
4129
|
+
ButtonModule,
|
|
4130
|
+
FlexModule,
|
|
4131
|
+
MultiSelectListModule,
|
|
4132
|
+
MatStepperModule,
|
|
4133
|
+
DropDownModule,
|
|
4134
|
+
PopupModule.forRoot(),
|
|
4135
|
+
CoSidebarModule,
|
|
4136
|
+
CoGridModule,
|
|
4137
|
+
CoreModule,
|
|
4138
|
+
],
|
|
4139
|
+
declarations: [
|
|
4140
|
+
CheckoutComponent,
|
|
4141
|
+
CheckoutOverviewComponent,
|
|
4142
|
+
CheckoutOverviewBlockComponent,
|
|
4143
|
+
CheckoutOverviewRelationEditComponent,
|
|
4144
|
+
CheckoutOverviewRelationAddressComponent,
|
|
4145
|
+
CheckoutOverviewDeliveryEditComponent,
|
|
4146
|
+
RetailTransactionCheckoutComponent,
|
|
4147
|
+
CheckoutOverviewDeliveryAddressComponent,
|
|
4148
|
+
CheckOutRelationSuggestionsListComponent,
|
|
4149
|
+
CheckOutRelationSuggestionsListItemComponent,
|
|
4150
|
+
CheckoutLoginComponent,
|
|
4151
|
+
IoneCheckoutComponent,
|
|
4152
|
+
],
|
|
4153
|
+
providers: [
|
|
4154
|
+
IOneConnectorAdapterService,
|
|
4155
|
+
DictionaryService,
|
|
4156
|
+
TransactionService,
|
|
4157
|
+
OptionsService
|
|
4158
|
+
],
|
|
4159
|
+
entryComponents: [
|
|
4160
|
+
IoneCheckoutComponent
|
|
4161
|
+
],
|
|
4162
|
+
exports: [IoneCheckoutComponent],
|
|
4163
|
+
bootstrap: [IoneCheckoutComponent]
|
|
4164
|
+
},] }
|
|
4165
|
+
];
|
|
4261
4166
|
|
|
4262
|
-
|
|
4167
|
+
class ShoppingCartManagerComponent {
|
|
4263
4168
|
constructor(service, transactionEvents, promptService, _dictionaryService) {
|
|
4264
4169
|
this.service = service;
|
|
4265
4170
|
this.transactionEvents = transactionEvents;
|
|
@@ -4568,38 +4473,14 @@ let ShoppingCartManagerComponent = class ShoppingCartManagerComponent {
|
|
|
4568
4473
|
this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
|
|
4569
4474
|
setTimeout(() => {
|
|
4570
4475
|
this.characteristicAnswer.open();
|
|
4571
|
-
//
|
|
4476
|
+
// eslint-disable-next-line no-magic-numbers
|
|
4572
4477
|
}, 1000);
|
|
4573
4478
|
}
|
|
4574
|
-
}
|
|
4575
|
-
ShoppingCartManagerComponent.
|
|
4576
|
-
{ type:
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
{ type: DictionaryService }
|
|
4580
|
-
];
|
|
4581
|
-
__decorate([
|
|
4582
|
-
ViewChild("warehouseDialog")
|
|
4583
|
-
], ShoppingCartManagerComponent.prototype, "warehouseDialog", void 0);
|
|
4584
|
-
__decorate([
|
|
4585
|
-
ViewChild("warehouseGrid")
|
|
4586
|
-
], ShoppingCartManagerComponent.prototype, "warehouseGrid", void 0);
|
|
4587
|
-
__decorate([
|
|
4588
|
-
ViewChild("characteristicAnswer")
|
|
4589
|
-
], ShoppingCartManagerComponent.prototype, "characteristicAnswer", void 0);
|
|
4590
|
-
__decorate([
|
|
4591
|
-
Output()
|
|
4592
|
-
], ShoppingCartManagerComponent.prototype, "linesChanged", void 0);
|
|
4593
|
-
__decorate([
|
|
4594
|
-
Output()
|
|
4595
|
-
], ShoppingCartManagerComponent.prototype, "openCart", void 0);
|
|
4596
|
-
__decorate([
|
|
4597
|
-
Output()
|
|
4598
|
-
], ShoppingCartManagerComponent.prototype, "articleAdded", void 0);
|
|
4599
|
-
ShoppingCartManagerComponent = __decorate([
|
|
4600
|
-
Component({
|
|
4601
|
-
selector: "shopping-cart-manager",
|
|
4602
|
-
template: `
|
|
4479
|
+
}
|
|
4480
|
+
ShoppingCartManagerComponent.decorators = [
|
|
4481
|
+
{ type: Component, args: [{
|
|
4482
|
+
selector: "shopping-cart-manager",
|
|
4483
|
+
template: `
|
|
4603
4484
|
<co-dialog #warehouseDialog
|
|
4604
4485
|
(closeClick)="hide()"
|
|
4605
4486
|
(overlayClick)="onStockManagerCancelClick()"
|
|
@@ -4645,9 +4526,23 @@ ShoppingCartManagerComponent = __decorate([
|
|
|
4645
4526
|
(okClick)="handleCharacteristicAnswerOkClick($event)"
|
|
4646
4527
|
></characteristic-answer>
|
|
4647
4528
|
`,
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
]
|
|
4529
|
+
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"]
|
|
4530
|
+
},] }
|
|
4531
|
+
];
|
|
4532
|
+
ShoppingCartManagerComponent.ctorParameters = () => [
|
|
4533
|
+
{ type: TransactionService },
|
|
4534
|
+
{ type: TransactionEventService },
|
|
4535
|
+
{ type: PromptService },
|
|
4536
|
+
{ type: DictionaryService }
|
|
4537
|
+
];
|
|
4538
|
+
ShoppingCartManagerComponent.propDecorators = {
|
|
4539
|
+
warehouseDialog: [{ type: ViewChild, args: ["warehouseDialog",] }],
|
|
4540
|
+
warehouseGrid: [{ type: ViewChild, args: ["warehouseGrid",] }],
|
|
4541
|
+
characteristicAnswer: [{ type: ViewChild, args: ["characteristicAnswer",] }],
|
|
4542
|
+
linesChanged: [{ type: Output }],
|
|
4543
|
+
openCart: [{ type: Output }],
|
|
4544
|
+
articleAdded: [{ type: Output }]
|
|
4545
|
+
};
|
|
4651
4546
|
|
|
4652
4547
|
var OrderDiscountType;
|
|
4653
4548
|
(function (OrderDiscountType) {
|
|
@@ -4666,7 +4561,7 @@ var ContentViewMode;
|
|
|
4666
4561
|
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
4667
4562
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
4668
4563
|
|
|
4669
|
-
|
|
4564
|
+
class ShoppingCartComponent {
|
|
4670
4565
|
constructor(iconCacheService, _dictionary, service, _transactionEvents, _changeDetector) {
|
|
4671
4566
|
this.iconCacheService = iconCacheService;
|
|
4672
4567
|
this._dictionary = _dictionary;
|
|
@@ -4781,47 +4676,11 @@ let ShoppingCartComponent = class ShoppingCartComponent {
|
|
|
4781
4676
|
this.discountsSidebar.hide();
|
|
4782
4677
|
}
|
|
4783
4678
|
}
|
|
4784
|
-
}
|
|
4785
|
-
ShoppingCartComponent.
|
|
4786
|
-
{ type:
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
{ type: TransactionEventService },
|
|
4790
|
-
{ type: ChangeDetectorRef }
|
|
4791
|
-
];
|
|
4792
|
-
__decorate([
|
|
4793
|
-
ViewChild(CoSidebarComponent, { static: false })
|
|
4794
|
-
], ShoppingCartComponent.prototype, "discountsSidebar", void 0);
|
|
4795
|
-
__decorate([
|
|
4796
|
-
Input(),
|
|
4797
|
-
HostBinding("class.overlayed")
|
|
4798
|
-
], ShoppingCartComponent.prototype, "overlayMode", void 0);
|
|
4799
|
-
__decorate([
|
|
4800
|
-
Input(),
|
|
4801
|
-
HostBinding("class.overview")
|
|
4802
|
-
], ShoppingCartComponent.prototype, "overviewMode", void 0);
|
|
4803
|
-
__decorate([
|
|
4804
|
-
Input()
|
|
4805
|
-
], ShoppingCartComponent.prototype, "hideOverviewButton", void 0);
|
|
4806
|
-
__decorate([
|
|
4807
|
-
Input()
|
|
4808
|
-
], ShoppingCartComponent.prototype, "hideCheckoutButton", void 0);
|
|
4809
|
-
__decorate([
|
|
4810
|
-
Input()
|
|
4811
|
-
], ShoppingCartComponent.prototype, "hideCloseCartButton", void 0);
|
|
4812
|
-
__decorate([
|
|
4813
|
-
Output()
|
|
4814
|
-
], ShoppingCartComponent.prototype, "closeCart", void 0);
|
|
4815
|
-
__decorate([
|
|
4816
|
-
Output()
|
|
4817
|
-
], ShoppingCartComponent.prototype, "checkout", void 0);
|
|
4818
|
-
__decorate([
|
|
4819
|
-
Output()
|
|
4820
|
-
], ShoppingCartComponent.prototype, "overview", void 0);
|
|
4821
|
-
ShoppingCartComponent = __decorate([
|
|
4822
|
-
Component({
|
|
4823
|
-
selector: "shopping-cart",
|
|
4824
|
-
template: `
|
|
4679
|
+
}
|
|
4680
|
+
ShoppingCartComponent.decorators = [
|
|
4681
|
+
{ type: Component, args: [{
|
|
4682
|
+
selector: "shopping-cart",
|
|
4683
|
+
template: `
|
|
4825
4684
|
<div class="cart-header">
|
|
4826
4685
|
<span class="cart-header-label" [textContent]="getCartLabel()"></span>
|
|
4827
4686
|
<div class="view-mode-buttons">
|
|
@@ -4930,11 +4789,29 @@ ShoppingCartComponent = __decorate([
|
|
|
4930
4789
|
</co-form>
|
|
4931
4790
|
</co-dialog>
|
|
4932
4791
|
`,
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
]
|
|
4792
|
+
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"]
|
|
4793
|
+
},] }
|
|
4794
|
+
];
|
|
4795
|
+
ShoppingCartComponent.ctorParameters = () => [
|
|
4796
|
+
{ type: IconCacheService },
|
|
4797
|
+
{ type: DictionaryService },
|
|
4798
|
+
{ type: TransactionService },
|
|
4799
|
+
{ type: TransactionEventService },
|
|
4800
|
+
{ type: ChangeDetectorRef }
|
|
4801
|
+
];
|
|
4802
|
+
ShoppingCartComponent.propDecorators = {
|
|
4803
|
+
discountsSidebar: [{ type: ViewChild, args: [CoSidebarComponent, { static: false },] }],
|
|
4804
|
+
overlayMode: [{ type: Input }, { type: HostBinding, args: ["class.overlayed",] }],
|
|
4805
|
+
overviewMode: [{ type: Input }, { type: HostBinding, args: ["class.overview",] }],
|
|
4806
|
+
hideOverviewButton: [{ type: Input }],
|
|
4807
|
+
hideCheckoutButton: [{ type: Input }],
|
|
4808
|
+
hideCloseCartButton: [{ type: Input }],
|
|
4809
|
+
closeCart: [{ type: Output }],
|
|
4810
|
+
checkout: [{ type: Output }],
|
|
4811
|
+
overview: [{ type: Output }]
|
|
4812
|
+
};
|
|
4936
4813
|
|
|
4937
|
-
|
|
4814
|
+
class IoneShoppingCartComponent {
|
|
4938
4815
|
constructor(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService) {
|
|
4939
4816
|
this._changeDetector = _changeDetector;
|
|
4940
4817
|
this._optionsService = _optionsService;
|
|
@@ -5020,47 +4897,11 @@ let IoneShoppingCartComponent = class IoneShoppingCartComponent {
|
|
|
5020
4897
|
});
|
|
5021
4898
|
});
|
|
5022
4899
|
}
|
|
5023
|
-
}
|
|
5024
|
-
IoneShoppingCartComponent.
|
|
5025
|
-
{ type:
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
{ type: DictionaryService },
|
|
5029
|
-
{ type: TransactionService },
|
|
5030
|
-
{ type: TransactionEventService },
|
|
5031
|
-
{ type: PromptService }
|
|
5032
|
-
];
|
|
5033
|
-
__decorate([
|
|
5034
|
-
ViewChild(ShoppingCartManagerComponent)
|
|
5035
|
-
], IoneShoppingCartComponent.prototype, "manager", void 0);
|
|
5036
|
-
__decorate([
|
|
5037
|
-
ViewChild(ShoppingCartComponent)
|
|
5038
|
-
], IoneShoppingCartComponent.prototype, "shoppingCart", void 0);
|
|
5039
|
-
__decorate([
|
|
5040
|
-
Input()
|
|
5041
|
-
], IoneShoppingCartComponent.prototype, "options", null);
|
|
5042
|
-
__decorate([
|
|
5043
|
-
Input()
|
|
5044
|
-
], IoneShoppingCartComponent.prototype, "hideOverviewButton", void 0);
|
|
5045
|
-
__decorate([
|
|
5046
|
-
Input()
|
|
5047
|
-
], IoneShoppingCartComponent.prototype, "hideCheckoutButton", void 0);
|
|
5048
|
-
__decorate([
|
|
5049
|
-
Input()
|
|
5050
|
-
], IoneShoppingCartComponent.prototype, "hideCloseCartButton", void 0);
|
|
5051
|
-
__decorate([
|
|
5052
|
-
Output()
|
|
5053
|
-
], IoneShoppingCartComponent.prototype, "closeCart", void 0);
|
|
5054
|
-
__decorate([
|
|
5055
|
-
Output()
|
|
5056
|
-
], IoneShoppingCartComponent.prototype, "checkout", void 0);
|
|
5057
|
-
__decorate([
|
|
5058
|
-
Output()
|
|
5059
|
-
], IoneShoppingCartComponent.prototype, "overview", void 0);
|
|
5060
|
-
IoneShoppingCartComponent = __decorate([
|
|
5061
|
-
Component({
|
|
5062
|
-
selector: "ione-shopping-cart",
|
|
5063
|
-
template: `
|
|
4900
|
+
}
|
|
4901
|
+
IoneShoppingCartComponent.decorators = [
|
|
4902
|
+
{ type: Component, args: [{
|
|
4903
|
+
selector: "ione-shopping-cart",
|
|
4904
|
+
template: `
|
|
5064
4905
|
<ng-container *ngIf="upAndLoaded">
|
|
5065
4906
|
<shopping-cart-manager
|
|
5066
4907
|
(linesChanged)="linesChanged($event)"
|
|
@@ -5077,10 +4918,30 @@ IoneShoppingCartComponent = __decorate([
|
|
|
5077
4918
|
></shopping-cart>
|
|
5078
4919
|
</ng-container>
|
|
5079
4920
|
`
|
|
5080
|
-
|
|
5081
|
-
]
|
|
4921
|
+
},] }
|
|
4922
|
+
];
|
|
4923
|
+
IoneShoppingCartComponent.ctorParameters = () => [
|
|
4924
|
+
{ type: ChangeDetectorRef },
|
|
4925
|
+
{ type: OptionsService },
|
|
4926
|
+
{ type: IOneConnectorAdapterService },
|
|
4927
|
+
{ type: DictionaryService },
|
|
4928
|
+
{ type: TransactionService },
|
|
4929
|
+
{ type: TransactionEventService },
|
|
4930
|
+
{ type: PromptService }
|
|
4931
|
+
];
|
|
4932
|
+
IoneShoppingCartComponent.propDecorators = {
|
|
4933
|
+
manager: [{ type: ViewChild, args: [ShoppingCartManagerComponent,] }],
|
|
4934
|
+
shoppingCart: [{ type: ViewChild, args: [ShoppingCartComponent,] }],
|
|
4935
|
+
options: [{ type: Input }],
|
|
4936
|
+
hideOverviewButton: [{ type: Input }],
|
|
4937
|
+
hideCheckoutButton: [{ type: Input }],
|
|
4938
|
+
hideCloseCartButton: [{ type: Input }],
|
|
4939
|
+
closeCart: [{ type: Output }],
|
|
4940
|
+
checkout: [{ type: Output }],
|
|
4941
|
+
overview: [{ type: Output }]
|
|
4942
|
+
};
|
|
5082
4943
|
|
|
5083
|
-
|
|
4944
|
+
class ShoppingCartLineComponent {
|
|
5084
4945
|
constructor(iconCacheService, service, _promptService, _dictionaryService) {
|
|
5085
4946
|
this.iconCacheService = iconCacheService;
|
|
5086
4947
|
this.service = service;
|
|
@@ -5175,37 +5036,11 @@ let ShoppingCartLineComponent = class ShoppingCartLineComponent {
|
|
|
5175
5036
|
}
|
|
5176
5037
|
});
|
|
5177
5038
|
}
|
|
5178
|
-
}
|
|
5179
|
-
ShoppingCartLineComponent.
|
|
5180
|
-
{ type:
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
{ type: DictionaryService }
|
|
5184
|
-
];
|
|
5185
|
-
__decorate([
|
|
5186
|
-
Input(),
|
|
5187
|
-
HostBinding("class.overlayed")
|
|
5188
|
-
], ShoppingCartLineComponent.prototype, "overlayMode", void 0);
|
|
5189
|
-
__decorate([
|
|
5190
|
-
Input(),
|
|
5191
|
-
HostBinding("class.overview")
|
|
5192
|
-
], ShoppingCartLineComponent.prototype, "overviewMode", void 0);
|
|
5193
|
-
__decorate([
|
|
5194
|
-
HostBinding("class.is-text")
|
|
5195
|
-
], ShoppingCartLineComponent.prototype, "isText", void 0);
|
|
5196
|
-
__decorate([
|
|
5197
|
-
HostBinding("class.is-article")
|
|
5198
|
-
], ShoppingCartLineComponent.prototype, "isArticle", void 0);
|
|
5199
|
-
__decorate([
|
|
5200
|
-
HostBinding("class.is-selected")
|
|
5201
|
-
], ShoppingCartLineComponent.prototype, "isSelected", void 0);
|
|
5202
|
-
__decorate([
|
|
5203
|
-
Input()
|
|
5204
|
-
], ShoppingCartLineComponent.prototype, "line", null);
|
|
5205
|
-
ShoppingCartLineComponent = __decorate([
|
|
5206
|
-
Component({
|
|
5207
|
-
selector: "shopping-cart-line",
|
|
5208
|
-
template: `
|
|
5039
|
+
}
|
|
5040
|
+
ShoppingCartLineComponent.decorators = [
|
|
5041
|
+
{ type: Component, args: [{
|
|
5042
|
+
selector: "shopping-cart-line",
|
|
5043
|
+
template: `
|
|
5209
5044
|
<div *ngIf="line.isArticle" class="cart-line-r" fxFlex>
|
|
5210
5045
|
<div fxLayout="row" class="full-width">
|
|
5211
5046
|
<div fxLayout="column" class="cart-line-image" *ngIf="!overviewMode">
|
|
@@ -5252,36 +5087,48 @@ ShoppingCartLineComponent = __decorate([
|
|
|
5252
5087
|
[textContent]="line.text">
|
|
5253
5088
|
</div>
|
|
5254
5089
|
`,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
]
|
|
5090
|
+
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"]
|
|
5091
|
+
},] }
|
|
5092
|
+
];
|
|
5093
|
+
ShoppingCartLineComponent.ctorParameters = () => [
|
|
5094
|
+
{ type: IconCacheService },
|
|
5095
|
+
{ type: TransactionService },
|
|
5096
|
+
{ type: PromptService },
|
|
5097
|
+
{ type: DictionaryService }
|
|
5098
|
+
];
|
|
5099
|
+
ShoppingCartLineComponent.propDecorators = {
|
|
5100
|
+
overlayMode: [{ type: Input }, { type: HostBinding, args: ["class.overlayed",] }],
|
|
5101
|
+
overviewMode: [{ type: Input }, { type: HostBinding, args: ["class.overview",] }],
|
|
5102
|
+
isText: [{ type: HostBinding, args: ["class.is-text",] }],
|
|
5103
|
+
isArticle: [{ type: HostBinding, args: ["class.is-article",] }],
|
|
5104
|
+
isSelected: [{ type: HostBinding, args: ["class.is-selected",] }],
|
|
5105
|
+
line: [{ type: Input }]
|
|
5106
|
+
};
|
|
5258
5107
|
|
|
5259
|
-
let StockStatusIndicatorComponent =
|
|
5260
5108
|
// Component that visually shows a stock status with three colored boxes.
|
|
5261
5109
|
class StockStatusIndicatorComponent {
|
|
5262
5110
|
get stockClass() {
|
|
5263
5111
|
return this.model;
|
|
5264
5112
|
}
|
|
5265
|
-
}
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
Component({
|
|
5271
|
-
selector: "stock-status-indicator",
|
|
5272
|
-
template: `
|
|
5113
|
+
}
|
|
5114
|
+
StockStatusIndicatorComponent.decorators = [
|
|
5115
|
+
{ type: Component, args: [{
|
|
5116
|
+
selector: "stock-status-indicator",
|
|
5117
|
+
template: `
|
|
5273
5118
|
<div [class]="stockClass">
|
|
5274
5119
|
<div class="square-1"></div>
|
|
5275
5120
|
<div class="square-2"></div>
|
|
5276
5121
|
<div class="square-3"></div>
|
|
5277
5122
|
</div>
|
|
5278
5123
|
`,
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5124
|
+
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"]
|
|
5125
|
+
},] }
|
|
5126
|
+
];
|
|
5127
|
+
StockStatusIndicatorComponent.propDecorators = {
|
|
5128
|
+
model: [{ type: Input }]
|
|
5129
|
+
};
|
|
5283
5130
|
|
|
5284
|
-
|
|
5131
|
+
class CharacteristicAnswerComponent {
|
|
5285
5132
|
constructor(_dictionaryService) {
|
|
5286
5133
|
this._dictionaryService = _dictionaryService;
|
|
5287
5134
|
this.title = "";
|
|
@@ -5311,26 +5158,11 @@ let CharacteristicAnswerComponent = class CharacteristicAnswerComponent {
|
|
|
5311
5158
|
this.okClick.emit(this.value);
|
|
5312
5159
|
});
|
|
5313
5160
|
}
|
|
5314
|
-
}
|
|
5315
|
-
CharacteristicAnswerComponent.
|
|
5316
|
-
{ type:
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
ViewChild("characteristic")
|
|
5320
|
-
], CharacteristicAnswerComponent.prototype, "characteristicDialog", void 0);
|
|
5321
|
-
__decorate([
|
|
5322
|
-
Input()
|
|
5323
|
-
], CharacteristicAnswerComponent.prototype, "title", void 0);
|
|
5324
|
-
__decorate([
|
|
5325
|
-
Input()
|
|
5326
|
-
], CharacteristicAnswerComponent.prototype, "question", void 0);
|
|
5327
|
-
__decorate([
|
|
5328
|
-
Output()
|
|
5329
|
-
], CharacteristicAnswerComponent.prototype, "okClick", void 0);
|
|
5330
|
-
CharacteristicAnswerComponent = __decorate([
|
|
5331
|
-
Component({
|
|
5332
|
-
selector: "characteristic-answer",
|
|
5333
|
-
template: `
|
|
5161
|
+
}
|
|
5162
|
+
CharacteristicAnswerComponent.decorators = [
|
|
5163
|
+
{ type: Component, args: [{
|
|
5164
|
+
selector: "characteristic-answer",
|
|
5165
|
+
template: `
|
|
5334
5166
|
<co-dialog
|
|
5335
5167
|
#characteristic
|
|
5336
5168
|
[showCloseIcon]="false"
|
|
@@ -5379,58 +5211,67 @@ CharacteristicAnswerComponent = __decorate([
|
|
|
5379
5211
|
</ng-container>
|
|
5380
5212
|
</co-dialog>
|
|
5381
5213
|
`,
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
]
|
|
5214
|
+
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"]
|
|
5215
|
+
},] }
|
|
5216
|
+
];
|
|
5217
|
+
CharacteristicAnswerComponent.ctorParameters = () => [
|
|
5218
|
+
{ type: DictionaryService }
|
|
5219
|
+
];
|
|
5220
|
+
CharacteristicAnswerComponent.propDecorators = {
|
|
5221
|
+
characteristicDialog: [{ type: ViewChild, args: ["characteristic",] }],
|
|
5222
|
+
title: [{ type: Input }],
|
|
5223
|
+
question: [{ type: Input }],
|
|
5224
|
+
okClick: [{ type: Output }]
|
|
5225
|
+
};
|
|
5385
5226
|
|
|
5386
|
-
|
|
5387
|
-
}
|
|
5388
|
-
IoneShoppingCartModule =
|
|
5389
|
-
NgModule
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
]
|
|
5227
|
+
class IoneShoppingCartModule {
|
|
5228
|
+
}
|
|
5229
|
+
IoneShoppingCartModule.decorators = [
|
|
5230
|
+
{ type: NgModule, args: [{
|
|
5231
|
+
declarations: [
|
|
5232
|
+
ShoppingCartManagerComponent,
|
|
5233
|
+
ShoppingCartComponent,
|
|
5234
|
+
ShoppingCartLineComponent,
|
|
5235
|
+
StockStatusIndicatorComponent,
|
|
5236
|
+
IoneShoppingCartComponent,
|
|
5237
|
+
CharacteristicAnswerComponent,
|
|
5238
|
+
],
|
|
5239
|
+
imports: [
|
|
5240
|
+
BrowserAnimationsModule,
|
|
5241
|
+
CommonModule,
|
|
5242
|
+
IconModule,
|
|
5243
|
+
InputTextModule,
|
|
5244
|
+
InputCheckboxModule,
|
|
5245
|
+
InputRadioButtonModule,
|
|
5246
|
+
FormModule,
|
|
5247
|
+
InputComboBoxModule,
|
|
5248
|
+
InputDatePickerModule,
|
|
5249
|
+
InputNumberPickerModule,
|
|
5250
|
+
CoDialogModule,
|
|
5251
|
+
CoDialogPromptModule,
|
|
5252
|
+
ButtonModule,
|
|
5253
|
+
FlexModule,
|
|
5254
|
+
MultiSelectListModule,
|
|
5255
|
+
MatStepperModule,
|
|
5256
|
+
DropDownModule,
|
|
5257
|
+
PopupModule.forRoot(),
|
|
5258
|
+
CoSidebarModule,
|
|
5259
|
+
CoGridModule,
|
|
5260
|
+
CoreModule,
|
|
5261
|
+
],
|
|
5262
|
+
providers: [
|
|
5263
|
+
IOneConnectorAdapterService,
|
|
5264
|
+
DictionaryService,
|
|
5265
|
+
TransactionService,
|
|
5266
|
+
OptionsService
|
|
5267
|
+
],
|
|
5268
|
+
entryComponents: [
|
|
5269
|
+
IoneShoppingCartComponent
|
|
5270
|
+
],
|
|
5271
|
+
exports: [IoneShoppingCartComponent],
|
|
5272
|
+
bootstrap: [IoneShoppingCartComponent]
|
|
5273
|
+
},] }
|
|
5274
|
+
];
|
|
5434
5275
|
|
|
5435
5276
|
//export * from "./app/component/ione-transaction.module";
|
|
5436
5277
|
|
|
@@ -5438,5 +5279,5 @@ IoneShoppingCartModule = __decorate([
|
|
|
5438
5279
|
* Generated bundle index. Do not edit.
|
|
5439
5280
|
*/
|
|
5440
5281
|
|
|
5441
|
-
export { IoneCheckoutComponent, IoneCheckoutModule, IoneShoppingCartComponent, IoneShoppingCartModule, RetailTransactionCheckoutComponent as ɵa, CheckoutComponent as ɵb, ShoppingCartManagerComponent as ɵba, ShoppingCartComponent as ɵbb, ShoppingCartLineComponent as ɵbc, StockStatusIndicatorComponent as ɵbd, CharacteristicAnswerComponent as ɵbe, CheckoutOverviewComponent as ɵc, CheckoutOverviewBlockComponent as ɵd, CheckoutOverviewRelationEditComponent as ɵe, TransactionService as ɵf, IOneConnectorAdapterService as ɵg, CheckoutOverviewDeliveryEditComponent as ɵh, DictionaryService as ɵi, CheckoutLoginComponent as ɵj, OptionsService as ɵk, TransactionEventService as ɵl,
|
|
5282
|
+
export { IoneCheckoutComponent, IoneCheckoutModule, IoneShoppingCartComponent, IoneShoppingCartModule, RetailTransactionCheckoutComponent as ɵa, CheckoutComponent as ɵb, ShoppingCartManagerComponent as ɵba, ShoppingCartComponent as ɵbb, ShoppingCartLineComponent as ɵbc, StockStatusIndicatorComponent as ɵbd, CharacteristicAnswerComponent as ɵbe, CheckoutOverviewComponent as ɵc, CheckoutOverviewBlockComponent as ɵd, CheckoutOverviewRelationEditComponent as ɵe, TransactionService as ɵf, IOneConnectorAdapterService as ɵg, CheckoutOverviewDeliveryEditComponent as ɵh, DictionaryService as ɵi, CheckoutLoginComponent as ɵj, OptionsService as ɵk, TransactionEventService as ɵl, CoreModule as ɵm, AppendPipe as ɵn, DeliveryTimePipe as ɵo, DateDurationPipe as ɵp, LocalizePipe as ɵq, CoCurrencyPipe as ɵr, SafeStylePipe as ɵs, ImageDisplayComponent as ɵt, NoImageDisplayComponent as ɵu, IconComponent as ɵv, CheckoutOverviewRelationAddressComponent as ɵw, CheckoutOverviewDeliveryAddressComponent as ɵx, CheckOutRelationSuggestionsListComponent as ɵy, CheckOutRelationSuggestionsListItemComponent as ɵz };
|
|
5442
5283
|
//# sourceMappingURL=colijnit-transaction.js.map
|