@wayke-se/ecom-web 1.8.5 → 2.0.0

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.
Files changed (180) hide show
  1. package/dist/@types/BaseAction.d.ts +3 -0
  2. package/dist/@types/CallbackOrder.d.ts +4 -0
  3. package/dist/@types/CreditAssessmentStatus.d.ts +17 -0
  4. package/dist/@types/Customer.d.ts +20 -0
  5. package/dist/@types/EcomSdkConfig.d.ts +6 -0
  6. package/dist/@types/Insurance.d.ts +5 -0
  7. package/dist/@types/MarketCode.d.ts +1 -0
  8. package/dist/@types/Navigation.d.ts +6 -0
  9. package/dist/@types/OrderOptions.d.ts +27 -0
  10. package/dist/@types/PaymentLookup.d.ts +19 -0
  11. package/dist/@types/PaymentOrderResponse.d.ts +99 -0
  12. package/dist/@types/Stages.d.ts +46 -0
  13. package/dist/@types/TradeIn.d.ts +17 -0
  14. package/dist/@types/Vehicle.d.ts +10 -0
  15. package/dist/@types/VehicleLookup.d.ts +4 -0
  16. package/dist/App.d.ts +38 -0
  17. package/dist/Components/Accordion/index.d.ts +14 -0
  18. package/dist/Components/BankId/BankIdSign.d.ts +29 -0
  19. package/dist/Components/BankId/BankIdSignQrCode.d.ts +11 -0
  20. package/dist/Components/BankId/BankIdSignSameDevice.d.ts +12 -0
  21. package/dist/Components/Button/Button.d.ts +17 -0
  22. package/dist/Components/Button/ButtonAddRemove.d.ts +18 -0
  23. package/dist/Components/Button/ButtonAlt.d.ts +17 -0
  24. package/dist/Components/Button/ButtonArrowRight.d.ts +17 -0
  25. package/dist/Components/Button/ButtonAsLink.d.ts +14 -0
  26. package/dist/Components/Button/ButtonAsLinkArrowLeft.d.ts +14 -0
  27. package/dist/Components/Button/ButtonBankId.d.ts +17 -0
  28. package/dist/Components/Button/ButtonClear.d.ts +12 -0
  29. package/dist/Components/Button/ButtonClose.d.ts +12 -0
  30. package/dist/Components/Button/ButtonSkip.d.ts +12 -0
  31. package/dist/Components/Button/ButtonSuccess.d.ts +17 -0
  32. package/dist/Components/Chart/PieChart.d.ts +11 -0
  33. package/dist/Components/Checklist/Checklist.d.ts +12 -0
  34. package/dist/Components/Disclaimer/Disclaimer.d.ts +10 -0
  35. package/dist/Components/Disclaimer/DisclaimerPadlock.d.ts +10 -0
  36. package/dist/Components/ErrorAlert/index.d.ts +12 -0
  37. package/dist/Components/Extension/HtmlNode.d.ts +16 -0
  38. package/dist/Components/Extension/StackNode.d.ts +5 -0
  39. package/dist/Components/Gallery/Arrow.d.ts +13 -0
  40. package/dist/Components/Gallery/Gallery.d.ts +21 -0
  41. package/dist/Components/Input/InputCheckbox.d.ts +21 -0
  42. package/dist/Components/Input/InputError.d.ts +13 -0
  43. package/dist/Components/Input/InputField.d.ts +30 -0
  44. package/dist/Components/Input/InputInformation.d.ts +13 -0
  45. package/dist/Components/Input/InputRadioField.d.ts +18 -0
  46. package/dist/Components/Input/InputRadioGroup.d.ts +29 -0
  47. package/dist/Components/Input/InputRange.d.ts +39 -0
  48. package/dist/Components/Input/InputSelect.d.ts +25 -0
  49. package/dist/Components/Input/InputTextarea.d.ts +22 -0
  50. package/dist/Components/Modal/Modal.d.ts +17 -0
  51. package/dist/Components/Modal/ModalBody.d.ts +8 -0
  52. package/dist/Components/Modal/ModalCenter.d.ts +8 -0
  53. package/dist/Components/Modal/ModalClose.d.ts +12 -0
  54. package/dist/Components/Modal/ModalContainer.d.ts +8 -0
  55. package/dist/Components/Modal/ModalDialog.d.ts +8 -0
  56. package/dist/Components/Modal/ModalFooter.d.ts +12 -0
  57. package/dist/Components/Modal/ModalHeader.d.ts +16 -0
  58. package/dist/Components/OverflowGrid/Arrow.d.ts +13 -0
  59. package/dist/Components/OverflowGrid/OverflowGridItem.d.ts +25 -0
  60. package/dist/Components/OverflowGrid/OverflowGridList.d.ts +17 -0
  61. package/dist/Components/StageCompleted.d.ts +13 -0
  62. package/dist/Data/createOrder.d.ts +2 -0
  63. package/dist/Data/creditAssessmentAccept.d.ts +1 -0
  64. package/dist/Data/creditAssessmentCancelSigning.d.ts +1 -0
  65. package/dist/Data/creditAssessmentDecline.d.ts +1 -0
  66. package/dist/Data/creditAssessmentGetStatus.d.ts +1 -0
  67. package/dist/Data/creditAssessmentNewCase.d.ts +2 -0
  68. package/dist/Data/creditAssessmentSignCase.d.ts +2 -0
  69. package/dist/Data/getAddress.d.ts +1 -0
  70. package/dist/Data/getBankIdAuth.d.ts +2 -0
  71. package/dist/Data/getBankIdQrCode.d.ts +1 -0
  72. package/dist/Data/getBankIdStatus.d.ts +1 -0
  73. package/dist/Data/getInsurances.d.ts +3 -0
  74. package/dist/Data/getOrder.d.ts +1 -0
  75. package/dist/Data/getPayment.d.ts +10 -0
  76. package/dist/Data/getTradeInVehicle.d.ts +2 -0
  77. package/dist/Redux/action.d.ts +241 -0
  78. package/dist/Redux/reducer.d.ts +44 -0
  79. package/dist/Redux/store.d.ts +5 -0
  80. package/dist/Redux/watch.d.ts +5 -0
  81. package/dist/Templates/Alert.d.ts +8 -0
  82. package/dist/Templates/InputHelp.d.ts +2 -0
  83. package/dist/Templates/ItemTileLarge.d.ts +10 -0
  84. package/dist/Templates/ItemTileSmall.d.ts +9 -0
  85. package/dist/Templates/KeyValueListItem.d.ts +12 -0
  86. package/dist/Templates/ListItem.d.ts +9 -0
  87. package/dist/Templates/Loader.d.ts +6 -0
  88. package/dist/Templates/Logotype.d.ts +8 -0
  89. package/dist/Templates/TimelineItem.d.ts +7 -0
  90. package/dist/Utils/cdn.d.ts +1 -0
  91. package/dist/Utils/compare.d.ts +1 -0
  92. package/dist/Utils/constants.d.ts +18 -0
  93. package/dist/Utils/convert.d.ts +12 -0
  94. package/dist/Utils/delivery.d.ts +3 -0
  95. package/dist/Utils/ecomEvent.d.ts +156 -0
  96. package/dist/Utils/format.d.ts +10 -0
  97. package/dist/Utils/i18n.d.ts +6 -0
  98. package/dist/Utils/intervals.d.ts +2 -0
  99. package/dist/Utils/isMobile.d.ts +1 -0
  100. package/dist/Utils/market.d.ts +2 -0
  101. package/dist/Utils/mask.d.ts +2 -0
  102. package/dist/Utils/parser.d.ts +1 -0
  103. package/dist/Utils/payment.d.ts +1 -0
  104. package/dist/Utils/portal.d.ts +2 -0
  105. package/dist/Utils/regex.d.ts +7 -0
  106. package/dist/Utils/render.d.ts +1 -0
  107. package/dist/Utils/scroll.d.ts +1 -0
  108. package/dist/Utils/stage.d.ts +3 -0
  109. package/dist/Utils/trapFocus.d.ts +1 -0
  110. package/dist/Utils/validationMethods.d.ts +24 -0
  111. package/dist/Utils/vw.d.ts +1 -0
  112. package/dist/Views/ConfirmClose/index.d.ts +11 -0
  113. package/dist/Views/Main/Accessories/AccessoryItem.d.ts +20 -0
  114. package/dist/Views/Main/Accessories/AccessoryItemInfo.d.ts +15 -0
  115. package/dist/Views/Main/Accessories/AccessoryList.d.ts +13 -0
  116. package/dist/Views/Main/Accessories/index.d.ts +15 -0
  117. package/dist/Views/Main/CentralStorage/index.d.ts +20 -0
  118. package/dist/Views/Main/Confirmation/NoVerify.d.ts +18 -0
  119. package/dist/Views/Main/Confirmation/Payment.d.ts +12 -0
  120. package/dist/Views/Main/Confirmation/VerifyByBankId.d.ts +41 -0
  121. package/dist/Views/Main/Confirmation/index.d.ts +15 -0
  122. package/dist/Views/Main/Customer/EmailAndPhone.d.ts +23 -0
  123. package/dist/Views/Main/Customer/FullAddress.d.ts +15 -0
  124. package/dist/Views/Main/Customer/FullAddressBySocialId.d.ts +23 -0
  125. package/dist/Views/Main/Customer/FullAddressForm.d.ts +28 -0
  126. package/dist/Views/Main/Customer/index.d.ts +16 -0
  127. package/dist/Views/Main/Delivery/index.d.ts +17 -0
  128. package/dist/Views/Main/Financial/CreditAssessment.d.ts +49 -0
  129. package/dist/Views/Main/Financial/CreditAssessmentApproved.d.ts +13 -0
  130. package/dist/Views/Main/Financial/CreditAssessmentAssessManually.d.ts +13 -0
  131. package/dist/Views/Main/Financial/CreditAssessmentRejected.d.ts +12 -0
  132. package/dist/Views/Main/Financial/CreditAssessmentResult.d.ts +15 -0
  133. package/dist/Views/Main/Financial/Loan.d.ts +24 -0
  134. package/dist/Views/Main/Financial/LoanDetails.d.ts +16 -0
  135. package/dist/Views/Main/Financial/LoanDetailsBasic.d.ts +14 -0
  136. package/dist/Views/Main/Financial/LoanDetailsDetailed.d.ts +20 -0
  137. package/dist/Views/Main/Financial/LoanDetailsMonthlyCost.d.ts +11 -0
  138. package/dist/Views/Main/Financial/StageCompletedFinancial.d.ts +18 -0
  139. package/dist/Views/Main/Financial/StageCompletedFinancialCreditAssessment.d.ts +13 -0
  140. package/dist/Views/Main/Financial/Summary.d.ts +10 -0
  141. package/dist/Views/Main/Financial/index.d.ts +19 -0
  142. package/dist/Views/Main/Financial/utils.d.ts +5 -0
  143. package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceItem.d.ts +18 -0
  144. package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceItemInfo.d.ts +14 -0
  145. package/dist/Views/Main/Insurance/DefaultInsurance/InsuranceList.d.ts +13 -0
  146. package/dist/Views/Main/Insurance/DefaultInsurance/index.d.ts +15 -0
  147. package/dist/Views/Main/Insurance/IfInsurance/InsuranceAddonBox.d.ts +6 -0
  148. package/dist/Views/Main/Insurance/IfInsurance/InsuranceItem.d.ts +18 -0
  149. package/dist/Views/Main/Insurance/IfInsurance/InsuranceItemInfo.d.ts +21 -0
  150. package/dist/Views/Main/Insurance/IfInsurance/InsuranceList.d.ts +13 -0
  151. package/dist/Views/Main/Insurance/IfInsurance/InsuranceView.d.ts +21 -0
  152. package/dist/Views/Main/Insurance/IfInsurance/index.d.ts +17 -0
  153. package/dist/Views/Main/Insurance/index.d.ts +18 -0
  154. package/dist/Views/Main/TradeIn/PartTradeIn.d.ts +33 -0
  155. package/dist/Views/Main/TradeIn/index.d.ts +18 -0
  156. package/dist/Views/Main/index.d.ts +14 -0
  157. package/dist/Views/OrderCallback/index.d.ts +17 -0
  158. package/dist/Views/Preview/HowTo.d.ts +8 -0
  159. package/dist/Views/Preview/index.d.ts +20 -0
  160. package/dist/Views/Summary/CentralStorage.d.ts +12 -0
  161. package/dist/Views/Summary/Customer.d.ts +13 -0
  162. package/dist/Views/Summary/Delivery.d.ts +12 -0
  163. package/dist/Views/Summary/Intro.d.ts +11 -0
  164. package/dist/Views/Summary/Order.d.ts +12 -0
  165. package/dist/Views/Summary/TradeIn.d.ts +13 -0
  166. package/dist/Views/Summary/index.d.ts +15 -0
  167. package/dist/cdn.d.ts +6 -0
  168. package/dist/devConfig.d.ts +44 -0
  169. package/dist/index-dev.d.ts +1 -0
  170. package/dist/index.cjs +161 -161
  171. package/dist/index.cjs.map +4 -4
  172. package/dist/index.css +1 -1
  173. package/dist/index.css.map +2 -2
  174. package/dist/index.d.ts +2 -4163
  175. package/dist/index.mjs +134 -134
  176. package/dist/index.mjs.map +4 -4
  177. package/dist/translation/index.d.ts +2 -0
  178. package/dist/translation/nb-NO.d.ts +487 -0
  179. package/dist/translation/sv-SE.d.ts +487 -0
  180. package/package.json +24 -21
