goodteditor-ui 1.0.69 → 1.0.70

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.69",
3
+ "version": "1.0.70",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -145,7 +145,7 @@ Runtime options
145
145
  <span class="pad-left-2 v-mid">multiple</span>
146
146
  </label>
147
147
  </p>
148
- <p><div class="btn btn-primary" @click="toggleOptions">toggle options</div></p>
148
+ <div class="btn btn-primary p" @click="toggleOptions">toggle options</div>
149
149
  <p>model: {{ model }}</p>
150
150
  </div>
151
151
  </template>
@@ -395,7 +395,11 @@ export default {
395
395
  },
396
396
  createOptionRollback() {
397
397
  const optionsSelected = [...this.optionsSelected];
398
- return () => this.optionsSelected = optionsSelected;
398
+ return () => {
399
+ this.optionsSelected = optionsSelected;
400
+ const rollback = this.createOptionRollback();
401
+ this.triggerModelChange(rollback);
402
+ };
399
403
  },
400
404
  selectOption(option) {
401
405
  if (this.isOptionSelected(option)) {
@@ -418,7 +422,7 @@ export default {
418
422
  return;
419
423
  }
420
424
  const rollback = this.createOptionRollback();
421
- this.optionsSelected.splice(this.getOptionIndex(option), 1);
425
+ this.optionsSelected.splice(this.optionsSelected.indexOf(option), 1);
422
426
  this.triggerModelChange(rollback);
423
427
  },
424
428
  toggleOption(option) {
@@ -466,4 +470,4 @@ export default {
466
470
  }
467
471
  }
468
472
  };
469
- </script>
473
+ </script>
@@ -26,6 +26,11 @@ module.exports = {
26
26
  'https://cdn.materialdesignicons.com/5.4.55/css/materialdesignicons.min.css',
27
27
  crossorigin: 'anonymous',
28
28
  },
29
+ {
30
+ rel: 'stylesheet',
31
+ href: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap',
32
+ crossorigin: 'anonymous',
33
+ },
29
34
  {
30
35
  rel: 'stylesheet',
31
36
  href: