@visitscotland/component-library 5.18.2 → 5.19.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 (58) hide show
  1. package/dist/client/manifest.json +524 -97
  2. package/dist/client/scripts/{7623efe03b36f0ed4aed.js → 0887a6325eaa6c7fb1df.js} +1 -1
  3. package/dist/client/scripts/{afa7ad170a682bb30360.js → 0b79aed9c15439a99c5d.js} +1 -1
  4. package/dist/client/scripts/{361d750feef900d25cdd.js → 103cbd6c19dc19f4560d.js} +1 -1
  5. package/dist/client/scripts/1714d8bdf57ec37c7f7f.js +1 -0
  6. package/dist/client/scripts/{da9a5bb3a2c3ccd9b8c3.js → 2037ef46a5d25a2c0e6a.js} +1 -1
  7. package/dist/client/scripts/{e57ddd22b702da0b3e55.js → 374fbb8f39b0672b5a85.js} +1 -1
  8. package/dist/client/scripts/{3997e6bfb2077648fae3.js → 4089fbd8d035100ba7f5.js} +1 -1
  9. package/dist/client/scripts/{7e8d4a053626ca22af6b.js → 55002287d1b2302c7493.js} +1 -1
  10. package/dist/client/scripts/{41046f754522e73a8099.js → 5679716ad3929dc02e9b.js} +1 -1
  11. package/dist/client/scripts/57614c88f07f20a282b2.js +1 -0
  12. package/dist/client/scripts/59a76a459d32044ea545.js +1 -0
  13. package/dist/client/scripts/{4a232a5e9d26dde19f52.js → 5d524bc7f9489178b799.js} +1 -1
  14. package/dist/client/scripts/6e70f15e6d2bdbf34199.js +1 -0
  15. package/dist/client/scripts/{8acff47d593d27c139c5.js → 7f373c2c5b73adedf67b.js} +1 -1
  16. package/dist/client/scripts/{e3b6adc8ebe038bb8333.js → 89f02ff9d47a9e976bed.js} +1 -1
  17. package/dist/client/scripts/{18b7751ab328bbd3a091.js → 8c58cc191b05c2f558ac.js} +1 -1
  18. package/dist/client/scripts/933d633cb47a3304650c.js +1 -0
  19. package/dist/client/scripts/{bd4479c83bbb35a9350e.js → 9d925f6e0be9438d2e5c.js} +1 -1
  20. package/dist/client/scripts/af30ee7015b50e68973b.js +1 -0
  21. package/dist/client/scripts/af98b51a0b9e42f3e4b8.js +1 -0
  22. package/dist/client/scripts/b6f16cd8761cdc55f8c7.js +1 -0
  23. package/dist/client/scripts/{6afbf17da2ea8f279e92.js → b8242eaf85c9b74fa30e.js} +1 -1
  24. package/dist/client/scripts/{78b5052753a730211f39.js → c095fb3ef021232748ed.js} +1 -1
  25. package/dist/client/scripts/{e4b9034e8128914fbb28.js → cf83a12e3febb62030a6.js} +1 -1
  26. package/dist/client/scripts/{e49860772dfd117731dc.js → dba10c026b8321623d2e.js} +1 -1
  27. package/dist/client/scripts/{967b8f5dde3c44052690.js → e2eefa435e886ed26ae1.js} +1 -1
  28. package/dist/client/scripts/e550d1701ff3985309fc.js +1 -0
  29. package/dist/client/scripts/ebde9babb291ce858d18.js +1 -0
  30. package/dist/client/scripts/{d7b6acd233114c0dc290.js → f1ee7dc40b24ea9dbee7.js} +1 -1
  31. package/dist/client/styles/b6f16cd8761cdc55f8c7.css +1 -0
  32. package/dist/client/styles/e550d1701ff3985309fc.css +1 -0
  33. package/dist/components/src/components/mega-nav/MegaNav.vue.d.ts +26 -0
  34. package/dist/components/src/custom-components/index.d.ts +1 -0
  35. package/dist/components/src/custom-components/maps/MainMap.vue.d.ts +29 -0
  36. package/dist/components/src/custom-components/maps/components/MapSidebar.vue.d.ts +129 -0
  37. package/dist/components/src/custom-components/maps/components/__tests__/MapSidebar.jest.spec.d.ts +1 -0
  38. package/dist/components/src/custom-components/maps/composables/verifyCookiesComposable.d.ts +8 -0
  39. package/dist/components/src/custom-components/maps/index.d.ts +220 -0
  40. package/dist/components/src/stores/mainMap.store.d.ts +8 -0
  41. package/dist/components/src/types/types.d.ts +4 -0
  42. package/dist/components/src/utils/required-cookies-data.d.ts +1 -0
  43. package/dist/components/style.css +1 -1
  44. package/dist/components/vs-component-library.js +90 -90
  45. package/dist/components/vs-component-library.mjs +5155 -4418
  46. package/dist/ssr/index.js +1 -1
  47. package/dist/ssr/manifest.json +1 -1
  48. package/dist/ssr/styles/{85bd3d3ef92b562409e6.css → 3e1d35bdf789dd396767.css} +2 -0
  49. package/package.json +7 -2
  50. package/dist/client/scripts/8465dc4025dd186c61c4.js +0 -1
  51. package/dist/client/scripts/c414a72f533223c0e349.js +0 -1
  52. package/dist/client/scripts/c4b3ea690e53673d1f42.js +0 -1
  53. package/dist/client/scripts/cca4a73561360df71bc6.js +0 -1
  54. package/dist/client/scripts/d96ecb4b54a9beae9d1a.js +0 -1
  55. /package/dist/client/styles/{cca4a73561360df71bc6.css → 1714d8bdf57ec37c7f7f.css} +0 -0
  56. /package/dist/client/styles/{d96ecb4b54a9beae9d1a.css → 57614c88f07f20a282b2.css} +0 -0
  57. /package/dist/client/styles/{e49860772dfd117731dc.css → dba10c026b8321623d2e.css} +0 -0
  58. /package/dist/client/styles/{8465dc4025dd186c61c4.css → ebde9babb291ce858d18.css} +0 -0
@@ -0,0 +1,129 @@
1
+ declare function __VLS_template(): {
2
+ "vs-map-sidebar-sub-filters"?(_: {}): any;
3
+ "vs-map-sidebar-search-results"?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ /** Text query from Map Search */
7
+ query: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ /** Selected Top Level Category */
12
+ selectedCategories: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ /** Label for the sidebar header */
17
+ headerLabel: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ /** Label for the close sidebar button */
22
+ closeSidebarButtonLabel: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ /** Label for the input placeholder text */
27
+ inputPlaceholderLabel: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ /** Label for the search button */
32
+ searchButtonLabel: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ /** Label for the clear map link */
37
+ clearMapLabel: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ subFilterHeaderLabel: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ /** Label for the search results text */
46
+ searchResultsLabel: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ /** Label for the open sidebar button */
51
+ openSidebarButtonLabel: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ "search-input-changed": (...args: any[]) => void;
57
+ "reset-map": (...args: any[]) => void;
58
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ /** Text query from Map Search */
60
+ query: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ /** Selected Top Level Category */
65
+ selectedCategories: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ /** Label for the sidebar header */
70
+ headerLabel: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ /** Label for the close sidebar button */
75
+ closeSidebarButtonLabel: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ /** Label for the input placeholder text */
80
+ inputPlaceholderLabel: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ /** Label for the search button */
85
+ searchButtonLabel: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ /** Label for the clear map link */
90
+ clearMapLabel: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ subFilterHeaderLabel: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ /** Label for the search results text */
99
+ searchResultsLabel: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ /** Label for the open sidebar button */
104
+ openSidebarButtonLabel: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ }>> & Readonly<{
109
+ "onSearch-input-changed"?: (...args: any[]) => any;
110
+ "onReset-map"?: (...args: any[]) => any;
111
+ }>, {
112
+ query: string;
113
+ selectedCategories: string;
114
+ headerLabel: string;
115
+ closeSidebarButtonLabel: string;
116
+ inputPlaceholderLabel: string;
117
+ searchButtonLabel: string;
118
+ clearMapLabel: string;
119
+ subFilterHeaderLabel: string;
120
+ searchResultsLabel: string;
121
+ openSidebarButtonLabel: string;
122
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
123
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
124
+ export default _default;
125
+ type __VLS_WithTemplateSlots<T, S> = T & {
126
+ new (): {
127
+ $slots: S;
128
+ };
129
+ };
@@ -0,0 +1,8 @@
1
+ export default cookieCheckerComposable;
2
+ declare function cookieCheckerComposable(): {
3
+ requiredCookies: import('vue').Ref<any[], any[]>;
4
+ cookiesAllowed: import('vue').ComputedRef<boolean>;
5
+ cookiesLoaded: import('vue').ComputedRef<true | {
6
+ cookieManagerLoaded: import('vue').Ref<boolean, boolean>;
7
+ }>;
8
+ };
@@ -0,0 +1,220 @@
1
+ declare const _default: {
2
+ VsMainMap: import('vue').DefineComponent<{}, {
3
+ center: Record<string, any>;
4
+ noJsMessage: string;
5
+ noCookiesMessage: string;
6
+ jsDisabled: boolean;
7
+ cookieBtnText: string;
8
+ labels: Record<string, any>;
9
+ zoom: number;
10
+ radius: number;
11
+ languageCode: string;
12
+ categoriesLocation: string;
13
+ categoryLabels: Record<string, any>;
14
+ apiKey?: string;
15
+ $props: {
16
+ readonly center?: Record<string, any>;
17
+ readonly noJsMessage?: string;
18
+ readonly noCookiesMessage?: string;
19
+ readonly jsDisabled?: boolean;
20
+ readonly cookieBtnText?: string;
21
+ readonly labels?: Record<string, any>;
22
+ readonly zoom?: number;
23
+ readonly radius?: number;
24
+ readonly languageCode?: string;
25
+ readonly categoriesLocation?: string;
26
+ readonly categoryLabels?: Record<string, any>;
27
+ readonly apiKey?: string;
28
+ };
29
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ VsMapSidebar: {
31
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
32
+ query: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ selectedCategories: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ headerLabel: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ closeSidebarButtonLabel: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ inputPlaceholderLabel: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ searchButtonLabel: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ clearMapLabel: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ subFilterHeaderLabel: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ searchResultsLabel: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ openSidebarButtonLabel: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ }>> & Readonly<{
73
+ "onSearch-input-changed"?: (...args: any[]) => any;
74
+ "onReset-map"?: (...args: any[]) => any;
75
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
+ "search-input-changed": (...args: any[]) => void;
77
+ "reset-map": (...args: any[]) => void;
78
+ }, import('vue').PublicProps, {
79
+ query: string;
80
+ selectedCategories: string;
81
+ headerLabel: string;
82
+ closeSidebarButtonLabel: string;
83
+ inputPlaceholderLabel: string;
84
+ searchButtonLabel: string;
85
+ clearMapLabel: string;
86
+ subFilterHeaderLabel: string;
87
+ searchResultsLabel: string;
88
+ openSidebarButtonLabel: string;
89
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
90
+ P: {};
91
+ B: {};
92
+ D: {};
93
+ C: {};
94
+ M: {};
95
+ Defaults: {};
96
+ }, Readonly<import('vue').ExtractPropTypes<{
97
+ query: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ selectedCategories: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ headerLabel: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ closeSidebarButtonLabel: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ inputPlaceholderLabel: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ searchButtonLabel: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ clearMapLabel: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ subFilterHeaderLabel: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ searchResultsLabel: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ openSidebarButtonLabel: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ }>> & Readonly<{
138
+ "onSearch-input-changed"?: (...args: any[]) => any;
139
+ "onReset-map"?: (...args: any[]) => any;
140
+ }>, {}, {}, {}, {}, {
141
+ query: string;
142
+ selectedCategories: string;
143
+ headerLabel: string;
144
+ closeSidebarButtonLabel: string;
145
+ inputPlaceholderLabel: string;
146
+ searchButtonLabel: string;
147
+ clearMapLabel: string;
148
+ subFilterHeaderLabel: string;
149
+ searchResultsLabel: string;
150
+ openSidebarButtonLabel: string;
151
+ }>;
152
+ __isFragment?: never;
153
+ __isTeleport?: never;
154
+ __isSuspense?: never;
155
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
156
+ query: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ selectedCategories: {
161
+ type: StringConstructor;
162
+ default: string;
163
+ };
164
+ headerLabel: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
168
+ closeSidebarButtonLabel: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ inputPlaceholderLabel: {
173
+ type: StringConstructor;
174
+ default: string;
175
+ };
176
+ searchButtonLabel: {
177
+ type: StringConstructor;
178
+ default: string;
179
+ };
180
+ clearMapLabel: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ subFilterHeaderLabel: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ };
188
+ searchResultsLabel: {
189
+ type: StringConstructor;
190
+ default: string;
191
+ };
192
+ openSidebarButtonLabel: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ }>> & Readonly<{
197
+ "onSearch-input-changed"?: (...args: any[]) => any;
198
+ "onReset-map"?: (...args: any[]) => any;
199
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
200
+ "search-input-changed": (...args: any[]) => void;
201
+ "reset-map": (...args: any[]) => void;
202
+ }, string, {
203
+ query: string;
204
+ selectedCategories: string;
205
+ headerLabel: string;
206
+ closeSidebarButtonLabel: string;
207
+ inputPlaceholderLabel: string;
208
+ searchButtonLabel: string;
209
+ clearMapLabel: string;
210
+ subFilterHeaderLabel: string;
211
+ searchResultsLabel: string;
212
+ openSidebarButtonLabel: string;
213
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
214
+ $slots: {
215
+ "vs-map-sidebar-sub-filters"?(_: {}): any;
216
+ "vs-map-sidebar-search-results"?(_: {}): any;
217
+ };
218
+ });
219
+ };
220
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const useGoogleMapStore: import('pinia').StoreDefinition<"googleMap", Pick<{
2
+ sidebarOpen: import('vue').Ref<boolean, boolean>;
3
+ }, "sidebarOpen">, Pick<{
4
+ sidebarOpen: import('vue').Ref<boolean, boolean>;
5
+ }, never>, Pick<{
6
+ sidebarOpen: import('vue').Ref<boolean, boolean>;
7
+ }, never>>;
8
+ export default useGoogleMapStore;
@@ -44,3 +44,7 @@ export type FederatedSearchResult = {
44
44
  url: string;
45
45
  dataSrc: string;
46
46
  };
47
+ export type LatLngObject = {
48
+ lat: number;
49
+ lng: number;
50
+ };
@@ -6,4 +6,5 @@ export default cookieValues;
6
6
  declare namespace cookieValues {
7
7
  let youtube: 1[];
8
8
  let embed: (0 | 1)[];
9
+ let google_maps: (0 | 1)[];
9
10
  }