@vaadin/field-base 25.2.0-alpha10 → 25.2.0-alpha11
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/package.json +7 -7
- package/src/checked-mixin.js +0 -5
- package/src/clear-button-mixin.js +0 -4
- package/src/error-controller.d.ts +2 -0
- package/src/field-mixin.js +0 -4
- package/src/helper-controller.d.ts +2 -0
- package/src/input-constraints-mixin.js +0 -5
- package/src/input-control-mixin.js +0 -8
- package/src/input-controller.d.ts +3 -1
- package/src/input-field-mixin.js +0 -3
- package/src/input-mixin.js +0 -2
- package/src/label-controller.d.ts +2 -0
- package/src/label-mixin.js +0 -2
- package/src/labelled-input-controller.d.ts +17 -1
- package/src/pattern-mixin.js +0 -3
- package/src/text-area-controller.d.ts +3 -1
- package/src/validate-mixin.js +0 -2
- package/src/virtual-keyboard-controller.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
35
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
36
|
-
"@vaadin/component-base": "25.2.0-
|
|
35
|
+
"@vaadin/a11y-base": "25.2.0-alpha11",
|
|
36
|
+
"@vaadin/component-base": "25.2.0-alpha11",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
41
|
-
"@vaadin/input-container": "25.2.0-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
40
|
+
"@vaadin/chai-plugins": "25.2.0-alpha11",
|
|
41
|
+
"@vaadin/input-container": "25.2.0-alpha11",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha11",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^21.0.2"
|
|
45
45
|
},
|
|
46
46
|
"customElements": "custom-elements.json",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "fdc37e932709f95491a027aeb2090911cb7528c6"
|
|
48
48
|
}
|
package/src/checked-mixin.js
CHANGED
|
@@ -9,11 +9,6 @@ import { InputMixin } from './input-mixin.js';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A mixin to manage the checked state.
|
|
12
|
-
*
|
|
13
|
-
* @polymerMixin
|
|
14
|
-
* @mixes DelegateStateMixin
|
|
15
|
-
* @mixes DisabledMixin
|
|
16
|
-
* @mixes InputMixin
|
|
17
12
|
*/
|
|
18
13
|
export const CheckedMixin = (superclass) =>
|
|
19
14
|
class CheckedMixinClass extends DelegateStateMixin(DisabledMixin(InputMixin(superclass))) {
|
|
@@ -10,10 +10,6 @@ import { InputMixin } from './input-mixin.js';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A mixin that manages the clear button.
|
|
13
|
-
*
|
|
14
|
-
* @polymerMixin
|
|
15
|
-
* @mixes InputMixin
|
|
16
|
-
* @mixes KeyboardMixin
|
|
17
13
|
*/
|
|
18
14
|
export const ClearButtonMixin = (superclass) =>
|
|
19
15
|
class ClearButtonMixinClass extends InputMixin(KeyboardMixin(superclass)) {
|
|
@@ -9,6 +9,8 @@ import { SlotChildObserveController } from '@vaadin/component-base/src/slot-chil
|
|
|
9
9
|
* A controller that manages the error message node content.
|
|
10
10
|
*/
|
|
11
11
|
export class ErrorController extends SlotChildObserveController {
|
|
12
|
+
constructor(host: HTMLElement);
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* String used for the error message text content.
|
|
14
16
|
*/
|
package/src/field-mixin.js
CHANGED
|
@@ -11,10 +11,6 @@ import { ValidateMixin } from './validate-mixin.js';
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A mixin to provide common field logic: label, error message and helper text.
|
|
14
|
-
*
|
|
15
|
-
* @polymerMixin
|
|
16
|
-
* @mixes LabelMixin
|
|
17
|
-
* @mixes ValidateMixin
|
|
18
14
|
*/
|
|
19
15
|
export const FieldMixin = (superclass) =>
|
|
20
16
|
class FieldMixinClass extends ValidateMixin(LabelMixin(superclass)) {
|
|
@@ -9,6 +9,8 @@ import { SlotChildObserveController } from '@vaadin/component-base/src/slot-chil
|
|
|
9
9
|
* A controller that manages the helper node content.
|
|
10
10
|
*/
|
|
11
11
|
export class HelperController extends SlotChildObserveController {
|
|
12
|
+
constructor(host: HTMLElement);
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* String used for the helper text.
|
|
14
16
|
*/
|
|
@@ -10,11 +10,6 @@ import { ValidateMixin } from './validate-mixin.js';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A mixin to combine multiple input validation constraints.
|
|
13
|
-
*
|
|
14
|
-
* @polymerMixin
|
|
15
|
-
* @mixes DelegateStateMixin
|
|
16
|
-
* @mixes InputMixin
|
|
17
|
-
* @mixes ValidateMixin
|
|
18
13
|
*/
|
|
19
14
|
const InputConstraintsMixinImplementation = (superclass) => {
|
|
20
15
|
return class InputConstraintsMixinClass extends DelegateStateMixin(ValidateMixin(InputMixin(superclass))) {
|
|
@@ -14,14 +14,6 @@ import { InputConstraintsMixin } from './input-constraints-mixin.js';
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A mixin to provide shared logic for the editable form input controls.
|
|
17
|
-
*
|
|
18
|
-
* @polymerMixin
|
|
19
|
-
* @mixes DelegateFocusMixin
|
|
20
|
-
* @mixes FieldMixin
|
|
21
|
-
* @mixes InputConstraintsMixin
|
|
22
|
-
* @mixes KeyboardMixin
|
|
23
|
-
* @mixes ClearButtonMixin
|
|
24
|
-
* @mixes SlotStylesMixin
|
|
25
17
|
*/
|
|
26
18
|
export const InputControlMixin = (superclass) =>
|
|
27
19
|
class InputControlMixinClass extends SlotStylesMixin(
|
|
@@ -8,4 +8,6 @@ import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* A controller to create and initialize slotted `<input>` element.
|
|
10
10
|
*/
|
|
11
|
-
export class InputController extends SlotController {
|
|
11
|
+
export class InputController extends SlotController {
|
|
12
|
+
constructor(host: HTMLElement, callback?: (node: HTMLInputElement) => void, options?: { uniqueIdPrefix?: string });
|
|
13
|
+
}
|
package/src/input-field-mixin.js
CHANGED
|
@@ -7,9 +7,6 @@ import { InputControlMixin } from './input-control-mixin.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A mixin to provide logic for vaadin-text-field and related components.
|
|
10
|
-
*
|
|
11
|
-
* @polymerMixin
|
|
12
|
-
* @mixes InputControlMixin
|
|
13
10
|
*/
|
|
14
11
|
export const InputFieldMixin = (superclass) =>
|
|
15
12
|
class InputFieldMixinClass extends InputControlMixin(superclass) {
|
package/src/input-mixin.js
CHANGED
|
@@ -8,8 +8,6 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';
|
|
|
8
8
|
/**
|
|
9
9
|
* A mixin to store the reference to an input element
|
|
10
10
|
* and add input and change event listeners to it.
|
|
11
|
-
*
|
|
12
|
-
* @polymerMixin
|
|
13
11
|
*/
|
|
14
12
|
const InputMixinImplementation = (superclass) => {
|
|
15
13
|
return class InputMixinClass extends superclass {
|
|
@@ -9,6 +9,8 @@ import { SlotChildObserveController } from '@vaadin/component-base/src/slot-chil
|
|
|
9
9
|
* A controller to manage the label element.
|
|
10
10
|
*/
|
|
11
11
|
export class LabelController extends SlotChildObserveController {
|
|
12
|
+
constructor(host: HTMLElement);
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* String used for the label.
|
|
14
16
|
*/
|
package/src/label-mixin.js
CHANGED
|
@@ -4,8 +4,24 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { ReactiveController } from 'lit';
|
|
7
|
+
import type { LabelController } from './label-controller.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* A controller for linking a `<label>` element with an `<input>` element.
|
|
10
11
|
*/
|
|
11
|
-
export class LabelledInputController implements ReactiveController {
|
|
12
|
+
export class LabelledInputController implements ReactiveController {
|
|
13
|
+
constructor(input: HTMLInputElement, labelController: LabelController);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The input element to link with the label.
|
|
17
|
+
*/
|
|
18
|
+
input: HTMLInputElement;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Phantom optional method to satisfy the `ReactiveController` interface
|
|
22
|
+
* (TS2559: an interface with all-optional members needs at least one
|
|
23
|
+
* declared property in common). Not implemented at runtime; Lit's
|
|
24
|
+
* `addController` invokes it via optional chaining.
|
|
25
|
+
*/
|
|
26
|
+
hostConnected?(): void;
|
|
27
|
+
}
|
package/src/pattern-mixin.js
CHANGED
|
@@ -7,9 +7,6 @@ import { InputConstraintsMixin } from './input-constraints-mixin.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A mixin to provide `pattern` property.
|
|
10
|
-
*
|
|
11
|
-
* @polymerMixin
|
|
12
|
-
* @mixes InputConstraintsMixin
|
|
13
10
|
*/
|
|
14
11
|
export const PatternMixin = (superclass) =>
|
|
15
12
|
class PatternMixinClass extends InputConstraintsMixin(superclass) {
|
|
@@ -8,4 +8,6 @@ import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* A controller to create and initialize slotted `<textarea>` element.
|
|
10
10
|
*/
|
|
11
|
-
export class TextAreaController extends SlotController {
|
|
11
|
+
export class TextAreaController extends SlotController {
|
|
12
|
+
constructor(host: HTMLElement, callback?: (node: HTMLTextAreaElement) => void);
|
|
13
|
+
}
|
package/src/validate-mixin.js
CHANGED
|
@@ -11,4 +11,12 @@ import type { ReactiveController } from 'lit';
|
|
|
11
11
|
*/
|
|
12
12
|
export class VirtualKeyboardController implements ReactiveController {
|
|
13
13
|
constructor(host: HTMLElement & { inputElement?: HTMLElement; opened: boolean });
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Phantom optional method to satisfy the `ReactiveController` interface
|
|
17
|
+
* (TS2559: an interface with all-optional members needs at least one
|
|
18
|
+
* declared property in common). Not implemented at runtime; Lit's
|
|
19
|
+
* `addController` invokes it via optional chaining.
|
|
20
|
+
*/
|
|
21
|
+
hostConnected?(): void;
|
|
14
22
|
}
|