@genesislcap/foundation-ui 15.14.2 → 15.15.0-FUI-2603.5
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/dist/custom-elements.json +48 -31
- package/dist/dts/number-field/number-field.d.ts +1 -0
- package/dist/dts/number-field/number-field.d.ts.map +1 -1
- package/dist/esm/number-field/number-field.js +9 -1
- package/dist/foundation-ui.api.json +49 -0
- package/dist/foundation-ui.d.ts +1 -0
- package/package.json +19 -19
|
@@ -1422,6 +1422,37 @@
|
|
|
1422
1422
|
}
|
|
1423
1423
|
]
|
|
1424
1424
|
},
|
|
1425
|
+
{
|
|
1426
|
+
"kind": "javascript-module",
|
|
1427
|
+
"path": "src/_config/index.ts",
|
|
1428
|
+
"declarations": [],
|
|
1429
|
+
"exports": [
|
|
1430
|
+
{
|
|
1431
|
+
"kind": "js",
|
|
1432
|
+
"name": "*",
|
|
1433
|
+
"declaration": {
|
|
1434
|
+
"name": "*",
|
|
1435
|
+
"package": "./styles"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"kind": "js",
|
|
1440
|
+
"name": "*",
|
|
1441
|
+
"declaration": {
|
|
1442
|
+
"name": "*",
|
|
1443
|
+
"package": "./tokens"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"kind": "js",
|
|
1448
|
+
"name": "*",
|
|
1449
|
+
"declaration": {
|
|
1450
|
+
"name": "*",
|
|
1451
|
+
"package": "./values"
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
]
|
|
1455
|
+
},
|
|
1425
1456
|
{
|
|
1426
1457
|
"kind": "javascript-module",
|
|
1427
1458
|
"path": "src/accordion-item/accordion-item.styles.ts",
|
|
@@ -2331,37 +2362,6 @@
|
|
|
2331
2362
|
}
|
|
2332
2363
|
]
|
|
2333
2364
|
},
|
|
2334
|
-
{
|
|
2335
|
-
"kind": "javascript-module",
|
|
2336
|
-
"path": "src/_config/index.ts",
|
|
2337
|
-
"declarations": [],
|
|
2338
|
-
"exports": [
|
|
2339
|
-
{
|
|
2340
|
-
"kind": "js",
|
|
2341
|
-
"name": "*",
|
|
2342
|
-
"declaration": {
|
|
2343
|
-
"name": "*",
|
|
2344
|
-
"package": "./styles"
|
|
2345
|
-
}
|
|
2346
|
-
},
|
|
2347
|
-
{
|
|
2348
|
-
"kind": "js",
|
|
2349
|
-
"name": "*",
|
|
2350
|
-
"declaration": {
|
|
2351
|
-
"name": "*",
|
|
2352
|
-
"package": "./tokens"
|
|
2353
|
-
}
|
|
2354
|
-
},
|
|
2355
|
-
{
|
|
2356
|
-
"kind": "js",
|
|
2357
|
-
"name": "*",
|
|
2358
|
-
"declaration": {
|
|
2359
|
-
"name": "*",
|
|
2360
|
-
"package": "./values"
|
|
2361
|
-
}
|
|
2362
|
-
}
|
|
2363
|
-
]
|
|
2364
|
-
},
|
|
2365
2365
|
{
|
|
2366
2366
|
"kind": "javascript-module",
|
|
2367
2367
|
"path": "src/actions-menu/actions-menu.styles.ts",
|
|
@@ -34163,6 +34163,23 @@
|
|
|
34163
34163
|
}
|
|
34164
34164
|
}
|
|
34165
34165
|
},
|
|
34166
|
+
{
|
|
34167
|
+
"kind": "method",
|
|
34168
|
+
"name": "handleKeyDown",
|
|
34169
|
+
"return": {
|
|
34170
|
+
"type": {
|
|
34171
|
+
"text": "boolean"
|
|
34172
|
+
}
|
|
34173
|
+
},
|
|
34174
|
+
"parameters": [
|
|
34175
|
+
{
|
|
34176
|
+
"name": "e",
|
|
34177
|
+
"type": {
|
|
34178
|
+
"text": "KeyboardEvent"
|
|
34179
|
+
}
|
|
34180
|
+
}
|
|
34181
|
+
]
|
|
34182
|
+
},
|
|
34166
34183
|
{
|
|
34167
34184
|
"kind": "method",
|
|
34168
34185
|
"name": "handleTextInput",
|
|
@@ -29,6 +29,7 @@ export declare class NumberField extends NumberField_base {
|
|
|
29
29
|
stepDown(): void;
|
|
30
30
|
hasSeparatorWithoutDecimals(): RegExp;
|
|
31
31
|
private restoreControlToCommittedValue;
|
|
32
|
+
handleKeyDown(e: KeyboardEvent): boolean;
|
|
32
33
|
handleTextInput(): void;
|
|
33
34
|
valueChanged(previous: any, next: any): void;
|
|
34
35
|
handleBlur(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../../src/number-field/number-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../../src/number-field/number-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;AAqBrE;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,gBAA2B;IACpD,YAAY,EAAE,MAAM,CAAS;IACnC,OAAO,CAAC,mBAAmB;IAKA,QAAQ,EAAE,OAAO,CAAS;IAQrD,KAAK,EAAE,MAAM,CAAM;IACQ,cAAc,EAAE,OAAO,CAAS;IACrD,MAAM,EAAE,MAAM,CAAW;IACJ,iBAAiB,EAAE,OAAO,CAAS;IACxD,qBAAqB,EAAE,MAAM,CAAuB;IAE1D,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAG/B;IAEF,MAAM,IAAI,IAAI;IAuCd,QAAQ,IAAI,IAAI;IA0ChB,2BAA2B;IAK3B,OAAO,CAAC,8BAA8B;IAetC,aAAa,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO;IAOxC,eAAe,IAAI,IAAI;IA+DvB,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;IAsC5C,UAAU,IAAI,IAAI;CA4BnB;AAED,eAAO,MAAM,kCAAkC,EAAE,cAGhD,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;CAWpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,oTAMhC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { NumberParser } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { NumberField as FASTNumberField } from '@microsoft/fast-components';
|
|
4
4
|
import { DOM, attr } from '@microsoft/fast-element';
|
|
5
|
+
import { keyEnter } from '@microsoft/fast-web-utilities';
|
|
5
6
|
import { AffixMixin } from '../_common';
|
|
6
7
|
import { foundationNumberFieldStyles as styles } from './number-field.styles';
|
|
7
8
|
import { foundationNumberFieldTemplate as template } from './number-field.template';
|
|
@@ -109,6 +110,12 @@ export class NumberField extends AffixMixin(FASTNumberField) {
|
|
|
109
110
|
: formatControlValue(String(previousValue), this.locale);
|
|
110
111
|
this['isUserInput'] = false;
|
|
111
112
|
}
|
|
113
|
+
handleKeyDown(e) {
|
|
114
|
+
if (e.key === keyEnter) {
|
|
115
|
+
this['isUserInput'] = false;
|
|
116
|
+
}
|
|
117
|
+
return super.handleKeyDown(e);
|
|
118
|
+
}
|
|
112
119
|
handleTextInput() {
|
|
113
120
|
if (!this.control)
|
|
114
121
|
return;
|
|
@@ -174,7 +181,8 @@ export class NumberField extends AffixMixin(FASTNumberField) {
|
|
|
174
181
|
});
|
|
175
182
|
return;
|
|
176
183
|
}
|
|
177
|
-
// While the user is typing, handleTextInput
|
|
184
|
+
// While the user is typing, handleTextInput owns value + display; handleBlur and
|
|
185
|
+
// handleKeyDown (Enter) both clear isUserInput to release that ownership on commit.
|
|
178
186
|
return;
|
|
179
187
|
}
|
|
180
188
|
}
|
|
@@ -58330,6 +58330,55 @@
|
|
|
58330
58330
|
"isAbstract": false,
|
|
58331
58331
|
"name": "handleBlur"
|
|
58332
58332
|
},
|
|
58333
|
+
{
|
|
58334
|
+
"kind": "Method",
|
|
58335
|
+
"canonicalReference": "@genesislcap/foundation-ui!NumberField#handleKeyDown:member(1)",
|
|
58336
|
+
"docComment": "",
|
|
58337
|
+
"excerptTokens": [
|
|
58338
|
+
{
|
|
58339
|
+
"kind": "Content",
|
|
58340
|
+
"text": "handleKeyDown(e: "
|
|
58341
|
+
},
|
|
58342
|
+
{
|
|
58343
|
+
"kind": "Reference",
|
|
58344
|
+
"text": "KeyboardEvent",
|
|
58345
|
+
"canonicalReference": "!KeyboardEvent:interface"
|
|
58346
|
+
},
|
|
58347
|
+
{
|
|
58348
|
+
"kind": "Content",
|
|
58349
|
+
"text": "): "
|
|
58350
|
+
},
|
|
58351
|
+
{
|
|
58352
|
+
"kind": "Content",
|
|
58353
|
+
"text": "boolean"
|
|
58354
|
+
},
|
|
58355
|
+
{
|
|
58356
|
+
"kind": "Content",
|
|
58357
|
+
"text": ";"
|
|
58358
|
+
}
|
|
58359
|
+
],
|
|
58360
|
+
"isStatic": false,
|
|
58361
|
+
"returnTypeTokenRange": {
|
|
58362
|
+
"startIndex": 3,
|
|
58363
|
+
"endIndex": 4
|
|
58364
|
+
},
|
|
58365
|
+
"releaseTag": "Public",
|
|
58366
|
+
"isProtected": false,
|
|
58367
|
+
"overloadIndex": 1,
|
|
58368
|
+
"parameters": [
|
|
58369
|
+
{
|
|
58370
|
+
"parameterName": "e",
|
|
58371
|
+
"parameterTypeTokenRange": {
|
|
58372
|
+
"startIndex": 1,
|
|
58373
|
+
"endIndex": 2
|
|
58374
|
+
},
|
|
58375
|
+
"isOptional": false
|
|
58376
|
+
}
|
|
58377
|
+
],
|
|
58378
|
+
"isOptional": false,
|
|
58379
|
+
"isAbstract": false,
|
|
58380
|
+
"name": "handleKeyDown"
|
|
58381
|
+
},
|
|
58333
58382
|
{
|
|
58334
58383
|
"kind": "Method",
|
|
58335
58384
|
"canonicalReference": "@genesislcap/foundation-ui!NumberField#handleTextInput:member(1)",
|
package/dist/foundation-ui.d.ts
CHANGED
|
@@ -5842,6 +5842,7 @@ export declare class NumberField extends NumberField_base {
|
|
|
5842
5842
|
stepDown(): void;
|
|
5843
5843
|
hasSeparatorWithoutDecimals(): RegExp;
|
|
5844
5844
|
private restoreControlToCommittedValue;
|
|
5845
|
+
handleKeyDown(e: KeyboardEvent): boolean;
|
|
5845
5846
|
handleTextInput(): void;
|
|
5846
5847
|
valueChanged(previous: any, next: any): void;
|
|
5847
5848
|
handleBlur(): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.15.0-FUI-2603.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@genesislcap/foundation-testing": "15.
|
|
89
|
-
"@genesislcap/genx": "15.
|
|
90
|
-
"@genesislcap/rollup-builder": "15.
|
|
91
|
-
"@genesislcap/ts-builder": "15.
|
|
92
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
93
|
-
"@genesislcap/vite-builder": "15.
|
|
94
|
-
"@genesislcap/webpack-builder": "15.
|
|
88
|
+
"@genesislcap/foundation-testing": "15.15.0-FUI-2603.5",
|
|
89
|
+
"@genesislcap/genx": "15.15.0-FUI-2603.5",
|
|
90
|
+
"@genesislcap/rollup-builder": "15.15.0-FUI-2603.5",
|
|
91
|
+
"@genesislcap/ts-builder": "15.15.0-FUI-2603.5",
|
|
92
|
+
"@genesislcap/uvu-playwright-builder": "15.15.0-FUI-2603.5",
|
|
93
|
+
"@genesislcap/vite-builder": "15.15.0-FUI-2603.5",
|
|
94
|
+
"@genesislcap/webpack-builder": "15.15.0-FUI-2603.5",
|
|
95
95
|
"copyfiles": "^2.4.1"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
@@ -100,16 +100,16 @@
|
|
|
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/expression-builder": "15.
|
|
104
|
-
"@genesislcap/foundation-ai": "15.
|
|
105
|
-
"@genesislcap/foundation-comms": "15.
|
|
106
|
-
"@genesislcap/foundation-criteria": "15.
|
|
107
|
-
"@genesislcap/foundation-errors": "15.
|
|
108
|
-
"@genesislcap/foundation-events": "15.
|
|
109
|
-
"@genesislcap/foundation-logger": "15.
|
|
110
|
-
"@genesislcap/foundation-notifications": "15.
|
|
111
|
-
"@genesislcap/foundation-user": "15.
|
|
112
|
-
"@genesislcap/foundation-utils": "15.
|
|
103
|
+
"@genesislcap/expression-builder": "15.15.0-FUI-2603.5",
|
|
104
|
+
"@genesislcap/foundation-ai": "15.15.0-FUI-2603.5",
|
|
105
|
+
"@genesislcap/foundation-comms": "15.15.0-FUI-2603.5",
|
|
106
|
+
"@genesislcap/foundation-criteria": "15.15.0-FUI-2603.5",
|
|
107
|
+
"@genesislcap/foundation-errors": "15.15.0-FUI-2603.5",
|
|
108
|
+
"@genesislcap/foundation-events": "15.15.0-FUI-2603.5",
|
|
109
|
+
"@genesislcap/foundation-logger": "15.15.0-FUI-2603.5",
|
|
110
|
+
"@genesislcap/foundation-notifications": "15.15.0-FUI-2603.5",
|
|
111
|
+
"@genesislcap/foundation-user": "15.15.0-FUI-2603.5",
|
|
112
|
+
"@genesislcap/foundation-utils": "15.15.0-FUI-2603.5",
|
|
113
113
|
"@microsoft/fast-colors": "5.3.1",
|
|
114
114
|
"@microsoft/fast-components": "2.30.6",
|
|
115
115
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"require": "./dist/react.cjs"
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "f64026794fa925cfd4ee56af026663a094040603"
|
|
146
146
|
}
|