@avakhula/ui 0.0.353 → 0.0.355

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": "@avakhula/ui",
3
- "version": "0.0.353",
3
+ "version": "0.0.355",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -23,7 +23,7 @@
23
23
  <ib-icon-button
24
24
  kind="ghost"
25
25
  class="button-clear"
26
- :disabled="disabled"
26
+ :disabled="readonly || disabled"
27
27
  :help-text="clearButtonMessage"
28
28
  prevent-default
29
29
  type="button"
@@ -40,7 +40,7 @@
40
40
  class="toggle-password"
41
41
  prevent-default
42
42
  type="button"
43
- :disabled="readonly || disabled"
43
+ :disabled="disabled"
44
44
  :help-text="showPassword ? hidePasswordMessage : showPasswordMessage"
45
45
  @click.prevent="toggleShowPassword"
46
46
  v-if="type === 'password'"
@@ -55,30 +55,15 @@ export default {
55
55
  emits: ['update:modelValue'],
56
56
  data() {
57
57
  return {
58
- checked: false,
59
58
  uid: generateUID(),
60
59
  };
61
60
  },
62
61
  mounted() {
63
62
  this.checked = this.isChecked;
64
- this.$globalEvents.$on(`radio:update:${this.name}`, (uid) => {
65
- if (this.uid !== uid) {
66
- this.checked = false;
67
- }
68
- });
69
- },
70
- watch: {
71
- isChecked(val) {
72
- this.checked = val;
73
- },
74
63
  },
75
64
  methods: {
76
65
  checkHandler() {
77
66
  this.$emit('update:modelValue', this.value)
78
- if (!this.disabled) {
79
- this.checked = !this.checked;
80
- this.$globalEvents.$emit(`radio:update:${this.name}`, this.uid);
81
- }
82
67
  }
83
68
  },
84
69
  computed: {
@@ -86,7 +71,7 @@ export default {
86
71
  return {
87
72
  "ib-radio": true,
88
73
  "has-error": this.error,
89
- "radio-filled": this.checked,
74
+ "radio-filled": this.isChecked,
90
75
  "radio-disabled": this.disabled,
91
76
  };
92
77
  },
File without changes