@wayke-se/ev-web 0.1.1-beta.1 → 1.0.0-beta.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/README.md +342 -81
- package/dist/api.d.ts +50 -0
- package/dist/chargingCost.d.ts +28 -0
- package/dist/dom.d.ts +14 -0
- package/dist/i18n.d.ts +46 -0
- package/dist/index.d.ts +2 -567
- package/dist/index.js +14 -358
- package/dist/index.js.map +4 -4
- package/dist/mount.d.ts +9 -0
- package/dist/style.css +2 -0
- package/dist/style.css.map +7 -0
- package/dist/types.d.ts +105 -0
- package/dist/widget.d.ts +12 -0
- package/package.json +59 -38
- package/dist/GeneralSans-Bold-B2L2RQWE.woff +0 -0
- package/dist/GeneralSans-Bold-VZ4Y7PGT.woff2 +0 -0
- package/dist/GeneralSans-Regular-5M4NQDY6.woff2 +0 -0
- package/dist/GeneralSans-Regular-6E2LFRI2.woff +0 -0
- package/dist/GeneralSans-Semibold-LBITB72G.woff +0 -0
- package/dist/GeneralSans-Semibold-XUXDDWPR.woff2 +0 -0
- package/dist/OpenSauceOne-ExtraBold-3ZSFGTY7.woff2 +0 -0
- package/dist/OpenSauceOne-ExtraBold-HMQJUXJT.woff +0 -0
- package/dist/OpenSauceOne-Regular-2D5N6QGZ.woff2 +0 -0
- package/dist/OpenSauceOne-Regular-F62Q4XLM.woff +0 -0
- package/dist/StyreneA-Bold-Web-4CXEYQLA.woff2 +0 -0
- package/dist/StyreneA-Bold-Web-AGBUOKS2.woff +0 -0
- package/dist/StyreneA-Light-Web-DAMPSUFB.woff +0 -0
- package/dist/StyreneA-Light-Web-EE4AJECE.woff2 +0 -0
- package/dist/StyreneA-Medium-Web-53Q6X35A.woff +0 -0
- package/dist/StyreneA-Medium-Web-7KYQNCKQ.woff2 +0 -0
- package/dist/StyreneA-Regular-Web-7SAOGHB5.woff2 +0 -0
- package/dist/StyreneA-Regular-Web-XFBCXNPA.woff +0 -0
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -7
- package/dist/index.mjs +0 -359
- package/dist/index.mjs.map +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,567 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
4
|
-
export interface Theme {
|
|
5
|
-
primaryColor?: string;
|
|
6
|
-
primaryColorForeground?: string;
|
|
7
|
-
linkColor?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface AppProps {
|
|
10
|
-
url: string;
|
|
11
|
-
id: string;
|
|
12
|
-
rootId?: string;
|
|
13
|
-
hash?: boolean;
|
|
14
|
-
theme?: Theme;
|
|
15
|
-
marketCode?: MarketCode;
|
|
16
|
-
onEvent?: (view: EvView, event: EvEvent, data?: any) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare module '@wayke-se/ev-web/src/@types/EvCalculation' {
|
|
21
|
-
export interface EvCalculationVehicle {
|
|
22
|
-
manufacturer: string;
|
|
23
|
-
salesName: string;
|
|
24
|
-
batteryCapacity: EvCalculationCost;
|
|
25
|
-
electricalRangeWLTP: EvCalculationCost;
|
|
26
|
-
}
|
|
27
|
-
export interface EvCalculationCost {
|
|
28
|
-
unit: string;
|
|
29
|
-
value: number;
|
|
30
|
-
}
|
|
31
|
-
export interface EvCalculationDescription {
|
|
32
|
-
costPerKwh: EvCalculationCost;
|
|
33
|
-
costPerKilometer: EvCalculationCost;
|
|
34
|
-
vatIncluded: boolean;
|
|
35
|
-
energyTaxIncluded: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface EvCalculationChargingPerKilometer {
|
|
38
|
-
vehicle: EvCalculationVehicle;
|
|
39
|
-
description: EvCalculationDescription;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
declare module '@wayke-se/ev-web/src/@types/MarketCode' {
|
|
44
|
-
export type MarketCode = 'NO' | 'SE';
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
declare module '@wayke-se/ev-web/src/App' {
|
|
48
|
-
import './styles/styles.scss';
|
|
49
|
-
import { AppProps } from '@wayke-se/ev-web/src/@types/AppProps';
|
|
50
|
-
class App {
|
|
51
|
-
private root;
|
|
52
|
-
private readonly props;
|
|
53
|
-
private state;
|
|
54
|
-
private contexts;
|
|
55
|
-
constructor(props: AppProps);
|
|
56
|
-
private fetchData;
|
|
57
|
-
render(): Promise<void>;
|
|
58
|
-
}
|
|
59
|
-
export default App;
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
declare module '@wayke-se/ev-web/src/Components/ErrorAlert/index' {
|
|
63
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
64
|
-
interface ErrorAlertProps {
|
|
65
|
-
error?: string | Element;
|
|
66
|
-
}
|
|
67
|
-
class ErrorAlert extends HtmlNode {
|
|
68
|
-
private readonly props;
|
|
69
|
-
private error?;
|
|
70
|
-
constructor(element: HTMLElement | null, props: ErrorAlertProps);
|
|
71
|
-
update(error?: string | Element): void;
|
|
72
|
-
render(): void;
|
|
73
|
-
}
|
|
74
|
-
export default ErrorAlert;
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
declare module '@wayke-se/ev-web/src/Components/Extension/HtmlNode' {
|
|
78
|
-
interface Attribute {
|
|
79
|
-
key: string;
|
|
80
|
-
value: string;
|
|
81
|
-
}
|
|
82
|
-
export interface HtmlNodeSettings {
|
|
83
|
-
htmlTag: keyof HTMLElementTagNameMap;
|
|
84
|
-
className?: string;
|
|
85
|
-
id?: string;
|
|
86
|
-
attributes?: Attribute[];
|
|
87
|
-
}
|
|
88
|
-
class HtmlNode {
|
|
89
|
-
private element;
|
|
90
|
-
node: HTMLElement;
|
|
91
|
-
constructor(element: HTMLElement | null | undefined, settings?: HtmlNodeSettings);
|
|
92
|
-
}
|
|
93
|
-
export default HtmlNode;
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputError' {
|
|
97
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
98
|
-
interface InputErrorProps {
|
|
99
|
-
error?: boolean;
|
|
100
|
-
readonly errorMessage: string;
|
|
101
|
-
}
|
|
102
|
-
class InputError extends HtmlNode {
|
|
103
|
-
private readonly props;
|
|
104
|
-
constructor(element: HTMLElement, props: InputErrorProps);
|
|
105
|
-
setError(error: boolean): void;
|
|
106
|
-
render(): void;
|
|
107
|
-
}
|
|
108
|
-
export default InputError;
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputField' {
|
|
112
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
113
|
-
interface InputFieldProps {
|
|
114
|
-
readonly title: string;
|
|
115
|
-
readonly value: string;
|
|
116
|
-
readonly name: string;
|
|
117
|
-
readonly id: string;
|
|
118
|
-
readonly unit?: string;
|
|
119
|
-
error?: boolean;
|
|
120
|
-
errorMessage?: string;
|
|
121
|
-
readonly placeholder?: string;
|
|
122
|
-
readonly information?: string;
|
|
123
|
-
readonly type?: string;
|
|
124
|
-
readonly autocomplete?: string;
|
|
125
|
-
readonly pattern?: string;
|
|
126
|
-
readonly inputmode?: string;
|
|
127
|
-
readonly disabled?: boolean;
|
|
128
|
-
readonly onChange?: (e: Event) => void;
|
|
129
|
-
readonly onBlur?: (e: Event) => void;
|
|
130
|
-
readonly onKeyDown?: (e: KeyboardEvent) => void;
|
|
131
|
-
}
|
|
132
|
-
class InputField extends HtmlNode {
|
|
133
|
-
private readonly props;
|
|
134
|
-
private contexts;
|
|
135
|
-
constructor(element: HTMLElement | null, props: InputFieldProps);
|
|
136
|
-
private updateBorder;
|
|
137
|
-
setError(error: boolean, errorMessage?: string): void;
|
|
138
|
-
private render;
|
|
139
|
-
}
|
|
140
|
-
export default InputField;
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputInformation' {
|
|
144
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
145
|
-
interface InputInformationProps {
|
|
146
|
-
readonly information?: string;
|
|
147
|
-
}
|
|
148
|
-
class InputInformation extends HtmlNode {
|
|
149
|
-
private readonly props;
|
|
150
|
-
private open;
|
|
151
|
-
constructor(element: HTMLElement | null | undefined, props: InputInformationProps);
|
|
152
|
-
onClick(): void;
|
|
153
|
-
render(): void;
|
|
154
|
-
}
|
|
155
|
-
export default InputInformation;
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputRadioField' {
|
|
159
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
160
|
-
interface InputRadioFieldProps {
|
|
161
|
-
readonly title: string;
|
|
162
|
-
readonly value: string;
|
|
163
|
-
readonly name: string;
|
|
164
|
-
readonly description?: string;
|
|
165
|
-
readonly meta?: string;
|
|
166
|
-
readonly id: string;
|
|
167
|
-
readonly checked: boolean;
|
|
168
|
-
readonly onClick?: (e: Event) => void;
|
|
169
|
-
}
|
|
170
|
-
class InputRadioField extends HtmlNode {
|
|
171
|
-
private readonly props;
|
|
172
|
-
constructor(element: HTMLDivElement | null, props: InputRadioFieldProps);
|
|
173
|
-
render(): void;
|
|
174
|
-
}
|
|
175
|
-
export default InputRadioField;
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputRadioGroup' {
|
|
179
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
180
|
-
export interface RadioItem {
|
|
181
|
-
id: string;
|
|
182
|
-
value: string;
|
|
183
|
-
title?: string;
|
|
184
|
-
description?: string;
|
|
185
|
-
meta?: string;
|
|
186
|
-
}
|
|
187
|
-
interface InputRadioGroupProps {
|
|
188
|
-
readonly title?: string;
|
|
189
|
-
readonly name: string;
|
|
190
|
-
readonly checked?: string;
|
|
191
|
-
readonly options: RadioItem[];
|
|
192
|
-
error?: boolean;
|
|
193
|
-
information?: string;
|
|
194
|
-
readonly errorMessage?: string;
|
|
195
|
-
readonly onClick: (e: Event) => void;
|
|
196
|
-
}
|
|
197
|
-
class InputRadioGroup extends HtmlNode {
|
|
198
|
-
private readonly props;
|
|
199
|
-
private contexts;
|
|
200
|
-
constructor(element: HTMLElement | null, props: InputRadioGroupProps);
|
|
201
|
-
setError(error: boolean): void;
|
|
202
|
-
render(): void;
|
|
203
|
-
}
|
|
204
|
-
export default InputRadioGroup;
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputRangeSlider' {
|
|
208
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
209
|
-
interface InputRangeSliderProps {
|
|
210
|
-
readonly title?: string;
|
|
211
|
-
readonly name: string;
|
|
212
|
-
readonly id?: string;
|
|
213
|
-
readonly value: number;
|
|
214
|
-
readonly min: number;
|
|
215
|
-
readonly max: number;
|
|
216
|
-
readonly step?: number;
|
|
217
|
-
readonly label?: string;
|
|
218
|
-
readonly onChange: (e: Event) => void;
|
|
219
|
-
}
|
|
220
|
-
class InputRangeSlider extends HtmlNode {
|
|
221
|
-
private readonly props;
|
|
222
|
-
private contexts;
|
|
223
|
-
private value;
|
|
224
|
-
private min;
|
|
225
|
-
private max;
|
|
226
|
-
private rangeSpan;
|
|
227
|
-
private inputFieldValue;
|
|
228
|
-
private currentValueInPercentage;
|
|
229
|
-
constructor(element: HTMLElement | null, props: InputRangeSliderProps);
|
|
230
|
-
update(value: number): void;
|
|
231
|
-
onInput(e: Event): void;
|
|
232
|
-
updateRangeSliderColor(element?: HTMLInputElement): void;
|
|
233
|
-
render(): void;
|
|
234
|
-
}
|
|
235
|
-
export default InputRangeSlider;
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
declare module '@wayke-se/ev-web/src/Components/Input/InputSelect' {
|
|
239
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
240
|
-
export interface SelectItem {
|
|
241
|
-
value: string | number;
|
|
242
|
-
title?: string;
|
|
243
|
-
}
|
|
244
|
-
interface InputSelectProps {
|
|
245
|
-
readonly title: string;
|
|
246
|
-
readonly name: string;
|
|
247
|
-
readonly id?: string;
|
|
248
|
-
readonly value?: string;
|
|
249
|
-
readonly options: SelectItem[];
|
|
250
|
-
readonly placeholder?: string;
|
|
251
|
-
readonly onChange: (e: Event) => void;
|
|
252
|
-
}
|
|
253
|
-
class InputSelect extends HtmlNode {
|
|
254
|
-
private readonly props;
|
|
255
|
-
private contexts;
|
|
256
|
-
private value?;
|
|
257
|
-
constructor(element: HTMLElement | null, props: InputSelectProps);
|
|
258
|
-
update(value: string): void;
|
|
259
|
-
render(): void;
|
|
260
|
-
}
|
|
261
|
-
export default InputSelect;
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
declare module '@wayke-se/ev-web/src/Components/LinkButton/LinkButton' {
|
|
265
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
266
|
-
interface LinkButtonProps {
|
|
267
|
-
readonly title: string;
|
|
268
|
-
readonly id?: string;
|
|
269
|
-
disabled?: boolean;
|
|
270
|
-
loading?: boolean;
|
|
271
|
-
readonly onClick?: (e: Event) => void;
|
|
272
|
-
}
|
|
273
|
-
class LinkButton extends HtmlNode {
|
|
274
|
-
private readonly props;
|
|
275
|
-
constructor(element: HTMLDivElement | null, props: LinkButtonProps);
|
|
276
|
-
isDisabled(): boolean | undefined;
|
|
277
|
-
disabled(disabled: boolean): void;
|
|
278
|
-
loading(loading: boolean): void;
|
|
279
|
-
render(): void;
|
|
280
|
-
}
|
|
281
|
-
export default LinkButton;
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
declare module '@wayke-se/ev-web/src/Http/getCostPerKilometer' {
|
|
285
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
286
|
-
const getCostPerKilometer: (url: string, id: string, kwhCost?: number) => Promise<EvCalculationChargingPerKilometer>;
|
|
287
|
-
export default getCostPerKilometer;
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
declare module '@wayke-se/ev-web/src/Http/http' {
|
|
291
|
-
interface RequestOptions {
|
|
292
|
-
url: string;
|
|
293
|
-
method: 'GET' | 'POST';
|
|
294
|
-
body?: any;
|
|
295
|
-
headers?: {
|
|
296
|
-
[key: string]: string | undefined;
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
export class RequestError extends Error {
|
|
300
|
-
status?: number;
|
|
301
|
-
constructor(message: string, status?: number);
|
|
302
|
-
}
|
|
303
|
-
export function sendRequest<Response>(options: RequestOptions): Promise<Response>;
|
|
304
|
-
export {};
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
declare module '@wayke-se/ev-web/src/Templates/Alert' {
|
|
308
|
-
type Tones = 'success' | 'warning' | 'error' | 'info';
|
|
309
|
-
interface AlertProps {
|
|
310
|
-
tone?: Tones;
|
|
311
|
-
children?: string | Element;
|
|
312
|
-
}
|
|
313
|
-
const Alert: ({ tone, children }: AlertProps) => string;
|
|
314
|
-
export default Alert;
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
declare module '@wayke-se/ev-web/src/Templates/Loader' {
|
|
318
|
-
type LoaderType = 'inline';
|
|
319
|
-
interface LoaderProps {
|
|
320
|
-
type?: LoaderType;
|
|
321
|
-
}
|
|
322
|
-
const Loader: (props?: LoaderProps) => string;
|
|
323
|
-
export default Loader;
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
declare module '@wayke-se/ev-web/src/Templates/Logotype' {
|
|
327
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
328
|
-
interface LogotypeProps {
|
|
329
|
-
market: MarketCode | undefined;
|
|
330
|
-
className?: string;
|
|
331
|
-
}
|
|
332
|
-
export const getSymbolLogotype: ({ market, className }: LogotypeProps) => string;
|
|
333
|
-
export {};
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
declare module '@wayke-se/ev-web/src/Templates/PoweredByWayke' {
|
|
337
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
338
|
-
const PoweredByWayke: (market?: MarketCode) => string;
|
|
339
|
-
export default PoweredByWayke;
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
declare module '@wayke-se/ev-web/src/Utils/events' {
|
|
343
|
-
export enum EvEvent {
|
|
344
|
-
INITIALIZED = "INITIALIZED",
|
|
345
|
-
DISTANCE_SLIDER = "DISTANCE_SLIDER",
|
|
346
|
-
DISTANCE_SELECT = "DISTANCE_SELECT",
|
|
347
|
-
INITIAL_REQUEST_PENDING = "INITIAL_REQUEST_PENDING",
|
|
348
|
-
INITIAL_REQUEST_SUCCEEDED = "INITIAL_REQUEST_SUCCEEDED",
|
|
349
|
-
INITIAL_REQUEST_FAILED = "INITIAL_REQUEST_FAILED",
|
|
350
|
-
MODAL_OPENED = "MODAL_OPENED",
|
|
351
|
-
MODAL_CLOSED = "MODAL_CLOSED",
|
|
352
|
-
REQUEST_CUSTOM_PRICE_PENDING = "REQUEST_CUSTOM_PRICE_PENDING",
|
|
353
|
-
REQUEST_CUSTOM_PRICE_SUCCEEDED = "REQUEST_CUSTOM_PRICE_SUCCEEDED",
|
|
354
|
-
REQUEST_CUSTOM_PRICE_FAILED = "REQUEST_CUSTOM_PRICE_FAILED",
|
|
355
|
-
TOGGLE_PRICE = "TOGGLE_PRICE",
|
|
356
|
-
CUSTOM_PRICE_CHANGE = "CUSTOM_PRICE_CHANGE"
|
|
357
|
-
}
|
|
358
|
-
export enum EvView {
|
|
359
|
-
MAIN = "MAIN",
|
|
360
|
-
MODAL = "MODAL"
|
|
361
|
-
}
|
|
362
|
-
type Listner = (view: EvView, event: EvEvent, data?: {
|
|
363
|
-
[key: string]: any;
|
|
364
|
-
}) => void;
|
|
365
|
-
export const registerEventListner: (fn: Listner) => void;
|
|
366
|
-
export const unregisterEventListner: (fn: Listner) => void;
|
|
367
|
-
export const pushEvent: (view: EvView, evEvent: EvEvent, data?: any) => void;
|
|
368
|
-
export {};
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
declare module '@wayke-se/ev-web/src/Utils/font' {
|
|
372
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
373
|
-
export const loadFont: (market?: MarketCode) => void;
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
declare module '@wayke-se/ev-web/src/Utils/format' {
|
|
377
|
-
export const removeSpaces: (value: string | number) => string;
|
|
378
|
-
interface PrettyNumberSettings {
|
|
379
|
-
postfix?: string | number;
|
|
380
|
-
prefix?: string | number;
|
|
381
|
-
decimals?: number;
|
|
382
|
-
}
|
|
383
|
-
export const prettyNumber: (value: number | undefined, settings?: PrettyNumberSettings) => string;
|
|
384
|
-
export const onlyNumbers: (value: string) => string;
|
|
385
|
-
export const onlyFloat: (value: string) => string;
|
|
386
|
-
export {};
|
|
387
|
-
|
|
388
|
-
}
|
|
389
|
-
declare module '@wayke-se/ev-web/src/Utils/i18n' {
|
|
390
|
-
import i18next_default from 'i18next';
|
|
391
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
392
|
-
const i18next: typeof i18next_default;
|
|
393
|
-
export const t: (key: string, options?: any) => string | import("i18next/typescript/helpers").$SpecialObject | import("i18next").TFunctionDetailedResult<string | import("i18next/typescript/helpers").$SpecialObject>;
|
|
394
|
-
export const initializeI18N: (marketCode?: MarketCode) => void;
|
|
395
|
-
export default i18next;
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
declare module '@wayke-se/ev-web/src/Utils/market' {
|
|
399
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
400
|
-
export const getLanguage: (marketCode?: MarketCode) => "nb-NO" | "sv-SE";
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
declare module '@wayke-se/ev-web/src/Utils/regex' {
|
|
404
|
-
export const regexNumber: RegExp;
|
|
405
|
-
export const regexFloat: RegExp;
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
declare module '@wayke-se/ev-web/src/Utils/theme' {
|
|
409
|
-
import { Theme } from '@wayke-se/ev-web/src/@types/AppProps';
|
|
410
|
-
export const createTheme: (theme?: Theme) => void;
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
declare module '@wayke-se/ev-web/src/Views/Preview/Modal' {
|
|
414
|
-
import { AppProps } from '@wayke-se/ev-web/src/@types/AppProps';
|
|
415
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
416
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
417
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
418
|
-
import { SelectItem } from '@wayke-se/ev-web/src/Components/Input/InputSelect';
|
|
419
|
-
interface ModalProps {
|
|
420
|
-
settings: AppProps;
|
|
421
|
-
open?: boolean;
|
|
422
|
-
charginCostPerKilometer: EvCalculationChargingPerKilometer;
|
|
423
|
-
distance: number;
|
|
424
|
-
distanceOptions: number[];
|
|
425
|
-
distanceStep: number;
|
|
426
|
-
distanceOptionsMapped: SelectItem[];
|
|
427
|
-
marketCode: MarketCode;
|
|
428
|
-
onChangeRange: (e: Event) => void;
|
|
429
|
-
}
|
|
430
|
-
class Modal extends HtmlNode {
|
|
431
|
-
private readonly props;
|
|
432
|
-
private contexts;
|
|
433
|
-
private charginCostPerKilometer;
|
|
434
|
-
private distance;
|
|
435
|
-
private marketCode;
|
|
436
|
-
constructor(element: HTMLElement | null, props: ModalProps);
|
|
437
|
-
open(): void;
|
|
438
|
-
close(): void;
|
|
439
|
-
update(charginCostPerKilometer: EvCalculationChargingPerKilometer, distance: number): void;
|
|
440
|
-
render(): void;
|
|
441
|
-
}
|
|
442
|
-
export default Modal;
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
declare module '@wayke-se/ev-web/src/Views/Preview/ModalResult' {
|
|
446
|
-
import { AppProps } from '@wayke-se/ev-web/src/@types/AppProps';
|
|
447
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
448
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
449
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
450
|
-
interface ModalResultProps {
|
|
451
|
-
settings: AppProps;
|
|
452
|
-
charginCostPerKilometer: EvCalculationChargingPerKilometer;
|
|
453
|
-
distance: number;
|
|
454
|
-
marketCode: MarketCode;
|
|
455
|
-
}
|
|
456
|
-
class ModalResult extends HtmlNode {
|
|
457
|
-
private readonly props;
|
|
458
|
-
private contexts;
|
|
459
|
-
private priceOption;
|
|
460
|
-
private costPerKwh?;
|
|
461
|
-
private charginCostPerKilometer;
|
|
462
|
-
private distance;
|
|
463
|
-
private costPerKilometerCustom?;
|
|
464
|
-
private marketCode;
|
|
465
|
-
constructor(element: HTMLElement | null, props: ModalResultProps);
|
|
466
|
-
private fetchData;
|
|
467
|
-
private onChangeRadio;
|
|
468
|
-
update(distance: number): void;
|
|
469
|
-
private onChange;
|
|
470
|
-
render(): void;
|
|
471
|
-
}
|
|
472
|
-
export default ModalResult;
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
declare module '@wayke-se/ev-web/src/Views/Preview/ModalResultStats' {
|
|
476
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
477
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
478
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
479
|
-
type PriceOptionTypes = 'standardPrice' | 'customPrice';
|
|
480
|
-
interface ModalResultStatsProps {
|
|
481
|
-
priceOption: PriceOptionTypes;
|
|
482
|
-
charginCostPerKilometer?: EvCalculationChargingPerKilometer;
|
|
483
|
-
distance: number;
|
|
484
|
-
marketCode: MarketCode;
|
|
485
|
-
}
|
|
486
|
-
class ModalResultStats extends HtmlNode {
|
|
487
|
-
private readonly props;
|
|
488
|
-
private charginCostPerKilometer?;
|
|
489
|
-
private distance;
|
|
490
|
-
private marketCode;
|
|
491
|
-
constructor(element: HTMLElement | null, props: ModalResultStatsProps);
|
|
492
|
-
update(charginCostPerKilometer: EvCalculationChargingPerKilometer | undefined, distance: number): void;
|
|
493
|
-
hide(): void;
|
|
494
|
-
render(): void;
|
|
495
|
-
}
|
|
496
|
-
export default ModalResultStats;
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
declare module '@wayke-se/ev-web/src/Views/Preview/Result' {
|
|
500
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
501
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
502
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
503
|
-
interface ResultProps {
|
|
504
|
-
charginCostPerKilometer?: EvCalculationChargingPerKilometer;
|
|
505
|
-
distance: number;
|
|
506
|
-
marketCode: MarketCode;
|
|
507
|
-
}
|
|
508
|
-
class Result extends HtmlNode {
|
|
509
|
-
private readonly props;
|
|
510
|
-
private charginCostPerKilometer?;
|
|
511
|
-
private distance?;
|
|
512
|
-
private marketCode;
|
|
513
|
-
constructor(element: HTMLElement | null, props: ResultProps);
|
|
514
|
-
update(charginCostPerKilometer?: EvCalculationChargingPerKilometer, distance?: number): void;
|
|
515
|
-
render(): void;
|
|
516
|
-
}
|
|
517
|
-
export default Result;
|
|
518
|
-
|
|
519
|
-
}
|
|
520
|
-
declare module '@wayke-se/ev-web/src/Views/Preview/index' {
|
|
521
|
-
import { AppProps } from '@wayke-se/ev-web/src/@types/AppProps';
|
|
522
|
-
import { EvCalculationChargingPerKilometer } from '@wayke-se/ev-web/src/@types/EvCalculation';
|
|
523
|
-
import { MarketCode } from '@wayke-se/ev-web/src/@types/MarketCode';
|
|
524
|
-
import HtmlNode from '@wayke-se/ev-web/src/Components/Extension/HtmlNode';
|
|
525
|
-
interface PreviewProps {
|
|
526
|
-
settings: AppProps;
|
|
527
|
-
marketCode?: MarketCode;
|
|
528
|
-
charginCostPerKilometer?: EvCalculationChargingPerKilometer;
|
|
529
|
-
}
|
|
530
|
-
class Preview extends HtmlNode {
|
|
531
|
-
private readonly props;
|
|
532
|
-
private contexts;
|
|
533
|
-
private distance;
|
|
534
|
-
private distanceOptions;
|
|
535
|
-
private distanceStep;
|
|
536
|
-
private charginCostPerKilometer?;
|
|
537
|
-
private marketCode;
|
|
538
|
-
constructor(element: HTMLElement | null, props: PreviewProps);
|
|
539
|
-
update(charginCostPerKilometer?: EvCalculationChargingPerKilometer): void;
|
|
540
|
-
private onChangeRange;
|
|
541
|
-
render(): void;
|
|
542
|
-
}
|
|
543
|
-
export default Preview;
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
declare module '@wayke-se/ev-web/src/cdn' {
|
|
547
|
-
import WaykeEvWeb from '@wayke-se/ev-web/src/App';
|
|
548
|
-
global {
|
|
549
|
-
interface Window {
|
|
550
|
-
WaykeEvWeb: typeof WaykeEvWeb;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
declare module '@wayke-se/ev-web/src/index-dev' {
|
|
556
|
-
export {};
|
|
557
|
-
|
|
558
|
-
}
|
|
559
|
-
declare module '@wayke-se/ev-web/src/index' {
|
|
560
|
-
import WaykeEvWeb from '@wayke-se/ev-web/src/App';
|
|
561
|
-
export default WaykeEvWeb;
|
|
562
|
-
|
|
563
|
-
}
|
|
564
|
-
declare module '@wayke-se/ev-web' {
|
|
565
|
-
import main = require('@wayke-se/ev-web/src/index');
|
|
566
|
-
export = main;
|
|
567
|
-
}
|
|
1
|
+
export { mount } from './mount.js';
|
|
2
|
+
export type { ChargingData, Environment, ErrorReason, EvEvent, EvInstance, Language, MarketCode, MountOptions, PriceOption, Theme, UnavailableReason, } from './types.js';
|