@visitscotland/component-library 1.1.6 → 1.1.7
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 +9 -0
- package/dist/client/manifest.json +6 -6
- package/dist/client/scripts/819a86ccc1840740fdc0.js +1 -0
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/84f8e87abd5e0ec1cadf.js +0 -1
- /package/dist/client/styles/{84f8e87abd5e0ec1cadf.css → 819a86ccc1840740fdc0.css} +0 -0
- /package/dist/ssr/styles/{bf28d0c1c2045553f438.css → 5210c2cd5c0ec429d805.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.1.7](https://github.com/visitscotland/vs-component-library/compare/v1.1.6...v1.1.7) (2024-01-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **img:** change generic-lqip image to jpg ([b64c98a](https://github.com/visitscotland/vs-component-library/commit/b64c98a4127492c84ec9a6b72b8dcb764d2456de))
|
|
11
|
+
* **img:** fix css image url in img.vue ([070095e](https://github.com/visitscotland/vs-component-library/commit/070095e76beaa65564eb1bd06eeb00332d67ffea))
|
|
12
|
+
* **psw:** adds refine date for dates except accommodation ([eef08ac](https://github.com/visitscotland/vs-component-library/commit/eef08aca942a4e1157400fc808d59119ae07a777))
|
|
13
|
+
|
|
5
14
|
### [1.1.6](https://github.com/visitscotland/vs-component-library/compare/v1.1.5...v1.1.6) (2024-01-08)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -4751,11 +4751,11 @@
|
|
|
4751
4751
|
"scripts/099931b2a1985cf7307d.js",
|
|
4752
4752
|
"scripts/9cd4cc94299fececb9d7.js",
|
|
4753
4753
|
"scripts/35bba8ee403d657ceb4c.js",
|
|
4754
|
-
"scripts/
|
|
4754
|
+
"scripts/819a86ccc1840740fdc0.js",
|
|
4755
4755
|
"scripts/85a038181804cb5be829.js"
|
|
4756
4756
|
],
|
|
4757
4757
|
"styles": [
|
|
4758
|
-
"styles/
|
|
4758
|
+
"styles/819a86ccc1840740fdc0.css"
|
|
4759
4759
|
]
|
|
4760
4760
|
},
|
|
4761
4761
|
"VsGuestSelector": {
|
|
@@ -4941,7 +4941,7 @@
|
|
|
4941
4941
|
"scripts/b8c746fea56f5ea7813b.js",
|
|
4942
4942
|
"scripts/35bba8ee403d657ceb4c.js",
|
|
4943
4943
|
"scripts/f2061257d8431377f104.js",
|
|
4944
|
-
"scripts/
|
|
4944
|
+
"scripts/819a86ccc1840740fdc0.js",
|
|
4945
4945
|
"scripts/23e1e23d4c7a09572a01.js",
|
|
4946
4946
|
"scripts/cebd58e82411678c9745.js",
|
|
4947
4947
|
"scripts/41bafdb9176c11d914bd.js"
|
|
@@ -4955,7 +4955,7 @@
|
|
|
4955
4955
|
"styles/6484599feca1c62261b8.css",
|
|
4956
4956
|
"styles/b8c746fea56f5ea7813b.css",
|
|
4957
4957
|
"styles/f2061257d8431377f104.css",
|
|
4958
|
-
"styles/
|
|
4958
|
+
"styles/819a86ccc1840740fdc0.css",
|
|
4959
4959
|
"styles/23e1e23d4c7a09572a01.css",
|
|
4960
4960
|
"styles/cebd58e82411678c9745.css"
|
|
4961
4961
|
]
|
|
@@ -5014,7 +5014,7 @@
|
|
|
5014
5014
|
"scripts/b8c746fea56f5ea7813b.js",
|
|
5015
5015
|
"scripts/35bba8ee403d657ceb4c.js",
|
|
5016
5016
|
"scripts/f2061257d8431377f104.js",
|
|
5017
|
-
"scripts/
|
|
5017
|
+
"scripts/819a86ccc1840740fdc0.js",
|
|
5018
5018
|
"scripts/23e1e23d4c7a09572a01.js",
|
|
5019
5019
|
"scripts/cebd58e82411678c9745.js",
|
|
5020
5020
|
"scripts/dd3dfc8685410eefd39b.js"
|
|
@@ -5031,7 +5031,7 @@
|
|
|
5031
5031
|
"styles/6484599feca1c62261b8.css",
|
|
5032
5032
|
"styles/b8c746fea56f5ea7813b.css",
|
|
5033
5033
|
"styles/f2061257d8431377f104.css",
|
|
5034
|
-
"styles/
|
|
5034
|
+
"styles/819a86ccc1840740fdc0.css",
|
|
5035
5035
|
"styles/23e1e23d4c7a09572a01.css",
|
|
5036
5036
|
"styles/cebd58e82411678c9745.css",
|
|
5037
5037
|
"styles/dd3dfc8685410eefd39b.css"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6882],{72532:function(){},4006:function(e,t,a){"use strict";var n=a(93379),l=a.n(n),u=a(7795),r=a.n(u),o=a(90569),c=a.n(o),d=a(3565),i=a.n(d),s=a(19216),v=a.n(s),f=a(44589),m=a.n(f),D=a(72532),p=a.n(D),g={};g.styleTagTransform=m(),g.setAttributes=i(),g.insert=c().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=v(),l()(p(),g),p()&&p().locals&&p().locals},45514:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(76765),u=a(76765),r={class:"vs-date-range","data-test":"vs-date-range"},o={class:"row align-items-center"},c={class:"col-12 col-sm-5 order-1"},d={class:"col-12 col-sm-5 order-2"},i={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},s={key:1,type:"hidden",name:"refine-date",value:"on"},v=["value"],f=a(76765),m=a(12147),D=n(a(27472));t.default=(0,l.defineComponent)({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup:function(e,t){var a=t.emit,n=e,l=a,p=(0,f.ref)(""),g=(0,f.ref)(""),b=(0,f.computed)((function(){return!!p.value||!!g.value})),y=(0,f.computed)((function(){var e=new Date(g.value),t=new Date(p.value),a=e.getTime()-t.getTime();return isNaN(a)?1:a/864e5}));function _(){p.value="",g.value=""}var w=function(e){var t=e.toLocaleString("default",{year:"numeric"}),a=e.toLocaleString("default",{month:"2-digit"}),n=e.toLocaleString("default",{day:"2-digit"});return"".concat(t,"-").concat(a,"-").concat(n)},h=(0,f.computed)((function(){return""===p.value?w(new Date):""})),k=(0,f.computed)((function(){var e;if(""!==p.value){var t=new Date(p.value);t.setDate(t.getDate()+1),e=w(t)}else if(n.defaultDates){var a=new Date,l=new Date(a);l.setDate(l.getDate()+1),e=w(l)}return e})),N=(0,f.computed)((function(){var e;if(""===p.value){var t=new Date,a=new Date(t);a.setDate(a.getDate()+1),e=w(a)}else{var n=new Date,l=new Date(p.value);n.setDate(l.getDate()+1),e=w(n)}return e}));function E(){var e,t;e=!(!p.value&&!g.value),l("dateUpdated",e),t=new Date(p.value),new Date(g.value)<=t&&(g.value="")}var C=(0,f.computed)((function(){return"acco"===n.selectedProd?"stay":"isostartdate"})),S=(0,f.computed)((function(){return"acco"===n.selectedProd?"endDate":"isoenddate"}));return function(t,a){return(0,u.openBlock)(),(0,u.createElementBlock)("fieldset",r,[(0,u.createElementVNode)("div",o,[(0,u.createElementVNode)("div",c,[(0,u.createVNode)(D.default,{label:e.startLabel,value:e.defaultDates&&""===p.value&&g.value?h.value:p.value,name:C.value,id:"startDate",onChangeDate:a[0]||(a[0]=function(e){p.value=e,E()}),class:"mb-4"},null,8,["label","value","name"])]),(0,u.createElementVNode)("div",d,[(0,u.createVNode)(D.default,{label:e.endLabel,value:e.defaultDates&&""===g.value&&p.value?k.value:g.value,"min-date":N.value,name:S.value,id:"endDate",onChangeDate:a[1]||(a[1]=function(e){g.value=e,E()}),class:"mb-4"},null,8,["label","value","min-date","name"])]),(0,u.createElementVNode)("div",i,[b.value?((0,u.openBlock)(),(0,u.createElementBlock)("button",{key:0,id:"clearDateRange",type:"button",onClick:_,class:"vs-date-range__clear"},(0,u.toDisplayString)((0,u.unref)(m.getLabelText)("reset","Clear")),1)):(0,u.createCommentVNode)("",!0),"acco"!==e.selectedProd?((0,u.openBlock)(),(0,u.createElementBlock)("input",s)):(0,u.createCommentVNode)("",!0),(0,u.createElementVNode)("input",{type:"hidden",name:"nights",value:y.value},null,8,v)])])])}}})},26882:function(e,t,a){"use strict";a.r(t);var n=a(48748),l={};for(var u in n)"default"!==u&&(l[u]=function(e){return n[e]}.bind(0,u));a.d(t,l),a(39211);const r=n.default;t.default=r},39211:function(e,t,a){"use strict";a(4006)},48748:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return l.a}});var n=a(45514),l=a.n(n),u={};for(var r in n)"default"!==r&&(u[r]=function(e){return n[e]}.bind(0,r));a.d(t,u)}}]);
|