@visitscotland/component-library 1.0.10 → 1.0.11
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.
- package/CHANGELOG.md +31 -2
- package/dist/client/manifest.json +30 -29
- package/dist/client/scripts/{fa8a8b7f9dc7543e48a8.js → 26464bf3b6b836ebafd4.js} +1 -1
- package/dist/client/scripts/{18fec5a86a607b5bc5bf.js → 276a4b2a5a2c50e90936.js} +1 -1
- package/dist/client/scripts/33338fbf2c1d8ffac932.js +1 -0
- package/dist/client/scripts/{6daeb359c1e78e95c41a.js → 4db8c3f305ad26b9ba85.js} +1 -1
- package/dist/client/scripts/97a93bb1bf4e34759a9f.js +1 -0
- package/dist/client/scripts/{d4a1efb6037a774d0fee.js → f28a2e92ca4ac488ad47.js} +1 -1
- package/dist/client/styles/f28a2e92ca4ac488ad47.css +2 -0
- package/dist/ssr/client/styles/third-party/_cludo-autocomplete +7 -0
- package/dist/ssr/client/styles/third-party/_cludo-autocomplete.css +1 -0
- package/dist/ssr/client/styles/third-party/_cludo-search-results +7 -0
- package/dist/ssr/client/styles/third-party/_cludo-search-results.css +1 -0
- package/dist/ssr/client/styles/third-party/_stackla-styles +7 -0
- package/dist/ssr/client/styles/third-party/_stackla-styles.css +1 -0
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{91f44850d92a97d1d18e.css → 457d14df2ed04aa300f5.css} +2 -0
- package/package.json +10 -3
- package/dist/client/scripts/9d718dbb6174ccb0af42.js +0 -1
- package/dist/client/scripts/c06913a0713c25cc5fb8.js +0 -1
- /package/dist/client/styles/{fa8a8b7f9dc7543e48a8.css → 26464bf3b6b836ebafd4.css} +0 -0
- /package/dist/client/styles/{c06913a0713c25cc5fb8.css → 33338fbf2c1d8ffac932.css} +0 -0
- /package/dist/client/styles/{6daeb359c1e78e95c41a.css → 4db8c3f305ad26b9ba85.css} +0 -0
- /package/dist/client/styles/{9d718dbb6174ccb0af42.css → 97a93bb1bf4e34759a9f.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,42 @@
|
|
|
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
|
-
### [1.0.
|
|
5
|
+
### [1.0.11](https://github.com/visitscotland/vs-component-library/compare/v1.0.10...v1.0.11) (2023-08-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features
|
|
9
|
+
|
|
10
|
+
* **table:** simply data and fix stacked styles ([c89405b](https://github.com/visitscotland/vs-component-library/commit/c89405b14a0ac65db141fe12cda275660f6e3f98))
|
|
11
|
+
* **workflow:** run tests on pr creation ([2a883b5](https://github.com/visitscotland/vs-component-library/commit/2a883b5e80bef222fe0309f64e5c3eec46f12f84))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### 🔖 Others
|
|
15
|
+
|
|
16
|
+
* fix dependabot issue by upgrading resolutions entries ([0a27a34](https://github.com/visitscotland/vs-component-library/commit/0a27a34f2b409fb0ac1017fa25641dae9d2f6995))
|
|
6
17
|
|
|
7
18
|
|
|
8
19
|
### 🐛 Bug Fixes
|
|
9
20
|
|
|
10
|
-
* **
|
|
21
|
+
* **carousel:** set image urls locally instead of using image from the production site ([2affbe7](https://github.com/visitscotland/vs-component-library/commit/2affbe77e390d8404901d500b0d760c7d7881423))
|
|
22
|
+
* **input:** fix validation logic and validation test ([d0060a0](https://github.com/visitscotland/vs-component-library/commit/d0060a0203621e2140341dfc1c63824c2117247b))
|
|
23
|
+
* **meganav:** set image urls locally instead of using image from the production site ([8059770](https://github.com/visitscotland/vs-component-library/commit/80597705e68df64844b7e7d117f036e01f3bc9f3))
|
|
24
|
+
* **table:** correct table story usage of header ([ccba843](https://github.com/visitscotland/vs-component-library/commit/ccba84309184ce2dd721f7312b176366ad3e0bfa))
|
|
25
|
+
* **table:** fix stacked table ([b6773e9](https://github.com/visitscotland/vs-component-library/commit/b6773e915e0ab9cae47f02c3e15d3fecbc0d80d4))
|
|
26
|
+
* **tests:** fix logic on carousel throttling test ([d031ff6](https://github.com/visitscotland/vs-component-library/commit/d031ff6481a9ff860e2d2bc5770781af014304d2))
|
|
27
|
+
* **tests:** mock map store to and mapboxgl to fix map tests ([ef58f03](https://github.com/visitscotland/vs-component-library/commit/ef58f037d25c364f6bf52f93072747966e064c9c))
|
|
28
|
+
* **tests:** mock video for tests and fix other testing logic ([e0bbd36](https://github.com/visitscotland/vs-component-library/commit/e0bbd36c5c76763e6ca691d5829a573bf0262271))
|
|
29
|
+
* **tests:** mock window.url.createobjecturl for map wrapper tests ([52ad076](https://github.com/visitscotland/vs-component-library/commit/52ad0764a695424f533537dc2dcf17b18da32990))
|
|
30
|
+
* **third party:** fix third party styles and build them in main script ([b9c9753](https://github.com/visitscotland/vs-component-library/commit/b9c97537e50197371f05336126d8f64bc601239f))
|
|
31
|
+
* **video:** ensure cookie init status sets to error if onetrust doesn't initiate ([d9caa5d](https://github.com/visitscotland/vs-component-library/commit/d9caa5d30b160232296e3b8e46f264819ca94db3))
|
|
32
|
+
* **workflow:** only run on one node version ([3aa0471](https://github.com/visitscotland/vs-component-library/commit/3aa04710e0ff90814f796b1a8b853b38c1338052))
|
|
11
33
|
|
|
34
|
+
### [1.0.10](https://github.com/visitscotland/vs-component-library/compare/v1.0.9...v1.0.10) (2023-08-04)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### 🐛 Bug Fixes
|
|
38
|
+
|
|
39
|
+
* **meganav:** ensure search bar is open before focussing input ([7a6311d](https://github.com/visitscotland/vs-component-library/commit/7a6311d478e017c5d7a32894afec9cd88f8b57b6))
|
|
40
|
+
|
|
12
41
|
### [1.0.9](https://github.com/visitscotland/vs-component-library/compare/v1.0.8...v1.0.9) (2023-08-03)
|
|
13
42
|
|
|
14
43
|
|
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
"scripts/eda81d149aecca45599c.js",
|
|
25
25
|
"scripts/a08f97460464cd02e2bc.js",
|
|
26
26
|
"scripts/56c42bac08d8c1efa1e4.js",
|
|
27
|
-
"scripts/
|
|
28
|
-
"scripts/
|
|
27
|
+
"scripts/f28a2e92ca4ac488ad47.js",
|
|
28
|
+
"scripts/4db8c3f305ad26b9ba85.js"
|
|
29
29
|
],
|
|
30
30
|
"styles": [
|
|
31
|
-
"styles/
|
|
31
|
+
"styles/f28a2e92ca4ac488ad47.css",
|
|
32
|
+
"styles/4db8c3f305ad26b9ba85.css"
|
|
32
33
|
]
|
|
33
34
|
},
|
|
34
35
|
"VsAddress": {
|
|
@@ -474,13 +475,13 @@
|
|
|
474
475
|
"scripts/33b055ac428c5559f2e3.js",
|
|
475
476
|
"scripts/18f2445b32c899cb5d25.js",
|
|
476
477
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
477
|
-
"scripts/
|
|
478
|
+
"scripts/33338fbf2c1d8ffac932.js",
|
|
478
479
|
"scripts/ed53a8913b2dc8d4e20f.js"
|
|
479
480
|
],
|
|
480
481
|
"styles": [
|
|
481
482
|
"styles/dbe1b855d20944778934.css",
|
|
482
483
|
"styles/18f2445b32c899cb5d25.css",
|
|
483
|
-
"styles/
|
|
484
|
+
"styles/33338fbf2c1d8ffac932.css"
|
|
484
485
|
]
|
|
485
486
|
},
|
|
486
487
|
"VsLink": {
|
|
@@ -914,16 +915,16 @@
|
|
|
914
915
|
"scripts/18f2445b32c899cb5d25.js",
|
|
915
916
|
"scripts/24228f9eee7eb5c30688.js",
|
|
916
917
|
"scripts/041b37f609bd582c55eb.js",
|
|
917
|
-
"scripts/
|
|
918
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
918
919
|
"scripts/5134117eead22be509e9.js",
|
|
919
920
|
"scripts/5cb7b258824862644a28.js",
|
|
920
|
-
"scripts/
|
|
921
|
+
"scripts/97a93bb1bf4e34759a9f.js"
|
|
921
922
|
],
|
|
922
923
|
"styles": [
|
|
923
924
|
"styles/dbe1b855d20944778934.css",
|
|
924
925
|
"styles/18f2445b32c899cb5d25.css",
|
|
925
926
|
"styles/24228f9eee7eb5c30688.css",
|
|
926
|
-
"styles/
|
|
927
|
+
"styles/97a93bb1bf4e34759a9f.css"
|
|
927
928
|
]
|
|
928
929
|
},
|
|
929
930
|
"VsAccordion": {
|
|
@@ -1978,7 +1979,7 @@
|
|
|
1978
1979
|
"scripts/24228f9eee7eb5c30688.js",
|
|
1979
1980
|
"scripts/af20ced2e34b6801258c.js",
|
|
1980
1981
|
"scripts/041b37f609bd582c55eb.js",
|
|
1981
|
-
"scripts/
|
|
1982
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
1982
1983
|
"scripts/5134117eead22be509e9.js",
|
|
1983
1984
|
"scripts/5cb7b258824862644a28.js",
|
|
1984
1985
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -2236,7 +2237,7 @@
|
|
|
2236
2237
|
"scripts/24228f9eee7eb5c30688.js",
|
|
2237
2238
|
"scripts/d0fd50a5b063d113a609.js",
|
|
2238
2239
|
"scripts/041b37f609bd582c55eb.js",
|
|
2239
|
-
"scripts/
|
|
2240
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
2240
2241
|
"scripts/e336166cdfd3f851d0d6.js"
|
|
2241
2242
|
],
|
|
2242
2243
|
"styles": [
|
|
@@ -2880,7 +2881,7 @@
|
|
|
2880
2881
|
"scripts/24228f9eee7eb5c30688.js",
|
|
2881
2882
|
"scripts/af20ced2e34b6801258c.js",
|
|
2882
2883
|
"scripts/041b37f609bd582c55eb.js",
|
|
2883
|
-
"scripts/
|
|
2884
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
2884
2885
|
"scripts/5134117eead22be509e9.js",
|
|
2885
2886
|
"scripts/e3df89c35c49687c02b1.js",
|
|
2886
2887
|
"scripts/1448817d8612666a0079.js",
|
|
@@ -3882,7 +3883,7 @@
|
|
|
3882
3883
|
"scripts/18f2445b32c899cb5d25.js",
|
|
3883
3884
|
"scripts/ae5c80d270825f9d87fa.js",
|
|
3884
3885
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
3885
|
-
"scripts/
|
|
3886
|
+
"scripts/33338fbf2c1d8ffac932.js",
|
|
3886
3887
|
"scripts/caea720ced2915ca1ba0.js",
|
|
3887
3888
|
"scripts/f1abb8c1b78c93f69db2.js",
|
|
3888
3889
|
"scripts/ed280d609f60fe858925.js",
|
|
@@ -3892,7 +3893,7 @@
|
|
|
3892
3893
|
"styles/dbe1b855d20944778934.css",
|
|
3893
3894
|
"styles/18f2445b32c899cb5d25.css",
|
|
3894
3895
|
"styles/ae5c80d270825f9d87fa.css",
|
|
3895
|
-
"styles/
|
|
3896
|
+
"styles/33338fbf2c1d8ffac932.css",
|
|
3896
3897
|
"styles/caea720ced2915ca1ba0.css",
|
|
3897
3898
|
"styles/f1abb8c1b78c93f69db2.css",
|
|
3898
3899
|
"styles/ed280d609f60fe858925.css",
|
|
@@ -4032,7 +4033,7 @@
|
|
|
4032
4033
|
"scripts/24228f9eee7eb5c30688.js",
|
|
4033
4034
|
"scripts/af20ced2e34b6801258c.js",
|
|
4034
4035
|
"scripts/041b37f609bd582c55eb.js",
|
|
4035
|
-
"scripts/
|
|
4036
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
4036
4037
|
"scripts/5134117eead22be509e9.js",
|
|
4037
4038
|
"scripts/5cb7b258824862644a28.js",
|
|
4038
4039
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -4086,7 +4087,7 @@
|
|
|
4086
4087
|
"scripts/24228f9eee7eb5c30688.js",
|
|
4087
4088
|
"scripts/af20ced2e34b6801258c.js",
|
|
4088
4089
|
"scripts/041b37f609bd582c55eb.js",
|
|
4089
|
-
"scripts/
|
|
4090
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
4090
4091
|
"scripts/5134117eead22be509e9.js",
|
|
4091
4092
|
"scripts/5cb7b258824862644a28.js",
|
|
4092
4093
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -4333,7 +4334,7 @@
|
|
|
4333
4334
|
"scripts/e3df89c35c49687c02b1.js",
|
|
4334
4335
|
"scripts/0f1d80669c0f36ef7a3a.js",
|
|
4335
4336
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
4336
|
-
"scripts/
|
|
4337
|
+
"scripts/33338fbf2c1d8ffac932.js",
|
|
4337
4338
|
"scripts/a48a2b06e83f5633ea99.js",
|
|
4338
4339
|
"scripts/79134396a3d8568b2d85.js",
|
|
4339
4340
|
"scripts/989847d3f18143a3d11a.js",
|
|
@@ -4347,7 +4348,7 @@
|
|
|
4347
4348
|
"styles/66b8a5d09a8317bd9092.css",
|
|
4348
4349
|
"styles/bb5f66fdff1806a7b91d.css",
|
|
4349
4350
|
"styles/0f1d80669c0f36ef7a3a.css",
|
|
4350
|
-
"styles/
|
|
4351
|
+
"styles/33338fbf2c1d8ffac932.css",
|
|
4351
4352
|
"styles/79134396a3d8568b2d85.css",
|
|
4352
4353
|
"styles/989847d3f18143a3d11a.css",
|
|
4353
4354
|
"styles/3633fb5ffc37b6206270.css",
|
|
@@ -4393,7 +4394,7 @@
|
|
|
4393
4394
|
"scripts/af20ced2e34b6801258c.js",
|
|
4394
4395
|
"scripts/d0fd50a5b063d113a609.js",
|
|
4395
4396
|
"scripts/041b37f609bd582c55eb.js",
|
|
4396
|
-
"scripts/
|
|
4397
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
4397
4398
|
"scripts/5134117eead22be509e9.js",
|
|
4398
4399
|
"scripts/5cb7b258824862644a28.js",
|
|
4399
4400
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -4451,7 +4452,7 @@
|
|
|
4451
4452
|
"scripts/af20ced2e34b6801258c.js",
|
|
4452
4453
|
"scripts/d0fd50a5b063d113a609.js",
|
|
4453
4454
|
"scripts/041b37f609bd582c55eb.js",
|
|
4454
|
-
"scripts/
|
|
4455
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
4455
4456
|
"scripts/5134117eead22be509e9.js",
|
|
4456
4457
|
"scripts/5cb7b258824862644a28.js",
|
|
4457
4458
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -4845,7 +4846,7 @@
|
|
|
4845
4846
|
"scripts/eaa0235775929a686f9c.js",
|
|
4846
4847
|
"scripts/c3b673fbfb24084ec12a.js",
|
|
4847
4848
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
4848
|
-
"scripts/
|
|
4849
|
+
"scripts/33338fbf2c1d8ffac932.js",
|
|
4849
4850
|
"scripts/79134396a3d8568b2d85.js",
|
|
4850
4851
|
"scripts/9a27d3c4075175dde6b2.js"
|
|
4851
4852
|
],
|
|
@@ -4853,7 +4854,7 @@
|
|
|
4853
4854
|
"styles/dbe1b855d20944778934.css",
|
|
4854
4855
|
"styles/18f2445b32c899cb5d25.css",
|
|
4855
4856
|
"styles/66b8a5d09a8317bd9092.css",
|
|
4856
|
-
"styles/
|
|
4857
|
+
"styles/33338fbf2c1d8ffac932.css",
|
|
4857
4858
|
"styles/79134396a3d8568b2d85.css"
|
|
4858
4859
|
]
|
|
4859
4860
|
},
|
|
@@ -4936,7 +4937,7 @@
|
|
|
4936
4937
|
"scripts/24228f9eee7eb5c30688.js",
|
|
4937
4938
|
"scripts/af20ced2e34b6801258c.js",
|
|
4938
4939
|
"scripts/d83b18cb157603b0cef0.js",
|
|
4939
|
-
"scripts/
|
|
4940
|
+
"scripts/26464bf3b6b836ebafd4.js",
|
|
4940
4941
|
"scripts/410ed665fa237995cbea.js",
|
|
4941
4942
|
"scripts/7f87599bcff470b80aa8.js",
|
|
4942
4943
|
"scripts/0d17722dad87252e24c0.js",
|
|
@@ -4952,7 +4953,7 @@
|
|
|
4952
4953
|
"styles/24228f9eee7eb5c30688.css",
|
|
4953
4954
|
"styles/af20ced2e34b6801258c.css",
|
|
4954
4955
|
"styles/d83b18cb157603b0cef0.css",
|
|
4955
|
-
"styles/
|
|
4956
|
+
"styles/26464bf3b6b836ebafd4.css",
|
|
4956
4957
|
"styles/410ed665fa237995cbea.css",
|
|
4957
4958
|
"styles/7f87599bcff470b80aa8.css",
|
|
4958
4959
|
"styles/10de03ac5ae18685a4d6.css"
|
|
@@ -5003,7 +5004,7 @@
|
|
|
5003
5004
|
"scripts/c80c8ce37c7efcd72e8c.js",
|
|
5004
5005
|
"scripts/d83b18cb157603b0cef0.js",
|
|
5005
5006
|
"scripts/99ebea592b18c058007c.js",
|
|
5006
|
-
"scripts/
|
|
5007
|
+
"scripts/26464bf3b6b836ebafd4.js",
|
|
5007
5008
|
"scripts/410ed665fa237995cbea.js",
|
|
5008
5009
|
"scripts/7f87599bcff470b80aa8.js",
|
|
5009
5010
|
"scripts/0d17722dad87252e24c0.js",
|
|
@@ -5022,7 +5023,7 @@
|
|
|
5022
5023
|
"styles/d839a047c06007790380.css",
|
|
5023
5024
|
"styles/c80c8ce37c7efcd72e8c.css",
|
|
5024
5025
|
"styles/d83b18cb157603b0cef0.css",
|
|
5025
|
-
"styles/
|
|
5026
|
+
"styles/26464bf3b6b836ebafd4.css",
|
|
5026
5027
|
"styles/410ed665fa237995cbea.css",
|
|
5027
5028
|
"styles/7f87599bcff470b80aa8.css",
|
|
5028
5029
|
"styles/8a2ceb55280372f1c1dc.css"
|
|
@@ -5272,7 +5273,7 @@
|
|
|
5272
5273
|
"scripts/24228f9eee7eb5c30688.js",
|
|
5273
5274
|
"scripts/af20ced2e34b6801258c.js",
|
|
5274
5275
|
"scripts/041b37f609bd582c55eb.js",
|
|
5275
|
-
"scripts/
|
|
5276
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
5276
5277
|
"scripts/5134117eead22be509e9.js",
|
|
5277
5278
|
"scripts/5cb7b258824862644a28.js",
|
|
5278
5279
|
"scripts/dbad93808750c8f454a1.js",
|
|
@@ -5570,11 +5571,11 @@
|
|
|
5570
5571
|
"scripts/3a9571cfaf25865bccc9.js",
|
|
5571
5572
|
"scripts/3c7b64a4aa1a9174c9ad.js",
|
|
5572
5573
|
"scripts/c1a64ee988fb3c484ca2.js",
|
|
5573
|
-
"scripts/
|
|
5574
|
+
"scripts/26464bf3b6b836ebafd4.js",
|
|
5574
5575
|
"scripts/c305c8488663fa1444b2.js"
|
|
5575
5576
|
],
|
|
5576
5577
|
"styles": [
|
|
5577
|
-
"styles/
|
|
5578
|
+
"styles/26464bf3b6b836ebafd4.css"
|
|
5578
5579
|
]
|
|
5579
5580
|
},
|
|
5580
5581
|
"VsTabItem": {
|
|
@@ -5713,7 +5714,7 @@
|
|
|
5713
5714
|
"scripts/18f2445b32c899cb5d25.js",
|
|
5714
5715
|
"scripts/24228f9eee7eb5c30688.js",
|
|
5715
5716
|
"scripts/041b37f609bd582c55eb.js",
|
|
5716
|
-
"scripts/
|
|
5717
|
+
"scripts/276a4b2a5a2c50e90936.js",
|
|
5717
5718
|
"scripts/5134117eead22be509e9.js",
|
|
5718
5719
|
"scripts/e3df89c35c49687c02b1.js",
|
|
5719
5720
|
"scripts/1448817d8612666a0079.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1274],{
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1274],{14275:function(){},86591:function(t,e,n){"use strict";var s=n(92854);e.Z={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:s.tF},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:function(t){return t.match(/(responsive|stacked)/)}}},computed:{responsive:function(){return"responsive"===this.tableType},stacked:function(){return"stacked"===this.tableType}}}},17690:function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var s=n(66252),r=n(3577),a={class:"sr-only","data-test":"vs-table__caption"};function i(t,e,n,i,o,c){var u=(0,s.up)("BTableSimple");return(0,s.wg)(),(0,s.j4)(u,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:c.responsive,stacked:c.stacked},{default:(0,s.w5)((function(){return[(0,s._)("caption",a,(0,r.toDisplayString)(n.tableCaption),1),(0,s.WI)(t.$slots,"default")]})),_:3},8,["responsive","stacked"])}},12984:function(t,e,n){"use strict";var s=n(93379),r=n.n(s),a=n(7795),i=n.n(a),o=n(90569),c=n.n(o),u=n(3565),l=n.n(u),p=n(19216),d=n.n(p),f=n(44589),v=n.n(f),b=n(14275),m=n.n(b),y={};y.styleTagTransform=v(),y.setAttributes=l(),y.insert=c().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),r()(m(),y),m()&&m().locals&&m().locals},51274:function(t,e,n){"use strict";n.r(e);var s=n(85629),r=n(65289);n(45751);const a=(0,n(83744).Z)(r.Z,[["render",s.s]]);e.default=a},65289:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(86591)},85629:function(t,e,n){"use strict";n.d(e,{s:function(){return s.s}});var s=n(17690)},45751:function(t,e,n){"use strict";n(12984)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3810],{67106:function(t,e,n){var o=n(10282),i=n(65465),u=null,
|
|
1
|
+
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3810],{67106:function(t,e,n){var o=n(10282),i=n(65465),u=null,s={data:function(){return{timesRun:0,cookiesInitStatus:null}},computed:{cookiesSet:function(){return u?u.allowedCookies:[]},onetrustActiveGroups:function(){return window.OnetrustActiveGroups},requiredCookiesExist:function(){var t=this,e=!0;return this.requiredCookies?this.requiredCookies.forEach((function(n){-1===t.cookiesSet.indexOf(n)&&(e=!1)})):e=!1,e}},mounted:function(){var t=this;u=(0,i.Z)((0,o.Z)());var e=setInterval((function(){t.timesRun+=1,t.timesRun,t.timesRun>50?(n(),void 0!==t.onetrustActiveGroups&&null!==t.cookiesInitStatus||(t.cookiesInitStatus="error")):t.cookiesSet.length>0&&(n(),t.cookiesInitStatus=!0)}),100),n=function(){clearInterval(e)}}};e.Z=s},16033:function(t,e){e.Z={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3817],{80621:function(){},186:function(t,e,n){"use strict";var i=n(5705),a=n(92854),r=n(83918),l=n(40479);e.Z={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:a.eI,VsButton:r.default},mixins:[l.Z],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default:function(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default:function(){return{}}},genericValidation:{type:Object,default:function(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:function(){return{v$:(0,i.ZP)()}},data:function(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass:function(){var t=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",e="vs-input--".concat(this.fieldName);return"".concat(t," ").concat(e)},showClearButton:function(){return!(!this.inputVal.length||""===this.clearButtonText)},errorClass:function(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate:function(){this.manualValidate()},inputVal:function(t){this.$emit("updated",{field:this.fieldName,value:t})},value:function(t){this.inputVal=t}},methods:{clearInput:function(){this.inputVal=""},focusOnInput:function(){var t=this;this.$nextTick((function(){t.$refs.input.$el.focus()}))},clearInputAndFocus:function(){this.clearInput(),this.focusOnInput()},autocompleteValue:function(t){var e;switch(t){case"firstName":e="given-name";break;case"lastName":e="family-name";break;case"Email":e="email";break;case"PostalCode":e="postal-code";break;default:e=this.autoComplete?"on":"off"}return e},validateErrors:function(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors:function(){this.clearErrorsOnFocus=!0}},validations:function(){return this.rules}}},37450:function(t,e,n){"use strict";n.d(e,{s:function(){return d}});var i=n(66252),a=n(3577),r=n(49963),l={"data-test":"vs-input"},o=["id"],u=["id"],s={class:"sr-only"},c={class:"sr-only"};function d(t,e,n,d,p,f){var v=(0,i.up)("BFormInput"),m=(0,i.up)("VsButton");return(0,i.wg)(),(0,i.iD)("div",l,[n.hintText?((0,i.wg)(),(0,i.iD)("p",{key:0,class:"hint-text",id:"hint-".concat(n.fieldName)},(0,a.toDisplayString)(n.hintText),9,o)):(0,i.kq)("",!0),t.errorsList.length||n.invalid?((0,i.wg)(),(0,i.iD)("div",{key:1,role:"alert","aria-live":"assertive",id:"error-".concat(n.fieldName)},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.errorsList,(function(t){return(0,i.wy)(((0,i.wg)(),(0,i.iD)("p",{key:t,class:"error mb-0"},[(0,i._)("span",s,(0,a.toDisplayString)(n.fieldName),1),(0,i.Uk)(" "+(0,a.toDisplayString)(n.validationMessages[t]||n.genericValidation[t]),1)])),[[r.vShow,!n.reAlertErrors&&!p.clearErrorsOnFocus]])})),128))],8,u)):(0,i.kq)("",!0),(0,i.Wm)(v,{ref:"input",type:n.type,class:(0,a.normalizeClass)(["vs-input",f.elementClass]),modelValue:p.inputVal,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.inputVal=t}),id:n.fieldName,name:n.fieldName,placeholder:n.placeholder,required:t.isRequired,autocomplete:f.autocompleteValue(n.fieldName),v:p.inputVal,"aria-invalid":t.v$.inputVal&&t.v$.inputVal.$anyError||n.invalid,"aria-describedby":t.v$.inputVal&&t.v$.inputVal.$anyError||n.invalid?"error-".concat(n.fieldName):"hint-".concat(n.fieldName),maxlength:n.validationRules.maxLength?n.validationRules.maxLength:null,minlength:n.validationRules.minLength?n.validationRules.minLength:null,onBlur:f.validateErrors,onChange:f.validateErrors,onFocus:f.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","onBlur","onChange","onFocus"]),f.showClearButton?((0,i.wg)(),(0,i.j4)(m,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:e[1]||(e[1]=(0,r.withModifiers)((function(t){return f.clearInputAndFocus()}),["prevent"]))},{default:(0,i.w5)((function(){return[(0,i._)("span",c,(0,a.toDisplayString)(n.clearButtonText),1)]})),_:1})):(0,i.kq)("",!0)])}},99241:function(t,e,n){"use strict";var i=n(93379),a=n.n(i),r=n(7795),l=n.n(r),o=n(90569),u=n.n(o),s=n(3565),c=n.n(s),d=n(19216),p=n.n(d),f=n(44589),v=n.n(f),m=n(80621),h=n.n(m),y={};y.styleTagTransform=v(),y.setAttributes=c(),y.insert=u().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=p(),a()(h(),y),h()&&h().locals&&h().locals},63817:function(t,e,n){"use strict";n.r(e);var i=n(61387),a=n(14073);n(98290);const r=(0,n(83744).Z)(a.Z,[["render",i.s]]);e.default=r},14073:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(186)},61387:function(t,e,n){"use strict";n.d(e,{s:function(){return i.s}});var i=n(37450)},98290:function(t,e,n){"use strict";n(99241)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsApp=n():t.VsApp=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[208],{45987:function(){},2236:function(){},96612:function(t,n,e){"use strict";e.r(n),e.d(n,{Vue:function(){return r.w3},initApp:function(){return o},initSSRApp:function(){return i}});var r=e(78530),o=function(t){return(0,r.QB)(t)},i=function(t){var n=document.querySelector("#app-template").innerHTML;return t.template=n,(0,r.Xm)(t)}},78530:function(t,n,e){"use strict";e.d(n,{QB:function(){return d},Xm:function(){return v},w3:function(){return s}});var r=e(4942),o=e(49963),i=e(59391);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s=e(76765).Vue,f=e(96486),a=f.isObject,p=f.each,l="no-js",b=e(64183).BTab;e(57924),e(6967);var m=function(){var t=document.getElementsByClassName(l);p(t,(function(t){t.classList.remove(l)}))},d=function(t,n){var e=(0,o.createApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e},v=function(t,n){var e=(0,o.createSSRApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e}},6967:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(45987),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0},57924:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(2236),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0}},function(t){return t.O(0,[6252,7991,9963,6486,4942,6765,
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsApp=n():t.VsApp=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[208],{45987:function(){},2236:function(){},96612:function(t,n,e){"use strict";e.r(n),e.d(n,{Vue:function(){return r.w3},initApp:function(){return o},initSSRApp:function(){return i}});var r=e(78530),o=function(t){return(0,r.QB)(t)},i=function(t){var n=document.querySelector("#app-template").innerHTML;return t.template=n,(0,r.Xm)(t)}},78530:function(t,n,e){"use strict";e.d(n,{QB:function(){return d},Xm:function(){return v},w3:function(){return s}});var r=e(4942),o=e(49963),i=e(59391);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s=e(76765).Vue,f=e(96486),a=f.isObject,p=f.each,l="no-js",b=e(64183).BTab;e(57924),e(6967);var m=function(){var t=document.getElementsByClassName(l);p(t,(function(t){t.classList.remove(l)}))},d=function(t,n){var e=(0,o.createApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e},v=function(t,n){var e=(0,o.createSSRApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e}},6967:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(45987),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0},57924:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(2236),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0}},function(t){return t.O(0,[6252,7991,9963,6486,4942,6765,4092],(function(){return 96612,t(t.s=96612)})),t.O()}])}));
|
|
@@ -0,0 +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.VsVideo=t():e.VsVideo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5427],{76841:function(){},64026:function(e,t,i){"use strict";var n=i(2498),o=i(22048),s=i(10282),r=i(44545),u=i.n(r),a=i(68497),d=i(67106),l=i(16033),c=i(60976),f=null,h=l.Z.youtube;t.Z={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:o.default,YoutubeVue3:n.YoutubeVue3},mixins:[d.Z,c.Z],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data:function(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},requiredCookies:h,player:null,reRendering:!1,shouldAutoPlay:!1}},computed:{showError:function(){return!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus||!1===this.cookiesInitStatus},warningText:function(){var e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),"error"===this.cookiesInitStatus&&(e=this.errorMessage),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookiesMessage),e}},mounted:function(){this.jsDisabled=(0,a.Z)(),f=u()((0,s.Z)()),this.$refs.youtube&&(this.player=this.$refs.youtube.player,this.getPlayerDetails()),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo()),this.setEventListeners()},methods:{playVideo:function(){this.player&&this.player.playVideo()},pauseVideo:function(){this.player&&this.player.pauseVideo()},youtubePlaying:function(){this.analyticsEvent("play")},youtubePaused:function(){this.analyticsEvent("pause")},youtubeEnded:function(){this.analyticsEvent("ended")},analyticsEvent:function(e){var t=this,i=0,n=0;this.player.getCurrentTime().then((function(e){return i=e,t.player.getDuration()})).then((function(e){n=e})).then((function(){var o=i/n*100;t.createDataLayerObject("videoTrackingDataEvent",{title:t.videoTitle,status:e,percent:Math.round(o)})}))},getPlayerDetails:function(){var e=this;void 0!==this.player&&this.player.getDuration().then((function(t){e.formatTime(t),e.storeVideoDetails()}))},formatTime:function(e){var t=Math.floor(e/60),i=e-60*t;this.duration.minutes=t,this.duration.seconds=i;var n=this.getRoundedMinutes(t,i);this.duration.roundedMinutes=this.formatSingularOrPlural(n)},getRoundedMinutes:function(e,t){return t<30&&0!==e?e:e+1},formatSingularOrPlural:function(e){return 1===e?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad:function(e){return e>=10?e:"0".concat(e)},storeVideoDetails:function(){f.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:60*this.duration.minutes+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners:function(){var e=this;this.emitter&&this.emitter.on("video-controls",(function(t){t.id===e.videoId&&("modal-opened"===t.action&&e.playVideo(),"modal-closed"===t.action&&e.reRenderVideo(),"play"===t.action?e.playVideo():"pause"===t.action&&e.pauseVideo())}))},reRenderVideo:function(){var e=this;this.reRendering=!0,this.$nextTick((function(){e.reRendering=!1,e.$nextTick((function(){e.shouldAutoPlay=!0}))}))}}}},41974:function(e,t,i){"use strict";i.d(t,{s:function(){return a}});var n=i(66252),o=i(3577),s={key:0,class:"vs-video","data-test":"vs-video"},r={class:"vs-video__iframe-wrapper"},u={key:0};function a(e,t,i,a,d,l){var c=(0,n.up)("YoutubeVue3"),f=(0,n.up)("VsWarning");return d.reRendering?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",r,[e.requiredCookiesExist?((0,n.wg)(),(0,n.iD)("div",u,[(0,n.Wm)(c,{autoplay:0,videoid:i.videoId,vars:d.playerVars,onPlayed:l.youtubePlaying,onPaused:l.youtubePaused,onEnded:l.youtubeEnded,ref:"youtube"},null,8,["videoid","vars","onPlayed","onPaused","onEnded"])])):(0,n.kq)("",!0),l.showError?((0,n.wg)(),(0,n.j4)(f,{key:1,theme:"light",type:!0===e.cookiesInitStatus?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},(0,n.Nv)({default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(l.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(i.cookieBtnText),1)]})),key:"0"}]),1032,["type"])):(0,n.kq)("",!0),(0,n.Wm)(f,{theme:"light","data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(i.noJsMessage),1)]})),_:1})])]))}},13721:function(e,t,i){"use strict";var n=i(93379),o=i.n(n),s=i(7795),r=i.n(s),u=i(90569),a=i.n(u),d=i(3565),l=i.n(d),c=i(19216),f=i.n(c),h=i(44589),p=i.n(h),y=i(76841),v=i.n(y),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=f(),o()(v(),g),v()&&v().locals&&v().locals},55677:function(e,t,i){"use strict";i.r(t);var n=i(17622),o=i(69417);i(58462);const s=(0,i(83744).Z)(o.Z,[["render",n.s]]);t.default=s},69417:function(e,t,i){"use strict";i.d(t,{Z:function(){return n.Z}});var n=i(64026)},17622:function(e,t,i){"use strict";i.d(t,{s:function(){return n.s}});var n=i(41974)},58462:function(e,t,i){"use strict";i(13721)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,2498,7370,282,976,3918,2048,5465,3810,4545,8497],(function(){return 55677,e(e.s=55677)})),e.O()}])}));
|