@bcrs-shared-components/base-address 2.0.51 → 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.
@@ -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,11 +1,11 @@
1
1
  {
2
2
  "name": "@bcrs-shared-components/base-address",
3
- "version": "2.0.51",
3
+ "version": "2.0.53",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "dependencies": {
8
- "@bcrs-shared-components/mixins": "^1.1.64",
8
+ "@bcrs-shared-components/mixins": "^1.1.65",
9
9
  "lodash.uniqueid": "^4.0.1",
10
10
  "vue": "^2.7.14",
11
11
  "vuelidate": "0.6.2"
@@ -14,5 +14,5 @@
14
14
  "vue-property-decorator": "^9.1.2",
15
15
  "vuelidate-property-decorators": "1.0.28"
16
16
  },
17
- "gitHead": "6be78e95fb4cb91982d3b8b5726ddee7159cf210"
17
+ "gitHead": "992918c69ee3aa191a60f1c960b9c821f9b44c1f"
18
18
  }