@visitscotland/component-library 4.7.5 → 4.7.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/dist/client/manifest.json +8 -8
- package/dist/client/scripts/931e439b7e0146d7adb6.js +1 -0
- package/dist/components/components/form/Form.vue.d.ts +0 -9
- package/dist/components/components/select/Select.vue.d.ts +12 -27
- package/dist/components/vs-component-library.js +6 -6
- package/dist/components/vs-component-library.mjs +10 -15
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/51ed41fd6db0d0868840.js +0 -1
- /package/dist/client/styles/{51ed41fd6db0d0868840.css → 931e439b7e0146d7adb6.css} +0 -0
- /package/dist/ssr/styles/{bb8533f3d75ac430afdb.css → b0ecf83d87720cee4db4.css} +0 -0
|
@@ -2130,7 +2130,7 @@
|
|
|
2130
2130
|
"scripts/a1ea6d101866bc682576.js",
|
|
2131
2131
|
"scripts/cfe96a783d352e853006.js",
|
|
2132
2132
|
"scripts/1f944b7a9138911f95c4.js",
|
|
2133
|
-
"scripts/
|
|
2133
|
+
"scripts/931e439b7e0146d7adb6.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/931e439b7e0146d7adb6.css",
|
|
2146
2146
|
"styles/74e9a93f4abb0b57f514.css",
|
|
2147
2147
|
"styles/9182f2de912fe63af3b6.css",
|
|
2148
2148
|
"styles/93ea6cb5cb3335737428.css",
|
|
@@ -4834,7 +4834,7 @@
|
|
|
4834
4834
|
"scripts/1f944b7a9138911f95c4.js",
|
|
4835
4835
|
"scripts/9a1bce46b5c164f4115a.js",
|
|
4836
4836
|
"scripts/0aa3886d899776d7b7da.js",
|
|
4837
|
-
"scripts/
|
|
4837
|
+
"scripts/931e439b7e0146d7adb6.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/931e439b7e0146d7adb6.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/931e439b7e0146d7adb6.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/931e439b7e0146d7adb6.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/931e439b7e0146d7adb6.js",
|
|
5119
5119
|
"scripts/be5d458e4228597bbe7f.js"
|
|
5120
5120
|
],
|
|
5121
5121
|
"styles": [
|
|
5122
|
-
"styles/
|
|
5122
|
+
"styles/931e439b7e0146d7adb6.css"
|
|
5123
5123
|
]
|
|
5124
5124
|
},
|
|
5125
5125
|
"VsSiteSearchForm": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1688],{25656: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},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}}},31028: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,f,p){var v=(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)(v,(0,n.v6)({modelValue:f.inputVal,"onUpdate:modelValue":e[0]||(e[0]=function(t){return f.inputVal=t})},t.$attrs,{options:p.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",p.errorClass],required:t.isRequired,"aria-invalid":t.v$.inputVal&&t.v$.inputVal.$anyError||i.invalid,"aria-describedby":t.ariaDescription,autocomplete:p.autocompleteValue(i.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),e[1]||(e[1]=(0,n.Lk)("span",{class:"vs-select__focus"},null,-1))])])}},30642: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),f=i.n(d),p=i(41113),v=i.n(p),m=i(25656),y=i.n(m),h={};h.styleTagTransform=v(),h.setAttributes=c(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=f(),r()(y(),h),y()&&y().locals&&y().locals},51688:function(t,e,i){"use strict";i.r(e);var n=i(32100),r=i(97144);i(85302);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)},32100:function(t,e,i){"use strict";i.d(e,{X:function(){return n.X}});var n=i(31028)},85302:function(t,e,i){"use strict";i(30642)}}]);
|
|
@@ -1506,10 +1506,6 @@ 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
|
-
};
|
|
1513
1509
|
fieldName: {
|
|
1514
1510
|
type: StringConstructor;
|
|
1515
1511
|
required: true;
|
|
@@ -1595,10 +1591,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1595
1591
|
type: ArrayConstructor;
|
|
1596
1592
|
required: true;
|
|
1597
1593
|
};
|
|
1598
|
-
multiple: {
|
|
1599
|
-
type: BooleanConstructor;
|
|
1600
|
-
default: boolean;
|
|
1601
|
-
};
|
|
1602
1594
|
fieldName: {
|
|
1603
1595
|
type: StringConstructor;
|
|
1604
1596
|
required: true;
|
|
@@ -1655,7 +1647,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1655
1647
|
genericValidation: Record<string, any>;
|
|
1656
1648
|
reAlertErrors: boolean;
|
|
1657
1649
|
hintText: string;
|
|
1658
|
-
multiple: boolean;
|
|
1659
1650
|
countryListUrl: string;
|
|
1660
1651
|
countries: boolean;
|
|
1661
1652
|
}, {}, {
|
|
@@ -6,10 +6,6 @@ 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
|
-
};
|
|
13
9
|
/**
|
|
14
10
|
* Name of the field (for name and id attributes)
|
|
15
11
|
*/
|
|
@@ -128,10 +124,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
128
124
|
type: ArrayConstructor;
|
|
129
125
|
required: true;
|
|
130
126
|
};
|
|
131
|
-
multiple: {
|
|
132
|
-
type: BooleanConstructor;
|
|
133
|
-
default: boolean;
|
|
134
|
-
};
|
|
135
127
|
/**
|
|
136
128
|
* Name of the field (for name and id attributes)
|
|
137
129
|
*/
|
|
@@ -218,7 +210,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
218
210
|
genericValidation: Record<string, any>;
|
|
219
211
|
reAlertErrors: boolean;
|
|
220
212
|
hintText: string;
|
|
221
|
-
multiple: boolean;
|
|
222
213
|
countryListUrl: string;
|
|
223
214
|
countries: boolean;
|
|
224
215
|
}, {}, {
|
|
@@ -243,7 +234,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
243
234
|
htmlField?: string | undefined;
|
|
244
235
|
disabledField?: string | undefined;
|
|
245
236
|
optionsField?: string | undefined;
|
|
246
|
-
labelField
|
|
237
|
+
labelField? /**
|
|
238
|
+
* Name of the field (for name and id attributes)
|
|
239
|
+
*/: string | undefined;
|
|
247
240
|
selectSize?: import('node_modules/bootstrap-vue-next/dist/src/types').Numberish | undefined;
|
|
248
241
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
249
242
|
slots: Readonly<{
|
|
@@ -261,11 +254,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
261
254
|
focus: () => void;
|
|
262
255
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
263
256
|
props: {
|
|
264
|
-
name
|
|
265
|
-
* Prop to define invalid from parent
|
|
266
|
-
*/: string | undefined;
|
|
257
|
+
name?: string | undefined;
|
|
267
258
|
id?: string | undefined;
|
|
268
|
-
ariaInvalid
|
|
259
|
+
ariaInvalid? /**
|
|
260
|
+
* Validation messages
|
|
261
|
+
*/: import('node_modules/bootstrap-vue-next/dist/src/types').AriaInvalid | undefined;
|
|
269
262
|
autofocus?: boolean | undefined;
|
|
270
263
|
disabled?: boolean | undefined;
|
|
271
264
|
form?: string | undefined;
|
|
@@ -276,7 +269,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
276
269
|
state?: boolean | null | undefined;
|
|
277
270
|
modelValue?: ((string | number | boolean | readonly unknown[] | Readonly<Record<string, unknown>> | null) & T) | undefined;
|
|
278
271
|
options?: readonly unknown[] | undefined;
|
|
279
|
-
valueField
|
|
272
|
+
valueField? /**
|
|
273
|
+
* Whether the options should be a countries list
|
|
274
|
+
*/: string | undefined;
|
|
280
275
|
textField?: string | undefined;
|
|
281
276
|
htmlField?: string | undefined;
|
|
282
277
|
disabledField?: string | undefined;
|
|
@@ -320,20 +315,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
320
315
|
textField?: string | undefined;
|
|
321
316
|
htmlField?: string | undefined;
|
|
322
317
|
disabledField?: string | undefined;
|
|
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;
|
|
318
|
+
optionsField?: string | undefined;
|
|
332
319
|
labelField?: string | undefined;
|
|
333
320
|
selectSize?: import('node_modules/bootstrap-vue-next/dist/src/types').Numberish | undefined;
|
|
334
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue'
|
|
335
|
-
* import country list
|
|
336
|
-
*/).ComponentCustomProps;
|
|
321
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
337
322
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
338
323
|
blur: () => void;
|
|
339
324
|
element: import('vue').Ref<HTMLElement | null>;
|