sveltekit-ui 1.0.5 → 1.0.7

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.
@@ -12,7 +12,9 @@
12
12
 
13
13
  onMount(() => {
14
14
  if (!manager?.is_popover) {
15
+ // setTimeout(() => {
15
16
  manager?.initialize_map()
17
+ // }, 100)
16
18
  }
17
19
  })
18
20
  </script>
@@ -60,9 +62,9 @@
60
62
  {#each manager?.suggestions_prepped as suggestion_prepped}
61
63
  <div class="search_item_container">
62
64
  <div class="search_item">
63
- <h3>{suggestion_prepped?.display_lines?.[0]}</h3>
64
- {#if suggestion_prepped?.display_lines?.[1]}
65
- <p>{suggestion_prepped?.display_lines?.[1]}</p>
65
+ <h3>{suggestion_prepped?.displayLines?.[0]}</h3>
66
+ {#if suggestion_prepped?.displayLines?.[1]}
67
+ <p>{suggestion_prepped?.displayLines?.[1]}</p>
66
68
  {/if}
67
69
  <!-- {#if Array.isArray(suggestion_prepped?.poi_category) && suggestion_prepped.poi_category.length > 0}
68
70
  <div style="display: flex; flex-wrap: wrap; gap: .5rem;">
@@ -586,6 +586,7 @@ export function create_location_input_manager(config) {
586
586
  }
587
587
 
588
588
  function prepare_search_options(is_autocomplete = false) {
589
+ console.log("prepare_search_options")
589
590
  const result_type = Array.isArray(search_filter_result_type_dropdown_manager?.val)
590
591
  ? search_filter_result_type_dropdown_manager?.val
591
592
  : []
@@ -637,6 +638,7 @@ export function create_location_input_manager(config) {
637
638
  )
638
639
  )
639
640
  }
641
+ console.log("zzz", options)
640
642
  return options
641
643
  }
642
644
 
@@ -646,6 +648,7 @@ export function create_location_input_manager(config) {
646
648
  return
647
649
  }
648
650
  const autocomplete_search_options = prepare_search_options(true)
651
+ console.log("autocomplete_search_options", autocomplete_search_options)
649
652
  const place_search = new mapkit.Search()
650
653
  place_search.autocomplete(
651
654
  input,
@@ -657,6 +660,7 @@ export function create_location_input_manager(config) {
657
660
  if (result.results.length > 0) {
658
661
  let suggestions_prepped_loc = []
659
662
  if (Array.isArray(result.results)) {
663
+ console.log("suggestions_results", result.results)
660
664
  for (let suggestion of result.results) {
661
665
  let choose_selection_button_manager = $state(null)
662
666
  if (suggestion?.id) {
@@ -687,6 +691,7 @@ export function create_location_input_manager(config) {
687
691
 
688
692
  function search_for(input) {
689
693
  const search_options = prepare_search_options()
694
+ console.log("search_options", search_options)
690
695
  map.removeAnnotations(map.annotations)
691
696
  const place_search = new mapkit.Search()
692
697
  place_search.search(