sveltekit-ui 1.1.8 → 1.1.9
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create_popover_manager } from "../Popover/index.svelte.js"
|
|
2
2
|
import { create_button_manager } from "../Button/index.svelte.js"
|
|
3
3
|
import { create_text_input_manager } from "../TextInput/index.svelte.js"
|
|
4
|
-
import {
|
|
4
|
+
import { create_unique_id, set_closurable, cron_to_english } from "../../client/index.js"
|
|
5
5
|
|
|
6
6
|
export function create_cron_input_manager(config) {
|
|
7
7
|
const id = create_unique_id(null, 20)
|
|
@@ -95,7 +95,7 @@ export function create_cron_input_manager(config) {
|
|
|
95
95
|
function set_attributes(input) {
|
|
96
96
|
label = set_closurable(input?.label, label ?? null)
|
|
97
97
|
is_disabled = set_closurable(input?.is_disabled, is_disabled ?? false)
|
|
98
|
-
is_nullable = set_closurable(input?.
|
|
98
|
+
is_nullable = set_closurable(input?.is_nullable, is_nullable ?? true)
|
|
99
99
|
is_compressed = set_closurable(input?.is_compressed, is_compressed ?? true)
|
|
100
100
|
is_popover = set_closurable(input?.is_popover, is_popover ?? true)
|
|
101
101
|
ml = set_closurable(input?.ml, ml ?? 0)
|
package/jsconfig.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "A SvelteKit UI component library for building modern web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"context-filter-polyfill": "^0.3.23",
|
|
21
21
|
"qr-code-styling": "^1.9.2",
|
|
22
|
-
"svelte": "^5.
|
|
22
|
+
"svelte": "^5.45.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@sveltejs/kit": "^2.22.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@sveltejs/adapter-vercel": "^6.
|
|
29
|
-
"@sveltejs/kit": "^2.
|
|
30
|
-
"@sveltejs/package": "^2.5.
|
|
28
|
+
"@sveltejs/adapter-vercel": "^6.2.0",
|
|
29
|
+
"@sveltejs/kit": "^2.49.0",
|
|
30
|
+
"@sveltejs/package": "^2.5.7",
|
|
31
31
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
32
|
-
"@vercel/analytics": "^1.
|
|
32
|
+
"@vercel/analytics": "^1.6.0",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vite": "^7.2.
|
|
34
|
+
"vite": "^7.2.6"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://www.sveltekit-ui.com",
|
|
37
37
|
"keywords": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create_popover_manager } from "$lib/Components/Popover/index.svelte.js"
|
|
2
2
|
import { create_button_manager } from "$lib/Components/Button/index.svelte.js"
|
|
3
3
|
import { create_text_input_manager } from "$lib/Components/TextInput/index.svelte.js"
|
|
4
|
-
import {
|
|
4
|
+
import { create_unique_id, set_closurable, cron_to_english } from "$lib/client/index.js"
|
|
5
5
|
|
|
6
6
|
export function create_cron_input_manager(config) {
|
|
7
7
|
const id = create_unique_id(null, 20)
|
|
@@ -95,7 +95,7 @@ export function create_cron_input_manager(config) {
|
|
|
95
95
|
function set_attributes(input) {
|
|
96
96
|
label = set_closurable(input?.label, label ?? null)
|
|
97
97
|
is_disabled = set_closurable(input?.is_disabled, is_disabled ?? false)
|
|
98
|
-
is_nullable = set_closurable(input?.
|
|
98
|
+
is_nullable = set_closurable(input?.is_nullable, is_nullable ?? true)
|
|
99
99
|
is_compressed = set_closurable(input?.is_compressed, is_compressed ?? true)
|
|
100
100
|
is_popover = set_closurable(input?.is_popover, is_popover ?? true)
|
|
101
101
|
ml = set_closurable(input?.ml, ml ?? 0)
|
|
@@ -19,25 +19,49 @@
|
|
|
19
19
|
// full_thoroughfare: "772 N High St",
|
|
20
20
|
// }
|
|
21
21
|
|
|
22
|
+
let columbus = {
|
|
23
|
+
muid: "14232172829439690926",
|
|
24
|
+
latitude: 39.9619603,
|
|
25
|
+
longitude: -83.0030487,
|
|
26
|
+
name: "Columbus, Ohio",
|
|
27
|
+
formatted_address: "Columbus, OH, United States",
|
|
28
|
+
country: "United States",
|
|
29
|
+
country_code: "US",
|
|
30
|
+
administrative_area: "Ohio",
|
|
31
|
+
administrative_area_code: "OH",
|
|
32
|
+
locality: "Columbus",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let boston = {
|
|
36
|
+
muid: "10757033078885470660",
|
|
37
|
+
latitude: 42.3602558,
|
|
38
|
+
longitude: -71.0572791,
|
|
39
|
+
name: "Boston, Massachusetts",
|
|
40
|
+
formatted_address: "Boston, MA, United States",
|
|
41
|
+
country: "United States",
|
|
42
|
+
country_code: "US",
|
|
43
|
+
administrative_area: "Massachusetts",
|
|
44
|
+
administrative_area_code: "MA",
|
|
45
|
+
locality: "Boston",
|
|
46
|
+
}
|
|
47
|
+
|
|
22
48
|
let reykjavik = {
|
|
23
49
|
muid: "8657441869121576464",
|
|
24
50
|
latitude: 64.1475973,
|
|
25
51
|
longitude: -21.9386179,
|
|
26
|
-
name: "
|
|
27
|
-
formatted_address: "
|
|
52
|
+
name: "reykjavik, Greater reykjavik",
|
|
53
|
+
formatted_address: "reykjavik, Iceland",
|
|
28
54
|
country: "Iceland",
|
|
29
55
|
country_code: "IS",
|
|
30
|
-
administrative_area: "Greater
|
|
31
|
-
locality: "
|
|
56
|
+
administrative_area: "Greater reykjavik",
|
|
57
|
+
locality: "reykjavik",
|
|
32
58
|
}
|
|
33
59
|
|
|
34
60
|
let stockholm = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
longitude: 18.0572531,
|
|
40
|
-
name: "Stockholm Centralstation",
|
|
61
|
+
muid: "3029606702727878083",
|
|
62
|
+
latitude: 59.3278751,
|
|
63
|
+
longitude: 18.0532655,
|
|
64
|
+
name: "Stockholm, Stockholm County",
|
|
41
65
|
formatted_address: "Stockholm, Sweden",
|
|
42
66
|
country: "Sweden",
|
|
43
67
|
country_code: "SE",
|
|
@@ -58,6 +82,18 @@
|
|
|
58
82
|
sub_locality: "Copenhagen",
|
|
59
83
|
}
|
|
60
84
|
|
|
85
|
+
let lulea = {
|
|
86
|
+
muid: "2141078918850719431",
|
|
87
|
+
latitude: 65.5826039,
|
|
88
|
+
longitude: 22.1435917,
|
|
89
|
+
name: "Luleå, Norrbotten County",
|
|
90
|
+
formatted_address: "Luleå, Sweden",
|
|
91
|
+
country: "Sweden",
|
|
92
|
+
country_code: "SE",
|
|
93
|
+
administrative_area: "Norrbotten County",
|
|
94
|
+
locality: "Luleå",
|
|
95
|
+
}
|
|
96
|
+
|
|
61
97
|
let kalix = {
|
|
62
98
|
place_id: "I936475A0BFE4700C",
|
|
63
99
|
muid: "10620743154521108492",
|
|
@@ -145,6 +181,18 @@
|
|
|
145
181
|
locality: "Rovaniemi",
|
|
146
182
|
}
|
|
147
183
|
|
|
184
|
+
let inari = {
|
|
185
|
+
muid: "11342649962278133247",
|
|
186
|
+
latitude: 68.9051174,
|
|
187
|
+
longitude: 27.0237048,
|
|
188
|
+
name: "Inari, Lapland",
|
|
189
|
+
formatted_address: "Inari, Finland",
|
|
190
|
+
country: "Finland",
|
|
191
|
+
country_code: "FI",
|
|
192
|
+
administrative_area: "Lapland",
|
|
193
|
+
locality: "Inari",
|
|
194
|
+
}
|
|
195
|
+
|
|
148
196
|
let kirkenes = {
|
|
149
197
|
muid: "15537753109082693582",
|
|
150
198
|
latitude: 69.7258084,
|
|
@@ -193,114 +241,321 @@
|
|
|
193
241
|
locality: "London",
|
|
194
242
|
}
|
|
195
243
|
|
|
196
|
-
let
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
244
|
+
let thingvellir_national_park = {
|
|
245
|
+
place_id: "IF2030984B3185B0B",
|
|
246
|
+
muid: "17438792647653743371",
|
|
247
|
+
poi_category: "NationalPark",
|
|
248
|
+
latitude: 64.2756077,
|
|
249
|
+
longitude: -21.09375,
|
|
250
|
+
name: "Thingvellir National Park",
|
|
251
|
+
formatted_address: "Sandhólastígur, 806 Selfoss, Iceland",
|
|
252
|
+
country: "Iceland",
|
|
253
|
+
country_code: "IS",
|
|
254
|
+
administrative_area: "Southern Region",
|
|
255
|
+
locality: "Selfoss",
|
|
256
|
+
full_thoroughfare: "Sandhólastígur",
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
let haukadalur_geothermal_field_geyser = {
|
|
260
|
+
place_id: "IE7EE79A0FE10C86A",
|
|
261
|
+
muid: "16712428999582730346",
|
|
262
|
+
latitude: 64.3116655,
|
|
263
|
+
longitude: -20.3003982,
|
|
264
|
+
name: "Haukadalur Geothermal Field",
|
|
265
|
+
formatted_address: "Biskupstungnabraut, 806 Selfoss, Iceland",
|
|
266
|
+
country: "Iceland",
|
|
267
|
+
country_code: "IS",
|
|
268
|
+
administrative_area: "Southern Region",
|
|
269
|
+
locality: "Selfoss",
|
|
270
|
+
full_thoroughfare: "Biskupstungnabraut",
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
let gullfoss_waterfall = {
|
|
274
|
+
place_id: "I738BD8F0DD5C01",
|
|
275
|
+
muid: "32523386191961089",
|
|
276
|
+
latitude: 64.326912,
|
|
277
|
+
longitude: -20.120629,
|
|
278
|
+
name: "Gullfoss",
|
|
279
|
+
formatted_address: "846 Flúðir, Iceland",
|
|
280
|
+
country: "Iceland",
|
|
281
|
+
country_code: "IS",
|
|
282
|
+
administrative_area: "Southern Region",
|
|
283
|
+
locality: "Flúðir",
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
let kerid_crater = {
|
|
287
|
+
place_id: "I40B8E086A6B4C47D",
|
|
288
|
+
muid: "4663724283069252733",
|
|
289
|
+
latitude: 64.0410054,
|
|
290
|
+
longitude: -20.8845162,
|
|
291
|
+
name: "Kerid Crater",
|
|
292
|
+
formatted_address: "805 Selfoss, Iceland",
|
|
293
|
+
country: "Iceland",
|
|
294
|
+
country_code: "IS",
|
|
295
|
+
administrative_area: "Southern Region",
|
|
296
|
+
locality: "Selfoss",
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
let sky_lagoon = {
|
|
300
|
+
place_id: "I3388913DAE590804",
|
|
301
|
+
muid: "3713377586871076868",
|
|
302
|
+
poi_category: "Spa",
|
|
303
|
+
latitude: 64.1164667,
|
|
304
|
+
longitude: -21.9463277,
|
|
305
|
+
name: "Sky Lagoon",
|
|
306
|
+
formatted_address: "Vesturvör 44-48, 200 Kópavogur, Iceland",
|
|
307
|
+
country: "Iceland",
|
|
308
|
+
country_code: "IS",
|
|
309
|
+
administrative_area: "Greater Reykjavík",
|
|
310
|
+
locality: "Kópavogur",
|
|
311
|
+
sub_locality: "Kópavogur",
|
|
312
|
+
full_thoroughfare: "Vesturvör 44-48",
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
let hammerfest = {
|
|
316
|
+
muid: "5838002593772823358",
|
|
317
|
+
latitude: 70.6642361,
|
|
318
|
+
longitude: 23.6802054,
|
|
319
|
+
name: "Hammerfest, Troms og Finnmark",
|
|
320
|
+
formatted_address: "Hammerfest, Hammerfest Municipality, Norway",
|
|
321
|
+
country: "Norway",
|
|
322
|
+
country_code: "NO",
|
|
323
|
+
administrative_area: "Troms og Finnmark",
|
|
324
|
+
locality: "Hammerfest",
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
let tromso = {
|
|
328
|
+
muid: "4451416230443755470",
|
|
329
|
+
latitude: 69.6536174,
|
|
330
|
+
longitude: 18.9604594,
|
|
331
|
+
name: "Tromsø, Troms og Finnmark",
|
|
332
|
+
formatted_address: "Tromsø, Tromsø Municipality, Norway",
|
|
333
|
+
country: "Norway",
|
|
334
|
+
country_code: "NO",
|
|
335
|
+
administrative_area: "Troms og Finnmark",
|
|
336
|
+
locality: "Tromsø",
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
let stokmarknes = {
|
|
340
|
+
muid: "4062517557212301008",
|
|
341
|
+
latitude: 68.565526,
|
|
342
|
+
longitude: 14.9046547,
|
|
343
|
+
name: "Stokmarknes, Nordland",
|
|
344
|
+
formatted_address: "Stokmarknes, Hadsel Municipality, Norway",
|
|
345
|
+
country: "Norway",
|
|
346
|
+
country_code: "NO",
|
|
347
|
+
administrative_area: "Nordland",
|
|
348
|
+
locality: "Stokmarknes",
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
let trondheim = {
|
|
352
|
+
muid: "3371362383073657300",
|
|
353
|
+
latitude: 63.4290482,
|
|
354
|
+
longitude: 10.3941752,
|
|
355
|
+
name: "Trondheim, Trøndelag",
|
|
356
|
+
formatted_address: "Trondheim, Norway",
|
|
357
|
+
country: "Norway",
|
|
358
|
+
country_code: "NO",
|
|
359
|
+
administrative_area: "Trøndelag",
|
|
360
|
+
locality: "Trondheim",
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
let lofoten = {
|
|
364
|
+
place_id: "IC687C6C8207B2A8B",
|
|
365
|
+
muid: "14305621304206371467",
|
|
366
|
+
latitude: 67.9363474,
|
|
367
|
+
longitude: 13.4390258,
|
|
368
|
+
name: "Lofoten",
|
|
369
|
+
formatted_address: "Flakstad Municipality, Norway",
|
|
370
|
+
country: "Norway",
|
|
371
|
+
country_code: "NO",
|
|
372
|
+
administrative_area: "Nordland",
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
let val = [london]
|
|
376
|
+
|
|
377
|
+
// let val = [
|
|
378
|
+
// reykjavik,
|
|
379
|
+
// {
|
|
380
|
+
// type: "route",
|
|
381
|
+
// from: reykjavik,
|
|
382
|
+
// to: kerid_crater,
|
|
383
|
+
// line_width: 3,
|
|
384
|
+
// stroke_color: "#ffff00",
|
|
385
|
+
// },
|
|
386
|
+
// kerid_crater,
|
|
387
|
+
// {
|
|
388
|
+
// type: "route",
|
|
389
|
+
// from: kerid_crater,
|
|
390
|
+
// to: gullfoss_waterfall,
|
|
391
|
+
// line_width: 3,
|
|
392
|
+
// stroke_color: "#ffff00",
|
|
393
|
+
// },
|
|
394
|
+
// gullfoss_waterfall,
|
|
395
|
+
// {
|
|
396
|
+
// type: "route",
|
|
397
|
+
// from: gullfoss_waterfall,
|
|
398
|
+
// to: haukadalur_geothermal_field_geyser,
|
|
399
|
+
// line_width: 3,
|
|
400
|
+
// stroke_color: "#ffff00",
|
|
401
|
+
// },
|
|
402
|
+
// haukadalur_geothermal_field_geyser,
|
|
403
|
+
// {
|
|
404
|
+
// type: "route",
|
|
405
|
+
// from: haukadalur_geothermal_field_geyser,
|
|
406
|
+
// to: thingvellir_national_park,
|
|
407
|
+
// line_width: 3,
|
|
408
|
+
// stroke_color: "#ffff00",
|
|
409
|
+
// },
|
|
410
|
+
// thingvellir_national_park,
|
|
411
|
+
// {
|
|
412
|
+
// type: "route",
|
|
413
|
+
// from: thingvellir_national_park,
|
|
414
|
+
// to: sky_lagoon,
|
|
415
|
+
// line_width: 3,
|
|
416
|
+
// stroke_color: "#ffff00",
|
|
417
|
+
// },
|
|
418
|
+
// sky_lagoon,
|
|
419
|
+
// {
|
|
420
|
+
// type: "route",
|
|
421
|
+
// from: sky_lagoon,
|
|
422
|
+
// to: reykjavik,
|
|
423
|
+
// line_width: 3,
|
|
424
|
+
// stroke_color: "#ffff00",
|
|
425
|
+
// },
|
|
426
|
+
// reykjavik,
|
|
427
|
+
// ]
|
|
428
|
+
|
|
429
|
+
// let val = [
|
|
430
|
+
// columbus,
|
|
431
|
+
// {
|
|
432
|
+
// type: "route",
|
|
433
|
+
// method: "path",
|
|
434
|
+
// from: columbus,
|
|
435
|
+
// to: boston,
|
|
436
|
+
// line_width: 3,
|
|
437
|
+
// stroke_color: "#ffff00",
|
|
438
|
+
// },
|
|
439
|
+
// boston,
|
|
440
|
+
// {
|
|
441
|
+
// type: "route",
|
|
442
|
+
// method: "path",
|
|
443
|
+
// from: boston,
|
|
444
|
+
// to: reykjavik,
|
|
445
|
+
// line_width: 3,
|
|
446
|
+
// stroke_color: "#ffff00",
|
|
447
|
+
// },
|
|
448
|
+
// reykjavik,
|
|
449
|
+
// ]
|
|
450
|
+
|
|
451
|
+
// let val = [
|
|
452
|
+
// reykjavik,
|
|
453
|
+
// {
|
|
454
|
+
// type: "route",
|
|
455
|
+
// method: "path",
|
|
456
|
+
// from: reykjavik,
|
|
457
|
+
// to: stockholm,
|
|
458
|
+
// line_width: 3,
|
|
459
|
+
// stroke_color: "#0000ff",
|
|
460
|
+
// },
|
|
461
|
+
// stockholm,
|
|
462
|
+
// {
|
|
463
|
+
// type: "route",
|
|
464
|
+
// from: stockholm,
|
|
465
|
+
// to: copenhagen,
|
|
466
|
+
// line_width: 3,
|
|
467
|
+
// stroke_color: "#00ff00",
|
|
468
|
+
// },
|
|
469
|
+
// copenhagen,
|
|
470
|
+
// {
|
|
471
|
+
// type: "route",
|
|
472
|
+
// method: "path",
|
|
473
|
+
// from: copenhagen,
|
|
474
|
+
// to: kalix,
|
|
475
|
+
// line_width: 3,
|
|
476
|
+
// stroke_color: "#ff00ff",
|
|
477
|
+
// },
|
|
478
|
+
// kalix,
|
|
479
|
+
// {
|
|
480
|
+
// type: "route",
|
|
481
|
+
// from: kalix,
|
|
482
|
+
// to: narvik,
|
|
483
|
+
// line_width: 3,
|
|
484
|
+
// stroke_color: "#ff9900",
|
|
485
|
+
// },
|
|
486
|
+
// narvik,
|
|
487
|
+
// {
|
|
488
|
+
// type: "route",
|
|
489
|
+
// from: narvik,
|
|
490
|
+
// to: svolvr,
|
|
491
|
+
// line_width: 3,
|
|
492
|
+
// stroke_color: "#0099ff",
|
|
493
|
+
// },
|
|
494
|
+
// svolvr,
|
|
495
|
+
// {
|
|
496
|
+
// type: "route",
|
|
497
|
+
// from: svolvr,
|
|
498
|
+
// to: kiruna,
|
|
499
|
+
// line_width: 3,
|
|
500
|
+
// stroke_color: "#9900ff",
|
|
501
|
+
// },
|
|
502
|
+
// kiruna,
|
|
503
|
+
// {
|
|
504
|
+
// type: "route",
|
|
505
|
+
// from: kiruna,
|
|
506
|
+
// to: oulu,
|
|
507
|
+
// line_width: 3,
|
|
508
|
+
// stroke_color: "#33cc33",
|
|
509
|
+
// },
|
|
510
|
+
// oulu,
|
|
511
|
+
// {
|
|
512
|
+
// type: "route",
|
|
513
|
+
// from: oulu,
|
|
514
|
+
// to: rovaniemi,
|
|
515
|
+
// line_width: 3,
|
|
516
|
+
// stroke_color: "#ffcc00",
|
|
517
|
+
// },
|
|
518
|
+
// rovaniemi,
|
|
519
|
+
// {
|
|
520
|
+
// type: "route",
|
|
521
|
+
// from: rovaniemi,
|
|
522
|
+
// to: kirkenes,
|
|
523
|
+
// line_width: 3,
|
|
524
|
+
// stroke_color: "#00cccc",
|
|
525
|
+
// },
|
|
526
|
+
// kirkenes,
|
|
527
|
+
// {
|
|
528
|
+
// type: "route",
|
|
529
|
+
// method: "path",
|
|
530
|
+
// from: kirkenes,
|
|
531
|
+
// to: bergen,
|
|
532
|
+
// line_width: 3,
|
|
533
|
+
// stroke_color: "#cc0000",
|
|
534
|
+
// way_points: [
|
|
535
|
+
// { latitude: 71, longitude: 31 },
|
|
536
|
+
// { latitude: 70, longitude: 15 },
|
|
537
|
+
// { latitude: 62, longitude: 4 },
|
|
538
|
+
// ],
|
|
539
|
+
// },
|
|
540
|
+
// bergen,
|
|
541
|
+
// {
|
|
542
|
+
// type: "route",
|
|
543
|
+
// from: bergen,
|
|
544
|
+
// to: oslo,
|
|
545
|
+
// line_width: 3,
|
|
546
|
+
// stroke_color: "#6600cc",
|
|
547
|
+
// },
|
|
548
|
+
// oslo,
|
|
549
|
+
// {
|
|
550
|
+
// type: "route",
|
|
551
|
+
// method: "path",
|
|
552
|
+
// from: oslo,
|
|
553
|
+
// to: london,
|
|
554
|
+
// line_width: 3,
|
|
555
|
+
// stroke_color: "#ff6600",
|
|
556
|
+
// },
|
|
557
|
+
// london,
|
|
558
|
+
// ]
|
|
304
559
|
|
|
305
560
|
let example_place_1 = {
|
|
306
561
|
place_id: "I1B2A279E956AFF37",
|
|
@@ -397,26 +652,30 @@
|
|
|
397
652
|
create_location_manager({
|
|
398
653
|
val: val,
|
|
399
654
|
is_dark_color_scheme: true,
|
|
655
|
+
height: 60,
|
|
656
|
+
width: 45,
|
|
400
657
|
mapkit_js_token: PUBLIC_APPLE_MAPKIT_JS_API_KEY,
|
|
401
658
|
})
|
|
402
659
|
)
|
|
403
660
|
|
|
404
661
|
let val2 = example_place_1
|
|
405
662
|
|
|
406
|
-
let location_manager2 = $state(
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
)
|
|
663
|
+
// let location_manager2 = $state(
|
|
664
|
+
// create_location_manager({
|
|
665
|
+
// val: val2,
|
|
666
|
+
// is_dark_color_scheme: true,
|
|
667
|
+
// is_popover: true,
|
|
668
|
+
// mapkit_js_token: PUBLIC_APPLE_MAPKIT_JS_API_KEY,
|
|
669
|
+
// })
|
|
670
|
+
// )
|
|
414
671
|
</script>
|
|
415
672
|
|
|
416
673
|
<div>
|
|
417
674
|
<h4>Example</h4>
|
|
418
|
-
<
|
|
675
|
+
<div style="margin: 5rem;">
|
|
676
|
+
<Location manager={location_manager} />
|
|
677
|
+
</div>
|
|
419
678
|
<pre>{JSON.stringify(location_manager?.val, null, 2)}</pre>
|
|
420
|
-
<h4>Popover Example</h4>
|
|
421
|
-
<Location manager={location_manager2} />
|
|
679
|
+
<!-- <h4>Popover Example</h4>
|
|
680
|
+
<Location manager={location_manager2} /> -->
|
|
422
681
|
</div>
|