@@ -0,0 +1,3 @@
1
+ export interface BaseAction<T> {
2
+ type: T;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface CallbackOrder {
2
+ id: string;
3
+ orderUrl: string;
4
+ }
@@ -0,0 +1,17 @@
1
+ import { CreditAssessmentDecision, CreditAssessmentRecommendation, CreditAssessmentStatus, IAddress } from '@wayke-se/ecom';
2
+ export interface ICreditAssessmentStatus {
3
+ status: CreditAssessmentStatus;
4
+ hasPendingSigning: boolean;
5
+ hintCode: string | undefined;
6
+ signingMessage: string;
7
+ shouldRenewSigning: boolean;
8
+ isSigned: boolean;
9
+ address: IAddress | undefined;
10
+ pendingScoring: boolean;
11
+ isScored: boolean;
12
+ hasScoringError: boolean;
13
+ scoringId: string | undefined;
14
+ recommendation: CreditAssessmentRecommendation;
15
+ decision: CreditAssessmentDecision;
16
+ isAccepted: boolean;
17
+ }
@@ -0,0 +1,20 @@
1
+ export interface Customer {
2
+ givenName: string;
3
+ surname: string;
4
+ email: string;
5
+ phone: string;
6
+ socialId: string;
7
+ }
8
+ export interface PartialCustomer {
9
+ email: string;
10
+ phone: string;
11
+ }
12
+ export interface CustomerSocialId {
13
+ socialId: string;
14
+ }
15
+ export interface PartialCustomerAddress {
16
+ givenName: string;
17
+ address: string;
18
+ postalCode: string;
19
+ city: string;
20
+ }
@@ -0,0 +1,6 @@
1
+ export interface EcomSdkConfig {
2
+ api: {
3
+ address: string;
4
+ };
5
+ bankIdThumbprint?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { IInsuranceAddon } from '@wayke-se/ecom';
2
+ export interface Insurance {
3
+ insurance: string;
4
+ addOns: IInsuranceAddon[];
5
+ }
@@ -0,0 +1 @@
1
+ export type MarketCode = 'NO' | 'SE';
@@ -0,0 +1,6 @@
1
+ export type ViewTypes = 'preview' | 'main' | 'summary';
2
+ export interface Navigation {
3
+ view: ViewTypes;
4
+ stage: number;
5
+ subStage: number;
6
+ }
@@ -0,0 +1,27 @@
1
+ import { IAccessory, IAvailableInsuranceOption, IContactInformation, IDealerOption, IDeliveryOption, IOrderVehicle, PaymentType } from '@wayke-se/ecom/dist-types/orders/types';
2
+ import { PaymentLookup } from './PaymentLookup';
3
+ export interface PaymentOption {
4
+ loanDetails: PaymentLookup | undefined;
5
+ logo: string | undefined;
6
+ name: string | undefined;
7
+ price: number | undefined;
8
+ type: PaymentType;
9
+ unit: string | undefined;
10
+ externalId: string | undefined;
11
+ }
12
+ export interface OrderOptions {
13
+ orderVehicle: IOrderVehicle;
14
+ accessories: IAccessory[];
15
+ requiresDealerSelection: boolean;
16
+ dealerSites: IDealerOption[];
17
+ paymentOptions: PaymentOption[];
18
+ deliveryOptions: IDeliveryOption[];
19
+ insuranceOption: IAvailableInsuranceOption | undefined;
20
+ orderConditions: string | undefined;
21
+ orderReturnConditions: string | undefined;
22
+ conditionsPdfUri: string | null | undefined;
23
+ contactInformation: IContactInformation | undefined;
24
+ allowsTradeIn: boolean;
25
+ isUnavailable: boolean;
26
+ isPaymentRequired: boolean;
27
+ }
@@ -0,0 +1,19 @@
1
+ import { IPaymentCosts, IPaymentFees, IPaymentInterests, IPaymentRangeSpec } from '@wayke-se/ecom';
2
+ export interface PaymentLookup {
3
+ costs: IPaymentCosts;
4
+ fees: IPaymentFees;
5
+ interests: IPaymentInterests;
6
+ durationSpec: IPaymentRangeSpec;
7
+ downPaymentSpec: IPaymentRangeSpec;
8
+ residualValueSpec: IPaymentRangeSpec;
9
+ totalResidualValue: number;
10
+ publicURL: string | undefined;
11
+ shouldUseCreditScoring: boolean;
12
+ financialProductCode: string | undefined;
13
+ price: number;
14
+ creditAmount: number;
15
+ hasPrivacyPolicy: boolean;
16
+ privacyPolicyUrl: string | undefined;
17
+ moneyLaunderingInformationURL: string | undefined;
18
+ financialOptionId: string | undefined;
19
+ }
@@ -0,0 +1,99 @@
1
+ interface PaymentOrderCustomerAddress {
2
+ city: string;
3
+ co: string | null;
4
+ coordinate: null;
5
+ givenName: string;
6
+ name: string;
7
+ postalCode: string;
8
+ street: string;
9
+ surname: string;
10
+ }
11
+ interface PaymentOrderCustomer {
12
+ address: PaymentOrderCustomerAddress;
13
+ deliveryDistance: null;
14
+ didVerifyWithBankId: boolean;
15
+ email: string;
16
+ givenName: string;
17
+ name: string;
18
+ phone: string;
19
+ socialId: string;
20
+ surname: string;
21
+ }
22
+ interface PaymentOrderAdVehicle {
23
+ enginePower: number;
24
+ fuelType: string;
25
+ gearbox: string;
26
+ manufactureYear: number;
27
+ manufacturer: string;
28
+ mileage: number;
29
+ modelName: string;
30
+ modelSeries: string;
31
+ modelYear: number;
32
+ vehicleType: string;
33
+ vinNumber: string;
34
+ }
35
+ interface PaymentOrderAd {
36
+ deductibleVat: boolean;
37
+ id: string;
38
+ image: string | null;
39
+ leasingPrice: number | null;
40
+ media: null;
41
+ oldPrice: number | null;
42
+ price: number;
43
+ registrationNumber: string;
44
+ shortDescription: string;
45
+ status: string;
46
+ title: string;
47
+ vehicle: PaymentOrderAdVehicle;
48
+ vehicleIdentificationNumber: string;
49
+ }
50
+ interface PaymentOrderAdvancePayment {
51
+ required: boolean;
52
+ paid: boolean;
53
+ }
54
+ interface PaymentOrderDelivery {
55
+ deliveryTime: string;
56
+ maxQuantity: null;
57
+ minQuantity: null;
58
+ startupCost: number;
59
+ type: string;
60
+ unit: null;
61
+ unitPrice: null;
62
+ }
63
+ interface PaymenOrderOrigin {
64
+ topic: string;
65
+ channel: string;
66
+ }
67
+ interface PaymentOrderPaymentOption {
68
+ creditAssessment: null;
69
+ downPayment: null;
70
+ externalId: null;
71
+ months: null;
72
+ residualValue: null;
73
+ type: string;
74
+ }
75
+ interface PaymentOrderPayment {
76
+ details: null;
77
+ options: PaymentOrderPaymentOption;
78
+ }
79
+ export interface PaymentOrderResponse {
80
+ accessories: null;
81
+ ad: PaymentOrderAd;
82
+ advancePayment: PaymentOrderAdvancePayment;
83
+ branchId: string;
84
+ conditions: string;
85
+ created: string;
86
+ customer: PaymentOrderCustomer;
87
+ delivery: PaymentOrderDelivery;
88
+ id: string;
89
+ insurance: null;
90
+ orderNumber: string;
91
+ origin: PaymenOrderOrigin;
92
+ payment: PaymentOrderPayment;
93
+ returnConditions: string;
94
+ status: string;
95
+ statusUpdateSource: null;
96
+ statusUpdated: string;
97
+ tradeIn: null;
98
+ }
99
+ export {};
@@ -0,0 +1,46 @@
1
+ import AccessoriesStage from '../Views/Main/Accessories';
2
+ import CentralStorageStage from '../Views/Main/CentralStorage';
3
+ import CustomerStage from '../Views/Main/Customer';
4
+ import DeliveryStage from '../Views/Main/Delivery';
5
+ import FinancialStage from '../Views/Main/Financial';
6
+ import InsuranceStage from '../Views/Main/Insurance';
7
+ import TradeInStage from '../Views/Main/TradeIn';
8
+ interface Customer {
9
+ component: typeof CustomerStage;
10
+ name: 'customer';
11
+ }
12
+ interface CentralStorage {
13
+ component: typeof CentralStorageStage;
14
+ name: 'centralStorage';
15
+ }
16
+ interface Delivery {
17
+ component: typeof DeliveryStage;
18
+ name: 'delivery';
19
+ }
20
+ interface TradeIn {
21
+ component: typeof TradeInStage;
22
+ name: 'tradeIn';
23
+ }
24
+ interface Financial {
25
+ component: typeof FinancialStage;
26
+ name: 'financial';
27
+ }
28
+ interface Insurance {
29
+ component: typeof InsuranceStage;
30
+ name: 'insurance';
31
+ }
32
+ interface Accessories {
33
+ component: typeof AccessoriesStage;
34
+ name: 'accessories';
35
+ }
36
+ export type StageTypes = Customer | CentralStorage | Delivery | TradeIn | Financial | Insurance | Accessories;
37
+ export interface StageMapper {
38
+ customer: Customer;
39
+ centralStorage: CentralStorage;
40
+ delivery: Delivery;
41
+ tradeIn: TradeIn;
42
+ financial: Financial;
43
+ insurance: Insurance;
44
+ accessories: Accessories;
45
+ }
46
+ export {};
@@ -0,0 +1,17 @@
1
+ export declare enum VehicleCondition {
2
+ VeryGood = "VeryGood",
3
+ Good = "Good",
4
+ Ok = "Ok"
5
+ }
6
+ export interface TradeInCarDataPartial {
7
+ registrationNumber: string;
8
+ mileage: string;
9
+ condition?: VehicleCondition;
10
+ description: string;
11
+ }
12
+ export interface TradeInCarData {
13
+ registrationNumber: string;
14
+ mileage: string;
15
+ condition: VehicleCondition;
16
+ description: string;
17
+ }
@@ -0,0 +1,10 @@
1
+ export interface Vehicle {
2
+ title?: string;
3
+ shortDescription?: string;
4
+ price?: number;
5
+ imageUrls?: string[];
6
+ mileage?: number;
7
+ modelYear?: number;
8
+ fuelType?: string;
9
+ gearbox?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ import { IVehicle } from '@wayke-se/ecom';
2
+ export interface VehicleLookup {
3
+ vehicle: IVehicle;
4
+ }
package/dist/App.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import './styles/styles.scss';
2
+ import { IOrderOptionsResponse } from '@wayke-se/ecom';
3
+ import { EcomSdkConfig } from './@types/EcomSdkConfig';
4
+ import { MarketCode } from './@types/MarketCode';
5
+ import { Vehicle } from './@types/Vehicle';
6
+ import { EcomEvent, EcomStep, EcomView } from './Utils/ecomEvent';
7
+ export declare const WAYKE_ECOM_MODAL_ID = "wayke-ecom-modal";
8
+ export interface AppState {
9
+ stage: number;
10
+ order?: IOrderOptionsResponse;
11
+ }
12
+ interface AppProps {
13
+ rootId?: string;
14
+ id: string;
15
+ vehicle?: Vehicle;
16
+ ecomSdkConfig: EcomSdkConfig;
17
+ logo?: string;
18
+ logoX2?: string;
19
+ onEvent?: (view: EcomView, event: EcomEvent, currentStep?: EcomStep, data?: any) => void;
20
+ marketCode?: MarketCode;
21
+ }
22
+ declare class App {
23
+ private root;
24
+ private readonly props;
25
+ private view;
26
+ private stageOrderList;
27
+ private readonly cdnMedia?;
28
+ private readonly contexts;
29
+ private marketCode;
30
+ constructor(props: AppProps);
31
+ close(): void;
32
+ destroy(): void;
33
+ private closeWithConfirm;
34
+ start(): void;
35
+ private focusModal;
36
+ private render;
37
+ }
38
+ export default App;
@@ -0,0 +1,14 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface AccordionProps {
3
+ readonly id: string;
4
+ readonly title: string;
5
+ readonly description: string;
6
+ readonly append?: boolean;
7
+ readonly onClick?: () => void;
8
+ }
9
+ declare class Accordion extends HtmlNode {
10
+ private readonly props;
11
+ constructor(element: HTMLElement | null, props: AccordionProps);
12
+ render(): void;
13
+ }
14
+ export default Accordion;
@@ -0,0 +1,29 @@
1
+ import { AuthMethod } from '@wayke-se/ecom';
2
+ import HtmlNode from '../Extension/HtmlNode';
3
+ interface BankIdSignProps {
4
+ qrCode?: string;
5
+ autoLaunchUrl?: string;
6
+ method: AuthMethod;
7
+ errorMessage?: string;
8
+ descriptionQrCode: string;
9
+ descriptionSameDevice: string;
10
+ info?: string;
11
+ title?: string;
12
+ description?: string;
13
+ finalizing?: boolean;
14
+ readonly onStart: (method: AuthMethod) => void;
15
+ readonly onAbort: () => void;
16
+ readonly onSameDeviceClick?: () => void;
17
+ }
18
+ declare class BankIdSign extends HtmlNode {
19
+ private readonly props;
20
+ constructor(element: HTMLElement, props: BankIdSignProps);
21
+ update(method: AuthMethod, value?: string): void;
22
+ setErrorMessage(errorMessage?: string): void;
23
+ setInfo(info?: string): void;
24
+ setTitle(title?: string): void;
25
+ setDescription(description?: string): void;
26
+ setFinalizing(finalizing?: boolean): void;
27
+ render(): void;
28
+ }
29
+ export default BankIdSign;
@@ -0,0 +1,11 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface BankIdSignQrCodeProps {
3
+ readonly qrCode?: string;
4
+ readonly errorMessage?: string;
5
+ }
6
+ declare class BankIdSignQrCode extends HtmlNode {
7
+ private readonly props;
8
+ constructor(element: HTMLElement | null, props: BankIdSignQrCodeProps);
9
+ render(): void;
10
+ }
11
+ export default BankIdSignQrCode;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface BankIdSignSameDeviceProps {
3
+ readonly autoLaunchUrl?: string;
4
+ readonly errorMessage?: string;
5
+ onClick?: () => void;
6
+ }
7
+ declare class BankIdSignSameDevice extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLElement | null, props: BankIdSignSameDeviceProps);
10
+ render(): void;
11
+ }
12
+ export default BankIdSignSameDevice;
@@ -0,0 +1,17 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ readonly onClick?: (e: Event) => void;
8
+ }
9
+ declare class Button extends HtmlNode {
10
+ private readonly props;
11
+ constructor(element: HTMLDivElement | null, props: ButtonProps);
12
+ isDisabled(): boolean | undefined;
13
+ disabled(disabled: boolean): void;
14
+ loading(loading: boolean): void;
15
+ render(): void;
16
+ }
17
+ export default Button;
@@ -0,0 +1,18 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonAddRemoveProps {
3
+ readonly id?: string;
4
+ disabled?: boolean;
5
+ loading?: boolean;
6
+ readonly selected?: boolean;
7
+ readonly fullSize?: boolean;
8
+ readonly onClick?: (e: Event) => void;
9
+ }
10
+ declare class ButtonAddRemove extends HtmlNode {
11
+ private readonly props;
12
+ constructor(element: HTMLDivElement | null, props: ButtonAddRemoveProps);
13
+ isDisabled(): boolean | undefined;
14
+ disabled(disabled: boolean): void;
15
+ loading(loading: boolean): void;
16
+ render(): void;
17
+ }
18
+ export default ButtonAddRemove;
@@ -0,0 +1,17 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonAltProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ readonly onClick?: (e: Event) => void;
8
+ }
9
+ declare class ButtonAlt extends HtmlNode {
10
+ private readonly props;
11
+ constructor(element: HTMLDivElement | null, props: ButtonAltProps);
12
+ isDisabled(): boolean | undefined;
13
+ disabled(disabled: boolean): void;
14
+ loading(loading: boolean): void;
15
+ render(): void;
16
+ }
17
+ export default ButtonAlt;
@@ -0,0 +1,17 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonArrowRightProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ readonly onClick?: (e: Event) => void;
8
+ }
9
+ declare class ButtonArrowRight extends HtmlNode {
10
+ private readonly props;
11
+ constructor(element: HTMLElement | null, props: ButtonArrowRightProps);
12
+ isDisabled(): boolean | undefined;
13
+ disabled(disabled: boolean): void;
14
+ loading(loading: boolean): void;
15
+ render(): void;
16
+ }
17
+ export default ButtonArrowRight;
@@ -0,0 +1,14 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonAsLinkProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ readonly onClick?: (e: Event) => void;
7
+ }
8
+ declare class ButtonAsLink extends HtmlNode {
9
+ private readonly props;
10
+ constructor(element: HTMLDivElement | null, props: ButtonAsLinkProps);
11
+ disabled(disable: boolean): void;
12
+ render(): void;
13
+ }
14
+ export default ButtonAsLink;
@@ -0,0 +1,14 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonAsLinkArrowLeftProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ readonly onClick?: (e: Event) => void;
7
+ }
8
+ declare class ButtonAsLinkArrowLeft extends HtmlNode {
9
+ private readonly props;
10
+ constructor(element: HTMLDivElement | null, props: ButtonAsLinkArrowLeftProps);
11
+ disabled(disable: boolean): void;
12
+ render(): void;
13
+ }
14
+ export default ButtonAsLinkArrowLeft;
@@ -0,0 +1,17 @@
1
+ import HtmlNode, { HtmlNodeSettings } from '../Extension/HtmlNode';
2
+ interface ButtonBankIdProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ readonly htmlNodesettings?: HtmlNodeSettings;
8
+ readonly onClick?: (e: Event) => void;
9
+ }
10
+ declare class ButtonBankId extends HtmlNode {
11
+ private readonly props;
12
+ constructor(element: HTMLElement | null, props: ButtonBankIdProps);
13
+ disabled(disabled: boolean): void;
14
+ loading(loading: boolean): void;
15
+ render(): void;
16
+ }
17
+ export default ButtonBankId;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonClearProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ readonly onClick?: (e: Event) => void;
6
+ }
7
+ declare class ButtonClear extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLDivElement | null, props: ButtonClearProps);
10
+ render(): void;
11
+ }
12
+ export default ButtonClear;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonCloseProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ readonly onClick?: (e: Event) => void;
6
+ }
7
+ declare class ButtonClose extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLElement | null, props: ButtonCloseProps);
10
+ render(): void;
11
+ }
12
+ export default ButtonClose;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonSkipProps {
3
+ title: string;
4
+ id?: string;
5
+ onClick?: (e: Event) => void;
6
+ }
7
+ declare class ButtonSkip extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLDivElement | null, props: ButtonSkipProps);
10
+ render(): void;
11
+ }
12
+ export default ButtonSkip;
@@ -0,0 +1,17 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ButtonSuccessProps {
3
+ readonly title: string;
4
+ readonly id?: string;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ readonly onClick?: (e: Event) => void;
8
+ }
9
+ declare class ButtonSuccess extends HtmlNode {
10
+ private readonly props;
11
+ constructor(element: HTMLDivElement | null, props: ButtonSuccessProps);
12
+ isDisabled(): boolean | undefined;
13
+ disabled(disabled: boolean): void;
14
+ loading(loading: boolean): void;
15
+ render(): void;
16
+ }
17
+ export default ButtonSuccess;
@@ -0,0 +1,11 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface PieChartProps {
3
+ percentage: number;
4
+ }
5
+ declare class PieChart extends HtmlNode {
6
+ private props;
7
+ constructor(element: HTMLElement | null | undefined, props: PieChartProps);
8
+ update(props: PieChartProps): void;
9
+ render(): void;
10
+ }
11
+ export default PieChart;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface CheckListProps {
3
+ readonly title: string;
4
+ readonly ariaLabel: string;
5
+ readonly checklistItems: string[];
6
+ }
7
+ declare class CheckList extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLElement | null, props: CheckListProps);
10
+ render(): void;
11
+ }
12
+ export default CheckList;
@@ -0,0 +1,10 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface DisclaimerProps {
3
+ readonly text: string;
4
+ }
5
+ declare class Disclaimer extends HtmlNode {
6
+ private readonly props;
7
+ constructor(element: HTMLElement | null, props: DisclaimerProps);
8
+ render(): void;
9
+ }
10
+ export default Disclaimer;
@@ -0,0 +1,10 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface DisclaimerProps {
3
+ readonly text: string;
4
+ }
5
+ declare class DisclaimerPadlock extends HtmlNode {
6
+ private readonly props;
7
+ constructor(element: HTMLElement | null, props: DisclaimerProps);
8
+ render(): void;
9
+ }
10
+ export default DisclaimerPadlock;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ErrorAlertProps {
3
+ error?: string | Element;
4
+ }
5
+ declare class ErrorAlert extends HtmlNode {
6
+ private readonly props;
7
+ private error?;
8
+ constructor(element: HTMLElement | null, props: ErrorAlertProps);
9
+ update(error?: string | Element): void;
10
+ render(): void;
11
+ }
12
+ export default ErrorAlert;