@fluid-topics/ft-text-input 1.3.1 → 1.3.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.
- package/build/ft-text-input.light.js +1113 -253
- package/build/ft-text-input.min.js +1137 -264
- package/build/ftds-text-input.js +12 -8
- package/build/ftds-text-input.styles.js +2 -2
- package/package.json +10 -4
package/build/ftds-text-input.js
CHANGED
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { property, query, state } from "lit/decorators.js";
|
|
9
9
|
import { FtdsTextInputType } from "./ftds-text-input.properties";
|
|
10
|
-
import { styles
|
|
10
|
+
import { styles } from "./ftds-text-input.styles";
|
|
11
11
|
import { classMap } from "lit/directives/class-map.js";
|
|
12
12
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
13
|
-
import { FtdsBase, toFtInput, ValidationRules
|
|
13
|
+
import { FtdsBase, Status, toFtInput, ValidationRules } from "@fluid-topics/ft-wc-utils";
|
|
14
14
|
import { FtdsInputLabel } from "@fluid-topics/ft-input-label/build/ftds-input-label";
|
|
15
15
|
import { FtdsInputHelperText } from "@fluid-topics/ft-input-helper-text";
|
|
16
16
|
import { FtIcon, FtIcons } from "@fluid-topics/ft-icon";
|
|
@@ -56,14 +56,14 @@ class FtdsTextInput extends withI18n(toFtInput(FtdsBase)) {
|
|
|
56
56
|
render() {
|
|
57
57
|
const inputClasses = classMap({
|
|
58
58
|
"ftds-input": true,
|
|
59
|
-
...this.getDesignSystemBaseClasses()
|
|
59
|
+
...this.getDesignSystemBaseClasses(),
|
|
60
60
|
});
|
|
61
61
|
return html `
|
|
62
62
|
<ftds-base-input
|
|
63
63
|
|
|
64
64
|
.status=${this.status}
|
|
65
65
|
.size=${this.size}
|
|
66
|
-
?disabled
|
|
66
|
+
?disabled=${this.disabled}
|
|
67
67
|
|
|
68
68
|
.errorMessages=${this.errorMessages}
|
|
69
69
|
.warningMessages=${this.warningMessages}
|
|
@@ -76,21 +76,25 @@ class FtdsTextInput extends withI18n(toFtInput(FtdsBase)) {
|
|
|
76
76
|
.appendIcon=${this.passwordIconForCurrentState}
|
|
77
77
|
.appendIconLabel=${this.showClearPassword ? textInputContext.messages.hidePassword() : textInputContext.messages.showPassword()}
|
|
78
78
|
appendIconIsClickable
|
|
79
|
-
@append-icon-click
|
|
79
|
+
@append-icon-click="${() => this.showClearPassword = !this.showClearPassword}"
|
|
80
80
|
|
|
81
81
|
>
|
|
82
82
|
|
|
83
|
-
<input class
|
|
83
|
+
<input class="${inputClasses}"
|
|
84
84
|
name="${this.name}"
|
|
85
|
-
.value
|
|
86
|
-
.type
|
|
85
|
+
.value=${this.value}
|
|
86
|
+
.type=${this.inputType}
|
|
87
87
|
?disabled=${this.disabled}
|
|
88
88
|
@input=${this.onInput}
|
|
89
89
|
@focus=${this.onFocus}
|
|
90
90
|
@blur=${this.onBlur}
|
|
91
91
|
aria-label="${ifDefined(this.label)}"
|
|
92
|
+
aria-invalid="${this.status === Status.error}"
|
|
93
|
+
aria-describedby="${this.messagesForScreenReaderElementId}"
|
|
92
94
|
/>
|
|
93
95
|
|
|
96
|
+
${this.renderMessagesForScreenReader()}
|
|
97
|
+
|
|
94
98
|
</ftds-base-input>
|
|
95
99
|
`;
|
|
96
100
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css
|
|
1
|
+
import { css } from "lit";
|
|
2
2
|
import { typographyBody2Medium } from "@fluid-topics/design-system-variables";
|
|
3
3
|
export { textInput as FtdsTextInputCssVariables } from "@fluid-topics/design-system-variables";
|
|
4
4
|
//language=css
|
|
@@ -26,7 +26,7 @@ export const styles = css `
|
|
|
26
26
|
input[type="date"]::-webkit-inner-spin-button,
|
|
27
27
|
input[type="time"]::-webkit-inner-spin-button,
|
|
28
28
|
input[type="date"]::-webkit-calendar-picker-indicator,
|
|
29
|
-
input[type="time"]::-webkit-calendar-picker-indicator{
|
|
29
|
+
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
30
30
|
display: none;
|
|
31
31
|
-webkit-appearance: none;
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-input",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Text Input",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,17 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-
|
|
22
|
+
"@fluid-topics/ft-base-input": "1.3.3",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.3.3",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.3.3",
|
|
25
|
+
"@fluid-topics/ft-input-helper-text": "1.3.3",
|
|
26
|
+
"@fluid-topics/ft-input-label": "1.3.3",
|
|
27
|
+
"@fluid-topics/ft-tooltip": "1.3.3",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "1.3.3",
|
|
23
29
|
"lit": "3.1.0"
|
|
24
30
|
},
|
|
25
31
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
32
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.3"
|
|
27
33
|
},
|
|
28
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1b75383f913a10dc67e677d1b44eea930ed5e41f"
|
|
29
35
|
}
|