@genesislcap/foundation-ui 14.210.2 → 14.210.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/combobox/combobox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAWlE;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;;IACxC,OAAO,CAAC,SAAS,CAAS;IAGd,iBAAiB,EAAE,eAAe,CAAC;IACpB,KAAK,UAAS;IACnC,QAAQ,EAAE,MAAM,CAAiB;IACvC,eAAe,CAAC,QAAQ,KAAA,EAAE,QAAQ,EAAE,MAAM;IAG1C,qBAAqB,MAAC;IACtB,iFAAiF;IAE1E,aAAa,EAAE,OAAO,CAAS;IAEtC,wFAAwF;IAEjF,gBAAgB,EAAE,OAAO,CAAS;IAEzC,IAAW,KAAK,IAKO,MAAM,CAF5B;IAED,IAAW,KAAK,CAAC,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/combobox/combobox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAWlE;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;;IACxC,OAAO,CAAC,SAAS,CAAS;IAGd,iBAAiB,EAAE,eAAe,CAAC;IACpB,KAAK,UAAS;IACnC,QAAQ,EAAE,MAAM,CAAiB;IACvC,eAAe,CAAC,QAAQ,KAAA,EAAE,QAAQ,EAAE,MAAM;IAG1C,qBAAqB,MAAC;IACtB,iFAAiF;IAE1E,aAAa,EAAE,OAAO,CAAS;IAEtC,wFAAwF;IAEjF,gBAAgB,EAAE,OAAO,CAAS;IAEzC,IAAW,KAAK,IAKO,MAAM,CAF5B;IAED,IAAW,KAAK,CAAC,IAAI,EAAE,MAAM,EA2B5B;IAEe,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAMzE,aAAa,IAAI,IAAI;IAoBrB,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,IAAI;IAuB3C,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;IA6ChD,YAAY,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;IAkC9D;;;;OAIG;IACH,SAAS,KAAK,SAAS,IAAI,OAAO,CAGjC;IAED;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM;IAKhC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,IAAI;IAQpD,cAAc;IAoBd,aAAa,aAOX;CACH;AAGD,eAAO,MAAM,+BAA+B,EAAE,cAG7C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;CAajC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,8SAM7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.template.d.ts","sourceRoot":"","sources":["../../../src/combobox/combobox.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,0BAA0B,YAC5B,wBAAwB,cACrB,eAAe,KAC1B,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"file":"combobox.template.d.ts","sourceRoot":"","sources":["../../../src/combobox/combobox.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,0BAA0B,YAC5B,wBAAwB,cACrB,eAAe,KAC1B,aAAa,QAAQ,CA0DvB,CAAC"}
|
|
@@ -43,6 +43,8 @@ export class Combobox extends FASTComboBox {
|
|
|
43
43
|
}
|
|
44
44
|
set value(next) {
|
|
45
45
|
var _a, _b, _c;
|
|
46
|
+
if (next === undefined)
|
|
47
|
+
return;
|
|
46
48
|
const prev = `${this._ourValue}`;
|
|
47
49
|
if (this.$fastController.isConnected && this.options) {
|
|
48
50
|
const searchFunc = this.caseSensitive
|
|
@@ -154,12 +156,15 @@ export class Combobox extends FASTComboBox {
|
|
|
154
156
|
return !__classPrivateFieldGet(this, _Combobox_wasOpenOnEnterDown, "f");
|
|
155
157
|
case 'ArrowDown':
|
|
156
158
|
case 'ArrowUp':
|
|
157
|
-
if (this.open &&
|
|
159
|
+
if (this.open &&
|
|
160
|
+
this.selectedOptions &&
|
|
161
|
+
this.selectedOptions.length === 1 &&
|
|
162
|
+
this.autocomplete === ComboboxAutocomplete.both) {
|
|
158
163
|
const selectedOption = this.selectedOptions[0];
|
|
159
164
|
this.currentValue = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;
|
|
160
|
-
|
|
165
|
+
this.dispatchEvent(new Event('change', { bubbles: true }));
|
|
161
166
|
}
|
|
162
|
-
|
|
167
|
+
return;
|
|
163
168
|
case 'Home':
|
|
164
169
|
case 'End':
|
|
165
170
|
// base class clears the selected value for this, which is silly
|
|
@@ -2,30 +2,29 @@ import { html, ref, slotted } from '@microsoft/fast-element';
|
|
|
2
2
|
import { endSlotTemplate, Listbox, startSlotTemplate } from '@microsoft/fast-foundation';
|
|
3
3
|
export const foundationComboboxTemplate = (context, definition) => html `
|
|
4
4
|
<template
|
|
5
|
-
aria-disabled="${(x) => x.ariaDisabled}"
|
|
6
5
|
class="${(x) => (x.open ? 'open' : '')} ${(x) => (x.disabled ? 'disabled' : '')} ${(x) => x.position}"
|
|
7
6
|
?open="${(x) => x.open}"
|
|
8
7
|
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
9
|
-
@focusin="${(x, c) => x.focusinHandler(c.event)}"
|
|
10
8
|
@focusout="${(x, c) => x.focusoutHandler(c.event)}"
|
|
11
9
|
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
12
|
-
role="combobox"
|
|
13
10
|
>
|
|
14
11
|
<div class="control" part="control">
|
|
15
12
|
${startSlotTemplate(context, definition)}
|
|
16
13
|
<slot name="control">
|
|
17
14
|
<input
|
|
18
15
|
aria-activedescendant="${(x) => (x.open ? x.ariaActiveDescendant : null)}"
|
|
19
|
-
aria-autocomplete="${(x) => x.ariaAutoComplete}"
|
|
20
|
-
aria-controls="${(x) => x.listboxId}"
|
|
21
|
-
aria-disabled="${(x) => x.
|
|
22
|
-
aria-expanded="${(x) => x.
|
|
16
|
+
aria-autocomplete="${(x) => x.ariaAutoComplete || x.autocomplete}"
|
|
17
|
+
aria-controls="${(x) => x.ariaControls || x.listboxId}"
|
|
18
|
+
aria-disabled="${(x) => (x.disabled ? 'true' : 'false')}"
|
|
19
|
+
aria-expanded="${(x) => (x.open ? 'true' : 'false')}"
|
|
23
20
|
aria-haspopup="listbox"
|
|
21
|
+
aria-labelledby="${(x) => x.ariaLabelledby}"
|
|
22
|
+
aria-label="${(x) => x.ariaLabel}"
|
|
24
23
|
autocomplete="${(x) => x.autocomplete}"
|
|
25
|
-
tabindex="${(x) => (!x.disabled ? '0' : null)}"
|
|
26
24
|
class="selected-value"
|
|
27
25
|
part="selected-value"
|
|
28
26
|
placeholder="${(x) => x.placeholder}"
|
|
27
|
+
role="combobox"
|
|
29
28
|
type="text"
|
|
30
29
|
?disabled="${(x) => x.disabled}"
|
|
31
30
|
:value="${(x) => x.value}"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.210.
|
|
4
|
+
"version": "14.210.3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@genesislcap/foundation-testing": "14.210.
|
|
87
|
-
"@genesislcap/genx": "14.210.
|
|
88
|
-
"@genesislcap/rollup-builder": "14.210.
|
|
89
|
-
"@genesislcap/ts-builder": "14.210.
|
|
90
|
-
"@genesislcap/uvu-playwright-builder": "14.210.
|
|
91
|
-
"@genesislcap/vite-builder": "14.210.
|
|
92
|
-
"@genesislcap/webpack-builder": "14.210.
|
|
86
|
+
"@genesislcap/foundation-testing": "14.210.3",
|
|
87
|
+
"@genesislcap/genx": "14.210.3",
|
|
88
|
+
"@genesislcap/rollup-builder": "14.210.3",
|
|
89
|
+
"@genesislcap/ts-builder": "14.210.3",
|
|
90
|
+
"@genesislcap/uvu-playwright-builder": "14.210.3",
|
|
91
|
+
"@genesislcap/vite-builder": "14.210.3",
|
|
92
|
+
"@genesislcap/webpack-builder": "14.210.3",
|
|
93
93
|
"copyfiles": "^2.4.1",
|
|
94
94
|
"rimraf": "^5.0.0",
|
|
95
95
|
"rxjs": "^7.5.4"
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
101
101
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
102
102
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
103
|
-
"@genesislcap/foundation-comms": "14.210.
|
|
104
|
-
"@genesislcap/foundation-criteria": "14.210.
|
|
105
|
-
"@genesislcap/foundation-errors": "14.210.
|
|
106
|
-
"@genesislcap/foundation-logger": "14.210.
|
|
107
|
-
"@genesislcap/foundation-notifications": "14.210.
|
|
108
|
-
"@genesislcap/foundation-user": "14.210.
|
|
109
|
-
"@genesislcap/foundation-utils": "14.210.
|
|
103
|
+
"@genesislcap/foundation-comms": "14.210.3",
|
|
104
|
+
"@genesislcap/foundation-criteria": "14.210.3",
|
|
105
|
+
"@genesislcap/foundation-errors": "14.210.3",
|
|
106
|
+
"@genesislcap/foundation-logger": "14.210.3",
|
|
107
|
+
"@genesislcap/foundation-notifications": "14.210.3",
|
|
108
|
+
"@genesislcap/foundation-user": "14.210.3",
|
|
109
|
+
"@genesislcap/foundation-utils": "14.210.3",
|
|
110
110
|
"@microsoft/fast-colors": "^5.3.1",
|
|
111
111
|
"@microsoft/fast-components": "^2.30.6",
|
|
112
112
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"customElements": "dist/custom-elements.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "0de6b3849cc1d556a3f4781948868575351a3603"
|
|
132
132
|
}
|