@mozaic-ds/vue 0.15.0 → 0.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build ./src/index.js",
@@ -18,10 +18,10 @@
18
18
  "@mozaic-ds/styles": "^1.28.0",
19
19
  "@mozaic-ds/web-fonts": "^1.22.0",
20
20
  "core-js": "^3.18.3",
21
- "libphonenumber-js": "^1.9.37",
21
+ "libphonenumber-js": "1.9.50",
22
22
  "postcss-scss": "^4.0.1",
23
23
  "vue": "^2.6.14",
24
- "vue-country-flag": "^2.2.0"
24
+ "vue-country-flag": "2.3.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/core": "^7.15.8",
package/postinstall.js CHANGED
@@ -1,6 +1,3 @@
1
1
  const package = require('./package.json');
2
2
 
3
3
  console.log(`${package.name} installed`);
4
- console.log(
5
- "MTextInput change coming on the 01/12/2021. All input events will be available and will receive the event object. The blur event won't receive the value anymore."
6
- );
@@ -97,17 +97,20 @@ export default {
97
97
  },
98
98
 
99
99
  watch: {
100
- open(isOpen) {
101
- this.$nextTick(() => {
102
- if (isOpen) {
103
- this.trapFocus();
104
- this.setFocusOnModal();
105
- this.setOverflow();
106
- this.$emit('modal-opened');
107
- } else {
108
- this.$emit('modal-closed');
109
- }
110
- });
100
+ open: {
101
+ immediate: true,
102
+ handler: function (isOpen) {
103
+ this.$nextTick(() => {
104
+ if (isOpen) {
105
+ this.trapFocus();
106
+ this.setFocusOnModal();
107
+ this.setOverflow();
108
+ this.$emit('modal-opened');
109
+ } else {
110
+ this.$emit('modal-closed');
111
+ }
112
+ });
113
+ },
111
114
  },
112
115
  },
113
116
 
@@ -358,10 +358,14 @@ export default {
358
358
 
359
359
  .mc-phone-number {
360
360
  span.flag {
361
+ /* stylelint-disable */
361
362
  background-repeat: no-repeat;
362
- padding-right: 1rem;
363
- transform: scale(0.5, 1) !important;
364
- height: 1rem;
363
+ transform: scale(0.46153846153);
364
+ // For information:
365
+ // The value 0.46153846153 is obtained by the calculation 24/52
366
+ // 24 being the width in pixel desired by the design of the component
367
+ // 52 being the width in pixel defined by the country-flag component
368
+ /* stylelint-enable */
365
369
  }
366
370
 
367
371
  &__indicator,
@@ -16,6 +16,7 @@
16
16
  <component
17
17
  :is="tab.href ? (tab.disabled ? 'span' : 'a') : 'button'"
18
18
  :id="tab.id"
19
+ ref="tab"
19
20
  :href="tab.href ? (!tab.disabled ? tab.href : null) : null"
20
21
  :type="!tab.href ? 'button' : null"
21
22
  :disabled="!tab.href && tab.disabled ? true : null"