@visitscotland/component-library 5.76.1 → 5.79.2

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 (28) hide show
  1. package/CHANGELOG.md +5419 -0
  2. package/dist/components/components/dropdown/Dropdown.vue.d.ts +948 -0
  3. package/dist/components/components/footer/components/FooterCopyright.vue.d.ts +1 -1
  4. package/dist/components/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +1277 -0
  5. package/dist/components/components/google-map/GoogleMap.vue.d.ts +234 -0
  6. package/dist/components/components/google-map/components/GoogleMapMarker.vue.d.ts +73 -0
  7. package/dist/components/components/google-map/composables/AddPolygon.d.ts +2 -0
  8. package/dist/components/components/google-map/composables/AddTooltip.d.ts +30 -0
  9. package/dist/components/components/index.d.ts +2 -0
  10. package/dist/components/components/mega-nav/MegaNav.vue.d.ts +13 -13
  11. package/dist/components/components/navigation-bar/components/NavigationBarMenuDropdown.vue.d.ts +955 -0
  12. package/dist/components/components/social-share/SocialShare.vue.d.ts +1702 -0
  13. package/dist/components/custom-components/maps/MainMap.vue.d.ts +2 -2
  14. package/dist/components/custom-components/maps/components/MapSidebar.vue.d.ts +0 -22
  15. package/dist/components/custom-components/maps/composables/useUpdateSearchParams.d.ts +11 -0
  16. package/dist/components/custom-components/maps/index.d.ts +2 -54
  17. package/dist/components/map-pin-BLjt1O7o.js +4 -0
  18. package/dist/components/map-pin-fZzoZBi5.mjs +7 -0
  19. package/dist/components/stores/googleMap.store.d.ts +26 -0
  20. package/dist/components/stores/mainMap.store.d.ts +7 -1
  21. package/dist/components/stores/map.store.d.ts +1 -1
  22. package/dist/components/stores/mapCategory.store.d.ts +56 -0
  23. package/dist/components/style.css +1 -1
  24. package/dist/components/types/types.d.ts +30 -0
  25. package/dist/components/utils/is-apple-ios.d.ts +5 -0
  26. package/dist/components/vs-component-library.js +19 -11
  27. package/dist/components/vs-component-library.mjs +3349 -2680
  28. package/package.json +192 -192
@@ -250,11 +250,11 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
250
250
  center: Record<string, any>;
251
251
  zoom: number;
252
252
  apiKey: string;
253
+ mapId: string;
254
+ languageCode: string;
253
255
  radius: number;
254
256
  labels: Record<string, any>;
255
- mapId: string;
256
257
  mapTypeVector: boolean;
257
- languageCode: string;
258
258
  categoriesLocation: string;
259
259
  categoryLabels: Record<string, any>;
260
260
  featuredPlaces: Record<string, any>;
@@ -38,10 +38,6 @@ type Props = {
38
38
  mapLoaded?: boolean;
39
39
  /** Test query from Map Search */
40
40
  query?: string;
41
- /** Selected top level category */
42
- selectedCategory?: string;
43
- /** Selected sub categories */
44
- selectedSubcategories?: any;
45
41
  /** Labels for the sidebar */
46
42
  sidebarLabels: Record<string, string>;
47
43
  };
@@ -56,41 +52,23 @@ type __VLS_Slots = {} & {
56
52
  'vs-map-sidebar-search-results'?: (props: typeof __VLS_58) => any;
57
53
  };
58
54
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
- "category-selected": (args_0: {
60
- id: string;
61
- key: number | string;
62
- }) => any;
63
55
  "destination-type-selected": () => any;
64
56
  "reset-location": () => any;
65
57
  "reset-map": () => any;
66
58
  "search-input-changed": () => any;
67
- "subcategory-selected": (args_0: {
68
- id: string;
69
- key: number | string;
70
- }) => any;
71
59
  "update:isOpen": (value: boolean) => any;
72
60
  "update:isResultsOpen": (value: boolean) => any;
73
61
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
74
- "onCategory-selected"?: (args_0: {
75
- id: string;
76
- key: number | string;
77
- }) => any;
78
62
  "onDestination-type-selected"?: () => any;
79
63
  "onReset-location"?: () => any;
80
64
  "onReset-map"?: () => any;
81
65
  "onSearch-input-changed"?: () => any;
82
- "onSubcategory-selected"?: (args_0: {
83
- id: string;
84
- key: number | string;
85
- }) => any;
86
66
  "onUpdate:isOpen"?: (value: boolean) => any;
87
67
  "onUpdate:isResultsOpen"?: (value: boolean) => any;
88
68
  }>, {
89
- selectedCategory: string;
90
69
  categoryData: CategoryConfig;
91
70
  mapLoaded: boolean;
92
71
  query: string;
93
- selectedSubcategories: any;
94
72
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
95
73
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
74
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,11 @@
1
+ export default function useUpdateSearchParams(): {
2
+ getSearchParams: () => {
3
+ category: string;
4
+ coords: number[];
5
+ location: string;
6
+ subcategories: string;
7
+ searchTerm: string;
8
+ zoom: number;
9
+ };
10
+ updateSearchParams: (updates: Record<string, string | null>, replace: boolean) => void;
11
+ };
@@ -149,11 +149,11 @@ declare const _default: {
149
149
  center: Record<string, any>;
150
150
  zoom: number;
151
151
  apiKey: string;
152
+ mapId: string;
153
+ languageCode: string;
152
154
  radius: number;
153
155
  labels: Record<string, any>;
154
- mapId: string;
155
156
  mapTypeVector: boolean;
156
- languageCode: string;
157
157
  categoriesLocation: string;
158
158
  categoryLabels: Record<string, any>;
159
159
  featuredPlaces: Record<string, any>;
@@ -191,44 +191,25 @@ declare const _default: {
191
191
  }[];
192
192
  mapLoaded?: boolean;
193
193
  query?: string;
194
- selectedCategory?: string;
195
- selectedSubcategories?: any;
196
194
  sidebarLabels: Record<string, string>;
197
195
  } & {
198
196
  isOpen?: boolean;
199
197
  isResultsOpen?: boolean;
200
198
  }> & Readonly<{
201
- "onCategory-selected"?: (args_0: {
202
- id: string;
203
- key: number | string;
204
- }) => any;
205
199
  "onDestination-type-selected"?: () => any;
206
200
  "onReset-location"?: () => any;
207
201
  "onReset-map"?: () => any;
208
202
  "onSearch-input-changed"?: () => any;
209
- "onSubcategory-selected"?: (args_0: {
210
- id: string;
211
- key: number | string;
212
- }) => any;
213
203
  "onUpdate:isOpen"?: (value: boolean) => any;
214
204
  "onUpdate:isResultsOpen"?: (value: boolean) => any;
215
205
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
216
- "category-selected": (args_0: {
217
- id: string;
218
- key: number | string;
219
- }) => any;
220
206
  "destination-type-selected": () => any;
221
207
  "reset-location": () => any;
222
208
  "reset-map": () => any;
223
209
  "search-input-changed": () => any;
224
- "subcategory-selected": (args_0: {
225
- id: string;
226
- key: number | string;
227
- }) => any;
228
210
  "update:isOpen": (value: boolean) => any;
229
211
  "update:isResultsOpen": (value: boolean) => any;
230
212
  }, import('vue').PublicProps, {
231
- selectedCategory: string;
232
213
  categoryData: {
233
214
  [x: string]: {
234
215
  id: string;
@@ -245,7 +226,6 @@ declare const _default: {
245
226
  };
246
227
  mapLoaded: boolean;
247
228
  query: string;
248
- selectedSubcategories: any;
249
229
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
250
230
  P: {};
251
231
  B: {};
@@ -284,29 +264,18 @@ declare const _default: {
284
264
  }[];
285
265
  mapLoaded?: boolean;
286
266
  query?: string;
287
- selectedCategory?: string;
288
- selectedSubcategories?: any;
289
267
  sidebarLabels: Record<string, string>;
290
268
  } & {
291
269
  isOpen?: boolean;
292
270
  isResultsOpen?: boolean;
293
271
  }> & Readonly<{
294
- "onCategory-selected"?: (args_0: {
295
- id: string;
296
- key: number | string;
297
- }) => any;
298
272
  "onDestination-type-selected"?: () => any;
299
273
  "onReset-location"?: () => any;
300
274
  "onReset-map"?: () => any;
301
275
  "onSearch-input-changed"?: () => any;
302
- "onSubcategory-selected"?: (args_0: {
303
- id: string;
304
- key: number | string;
305
- }) => any;
306
276
  "onUpdate:isOpen"?: (value: boolean) => any;
307
277
  "onUpdate:isResultsOpen"?: (value: boolean) => any;
308
278
  }>, {}, {}, {}, {}, {
309
- selectedCategory: string;
310
279
  categoryData: {
311
280
  [x: string]: {
312
281
  id: string;
@@ -323,7 +292,6 @@ declare const _default: {
323
292
  };
324
293
  mapLoaded: boolean;
325
294
  query: string;
326
- selectedSubcategories: any;
327
295
  }>;
328
296
  __isFragment?: never;
329
297
  __isTeleport?: never;
@@ -359,44 +327,25 @@ declare const _default: {
359
327
  }[];
360
328
  mapLoaded?: boolean;
361
329
  query?: string;
362
- selectedCategory?: string;
363
- selectedSubcategories?: any;
364
330
  sidebarLabels: Record<string, string>;
365
331
  } & {
366
332
  isOpen?: boolean;
367
333
  isResultsOpen?: boolean;
368
334
  }> & Readonly<{
369
- "onCategory-selected"?: (args_0: {
370
- id: string;
371
- key: number | string;
372
- }) => any;
373
335
  "onDestination-type-selected"?: () => any;
374
336
  "onReset-location"?: () => any;
375
337
  "onReset-map"?: () => any;
376
338
  "onSearch-input-changed"?: () => any;
377
- "onSubcategory-selected"?: (args_0: {
378
- id: string;
379
- key: number | string;
380
- }) => any;
381
339
  "onUpdate:isOpen"?: (value: boolean) => any;
382
340
  "onUpdate:isResultsOpen"?: (value: boolean) => any;
383
341
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
384
- "category-selected": (args_0: {
385
- id: string;
386
- key: number | string;
387
- }) => any;
388
342
  "destination-type-selected": () => any;
389
343
  "reset-location": () => any;
390
344
  "reset-map": () => any;
391
345
  "search-input-changed": () => any;
392
- "subcategory-selected": (args_0: {
393
- id: string;
394
- key: number | string;
395
- }) => any;
396
346
  "update:isOpen": (value: boolean) => any;
397
347
  "update:isResultsOpen": (value: boolean) => any;
398
348
  }, string, {
399
- selectedCategory: string;
400
349
  categoryData: {
401
350
  [x: string]: {
402
351
  id: string;
@@ -413,7 +362,6 @@ declare const _default: {
413
362
  };
414
363
  mapLoaded: boolean;
415
364
  query: string;
416
- selectedSubcategories: any;
417
365
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
418
366
  $slots: {
419
367
  'vs-map-sidebar-search-results'?: (props: {}) => any;
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=`<svg width="36" height="41" viewBox="0 0 36 41" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M18 1C27.3888 1 35 8.61116 35 18C35 21.2018 34.304 23.8695 32.7432 26.4014C31.2002 28.9041 28.844 31.2202 25.6221 33.7822L25.6025 33.7988L25.5811 33.8135L18 39.2285L10.4189 33.8135L10.3975 33.7988L10.3779 33.7822C7.15645 31.2202 4.79987 28.9041 3.25684 26.4014C1.69596 23.8696 1 21.2017 1 18C1 8.61116 8.61116 1 18 1Z" fill="currentColor" stroke="white" stroke-width="2"/>\r
3
+ </svg>\r
4
+ `;exports.default=t;
@@ -0,0 +1,7 @@
1
+ const t = `<svg width="36" height="41" viewBox="0 0 36 41" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M18 1C27.3888 1 35 8.61116 35 18C35 21.2018 34.304 23.8695 32.7432 26.4014C31.2002 28.9041 28.844 31.2202 25.6221 33.7822L25.6025 33.7988L25.5811 33.8135L18 39.2285L10.4189 33.8135L10.3975 33.7988L10.3779 33.7822C7.15645 31.2202 4.79987 28.9041 3.25684 26.4014C1.69596 23.8696 1 21.2017 1 18C1 8.61116 8.61116 1 18 1Z" fill="currentColor" stroke="white" stroke-width="2"/>\r
3
+ </svg>\r
4
+ `;
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This is the store for the VsGoogleMap component.
3
+ */
4
+ declare const useGoogleBaseMapStore: import('pinia').StoreDefinition<"googleBaseMap", Pick<{
5
+ setActiveMarker: (markerID: string) => void;
6
+ removeActiveMarker: (markerID: string) => void;
7
+ activeMarkers: import('vue').Ref<string[], string[]>;
8
+ markers: import('vue').Ref<object[], object[]>;
9
+ markerHovered: import('vue').Ref<string, string>;
10
+ isPolygonTooltipOpen: import('vue').Ref<boolean, boolean>;
11
+ }, "activeMarkers" | "markers" | "markerHovered" | "isPolygonTooltipOpen">, Pick<{
12
+ setActiveMarker: (markerID: string) => void;
13
+ removeActiveMarker: (markerID: string) => void;
14
+ activeMarkers: import('vue').Ref<string[], string[]>;
15
+ markers: import('vue').Ref<object[], object[]>;
16
+ markerHovered: import('vue').Ref<string, string>;
17
+ isPolygonTooltipOpen: import('vue').Ref<boolean, boolean>;
18
+ }, never>, Pick<{
19
+ setActiveMarker: (markerID: string) => void;
20
+ removeActiveMarker: (markerID: string) => void;
21
+ activeMarkers: import('vue').Ref<string[], string[]>;
22
+ markers: import('vue').Ref<object[], object[]>;
23
+ markerHovered: import('vue').Ref<string, string>;
24
+ isPolygonTooltipOpen: import('vue').Ref<boolean, boolean>;
25
+ }, "setActiveMarker" | "removeActiveMarker">>;
26
+ export default useGoogleBaseMapStore;
@@ -8,7 +8,9 @@ declare const useGoogleMapStore: import('pinia').StoreDefinition<"googleMap", Pi
8
8
  showDestinations: import('vue').Ref<boolean, boolean>;
9
9
  showCategories: import('vue').Ref<boolean, boolean>;
10
10
  selectedDestinationType: import('vue').Ref<string, string>;
11
- }, "searchTerm" | "sidebarOpen" | "timeMounted" | "firstInteraction" | "searchesCount" | "filterUsesCount" | "showDestinations" | "showCategories" | "selectedDestinationType">, Pick<{
11
+ categoryLabelData: import('vue').Ref<any, any>;
12
+ categoryData: import('vue').Ref<any, any>;
13
+ }, "searchTerm" | "sidebarOpen" | "timeMounted" | "firstInteraction" | "searchesCount" | "filterUsesCount" | "showDestinations" | "showCategories" | "selectedDestinationType" | "categoryLabelData" | "categoryData">, Pick<{
12
14
  sidebarOpen: import('vue').Ref<boolean, boolean>;
13
15
  timeMounted: import('vue').Ref<number, number>;
14
16
  firstInteraction: import('vue').Ref<boolean, boolean>;
@@ -18,6 +20,8 @@ declare const useGoogleMapStore: import('pinia').StoreDefinition<"googleMap", Pi
18
20
  showDestinations: import('vue').Ref<boolean, boolean>;
19
21
  showCategories: import('vue').Ref<boolean, boolean>;
20
22
  selectedDestinationType: import('vue').Ref<string, string>;
23
+ categoryLabelData: import('vue').Ref<any, any>;
24
+ categoryData: import('vue').Ref<any, any>;
21
25
  }, never>, Pick<{
22
26
  sidebarOpen: import('vue').Ref<boolean, boolean>;
23
27
  timeMounted: import('vue').Ref<number, number>;
@@ -28,5 +32,7 @@ declare const useGoogleMapStore: import('pinia').StoreDefinition<"googleMap", Pi
28
32
  showDestinations: import('vue').Ref<boolean, boolean>;
29
33
  showCategories: import('vue').Ref<boolean, boolean>;
30
34
  selectedDestinationType: import('vue').Ref<string, string>;
35
+ categoryLabelData: import('vue').Ref<any, any>;
36
+ categoryData: import('vue').Ref<any, any>;
31
37
  }, never>>;
32
38
  export default useGoogleMapStore;
@@ -28,7 +28,7 @@ declare const useMapStore: import('pinia').StoreDefinition<"map", Pick<{
28
28
  getMapById: (id: string) => MapInstance;
29
29
  getHoveredStop: (mapId: string) => string;
30
30
  getActivePlace: (mapId: string) => unknown;
31
- }, "selectedSubCategory" | "maps" | "activeSubcatFilters" | "activeMarkerPos" | "activePlace">, Pick<{
31
+ }, "maps" | "selectedSubCategory" | "activeSubcatFilters" | "activeMarkerPos" | "activePlace">, Pick<{
32
32
  maps: Ref<MapInstance[], MapInstance[]>;
33
33
  activeSubcatFilters: Ref<unknown[], unknown[]>;
34
34
  selectedSubCategory: Ref<unknown, unknown>;
@@ -0,0 +1,56 @@
1
+ declare const useMapCategoryStore: import('pinia').StoreDefinition<"mapCategoryStore", Pick<{
2
+ clearSubcategories: () => void;
3
+ getSubcategoryLabel: (subcategoryId: string) => any;
4
+ selectedCategory: import('vue').Ref<string, string>;
5
+ selectedCategoryLabel: import('vue').ComputedRef<any>;
6
+ selectedCategoryTypes: import('vue').ComputedRef<{
7
+ included: Set<any>;
8
+ excluded: Set<any>;
9
+ }>;
10
+ selectedSubcategories: import('vue').Ref<string[], string[]>;
11
+ selectedSubcategoryLabels: import('vue').ComputedRef<string>;
12
+ selectedSubcategoryTypes: import('vue').ComputedRef<{
13
+ included: Set<unknown>;
14
+ excluded: Set<unknown>;
15
+ }>;
16
+ selfCateringClicked: import('vue').Ref<boolean, boolean>;
17
+ subcategoryMap: import('vue').Ref<any, any>;
18
+ toggleSubcategory: (id: string) => void;
19
+ }, "selectedCategory" | "selectedSubcategories" | "selfCateringClicked" | "subcategoryMap">, Pick<{
20
+ clearSubcategories: () => void;
21
+ getSubcategoryLabel: (subcategoryId: string) => any;
22
+ selectedCategory: import('vue').Ref<string, string>;
23
+ selectedCategoryLabel: import('vue').ComputedRef<any>;
24
+ selectedCategoryTypes: import('vue').ComputedRef<{
25
+ included: Set<any>;
26
+ excluded: Set<any>;
27
+ }>;
28
+ selectedSubcategories: import('vue').Ref<string[], string[]>;
29
+ selectedSubcategoryLabels: import('vue').ComputedRef<string>;
30
+ selectedSubcategoryTypes: import('vue').ComputedRef<{
31
+ included: Set<unknown>;
32
+ excluded: Set<unknown>;
33
+ }>;
34
+ selfCateringClicked: import('vue').Ref<boolean, boolean>;
35
+ subcategoryMap: import('vue').Ref<any, any>;
36
+ toggleSubcategory: (id: string) => void;
37
+ }, "selectedCategoryLabel" | "selectedCategoryTypes" | "selectedSubcategoryLabels" | "selectedSubcategoryTypes">, Pick<{
38
+ clearSubcategories: () => void;
39
+ getSubcategoryLabel: (subcategoryId: string) => any;
40
+ selectedCategory: import('vue').Ref<string, string>;
41
+ selectedCategoryLabel: import('vue').ComputedRef<any>;
42
+ selectedCategoryTypes: import('vue').ComputedRef<{
43
+ included: Set<any>;
44
+ excluded: Set<any>;
45
+ }>;
46
+ selectedSubcategories: import('vue').Ref<string[], string[]>;
47
+ selectedSubcategoryLabels: import('vue').ComputedRef<string>;
48
+ selectedSubcategoryTypes: import('vue').ComputedRef<{
49
+ included: Set<unknown>;
50
+ excluded: Set<unknown>;
51
+ }>;
52
+ selfCateringClicked: import('vue').Ref<boolean, boolean>;
53
+ subcategoryMap: import('vue').Ref<any, any>;
54
+ toggleSubcategory: (id: string) => void;
55
+ }, "clearSubcategories" | "getSubcategoryLabel" | "toggleSubcategory">>;
56
+ export default useMapCategoryStore;