goodteditor-ui 1.0.99 → 1.0.101

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": "goodteditor-ui",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -7,9 +7,7 @@
7
7
  @keydown.stop="onKeydown"
8
8
  @keyup.stop="onKeyup"
9
9
  @focus="onFocus"
10
- @focusin.stop="onFocus"
11
10
  @blur="onBlur"
12
- @focusout.stop="onBlur"
13
11
  @click.stop
14
12
  v-on="{
15
13
  [event]: onActivate
@@ -22,7 +20,6 @@
22
20
  </div>
23
21
  </template>
24
22
  <script>
25
-
26
23
  const Size = {
27
24
  SMALL: { name: 'small', class: ['text-small'] },
28
25
  NORMAL: { name: 'normal', class: [] },
@@ -166,6 +163,9 @@ export default {
166
163
  * @param {string} value
167
164
  */
168
165
  setValue(value) {
166
+ if (value === this.valueLast) {
167
+ return;
168
+ }
169
169
  this.$el.textContent = value;
170
170
  this.valueLast = value;
171
171
  this.$emit('input', value);
@@ -216,7 +216,7 @@ export default {
216
216
  &:empty {
217
217
  border-bottom: 2px dotted var(--color-primary);
218
218
  &:before {
219
- content: ' '
219
+ content: ' ';
220
220
  }
221
221
  }
222
222
 
@@ -601,7 +601,7 @@ export default {
601
601
  },
602
602
  computed: {
603
603
  /**
604
- * @return {this}
604
+ * @return {boolean}
605
605
  */
606
606
  isSelectedRemovable() {
607
607
  return this.readonly === false && this.disabled === false;
@@ -654,11 +654,11 @@ export default {
654
654
  * @return {OptionSettings}
655
655
  */
656
656
  optionSettings() {
657
- const { labelField, labelValue, disabledField, valueObjects, valueOfOptionChecker, option } = this;
657
+ const { labelField, valueField, disabledField, valueObjects, valueOfOptionChecker, option } = this;
658
658
  return {
659
659
  ...OptionSettingsDefault,
660
660
  labelField,
661
- labelValue,
661
+ valueField,
662
662
  disabledField,
663
663
  valueObjects,
664
664
  valueOfOptionChecker,