@visitscotland/component-library 4.11.0 → 4.11.1

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 (26) hide show
  1. package/CHANGELOG.md +44 -21
  2. package/dist/client/manifest.json +14 -14
  3. package/dist/client/scripts/35355c6e9b872753ee97.js +1 -0
  4. package/dist/client/scripts/52b8403c233554c471d6.js +1 -0
  5. package/dist/client/scripts/{23f1a8fabc84617d7929.js → 866c183151d202876582.js} +1 -1
  6. package/dist/client/scripts/df18b654ae827f1e3f2d.js +1 -0
  7. package/dist/client/styles/35355c6e9b872753ee97.css +1 -0
  8. package/dist/client/styles/52b8403c233554c471d6.css +1 -0
  9. package/dist/components/components/dropdown/Dropdown.vue.d.ts +19 -0
  10. package/dist/components/components/global-menu/GlobalMenu.vue.d.ts +11 -0
  11. package/dist/components/components/global-menu/components/GlobalMenuDropdown.vue.d.ts +11 -0
  12. package/dist/components/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +11 -0
  13. package/dist/components/vs-component-library.css +1 -1
  14. package/dist/components/vs-component-library.js +38 -38
  15. package/dist/components/vs-component-library.mjs +434 -417
  16. package/dist/ssr/index.js +1 -1
  17. package/dist/ssr/manifest.json +1 -1
  18. package/dist/ssr/styles/{c1dc069eed3cafab0cfe.css → a777793af6f1fc3ea4f1.css} +2 -2
  19. package/package.json +1 -1
  20. package/dist/client/scripts/26a6c1d32027d37b77b7.js +0 -1
  21. package/dist/client/scripts/986cefb939b3ab5e1003.js +0 -1
  22. package/dist/client/scripts/fb2bc8c33c76a3ef1da9.js +0 -1
  23. package/dist/client/styles/26a6c1d32027d37b77b7.css +0 -1
  24. package/dist/client/styles/fb2bc8c33c76a3ef1da9.css +0 -1
  25. /package/dist/client/styles/{23f1a8fabc84617d7929.css → 866c183151d202876582.css} +0 -0
  26. /package/dist/client/styles/{986cefb939b3ab5e1003.css → df18b654ae827f1e3f2d.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,41 +2,64 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [4.11.0](https://github.com/visitscotland/vs-component-library/compare/v4.10.3...v4.11.0) (2025-02-14)
5
+ ### [4.11.1](https://github.com/visitscotland/vs-component-library/compare/v4.11.0...v4.11.1) (2025-02-19)
6
6
 
7
7
 
8
- ### 📝 Docs
8
+ ### ♻️ Code Refactoring
9
9
 
10
- * **pagination:** update story to reflect component changes ([fb0ff83](https://github.com/visitscotland/vs-component-library/commit/fb0ff833840d193bb8221fcfaaa670751edf7f02))
10
+ * **eventcard:** fixed css spacing ([4c23aca](https://github.com/visitscotland/vs-component-library/commit/4c23acad34ab3aea8c5f4c1281a7c200b967f19a))
11
11
 
12
12
 
13
- ### 🎨 Styling
14
-
15
- * **pagination:** fix typos and remove commented out code ([2d83df1](https://github.com/visitscotland/vs-component-library/commit/2d83df115f3110775e81914ebd7c5a24892aa1f6))
16
-
17
-
18
- ### ✅ Tests
13
+ ### 🐛 Bug Fixes
19
14
 
20
- * **pagination:** add tests for logic displaying page numbers ([774508b](https://github.com/visitscotland/vs-component-library/commit/774508b734ab03c4a1b887a2ea4e0a36c9af533a))
21
- * **pagination:** add tests for previous and next buttons ([471ad44](https://github.com/visitscotland/vs-component-library/commit/471ad447e5a3fcca880dc24c64f3348d521f1f66))
22
- * **pagination:** add unit tests ([142b7a7](https://github.com/visitscotland/vs-component-library/commit/142b7a72a812073d7424a29b919737aa402b1bcc))
15
+ * **eventcard:** fixes cta button spacing on mobile ([3c47c86](https://github.com/visitscotland/vs-component-library/commit/3c47c86aaa467747023cb48dfc3388645d819240))
16
+ * **pagination:** enable two-way binding ([d454877](https://github.com/visitscotland/vs-component-library/commit/d45487799d923baff1a8882a6cb68f3f501bb80b))
23
17
 
24
18
 
25
19
  ### ✨ Features
26
20
 
27
- * **pagination:** add new component ([01582dd](https://github.com/visitscotland/vs-component-library/commit/01582dd00658424f2748ddb1e8d00f07998beded))
28
- * **pagination:** add styles and mobile version ([2cb36a9](https://github.com/visitscotland/vs-component-library/commit/2cb36a91eb799b36e9c600d1ef35c4ae8d2d8e48))
29
- * **pagination:** correct style issues ([43851ea](https://github.com/visitscotland/vs-component-library/commit/43851eafae048e31e052c42f8c53c1384f27d052))
30
- * **pagination:** rework component ([fa569e1](https://github.com/visitscotland/vs-component-library/commit/fa569e1f7415b47dd356773611807e8faeb23277))
31
- * **pagination:** update styling ([fabd7ef](https://github.com/visitscotland/vs-component-library/commit/fabd7ef0f7718c6f79aed932ca9f87d570fb6aa7))
32
- * **pagination:** use a function to set button classes ([f931e5d](https://github.com/visitscotland/vs-component-library/commit/f931e5d7da6c647cafebaa0ea43c76f9019b27d7))
21
+ * **dropdown:** add secondary colour variant ([f01b6f4](https://github.com/visitscotland/vs-component-library/commit/f01b6f428c32ca93c9c32d4ccc7d285624bd432b))
33
22
 
34
23
 
35
- ### 🐛 Bug Fixes
24
+ ### Tests
36
25
 
37
- * **pagination:** accessibility fixes ([1ce3584](https://github.com/visitscotland/vs-component-library/commit/1ce35846a32a4e59e7d268ae7970c7daaffb5d3b))
38
- * **storybook:** reset viewport when switching between stories ([b3121b9](https://github.com/visitscotland/vs-component-library/commit/b3121b92b9cb2838d82e3784b1a947205f1f759f))
26
+ * **dropdown:** add unit test ([332dadc](https://github.com/visitscotland/vs-component-library/commit/332dadc762dbde21918a25dd1fc15af8467d8f9a))
39
27
 
28
+ ## [4.11.0](https://github.com/visitscotland/vs-component-library/compare/v4.10.3...v4.11.0) (2025-02-14)
29
+
30
+
31
+ ### 📝 Docs
32
+
33
+ * **pagination:** update story to reflect component changes ([fb0ff83](https://github.com/visitscotland/vs-component-library/commit/fb0ff833840d193bb8221fcfaaa670751edf7f02))
34
+
35
+
36
+ ### 🎨 Styling
37
+
38
+ * **pagination:** fix typos and remove commented out code ([2d83df1](https://github.com/visitscotland/vs-component-library/commit/2d83df115f3110775e81914ebd7c5a24892aa1f6))
39
+
40
+
41
+ ### ✅ Tests
42
+
43
+ * **pagination:** add tests for logic displaying page numbers ([774508b](https://github.com/visitscotland/vs-component-library/commit/774508b734ab03c4a1b887a2ea4e0a36c9af533a))
44
+ * **pagination:** add tests for previous and next buttons ([471ad44](https://github.com/visitscotland/vs-component-library/commit/471ad447e5a3fcca880dc24c64f3348d521f1f66))
45
+ * **pagination:** add unit tests ([142b7a7](https://github.com/visitscotland/vs-component-library/commit/142b7a72a812073d7424a29b919737aa402b1bcc))
46
+
47
+
48
+ ### ✨ Features
49
+
50
+ * **pagination:** add new component ([01582dd](https://github.com/visitscotland/vs-component-library/commit/01582dd00658424f2748ddb1e8d00f07998beded))
51
+ * **pagination:** add styles and mobile version ([2cb36a9](https://github.com/visitscotland/vs-component-library/commit/2cb36a91eb799b36e9c600d1ef35c4ae8d2d8e48))
52
+ * **pagination:** correct style issues ([43851ea](https://github.com/visitscotland/vs-component-library/commit/43851eafae048e31e052c42f8c53c1384f27d052))
53
+ * **pagination:** rework component ([fa569e1](https://github.com/visitscotland/vs-component-library/commit/fa569e1f7415b47dd356773611807e8faeb23277))
54
+ * **pagination:** update styling ([fabd7ef](https://github.com/visitscotland/vs-component-library/commit/fabd7ef0f7718c6f79aed932ca9f87d570fb6aa7))
55
+ * **pagination:** use a function to set button classes ([f931e5d](https://github.com/visitscotland/vs-component-library/commit/f931e5d7da6c647cafebaa0ea43c76f9019b27d7))
56
+
57
+
58
+ ### 🐛 Bug Fixes
59
+
60
+ * **pagination:** accessibility fixes ([1ce3584](https://github.com/visitscotland/vs-component-library/commit/1ce35846a32a4e59e7d268ae7970c7daaffb5d3b))
61
+ * **storybook:** reset viewport when switching between stories ([b3121b9](https://github.com/visitscotland/vs-component-library/commit/b3121b92b9cb2838d82e3784b1a947205f1f759f))
62
+
40
63
  ### [4.10.3](https://github.com/visitscotland/vs-component-library/compare/v4.10.2...v4.10.3) (2025-02-14)
41
64
 
42
65
 
@@ -1716,11 +1716,11 @@
1716
1716
  "scripts/058e808444ac3d2e70b9.js",
1717
1717
  "scripts/0a8c20c638a406cef662.js",
1718
1718
  "scripts/2dd13e24d4d3ed916208.js",
1719
- "scripts/fb2bc8c33c76a3ef1da9.js",
1719
+ "scripts/35355c6e9b872753ee97.js",
1720
1720
  "scripts/f0f46d936d3dc6823080.js"
1721
1721
  ],
1722
1722
  "styles": [
1723
- "styles/fb2bc8c33c76a3ef1da9.css"
1723
+ "styles/35355c6e9b872753ee97.css"
1724
1724
  ]
1725
1725
  },
1726
1726
  "VsEmbedWrapper": {
@@ -1807,14 +1807,14 @@
1807
1807
  "scripts/e7fa1d8e023b92b57d09.js",
1808
1808
  "scripts/c597298482eca685444f.js",
1809
1809
  "scripts/24057be9ca44741f3c32.js",
1810
- "scripts/26a6c1d32027d37b77b7.js"
1810
+ "scripts/52b8403c233554c471d6.js"
1811
1811
  ],
1812
1812
  "styles": [
1813
1813
  "styles/e0c7a3100e78722074c8.css",
1814
1814
  "styles/0fca23adffd3007411e5.css",
1815
1815
  "styles/c597298482eca685444f.css",
1816
1816
  "styles/24057be9ca44741f3c32.css",
1817
- "styles/26a6c1d32027d37b77b7.css"
1817
+ "styles/52b8403c233554c471d6.css"
1818
1818
  ]
1819
1819
  },
1820
1820
  "VsFooterAccordionItem": {
@@ -2219,13 +2219,13 @@
2219
2219
  "scripts/058e808444ac3d2e70b9.js",
2220
2220
  "scripts/0a8c20c638a406cef662.js",
2221
2221
  "scripts/2dd13e24d4d3ed916208.js",
2222
- "scripts/fb2bc8c33c76a3ef1da9.js",
2222
+ "scripts/35355c6e9b872753ee97.js",
2223
2223
  "scripts/826a07f6aac6a2a9f30c.js",
2224
2224
  "scripts/bdb8dcae760a4d77d944.js",
2225
2225
  "scripts/e8c12fd53d33adbc7857.js"
2226
2226
  ],
2227
2227
  "styles": [
2228
- "styles/fb2bc8c33c76a3ef1da9.css",
2228
+ "styles/35355c6e9b872753ee97.css",
2229
2229
  "styles/bdb8dcae760a4d77d944.css"
2230
2230
  ]
2231
2231
  },
@@ -2256,13 +2256,13 @@
2256
2256
  "scripts/8c97637a75e92aa31254.js",
2257
2257
  "scripts/2dd13e24d4d3ed916208.js",
2258
2258
  "scripts/e0c7a3100e78722074c8.js",
2259
- "scripts/fb2bc8c33c76a3ef1da9.js",
2259
+ "scripts/35355c6e9b872753ee97.js",
2260
2260
  "scripts/16ca9b41241b28379196.js",
2261
2261
  "scripts/2d5c9138ae0e9cddb922.js"
2262
2262
  ],
2263
2263
  "styles": [
2264
2264
  "styles/e0c7a3100e78722074c8.css",
2265
- "styles/fb2bc8c33c76a3ef1da9.css",
2265
+ "styles/35355c6e9b872753ee97.css",
2266
2266
  "styles/2d5c9138ae0e9cddb922.css"
2267
2267
  ]
2268
2268
  },
@@ -2360,7 +2360,7 @@
2360
2360
  "scripts/a165d7c52695495435c2.js",
2361
2361
  "scripts/cff7036a8ca3b237af01.js",
2362
2362
  "scripts/20e1c1439e2c2acd9c8e.js",
2363
- "scripts/fb2bc8c33c76a3ef1da9.js",
2363
+ "scripts/35355c6e9b872753ee97.js",
2364
2364
  "scripts/826a07f6aac6a2a9f30c.js",
2365
2365
  "scripts/bdb8dcae760a4d77d944.js",
2366
2366
  "scripts/77b10bc071d166c5318d.js",
@@ -2369,7 +2369,7 @@
2369
2369
  "styles": [
2370
2370
  "styles/c597298482eca685444f.css",
2371
2371
  "styles/20e1c1439e2c2acd9c8e.css",
2372
- "styles/fb2bc8c33c76a3ef1da9.css",
2372
+ "styles/35355c6e9b872753ee97.css",
2373
2373
  "styles/bdb8dcae760a4d77d944.css",
2374
2374
  "styles/77b10bc071d166c5318d.css",
2375
2375
  "styles/3cefd5c07b4fa5b8521e.css"
@@ -3940,7 +3940,7 @@
3940
3940
  "scripts/c31932e999f4e02b0740.js",
3941
3941
  "scripts/7926eaf34e584f4ee8f2.js",
3942
3942
  "scripts/4c1f26c64e28681543ad.js",
3943
- "scripts/23f1a8fabc84617d7929.js"
3943
+ "scripts/866c183151d202876582.js"
3944
3944
  ],
3945
3945
  "styles": [
3946
3946
  "styles/e0c7a3100e78722074c8.css",
@@ -3950,7 +3950,7 @@
3950
3950
  "styles/0e6fcaca5793d325e71f.css",
3951
3951
  "styles/a1ea6d101866bc682576.css",
3952
3952
  "styles/4c1f26c64e28681543ad.css",
3953
- "styles/23f1a8fabc84617d7929.css"
3953
+ "styles/866c183151d202876582.css"
3954
3954
  ]
3955
3955
  },
3956
3956
  "VsMegaNavFeaturedItem": {
@@ -4661,12 +4661,12 @@
4661
4661
  "scripts/e0c7a3100e78722074c8.js",
4662
4662
  "scripts/d1de866f4ef0397a633a.js",
4663
4663
  "scripts/0fca23adffd3007411e5.js",
4664
- "scripts/986cefb939b3ab5e1003.js"
4664
+ "scripts/df18b654ae827f1e3f2d.js"
4665
4665
  ],
4666
4666
  "styles": [
4667
4667
  "styles/e0c7a3100e78722074c8.css",
4668
4668
  "styles/0fca23adffd3007411e5.css",
4669
- "styles/986cefb939b3ab5e1003.css"
4669
+ "styles/df18b654ae827f1e3f2d.css"
4670
4670
  ]
4671
4671
  },
4672
4672
  "VsPanel": {
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2710],{6512:function(){},99750:function(t,n,o){"use strict";var r=o(34352),e=o(2543);n.A={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:r.UV},props:{text:{type:String,default:""},variant:{type:String,default:"primary",validator:function(t){return t.match(/(primary|secondary)/)}}},computed:{nonButtonContentSlots:function(){return(0,e.reject)(this.$slots,{name:"button-content"})}}}},404:function(t,n,o){"use strict";o.d(n,{X:function(){return u}});var r=o(20641),e=o(90033),s={class:"dropdown-menu overflow-auto",role:"menu"};function u(t,n,o,u,a,i){var c=(0,r.g2)("BDropdown");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(c,(0,r.v6)(t.$attrs,{variant:o.variant,class:"vs-dropdown"}),(0,r.eX)({"button-content":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"button-content",{},(function(){return[(0,r.eW)((0,e.toDisplayString)(o.text),1)]}))]})),default:(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"default")]})),_:2},[(0,r.pI)(i.nonButtonContentSlots,(function(n,o){return{name:o,fn:(0,r.k6)((function(){return[(0,r.RG)(t.$slots,o)]}))}}))]),1040,["variant"]),(0,r.Lk)("div",{class:(0,e.normalizeClass)([t.$attrs.class,"dropdown vs-dropdown vs-dropdown--fallback"])},[(0,r.Lk)("ul",s,[(0,r.RG)(t.$slots,"default")])],2)],64)}},70158:function(t,n,o){"use strict";var r=o(85072),e=o.n(r),s=o(97825),u=o.n(s),a=o(77659),i=o.n(a),c=o(55056),l=o.n(c),d=o(10540),f=o.n(d),p=o(41113),v=o.n(p),m=o(6512),b=o.n(m),w={};w.styleTagTransform=v(),w.setAttributes=l(),w.insert=i().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=f(),e()(b(),w),b()&&b().locals&&b().locals},62710:function(t,n,o){"use strict";o.r(n);var r=o(7140),e=o(45754);o(19426);const s=(0,o(66262).A)(e.A,[["render",r.X]]);n.default=s},45754:function(t,n,o){"use strict";o.d(n,{A:function(){return r.A}});var r=o(99750)},7140:function(t,n,o){"use strict";o.d(n,{X:function(){return r.X}});var r=o(404)},19426:function(t,n,o){"use strict";o(70158)}}]);
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsEventCard=e():t.VsEventCard=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7744],{22466:function(){},65303:function(t,e,n){"use strict";var a=n(13838),s=n(48836),r=n(68638),c=n(22368);e.A={name:"VsEventCard",status:"prototype",release:"0.0.1",components:{VsHeading:a.default,VsButton:s.default,VsCol:r.default,VsRow:c.default},props:{ctaHref:{type:String,default:"#"},ctaLabel:{type:String,default:""},ctaIcon:{type:String,default:""}}}},8358:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var a=n(20641),s=n(90033),r={class:"card vs-event-card","data-test":"vs-event-card"},c={class:"card-body"},o={class:"vs-event-card__date"},d={key:0,class:"vs-event-card__content","data-test":"vs-event-card__content"},u={key:1,class:"vs-event-card__cta","data-test":"vs-event-card__cta"};function i(t,e,n,i,l,f){var v=(0,a.g2)("VsHeading"),_=(0,a.g2)("VsCol"),p=(0,a.g2)("VsRow"),y=(0,a.g2)("VsButton");return(0,a.uX)(),(0,a.CE)("div",r,[(0,a.Lk)("div",c,[(0,a.bF)(p,{class:"vs-event-card__header"},{default:(0,a.k6)((function(){return[(0,a.bF)(_,{sm:"12",md:"9",class:"p-0"},{default:(0,a.k6)((function(){return[(0,a.bF)(v,{class:"vs-event-card__heading","heading-style":"heading-xs",level:"3","data-test":"vs-event-card__heading"},{default:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"event-card-header")]})),_:3})]})),_:3}),t.$slots["event-card-date"]?((0,a.uX)(),(0,a.Wv)(_,{key:0,sm:"12",md:"3",class:"my-auto p-0","data-test":"vs-event-card__date"},{default:(0,a.k6)((function(){return[(0,a.Lk)("p",o,[(0,a.RG)(t.$slots,"event-card-date")])]})),_:3})):(0,a.Q3)("",!0)]})),_:3}),t.$slots["event-card-content"]?((0,a.uX)(),(0,a.CE)("div",d,[(0,a.RG)(t.$slots,"event-card-content")])):(0,a.Q3)("",!0),n.ctaHref&&n.ctaLabel?((0,a.uX)(),(0,a.CE)("div",u,[(0,a.bF)(y,{href:n.ctaHref,icon:n.ctaIcon,"icon-position":"right","data-test":"vs-event-card__cta"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,s.toDisplayString)(n.ctaLabel),1)]})),_:1},8,["href","icon"])])):(0,a.Q3)("",!0)])])}},19900:function(t,e,n){"use strict";var a=n(85072),s=n.n(a),r=n(97825),c=n.n(r),o=n(77659),d=n.n(o),u=n(55056),i=n.n(u),l=n(10540),f=n.n(l),v=n(41113),_=n.n(v),p=n(22466),y=n.n(p),b={};b.styleTagTransform=_(),b.setAttributes=i(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=f(),s()(y(),b),y()&&y().locals&&y().locals},68573:function(t,e,n){"use strict";n.r(e);var a=n(27126),s=n(58779);n(98696);const r=(0,n(66262).A)(s.A,[["render",a.X]]);e.default=r},58779:function(t,e,n){"use strict";n.d(e,{A:function(){return a.A}});var a=n(65303)},27126:function(t,e,n){"use strict";n.d(e,{X:function(){return a.X}});var a=n(8358)},98696:function(t,e,n){"use strict";n(19900)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,8638,2368,3838],(function(){return t(t.s=68573)})),t.O()}])}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavFeaturedEvent=t():e.VsMegaNavFeaturedEvent=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8051],{19900:function(){},79798:function(e,t,n){"use strict";var a=n(3453),r=n(59116),s=n(57536);t.A={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{sourceUrl:{type:String,default:""}},data:function(){return{featuredEvent:null}},mounted:function(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent:function(){var e=this;s.A.get(this.sourceUrl).then((function(t){if(t.data.data.products&&t.data.data.products.length){var n=(0,a.A)(t.data.data.products,1);e.featuredEvent=n[0]}})).catch((function(){e.featuredEvent=null}))}}}},8150:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var a=n(20641),r=n(90033),s={key:0,class:"vs-mega-nav-featured-event__date-range"},u={class:"vs-mega-nav-featured-event__date-detail"},i={class:"vs-mega-nav-featured-event__title"},d={key:1,class:"vs-mega-nav-featured-event__location"};function o(e,t,n,o,c,f){var v=(0,a.g2)("VsStretchedLinkCard");return c.featuredEvent?((0,a.uX)(),(0,a.Wv)(v,{key:0,link:c.featuredEvent.productLink.link,type:"internal","img-src":c.featuredEvent.images[0].mediaUrl,"img-alt":c.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":(0,a.k6)((function(){return[c.featuredEvent&&c.featuredEvent.opening?((0,a.uX)(),(0,a.CE)("p",s,[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.opening.period.label)+"  ",1),(0,a.Lk)("span",u,(0,r.toDisplayString)(c.featuredEvent.opening.period.startDay),1)])):(0,a.Q3)("",!0),(0,a.Lk)("p",i,(0,r.toDisplayString)(c.featuredEvent.name),1),c.featuredEvent&&c.featuredEvent.address?((0,a.uX)(),(0,a.CE)("p",d,(0,r.toDisplayString)(c.featuredEvent.address.shortAddress),1)):(0,a.Q3)("",!0)]})),"stretched-card-link":(0,a.k6)((function(){return[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.productLink.label),1)]})),_:1},8,["link","img-src","img-alt"])):(0,a.Q3)("",!0)}},23942:function(e,t,n){"use strict";var a=n(85072),r=n.n(a),s=n(97825),u=n.n(s),i=n(77659),d=n.n(i),o=n(55056),c=n.n(o),f=n(10540),v=n.n(f),l=n(41113),p=n.n(l),g=n(19900),m=n.n(g),E={};E.styleTagTransform=p(),E.setAttributes=c(),E.insert=d().bind(null,"head"),E.domAPI=u(),E.insertStyleElement=v(),r()(m(),E),m()&&m().locals&&m().locals},75048:function(e,t,n){"use strict";n.r(t);var a=n(6630),r=n(28402);n(39442);const s=(0,n(66262).A)(r.A,[["render",a.X]]);t.default=s},28402:function(e,t,n){"use strict";n.d(t,{A:function(){return a.A}});var a=n(79798)},6630:function(e,t,n){"use strict";n.d(t,{X:function(){return a.X}});var a=n(8150)},39442:function(e,t,n){"use strict";n(23942)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,7536,6422,8745,8836,3838,5676,1574,9122,5921,7957,9116],(function(){return e(e.s=75048)})),e.O()}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavFeaturedEvent=t():e.VsMegaNavFeaturedEvent=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8051],{97519:function(){},79798:function(e,t,n){"use strict";var a=n(3453),r=n(59116),s=n(57536);t.A={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{sourceUrl:{type:String,default:""}},data:function(){return{featuredEvent:null}},mounted:function(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent:function(){var e=this;s.A.get(this.sourceUrl).then((function(t){if(t.data.data.products&&t.data.data.products.length){var n=(0,a.A)(t.data.data.products,1);e.featuredEvent=n[0]}})).catch((function(){e.featuredEvent=null}))}}}},8150:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var a=n(20641),r=n(90033),s={key:0,class:"vs-mega-nav-featured-event__date-range"},u={class:"vs-mega-nav-featured-event__date-detail"},i={class:"vs-mega-nav-featured-event__title"},d={key:1,class:"vs-mega-nav-featured-event__location"};function o(e,t,n,o,c,f){var v=(0,a.g2)("VsStretchedLinkCard");return c.featuredEvent?((0,a.uX)(),(0,a.Wv)(v,{key:0,link:c.featuredEvent.productLink.link,type:"internal","img-src":c.featuredEvent.images[0].mediaUrl,"img-alt":c.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":(0,a.k6)((function(){return[c.featuredEvent&&c.featuredEvent.opening?((0,a.uX)(),(0,a.CE)("p",s,[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.opening.period.label)+"  ",1),(0,a.Lk)("span",u,(0,r.toDisplayString)(c.featuredEvent.opening.period.startDay),1)])):(0,a.Q3)("",!0),(0,a.Lk)("p",i,(0,r.toDisplayString)(c.featuredEvent.name),1),c.featuredEvent&&c.featuredEvent.address?((0,a.uX)(),(0,a.CE)("p",d,(0,r.toDisplayString)(c.featuredEvent.address.shortAddress),1)):(0,a.Q3)("",!0)]})),"stretched-card-link":(0,a.k6)((function(){return[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.productLink.label),1)]})),_:1},8,["link","img-src","img-alt"])):(0,a.Q3)("",!0)}},23942:function(e,t,n){"use strict";var a=n(85072),r=n.n(a),s=n(97825),u=n.n(s),i=n(77659),d=n.n(i),o=n(55056),c=n.n(o),f=n(10540),v=n.n(f),l=n(41113),p=n.n(l),g=n(97519),m=n.n(g),E={};E.styleTagTransform=p(),E.setAttributes=c(),E.insert=d().bind(null,"head"),E.domAPI=u(),E.insertStyleElement=v(),r()(m(),E),m()&&m().locals&&m().locals},75048:function(e,t,n){"use strict";n.r(t);var a=n(6630),r=n(28402);n(39442);const s=(0,n(66262).A)(r.A,[["render",a.X]]);t.default=s},28402:function(e,t,n){"use strict";n.d(t,{A:function(){return a.A}});var a=n(79798)},6630:function(e,t,n){"use strict";n.d(t,{X:function(){return a.X}});var a=n(8150)},39442:function(e,t,n){"use strict";n(23942)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,7536,6422,8745,8836,3838,5676,1574,9122,5921,7957,9116],(function(){return e(e.s=75048)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsVsPagination=n():e.VsVsPagination=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5863],{38759:function(){},20398:function(e,n,t){"use strict";var a=t(89394),i=t(20641),r=t(90033),u=t(48836),l={"aria-label":"Pagination",class:"vs-pagination","data-test":"vs-pagination"},s={"aria-live":"polite",class:"vs-pagination__count"},o={class:"vs-pagination__controls"},c={class:"vs-pagination__prev"},f={class:"vs-pagination__list"},p={key:0},v={class:"vs-pagination__next"};n.A={__name:"VsPagination",props:(0,i.zz)({nextButtonLabel:{type:String,required:!0},numberOfPages:{type:Number,required:!0},pageLabel:{type:String,required:!0},ofLabel:{type:String,required:!0},previousButtonLabel:{type:String,required:!0}},{modelValue:{type:Number,default:1},modelModifiers:{}}),emits:(0,i.zz)(["page-click"],["update:modelValue"]),setup:function(e,n){var t=n.emit,d=e,g=t,b=(0,i.fn)(e,"modelValue"),m=(0,i.EW)((function(){return"".concat(d.pageLabel," ").concat(b.value," ").concat(d.ofLabel," ").concat(d.numberOfPages)})),_=function(e){return{"vs-pagination__item":!0,"vs-pagination__item--active":b.value===e,"vs-pagination__item--ellipses":"ellipses"===e}},k=(0,i.EW)((function(){if(d.numberOfPages<=7)return Array.from({length:d.numberOfPages},(function(e,n){return n+1}));var e=[],n=Math.floor(3.5);if(b.value<=n){for(var t=1;t<6;t++)e=[].concat((0,a.A)(e),[t]);e=[].concat((0,a.A)(e),["ellipses",d.numberOfPages])}else if(b.value>d.numberOfPages-n){e=[1,"ellipses"];for(var i=d.numberOfPages-7+2,r=1;r<6;r++)e=[].concat((0,a.A)(e),[i+r])}else{var u=b.value-n+1;e=[1,"ellipses"];for(var l=1;l<4;l++)e=[].concat((0,a.A)(e),[u+l]);e=[].concat((0,a.A)(e),["ellipses",d.numberOfPages])}return e})),y=function(e,n){b.value!==n&&(g("page-click",n),b.value=n)};return(0,i.wB)((function(){return d.numberOfPages}),(function(){b.value=1})),function(e,n){return(0,i.uX)(),(0,i.CE)("nav",l,[(0,i.Lk)("div",s,[(0,i.Lk)("p",null,(0,r.toDisplayString)(m.value),1)]),(0,i.Lk)("div",o,[(0,i.Lk)("div",c,[(0,i.bF)(u.default,{disabled:1===b.value,icon:"internal-link-back",size:"sm",variant:"transparent",onClick:n[0]||(n[0]=function(e){return y(0,b.value-1)})},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(d.previousButtonLabel),1)]})),_:1},8,["disabled"])]),(0,i.Lk)("ul",f,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(k.value,(function(e,n){return(0,i.uX)(),(0,i.CE)("li",{class:(0,r.normalizeClass)(_(e)),key:n},["ellipses"===e?((0,i.uX)(),(0,i.CE)("span",p,"⋯")):((0,i.uX)(),(0,i.Wv)(u.default,{key:1,"aria-current":b.value===e?"page":null,"aria-label":"Page ".concat(e),size:"sm",onClick:function(n){return y(0,e)}},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(e),1)]})),_:2},1032,["aria-current","aria-label","onClick"]))],2)})),128))]),(0,i.Lk)("div",v,[(0,i.bF)(u.default,{disabled:b.value===d.numberOfPages,icon:"internal-link","icon-position":"right",size:"sm",variant:"transparent",onClick:n[1]||(n[1]=function(e){return y(0,b.value+1)})},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(d.nextButtonLabel),1)]})),_:1},8,["disabled"])])])])}}}},18073:function(e,n,t){"use strict";var a=t(85072),i=t.n(a),r=t(97825),u=t.n(r),l=t(77659),s=t.n(l),o=t(55056),c=t.n(o),f=t(10540),p=t.n(f),v=t(41113),d=t.n(v),g=t(38759),b=t.n(g),m={};m.styleTagTransform=d(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=u(),m.insertStyleElement=p(),i()(b(),m),b()&&b().locals&&b().locals},53337:function(e,n,t){"use strict";t.r(n);var a=t(40197);t(28109);const i=a.A;n.default=i},40197:function(e,n,t){"use strict";t.d(n,{A:function(){return a.A}});var a=t(20398)},28109:function(e,n,t){"use strict";t(18073)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,6422,8745,8836],(function(){return e(e.s=53337)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ .vs-dropdown .dropdown-toggle{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-dropdown .dropdown-toggle:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #3369ff}.vs-dropdown .dropdown-toggle{line-height:1;padding:.5rem 1.5rem}.vs-dropdown .dropdown-toggle:hover{background-color:#17359c}.vs-dropdown .dropdown-toggle:active{background-color:#112876}.vs-dropdown .dropdown-toggle::after{display:inline-block;font-family:"Font Awesome Kit";content:"";color:#fff;border:0;font-weight:400;vertical-align:bottom}.vs-dropdown .dropdown-toggle.btn-secondary{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-dropdown .dropdown-toggle.btn-secondary .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-dropdown .dropdown-toggle.btn-secondary:hover{color:#fff;background-color:#17359c;border-color:#17359c}.vs-dropdown .dropdown-toggle.btn-secondary:hover .vs-icon{color:#fff}.vs-dropdown .dropdown-toggle.btn-secondary:active,.vs-dropdown .dropdown-toggle.btn-secondary:active:focus{color:#fff;background-color:#112876;border-color:#112876}.vs-dropdown .dropdown-toggle.btn-secondary:active .vs-icon,.vs-dropdown .dropdown-toggle.btn-secondary:active:focus .vs-icon{color:#fff}.vs-dropdown .dropdown-toggle.btn-secondary::after{color:#1f49d6}.vs-dropdown .dropdown-toggle.btn-secondary:hover::after{color:#fff}.vs-dropdown .dropdown-menu li{border-bottom:1px solid #e9e9e9}.vs-dropdown .dropdown-menu li:last-of-type{border-bottom:0}.vs-dropdown .dropdown-menu li .dropdown-item:hover,.vs-dropdown .dropdown-menu li .dropdown-item.active,.vs-dropdown .dropdown-menu li .dropdown-item:active{color:#1f49d6;background-color:#d6e5ff;outline:0}.vs-dropdown .dropdown-menu li .dropdown-item:focus{outline:0;color:#1f49d6;box-shadow:0 0 0 2px #3369ff inset}.vs-dropdown .btn-content{display:inline-block}.vs-dropdown--fallback{display:none}
@@ -0,0 +1 @@
1
+ .card.vs-event-card{border:none}.card.vs-event-card .card-body{padding:1rem;width:100%;border-bottom:1px solid #e9e9e9}.card.vs-event-card .vs-event-card__date{margin:auto 0;font-size:1.25rem;font-weight:600}.card.vs-event-card .vs-event-card__heading{margin:0}.card.vs-event-card .vs-event-card__header{margin:.5rem 0}.card.vs-event-card .vs-event-card__cta{margin-bottom:.5rem}@media(max-width: 767.98px){.card.vs-event-card .vs-event-card__cta{margin-top:1.5rem}}@media(min-width: 768px){.card.vs-event-card .vs-event-card__header{margin:0 0 0 0}.card.vs-event-card .vs-event-card__heading{margin:.5rem 0}.card.vs-event-card .vs-event-card__date{text-align:right;align-self:middle}.card.vs-event-card .vs-event-card__cta{position:relative;right:0;bottom:3rem;float:right;margin-bottom:-3rem}}
@@ -3,6 +3,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
+ /**
7
+ * Style variation to give additional meaning
8
+ * `primary|secondary`.
9
+ */
10
+ variant: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ validator: (value: unknown) => any;
14
+ };
6
15
  }>, {}, {}, {
7
16
  nonButtonContentSlots(): any;
8
17
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -10,7 +19,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
19
  type: StringConstructor;
11
20
  default: string;
12
21
  };
22
+ /**
23
+ * Style variation to give additional meaning
24
+ * `primary|secondary`.
25
+ */
26
+ variant: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ validator: (value: unknown) => any;
30
+ };
13
31
  }>> & Readonly<{}>, {
32
+ variant: string;
14
33
  text: string;
15
34
  }, {}, {
16
35
  BDropdown: {
@@ -223,6 +223,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
223
223
  type: StringConstructor;
224
224
  default: string;
225
225
  };
226
+ variant: {
227
+ type: StringConstructor;
228
+ default: string;
229
+ validator: (value: unknown) => any;
230
+ };
226
231
  }>, {}, {}, {
227
232
  nonButtonContentSlots(): any;
228
233
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -230,7 +235,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
230
235
  type: StringConstructor;
231
236
  default: string;
232
237
  };
238
+ variant: {
239
+ type: StringConstructor;
240
+ default: string;
241
+ validator: (value: unknown) => any;
242
+ };
233
243
  }>> & Readonly<{}>, {
244
+ variant: string;
234
245
  text: string;
235
246
  }, {}, {
236
247
  BDropdown: {
@@ -50,6 +50,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
50
  type: StringConstructor;
51
51
  default: string;
52
52
  };
53
+ variant: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ validator: (value: unknown) => any;
57
+ };
53
58
  }>, {}, {}, {
54
59
  nonButtonContentSlots(): any;
55
60
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -57,7 +62,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
57
62
  type: StringConstructor;
58
63
  default: string;
59
64
  };
65
+ variant: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ validator: (value: unknown) => any;
69
+ };
60
70
  }>> & Readonly<{}>, {
71
+ variant: string;
61
72
  text: string;
62
73
  }, {}, {
63
74
  BDropdown: {
@@ -51,6 +51,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
51
51
  type: StringConstructor;
52
52
  default: string;
53
53
  };
54
+ variant: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ validator: (value: unknown) => any;
58
+ };
54
59
  }>, {}, {}, {
55
60
  nonButtonContentSlots(): any;
56
61
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -58,7 +63,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
58
63
  type: StringConstructor;
59
64
  default: string;
60
65
  };
66
+ variant: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ validator: (value: unknown) => any;
70
+ };
61
71
  }>> & Readonly<{}>, {
72
+ variant: string;
62
73
  text: string;
63
74
  }, {}, {
64
75
  BDropdown: {