@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,16 @@
1
+ interface Attribute {
2
+ key: string;
3
+ value: string;
4
+ }
5
+ export interface HtmlNodeSettings {
6
+ htmlTag: keyof HTMLElementTagNameMap;
7
+ className?: string;
8
+ id?: string;
9
+ attributes?: Attribute[];
10
+ }
11
+ declare class HtmlNode {
12
+ private element;
13
+ node: HTMLElement;
14
+ constructor(element: HTMLElement | null | undefined, settings?: HtmlNodeSettings);
15
+ }
16
+ export default HtmlNode;
@@ -0,0 +1,5 @@
1
+ import HtmlNode from './HtmlNode';
2
+ declare class StackNode extends HtmlNode {
3
+ constructor(element: HTMLElement);
4
+ }
5
+ export default StackNode;
@@ -0,0 +1,13 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ArrowProps {
3
+ direction: 'left' | 'right';
4
+ hide?: boolean;
5
+ onClick: () => void;
6
+ }
7
+ declare class Arrow extends HtmlNode {
8
+ private props;
9
+ constructor(element: HTMLElement | null, props: ArrowProps);
10
+ hide(hide: boolean): void;
11
+ private render;
12
+ }
13
+ export default Arrow;
@@ -0,0 +1,21 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface Media {
3
+ url: string;
4
+ alt: string;
5
+ }
6
+ interface GalleryProps {
7
+ id: string;
8
+ media: Media[];
9
+ onGalleryImagePaging?: () => void;
10
+ }
11
+ declare class Gallery extends HtmlNode {
12
+ private readonly props;
13
+ private timeout?;
14
+ private contexts;
15
+ constructor(element: HTMLElement | null, props: GalleryProps);
16
+ onPrev(): void;
17
+ onNext(): void;
18
+ scrollHandler(): void;
19
+ render(): void;
20
+ }
21
+ export default Gallery;
@@ -0,0 +1,21 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputCheckboxProps {
3
+ readonly title: string;
4
+ readonly value: string;
5
+ readonly name: string;
6
+ readonly description?: string;
7
+ readonly meta?: string;
8
+ readonly id: string;
9
+ checked: boolean;
10
+ readonly onClick?: (e: Event) => void;
11
+ readonly append?: boolean;
12
+ disabled?: boolean;
13
+ }
14
+ declare class InputCheckbox extends HtmlNode {
15
+ private readonly props;
16
+ constructor(element: HTMLElement | null, props: InputCheckboxProps);
17
+ checked(checked: boolean): void;
18
+ disabled(disabled: boolean): void;
19
+ render(): void;
20
+ }
21
+ export default InputCheckbox;
@@ -0,0 +1,13 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputErrorProps {
3
+ error?: boolean;
4
+ id?: string;
5
+ readonly errorMessage: string;
6
+ }
7
+ declare class InputError extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLElement, props: InputErrorProps);
10
+ setError(error: boolean): void;
11
+ render(): void;
12
+ }
13
+ export default InputError;
@@ -0,0 +1,30 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputFieldProps {
3
+ readonly title: string;
4
+ readonly value: string;
5
+ readonly name: string;
6
+ readonly id: string;
7
+ readonly unit?: string;
8
+ readonly min?: number;
9
+ error?: boolean;
10
+ errorMessage?: string;
11
+ readonly placeholder?: string;
12
+ readonly information?: string;
13
+ readonly type?: string;
14
+ readonly autocomplete?: string;
15
+ readonly pattern?: string;
16
+ readonly inputmode?: string;
17
+ readonly help?: string;
18
+ readonly onChange?: (e: Event) => void;
19
+ readonly onBlur?: (e: Event) => void;
20
+ readonly onClickInformation?: (visible: boolean) => void;
21
+ }
22
+ declare class InputField extends HtmlNode {
23
+ private readonly props;
24
+ private contexts;
25
+ constructor(element: HTMLElement | null, props: InputFieldProps);
26
+ private updateBorder;
27
+ setError(error: boolean, errorMessage?: string): void;
28
+ private render;
29
+ }
30
+ export default InputField;
@@ -0,0 +1,13 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputInformationProps {
3
+ readonly information?: string;
4
+ readonly onClickInformation?: (visible: boolean) => void;
5
+ }
6
+ declare class InputInformation extends HtmlNode {
7
+ private readonly props;
8
+ private open;
9
+ constructor(element: HTMLElement | null | undefined, props: InputInformationProps);
10
+ onClick(): void;
11
+ render(): void;
12
+ }
13
+ export default InputInformation;
@@ -0,0 +1,18 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputRadioFieldProps {
3
+ readonly title: string;
4
+ readonly value: string;
5
+ readonly name: string;
6
+ readonly description?: string;
7
+ readonly meta?: string;
8
+ readonly id: string;
9
+ readonly checked: boolean;
10
+ readonly disabled?: boolean;
11
+ readonly onClick?: (e: Event) => void;
12
+ }
13
+ declare class InputRadioField extends HtmlNode {
14
+ private readonly props;
15
+ constructor(element: HTMLDivElement | null, props: InputRadioFieldProps);
16
+ render(): void;
17
+ }
18
+ export default InputRadioField;
@@ -0,0 +1,29 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ export interface RadioItem {
3
+ id: string;
4
+ value: string;
5
+ title?: string;
6
+ description?: string;
7
+ meta?: string;
8
+ }
9
+ interface InputRadioGroupProps {
10
+ readonly title?: string;
11
+ readonly name: string;
12
+ readonly checked?: string;
13
+ readonly options: RadioItem[];
14
+ error?: boolean;
15
+ information?: string;
16
+ footer?: string;
17
+ readonly errorMessage?: string;
18
+ readonly onClick: (e: Event) => void;
19
+ readonly onClickInformation?: (visible: boolean) => void;
20
+ }
21
+ declare class InputRadioGroup extends HtmlNode {
22
+ private readonly props;
23
+ private contexts;
24
+ constructor(element: HTMLElement | null, props: InputRadioGroupProps);
25
+ private updateBorder;
26
+ setError(error: boolean): void;
27
+ render(): void;
28
+ }
29
+ export default InputRadioGroup;
@@ -0,0 +1,39 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputRangeProps {
3
+ title: string;
4
+ value: number;
5
+ min: number;
6
+ max: number;
7
+ step?: number;
8
+ name: string;
9
+ id: string;
10
+ information?: string;
11
+ unit?: string;
12
+ disabled?: boolean;
13
+ onChange?: (e: Event) => void;
14
+ onBlur?: (e: Event) => void;
15
+ onClickInformation?: (visible: boolean) => void;
16
+ }
17
+ declare class InputRange extends HtmlNode {
18
+ private readonly props;
19
+ private value;
20
+ private inputFieldValue;
21
+ private min;
22
+ private max;
23
+ private rangeSpan;
24
+ private isDisabled?;
25
+ private currentValueInPercentage;
26
+ private contexts;
27
+ constructor(element: HTMLDivElement | null, props: InputRangeProps);
28
+ update(value: number, min: number, max: number): void;
29
+ disabled(disabled: boolean): void;
30
+ onOpenInformation(): void;
31
+ onChange(e: Event): void;
32
+ onBlur(e: Event): void;
33
+ onFocus(e: Event): void;
34
+ onInput(e: Event): void;
35
+ updateRangeSliderColor(element?: HTMLInputElement): void;
36
+ updateInputField(): void;
37
+ render(): void;
38
+ }
39
+ export default InputRange;
@@ -0,0 +1,25 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ export interface SelectItem {
3
+ value: string;
4
+ title?: string;
5
+ disabled?: boolean;
6
+ }
7
+ interface InputSelectProps {
8
+ readonly title: string;
9
+ readonly name: string;
10
+ readonly id?: string;
11
+ error?: boolean;
12
+ errorMessage?: string;
13
+ readonly value?: string;
14
+ readonly options: SelectItem[];
15
+ readonly onChange: (e: Event) => void;
16
+ }
17
+ declare class InputSelect extends HtmlNode {
18
+ private readonly props;
19
+ private contexts;
20
+ constructor(element: HTMLElement | null, props: InputSelectProps);
21
+ private updateBorder;
22
+ setError(error: boolean, errorMessage?: string): void;
23
+ private render;
24
+ }
25
+ export default InputSelect;
@@ -0,0 +1,22 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface InputTextareaProps {
3
+ readonly title: string;
4
+ readonly value: string;
5
+ readonly name: string;
6
+ readonly id: string;
7
+ readonly error?: boolean;
8
+ readonly errorMessage?: string;
9
+ readonly placeholder?: string;
10
+ readonly information?: string;
11
+ readonly autocomplete?: string;
12
+ readonly onChange?: (e: Event) => void;
13
+ readonly onBlur?: (e: Event) => void;
14
+ }
15
+ declare class InputTextarea extends HtmlNode {
16
+ private readonly props;
17
+ private contexts;
18
+ constructor(element: HTMLElement | null, props: InputTextareaProps);
19
+ setError(error: boolean): void;
20
+ private render;
21
+ }
22
+ export default InputTextarea;
@@ -0,0 +1,17 @@
1
+ import { MarketCode } from '../../@types/MarketCode';
2
+ import HtmlNode from '../Extension/HtmlNode';
3
+ interface ModalProps {
4
+ readonly title: string;
5
+ readonly id: string;
6
+ readonly logo?: string;
7
+ readonly logoX2?: string;
8
+ readonly onClose?: () => void;
9
+ readonly marketCode: MarketCode;
10
+ }
11
+ declare class Modal extends HtmlNode {
12
+ private readonly props;
13
+ content: HTMLElement;
14
+ constructor(element: HTMLElement, props: ModalProps);
15
+ render(): HTMLElement;
16
+ }
17
+ export default Modal;
@@ -0,0 +1,8 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ModalBodyProps {
3
+ id: string;
4
+ }
5
+ declare class ModalBody extends HtmlNode {
6
+ constructor(element: HTMLElement, { id }: ModalBodyProps);
7
+ }
8
+ export default ModalBody;
@@ -0,0 +1,8 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ModalCenterProps {
3
+ id: string;
4
+ }
5
+ declare class ModalCenter extends HtmlNode {
6
+ constructor(element: HTMLElement, { id }: ModalCenterProps);
7
+ }
8
+ export default ModalCenter;
@@ -0,0 +1,12 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ModalCloseProps {
3
+ readonly id: string;
4
+ readonly onClose?: () => void;
5
+ }
6
+ declare class ModalClose extends HtmlNode {
7
+ private readonly props;
8
+ constructor(element: HTMLElement, props: ModalCloseProps);
9
+ private handleKeydown;
10
+ render(): void;
11
+ }
12
+ export default ModalClose;
@@ -0,0 +1,8 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ModalContainerProps {
3
+ id: string;
4
+ }
5
+ declare class ModalContainer extends HtmlNode {
6
+ constructor(element: HTMLElement, { id }: ModalContainerProps);
7
+ }
8
+ export default ModalContainer;
@@ -0,0 +1,8 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ModalDialogProps {
3
+ id: string;
4
+ }
5
+ declare class ModalDialog extends HtmlNode {
6
+ constructor(element: HTMLElement, { id }: ModalDialogProps);
7
+ }
8
+ export default ModalDialog;
@@ -0,0 +1,12 @@
1
+ import { MarketCode } from '../../@types/MarketCode';
2
+ import HtmlNode from '../Extension/HtmlNode';
3
+ interface ModalFooterProps {
4
+ readonly id: string;
5
+ readonly marketCode: MarketCode;
6
+ }
7
+ declare class ModalFooter extends HtmlNode {
8
+ private readonly props;
9
+ constructor(element: HTMLElement, props: ModalFooterProps);
10
+ render(): void;
11
+ }
12
+ export default ModalFooter;
@@ -0,0 +1,16 @@
1
+ import { MarketCode } from '../../@types/MarketCode';
2
+ import HtmlNode from '../Extension/HtmlNode';
3
+ interface ModalHeaderProps {
4
+ readonly title: string;
5
+ readonly id: string;
6
+ readonly logo?: string;
7
+ readonly logoX2?: string;
8
+ readonly onClose?: () => void;
9
+ readonly marketCode: MarketCode;
10
+ }
11
+ declare class ModalHeader extends HtmlNode {
12
+ private readonly props;
13
+ constructor(element: HTMLElement, props: ModalHeaderProps);
14
+ render(): void;
15
+ }
16
+ export default ModalHeader;
@@ -0,0 +1,13 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface ArrowProps {
3
+ direction: 'left' | 'right';
4
+ hide?: boolean;
5
+ onClick: () => void;
6
+ }
7
+ declare class Arrow extends HtmlNode {
8
+ private props;
9
+ constructor(element: HTMLElement | null, props: ArrowProps);
10
+ hide(hide: boolean): void;
11
+ private render;
12
+ }
13
+ export default Arrow;
@@ -0,0 +1,25 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface GridItemProps {
3
+ readonly id?: string;
4
+ readonly title: string;
5
+ readonly image?: string;
6
+ readonly logo?: string;
7
+ readonly price?: string;
8
+ readonly priceDetails?: {
9
+ key: string;
10
+ value: string;
11
+ }[];
12
+ readonly description?: string;
13
+ readonly selected?: boolean;
14
+ readonly onClick: () => void;
15
+ readonly onInfo?: () => void;
16
+ readonly inViewPort?: () => void;
17
+ }
18
+ declare class GridItem extends HtmlNode {
19
+ private readonly props;
20
+ private hasBeenInViewPort;
21
+ constructor(element: HTMLElement, props: GridItemProps, id: string);
22
+ private attachInViewportTrigger;
23
+ render(): void;
24
+ }
25
+ export default GridItem;
@@ -0,0 +1,17 @@
1
+ import HtmlNode from '../Extension/HtmlNode';
2
+ interface OverflowGridListProps {
3
+ id: string;
4
+ onClick?: () => void;
5
+ }
6
+ declare class OverflowGridList extends HtmlNode {
7
+ private readonly props;
8
+ overflowElement?: HTMLUListElement | null;
9
+ private timeout?;
10
+ private contexts;
11
+ constructor(element: HTMLElement, props: OverflowGridListProps);
12
+ onPrev(): void;
13
+ onNext(): void;
14
+ scrollHandler(): void;
15
+ render(): void;
16
+ }
17
+ export default OverflowGridList;
@@ -0,0 +1,13 @@
1
+ import { KeyValueListItemProps } from '../Templates/KeyValueListItem';
2
+ import HtmlNode from './Extension/HtmlNode';
3
+ interface StageCompletedProps {
4
+ keyValueList: KeyValueListItemProps[];
5
+ changeButtonTitle: string;
6
+ onEdit?: () => void;
7
+ }
8
+ declare class StageCompleted extends HtmlNode {
9
+ private props;
10
+ constructor(element: HTMLDivElement, props: StageCompletedProps);
11
+ render(): void;
12
+ }
13
+ export default StageCompleted;
@@ -0,0 +1,2 @@
1
+ import { WaykeStore } from '../Redux/store';
2
+ export declare const createOrder: (store: WaykeStore) => Promise<import("@wayke-se/ecom/dist-types/orders/order-create-response").OrderCreateResponse>;
@@ -0,0 +1 @@
1
+ export declare const creditAssessmentAccept: (caseId: string) => Promise<boolean>;
@@ -0,0 +1 @@
1
+ export declare const creditAssessmentCancelSigning: (caseId: string) => Promise<boolean>;
@@ -0,0 +1 @@
1
+ export declare const creditAssessmentDecline: (caseId: string) => Promise<boolean>;
@@ -0,0 +1 @@
1
+ export declare const creditAssessmentGetStatus: (caseId: string) => Promise<import("@wayke-se/ecom/dist-types/credit-assessment/status-response").CreditAssessmentStatusResponse>;
@@ -0,0 +1,2 @@
1
+ import { ICreditAssessmentInquiry } from '@wayke-se/ecom';
2
+ export declare const creditAssessmentNewCase: (inquiry: ICreditAssessmentInquiry) => Promise<import("@wayke-se/ecom").ICreditAssessmentCase>;
@@ -0,0 +1,2 @@
1
+ import { ICreditAssessmentSignRequest } from '@wayke-se/ecom';
2
+ export declare const creditAssessmentSignCase: (creditAssessmentCase: ICreditAssessmentSignRequest) => Promise<import("@wayke-se/ecom/dist-types/credit-assessment/sign-response").CreditAssessmentSignResponse>;
@@ -0,0 +1 @@
1
+ export declare const getAddressBySsn: (ssn: string) => Promise<import("@wayke-se/ecom/dist-types/customers/address-lookup-response").AddressLookupResponse>;
@@ -0,0 +1,2 @@
1
+ import { AuthMethod } from '@wayke-se/ecom';
2
+ export declare const getBankIdAuth: (method: AuthMethod) => Promise<import("@wayke-se/ecom/dist-types/bankid/bankid-auth-response").BankIdAuthResponse>;
@@ -0,0 +1 @@
1
+ export declare const getBankIdQrCode: (reference: string) => Promise<import("@wayke-se/ecom/dist-types/bankid/bankid-qrcode-response").BankIdQrCodeResponse>;
@@ -0,0 +1 @@
1
+ export declare const getBankIdStatus: (reference: string) => Promise<import("@wayke-se/ecom/dist-types/bankid/bankid-collect-response").BankIdCollectResponse>;
@@ -0,0 +1,3 @@
1
+ import { DrivingDistance } from '@wayke-se/ecom';
2
+ import { WaykeStore } from '../Redux/store';
3
+ export declare const getInsurances: (store: WaykeStore, drivingDistance: DrivingDistance) => Promise<import("@wayke-se/ecom").IInsuranceOptionsResponse>;
@@ -0,0 +1 @@
1
+ export declare const getOrder: (id: string, dealer?: string) => Promise<import("@wayke-se/ecom/dist-types/orders/order-options-response").OrderOptionsResponse>;
@@ -0,0 +1,10 @@
1
+ interface PaymentRequest {
2
+ vehicleId: string;
3
+ downPayment: number;
4
+ duration: number;
5
+ residual?: number;
6
+ dealerId?: string;
7
+ financialOptionId?: string;
8
+ }
9
+ export declare const getPayment: ({ vehicleId, dealerId, downPayment, duration, residual, financialOptionId, }: PaymentRequest) => Promise<import("@wayke-se/ecom/dist-types/payments/payment-lookup-response").PaymentLookupResponse>;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { TradeInCarData } from '../@types/TradeIn';
2
+ export declare const getTradeInVehicle: (data: TradeInCarData) => Promise<import("@wayke-se/ecom/dist-types/vehicles/vehicle-lookup-response").VehicleLookupResponse>;