@visitscotland/component-library 3.0.2 → 3.0.4

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 (73) hide show
  1. package/CHANGELOG.md +30 -7
  2. package/dist/client/fonts/custom-icons.ttf +0 -0
  3. package/dist/client/fonts/custom-icons.woff2 +0 -0
  4. package/dist/client/fonts/fa-brands-400.ttf +0 -0
  5. package/dist/client/fonts/fa-brands-400.woff2 +0 -0
  6. package/dist/client/fonts/fa-duotone-900.ttf +0 -0
  7. package/dist/client/fonts/fa-duotone-900.woff2 +0 -0
  8. package/dist/client/manifest.json +51 -54
  9. package/dist/client/scripts/54bee03d4647544c11f5.js +1 -0
  10. package/dist/client/scripts/{ce3e6734cb84e74451cd.js → 6207179e793d6e2f8d9e.js} +1 -1
  11. package/dist/client/scripts/6b53edbec946bee62d26.js +1 -0
  12. package/dist/client/scripts/{31f9d972fa4753eaee60.js → 8e0a1eb35d5006bcaf29.js} +1 -1
  13. package/dist/client/scripts/8e3fa387146c24502ada.js +1 -0
  14. package/dist/client/scripts/{83e6099b792b76d2ee7f.js → 9101e0f2b766ea15df2e.js} +1 -1
  15. package/dist/client/scripts/{b6a50a2b854d09970111.js → bef607c592b6cb0a9124.js} +1 -1
  16. package/dist/client/scripts/{1ce57deef9f60d08e168.js → dbefa7802bf2a65b8a37.js} +1 -1
  17. package/dist/client/scripts/{8751d1ac21308fc7e78b.js → ee1669cbdcce1bd4b354.js} +1 -1
  18. package/dist/client/scripts/{43310958bc4363082dd8.js → f35abe8b7b5ef124937e.js} +1 -1
  19. package/dist/client/scripts/{8fc24289899913dd4b9c.js → fea0e33760eef6a2afcc.js} +1 -1
  20. package/dist/client/styles/4b4417e0ec7c6d38af51.css +18 -0
  21. package/dist/client/styles/{c01ba1121e07f8275c28.css → 54bee03d4647544c11f5.css} +1 -1
  22. package/dist/client/styles/{ce3e6734cb84e74451cd.css → 6207179e793d6e2f8d9e.css} +1 -1
  23. package/dist/client/styles/{f304d9429842a3472c24.css → 8e3fa387146c24502ada.css} +1 -1
  24. package/dist/client/styles/{7f0830b7d5e434d7a977.css → a4bf5693a18f72023719.css} +1 -1
  25. package/dist/client/styles/{1ce57deef9f60d08e168.css → dbefa7802bf2a65b8a37.css} +1 -1
  26. package/dist/client/styles/{70ed495c15ada9f41f04.css → ec0a9a2c688a656c0695.css} +1 -1
  27. package/dist/client/styles/third-party/_cludo-search-results.css +1 -1
  28. package/dist/client/styles/third-party/_font-awesome.css +12 -12
  29. package/dist/components/components/form/Form.vue.d.ts +1 -0
  30. package/dist/components/icons.css +4 -8
  31. package/dist/components/vs-component-library.css +1 -1
  32. package/dist/components/vs-component-library.js +205 -170
  33. package/dist/components/vs-component-library.mjs +15301 -8009
  34. package/dist/ssr/fonts/custom-icons.ttf +0 -0
  35. package/dist/ssr/fonts/custom-icons.woff2 +0 -0
  36. package/dist/ssr/fonts/fa-brands-400.ttf +0 -0
  37. package/dist/ssr/fonts/fa-brands-400.woff2 +0 -0
  38. package/dist/ssr/fonts/fa-duotone-900.ttf +0 -0
  39. package/dist/ssr/fonts/fa-duotone-900.woff2 +0 -0
  40. package/dist/ssr/index.js +1 -1
  41. package/dist/ssr/manifest.json +1 -1
  42. package/dist/ssr/styles/8df2da33c2482bedd1e8.css +164 -0
  43. package/package.json +1 -2
  44. package/dist/client/scripts/5d2e8fcc89de9881e3f0.js +0 -1
  45. package/dist/client/scripts/86ef112affb6b291623a.js +0 -1
  46. package/dist/client/scripts/c01ba1121e07f8275c28.js +0 -1
  47. package/dist/client/scripts/f304d9429842a3472c24.js +0 -1
  48. package/dist/client/styles/a78ff92ceead2d31f3a9.css +0 -18
  49. package/dist/components/components/map/Map.vue.d.ts +0 -370
  50. package/dist/components/components/map/components/MapMarker.vue.d.ts +0 -87
  51. package/dist/components/components/map-marker-icon/MapMarkerIcon.vue.d.ts +0 -50
  52. package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +0 -366
  53. package/dist/components/components/map-with-sidebar/components/MapWithSidebarButtons.vue.d.ts +0 -39
  54. package/dist/components/components/map-with-sidebar/components/MapWithSidebarCategory.vue.d.ts +0 -57
  55. package/dist/components/components/map-with-sidebar/components/MapWithSidebarControls.vue.d.ts +0 -16
  56. package/dist/components/components/map-with-sidebar/components/MapWithSidebarDetail.vue.d.ts +0 -36
  57. package/dist/components/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +0 -65
  58. package/dist/components/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +0 -274
  59. package/dist/components/components/map-with-sidebar/components/MapWithSidebarSubcategory.vue.d.ts +0 -35
  60. package/dist/components/maps.css +0 -1
  61. package/dist/components/maps.js +0 -508
  62. package/dist/components/maps.mjs +0 -20815
  63. package/dist/components/v4-Dx4zqkIC.mjs +0 -7197
  64. package/dist/components/v4-tWlzORDj.js +0 -36
  65. package/dist/components/v4.css +0 -1
  66. package/dist/ssr/styles/2eb2ef074b456be4560b.css +0 -164
  67. /package/dist/client/scripts/{a78ff92ceead2d31f3a9.js → 4b4417e0ec7c6d38af51.js} +0 -0
  68. /package/dist/client/scripts/{7f0830b7d5e434d7a977.js → a4bf5693a18f72023719.js} +0 -0
  69. /package/dist/client/scripts/{70ed495c15ada9f41f04.js → ec0a9a2c688a656c0695.js} +0 -0
  70. /package/dist/client/styles/{5d2e8fcc89de9881e3f0.css → 6b53edbec946bee62d26.css} +0 -0
  71. /package/dist/client/styles/{31f9d972fa4753eaee60.css → 8e0a1eb35d5006bcaf29.css} +0 -0
  72. /package/dist/client/styles/{8751d1ac21308fc7e78b.css → ee1669cbdcce1bd4b354.css} +0 -0
  73. /package/dist/client/styles/{8fc24289899913dd4b9c.css → fea0e33760eef6a2afcc.css} +0 -0
