nucleus-core-ts 0.10.196 → 0.10.198
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/.build-ok +1 -1
- package/dist/dist/index.d.ts +1 -0
- package/dist/fe/components/NucleusTextInput/components/TextInputField.js +9 -0
- package/dist/index.js +3 -3
- package/dist/server.js +3 -3
- package/dist/src/Migrations/boot.d.ts +1 -0
- package/dist/src/Migrations/checksum.d.ts +2 -0
- package/dist/src/Migrations/testkit.d.ts +1 -1
- package/dist/src/Migrations/types.d.ts +8 -1
- package/dist/src/types.d.ts +6 -0
- package/package.json +1 -1
- package/schemas/config.nucleus.json +13 -2
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.198
|
package/dist/dist/index.d.ts
CHANGED
|
@@ -439,6 +439,7 @@ export function runMigrations(opts: any): Promise<{
|
|
|
439
439
|
skipped: never[];
|
|
440
440
|
alreadyApplied: never[];
|
|
441
441
|
unknown: never[];
|
|
442
|
+
retired: never[];
|
|
442
443
|
}>;
|
|
443
444
|
export function rulesOf(document2: any): any;
|
|
444
445
|
export function ruleFailure(rule: any, fields: any, context: any): {
|
|
@@ -24,6 +24,15 @@ import { InputMessage } from './InputMessage';
|
|
|
24
24
|
}, theme), 'cursor-text', wrapperClassName),
|
|
25
25
|
onMouseEnter: onMouseEnter,
|
|
26
26
|
onMouseLeave: onMouseLeave,
|
|
27
|
+
onMouseDown: (event)=>{
|
|
28
|
+
// A press on the frame (its padding, the floating label, a unit) focuses the input at once. The frame is a label, which
|
|
29
|
+
// only focuses its input on click (mouse up): until then focus sits on the page and a fast first keystroke is lost. A
|
|
30
|
+
// press on the input itself or on a control inside the frame (the password toggle) keeps its own behaviour.
|
|
31
|
+
const target = event.target;
|
|
32
|
+
if (disabled || !(target instanceof Element) || target.closest('input, textarea, select, button, a, [role="button"]')) return;
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
inputRef.current?.focus();
|
|
35
|
+
},
|
|
27
36
|
children: [
|
|
28
37
|
leadingIcon && /*#__PURE__*/ _jsx(InputAdornment, {
|
|
29
38
|
side: "left",
|