@avakhula/ui 0.0.43 → 0.0.45

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.43",
3
+ "version": "0.0.45",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -379,22 +379,9 @@ export default {
379
379
  this.setPreparedValues();
380
380
  },
381
381
  modelValue(value) {
382
- this.selected = [];
382
+ console.log(value, '1123213123123123123')
383
383
  this.val = value;
384
- if (
385
- this.watchClearValue &&
386
- (!value || (Array.isArray(value) && !value.length))
387
- ) {
388
- this.setPreparedValues(this.actualOptions).then(() => {
389
- const values = Object.keys(this.selected);
390
- this.$globalEvents.$emit("select-" + this.filterId + ":update", {
391
- values,
392
- filter: this.filterId,
393
- });
394
- });
395
- }
396
-
397
- console.log('modelValue changet 123123', this.actualOptions, 'actualOptions')
384
+ this.setPreparedValues();
398
385
  },
399
386
  val(value) {
400
387
  if (
@@ -653,6 +640,8 @@ export default {
653
640
  this.val.findIndex((el) => option.id == el) > -1
654
641
  : this.val !== null && this.val == option.id;
655
642
 
643
+ console.log(option, 'option', option?.title, this.val)
644
+
656
645
  if (option.checked) {
657
646
  if (!this.onlyEndNodes || !option.children) {
658
647
  selected[option.id] = option;