@@ -1,366 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- /**
3
- * Heading for the categories view
4
- */
5
- categoryHeading: {
6
- type: StringConstructor;
7
- default: string;
8
- };
9
- /**
10
- * Filter categories
11
- */
12
- filters: {
13
- type: ArrayConstructor;
14
- required: true;
15
- };
16
- /**
17
- * Data for individual places
18
- */
19
- placesData: {
20
- type: ArrayConstructor;
21
- required: true;
22
- };
23
- /**
24
- * Unique ID for the map - used to
25
- * differentiate between multiple map
26
- * instances in the Pinia store
27
- */
28
- mapId: {
29
- type: StringConstructor;
30
- required: true;
31
- };
32
- /**
33
- * Level of the heading to be used in the
34
- * panel (to allow main heading in section)
35
- */
36
- mainHeadingExists: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- /**
41
- * The ID of the currently selected item
42
- */
43
- initialSelected: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- /**
48
- * Data for the toggle buttons
49
- */
50
- toggleData: {
51
- type: ArrayConstructor;
52
- default: () => any[];
53
- };
54
- /**
55
- * Data for the toggle buttons
56
- */
57
- buttonsLabel: {
58
- type: StringConstructor;
59
- default: string;
60
- };
61
- /**
62
- * Text for the 'clear selection' button
63
- */
64
- clearSelectionText: {
65
- type: StringConstructor;
66
- required: true;
67
- };
68
- /**
69
- * Text for the 'apply filters' button
70
- */
71
- applyFiltersText: {
72
- type: StringConstructor;
73
- required: true;
74
- };
75
- /**
76
- * Endpoint for getting place details
77
- */
78
- detailsEndpoint: {
79
- type: StringConstructor;
80
- default: string;
81
- };
82
- /**
83
- * Bounds if map needs to show a specific area
84
- */
85
- regionBounds: {
86
- type: ObjectConstructor;
87
- default: () => void;
88
- };
89
- /**
90
- * Text for clearing filters - to be passed
91
- * to buttons component
92
- */
93
- clearFiltersText: {
94
- type: StringConstructor;
95
- required: true;
96
- };
97
- /**
98
- * Text for applied filters - to be passed
99
- * to buttons component
100
- */
101
- filtersAppliedText: {
102
- type: StringConstructor;
103
- required: true;
104
- };
105
- /**
106
- * ID for map's place
107
- */
108
- placeId: {
109
- type: StringConstructor;
110
- default: any;
111
- };
112
- /**
113
- * Text to show on map propmpting user to filter results
114
- */
115
- mapFilterMessage: {
116
- type: StringConstructor;
117
- required: true;
118
- };
119
- /**
120
- * Text to show on map when there are no results
121
- */
122
- mapNoResultsMessage: {
123
- type: StringConstructor;
124
- required: true;
125
- };
126
- /**
127
- * A message that appears at the bottom
128
- * of the side panel
129
- */
130
- panelMessage: {
131
- type: StringConstructor;
132
- default: any;
133
- };
134
- }, any, {
135
- panelVisible: boolean;
136
- selectedCategory: string;
137
- filterCategories: unknown[];
138
- selectedItem: any;
139
- activePins: unknown[];
140
- currentlyHovered: string;
141
- showRegions: boolean;
142
- regions: any[];
143
- subCatList: any;
144
- selectedToggle: string;
145
- currentEndpointData: any[];
146
- mapStatus: string;
147
- panelStatus: string;
148
- mapReady: boolean;
149
- showPanelMessage: any;
150
- currentPanelEndpointFilters: string;
151
- totalEndpointPins: number;
152
- focussedListItem: number;
153
- resetZoom: boolean;
154
- currentStage: number;
155
- selectedSubCategory: any;
156
- }, {
157
- infoMessage(): string;
158
- subCatActiveFilters: () => any;
159
- mapDisplayClass(): "" | "d-none d-lg-block";
160
- panelDisplayClass(): "" | "d-none d-lg-block";
161
- regionsData(): any;
162
- }, {
163
- openMenu(): void;
164
- /**
165
- * Close the side panel
166
- */
167
- closePanel(): void;
168
- /**
169
- * Open the side panel
170
- */
171
- openPanel(): void;
172
- /**
173
- * Show an item's details
174
- */
175
- showDetail(feature: any): void;
176
- /**
177
- * Sets the currently chosen category
178
- */
179
- setCategory(cat: any): void;
180
- /**
181
- * Sets a subcategory
182
- */
183
- setSubCategory(subcat: any): void;
184
- /**
185
- * Filters subcategories
186
- */
187
- filterSubCategories(filters: any): void;
188
- /**
189
- * Makes a call to the API to get marker data for
190
- * the current subcategory
191
- */
192
- getSubcatMarkerData(endpointFilters: any): void;
193
- /**
194
- * Makes a call to the endpoint in the subcategory data which
195
- * provides a random 24 items for the side panel
196
- */
197
- getSubcatPanelData(endpointFilters: any, page: any): void;
198
- /**
199
- * Sets the current stage
200
- */
201
- setStage(num: any): void;
202
- /**
203
- * Updates active pins for map
204
- */
205
- filterPlaces(id: any): void;
206
- /**
207
- * Load more places from endpoint
208
- */
209
- loadMorePlaces(page: any): void;
210
- /**
211
- * Show all pins, remove regions
212
- */
213
- showAllPlaces(): void;
214
- /**
215
- * When toggle is changed, set appropriate category
216
- */
217
- onToggleChanged(category: any): void;
218
- /**
219
- * Set whether or not map is ready to use
220
- */
221
- setMapReady(val: any): void;
222
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
223
- /**
224
- * Heading for the categories view
225
- */
226
- categoryHeading: {
227
- type: StringConstructor;
228
- default: string;
229
- };
230
- /**
231
- * Filter categories
232
- */
233
- filters: {
234
- type: ArrayConstructor;
235
- required: true;
236
- };
237
- /**
238
- * Data for individual places
239
- */
240
- placesData: {
241
- type: ArrayConstructor;
242
- required: true;
243
- };
244
- /**
245
- * Unique ID for the map - used to
246
- * differentiate between multiple map
247
- * instances in the Pinia store
248
- */
249
- mapId: {
250
- type: StringConstructor;
251
- required: true;
252
- };
253
- /**
254
- * Level of the heading to be used in the
255
- * panel (to allow main heading in section)
256
- */
257
- mainHeadingExists: {
258
- type: BooleanConstructor;
259
- default: boolean;
260
- };
261
- /**
262
- * The ID of the currently selected item
263
- */
264
- initialSelected: {
265
- type: StringConstructor;
266
- default: string;
267
- };
268
- /**
269
- * Data for the toggle buttons
270
- */
271
- toggleData: {
272
- type: ArrayConstructor;
273
- default: () => any[];
274
- };
275
- /**
276
- * Data for the toggle buttons
277
- */
278
- buttonsLabel: {
279
- type: StringConstructor;
280
- default: string;
281
- };
282
- /**
283
- * Text for the 'clear selection' button
284
- */
285
- clearSelectionText: {
286
- type: StringConstructor;
287
- required: true;
288
- };
289
- /**
290
- * Text for the 'apply filters' button
291
- */
292
- applyFiltersText: {
293
- type: StringConstructor;
294
- required: true;
295
- };
296
- /**
297
- * Endpoint for getting place details
298
- */
299
- detailsEndpoint: {
300
- type: StringConstructor;
301
- default: string;
302
- };
303
- /**
304
- * Bounds if map needs to show a specific area
305
- */
306
- regionBounds: {
307
- type: ObjectConstructor;
308
- default: () => void;
309
- };
310
- /**
311
- * Text for clearing filters - to be passed
312
- * to buttons component
313
- */
314
- clearFiltersText: {
315
- type: StringConstructor;
316
- required: true;
317
- };
318
- /**
319
- * Text for applied filters - to be passed
320
- * to buttons component
321
- */
322
- filtersAppliedText: {
323
- type: StringConstructor;
324
- required: true;
325
- };
326
- /**
327
- * ID for map's place
328
- */
329
- placeId: {
330
- type: StringConstructor;
331
- default: any;
332
- };
333
- /**
334
- * Text to show on map propmpting user to filter results
335
- */
336
- mapFilterMessage: {
337
- type: StringConstructor;
338
- required: true;
339
- };
340
- /**
341
- * Text to show on map when there are no results
342
- */
343
- mapNoResultsMessage: {
344
- type: StringConstructor;
345
- required: true;
346
- };
347
- /**
348
- * A message that appears at the bottom
349
- * of the side panel
350
- */
351
- panelMessage: {
352
- type: StringConstructor;
353
- default: any;
354
- };
355
- }>>, {
356
- initialSelected: string;
357
- buttonsLabel: string;
358
- categoryHeading: string;
359
- panelMessage: string;
360
- mainHeadingExists: boolean;
361
- toggleData: unknown[];
362
- detailsEndpoint: string;
363
- regionBounds: Record<string, any>;
364
- placeId: string;
365
- }, {}>;
366
- export default _default;
@@ -1,39 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- /**
3
- * Data for component content
4
- */
5
- contentData: {
6
- type: ObjectConstructor;
7
- required: true;
8
- };
9
- /**
10
- * If content is filtered by subcategory
11
- */
12
- filterCount: {
13
- type: NumberConstructor;
14
- default: any;
15
- };
16
- }, any, any, {
17
- websiteDataExists(): boolean;
18
- }, {
19
- filtersClick(): void;
20
- clearFiltersClick(): void;
21
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
- /**
23
- * Data for component content
24
- */
25
- contentData: {
26
- type: ObjectConstructor;
27
- required: true;
28
- };
29
- /**
30
- * If content is filtered by subcategory
31
- */
32
- filterCount: {
33
- type: NumberConstructor;
34
- default: any;
35
- };
36
- }>>, {
37
- filterCount: number;
38
- }, {}>;
39
- export default _default;
@@ -1,57 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- /**
3
- * Name of category
4
- */
5
- categoryName: {
6
- type: StringConstructor;
7
- required: true;
8
- };
9
- /**
10
- * Category type - for use with markers
11
- * and data
12
- */
13
- type: {
14
- type: StringConstructor;
15
- required: true;
16
- };
17
- /**
18
- * If the category has a subcategory
19
- */
20
- hasSubCat: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- }, any, {
25
- isHovered: boolean;
26
- }, {}, {
27
- /**
28
- * Emits category type
29
- */
30
- selectCategory(type: any): void;
31
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
32
- /**
33
- * Name of category
34
- */
35
- categoryName: {
36
- type: StringConstructor;
37
- required: true;
38
- };
39
- /**
40
- * Category type - for use with markers
41
- * and data
42
- */
43
- type: {
44
- type: StringConstructor;
45
- required: true;
46
- };
47
- /**
48
- * If the category has a subcategory
49
- */
50
- hasSubCat: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
54
- }>>, {
55
- hasSubCat: boolean;
56
- }, {}>;
57
- export default _default;
@@ -1,16 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {
2
- isDisabled: boolean;
3
- }, {
4
- getSubcatFilters: () => any;
5
- }, {
6
- /**
7
- * Clears all selected checkboxes
8
- */
9
- clearSelection(): void;
10
- /**
11
- * Emits instuction to submit data
12
- */
13
- submitCheckboxes(): void;
14
- disableSubmitButton(): void;
15
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
16
- export default _default;
@@ -1,36 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- /**
3
- * Data for component content
4
- */
5
- contentData: {
6
- type: ObjectConstructor;
7
- required: true;
8
- };
9
- /**
10
- * Heading level - to allow sequential heading
11
- */
12
- headingLevel: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- }, any, any, {
17
- showTitle(): boolean;
18
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
- /**
20
- * Data for component content
21
- */
22
- contentData: {
23
- type: ObjectConstructor;
24
- required: true;
25
- };
26
- /**
27
- * Heading level - to allow sequential heading
28
- */
29
- headingLevel: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- }>>, {
34
- headingLevel: string;
35
- }, {}>;
36
- export default _default;
@@ -1,65 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- /**
3
- * Name of item
4
- */
5
- itemData: {
6
- type: ObjectConstructor;
7
- required: true;
8
- };
9
- /** If the data source is from an API endpoint */
10
- fromEndpoint: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- /**
15
- * If the component should be focussed on mount
16
- */
17
- focussed: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- }, any, {
22
- formattedData: {};
23
- }, {
24
- highlightedPlace: () => any;
25
- isActive(): boolean;
26
- }, {
27
- /**
28
- * Emits an event with the ID of the chosen
29
- * item as the payload
30
- */
31
- showItemDetail(feature: any): void;
32
- /**
33
- * Emits an event with the ID of the chosen
34
- * item on hover
35
- */
36
- itemHover(feature: any): void;
37
- /**
38
- * Formats API data to match internal data
39
- */
40
- formatApiData(): void;
41
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
- /**
43
- * Name of item
44
- */
45
- itemData: {
46
- type: ObjectConstructor;
47
- required: true;
48
- };
49
- /** If the data source is from an API endpoint */
50
- fromEndpoint: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
54
- /**
55
- * If the component should be focussed on mount
56
- */
57
- focussed: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- }>>, {
62
- fromEndpoint: boolean;
63
- focussed: boolean;
64
- }, {}>;
65
- export default _default;