@bcrs-shared-components/base-address 2.0.52 → 2.0.53
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/BaseAddress.stories.ts +17 -0
- package/BaseAddress.vue +6 -0
- package/package.json +2 -2
package/BaseAddress.stories.ts
CHANGED
|
@@ -64,3 +64,20 @@ FilledInBaseAddress['args'] = {
|
|
|
64
64
|
noPoBox: true,
|
|
65
65
|
isInactive: false
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export const FilledCountryInBaseAddress = Template.bind({})
|
|
69
|
+
FilledCountryInBaseAddress['args'] = {
|
|
70
|
+
editing: true,
|
|
71
|
+
schema: PersonAddressSchema,
|
|
72
|
+
address: {
|
|
73
|
+
streetAddress: '',
|
|
74
|
+
streetAddressAdditional: '',
|
|
75
|
+
addressCity: '',
|
|
76
|
+
addressRegion: '',
|
|
77
|
+
addressCountry: 'CA',
|
|
78
|
+
postalCode: '',
|
|
79
|
+
deliveryInstructions: ''
|
|
80
|
+
},
|
|
81
|
+
noPoBox: true,
|
|
82
|
+
isInactive: false
|
|
83
|
+
}
|
package/BaseAddress.vue
CHANGED
|
@@ -244,6 +244,12 @@ export default class BaseAddress extends Mixins(ValidationMixin, CountriesProvin
|
|
|
244
244
|
/** A unique id for this instance of this component. */
|
|
245
245
|
uniqueId = uniqueId()
|
|
246
246
|
|
|
247
|
+
/** Called when component is created. */
|
|
248
|
+
created (): void {
|
|
249
|
+
// Initialize region field validation based on the starting country
|
|
250
|
+
this.onAddressCountryChanged()
|
|
251
|
+
}
|
|
252
|
+
|
|
247
253
|
/** A unique id for the Street Address input. */
|
|
248
254
|
get streetAddressId (): string {
|
|
249
255
|
return `street-address-${this.uniqueId}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrs-shared-components/base-address",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.53",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"vue-property-decorator": "^9.1.2",
|
|
15
15
|
"vuelidate-property-decorators": "1.0.28"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "992918c69ee3aa191a60f1c960b9c821f9b44c1f"
|
|
18
18
|
}
|