@visitscotland/component-library 4.7.4 → 4.7.5
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/dist/client/manifest.json +20 -20
- package/dist/client/scripts/4c1f26c64e28681543ad.js +1 -0
- package/dist/client/scripts/51ed41fd6db0d0868840.js +1 -0
- package/dist/components/components/form/Form.vue.d.ts +9 -0
- package/dist/components/components/select/Select.vue.d.ts +27 -12
- package/dist/components/vs-component-library.js +169 -169
- package/dist/components/vs-component-library.mjs +8314 -8309
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +231 -231
- package/CHANGELOG.md +0 -2740
- package/dist/client/scripts/3be3d5d2ab11521ed91e.js +0 -1
- package/dist/client/scripts/931e439b7e0146d7adb6.js +0 -1
- /package/dist/client/styles/{3be3d5d2ab11521ed91e.css → 4c1f26c64e28681543ad.css} +0 -0
- /package/dist/client/styles/{931e439b7e0146d7adb6.css → 51ed41fd6db0d0868840.css} +0 -0
- /package/dist/ssr/styles/{a84fc60f665c6740f15e.css → bb8533f3d75ac430afdb.css} +0 -0
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
"scripts/0e6fcaca5793d325e71f.js",
|
|
1518
1518
|
"scripts/c31932e999f4e02b0740.js",
|
|
1519
1519
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
1520
|
-
"scripts/
|
|
1520
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
1521
1521
|
"scripts/8c8506dd855920073398.js",
|
|
1522
1522
|
"scripts/7598be4ae5f3a7c45c3a.js"
|
|
1523
1523
|
],
|
|
@@ -1529,7 +1529,7 @@
|
|
|
1529
1529
|
"styles/f875df71c41035b40148.css",
|
|
1530
1530
|
"styles/a1ea6d101866bc682576.css",
|
|
1531
1531
|
"styles/0e6fcaca5793d325e71f.css",
|
|
1532
|
-
"styles/
|
|
1532
|
+
"styles/4c1f26c64e28681543ad.css",
|
|
1533
1533
|
"styles/8c8506dd855920073398.css",
|
|
1534
1534
|
"styles/7598be4ae5f3a7c45c3a.css"
|
|
1535
1535
|
]
|
|
@@ -2130,7 +2130,7 @@
|
|
|
2130
2130
|
"scripts/a1ea6d101866bc682576.js",
|
|
2131
2131
|
"scripts/cfe96a783d352e853006.js",
|
|
2132
2132
|
"scripts/1f944b7a9138911f95c4.js",
|
|
2133
|
-
"scripts/
|
|
2133
|
+
"scripts/51ed41fd6db0d0868840.js",
|
|
2134
2134
|
"scripts/74e9a93f4abb0b57f514.js",
|
|
2135
2135
|
"scripts/9182f2de912fe63af3b6.js",
|
|
2136
2136
|
"scripts/93ea6cb5cb3335737428.js",
|
|
@@ -2142,7 +2142,7 @@
|
|
|
2142
2142
|
"styles/24057be9ca44741f3c32.css",
|
|
2143
2143
|
"styles/a1ea6d101866bc682576.css",
|
|
2144
2144
|
"styles/1f944b7a9138911f95c4.css",
|
|
2145
|
-
"styles/
|
|
2145
|
+
"styles/51ed41fd6db0d0868840.css",
|
|
2146
2146
|
"styles/74e9a93f4abb0b57f514.css",
|
|
2147
2147
|
"styles/9182f2de912fe63af3b6.css",
|
|
2148
2148
|
"styles/93ea6cb5cb3335737428.css",
|
|
@@ -3848,7 +3848,7 @@
|
|
|
3848
3848
|
"scripts/0e6fcaca5793d325e71f.js",
|
|
3849
3849
|
"scripts/c31932e999f4e02b0740.js",
|
|
3850
3850
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
3851
|
-
"scripts/
|
|
3851
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
3852
3852
|
"scripts/01527cee581757e82bbd.js"
|
|
3853
3853
|
],
|
|
3854
3854
|
"styles": [
|
|
@@ -3858,7 +3858,7 @@
|
|
|
3858
3858
|
"styles/f875df71c41035b40148.css",
|
|
3859
3859
|
"styles/a1ea6d101866bc682576.css",
|
|
3860
3860
|
"styles/0e6fcaca5793d325e71f.css",
|
|
3861
|
-
"styles/
|
|
3861
|
+
"styles/4c1f26c64e28681543ad.css",
|
|
3862
3862
|
"styles/01527cee581757e82bbd.css"
|
|
3863
3863
|
]
|
|
3864
3864
|
},
|
|
@@ -3901,7 +3901,7 @@
|
|
|
3901
3901
|
"scripts/0e6fcaca5793d325e71f.js",
|
|
3902
3902
|
"scripts/c31932e999f4e02b0740.js",
|
|
3903
3903
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
3904
|
-
"scripts/
|
|
3904
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
3905
3905
|
"scripts/3e161476a901afaa0a49.js"
|
|
3906
3906
|
],
|
|
3907
3907
|
"styles": [
|
|
@@ -3911,7 +3911,7 @@
|
|
|
3911
3911
|
"styles/f875df71c41035b40148.css",
|
|
3912
3912
|
"styles/a1ea6d101866bc682576.css",
|
|
3913
3913
|
"styles/0e6fcaca5793d325e71f.css",
|
|
3914
|
-
"styles/
|
|
3914
|
+
"styles/4c1f26c64e28681543ad.css",
|
|
3915
3915
|
"styles/3e161476a901afaa0a49.css"
|
|
3916
3916
|
]
|
|
3917
3917
|
},
|
|
@@ -4198,7 +4198,7 @@
|
|
|
4198
4198
|
"scripts/13a3665f4f37c4c1e8fc.js",
|
|
4199
4199
|
"scripts/c31932e999f4e02b0740.js",
|
|
4200
4200
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4201
|
-
"scripts/
|
|
4201
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
4202
4202
|
"scripts/8c8506dd855920073398.js",
|
|
4203
4203
|
"scripts/8e385b0dd7f538a68ee5.js"
|
|
4204
4204
|
],
|
|
@@ -4210,7 +4210,7 @@
|
|
|
4210
4210
|
"styles/a1ea6d101866bc682576.css",
|
|
4211
4211
|
"styles/0e6fcaca5793d325e71f.css",
|
|
4212
4212
|
"styles/13a3665f4f37c4c1e8fc.css",
|
|
4213
|
-
"styles/
|
|
4213
|
+
"styles/4c1f26c64e28681543ad.css",
|
|
4214
4214
|
"styles/8c8506dd855920073398.css",
|
|
4215
4215
|
"styles/8e385b0dd7f538a68ee5.css"
|
|
4216
4216
|
]
|
|
@@ -4255,7 +4255,7 @@
|
|
|
4255
4255
|
"scripts/13a3665f4f37c4c1e8fc.js",
|
|
4256
4256
|
"scripts/c31932e999f4e02b0740.js",
|
|
4257
4257
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4258
|
-
"scripts/
|
|
4258
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
4259
4259
|
"scripts/8c8506dd855920073398.js",
|
|
4260
4260
|
"scripts/b0037533f99665d7dc59.js"
|
|
4261
4261
|
],
|
|
@@ -4267,7 +4267,7 @@
|
|
|
4267
4267
|
"styles/a1ea6d101866bc682576.css",
|
|
4268
4268
|
"styles/0e6fcaca5793d325e71f.css",
|
|
4269
4269
|
"styles/13a3665f4f37c4c1e8fc.css",
|
|
4270
|
-
"styles/
|
|
4270
|
+
"styles/4c1f26c64e28681543ad.css",
|
|
4271
4271
|
"styles/8c8506dd855920073398.css",
|
|
4272
4272
|
"styles/b0037533f99665d7dc59.css"
|
|
4273
4273
|
]
|
|
@@ -4834,7 +4834,7 @@
|
|
|
4834
4834
|
"scripts/1f944b7a9138911f95c4.js",
|
|
4835
4835
|
"scripts/9a1bce46b5c164f4115a.js",
|
|
4836
4836
|
"scripts/0aa3886d899776d7b7da.js",
|
|
4837
|
-
"scripts/
|
|
4837
|
+
"scripts/51ed41fd6db0d0868840.js",
|
|
4838
4838
|
"scripts/9cc884955ede1a1f19dc.js",
|
|
4839
4839
|
"scripts/497f0ae37f9e41601f19.js",
|
|
4840
4840
|
"scripts/71e0181f28417b5f5e25.js",
|
|
@@ -4849,7 +4849,7 @@
|
|
|
4849
4849
|
"styles/0154c4ad1c6883397674.css",
|
|
4850
4850
|
"styles/1f944b7a9138911f95c4.css",
|
|
4851
4851
|
"styles/9a1bce46b5c164f4115a.css",
|
|
4852
|
-
"styles/
|
|
4852
|
+
"styles/51ed41fd6db0d0868840.css",
|
|
4853
4853
|
"styles/9cc884955ede1a1f19dc.css",
|
|
4854
4854
|
"styles/71e0181f28417b5f5e25.css",
|
|
4855
4855
|
"styles/ae3f8963964ac8637730.css",
|
|
@@ -4906,7 +4906,7 @@
|
|
|
4906
4906
|
"scripts/1f944b7a9138911f95c4.js",
|
|
4907
4907
|
"scripts/9a1bce46b5c164f4115a.js",
|
|
4908
4908
|
"scripts/0aa3886d899776d7b7da.js",
|
|
4909
|
-
"scripts/
|
|
4909
|
+
"scripts/51ed41fd6db0d0868840.js",
|
|
4910
4910
|
"scripts/9cc884955ede1a1f19dc.js",
|
|
4911
4911
|
"scripts/497f0ae37f9e41601f19.js",
|
|
4912
4912
|
"scripts/71e0181f28417b5f5e25.js",
|
|
@@ -4924,7 +4924,7 @@
|
|
|
4924
4924
|
"styles/0154c4ad1c6883397674.css",
|
|
4925
4925
|
"styles/1f944b7a9138911f95c4.css",
|
|
4926
4926
|
"styles/9a1bce46b5c164f4115a.css",
|
|
4927
|
-
"styles/
|
|
4927
|
+
"styles/51ed41fd6db0d0868840.css",
|
|
4928
4928
|
"styles/9cc884955ede1a1f19dc.css",
|
|
4929
4929
|
"styles/71e0181f28417b5f5e25.css",
|
|
4930
4930
|
"styles/ae3f8963964ac8637730.css",
|
|
@@ -5115,11 +5115,11 @@
|
|
|
5115
5115
|
"scripts/81cd9dd39af58b5f3fa4.js",
|
|
5116
5116
|
"scripts/33a012db2f317e805618.js",
|
|
5117
5117
|
"scripts/cfe96a783d352e853006.js",
|
|
5118
|
-
"scripts/
|
|
5118
|
+
"scripts/51ed41fd6db0d0868840.js",
|
|
5119
5119
|
"scripts/be5d458e4228597bbe7f.js"
|
|
5120
5120
|
],
|
|
5121
5121
|
"styles": [
|
|
5122
|
-
"styles/
|
|
5122
|
+
"styles/51ed41fd6db0d0868840.css"
|
|
5123
5123
|
]
|
|
5124
5124
|
},
|
|
5125
5125
|
"VsSiteSearchForm": {
|
|
@@ -5592,7 +5592,7 @@
|
|
|
5592
5592
|
"scripts/0e6fcaca5793d325e71f.js",
|
|
5593
5593
|
"scripts/c31932e999f4e02b0740.js",
|
|
5594
5594
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
5595
|
-
"scripts/
|
|
5595
|
+
"scripts/4c1f26c64e28681543ad.js",
|
|
5596
5596
|
"scripts/d88e1e53842cc326fc62.js"
|
|
5597
5597
|
],
|
|
5598
5598
|
"styles": [
|
|
@@ -5602,7 +5602,7 @@
|
|
|
5602
5602
|
"styles/f875df71c41035b40148.css",
|
|
5603
5603
|
"styles/a1ea6d101866bc682576.css",
|
|
5604
5604
|
"styles/0e6fcaca5793d325e71f.css",
|
|
5605
|
-
"styles/
|
|
5605
|
+
"styles/4c1f26c64e28681543ad.css"
|
|
5606
5606
|
]
|
|
5607
5607
|
},
|
|
5608
5608
|
"VsStyledListItem": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9116],{5314:function(){},90020:function(e,t,s){"use strict";var n=s(13838),i=s(45676),a=s(31574),r=s(48836),d=s(79122),l=s(57957),c=s(45921),o=s.n(c);t.A={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:n.default,VsLink:i.default,VsImg:a.default,VsButton:r.default,VsWarning:d.default},inject:{noJsMessage:{default:null},theme:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:function(e){return e.match(/(1|2|3|4|5|6)/)}},headingStyle:{type:[String,Number],default:"heading-xs",validator:function(e){return e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)}},type:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:function(e){return e.match(/(image|full)/)}},warningSize:{type:String,default:"small",validator:function(e){return e.match(/(normal|small)/)}},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},setup:function(){return{videoStore:o()()}},data:function(){return{jsDisabled:!0}},computed:{formattedVideoBtnText:function(){return"".concat(this.videoBtnText," | ")},formattedVideoDuration:function(){var e="".concat(this.videoDetails.videoFullDuration.seconds);return 1===e.length&&(e="0".concat(e)),"".concat(this.videoDetails.videoFullDuration.minutes,":").concat(e)},stretchedLinkCardClasses:function(){var e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),"video"===this.type&&(e+=" vs-stretched-link-card--video"),this.showWarning&&"video"===this.type&&(e+=" vs-stretched-link-card--warning"),e},videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},warningClass:function(){var e="";return this.videoId&&this.jsDisabled&&(e="vs-stretched-link-card__img-container--warning ","full"===this.errorType&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showWarning:function(){return!!this.jsDisabled},warningMessage:function(){return this.errorMessage},warningAttrs:function(){var e={};return"small"===this.size&&(e.size="sm"),e}},mounted:function(){this.jsDisabled=(0,l.A)()},methods:{emitShowModal:function(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},96518:function(e,t,s){"use strict";s.d(t,{X:function(){return c}});var n=s(20641),i=s(90033),a={key:0,class:"vs-stretched-link-card__video-btn-text"},r={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},d={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},l={key:3,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function c(e,t,s,c,o,u){var h=(0,n.g2)("VsWarning"),g=(0,n.g2)("VsImg"),v=(0,n.g2)("VsButton"),f=(0,n.g2)("VsLink"),k=(0,n.g2)("VsHeading");return(0,n.uX)(),(0,n.CE)("div",{class:(0,i.normalizeClass)(["card vs-stretched-link-card",u.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)}),onKeypress:t[1]||(t[1]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)})},["full"===u.showWarning?((0,n.uX)(),(0,n.Wv)(h,{key:0,size:s.warningSize,type:"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(u.warningMessage),1)]})),_:1},8,["size"])):(0,n.Q3)("",!0),"full"===s.errorType&&""!==s.videoId?((0,n.uX)(),(0,n.Wv)(h,{key:1,size:s.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size"])):(0,n.Q3)("",!0),s.imgSrc?((0,n.uX)(),(0,n.CE)("div",{key:2,class:(0,i.normalizeClass)(["vs-stretched-link-card__img-container",u.warningClass])},[s.imgSrc?((0,n.uX)(),(0,n.Wv)(g,{key:0,src:s.imgSrc,alt:s.imgAlt,class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt"])):(0,n.Q3)("",!0),"image"===u.showWarning?((0,n.uX)(),(0,n.Wv)(h,{key:1,size:s.warningSize,type:"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(u.warningMessage),1)]})),_:1},8,["size"])):(0,n.Q3)("",!0),""!==s.videoId&&"image"===s.errorType?((0,n.uX)(),(0,n.Wv)(h,{key:2,size:s.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size"])):(0,n.Q3)("",!0)],2)):(0,n.Q3)("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,n.RG)(e.$slots,"stretched-card-panels",{key:3}):(0,n.Q3)("",!0),"full"!==u.showWarning?((0,n.uX)(),(0,n.CE)("div",{key:4,class:(0,i.normalizeClass)(["card-body",s.videoId?"position-relative":""])},[s.videoId&&u.videoLoaded?((0,n.uX)(),(0,n.Wv)(v,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:u.emitShowModal},{default:(0,n.k6)((function(){return[s.videoBtnText?((0,n.uX)(),(0,n.CE)("span",a,(0,i.toDisplayString)(u.formattedVideoBtnText),1)):(0,n.Q3)("",!0),(0,n.eW)(" "+(0,i.toDisplayString)(u.formattedVideoDuration),1)]})),_:1},8,["onClick"])):(0,n.Q3)("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?((0,n.uX)(),(0,n.CE)("span",r,[(0,n.RG)(e.$slots,"stretched-card-category")])):(0,n.Q3)("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?((0,n.uX)(),(0,n.Wv)(k,{key:2,level:s.headingLevel,"heading-style":s.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:(0,n.k6)((function(){return[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(0,n.RG)(e.$slots,"stretched-card-header",{key:0}):s.businessSupport||"video"!==s.type?((0,n.uX)(),(0,n.Wv)(f,{key:2,href:s.link,type:s.type,class:(0,i.normalizeClass)(["stretched-link",s.disabled?"stretched-link--disabled":""]),variant:"dark"===u.theme?"on-dark":"primary","data-test":"vs-stretched-link",disabled:s.disabled,tabindex:!s.videoId&&!s.disabled||s.businessSupport?"0":"-1"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"stretched-card-header")]})),_:3},8,["href","type","class","variant","disabled","tabindex"])):(0,n.RG)(e.$slots,"stretched-card-header",{key:1})]})),_:3},8,["level","heading-style"])):(0,n.Q3)("",!0),(0,n.Lk)("div",d,[(0,n.RG)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?((0,n.uX)(),(0,n.CE)("div",l,[(0,n.RG)(e.$slots,"stretched-card-badges")])):(0,n.Q3)("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,n.uX)(),(0,n.Wv)(f,{key:4,href:s.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"stretched-card-link")]})),_:3},8,["href"])):(0,n.Q3)("",!0)],2)):(0,n.Q3)("",!0)],34)}},64500:function(e,t,s){"use strict";var n=s(85072),i=s.n(n),a=s(97825),r=s.n(a),d=s(77659),l=s.n(d),c=s(55056),o=s.n(c),u=s(10540),h=s.n(u),g=s(41113),v=s.n(g),f=s(5314),k=s.n(f),y={};y.styleTagTransform=v(),y.setAttributes=o(),y.insert=l().bind(null,"head"),y.domAPI=r(),y.insertStyleElement=h(),i()(k(),y),k()&&k().locals&&k().locals},59116:function(e,t,s){"use strict";s.r(t);var n=s(65398),i=s(11736);s(18688);const a=(0,s(66262).A)(i.A,[["render",n.X]]);t.default=a},11736:function(e,t,s){"use strict";s.d(t,{A:function(){return n.A}});var n=s(90020)},65398:function(e,t,s){"use strict";s.d(t,{X:function(){return n.X}});var n=s(96518)},18688:function(e,t,s){"use strict";s(64500)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1688],{46663:function(){},53780:function(t,e,i){"use strict";var n=i(59639),r=i(34352),a=i(57536),s=i(85510),l=i(68269);e.A={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:r.JR},mixins:[s.A,l.A],props:{options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default:function(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default:function(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default:function(){return{}}},reAlertErrors:{type:Boolean,default:!1}},emits:["toggleAction","updated"],setup:function(){return{v$:(0,n.Ay)()}},data:function(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass:function(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions:function(){return this.countries?this.countryList:this.options}},watch:{inputVal:function(t){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:t})},value:function(t){this.inputVal=t},triggerValidate:function(){this.manualValidate()}},beforeMount:function(){var t=this;this.countries&&a.A.get(this.countryListUrl).then((function(e){t.countryList=e.data.countries}))},methods:{autocompleteValue:function(t){return"Country"===t?"country-name":"on"}},validations:function(){return this.rules}}},38099:function(t,e,i){"use strict";i.d(e,{X:function(){return d}});var n=i(20641),r=i(90033),a=i(53751),s={class:"vs-select"},l=["id"],u=["id"],o={class:"visually-hidden"},c={class:"vs-select__container mt-050"};function d(t,e,i,d,p,f){var m=(0,n.g2)("BFormSelect");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.Lk)("p",{class:"hint-text",id:"hint-".concat(i.fieldName)},(0,r.toDisplayString)(i.hintText),9,l),t.errorsList.length||i.invalid?((0,n.uX)(),(0,n.CE)("div",{key:0,role:"alert","aria-live":"assertive",id:"error-".concat(i.fieldName)},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.errorsList,(function(t){return(0,n.bo)(((0,n.uX)(),(0,n.CE)("p",{key:t,class:"error mb-0"},[(0,n.Lk)("span",o,(0,r.toDisplayString)(i.fieldName),1),(0,n.eW)(" "+(0,r.toDisplayString)(i.validationMessages[t]||i.genericValidation[t]),1)])),[[a.vShow,!i.reAlertErrors]])})),128))],8,u)):(0,n.Q3)("",!0),(0,n.Lk)("div",c,[(0,n.bF)(m,(0,n.v6)({modelValue:p.inputVal,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.inputVal=t})},t.$attrs,{options:f.fieldOptions,name:i.fieldName,id:i.fieldName,onChange:t.emitStatus,onBlur:t.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",f.errorClass],required:t.isRequired,"aria-invalid":t.v$.inputVal&&t.v$.inputVal.$anyError||i.invalid,"aria-describedby":t.ariaDescription,autocomplete:f.autocompleteValue(i.fieldName),multiple:i.multiple}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete","multiple"]),e[1]||(e[1]=(0,n.Lk)("span",{class:"vs-select__focus"},null,-1))])])}},97009:function(t,e,i){"use strict";var n=i(85072),r=i.n(n),a=i(97825),s=i.n(a),l=i(77659),u=i.n(l),o=i(55056),c=i.n(o),d=i(10540),p=i.n(d),f=i(41113),m=i.n(f),v=i(46663),y=i.n(v),h={};h.styleTagTransform=m(),h.setAttributes=c(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),r()(y(),h),y()&&y().locals&&y().locals},51688:function(t,e,i){"use strict";i.r(e);var n=i(62339),r=i(97144);i(17965);const a=(0,i(66262).A)(r.A,[["render",n.X]]);e.default=a},97144:function(t,e,i){"use strict";i.d(e,{A:function(){return n.A}});var n=i(53780)},62339:function(t,e,i){"use strict";i.d(e,{X:function(){return n.X}});var n=i(38099)},17965:function(t,e,i){"use strict";i(97009)}}]);
|
|
@@ -1506,6 +1506,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1506
1506
|
type: ArrayConstructor;
|
|
1507
1507
|
required: true;
|
|
1508
1508
|
};
|
|
1509
|
+
multiple: {
|
|
1510
|
+
type: BooleanConstructor;
|
|
1511
|
+
default: boolean;
|
|
1512
|
+
};
|
|
1509
1513
|
fieldName: {
|
|
1510
1514
|
type: StringConstructor;
|
|
1511
1515
|
required: true;
|
|
@@ -1591,6 +1595,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1591
1595
|
type: ArrayConstructor;
|
|
1592
1596
|
required: true;
|
|
1593
1597
|
};
|
|
1598
|
+
multiple: {
|
|
1599
|
+
type: BooleanConstructor;
|
|
1600
|
+
default: boolean;
|
|
1601
|
+
};
|
|
1594
1602
|
fieldName: {
|
|
1595
1603
|
type: StringConstructor;
|
|
1596
1604
|
required: true;
|
|
@@ -1647,6 +1655,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1647
1655
|
genericValidation: Record<string, any>;
|
|
1648
1656
|
reAlertErrors: boolean;
|
|
1649
1657
|
hintText: string;
|
|
1658
|
+
multiple: boolean;
|
|
1650
1659
|
countryListUrl: string;
|
|
1651
1660
|
countries: boolean;
|
|
1652
1661
|
}, {}, {
|
|
@@ -6,6 +6,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
6
6
|
type: ArrayConstructor;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
+
multiple: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
9
13
|
/**
|
|
10
14
|
* Name of the field (for name and id attributes)
|
|
11
15
|
*/
|
|
@@ -124,6 +128,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
124
128
|
type: ArrayConstructor;
|
|
125
129
|
required: true;
|
|
126
130
|
};
|
|
131
|
+
multiple: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
127
135
|
/**
|
|
128
136
|
* Name of the field (for name and id attributes)
|
|
129
137
|
*/
|
|
@@ -210,6 +218,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
210
218
|
genericValidation: Record<string, any>;
|
|
211
219
|
reAlertErrors: boolean;
|
|
212
220
|
hintText: string;
|
|
221
|
+
multiple: boolean;
|
|
213
222
|
countryListUrl: string;
|
|
214
223
|
countries: boolean;
|
|
215
224
|
}, {}, {
|
|
@@ -234,9 +243,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
234
243
|
htmlField?: string | undefined;
|
|
235
244
|
disabledField?: string | undefined;
|
|
236
245
|
optionsField?: string | undefined;
|
|
237
|
-
labelField
|
|
238
|
-
* Name of the field (for name and id attributes)
|
|
239
|
-
*/: string | undefined;
|
|
246
|
+
labelField?: string | undefined;
|
|
240
247
|
selectSize?: import('node_modules/bootstrap-vue-next/dist/src/types').Numberish | undefined;
|
|
241
248
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
242
249
|
slots: Readonly<{
|
|
@@ -254,11 +261,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
254
261
|
focus: () => void;
|
|
255
262
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
256
263
|
props: {
|
|
257
|
-
name
|
|
264
|
+
name? /**
|
|
265
|
+
* Prop to define invalid from parent
|
|
266
|
+
*/: string | undefined;
|
|
258
267
|
id?: string | undefined;
|
|
259
|
-
ariaInvalid
|
|
260
|
-
* Validation messages
|
|
261
|
-
*/: import('node_modules/bootstrap-vue-next/dist/src/types').AriaInvalid | undefined;
|
|
268
|
+
ariaInvalid?: import('node_modules/bootstrap-vue-next/dist/src/types').AriaInvalid | undefined;
|
|
262
269
|
autofocus?: boolean | undefined;
|
|
263
270
|
disabled?: boolean | undefined;
|
|
264
271
|
form?: string | undefined;
|
|
@@ -269,9 +276,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
269
276
|
state?: boolean | null | undefined;
|
|
270
277
|
modelValue?: ((string | number | boolean | readonly unknown[] | Readonly<Record<string, unknown>> | null) & T) | undefined;
|
|
271
278
|
options?: readonly unknown[] | undefined;
|
|
272
|
-
valueField
|
|
273
|
-
* Whether the options should be a countries list
|
|
274
|
-
*/: string | undefined;
|
|
279
|
+
valueField?: string | undefined;
|
|
275
280
|
textField?: string | undefined;
|
|
276
281
|
htmlField?: string | undefined;
|
|
277
282
|
disabledField?: string | undefined;
|
|
@@ -315,10 +320,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
315
320
|
textField?: string | undefined;
|
|
316
321
|
htmlField?: string | undefined;
|
|
317
322
|
disabledField?: string | undefined;
|
|
318
|
-
optionsField
|
|
323
|
+
optionsField
|
|
324
|
+
/**
|
|
325
|
+
* Watch for prop changing to allow parent
|
|
326
|
+
* to trigger validation
|
|
327
|
+
*/
|
|
328
|
+
? /**
|
|
329
|
+
* Watch for prop changing to allow parent
|
|
330
|
+
* to trigger validation
|
|
331
|
+
*/: string | undefined;
|
|
319
332
|
labelField?: string | undefined;
|
|
320
333
|
selectSize?: import('node_modules/bootstrap-vue-next/dist/src/types').Numberish | undefined;
|
|
321
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue'
|
|
334
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue' /**
|
|
335
|
+
* import country list
|
|
336
|
+
*/).ComponentCustomProps;
|
|
322
337
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
323
338
|
blur: () => void;
|
|
324
339
|
element: import('vue').Ref<HTMLElement | null>;
|