@emuanalytics/flow-rdf-ui 4.1.0-preview.22 → 4.1.0-preview.23

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.
@@ -29,10 +29,10 @@ class FlowUiList extends FlowRdfElement {
29
29
  }
30
30
  connectedCallback() {
31
31
  super.connectedCallback();
32
- this.editable = boolean(this.editable);
33
- this.reorder = boolean(this.reorder);
34
- this.removable = boolean(this.removable);
35
- this.selectable = boolean(this.selectable);
32
+ this.editable = boolean(this.editable, true);
33
+ this.reorder = boolean(this.reorder, true);
34
+ this.removable = boolean(this.removable, true);
35
+ this.selectable = boolean(this.selectable, true);
36
36
  }
37
37
  disconnectedCallback() {
38
38
  super.disconnectedCallback();
@@ -191,7 +191,7 @@ __decorateClass([
191
191
  property({ type: Boolean })
192
192
  ], FlowUiList.prototype, "removable", 2);
193
193
  __decorateClass([
194
- watch(["reorder", "editable", "removable"], { waitUntilFirstUpdate: true })
194
+ watch(["reorder", "editable", "removable", "selectable"], { waitUntilFirstUpdate: true })
195
195
  ], FlowUiList.prototype, "handleStyleChange", 1);
196
196
  __decorateClass([
197
197
  watch("value")
@@ -39,16 +39,15 @@ class FlowUiListItem extends FlowRdfElement {
39
39
  this.handleDrop = this.handleDrop.bind(this);
40
40
  this.handleDragEnd = this.handleDragEnd.bind(this);
41
41
  this.handleBlur = this.handleBlur.bind(this);
42
- this.handleClick = this.handleClick.bind(this);
43
42
  this.handleFocus = this.handleFocus.bind(this);
44
43
  }
45
44
  connectedCallback() {
46
45
  super.connectedCallback();
47
- this.editable = boolean(this.editable);
48
- this.reorder = boolean(this.reorder);
49
- this.removable = boolean(this.removable);
50
- this.checked = boolean(this.checked);
51
- this.disabled = boolean(this.disabled);
46
+ this.editable = boolean(this.editable, true);
47
+ this.reorder = boolean(this.reorder, true);
48
+ this.removable = boolean(this.removable, true);
49
+ this.checked = boolean(this.checked, true);
50
+ this.disabled = boolean(this.disabled, true);
52
51
  this.setAttribute("tabindex", "-1");
53
52
  this.addEventListeners();
54
53
  }
@@ -65,14 +64,12 @@ class FlowUiListItem extends FlowRdfElement {
65
64
  }
66
65
  addEventListeners() {
67
66
  this.addEventListener("blur", this.handleBlur);
68
- this.addEventListener("click", this.handleClick);
69
67
  this.addEventListener("focus", this.handleFocus);
70
68
  this.addEventListener("dragover", this.handleDragOver);
71
69
  this.addEventListener("drop", this.handleDrop);
72
70
  }
73
71
  removeEventListeners() {
74
72
  this.removeEventListener("blur", this.handleBlur);
75
- this.removeEventListener("click", this.handleClick);
76
73
  this.removeEventListener("focus", this.handleFocus);
77
74
  this.removeEventListener("dragover", this.handleDragOver);
78
75
  this.removeEventListener("drop", this.handleDrop);
@@ -81,11 +78,6 @@ class FlowUiListItem extends FlowRdfElement {
81
78
  this.hasFocus = false;
82
79
  this.emit("flow-ui-blur");
83
80
  }
84
- handleClick() {
85
- if (!this.disabled) {
86
- this.checked = true;
87
- }
88
- }
89
81
  handleFocus() {
90
82
  this.hasFocus = true;
91
83
  this.emit("flow-ui-focus");