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

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.
@@ -105,6 +105,7 @@ class FlowUiList extends FlowRdfElement {
105
105
  item.removable = this.removable;
106
106
  item.editable = this.editable;
107
107
  item.reorder = this.reorder;
108
+ item.selectable = this.selectable;
108
109
  });
109
110
  if (!items.some((item) => item.checked)) {
110
111
  items[0].tabIndex = 0;
@@ -28,6 +28,7 @@ class FlowUiListItem extends FlowRdfElement {
28
28
  this.reorder = false;
29
29
  this.removable = false;
30
30
  this.disabled = false;
31
+ this.selectable = false;
31
32
  this.handleDragStart = (ev) => {
32
33
  ev.stopPropagation();
33
34
  ev.dataTransfer.setData("application/flow-ui-list-item", this.value);
@@ -175,6 +176,7 @@ class FlowUiListItem extends FlowRdfElement {
175
176
  "list-item--has-suffix": this.hasSlotController.test("suffix"),
176
177
  "list-item--has-menu": this.hasSlotController.test("menu"),
177
178
  "list-item--editable": this.editable,
179
+ "list-item--selectable": this.selectable,
178
180
  "list-item--focused": this.hasFocus
179
181
  })}
180
182
  >
@@ -236,6 +238,9 @@ __decorateClass([
236
238
  __decorateClass([
237
239
  property({ type: Boolean, reflect: true })
238
240
  ], FlowUiListItem.prototype, "disabled", 2);
241
+ __decorateClass([
242
+ property({ type: Boolean, reflect: true })
243
+ ], FlowUiListItem.prototype, "selectable", 2);
239
244
  __decorateClass([
240
245
  watch("checked")
241
246
  ], FlowUiListItem.prototype, "handleCheckedChange", 1);
@@ -46,6 +46,10 @@ const styles = css`
46
46
  background-color: var(--background-color-selected);
47
47
  }
48
48
 
49
+ .list-item--selectable {
50
+ cursor: pointer;
51
+ }
52
+
49
53
  .list-item__prefix,
50
54
  .list-item__suffix,
51
55
  .list-item__menu-button,
@@ -71,9 +71,11 @@ function predicateFromRule(rule, config, options) {
71
71
  const caseInsensitive = isStringType(fieldConfig) && !!fieldConfig.caseInsensitive;
72
72
  switch (rule.operator) {
73
73
  case "=":
74
+ value = caseInsensitive ? String(value).toLowerCase() : value;
74
75
  operator = "==";
75
76
  break;
76
77
  case "!=":
78
+ value = caseInsensitive ? String(value).toLowerCase() : value;
77
79
  operator = "!=";
78
80
  break;
79
81
  case "<":
@@ -48,9 +48,11 @@ function predicateFromRule(rule, config, options) {
48
48
  const caseInsensitive = isStringType(fieldConfig) && fieldConfig.caseInsensitive;
49
49
  switch (rule.operator) {
50
50
  case "=":
51
+ field = caseInsensitive ? `downcase(${field})` : field;
51
52
  operator = "==";
52
53
  break;
53
54
  case "!=":
55
+ field = caseInsensitive ? `downcase(${field})` : field;
54
56
  operator = "!=";
55
57
  break;
56
58
  case "<":