@umbraco-ui/uui-combobox 1.2.1 → 1.3.0-rc.1
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/lib/UUIComboboxEvent.d.ts +1 -0
- package/lib/index.js +21 -3
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -7,7 +7,26 @@ import { LitElement, html, css } from 'lit';
|
|
|
7
7
|
import { property, query, queryAssignedElements, state } from 'lit/decorators.js';
|
|
8
8
|
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events';
|
|
9
9
|
|
|
10
|
+
var __defProp$1 = Object.defineProperty;
|
|
11
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
+
var __spreadValues = (a, b) => {
|
|
16
|
+
for (var prop in b || (b = {}))
|
|
17
|
+
if (__hasOwnProp.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
if (__getOwnPropSymbols)
|
|
20
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
10
26
|
class UUIComboboxEvent extends UUIEvent {
|
|
27
|
+
constructor(evName, eventInit = {}) {
|
|
28
|
+
super(evName, __spreadValues(__spreadValues({}, { bubbles: true }), eventInit));
|
|
29
|
+
}
|
|
11
30
|
}
|
|
12
31
|
UUIComboboxEvent.SEARCH = "search";
|
|
13
32
|
UUIComboboxEvent.CHANGE = "change";
|
|
@@ -55,9 +74,8 @@ let UUIComboboxElement = class extends FormControlMixin(LitElement) {
|
|
|
55
74
|
this._updateValue(this.value);
|
|
56
75
|
}
|
|
57
76
|
};
|
|
58
|
-
this._onChange = (
|
|
77
|
+
this._onChange = () => {
|
|
59
78
|
var _a;
|
|
60
|
-
e.stopImmediatePropagation();
|
|
61
79
|
this.value = ((_a = this._comboboxList) == null ? void 0 : _a.value) || "";
|
|
62
80
|
this.search = this.value ? this.search : "";
|
|
63
81
|
this._onClose();
|
|
@@ -192,7 +210,7 @@ let UUIComboboxElement = class extends FormControlMixin(LitElement) {
|
|
|
192
210
|
this._onChange
|
|
193
211
|
);
|
|
194
212
|
this._comboboxList.addEventListener(
|
|
195
|
-
UUIComboboxListEvent.
|
|
213
|
+
UUIComboboxListEvent.INNER_SLOT_CHANGE,
|
|
196
214
|
this._onSlotChange
|
|
197
215
|
);
|
|
198
216
|
await this.updateComplete;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-combobox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-button": "1.
|
|
35
|
-
"@umbraco-ui/uui-combobox-list": "1.
|
|
36
|
-
"@umbraco-ui/uui-icon": "1.
|
|
37
|
-
"@umbraco-ui/uui-scroll-container": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.3.0-rc.1",
|
|
34
|
+
"@umbraco-ui/uui-button": "1.3.0-rc.1",
|
|
35
|
+
"@umbraco-ui/uui-combobox-list": "1.3.0-rc.1",
|
|
36
|
+
"@umbraco-ui/uui-icon": "1.3.0-rc.1",
|
|
37
|
+
"@umbraco-ui/uui-scroll-container": "1.3.0-rc.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
41
|
-
"clean": "tsc --build --clean && rimraf dist lib/*.js lib/**/*.js custom-elements.json",
|
|
41
|
+
"clean": "tsc --build --clean && rimraf -g dist lib/*.js lib/**/*.js *.tgz lib/**/*.d.ts custom-elements.json",
|
|
42
42
|
"analyze": "web-component-analyzer **/*.element.ts --outFile custom-elements.json"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-combobox",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0c517175884931aa0bc0d8f05974852a7704626e"
|
|
49
49
|
}
|