@colijnit/transaction 1.9.28 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +4 -0
- package/app/component/common/icon/icon.component.d.ts +1 -2
- package/app/service/ione-connector-adapter.service.d.ts +1 -1
- package/bundles/colijnit-transaction.umd.js +762 -809
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +14 -14
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout/checkout.component.js +23 -25
- package/esm2015/app/component/checkout/checkout-login/checkout-login.component.js +18 -27
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +26 -49
- package/esm2015/app/component/checkout/checkout-overview-block/checkout-overview-block.component.js +17 -24
- package/esm2015/app/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +19 -23
- package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +48 -42
- package/esm2015/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +20 -21
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +26 -35
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +18 -24
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +16 -21
- package/esm2015/app/component/checkout/ione-checkout.component.js +27 -32
- package/esm2015/app/component/checkout/ione-checkout.module.js +55 -58
- package/esm2015/app/component/checkout/retail-transaction-checkout/retail-transaction-checkout.component.js +17 -17
- package/esm2015/app/component/common/icon/icon.component.js +17 -19
- package/esm2015/app/component/common/image-display/image-display.component.js +19 -36
- package/esm2015/app/component/common/no-image-display/no-image-display.component.js +14 -20
- package/esm2015/app/component/core/core.module.js +32 -34
- package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +21 -26
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +31 -46
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +51 -52
- package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +29 -47
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +26 -37
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +28 -37
- package/esm2015/app/component/shopping-cart/stock-status-indicator/stock-status-indicator.component.js +13 -17
- package/esm2015/app/model/business-object.js +6 -6
- package/esm2015/app/pipe/append.pipe.js +6 -8
- package/esm2015/app/pipe/co-currency.pipe.js +8 -11
- package/esm2015/app/pipe/date-duration.pipe.js +10 -10
- package/esm2015/app/pipe/delivery-time.pipe.js +10 -10
- package/esm2015/app/pipe/localize.pipe.js +13 -16
- package/esm2015/app/pipe/safe-style-pipe.js +12 -12
- package/esm2015/app/service/dictionary.service.js +10 -10
- package/esm2015/app/service/ione-connector-adapter.service.js +11 -11
- package/esm2015/app/service/options.service.js +8 -8
- package/esm2015/app/service/transaction-event.service.js +6 -8
- package/esm2015/app/service/transaction.service.js +17 -16
- package/esm2015/assets/dictionary/text.properties.js +13 -5
- package/esm2015/colijnit-transaction.js +15 -15
- package/esm2015/factory/decorators/complex-field.decorator.js +2 -2
- package/fesm2015/colijnit-transaction.js +677 -775
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +32 -20
- package/bundles/colijnit-transaction.umd.min.js +0 -16
- package/bundles/colijnit-transaction.umd.min.js.map +0 -1
- package/enum/icon.enum.d.ts +0 -281
- package/esm2015/enum/icon.enum.js +0 -283
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __awaiter
|
|
1
|
+
import { __awaiter } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, EventEmitter,
|
|
3
|
+
import { Injectable, EventEmitter, Component, Input, Output, ChangeDetectorRef, ViewChild, Pipe, HostBinding, NgModule } from '@angular/core';
|
|
4
4
|
import { BehaviorSubject, Subject, throwError } from 'rxjs';
|
|
5
5
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
6
6
|
import { CustomerFullObject } from '@colijnit/transactionapi/build/model/customer-full-object.bo';
|
|
@@ -54,7 +54,7 @@ import { SortType } from '@colijnit/transactionapi/build/enum/sort-type.enum';
|
|
|
54
54
|
import { SortUtils } from '@colijnit/transactionapi/build/utils/sort-utils';
|
|
55
55
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
class OptionsService {
|
|
58
58
|
constructor() {
|
|
59
59
|
this.optionsLoaded = new BehaviorSubject(false);
|
|
60
60
|
}
|
|
@@ -136,10 +136,11 @@ let OptionsService = class OptionsService {
|
|
|
136
136
|
languageCode: "NL",
|
|
137
137
|
}).then();
|
|
138
138
|
}
|
|
139
|
-
}
|
|
140
|
-
OptionsService =
|
|
141
|
-
Injectable
|
|
142
|
-
]
|
|
139
|
+
}
|
|
140
|
+
OptionsService.decorators = [
|
|
141
|
+
{ type: Injectable }
|
|
142
|
+
];
|
|
143
|
+
OptionsService.ctorParameters = () => [];
|
|
143
144
|
|
|
144
145
|
const PROP_META_KEY$3 = "complexField";
|
|
145
146
|
/**
|
|
@@ -166,7 +167,7 @@ function ComplexField(type) {
|
|
|
166
167
|
// warn the programmer if given type was undefined; it's probably an import order glitch that caused this, because decorators seem
|
|
167
168
|
// to be immediately processed when a class is first imported
|
|
168
169
|
if (!type) {
|
|
169
|
-
//
|
|
170
|
+
// eslint-disable-next-line no-console
|
|
170
171
|
console.warn(`@ComplexField(type): type was UNDEFINED. Called on prop (${ObjectUtils.GetClassName(target)}, ${propertyKey}). ` +
|
|
171
172
|
`Class will not properly serialize and deserialize now. We've always been able to fix this by CHANGING IMPORT ORDERS ` +
|
|
172
173
|
`where both classes and their dependencies are used, e.g. factory, repository or models..`);
|
|
@@ -631,7 +632,7 @@ class BusinessObject {
|
|
|
631
632
|
const mapKeys = MapPropertyDecorator.GetMapProperty(this, key).split(",");
|
|
632
633
|
const len = mapKeys.length;
|
|
633
634
|
for (let i = 0; i < len; i++) {
|
|
634
|
-
//
|
|
635
|
+
// eslint-disable-next-line
|
|
635
636
|
const mapKey = mapKeys[i].trim();
|
|
636
637
|
const objProp = rawData[mapKey];
|
|
637
638
|
let decorated = false;
|
|
@@ -646,13 +647,13 @@ class BusinessObject {
|
|
|
646
647
|
}
|
|
647
648
|
if (ComplexArrayDecorator$1.IsComplexArray(this, key)) {
|
|
648
649
|
const arrayClass = ComplexArrayDecorator$1.GetComplexArrayType(this, key);
|
|
649
|
-
//
|
|
650
|
+
// eslint-disable-next-line
|
|
650
651
|
const origArray = this[key];
|
|
651
|
-
//
|
|
652
|
+
// eslint-disable-next-line
|
|
652
653
|
const newArray = [];
|
|
653
|
-
//
|
|
654
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
654
655
|
for (let j = 0; j < origArray.length; j++) {
|
|
655
|
-
//
|
|
656
|
+
// eslint-disable-next-line
|
|
656
657
|
const item = new arrayClass(origArray[j]);
|
|
657
658
|
newArray.push(item);
|
|
658
659
|
}
|
|
@@ -797,7 +798,7 @@ class BusinessObjectFactory {
|
|
|
797
798
|
}
|
|
798
799
|
}
|
|
799
800
|
|
|
800
|
-
|
|
801
|
+
class IOneConnectorAdapterService {
|
|
801
802
|
constructor() {
|
|
802
803
|
this._boFactory = new BusinessObjectFactory();
|
|
803
804
|
this._countryList = [];
|
|
@@ -952,9 +953,9 @@ let IOneConnectorAdapterService = class IOneConnectorAdapterService {
|
|
|
952
953
|
});
|
|
953
954
|
});
|
|
954
955
|
}
|
|
955
|
-
saveTransaction(uuid
|
|
956
|
+
saveTransaction(uuid) {
|
|
956
957
|
return new Promise((resolve, reject) => {
|
|
957
|
-
return this.connector.saveTransaction(uuid
|
|
958
|
+
return this.connector.saveTransaction(uuid).then((result) => {
|
|
958
959
|
if (result.validationResult && result.validationResult.success) {
|
|
959
960
|
resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
|
|
960
961
|
}
|
|
@@ -1065,7 +1066,7 @@ let IOneConnectorAdapterService = class IOneConnectorAdapterService {
|
|
|
1065
1066
|
return new Promise((resolve, reject) => {
|
|
1066
1067
|
return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
|
|
1067
1068
|
if (result.validationResult && result.validationResult.success) {
|
|
1068
|
-
resolve(result.
|
|
1069
|
+
resolve(result.validationResult.success);
|
|
1069
1070
|
}
|
|
1070
1071
|
else {
|
|
1071
1072
|
reject(result.validationMessagesAsString);
|
|
@@ -1247,12 +1248,13 @@ let IOneConnectorAdapterService = class IOneConnectorAdapterService {
|
|
|
1247
1248
|
});
|
|
1248
1249
|
});
|
|
1249
1250
|
}
|
|
1250
|
-
}
|
|
1251
|
-
IOneConnectorAdapterService =
|
|
1252
|
-
Injectable
|
|
1253
|
-
]
|
|
1251
|
+
}
|
|
1252
|
+
IOneConnectorAdapterService.decorators = [
|
|
1253
|
+
{ type: Injectable }
|
|
1254
|
+
];
|
|
1255
|
+
IOneConnectorAdapterService.ctorParameters = () => [];
|
|
1254
1256
|
|
|
1255
|
-
|
|
1257
|
+
class TransactionService {
|
|
1256
1258
|
constructor(_connector) {
|
|
1257
1259
|
this._connector = _connector;
|
|
1258
1260
|
this.transactionUpdated = new EventEmitter();
|
|
@@ -1399,8 +1401,8 @@ let TransactionService = class TransactionService {
|
|
|
1399
1401
|
return new Promise((resolve, reject) => {
|
|
1400
1402
|
this._connector.getTransactionByNrAndKind(kind, transactionNr)
|
|
1401
1403
|
.then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1404
|
+
this._rememberCurrentTransaction(response);
|
|
1402
1405
|
if (response.isSuccess) {
|
|
1403
|
-
this._rememberCurrentTransaction(response);
|
|
1404
1406
|
resolve(true);
|
|
1405
1407
|
}
|
|
1406
1408
|
else {
|
|
@@ -1414,7 +1416,7 @@ let TransactionService = class TransactionService {
|
|
|
1414
1416
|
}
|
|
1415
1417
|
saveTransaction(close = false) {
|
|
1416
1418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1417
|
-
const response = yield this._connector.saveTransaction(this.currentTransaction.uuid
|
|
1419
|
+
const response = yield this._connector.saveTransaction(this.currentTransaction.uuid);
|
|
1418
1420
|
if (response.isSuccess) {
|
|
1419
1421
|
this._rememberCurrentTransaction(response);
|
|
1420
1422
|
}
|
|
@@ -1535,7 +1537,7 @@ let TransactionService = class TransactionService {
|
|
|
1535
1537
|
reject(error);
|
|
1536
1538
|
})
|
|
1537
1539
|
.catch((reason) => {
|
|
1538
|
-
resolve();
|
|
1540
|
+
resolve(null);
|
|
1539
1541
|
});
|
|
1540
1542
|
});
|
|
1541
1543
|
});
|
|
@@ -1554,7 +1556,7 @@ let TransactionService = class TransactionService {
|
|
|
1554
1556
|
}
|
|
1555
1557
|
}))
|
|
1556
1558
|
.catch((reason) => {
|
|
1557
|
-
resolve();
|
|
1559
|
+
resolve(null);
|
|
1558
1560
|
});
|
|
1559
1561
|
});
|
|
1560
1562
|
});
|
|
@@ -1574,7 +1576,7 @@ let TransactionService = class TransactionService {
|
|
|
1574
1576
|
}
|
|
1575
1577
|
}))
|
|
1576
1578
|
.catch((reason) => {
|
|
1577
|
-
resolve();
|
|
1579
|
+
resolve(null);
|
|
1578
1580
|
});
|
|
1579
1581
|
});
|
|
1580
1582
|
});
|
|
@@ -1590,7 +1592,7 @@ let TransactionService = class TransactionService {
|
|
|
1590
1592
|
}
|
|
1591
1593
|
resolve(response);
|
|
1592
1594
|
})).catch((reason) => {
|
|
1593
|
-
resolve();
|
|
1595
|
+
resolve(null);
|
|
1594
1596
|
});
|
|
1595
1597
|
});
|
|
1596
1598
|
});
|
|
@@ -1659,11 +1661,13 @@ let TransactionService = class TransactionService {
|
|
|
1659
1661
|
transactionDeliveryOptionsRequest.invoiceAddress = this._currentTransaction.invoiceAddress.nawNr;
|
|
1660
1662
|
return transactionDeliveryOptionsRequest;
|
|
1661
1663
|
}
|
|
1662
|
-
}
|
|
1663
|
-
TransactionService =
|
|
1664
|
-
Injectable
|
|
1665
|
-
|
|
1666
|
-
|
|
1664
|
+
}
|
|
1665
|
+
TransactionService.decorators = [
|
|
1666
|
+
{ type: Injectable }
|
|
1667
|
+
];
|
|
1668
|
+
TransactionService.ctorParameters = () => [
|
|
1669
|
+
{ type: IOneConnectorAdapterService }
|
|
1670
|
+
];
|
|
1667
1671
|
|
|
1668
1672
|
var LanguageCode;
|
|
1669
1673
|
(function (LanguageCode) {
|
|
@@ -1754,6 +1758,7 @@ class Dictionary {
|
|
|
1754
1758
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
1755
1759
|
"ARTICLE_NR": "Artikelnummer",
|
|
1756
1760
|
"ASSEMBLY_COSTS": "Montagekosten",
|
|
1761
|
+
"ASSEMBLY_DATE": "Montagedatum",
|
|
1757
1762
|
"AMOUNT": "Aantal",
|
|
1758
1763
|
"BACK": "Terug",
|
|
1759
1764
|
"CANCEL": "Annuleren",
|
|
@@ -1780,18 +1785,20 @@ class Dictionary {
|
|
|
1780
1785
|
"DELIVERY_ADDRESS_ADD": "Bezorgadres toevoegen",
|
|
1781
1786
|
"DELIVERY_ADDRESS_CHANGE": "Bezorgadres wijzigen",
|
|
1782
1787
|
"DELIVERY_COSTS": "Bezorgkosten",
|
|
1783
|
-
"DELIVERY_DATE": "
|
|
1788
|
+
"DELIVERY_DATE": "Leverdatum",
|
|
1789
|
+
"DELIVERY_DATE_FINAL": "Definitieve leverdatum",
|
|
1784
1790
|
"DELIVERY_DIRECT": "Direct leverbaar",
|
|
1785
1791
|
"DELIVERY_LOCATION": "Bezorgingslocatie",
|
|
1786
|
-
"DELIVERY_OPTIONS": "
|
|
1787
|
-
"DELIVERY_METHOD2": "
|
|
1788
|
-
"DELIVERY_MOMENT": "
|
|
1792
|
+
"DELIVERY_OPTIONS": "Leveropties",
|
|
1793
|
+
"DELIVERY_METHOD2": "Levermethode",
|
|
1794
|
+
"DELIVERY_MOMENT": "Levermoment",
|
|
1789
1795
|
"DELIVERY_OPTARTICLE_NRIONS": "Bezorgopties",
|
|
1790
1796
|
"DELIVERY_TIME_PERIOD": "Levertijd",
|
|
1791
1797
|
"DESCRIPTION": "Omschrijving",
|
|
1792
1798
|
"DISCOUNT": "Korting",
|
|
1793
1799
|
"DISCOUNT_AMOUNT": "Kortingsbedrag",
|
|
1794
1800
|
"DISCOUNT_PERCENTAGE": "Kortings %",
|
|
1801
|
+
"DROPSHIPMENT": "Dropshipment",
|
|
1795
1802
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
1796
1803
|
"EXISTING_CUSTOMERS": "Bestaande klanten",
|
|
1797
1804
|
"FEMALE": "Vrouw",
|
|
@@ -1865,6 +1872,7 @@ class Dictionary {
|
|
|
1865
1872
|
"SURCHARGE_AMOUNT": "Toeslag",
|
|
1866
1873
|
"STREET": "Straatnaam",
|
|
1867
1874
|
"TOTAL_GROSS": "Totaal bruto",
|
|
1875
|
+
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
1868
1876
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
1869
1877
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
1870
1878
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
@@ -1891,6 +1899,7 @@ class Dictionary {
|
|
|
1891
1899
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
1892
1900
|
"ARTICLE_NR": "Article number",
|
|
1893
1901
|
"ASSEMBLY_COSTS": "Assembly costs",
|
|
1902
|
+
"ASSEMBLY_DATE": "Assembly date",
|
|
1894
1903
|
"AMOUNT": "Amount",
|
|
1895
1904
|
"BACK": "Back",
|
|
1896
1905
|
"CANCEL": "Cancel",
|
|
@@ -1918,6 +1927,7 @@ class Dictionary {
|
|
|
1918
1927
|
"DELIVERY_ADDRESS_CHANGE": "Change delivery address",
|
|
1919
1928
|
"DELIVERY_COSTS": "Delivery costs",
|
|
1920
1929
|
"DELIVERY_DATE": "Delivery date",
|
|
1930
|
+
"DELIVERY_DATE_FINAL": "Final delivery date",
|
|
1921
1931
|
"DELIVERY_DIRECT": "Direct delivery",
|
|
1922
1932
|
"DELIVERY_LOCATION": "Delivery location",
|
|
1923
1933
|
"DELIVERY_OPTIONS": "Delivery options",
|
|
@@ -1929,6 +1939,7 @@ class Dictionary {
|
|
|
1929
1939
|
"DISCOUNT": "Discount",
|
|
1930
1940
|
"DISCOUNT_AMOUNT": "Discount amount",
|
|
1931
1941
|
"DISCOUNT_PERCENTAGE": "Discount %",
|
|
1942
|
+
"DROPSHIPMENT": "Dropshipment",
|
|
1932
1943
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
1933
1944
|
"EXISTING_CUSTOMERS": "Existing customers",
|
|
1934
1945
|
"FEMALE": "Female",
|
|
@@ -1994,6 +2005,7 @@ class Dictionary {
|
|
|
1994
2005
|
"SURCHARGE_AMOUNT": "Surcharge",
|
|
1995
2006
|
"STREET": "Streetname",
|
|
1996
2007
|
"TOTAL_GROSS": "Gross total",
|
|
2008
|
+
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
1997
2009
|
"TRANSACTION_DISCOUNT": "Total transaction discount",
|
|
1998
2010
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. discount",
|
|
1999
2011
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
@@ -2010,7 +2022,7 @@ class Dictionary {
|
|
|
2010
2022
|
}
|
|
2011
2023
|
|
|
2012
2024
|
// The localization service, providing peers with text translation functionality.
|
|
2013
|
-
|
|
2025
|
+
class DictionaryService {
|
|
2014
2026
|
constructor() {
|
|
2015
2027
|
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
2016
2028
|
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
@@ -2031,9 +2043,9 @@ let DictionaryService = class DictionaryService {
|
|
|
2031
2043
|
this._language = language || LanguageCode.Dutch;
|
|
2032
2044
|
if (!this._dictionaries.has(this._language)) {
|
|
2033
2045
|
const dictionary = new Dictionary();
|
|
2034
|
-
//
|
|
2046
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2035
2047
|
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
2036
|
-
//
|
|
2048
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2037
2049
|
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
2038
2050
|
}
|
|
2039
2051
|
}
|
|
@@ -2063,12 +2075,13 @@ let DictionaryService = class DictionaryService {
|
|
|
2063
2075
|
}
|
|
2064
2076
|
return text;
|
|
2065
2077
|
}
|
|
2066
|
-
}
|
|
2067
|
-
DictionaryService =
|
|
2068
|
-
Injectable
|
|
2069
|
-
]
|
|
2078
|
+
}
|
|
2079
|
+
DictionaryService.decorators = [
|
|
2080
|
+
{ type: Injectable }
|
|
2081
|
+
];
|
|
2082
|
+
DictionaryService.ctorParameters = () => [];
|
|
2070
2083
|
|
|
2071
|
-
|
|
2084
|
+
class TransactionEventService {
|
|
2072
2085
|
constructor() {
|
|
2073
2086
|
this.addToCartBySku = new Subject();
|
|
2074
2087
|
this.addToCartBySelectorResult = new Subject();
|
|
@@ -2077,11 +2090,11 @@ let TransactionEventService = class TransactionEventService {
|
|
|
2077
2090
|
this.addNewUserToShoppingCartModule = new Subject();
|
|
2078
2091
|
this.addUserRelationShoppingCartModule = new Subject();
|
|
2079
2092
|
}
|
|
2080
|
-
}
|
|
2093
|
+
}
|
|
2081
2094
|
TransactionEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
2082
|
-
TransactionEventService =
|
|
2083
|
-
Injectable
|
|
2084
|
-
]
|
|
2095
|
+
TransactionEventService.decorators = [
|
|
2096
|
+
{ type: Injectable, args: [{ providedIn: "root" },] }
|
|
2097
|
+
];
|
|
2085
2098
|
|
|
2086
2099
|
var CheckoutSteps;
|
|
2087
2100
|
(function (CheckoutSteps) {
|
|
@@ -2093,7 +2106,7 @@ var CheckoutSteps;
|
|
|
2093
2106
|
CheckoutSteps[CheckoutSteps["Printing"] = 4] = "Printing";
|
|
2094
2107
|
})(CheckoutSteps || (CheckoutSteps = {}));
|
|
2095
2108
|
|
|
2096
|
-
|
|
2109
|
+
class CheckoutOverviewBlockComponent {
|
|
2097
2110
|
constructor() {
|
|
2098
2111
|
this.sequenceNr = 1;
|
|
2099
2112
|
this.startInEdit = false;
|
|
@@ -2115,23 +2128,11 @@ let CheckoutOverviewBlockComponent = class CheckoutOverviewBlockComponent {
|
|
|
2115
2128
|
this.editModeChange.emit(this.editMode);
|
|
2116
2129
|
}
|
|
2117
2130
|
}
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
Input()
|
|
2124
|
-
], CheckoutOverviewBlockComponent.prototype, "label", void 0);
|
|
2125
|
-
__decorate([
|
|
2126
|
-
Input()
|
|
2127
|
-
], CheckoutOverviewBlockComponent.prototype, "startInEdit", void 0);
|
|
2128
|
-
__decorate([
|
|
2129
|
-
Output()
|
|
2130
|
-
], CheckoutOverviewBlockComponent.prototype, "editModeChange", void 0);
|
|
2131
|
-
CheckoutOverviewBlockComponent = __decorate([
|
|
2132
|
-
Component({
|
|
2133
|
-
selector: "checkout-overview-block",
|
|
2134
|
-
template: `
|
|
2131
|
+
}
|
|
2132
|
+
CheckoutOverviewBlockComponent.decorators = [
|
|
2133
|
+
{ type: Component, args: [{
|
|
2134
|
+
selector: "checkout-overview-block",
|
|
2135
|
+
template: `
|
|
2135
2136
|
<div class="overview-wrapper" fxLayout="column" fxLayoutGap="0px">
|
|
2136
2137
|
<div class="overview-header" fxLayout="row">
|
|
2137
2138
|
</div>
|
|
@@ -2140,11 +2141,18 @@ CheckoutOverviewBlockComponent = __decorate([
|
|
|
2140
2141
|
</div>
|
|
2141
2142
|
</div>
|
|
2142
2143
|
`,
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
]
|
|
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
|
+
};
|
|
2146
2154
|
|
|
2147
|
-
|
|
2155
|
+
class CheckoutOverviewRelationEditComponent {
|
|
2148
2156
|
constructor(_changeDetector, _transactionService) {
|
|
2149
2157
|
this._changeDetector = _changeDetector;
|
|
2150
2158
|
this._transactionService = _transactionService;
|
|
@@ -2166,7 +2174,7 @@ let CheckoutOverviewRelationEditComponent = class CheckoutOverviewRelationEditCo
|
|
|
2166
2174
|
// fetches relation suggestions
|
|
2167
2175
|
this._relationNameChangeHandler = FunctionUtils.Throttle(() => {
|
|
2168
2176
|
return this._relationNameChangedHandlerFn();
|
|
2169
|
-
//
|
|
2177
|
+
// eslint-disable-next-line no-magic-numbers
|
|
2170
2178
|
}, 600);
|
|
2171
2179
|
}
|
|
2172
2180
|
set relation(value) {
|
|
@@ -2334,29 +2342,11 @@ let CheckoutOverviewRelationEditComponent = class CheckoutOverviewRelationEditCo
|
|
|
2334
2342
|
this.relationSuggestions = yield this._transactionService.getRelationListObjects(relationRequest);
|
|
2335
2343
|
});
|
|
2336
2344
|
}
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
ViewChild(CoSidebarComponent, { static: false })
|
|
2343
|
-
], CheckoutOverviewRelationEditComponent.prototype, "relationSidebar", void 0);
|
|
2344
|
-
__decorate([
|
|
2345
|
-
Input()
|
|
2346
|
-
], CheckoutOverviewRelationEditComponent.prototype, "relation", null);
|
|
2347
|
-
__decorate([
|
|
2348
|
-
Input()
|
|
2349
|
-
], CheckoutOverviewRelationEditComponent.prototype, "transaction", void 0);
|
|
2350
|
-
__decorate([
|
|
2351
|
-
Output()
|
|
2352
|
-
], CheckoutOverviewRelationEditComponent.prototype, "validSubmit", void 0);
|
|
2353
|
-
__decorate([
|
|
2354
|
-
Output()
|
|
2355
|
-
], CheckoutOverviewRelationEditComponent.prototype, "invalidSubmit", void 0);
|
|
2356
|
-
CheckoutOverviewRelationEditComponent = __decorate([
|
|
2357
|
-
Component({
|
|
2358
|
-
selector: "checkout-overview-relation-edit",
|
|
2359
|
-
template: `
|
|
2345
|
+
}
|
|
2346
|
+
CheckoutOverviewRelationEditComponent.decorators = [
|
|
2347
|
+
{ type: Component, args: [{
|
|
2348
|
+
selector: "checkout-overview-relation-edit",
|
|
2349
|
+
template: `
|
|
2360
2350
|
<co-form (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">
|
|
2361
2351
|
<div>
|
|
2362
2352
|
<label [textContent]="'ACCOUNT_DETAILS' | localize"
|
|
@@ -2366,7 +2356,7 @@ CheckoutOverviewRelationEditComponent = __decorate([
|
|
|
2366
2356
|
<div>
|
|
2367
2357
|
<label [textContent]="'PERSONAL_DATA' | localize"
|
|
2368
2358
|
class="checkout-label-h3"
|
|
2369
|
-
></label>
|
|
2359
|
+
></label>7
|
|
2370
2360
|
</div>
|
|
2371
2361
|
<div>
|
|
2372
2362
|
<div>
|
|
@@ -2526,13 +2516,23 @@ CheckoutOverviewRelationEditComponent = __decorate([
|
|
|
2526
2516
|
</co-sidebar>
|
|
2527
2517
|
|
|
2528
2518
|
`,
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
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
|
+
};
|
|
2534
2534
|
|
|
2535
|
-
|
|
2535
|
+
class CheckoutOverviewDeliveryEditComponent {
|
|
2536
2536
|
constructor(cdr, _dictionaryService, service) {
|
|
2537
2537
|
this.cdr = cdr;
|
|
2538
2538
|
this._dictionaryService = _dictionaryService;
|
|
@@ -2558,6 +2558,11 @@ let CheckoutOverviewDeliveryEditComponent = class CheckoutOverviewDeliveryEditCo
|
|
|
2558
2558
|
this.marketingFields = { text: "description", value: "code" };
|
|
2559
2559
|
this.addresses = [];
|
|
2560
2560
|
this.columns = [];
|
|
2561
|
+
// TODO: Deze velden nog opnemen in Transaction!!
|
|
2562
|
+
this.deliveryDateFinal = false;
|
|
2563
|
+
this.assemblyDate = new Date();
|
|
2564
|
+
this.totalAssemblyTime = "";
|
|
2565
|
+
this.dropshipment = false;
|
|
2561
2566
|
this.columns.push({ field: "streetName", headerText: this._dictionaryService.get("STREET") }, { field: "houseNo", headerText: this._dictionaryService.get("HOUSE_NO") }, { field: "houseNoAddition", headerText: this._dictionaryService.get("HOUSE_NO_ADDITION") }, { field: "postalCode", headerText: this._dictionaryService.get("POSTAL_CODE"), allowFiltering: false }, { field: "city", headerText: this._dictionaryService.get("CITY") });
|
|
2562
2567
|
}
|
|
2563
2568
|
get billingAddress() {
|
|
@@ -2723,35 +2728,11 @@ let CheckoutOverviewDeliveryEditComponent = class CheckoutOverviewDeliveryEditCo
|
|
|
2723
2728
|
}
|
|
2724
2729
|
});
|
|
2725
2730
|
}
|
|
2726
|
-
}
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
ViewChild("locationForm", { read: FormComponent })
|
|
2732
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "locationForm", void 0);
|
|
2733
|
-
__decorate([
|
|
2734
|
-
ViewChild("changeLocationDialog")
|
|
2735
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "changeLocationDialog", void 0);
|
|
2736
|
-
__decorate([
|
|
2737
|
-
ViewChild("addressGrid")
|
|
2738
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "addressGrid", void 0);
|
|
2739
|
-
__decorate([
|
|
2740
|
-
Input()
|
|
2741
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "relation", void 0);
|
|
2742
|
-
__decorate([
|
|
2743
|
-
Input()
|
|
2744
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "transaction", void 0);
|
|
2745
|
-
__decorate([
|
|
2746
|
-
Output()
|
|
2747
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "validSubmit", void 0);
|
|
2748
|
-
__decorate([
|
|
2749
|
-
Output()
|
|
2750
|
-
], CheckoutOverviewDeliveryEditComponent.prototype, "invalidSubmit", void 0);
|
|
2751
|
-
CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
2752
|
-
Component({
|
|
2753
|
-
selector: "checkout-overview-delivery-edit",
|
|
2754
|
-
template: `
|
|
2731
|
+
}
|
|
2732
|
+
CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
2733
|
+
{ type: Component, args: [{
|
|
2734
|
+
selector: "checkout-overview-delivery-edit",
|
|
2735
|
+
template: `
|
|
2755
2736
|
<co-form #deliveryForm (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">
|
|
2756
2737
|
<div>
|
|
2757
2738
|
<div>
|
|
@@ -2767,7 +2748,7 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2767
2748
|
class="checkout-label-h3"
|
|
2768
2749
|
></label>
|
|
2769
2750
|
<checkout-overview-delivery-address [address]="deliveryAddress"></checkout-overview-delivery-address>
|
|
2770
|
-
<div
|
|
2751
|
+
<div class="container-button-change-address">
|
|
2771
2752
|
<co-button [label]="'DELIVERY_ADDRESS_CHANGE' | localize" (click)="changeAddress(deliveryAddressType)"></co-button>
|
|
2772
2753
|
</div>
|
|
2773
2754
|
</div>
|
|
@@ -2777,7 +2758,7 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2777
2758
|
class="checkout-label-h3"
|
|
2778
2759
|
></label>
|
|
2779
2760
|
<checkout-overview-delivery-address [address]="billingAddress"></checkout-overview-delivery-address>
|
|
2780
|
-
<div
|
|
2761
|
+
<div class="container-button-change-address">
|
|
2781
2762
|
<co-button [label]="'INVOICE_ADDRESS_CHANGE' | localize" (click)="changeAddress(billingAddressType)"></co-button>
|
|
2782
2763
|
</div>
|
|
2783
2764
|
</div>
|
|
@@ -2850,6 +2831,19 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2850
2831
|
</div>
|
|
2851
2832
|
</div>
|
|
2852
2833
|
|
|
2834
|
+
<div class="default-flex-column">
|
|
2835
|
+
<co-input-checkbox [label]="'DELIVERY_DATE_FINAL' | localize" [(model)]="deliveryDateFinal"></co-input-checkbox>
|
|
2836
|
+
</div>
|
|
2837
|
+
<div class="default-flex-column">
|
|
2838
|
+
<co-input-date [placeholder]="'ASSEMBLY_DATE' | localize " [(model)]="assemblyDate"></co-input-date>
|
|
2839
|
+
</div>
|
|
2840
|
+
<div class="default-flex-column">
|
|
2841
|
+
<co-input-text [placeholder]="'TOTAL_ASSEMBLY_TIME' | localize " [(model)]="totalAssemblyTime"></co-input-text>
|
|
2842
|
+
</div>
|
|
2843
|
+
<div class="default-flex-column">
|
|
2844
|
+
<co-input-checkbox [label]="'DROPSHIPMENT' | localize" [(model)]="dropshipment"></co-input-checkbox>
|
|
2845
|
+
</div>
|
|
2846
|
+
|
|
2853
2847
|
<div class="default-flex-row">
|
|
2854
2848
|
<div>
|
|
2855
2849
|
<label [textContent]="'DELIVERY_COSTS' | localize"
|
|
@@ -2891,6 +2885,7 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2891
2885
|
<co-input-text [(model)]="transaction.ownReference" [placeholder]="'OWN_REFERENCE' | localize"></co-input-text>
|
|
2892
2886
|
</div>
|
|
2893
2887
|
</div>
|
|
2888
|
+
|
|
2894
2889
|
</co-form>
|
|
2895
2890
|
|
|
2896
2891
|
<co-dialog [visible]="addLocationPopup">
|
|
@@ -2931,17 +2926,27 @@ CheckoutOverviewDeliveryEditComponent = __decorate([
|
|
|
2931
2926
|
</co-form>
|
|
2932
2927
|
</co-dialog>
|
|
2933
2928
|
`,
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
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
|
+
};
|
|
2940
2947
|
|
|
2941
|
-
|
|
2942
|
-
constructor(
|
|
2943
|
-
// public service: RetailTransactionModuleService
|
|
2944
|
-
) {
|
|
2948
|
+
class CheckoutOverviewComponent {
|
|
2949
|
+
constructor() {
|
|
2945
2950
|
this.steps = CheckoutSteps;
|
|
2946
2951
|
//
|
|
2947
2952
|
// @ViewChild("paymentBlock", {read: CheckoutOverviewBlockComponent})
|
|
@@ -2955,7 +2960,7 @@ let CheckoutOverviewComponent = class CheckoutOverviewComponent {
|
|
|
2955
2960
|
this.loginRequested = false;
|
|
2956
2961
|
this.currentStep = CheckoutSteps.Relation;
|
|
2957
2962
|
this.editMode = true;
|
|
2958
|
-
//
|
|
2963
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
2959
2964
|
this._subscriptions = [];
|
|
2960
2965
|
// TODO: subscribe to relation and transaction service
|
|
2961
2966
|
// this._subscriptions.push(service.relationUpdatedEventEmitter.subscribe((updated: boolean) => {
|
|
@@ -3069,44 +3074,11 @@ let CheckoutOverviewComponent = class CheckoutOverviewComponent {
|
|
|
3069
3074
|
isRelation() {
|
|
3070
3075
|
return (this.relation !== NULL_RELATION_OBJECT);
|
|
3071
3076
|
}
|
|
3072
|
-
}
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
ViewChild("relationForm", { read: CheckoutOverviewRelationEditComponent })
|
|
3078
|
-
], CheckoutOverviewComponent.prototype, "relationForm", void 0);
|
|
3079
|
-
__decorate([
|
|
3080
|
-
ViewChild("deliveryBlock", { read: CheckoutOverviewBlockComponent })
|
|
3081
|
-
], CheckoutOverviewComponent.prototype, "deliveryBlock", void 0);
|
|
3082
|
-
__decorate([
|
|
3083
|
-
ViewChild("deliveryForm", { read: CheckoutOverviewDeliveryEditComponent })
|
|
3084
|
-
], CheckoutOverviewComponent.prototype, "deliveryForm", void 0);
|
|
3085
|
-
__decorate([
|
|
3086
|
-
Input()
|
|
3087
|
-
], CheckoutOverviewComponent.prototype, "relation", void 0);
|
|
3088
|
-
__decorate([
|
|
3089
|
-
Input()
|
|
3090
|
-
], CheckoutOverviewComponent.prototype, "transaction", void 0);
|
|
3091
|
-
__decorate([
|
|
3092
|
-
Input()
|
|
3093
|
-
], CheckoutOverviewComponent.prototype, "userIsApplicationUser", void 0);
|
|
3094
|
-
__decorate([
|
|
3095
|
-
Output()
|
|
3096
|
-
], CheckoutOverviewComponent.prototype, "saveRelation", void 0);
|
|
3097
|
-
__decorate([
|
|
3098
|
-
Output()
|
|
3099
|
-
], CheckoutOverviewComponent.prototype, "saveDelivery", void 0);
|
|
3100
|
-
__decorate([
|
|
3101
|
-
Output()
|
|
3102
|
-
], CheckoutOverviewComponent.prototype, "savePayment", void 0);
|
|
3103
|
-
__decorate([
|
|
3104
|
-
Output()
|
|
3105
|
-
], CheckoutOverviewComponent.prototype, "stepFinished", void 0);
|
|
3106
|
-
CheckoutOverviewComponent = __decorate([
|
|
3107
|
-
Component({
|
|
3108
|
-
selector: "checkout-overview",
|
|
3109
|
-
template: `
|
|
3077
|
+
}
|
|
3078
|
+
CheckoutOverviewComponent.decorators = [
|
|
3079
|
+
{ type: Component, args: [{
|
|
3080
|
+
selector: "checkout-overview",
|
|
3081
|
+
template: `
|
|
3110
3082
|
<checkout-overview-block #relationBlock sequenceNr="2" label="YOUR_DATA"
|
|
3111
3083
|
*ngIf="currentStep === steps.Relation"
|
|
3112
3084
|
(editModeChange)="handleEditChangeRelation($event)">
|
|
@@ -3134,12 +3106,25 @@ CheckoutOverviewComponent = __decorate([
|
|
|
3134
3106
|
</ng-container>
|
|
3135
3107
|
</checkout-overview-block>
|
|
3136
3108
|
`,
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
]
|
|
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
|
+
};
|
|
3140
3126
|
|
|
3141
|
-
|
|
3142
|
-
let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
3127
|
+
class CheckoutComponent {
|
|
3143
3128
|
constructor(service, promptService) {
|
|
3144
3129
|
this.service = service;
|
|
3145
3130
|
this.promptService = promptService;
|
|
@@ -3177,12 +3162,12 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3177
3162
|
}
|
|
3178
3163
|
continue() {
|
|
3179
3164
|
let toNextStep = false;
|
|
3180
|
-
if (
|
|
3165
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Relation) {
|
|
3181
3166
|
toNextStep = this.overview.relationForm.submit();
|
|
3182
3167
|
this.completedRelation = toNextStep;
|
|
3183
3168
|
this.completedDelivery = false;
|
|
3184
3169
|
}
|
|
3185
|
-
if (
|
|
3170
|
+
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Delivery) {
|
|
3186
3171
|
toNextStep = this.overview.deliveryForm.submit();
|
|
3187
3172
|
this.completedDelivery = toNextStep;
|
|
3188
3173
|
}
|
|
@@ -3232,7 +3217,7 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3232
3217
|
});
|
|
3233
3218
|
}
|
|
3234
3219
|
stepChanged(event) {
|
|
3235
|
-
this.overview.moveToStep(
|
|
3220
|
+
this.overview.moveToStep(CheckoutComponent._currentStepByIndex(event.selectedIndex), true);
|
|
3236
3221
|
}
|
|
3237
3222
|
insertData() {
|
|
3238
3223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3245,17 +3230,11 @@ let CheckoutComponent = CheckoutComponent_1 = class CheckoutComponent {
|
|
|
3245
3230
|
yield this.service.updateCustomer(relation);
|
|
3246
3231
|
});
|
|
3247
3232
|
}
|
|
3248
|
-
}
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
ViewChild("stepper")
|
|
3254
|
-
], CheckoutComponent.prototype, "stepper", void 0);
|
|
3255
|
-
CheckoutComponent = CheckoutComponent_1 = __decorate([
|
|
3256
|
-
Component({
|
|
3257
|
-
selector: "app-checkout",
|
|
3258
|
-
template: `
|
|
3233
|
+
}
|
|
3234
|
+
CheckoutComponent.decorators = [
|
|
3235
|
+
{ type: Component, args: [{
|
|
3236
|
+
selector: "app-checkout",
|
|
3237
|
+
template: `
|
|
3259
3238
|
<div class="checkout-viewport">
|
|
3260
3239
|
<mat-horizontal-stepper #stepper
|
|
3261
3240
|
[linear]="true" labelPosition="bottom"
|
|
@@ -3274,13 +3253,19 @@ CheckoutComponent = CheckoutComponent_1 = __decorate([
|
|
|
3274
3253
|
<div class="step-content-customer"></div>
|
|
3275
3254
|
</div>
|
|
3276
3255
|
`,
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
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
|
+
};
|
|
3282
3267
|
|
|
3283
|
-
|
|
3268
|
+
class RetailTransactionCheckoutComponent {
|
|
3284
3269
|
constructor(service) {
|
|
3285
3270
|
this.service = service;
|
|
3286
3271
|
}
|
|
@@ -3305,14 +3290,11 @@ let RetailTransactionCheckoutComponent = class RetailTransactionCheckoutComponen
|
|
|
3305
3290
|
previousCheckout() {
|
|
3306
3291
|
this.checkout.previous();
|
|
3307
3292
|
}
|
|
3308
|
-
}
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
Component({
|
|
3314
|
-
selector: "app-retail-transaction-checkout",
|
|
3315
|
-
template: `
|
|
3293
|
+
}
|
|
3294
|
+
RetailTransactionCheckoutComponent.decorators = [
|
|
3295
|
+
{ type: Component, args: [{
|
|
3296
|
+
selector: "app-retail-transaction-checkout",
|
|
3297
|
+
template: `
|
|
3316
3298
|
<ng-container [ngTemplateOutlet]="content"></ng-container>
|
|
3317
3299
|
<app-checkout class="checkout"></app-checkout>
|
|
3318
3300
|
<ng-container [ngTemplateOutlet]="content"></ng-container>
|
|
@@ -3323,12 +3305,17 @@ RetailTransactionCheckoutComponent = __decorate([
|
|
|
3323
3305
|
</div>
|
|
3324
3306
|
</ng-template>
|
|
3325
3307
|
`,
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
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
|
+
};
|
|
3330
3317
|
|
|
3331
|
-
|
|
3318
|
+
class CheckoutLoginComponent {
|
|
3332
3319
|
constructor() {
|
|
3333
3320
|
this.createNewAccountSubmit = new EventEmitter();
|
|
3334
3321
|
this.continueWithoutSubmit = new EventEmitter();
|
|
@@ -3362,26 +3349,11 @@ let CheckoutLoginComponent = class CheckoutLoginComponent {
|
|
|
3362
3349
|
this.createNewAccountSubmit.emit();
|
|
3363
3350
|
}
|
|
3364
3351
|
}
|
|
3365
|
-
}
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
ViewChild("accountForm")
|
|
3371
|
-
], CheckoutLoginComponent.prototype, "accountForm", void 0);
|
|
3372
|
-
__decorate([
|
|
3373
|
-
Output()
|
|
3374
|
-
], CheckoutLoginComponent.prototype, "createNewAccountSubmit", void 0);
|
|
3375
|
-
__decorate([
|
|
3376
|
-
Output()
|
|
3377
|
-
], CheckoutLoginComponent.prototype, "continueWithoutSubmit", void 0);
|
|
3378
|
-
__decorate([
|
|
3379
|
-
Output()
|
|
3380
|
-
], CheckoutLoginComponent.prototype, "loginSubmit", void 0);
|
|
3381
|
-
CheckoutLoginComponent = __decorate([
|
|
3382
|
-
Component({
|
|
3383
|
-
selector: "checkout-login",
|
|
3384
|
-
template: `
|
|
3352
|
+
}
|
|
3353
|
+
CheckoutLoginComponent.decorators = [
|
|
3354
|
+
{ type: Component, args: [{
|
|
3355
|
+
selector: "checkout-login",
|
|
3356
|
+
template: `
|
|
3385
3357
|
<h1>{{ "LOGIN" | localize}}</h1>
|
|
3386
3358
|
<div class="users">
|
|
3387
3359
|
<co-form #loginForm (validSubmit)="login()">
|
|
@@ -3436,11 +3408,19 @@ CheckoutLoginComponent = __decorate([
|
|
|
3436
3408
|
</co-form>
|
|
3437
3409
|
</div>
|
|
3438
3410
|
`,
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
]
|
|
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
|
+
};
|
|
3442
3422
|
|
|
3443
|
-
|
|
3423
|
+
class IoneCheckoutComponent {
|
|
3444
3424
|
constructor(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService, globalEvents) {
|
|
3445
3425
|
this._changeDetector = _changeDetector;
|
|
3446
3426
|
this._optionsService = _optionsService;
|
|
@@ -3530,23 +3510,11 @@ let IoneCheckoutComponent = class IoneCheckoutComponent {
|
|
|
3530
3510
|
this.loggedIn = true;
|
|
3531
3511
|
this.show = true;
|
|
3532
3512
|
}
|
|
3533
|
-
}
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
ViewChild(CheckoutLoginComponent)
|
|
3539
|
-
], IoneCheckoutComponent.prototype, "checkoutLogin", void 0);
|
|
3540
|
-
__decorate([
|
|
3541
|
-
Input()
|
|
3542
|
-
], IoneCheckoutComponent.prototype, "options", null);
|
|
3543
|
-
__decorate([
|
|
3544
|
-
Input()
|
|
3545
|
-
], IoneCheckoutComponent.prototype, "applicationUser", null);
|
|
3546
|
-
IoneCheckoutComponent = __decorate([
|
|
3547
|
-
Component({
|
|
3548
|
-
selector: "ione-checkout",
|
|
3549
|
-
template: `
|
|
3513
|
+
}
|
|
3514
|
+
IoneCheckoutComponent.decorators = [
|
|
3515
|
+
{ type: Component, args: [{
|
|
3516
|
+
selector: "ione-checkout",
|
|
3517
|
+
template: `
|
|
3550
3518
|
<ng-container *ngIf="show && (applicationUser || loggedIn)">
|
|
3551
3519
|
<app-retail-transaction-checkout></app-retail-transaction-checkout>
|
|
3552
3520
|
</ng-container>
|
|
@@ -3560,18 +3528,26 @@ IoneCheckoutComponent = __decorate([
|
|
|
3560
3528
|
></checkout-login>
|
|
3561
3529
|
</div>
|
|
3562
3530
|
`
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
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
|
+
};
|
|
3573
3549
|
|
|
3574
|
-
|
|
3550
|
+
class CheckoutOverviewRelationAddressComponent {
|
|
3575
3551
|
constructor(_dictionary, _connector) {
|
|
3576
3552
|
this._dictionary = _dictionary;
|
|
3577
3553
|
this._connector = _connector;
|
|
@@ -3618,17 +3594,11 @@ let CheckoutOverviewRelationAddressComponent = class CheckoutOverviewRelationAdd
|
|
|
3618
3594
|
changeHouseNo() {
|
|
3619
3595
|
this.address.houseNo = Number(this.address.houseNo);
|
|
3620
3596
|
}
|
|
3621
|
-
}
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
Input()
|
|
3627
|
-
], CheckoutOverviewRelationAddressComponent.prototype, "address", null);
|
|
3628
|
-
CheckoutOverviewRelationAddressComponent = __decorate([
|
|
3629
|
-
Component({
|
|
3630
|
-
selector: "checkout-overview-relation-address",
|
|
3631
|
-
template: `
|
|
3597
|
+
}
|
|
3598
|
+
CheckoutOverviewRelationAddressComponent.decorators = [
|
|
3599
|
+
{ type: Component, args: [{
|
|
3600
|
+
selector: "checkout-overview-relation-address",
|
|
3601
|
+
template: `
|
|
3632
3602
|
<label [textContent]="label | localize"
|
|
3633
3603
|
class="checkout-label-h3"
|
|
3634
3604
|
></label>
|
|
@@ -3673,13 +3643,19 @@ CheckoutOverviewRelationAddressComponent = __decorate([
|
|
|
3673
3643
|
</div>
|
|
3674
3644
|
</div>
|
|
3675
3645
|
`,
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
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
|
+
};
|
|
3681
3657
|
|
|
3682
|
-
|
|
3658
|
+
class CheckoutOverviewDeliveryAddressComponent {
|
|
3683
3659
|
constructor(service) {
|
|
3684
3660
|
this.service = service;
|
|
3685
3661
|
this.editRequest = new EventEmitter();
|
|
@@ -3687,20 +3663,11 @@ let CheckoutOverviewDeliveryAddressComponent = class CheckoutOverviewDeliveryAdd
|
|
|
3687
3663
|
onClick() {
|
|
3688
3664
|
this.editRequest.emit();
|
|
3689
3665
|
}
|
|
3690
|
-
}
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
Input()
|
|
3696
|
-
], CheckoutOverviewDeliveryAddressComponent.prototype, "address", void 0);
|
|
3697
|
-
__decorate([
|
|
3698
|
-
Output()
|
|
3699
|
-
], CheckoutOverviewDeliveryAddressComponent.prototype, "editRequest", void 0);
|
|
3700
|
-
CheckoutOverviewDeliveryAddressComponent = __decorate([
|
|
3701
|
-
Component({
|
|
3702
|
-
selector: "checkout-overview-delivery-address",
|
|
3703
|
-
template: `
|
|
3666
|
+
}
|
|
3667
|
+
CheckoutOverviewDeliveryAddressComponent.decorators = [
|
|
3668
|
+
{ type: Component, args: [{
|
|
3669
|
+
selector: "checkout-overview-delivery-address",
|
|
3670
|
+
template: `
|
|
3704
3671
|
<div>
|
|
3705
3672
|
<div>
|
|
3706
3673
|
<label [textContent]="label | localize"
|
|
@@ -3721,10 +3688,17 @@ CheckoutOverviewDeliveryAddressComponent = __decorate([
|
|
|
3721
3688
|
</div>
|
|
3722
3689
|
</div>
|
|
3723
3690
|
`,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
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
|
+
};
|
|
3728
3702
|
|
|
3729
3703
|
// Direction type for regular straight directions.
|
|
3730
3704
|
var Direction;
|
|
@@ -3735,27 +3709,18 @@ var Direction;
|
|
|
3735
3709
|
Direction["Down"] = "bottom";
|
|
3736
3710
|
})(Direction || (Direction = {}));
|
|
3737
3711
|
|
|
3738
|
-
|
|
3712
|
+
class CheckOutRelationSuggestionsListComponent {
|
|
3739
3713
|
constructor() {
|
|
3740
3714
|
this.suggestions = [];
|
|
3741
3715
|
this.arrowDirection = Direction.Left;
|
|
3742
3716
|
// Emits the clicked relation list object.
|
|
3743
3717
|
this.suggestionButtonClick = new EventEmitter();
|
|
3744
3718
|
}
|
|
3745
|
-
}
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
Input()
|
|
3751
|
-
], CheckOutRelationSuggestionsListComponent.prototype, "arrowDirection", void 0);
|
|
3752
|
-
__decorate([
|
|
3753
|
-
Output()
|
|
3754
|
-
], CheckOutRelationSuggestionsListComponent.prototype, "suggestionButtonClick", void 0);
|
|
3755
|
-
CheckOutRelationSuggestionsListComponent = __decorate([
|
|
3756
|
-
Component({
|
|
3757
|
-
selector: "checkout-relation-suggestions-list",
|
|
3758
|
-
template: `
|
|
3719
|
+
}
|
|
3720
|
+
CheckOutRelationSuggestionsListComponent.decorators = [
|
|
3721
|
+
{ type: Component, args: [{
|
|
3722
|
+
selector: "checkout-relation-suggestions-list",
|
|
3723
|
+
template: `
|
|
3759
3724
|
<div class="flex-column items-wrapper">
|
|
3760
3725
|
<checkout-relation-suggestions-list-item *ngFor="let suggestion of suggestions" [suggestion]="suggestion"
|
|
3761
3726
|
[arrowDirection]="arrowDirection"
|
|
@@ -3763,14 +3728,19 @@ CheckOutRelationSuggestionsListComponent = __decorate([
|
|
|
3763
3728
|
<span *ngIf="suggestions?.length === 0" class="no-results" localize="NO_RESULTS_FOUND"></span>
|
|
3764
3729
|
</div>
|
|
3765
3730
|
`,
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
]
|
|
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
|
+
};
|
|
3772
3742
|
|
|
3773
|
-
|
|
3743
|
+
class CheckOutRelationSuggestionsListItemComponent {
|
|
3774
3744
|
constructor() {
|
|
3775
3745
|
this.buttonClick = new EventEmitter();
|
|
3776
3746
|
// public icon: Icon;
|
|
@@ -3790,20 +3760,11 @@ let CheckOutRelationSuggestionsListItemComponent = class CheckOutRelationSuggest
|
|
|
3790
3760
|
// this.icon = Icon.ArrowFatRight;
|
|
3791
3761
|
// }
|
|
3792
3762
|
}
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
Input()
|
|
3799
|
-
], CheckOutRelationSuggestionsListItemComponent.prototype, "arrowDirection", null);
|
|
3800
|
-
__decorate([
|
|
3801
|
-
Output()
|
|
3802
|
-
], CheckOutRelationSuggestionsListItemComponent.prototype, "buttonClick", void 0);
|
|
3803
|
-
CheckOutRelationSuggestionsListItemComponent = __decorate([
|
|
3804
|
-
Component({
|
|
3805
|
-
selector: "checkout-relation-suggestions-list-item",
|
|
3806
|
-
template: `
|
|
3763
|
+
}
|
|
3764
|
+
CheckOutRelationSuggestionsListItemComponent.decorators = [
|
|
3765
|
+
{ type: Component, args: [{
|
|
3766
|
+
selector: "checkout-relation-suggestions-list-item",
|
|
3767
|
+
template: `
|
|
3807
3768
|
<!-- <div class="left" fxLayout fxLayoutAlign="start center">-->
|
|
3808
3769
|
<!-- <avatar [relation]="suggestion" class="smaller"></avatar>-->
|
|
3809
3770
|
<!-- </div>-->
|
|
@@ -3819,11 +3780,18 @@ CheckOutRelationSuggestionsListItemComponent = __decorate([
|
|
|
3819
3780
|
</div>
|
|
3820
3781
|
<co-button [label]="'SELECT' | localize" class="popup rounded" (click)="buttonClick.emit($event)"></co-button>
|
|
3821
3782
|
`,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
]
|
|
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
|
+
};
|
|
3825
3792
|
|
|
3826
|
-
|
|
3793
|
+
// A pipe for appending strings to other strings in view templates.
|
|
3794
|
+
class AppendPipe {
|
|
3827
3795
|
transform(value, append) {
|
|
3828
3796
|
if (!value) {
|
|
3829
3797
|
return "";
|
|
@@ -3833,10 +3801,10 @@ let AppendPipe = class AppendPipe {
|
|
|
3833
3801
|
}
|
|
3834
3802
|
return value + append;
|
|
3835
3803
|
}
|
|
3836
|
-
}
|
|
3837
|
-
AppendPipe =
|
|
3838
|
-
Pipe
|
|
3839
|
-
]
|
|
3804
|
+
}
|
|
3805
|
+
AppendPipe.decorators = [
|
|
3806
|
+
{ type: Pipe, args: [{ name: "append" },] }
|
|
3807
|
+
];
|
|
3840
3808
|
|
|
3841
3809
|
// Time size types, as in 'days' or 'weeks' or 'months'.
|
|
3842
3810
|
var TimeSizeType;
|
|
@@ -3848,7 +3816,7 @@ var TimeSizeType;
|
|
|
3848
3816
|
TimeSizeType["Years"] = "years";
|
|
3849
3817
|
})(TimeSizeType || (TimeSizeType = {}));
|
|
3850
3818
|
|
|
3851
|
-
|
|
3819
|
+
class DateDurationPipe {
|
|
3852
3820
|
constructor(_dictionary) {
|
|
3853
3821
|
this._dictionary = _dictionary;
|
|
3854
3822
|
}
|
|
@@ -3893,13 +3861,15 @@ let DateDurationPipe = class DateDurationPipe {
|
|
|
3893
3861
|
}
|
|
3894
3862
|
return deltaWeeks + " " + weeksSuffix;
|
|
3895
3863
|
}
|
|
3896
|
-
}
|
|
3897
|
-
DateDurationPipe =
|
|
3898
|
-
Pipe
|
|
3899
|
-
|
|
3900
|
-
|
|
3864
|
+
}
|
|
3865
|
+
DateDurationPipe.decorators = [
|
|
3866
|
+
{ type: Pipe, args: [{ name: "dateDuration", pure: false },] }
|
|
3867
|
+
];
|
|
3868
|
+
DateDurationPipe.ctorParameters = () => [
|
|
3869
|
+
{ type: DictionaryService }
|
|
3870
|
+
];
|
|
3901
3871
|
|
|
3902
|
-
|
|
3872
|
+
class DeliveryTimePipe extends DateDurationPipe {
|
|
3903
3873
|
constructor(_dictionaryService) {
|
|
3904
3874
|
super(_dictionaryService);
|
|
3905
3875
|
}
|
|
@@ -3919,16 +3889,17 @@ let DeliveryTimePipe = class DeliveryTimePipe extends DateDurationPipe {
|
|
|
3919
3889
|
return super.transform(value, timeSize);
|
|
3920
3890
|
}
|
|
3921
3891
|
}
|
|
3922
|
-
}
|
|
3923
|
-
DeliveryTimePipe =
|
|
3924
|
-
Pipe
|
|
3925
|
-
|
|
3926
|
-
|
|
3892
|
+
}
|
|
3893
|
+
DeliveryTimePipe.decorators = [
|
|
3894
|
+
{ type: Pipe, args: [{ name: "deliveryTime", pure: false },] }
|
|
3895
|
+
];
|
|
3896
|
+
DeliveryTimePipe.ctorParameters = () => [
|
|
3897
|
+
{ type: DictionaryService }
|
|
3898
|
+
];
|
|
3927
3899
|
|
|
3928
|
-
let LocalizePipe =
|
|
3929
3900
|
// A pipe for localizing string values in view templates.
|
|
3930
3901
|
class LocalizePipe {
|
|
3931
|
-
//
|
|
3902
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
3932
3903
|
constructor(_dictionaryService) {
|
|
3933
3904
|
this._dictionaryService = _dictionaryService;
|
|
3934
3905
|
}
|
|
@@ -3942,18 +3913,21 @@ class LocalizePipe {
|
|
|
3942
3913
|
}
|
|
3943
3914
|
return this._dictionaryService.get(value, upperCaseFirst, ...replace);
|
|
3944
3915
|
}
|
|
3945
|
-
}
|
|
3946
|
-
LocalizePipe =
|
|
3947
|
-
Pipe
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
]
|
|
3916
|
+
}
|
|
3917
|
+
LocalizePipe.decorators = [
|
|
3918
|
+
{ type: Pipe, args: [{
|
|
3919
|
+
name: "localize"
|
|
3920
|
+
},] }
|
|
3921
|
+
];
|
|
3922
|
+
LocalizePipe.ctorParameters = () => [
|
|
3923
|
+
{ type: DictionaryService }
|
|
3924
|
+
];
|
|
3954
3925
|
|
|
3955
|
-
|
|
3956
|
-
|
|
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 {
|
|
3957
3931
|
transform(value, allowZero = false) {
|
|
3958
3932
|
if (value === null || value === undefined) {
|
|
3959
3933
|
if (allowZero) {
|
|
@@ -3973,7 +3947,7 @@ let CoCurrencyPipe = CoCurrencyPipe_1 = class CoCurrencyPipe {
|
|
|
3973
3947
|
}
|
|
3974
3948
|
// append ,- if integer
|
|
3975
3949
|
if (NumberUtils.IsInteger(valueAsFloat)) {
|
|
3976
|
-
suffix =
|
|
3950
|
+
suffix = CoCurrencyPipe._WholeNumberedPriceSuffix;
|
|
3977
3951
|
}
|
|
3978
3952
|
let valueAsString = valueAsFloat.toString();
|
|
3979
3953
|
// add extra zero if price has only one decimal, something like '100.2'
|
|
@@ -3985,31 +3959,33 @@ let CoCurrencyPipe = CoCurrencyPipe_1 = class CoCurrencyPipe {
|
|
|
3985
3959
|
valueAsString = valueAsString.replace(",", "#");
|
|
3986
3960
|
valueAsString = valueAsString.replace(".", ",");
|
|
3987
3961
|
valueAsString = valueAsString.replace("#", ".");
|
|
3988
|
-
return
|
|
3962
|
+
return CoCurrencyPipe._CurrencySymbol + " " + valueAsString + suffix;
|
|
3989
3963
|
}
|
|
3990
|
-
}
|
|
3964
|
+
}
|
|
3991
3965
|
CoCurrencyPipe._CurrencySymbol = "€";
|
|
3992
3966
|
CoCurrencyPipe._WholeNumberedPriceSuffix = ",-";
|
|
3993
|
-
CoCurrencyPipe =
|
|
3994
|
-
Pipe
|
|
3995
|
-
]
|
|
3967
|
+
CoCurrencyPipe.decorators = [
|
|
3968
|
+
{ type: Pipe, args: [{ name: "coCurrency" },] }
|
|
3969
|
+
];
|
|
3996
3970
|
|
|
3997
|
-
|
|
3971
|
+
class SafeStylePipe {
|
|
3998
3972
|
constructor(_sanitizer) {
|
|
3999
3973
|
this._sanitizer = _sanitizer;
|
|
4000
3974
|
}
|
|
4001
3975
|
transform(value) {
|
|
4002
3976
|
return this._sanitizer.bypassSecurityTrustStyle(value);
|
|
4003
3977
|
}
|
|
4004
|
-
}
|
|
4005
|
-
SafeStylePipe =
|
|
4006
|
-
Pipe
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
3978
|
+
}
|
|
3979
|
+
SafeStylePipe.decorators = [
|
|
3980
|
+
{ type: Pipe, args: [{
|
|
3981
|
+
name: "safeStyle"
|
|
3982
|
+
},] }
|
|
3983
|
+
];
|
|
3984
|
+
SafeStylePipe.ctorParameters = () => [
|
|
3985
|
+
{ type: DomSanitizer }
|
|
3986
|
+
];
|
|
4011
3987
|
|
|
4012
|
-
|
|
3988
|
+
class ImageDisplayComponent {
|
|
4013
3989
|
constructor() {
|
|
4014
3990
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4015
3991
|
this.label = "NO_IMAGE";
|
|
@@ -4025,46 +4001,30 @@ let ImageDisplayComponent = class ImageDisplayComponent {
|
|
|
4025
4001
|
get shouldBeHidden() {
|
|
4026
4002
|
return (this.hideOnEmptyModel && !this.model);
|
|
4027
4003
|
}
|
|
4028
|
-
}
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
Input()
|
|
4034
|
-
], ImageDisplayComponent.prototype, "label", void 0);
|
|
4035
|
-
__decorate([
|
|
4036
|
-
Input()
|
|
4037
|
-
], ImageDisplayComponent.prototype, "hideOnEmptyModel", void 0);
|
|
4038
|
-
__decorate([
|
|
4039
|
-
Input(),
|
|
4040
|
-
HostBinding("class.circle")
|
|
4041
|
-
], ImageDisplayComponent.prototype, "circle", void 0);
|
|
4042
|
-
__decorate([
|
|
4043
|
-
Input(),
|
|
4044
|
-
HostBinding("class.cover-image")
|
|
4045
|
-
], ImageDisplayComponent.prototype, "cover", void 0);
|
|
4046
|
-
__decorate([
|
|
4047
|
-
Input(),
|
|
4048
|
-
HostBinding("class.pointer-hover")
|
|
4049
|
-
], ImageDisplayComponent.prototype, "pointerOnHover", void 0);
|
|
4050
|
-
__decorate([
|
|
4051
|
-
HostBinding("class.hidden")
|
|
4052
|
-
], ImageDisplayComponent.prototype, "shouldBeHidden", null);
|
|
4053
|
-
ImageDisplayComponent = __decorate([
|
|
4054
|
-
Component({
|
|
4055
|
-
selector: "image-display",
|
|
4056
|
-
template: `
|
|
4004
|
+
}
|
|
4005
|
+
ImageDisplayComponent.decorators = [
|
|
4006
|
+
{ type: Component, args: [{
|
|
4007
|
+
selector: "image-display",
|
|
4008
|
+
template: `
|
|
4057
4009
|
<div class="img-wrapper">
|
|
4058
4010
|
<div *ngIf="!!model" class="image" [style.background-image]="'url(' + model + ')' | safeStyle"></div>
|
|
4059
4011
|
<no-image-display *ngIf="!model" [label]="label"></no-image-display>
|
|
4060
4012
|
<ng-content></ng-content>
|
|
4061
4013
|
</div>
|
|
4062
4014
|
`,
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
]
|
|
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
|
+
};
|
|
4066
4027
|
|
|
4067
|
-
let NoImageDisplayComponent =
|
|
4068
4028
|
// Component that shows a standardized icon and text for when there was no image (default: a camera icon and the 'no image' text).
|
|
4069
4029
|
class NoImageDisplayComponent {
|
|
4070
4030
|
constructor() {
|
|
@@ -4073,26 +4033,23 @@ class NoImageDisplayComponent {
|
|
|
4073
4033
|
// The (localized) text to show when there is no image. Defaults to 'NO_IMAGE'.
|
|
4074
4034
|
this.label = "NO_IMAGE";
|
|
4075
4035
|
}
|
|
4076
|
-
}
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
Input()
|
|
4082
|
-
], NoImageDisplayComponent.prototype, "label", void 0);
|
|
4083
|
-
NoImageDisplayComponent = __decorate([
|
|
4084
|
-
Component({
|
|
4085
|
-
selector: "no-image-display",
|
|
4086
|
-
template: `
|
|
4036
|
+
}
|
|
4037
|
+
NoImageDisplayComponent.decorators = [
|
|
4038
|
+
{ type: Component, args: [{
|
|
4039
|
+
selector: "no-image-display",
|
|
4040
|
+
template: `
|
|
4087
4041
|
<icon [icon]="icon"></icon>
|
|
4088
4042
|
<span [textContent]="label | localize" class="no-image-label"></span>
|
|
4089
4043
|
`,
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4044
|
+
styles: [""]
|
|
4045
|
+
},] }
|
|
4046
|
+
];
|
|
4047
|
+
NoImageDisplayComponent.propDecorators = {
|
|
4048
|
+
icon: [{ type: Input }],
|
|
4049
|
+
label: [{ type: Input }]
|
|
4050
|
+
};
|
|
4094
4051
|
|
|
4095
|
-
|
|
4052
|
+
class IconComponent {
|
|
4096
4053
|
constructor(_iconCacheService) {
|
|
4097
4054
|
this._iconCacheService = _iconCacheService;
|
|
4098
4055
|
}
|
|
@@ -4105,110 +4062,109 @@ let IconComponent = class IconComponent {
|
|
|
4105
4062
|
_setSvg(icon) {
|
|
4106
4063
|
this.svg = this._iconCacheService.getIcon(icon);
|
|
4107
4064
|
}
|
|
4108
|
-
}
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
]
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
}
|
|
4121
|
-
|
|
4122
|
-
|
|
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
|
+
];
|
|
4073
|
+
IconComponent.ctorParameters = () => [
|
|
4074
|
+
{ type: IconCacheService }
|
|
4075
|
+
];
|
|
4076
|
+
IconComponent.propDecorators = {
|
|
4077
|
+
icon: [{ type: Input }],
|
|
4078
|
+
svg: [{ type: HostBinding, args: ["innerHtml",] }]
|
|
4079
|
+
};
|
|
4123
4080
|
|
|
4124
|
-
|
|
4125
|
-
}
|
|
4126
|
-
CoreModule =
|
|
4127
|
-
NgModule
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
]
|
|
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
|
+
];
|
|
4155
4112
|
|
|
4156
|
-
|
|
4157
|
-
}
|
|
4158
|
-
IoneCheckoutModule =
|
|
4159
|
-
NgModule
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
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
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
], 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
|
+
];
|
|
4210
4166
|
|
|
4211
|
-
|
|
4167
|
+
class ShoppingCartManagerComponent {
|
|
4212
4168
|
constructor(service, transactionEvents, promptService, _dictionaryService) {
|
|
4213
4169
|
this.service = service;
|
|
4214
4170
|
this.transactionEvents = transactionEvents;
|
|
@@ -4517,39 +4473,21 @@ let ShoppingCartManagerComponent = class ShoppingCartManagerComponent {
|
|
|
4517
4473
|
this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
|
|
4518
4474
|
setTimeout(() => {
|
|
4519
4475
|
this.characteristicAnswer.open();
|
|
4520
|
-
//
|
|
4476
|
+
// eslint-disable-next-line no-magic-numbers
|
|
4521
4477
|
}, 1000);
|
|
4522
4478
|
}
|
|
4523
|
-
}
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
ViewChild("warehouseGrid")
|
|
4529
|
-
], ShoppingCartManagerComponent.prototype, "warehouseGrid", void 0);
|
|
4530
|
-
__decorate([
|
|
4531
|
-
ViewChild("characteristicAnswer")
|
|
4532
|
-
], ShoppingCartManagerComponent.prototype, "characteristicAnswer", void 0);
|
|
4533
|
-
__decorate([
|
|
4534
|
-
Output()
|
|
4535
|
-
], ShoppingCartManagerComponent.prototype, "linesChanged", void 0);
|
|
4536
|
-
__decorate([
|
|
4537
|
-
Output()
|
|
4538
|
-
], ShoppingCartManagerComponent.prototype, "openCart", void 0);
|
|
4539
|
-
__decorate([
|
|
4540
|
-
Output()
|
|
4541
|
-
], ShoppingCartManagerComponent.prototype, "articleAdded", void 0);
|
|
4542
|
-
ShoppingCartManagerComponent = __decorate([
|
|
4543
|
-
Component({
|
|
4544
|
-
selector: "shopping-cart-manager",
|
|
4545
|
-
template: `
|
|
4479
|
+
}
|
|
4480
|
+
ShoppingCartManagerComponent.decorators = [
|
|
4481
|
+
{ type: Component, args: [{
|
|
4482
|
+
selector: "shopping-cart-manager",
|
|
4483
|
+
template: `
|
|
4546
4484
|
<co-dialog #warehouseDialog
|
|
4547
4485
|
(closeClick)="hide()"
|
|
4548
4486
|
(overlayClick)="onStockManagerCancelClick()"
|
|
4549
4487
|
>
|
|
4550
4488
|
<ng-container header>{{ 'STOCK_NOTIFICATION' | localize }}</ng-container>
|
|
4551
4489
|
|
|
4552
|
-
<ng-container content
|
|
4490
|
+
<ng-container content>
|
|
4553
4491
|
<co-form>
|
|
4554
4492
|
<div class="form-content">
|
|
4555
4493
|
<span *ngIf="message" class="message-field" [textContent]="message | localize"></span>
|
|
@@ -4588,13 +4526,23 @@ ShoppingCartManagerComponent = __decorate([
|
|
|
4588
4526
|
(okClick)="handleCharacteristicAnswerOkClick($event)"
|
|
4589
4527
|
></characteristic-answer>
|
|
4590
4528
|
`,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
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
|
+
};
|
|
4598
4546
|
|
|
4599
4547
|
var OrderDiscountType;
|
|
4600
4548
|
(function (OrderDiscountType) {
|
|
@@ -4613,7 +4561,7 @@ var ContentViewMode;
|
|
|
4613
4561
|
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
4614
4562
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
4615
4563
|
|
|
4616
|
-
|
|
4564
|
+
class ShoppingCartComponent {
|
|
4617
4565
|
constructor(iconCacheService, _dictionary, service, _transactionEvents, _changeDetector) {
|
|
4618
4566
|
this.iconCacheService = iconCacheService;
|
|
4619
4567
|
this._dictionary = _dictionary;
|
|
@@ -4728,40 +4676,11 @@ let ShoppingCartComponent = class ShoppingCartComponent {
|
|
|
4728
4676
|
this.discountsSidebar.hide();
|
|
4729
4677
|
}
|
|
4730
4678
|
}
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
Input(),
|
|
4737
|
-
HostBinding("class.overlayed")
|
|
4738
|
-
], ShoppingCartComponent.prototype, "overlayMode", void 0);
|
|
4739
|
-
__decorate([
|
|
4740
|
-
Input(),
|
|
4741
|
-
HostBinding("class.overview")
|
|
4742
|
-
], ShoppingCartComponent.prototype, "overviewMode", void 0);
|
|
4743
|
-
__decorate([
|
|
4744
|
-
Input()
|
|
4745
|
-
], ShoppingCartComponent.prototype, "hideOverviewButton", void 0);
|
|
4746
|
-
__decorate([
|
|
4747
|
-
Input()
|
|
4748
|
-
], ShoppingCartComponent.prototype, "hideCheckoutButton", void 0);
|
|
4749
|
-
__decorate([
|
|
4750
|
-
Input()
|
|
4751
|
-
], ShoppingCartComponent.prototype, "hideCloseCartButton", void 0);
|
|
4752
|
-
__decorate([
|
|
4753
|
-
Output()
|
|
4754
|
-
], ShoppingCartComponent.prototype, "closeCart", void 0);
|
|
4755
|
-
__decorate([
|
|
4756
|
-
Output()
|
|
4757
|
-
], ShoppingCartComponent.prototype, "checkout", void 0);
|
|
4758
|
-
__decorate([
|
|
4759
|
-
Output()
|
|
4760
|
-
], ShoppingCartComponent.prototype, "overview", void 0);
|
|
4761
|
-
ShoppingCartComponent = __decorate([
|
|
4762
|
-
Component({
|
|
4763
|
-
selector: "shopping-cart",
|
|
4764
|
-
template: `
|
|
4679
|
+
}
|
|
4680
|
+
ShoppingCartComponent.decorators = [
|
|
4681
|
+
{ type: Component, args: [{
|
|
4682
|
+
selector: "shopping-cart",
|
|
4683
|
+
template: `
|
|
4765
4684
|
<div class="cart-header">
|
|
4766
4685
|
<span class="cart-header-label" [textContent]="getCartLabel()"></span>
|
|
4767
4686
|
<div class="view-mode-buttons">
|
|
@@ -4870,16 +4789,29 @@ ShoppingCartComponent = __decorate([
|
|
|
4870
4789
|
</co-form>
|
|
4871
4790
|
</co-dialog>
|
|
4872
4791
|
`,
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
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
|
+
};
|
|
4881
4813
|
|
|
4882
|
-
|
|
4814
|
+
class IoneShoppingCartComponent {
|
|
4883
4815
|
constructor(_changeDetector, _optionsService, _connector, _dictionary, _service, transactionEvents, _promptService) {
|
|
4884
4816
|
this._changeDetector = _changeDetector;
|
|
4885
4817
|
this._optionsService = _optionsService;
|
|
@@ -4965,38 +4897,11 @@ let IoneShoppingCartComponent = class IoneShoppingCartComponent {
|
|
|
4965
4897
|
});
|
|
4966
4898
|
});
|
|
4967
4899
|
}
|
|
4968
|
-
}
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
ViewChild(ShoppingCartComponent)
|
|
4974
|
-
], IoneShoppingCartComponent.prototype, "shoppingCart", void 0);
|
|
4975
|
-
__decorate([
|
|
4976
|
-
Input()
|
|
4977
|
-
], IoneShoppingCartComponent.prototype, "options", null);
|
|
4978
|
-
__decorate([
|
|
4979
|
-
Input()
|
|
4980
|
-
], IoneShoppingCartComponent.prototype, "hideOverviewButton", void 0);
|
|
4981
|
-
__decorate([
|
|
4982
|
-
Input()
|
|
4983
|
-
], IoneShoppingCartComponent.prototype, "hideCheckoutButton", void 0);
|
|
4984
|
-
__decorate([
|
|
4985
|
-
Input()
|
|
4986
|
-
], IoneShoppingCartComponent.prototype, "hideCloseCartButton", void 0);
|
|
4987
|
-
__decorate([
|
|
4988
|
-
Output()
|
|
4989
|
-
], IoneShoppingCartComponent.prototype, "closeCart", void 0);
|
|
4990
|
-
__decorate([
|
|
4991
|
-
Output()
|
|
4992
|
-
], IoneShoppingCartComponent.prototype, "checkout", void 0);
|
|
4993
|
-
__decorate([
|
|
4994
|
-
Output()
|
|
4995
|
-
], IoneShoppingCartComponent.prototype, "overview", void 0);
|
|
4996
|
-
IoneShoppingCartComponent = __decorate([
|
|
4997
|
-
Component({
|
|
4998
|
-
selector: "ione-shopping-cart",
|
|
4999
|
-
template: `
|
|
4900
|
+
}
|
|
4901
|
+
IoneShoppingCartComponent.decorators = [
|
|
4902
|
+
{ type: Component, args: [{
|
|
4903
|
+
selector: "ione-shopping-cart",
|
|
4904
|
+
template: `
|
|
5000
4905
|
<ng-container *ngIf="upAndLoaded">
|
|
5001
4906
|
<shopping-cart-manager
|
|
5002
4907
|
(linesChanged)="linesChanged($event)"
|
|
@@ -5013,17 +4918,30 @@ IoneShoppingCartComponent = __decorate([
|
|
|
5013
4918
|
></shopping-cart>
|
|
5014
4919
|
</ng-container>
|
|
5015
4920
|
`
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
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
|
+
};
|
|
5025
4943
|
|
|
5026
|
-
|
|
4944
|
+
class ShoppingCartLineComponent {
|
|
5027
4945
|
constructor(iconCacheService, service, _promptService, _dictionaryService) {
|
|
5028
4946
|
this.iconCacheService = iconCacheService;
|
|
5029
4947
|
this.service = service;
|
|
@@ -5118,31 +5036,11 @@ let ShoppingCartLineComponent = class ShoppingCartLineComponent {
|
|
|
5118
5036
|
}
|
|
5119
5037
|
});
|
|
5120
5038
|
}
|
|
5121
|
-
}
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
__decorate([
|
|
5127
|
-
Input(),
|
|
5128
|
-
HostBinding("class.overview")
|
|
5129
|
-
], ShoppingCartLineComponent.prototype, "overviewMode", void 0);
|
|
5130
|
-
__decorate([
|
|
5131
|
-
HostBinding("class.is-text")
|
|
5132
|
-
], ShoppingCartLineComponent.prototype, "isText", void 0);
|
|
5133
|
-
__decorate([
|
|
5134
|
-
HostBinding("class.is-article")
|
|
5135
|
-
], ShoppingCartLineComponent.prototype, "isArticle", void 0);
|
|
5136
|
-
__decorate([
|
|
5137
|
-
HostBinding("class.is-selected")
|
|
5138
|
-
], ShoppingCartLineComponent.prototype, "isSelected", void 0);
|
|
5139
|
-
__decorate([
|
|
5140
|
-
Input()
|
|
5141
|
-
], ShoppingCartLineComponent.prototype, "line", null);
|
|
5142
|
-
ShoppingCartLineComponent = __decorate([
|
|
5143
|
-
Component({
|
|
5144
|
-
selector: "shopping-cart-line",
|
|
5145
|
-
template: `
|
|
5039
|
+
}
|
|
5040
|
+
ShoppingCartLineComponent.decorators = [
|
|
5041
|
+
{ type: Component, args: [{
|
|
5042
|
+
selector: "shopping-cart-line",
|
|
5043
|
+
template: `
|
|
5146
5044
|
<div *ngIf="line.isArticle" class="cart-line-r" fxFlex>
|
|
5147
5045
|
<div fxLayout="row" class="full-width">
|
|
5148
5046
|
<div fxLayout="column" class="cart-line-image" *ngIf="!overviewMode">
|
|
@@ -5189,40 +5087,48 @@ ShoppingCartLineComponent = __decorate([
|
|
|
5189
5087
|
[textContent]="line.text">
|
|
5190
5088
|
</div>
|
|
5191
5089
|
`,
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
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
|
+
};
|
|
5199
5107
|
|
|
5200
|
-
let StockStatusIndicatorComponent =
|
|
5201
5108
|
// Component that visually shows a stock status with three colored boxes.
|
|
5202
5109
|
class StockStatusIndicatorComponent {
|
|
5203
5110
|
get stockClass() {
|
|
5204
5111
|
return this.model;
|
|
5205
5112
|
}
|
|
5206
|
-
}
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
Component({
|
|
5212
|
-
selector: "stock-status-indicator",
|
|
5213
|
-
template: `
|
|
5113
|
+
}
|
|
5114
|
+
StockStatusIndicatorComponent.decorators = [
|
|
5115
|
+
{ type: Component, args: [{
|
|
5116
|
+
selector: "stock-status-indicator",
|
|
5117
|
+
template: `
|
|
5214
5118
|
<div [class]="stockClass">
|
|
5215
5119
|
<div class="square-1"></div>
|
|
5216
5120
|
<div class="square-2"></div>
|
|
5217
5121
|
<div class="square-3"></div>
|
|
5218
5122
|
</div>
|
|
5219
5123
|
`,
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
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
|
+
};
|
|
5224
5130
|
|
|
5225
|
-
|
|
5131
|
+
class CharacteristicAnswerComponent {
|
|
5226
5132
|
constructor(_dictionaryService) {
|
|
5227
5133
|
this._dictionaryService = _dictionaryService;
|
|
5228
5134
|
this.title = "";
|
|
@@ -5252,23 +5158,11 @@ let CharacteristicAnswerComponent = class CharacteristicAnswerComponent {
|
|
|
5252
5158
|
this.okClick.emit(this.value);
|
|
5253
5159
|
});
|
|
5254
5160
|
}
|
|
5255
|
-
}
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
Input()
|
|
5261
|
-
], CharacteristicAnswerComponent.prototype, "title", void 0);
|
|
5262
|
-
__decorate([
|
|
5263
|
-
Input()
|
|
5264
|
-
], CharacteristicAnswerComponent.prototype, "question", void 0);
|
|
5265
|
-
__decorate([
|
|
5266
|
-
Output()
|
|
5267
|
-
], CharacteristicAnswerComponent.prototype, "okClick", void 0);
|
|
5268
|
-
CharacteristicAnswerComponent = __decorate([
|
|
5269
|
-
Component({
|
|
5270
|
-
selector: "characteristic-answer",
|
|
5271
|
-
template: `
|
|
5161
|
+
}
|
|
5162
|
+
CharacteristicAnswerComponent.decorators = [
|
|
5163
|
+
{ type: Component, args: [{
|
|
5164
|
+
selector: "characteristic-answer",
|
|
5165
|
+
template: `
|
|
5272
5166
|
<co-dialog
|
|
5273
5167
|
#characteristic
|
|
5274
5168
|
[showCloseIcon]="false"
|
|
@@ -5317,59 +5211,67 @@ CharacteristicAnswerComponent = __decorate([
|
|
|
5317
5211
|
</ng-container>
|
|
5318
5212
|
</co-dialog>
|
|
5319
5213
|
`,
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
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
|
+
};
|
|
5324
5226
|
|
|
5325
|
-
|
|
5326
|
-
}
|
|
5327
|
-
IoneShoppingCartModule =
|
|
5328
|
-
NgModule
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
]
|
|
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
|
+
];
|
|
5373
5275
|
|
|
5374
5276
|
//export * from "./app/component/ione-transaction.module";
|
|
5375
5277
|
|
|
@@ -5377,5 +5279,5 @@ IoneShoppingCartModule = __decorate([
|
|
|
5377
5279
|
* Generated bundle index. Do not edit.
|
|
5378
5280
|
*/
|
|
5379
5281
|
|
|
5380
|
-
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 };
|
|
5381
5283
|
//# sourceMappingURL=colijnit-transaction.js.map
|