@umbraco-ui/uui-combobox 1.2.1 → 1.3.0-rc.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.
@@ -3,4 +3,5 @@ import { UUIComboboxElement } from './uui-combobox.element';
3
3
  export declare class UUIComboboxEvent extends UUIEvent<UUIComboboxElement> {
4
4
  static readonly SEARCH: string;
5
5
  static readonly CHANGE: string;
6
+ constructor(evName: string, eventInit?: any | null);
6
7
  }
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 = (e) => {
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.SLOT_CHANGE,
213
+ UUIComboboxListEvent.INNER_SLOT_CHANGE,
196
214
  this._onSlotChange
197
215
  );
198
216
  await this.updateComplete;
@@ -255,7 +273,7 @@ UUIComboboxElement.styles = [
255
273
  var(--uui-color-surface,#fff)
256
274
  );
257
275
  border: 1px solid var(--uui-color-border,#d8d7d9);
258
- border-radius: var(--uui-border-radius,3px);
276
+ border-radius: var(--uui-border-radius,var(--uui-size-1));
259
277
  width: 100%;
260
278
  height: 100%;
261
279
  box-sizing: border-box;
@@ -271,7 +289,7 @@ UUIComboboxElement.styles = [
271
289
  }
272
290
 
273
291
  :host([disabled]) #caret {
274
- fill: var(--uui-color-disabled-contrast,#c4c4c4);
292
+ fill: var(--uui-color-disabled-contrast,var(--uui-palette-grey));
275
293
  }
276
294
 
277
295
  #phone-wrapper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-combobox",
3
- "version": "1.2.1",
3
+ "version": "1.3.0-rc.0",
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.2.1",
34
- "@umbraco-ui/uui-button": "1.2.1",
35
- "@umbraco-ui/uui-combobox-list": "1.2.1",
36
- "@umbraco-ui/uui-icon": "1.2.1",
37
- "@umbraco-ui/uui-scroll-container": "1.2.1"
33
+ "@umbraco-ui/uui-base": "1.3.0-rc.0",
34
+ "@umbraco-ui/uui-button": "1.3.0-rc.0",
35
+ "@umbraco-ui/uui-combobox-list": "1.3.0-rc.0",
36
+ "@umbraco-ui/uui-icon": "1.3.0-rc.0",
37
+ "@umbraco-ui/uui-scroll-container": "1.3.0-rc.0"
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 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": "94eb22bee5ff21bac6fadbd78653671279bebe36"
48
+ "gitHead": "45c3824056586d9817efb3f61dc0bef5478747f0"
49
49
  }