@brightspace-ui/labs 2.14.1 → 2.15.0

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
@@ -82,5 +82,5 @@
82
82
  "@lit/context": "^1.1.3",
83
83
  "lit": "^3"
84
84
  },
85
- "version": "2.14.1"
85
+ "version": "2.15.0"
86
86
  }
@@ -29,3 +29,5 @@ The `d2l-labs-attribute-picker` component is an autocompleting dropdown to choos
29
29
  - `attributeList`: an array of the selected attributes, in the order they were selected.
30
30
  - `d2l-labs-attribute-picker-limit-reached`: dispatched when a user attempts to add attributes once the limit is hit. Event `detail` includes:
31
31
  - `limit`: the limit that was hit
32
+ - `d2l-labs-attribute-picker-text-changed`: dispatched when text is entered into the text input. Event `detail` include:
33
+ - `text`: the current value of the text input
@@ -430,6 +430,10 @@ class AttributePicker extends ArrowKeysMixin(LocalizeLabsElement(LitElement)) {
430
430
  if (this._dropdownIndex >= 0) {
431
431
  this.allowFreeform ? this._dropdownIndex = -1 : this._dropdownIndex = 0;
432
432
  }
433
+
434
+ this.dispatchEvent(new CustomEvent('d2l-labs-attribute-picker-text-changed', {
435
+ detail: { text: this._text },
436
+ }));
433
437
  }
434
438
 
435
439
  _onListItemMouseMove(e) {