@fluid-topics/ft-text-field 2.0.15 → 2.0.16
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/build/ft-text-field-suggestion.js +1 -2
- package/build/ft-text-field.js +12 -10
- package/build/ft-text-field.light.js +75 -75
- package/build/ft-text-field.min.js +155 -155
- package/package.json +7 -7
|
@@ -17,7 +17,7 @@ export class SuggestionSelectedEvent extends CustomEvent {
|
|
|
17
17
|
super("suggestion-selected", { detail: value, bubbles: true, composed: true });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
class FtTextFieldSuggestion extends FtLitElement {
|
|
20
|
+
export class FtTextFieldSuggestion extends FtLitElement {
|
|
21
21
|
render() {
|
|
22
22
|
const classes = {
|
|
23
23
|
"ft-text-field-suggestion": true,
|
|
@@ -84,4 +84,3 @@ __decorate([
|
|
|
84
84
|
__decorate([
|
|
85
85
|
queryAssignedNodes()
|
|
86
86
|
], FtTextFieldSuggestion.prototype, "assignedNodes", void 0);
|
|
87
|
-
export { FtTextFieldSuggestion };
|
package/build/ft-text-field.js
CHANGED
|
@@ -4,20 +4,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, nothing } from "lit";
|
|
8
|
-
import { property, query, queryAll, queryAssignedElements, state } from "lit/decorators.js";
|
|
7
|
+
import { html, nothing, } from "lit";
|
|
8
|
+
import { property, query, queryAll, queryAssignedElements, state, } from "lit/decorators.js";
|
|
9
9
|
import { repeat } from "lit/directives/repeat.js";
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
|
-
import { computeOffsetAutoPosition, FtLitElement, noTextInputDefaultClearButton, toFtFormComponent } from "@fluid-topics/ft-wc-utils";
|
|
13
|
-
import { FtTypography, FtTypographyBody1, FtTypographyVariants } from "@fluid-topics/ft-typography";
|
|
12
|
+
import { computeOffsetAutoPosition, FtLitElement, ignoreComposingEvents, noTextInputDefaultClearButton, numberProperty, toFtFormComponent, } from "@fluid-topics/ft-wc-utils";
|
|
13
|
+
import { FtTypography, FtTypographyBody1, FtTypographyVariants, } from "@fluid-topics/ft-typography";
|
|
14
14
|
import { FtInputLabel } from "@fluid-topics/ft-input-label";
|
|
15
15
|
import { FtRipple } from "@fluid-topics/ft-ripple";
|
|
16
|
-
import { FtIcon, FtIcons } from "@fluid-topics/ft-icon";
|
|
16
|
+
import { FtIcon, FtIcons, } from "@fluid-topics/ft-icon";
|
|
17
17
|
import { styles } from "./ft-text-field.styles";
|
|
18
|
-
import { FtTextFieldSuggestion } from "./ft-text-field-suggestion";
|
|
19
|
-
import { FtTextFieldChangeEvent, FtTextFieldInvalidEvent, FtTextFieldLiveChangeEvent } from "./models";
|
|
20
|
-
class FtTextField extends toFtFormComponent(FtLitElement) {
|
|
18
|
+
import { FtTextFieldSuggestion, } from "./ft-text-field-suggestion";
|
|
19
|
+
import { FtTextFieldChangeEvent, FtTextFieldInvalidEvent, FtTextFieldLiveChangeEvent, } from "./models";
|
|
20
|
+
export class FtTextField extends toFtFormComponent(FtLitElement) {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this._value = "";
|
|
@@ -417,7 +417,7 @@ __decorate([
|
|
|
417
417
|
property({ type: Boolean })
|
|
418
418
|
], FtTextField.prototype, "filterSuggestions", void 0);
|
|
419
419
|
__decorate([
|
|
420
|
-
|
|
420
|
+
numberProperty()
|
|
421
421
|
], FtTextField.prototype, "maxLength", void 0);
|
|
422
422
|
__decorate([
|
|
423
423
|
property({ type: Boolean })
|
|
@@ -464,4 +464,6 @@ __decorate([
|
|
|
464
464
|
__decorate([
|
|
465
465
|
queryAssignedElements({ selector: "ft-text-field-suggestion" })
|
|
466
466
|
], FtTextField.prototype, "slottedSuggestions", void 0);
|
|
467
|
-
|
|
467
|
+
__decorate([
|
|
468
|
+
ignoreComposingEvents()
|
|
469
|
+
], FtTextField.prototype, "handleInput", null);
|