@synergy-design-system/components 1.5.1 → 1.6.1
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/chunks/{chunk.X4L3ZC6K.js → chunk.23XIIXFZ.js} +2 -2
- package/dist/chunks/chunk.2OLVTQ5P.js +254 -0
- package/dist/chunks/chunk.2OLVTQ5P.js.map +7 -0
- package/dist/chunks/{chunk.IFDNGB63.js → chunk.2PIMZJBX.js} +3 -3
- package/dist/chunks/{chunk.D3VKCPDE.js → chunk.2VJGG5SD.js} +162 -6
- package/dist/chunks/chunk.2VJGG5SD.js.map +7 -0
- package/dist/chunks/{chunk.UBTUEIMR.js → chunk.4OUJKHRJ.js} +2 -2
- package/dist/chunks/{chunk.I3FGUPLH.js → chunk.5MD6EBSY.js} +3 -3
- package/dist/chunks/{chunk.KG3FXWCX.js → chunk.5S3OJR6Z.js} +2 -2
- package/dist/chunks/{chunk.FXTLCVXC.js → chunk.7K26RLTL.js} +2 -2
- package/dist/chunks/{chunk.OKG27K27.js → chunk.7OGFJKHP.js} +2 -2
- package/dist/chunks/{chunk.4STUWO3B.js → chunk.AM34E33G.js} +3 -3
- package/dist/chunks/{chunk.O5XNATYN.js → chunk.BAAUH5DH.js} +2 -2
- package/dist/chunks/{chunk.SAGHXH7E.js → chunk.CFBIDJ72.js} +2 -2
- package/dist/chunks/{chunk.T72SACBE.js → chunk.DULBBZUA.js} +2 -2
- package/dist/chunks/{chunk.T72SACBE.js.map → chunk.DULBBZUA.js.map} +1 -1
- package/dist/chunks/{chunk.XFLQL2QO.js → chunk.DYCZPZ6T.js} +3 -3
- package/dist/chunks/{chunk.KUZJTGHQ.js → chunk.EKOK7YPB.js} +5 -21
- package/dist/chunks/{chunk.KUZJTGHQ.js.map → chunk.EKOK7YPB.js.map} +2 -2
- package/dist/chunks/{chunk.QCDOK7E4.js → chunk.FCGPI6ON.js} +2 -2
- package/dist/chunks/{chunk.QPANY6PY.js → chunk.FZ4XKET2.js} +2 -2
- package/dist/chunks/{chunk.GVCB2D7B.js → chunk.GHCD7CUQ.js} +2 -2
- package/dist/chunks/{chunk.DVCDA2IN.js → chunk.HZO5IAUS.js} +4 -4
- package/dist/chunks/{chunk.SLW5NPQB.js → chunk.HZXUXR2V.js} +2 -2
- package/dist/chunks/{chunk.5FCLDQKW.js → chunk.I6GT4YUF.js} +3 -3
- package/dist/chunks/{chunk.XSFEPYWK.js → chunk.I7LFDXM4.js} +2 -2
- package/dist/chunks/{chunk.IFE4G4PB.js → chunk.IC6S5VNW.js} +2 -2
- package/dist/chunks/{chunk.UTDK2ZT6.js → chunk.KQSLZDOW.js} +5 -5
- package/dist/chunks/{chunk.VIQZQ3S6.js → chunk.LEVUN7II.js} +2 -2
- package/dist/chunks/{chunk.KRTGIYIX.js → chunk.MDTK2XLX.js} +2 -2
- package/dist/chunks/{chunk.K5NVNHHD.js → chunk.NZ7AYZ7E.js} +2 -2
- package/dist/chunks/{chunk.4S6GR2Q7.js → chunk.OUYVGVIY.js} +2 -2
- package/dist/chunks/{chunk.M3P4B2GP.js → chunk.OZF3DZSV.js} +3 -3
- package/dist/chunks/{chunk.JDDBS57F.js → chunk.PWYCVX32.js} +3 -3
- package/dist/chunks/{chunk.V57DLRD2.js → chunk.R27TACBP.js} +2 -2
- package/dist/chunks/{chunk.OAIA6MLB.js → chunk.R5VB3GMN.js} +2 -2
- package/dist/chunks/{chunk.YN2IXOBF.js → chunk.SE25XG6G.js} +2 -2
- package/dist/chunks/{chunk.DLPNGATM.js → chunk.SEQOINRC.js} +2 -2
- package/dist/chunks/{chunk.UYYPTTK2.js → chunk.SR2C7JNO.js} +2 -2
- package/dist/chunks/{chunk.64EZRK2A.js → chunk.YGZDEVFH.js} +2 -2
- package/dist/chunks/{chunk.7MHXK5XU.js → chunk.ZHJ6QEGW.js} +2 -2
- package/dist/components/button/button.component.js +4 -4
- package/dist/components/button/button.js +5 -5
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.d.ts +15 -1
- package/dist/components/input/input.component.js +8 -5
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +9 -6
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.js +6 -6
- package/dist/components/select/select.js +7 -7
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +196 -146
- package/dist/internal/longpress.d.ts +42 -0
- package/dist/synergy.js +37 -37
- package/dist/vscode.html-custom-data.json +19 -19
- package/dist/web-types.json +41 -33
- package/package.json +3 -3
- package/dist/chunks/chunk.B2EJGIGY.js +0 -84
- package/dist/chunks/chunk.B2EJGIGY.js.map +0 -7
- package/dist/chunks/chunk.D3VKCPDE.js.map +0 -7
- /package/dist/chunks/{chunk.X4L3ZC6K.js.map → chunk.23XIIXFZ.js.map} +0 -0
- /package/dist/chunks/{chunk.IFDNGB63.js.map → chunk.2PIMZJBX.js.map} +0 -0
- /package/dist/chunks/{chunk.UBTUEIMR.js.map → chunk.4OUJKHRJ.js.map} +0 -0
- /package/dist/chunks/{chunk.I3FGUPLH.js.map → chunk.5MD6EBSY.js.map} +0 -0
- /package/dist/chunks/{chunk.KG3FXWCX.js.map → chunk.5S3OJR6Z.js.map} +0 -0
- /package/dist/chunks/{chunk.FXTLCVXC.js.map → chunk.7K26RLTL.js.map} +0 -0
- /package/dist/chunks/{chunk.OKG27K27.js.map → chunk.7OGFJKHP.js.map} +0 -0
- /package/dist/chunks/{chunk.4STUWO3B.js.map → chunk.AM34E33G.js.map} +0 -0
- /package/dist/chunks/{chunk.O5XNATYN.js.map → chunk.BAAUH5DH.js.map} +0 -0
- /package/dist/chunks/{chunk.SAGHXH7E.js.map → chunk.CFBIDJ72.js.map} +0 -0
- /package/dist/chunks/{chunk.XFLQL2QO.js.map → chunk.DYCZPZ6T.js.map} +0 -0
- /package/dist/chunks/{chunk.QCDOK7E4.js.map → chunk.FCGPI6ON.js.map} +0 -0
- /package/dist/chunks/{chunk.QPANY6PY.js.map → chunk.FZ4XKET2.js.map} +0 -0
- /package/dist/chunks/{chunk.GVCB2D7B.js.map → chunk.GHCD7CUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.DVCDA2IN.js.map → chunk.HZO5IAUS.js.map} +0 -0
- /package/dist/chunks/{chunk.SLW5NPQB.js.map → chunk.HZXUXR2V.js.map} +0 -0
- /package/dist/chunks/{chunk.5FCLDQKW.js.map → chunk.I6GT4YUF.js.map} +0 -0
- /package/dist/chunks/{chunk.XSFEPYWK.js.map → chunk.I7LFDXM4.js.map} +0 -0
- /package/dist/chunks/{chunk.IFE4G4PB.js.map → chunk.IC6S5VNW.js.map} +0 -0
- /package/dist/chunks/{chunk.UTDK2ZT6.js.map → chunk.KQSLZDOW.js.map} +0 -0
- /package/dist/chunks/{chunk.VIQZQ3S6.js.map → chunk.LEVUN7II.js.map} +0 -0
- /package/dist/chunks/{chunk.KRTGIYIX.js.map → chunk.MDTK2XLX.js.map} +0 -0
- /package/dist/chunks/{chunk.K5NVNHHD.js.map → chunk.NZ7AYZ7E.js.map} +0 -0
- /package/dist/chunks/{chunk.4S6GR2Q7.js.map → chunk.OUYVGVIY.js.map} +0 -0
- /package/dist/chunks/{chunk.M3P4B2GP.js.map → chunk.OZF3DZSV.js.map} +0 -0
- /package/dist/chunks/{chunk.JDDBS57F.js.map → chunk.PWYCVX32.js.map} +0 -0
- /package/dist/chunks/{chunk.V57DLRD2.js.map → chunk.R27TACBP.js.map} +0 -0
- /package/dist/chunks/{chunk.OAIA6MLB.js.map → chunk.R5VB3GMN.js.map} +0 -0
- /package/dist/chunks/{chunk.YN2IXOBF.js.map → chunk.SE25XG6G.js.map} +0 -0
- /package/dist/chunks/{chunk.DLPNGATM.js.map → chunk.SEQOINRC.js.map} +0 -0
- /package/dist/chunks/{chunk.UYYPTTK2.js.map → chunk.SR2C7JNO.js.map} +0 -0
- /package/dist/chunks/{chunk.64EZRK2A.js.map → chunk.YGZDEVFH.js.map} +0 -0
- /package/dist/chunks/{chunk.7MHXK5XU.js.map → chunk.ZHJ6QEGW.js.map} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { type ElementPart, noChange, nothing } from 'lit';
|
|
3
|
+
import { AsyncDirective, type DirectiveParameters, type Part } from 'lit/async-directive.js';
|
|
4
|
+
type Callbacks = {
|
|
5
|
+
start: () => void;
|
|
6
|
+
end: () => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A directive that determines,if a HTMLButtonElement is long pressed or only clicked.
|
|
10
|
+
* Depending on the state it executes the callback once or repeating.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
*
|
|
14
|
+
* <button
|
|
15
|
+
* ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}
|
|
16
|
+
* >
|
|
17
|
+
* my button
|
|
18
|
+
* </button>
|
|
19
|
+
*/
|
|
20
|
+
declare class LongPressDirective extends AsyncDirective {
|
|
21
|
+
host: HTMLButtonElement;
|
|
22
|
+
observer: MutationObserver;
|
|
23
|
+
callbacks: Callbacks;
|
|
24
|
+
interval: NodeJS.Timeout;
|
|
25
|
+
timeout: NodeJS.Timeout;
|
|
26
|
+
constructor(part: Part);
|
|
27
|
+
render(_callback: Callbacks): typeof nothing;
|
|
28
|
+
update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange;
|
|
29
|
+
protected disconnected(): void;
|
|
30
|
+
private handlePointerDown;
|
|
31
|
+
/**
|
|
32
|
+
* Start spinning on long press clicks otherwise handle as single click event
|
|
33
|
+
*/
|
|
34
|
+
private spinOnLongPressCallback;
|
|
35
|
+
private handlePointerUp;
|
|
36
|
+
/**
|
|
37
|
+
* Stop the spinning and clean up all timer and observer
|
|
38
|
+
*/
|
|
39
|
+
private stopSpinningAndCleanUp;
|
|
40
|
+
}
|
|
41
|
+
export declare const longPress: (_callback: Callbacks) => import("lit/async-directive").DirectiveResult<typeof LongPressDirective>;
|
|
42
|
+
export type { LongPressDirective };
|
package/dist/synergy.js
CHANGED
|
@@ -5,102 +5,102 @@ import {
|
|
|
5
5
|
import "./chunks/chunk.NKIYFJN2.js";
|
|
6
6
|
import {
|
|
7
7
|
tag_default
|
|
8
|
-
} from "./chunks/chunk.
|
|
8
|
+
} from "./chunks/chunk.NZ7AYZ7E.js";
|
|
9
9
|
import {
|
|
10
10
|
textarea_default
|
|
11
|
-
} from "./chunks/chunk.
|
|
12
|
-
import "./chunks/chunk.
|
|
11
|
+
} from "./chunks/chunk.SR2C7JNO.js";
|
|
12
|
+
import "./chunks/chunk.LEVUN7II.js";
|
|
13
13
|
import "./chunks/chunk.23HTU3YE.js";
|
|
14
14
|
import "./chunks/chunk.YBIBWRKC.js";
|
|
15
15
|
import {
|
|
16
16
|
switch_default
|
|
17
|
-
} from "./chunks/chunk.
|
|
18
|
-
import "./chunks/chunk.
|
|
17
|
+
} from "./chunks/chunk.SEQOINRC.js";
|
|
18
|
+
import "./chunks/chunk.OUYVGVIY.js";
|
|
19
19
|
import "./chunks/chunk.MNMITYTH.js";
|
|
20
20
|
import "./chunks/chunk.AFEABUNX.js";
|
|
21
21
|
import {
|
|
22
22
|
radio_group_default
|
|
23
|
-
} from "./chunks/chunk.
|
|
24
|
-
import "./chunks/chunk.
|
|
23
|
+
} from "./chunks/chunk.I7LFDXM4.js";
|
|
24
|
+
import "./chunks/chunk.PWYCVX32.js";
|
|
25
25
|
import "./chunks/chunk.4I6M5V6O.js";
|
|
26
26
|
import "./chunks/chunk.F4MRQLNL.js";
|
|
27
27
|
import {
|
|
28
28
|
select_default
|
|
29
|
-
} from "./chunks/chunk.
|
|
30
|
-
import "./chunks/chunk.
|
|
29
|
+
} from "./chunks/chunk.GHCD7CUQ.js";
|
|
30
|
+
import "./chunks/chunk.KQSLZDOW.js";
|
|
31
31
|
import "./chunks/chunk.BQG5LF7J.js";
|
|
32
|
-
import "./chunks/chunk.
|
|
32
|
+
import "./chunks/chunk.5MD6EBSY.js";
|
|
33
33
|
import "./chunks/chunk.QHFGD6WW.js";
|
|
34
34
|
import "./chunks/chunk.7W73A57K.js";
|
|
35
35
|
import "./chunks/chunk.6XU6OLZ3.js";
|
|
36
36
|
import "./chunks/chunk.OWMT6OL2.js";
|
|
37
37
|
import {
|
|
38
38
|
radio_default
|
|
39
|
-
} from "./chunks/chunk.
|
|
40
|
-
import "./chunks/chunk.
|
|
39
|
+
} from "./chunks/chunk.R5VB3GMN.js";
|
|
40
|
+
import "./chunks/chunk.OZF3DZSV.js";
|
|
41
41
|
import "./chunks/chunk.JBYBQ5TQ.js";
|
|
42
42
|
import "./chunks/chunk.V6VND4OF.js";
|
|
43
43
|
import {
|
|
44
44
|
radio_button_default
|
|
45
|
-
} from "./chunks/chunk.
|
|
46
|
-
import "./chunks/chunk.
|
|
45
|
+
} from "./chunks/chunk.MDTK2XLX.js";
|
|
46
|
+
import "./chunks/chunk.5S3OJR6Z.js";
|
|
47
47
|
import "./chunks/chunk.IKKMWFWH.js";
|
|
48
48
|
import {
|
|
49
49
|
optgroup_default
|
|
50
|
-
} from "./chunks/chunk.
|
|
51
|
-
import "./chunks/chunk.
|
|
50
|
+
} from "./chunks/chunk.IC6S5VNW.js";
|
|
51
|
+
import "./chunks/chunk.2PIMZJBX.js";
|
|
52
52
|
import "./chunks/chunk.KG52EHDB.js";
|
|
53
53
|
import {
|
|
54
54
|
option_default
|
|
55
|
-
} from "./chunks/chunk.
|
|
56
|
-
import "./chunks/chunk.
|
|
55
|
+
} from "./chunks/chunk.SE25XG6G.js";
|
|
56
|
+
import "./chunks/chunk.DYCZPZ6T.js";
|
|
57
57
|
import "./chunks/chunk.W6V7TPGK.js";
|
|
58
58
|
import "./chunks/chunk.3B24TYVN.js";
|
|
59
|
-
import "./chunks/chunk.
|
|
59
|
+
import "./chunks/chunk.CFBIDJ72.js";
|
|
60
60
|
import "./chunks/chunk.JN7CLMQZ.js";
|
|
61
61
|
import {
|
|
62
62
|
icon_button_default
|
|
63
|
-
} from "./chunks/chunk.
|
|
64
|
-
import "./chunks/chunk.
|
|
63
|
+
} from "./chunks/chunk.HZXUXR2V.js";
|
|
64
|
+
import "./chunks/chunk.AM34E33G.js";
|
|
65
65
|
import "./chunks/chunk.2FN5DTS6.js";
|
|
66
66
|
import "./chunks/chunk.OJF7KL44.js";
|
|
67
67
|
import {
|
|
68
68
|
input_default
|
|
69
|
-
} from "./chunks/chunk.
|
|
70
|
-
import "./chunks/chunk.
|
|
71
|
-
import "./chunks/chunk.
|
|
69
|
+
} from "./chunks/chunk.23XIIXFZ.js";
|
|
70
|
+
import "./chunks/chunk.2VJGG5SD.js";
|
|
71
|
+
import "./chunks/chunk.EKOK7YPB.js";
|
|
72
72
|
import "./chunks/chunk.JHXCBOUD.js";
|
|
73
|
-
import "./chunks/chunk.
|
|
73
|
+
import "./chunks/chunk.2OLVTQ5P.js";
|
|
74
74
|
import {
|
|
75
75
|
divider_default
|
|
76
|
-
} from "./chunks/chunk.
|
|
76
|
+
} from "./chunks/chunk.YGZDEVFH.js";
|
|
77
77
|
import {
|
|
78
78
|
icon_default
|
|
79
|
-
} from "./chunks/chunk.
|
|
79
|
+
} from "./chunks/chunk.BAAUH5DH.js";
|
|
80
80
|
import {
|
|
81
81
|
button_group_default
|
|
82
|
-
} from "./chunks/chunk.
|
|
82
|
+
} from "./chunks/chunk.ZHJ6QEGW.js";
|
|
83
83
|
import {
|
|
84
84
|
checkbox_default
|
|
85
|
-
} from "./chunks/chunk.
|
|
86
|
-
import "./chunks/chunk.
|
|
85
|
+
} from "./chunks/chunk.7K26RLTL.js";
|
|
86
|
+
import "./chunks/chunk.I6GT4YUF.js";
|
|
87
87
|
import "./chunks/chunk.WFAJR3FN.js";
|
|
88
88
|
import "./chunks/chunk.4CBN5LPQ.js";
|
|
89
89
|
import "./chunks/chunk.2XZKXVMR.js";
|
|
90
|
-
import "./chunks/chunk.
|
|
90
|
+
import "./chunks/chunk.FCGPI6ON.js";
|
|
91
91
|
import "./chunks/chunk.PGCXJ2PT.js";
|
|
92
92
|
import "./chunks/chunk.FA6V2WD6.js";
|
|
93
93
|
import {
|
|
94
94
|
button_default
|
|
95
|
-
} from "./chunks/chunk.
|
|
96
|
-
import "./chunks/chunk.
|
|
97
|
-
import "./chunks/chunk.
|
|
95
|
+
} from "./chunks/chunk.FZ4XKET2.js";
|
|
96
|
+
import "./chunks/chunk.HZO5IAUS.js";
|
|
97
|
+
import "./chunks/chunk.4OUJKHRJ.js";
|
|
98
98
|
import "./chunks/chunk.N2I6HVX3.js";
|
|
99
99
|
import "./chunks/chunk.XGXFE6IF.js";
|
|
100
100
|
import "./chunks/chunk.LAB4YJYE.js";
|
|
101
101
|
import "./chunks/chunk.A3SKDWCT.js";
|
|
102
102
|
import "./chunks/chunk.AMTCNRDE.js";
|
|
103
|
-
import "./chunks/chunk.
|
|
103
|
+
import "./chunks/chunk.7OGFJKHP.js";
|
|
104
104
|
import "./chunks/chunk.RSONAU45.js";
|
|
105
105
|
import "./chunks/chunk.PJO6TM3T.js";
|
|
106
106
|
import {
|
|
@@ -116,8 +116,8 @@ import {
|
|
|
116
116
|
} from "./chunks/chunk.C7624ITA.js";
|
|
117
117
|
import "./chunks/chunk.OJ4KOC7R.js";
|
|
118
118
|
import "./chunks/chunk.K55MKNUR.js";
|
|
119
|
-
import "./chunks/chunk.
|
|
120
|
-
import "./chunks/chunk.
|
|
119
|
+
import "./chunks/chunk.R27TACBP.js";
|
|
120
|
+
import "./chunks/chunk.DULBBZUA.js";
|
|
121
121
|
import "./chunks/chunk.4ZURABYO.js";
|
|
122
122
|
import "./chunks/chunk.O7USYXBT.js";
|
|
123
123
|
import "./chunks/chunk.DJOAQ4JU.js";
|
|
@@ -131,23 +131,6 @@
|
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
},
|
|
134
|
-
{
|
|
135
|
-
"name": "syn-button-group",
|
|
136
|
-
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
137
|
-
"attributes": [
|
|
138
|
-
{
|
|
139
|
-
"name": "label",
|
|
140
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
141
|
-
"values": []
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"references": [
|
|
145
|
-
{
|
|
146
|
-
"name": "Documentation",
|
|
147
|
-
"url": "https://synergy.style/components/button-group"
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
134
|
{
|
|
152
135
|
"name": "syn-checkbox",
|
|
153
136
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
@@ -205,6 +188,23 @@
|
|
|
205
188
|
}
|
|
206
189
|
]
|
|
207
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"name": "syn-button-group",
|
|
193
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
194
|
+
"attributes": [
|
|
195
|
+
{
|
|
196
|
+
"name": "label",
|
|
197
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
198
|
+
"values": []
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"references": [
|
|
202
|
+
{
|
|
203
|
+
"name": "Documentation",
|
|
204
|
+
"url": "https://synergy.style/components/button-group"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
208
|
{
|
|
209
209
|
"name": "syn-divider",
|
|
210
210
|
"description": "Dividers are used to visually separate or group elements.\n---\n\n\n### **CSS Properties:**\n - **--color** - The color of the divider. _(default: undefined)_\n- **--width** - The width of the divider. _(default: undefined)_\n- **--spacing** - The spacing of the divider. _(default: undefined)_",
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"name": "syn-input",
|
|
335
|
-
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
335
|
+
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n- **increment-number-stepper** - An icon to use in lieu of the default increment number stepper icon.\n- **decrement-number-stepper** - An icon to use in lieu of the default decrement number stepper icon.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.\n- **stepper** - The container that wraps the number stepper.\n- **decrement-number-stepper** - The decrement number stepper button.\n- **increment-number-stepper** - The increment number stepper button.\n- **divider** - The divider between the increment and decrement number stepper buttons.",
|
|
336
336
|
"attributes": [
|
|
337
337
|
{ "name": "title", "values": [] },
|
|
338
338
|
{
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
"name": "no-spin-buttons",
|
|
416
|
-
"description": "Hides the
|
|
416
|
+
"description": "Hides the increment/decrement spin buttons for number inputs.",
|
|
417
417
|
"values": []
|
|
418
418
|
},
|
|
419
419
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@synergy-design-system/components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -255,35 +255,6 @@
|
|
|
255
255
|
]
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
|
-
{
|
|
259
|
-
"name": "syn-button-group",
|
|
260
|
-
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
261
|
-
"doc-url": "",
|
|
262
|
-
"attributes": [
|
|
263
|
-
{
|
|
264
|
-
"name": "label",
|
|
265
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
266
|
-
"value": { "type": "string", "default": "''" }
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"slots": [
|
|
270
|
-
{
|
|
271
|
-
"name": "",
|
|
272
|
-
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"events": [],
|
|
276
|
-
"js": {
|
|
277
|
-
"properties": [
|
|
278
|
-
{
|
|
279
|
-
"name": "label",
|
|
280
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
281
|
-
"value": { "type": "string" }
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"events": []
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
258
|
{
|
|
288
259
|
"name": "syn-checkbox",
|
|
289
260
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
@@ -425,6 +396,35 @@
|
|
|
425
396
|
]
|
|
426
397
|
}
|
|
427
398
|
},
|
|
399
|
+
{
|
|
400
|
+
"name": "syn-button-group",
|
|
401
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
402
|
+
"doc-url": "",
|
|
403
|
+
"attributes": [
|
|
404
|
+
{
|
|
405
|
+
"name": "label",
|
|
406
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
407
|
+
"value": { "type": "string", "default": "''" }
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"slots": [
|
|
411
|
+
{
|
|
412
|
+
"name": "",
|
|
413
|
+
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"events": [],
|
|
417
|
+
"js": {
|
|
418
|
+
"properties": [
|
|
419
|
+
{
|
|
420
|
+
"name": "label",
|
|
421
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
422
|
+
"value": { "type": "string" }
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"events": []
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
428
|
{
|
|
429
429
|
"name": "syn-divider",
|
|
430
430
|
"description": "Dividers are used to visually separate or group elements.\n---\n\n\n### **CSS Properties:**\n - **--color** - The color of the divider. _(default: undefined)_\n- **--width** - The width of the divider. _(default: undefined)_\n- **--spacing** - The spacing of the divider. _(default: undefined)_",
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
"name": "syn-input",
|
|
665
|
-
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
665
|
+
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n- **increment-number-stepper** - An icon to use in lieu of the default increment number stepper icon.\n- **decrement-number-stepper** - An icon to use in lieu of the default decrement number stepper icon.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.\n- **stepper** - The container that wraps the number stepper.\n- **decrement-number-stepper** - The decrement number stepper button.\n- **increment-number-stepper** - The increment number stepper button.\n- **divider** - The divider between the increment and decrement number stepper buttons.",
|
|
666
666
|
"doc-url": "",
|
|
667
667
|
"attributes": [
|
|
668
668
|
{ "name": "title", "value": { "type": "string", "default": "''" } },
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
},
|
|
735
735
|
{
|
|
736
736
|
"name": "no-spin-buttons",
|
|
737
|
-
"description": "Hides the
|
|
737
|
+
"description": "Hides the increment/decrement spin buttons for number inputs.",
|
|
738
738
|
"value": { "type": "boolean", "default": "false" }
|
|
739
739
|
},
|
|
740
740
|
{
|
|
@@ -847,6 +847,14 @@
|
|
|
847
847
|
{
|
|
848
848
|
"name": "help-text",
|
|
849
849
|
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute."
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "increment-number-stepper",
|
|
853
|
+
"description": "An icon to use in lieu of the default increment number stepper icon."
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "decrement-number-stepper",
|
|
857
|
+
"description": "An icon to use in lieu of the default decrement number stepper icon."
|
|
850
858
|
}
|
|
851
859
|
],
|
|
852
860
|
"events": [
|
|
@@ -942,7 +950,7 @@
|
|
|
942
950
|
},
|
|
943
951
|
{
|
|
944
952
|
"name": "no-spin-buttons",
|
|
945
|
-
"description": "Hides the
|
|
953
|
+
"description": "Hides the increment/decrement spin buttons for number inputs.",
|
|
946
954
|
"value": { "type": "boolean" }
|
|
947
955
|
},
|
|
948
956
|
{
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"name": "@synergy-design-system/components",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.6.1",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"vendorism": "github:mariohamann/vendorism",
|
|
90
90
|
"vue-tsc": "^1.8.27",
|
|
91
91
|
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
92
|
-
"@synergy-design-system/
|
|
93
|
-
"@synergy-design-system/
|
|
92
|
+
"@synergy-design-system/tokens": "1.3.0",
|
|
93
|
+
"@synergy-design-system/stylelint-config-syn": "0.1.0"
|
|
94
94
|
},
|
|
95
95
|
"release": {
|
|
96
96
|
"branches": [
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// src/components/input/input.custom.styles.ts
|
|
2
|
-
import { css } from "lit";
|
|
3
|
-
var input_custom_styles_default = css`
|
|
4
|
-
/* PADDINGS */
|
|
5
|
-
.input--medium .input__control {
|
|
6
|
-
padding: var(--syn-spacing-x-small) var(--syn-input-spacing-medium);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.input--small .input__control {
|
|
10
|
-
padding: var(--syn-spacing-3x-small) var(--syn-input-spacing-small);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.input--large .input__control {
|
|
14
|
-
padding: var(--syn-input-spacing-small) var(--syn-input-spacing-large);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.input--small .input__prefix ::slotted(*) {
|
|
18
|
-
margin-inline: var(--syn-input-spacing-small) var(--syn-spacing-x-small);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.input--medium .input__prefix ::slotted(*) {
|
|
22
|
-
margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-small);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.input--large .input__prefix ::slotted(*) {
|
|
26
|
-
margin-inline: var(--syn-input-spacing-large) var(--syn-input-spacing-medium);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.input--small .input__suffix ::slotted(*) {
|
|
30
|
-
margin-inline: var(--syn-spacing-x-small) var(--syn-input-spacing-small);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.input--medium .input__suffix ::slotted(*) {
|
|
34
|
-
margin-inline: var(--syn-input-spacing-small) var(--syn-input-spacing-medium);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.input--large .input__suffix ::slotted(*) {
|
|
38
|
-
margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-large);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* ICONS SIZE */
|
|
42
|
-
.input--small .input__prefix ::slotted(syn-icon) {
|
|
43
|
-
font-size: var(--syn-input-spacing-medium);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.input--medium .input__prefix ::slotted(syn-icon) {
|
|
47
|
-
font-size: var(--syn-input-spacing-large);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.input--large .input__prefix ::slotted(syn-icon) {
|
|
51
|
-
font-size: var(--syn-font-size-2x-large);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.input--small .input__suffix ::slotted(syn-icon) {
|
|
55
|
-
font-size: var(--syn-input-spacing-medium);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.input--medium .input__suffix ::slotted(syn-icon) {
|
|
59
|
-
font-size: var(--syn-input-spacing-large);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.input--large .input__suffix ::slotted(syn-icon) {
|
|
63
|
-
font-size: var(--syn-font-size-2x-large);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:host([data-user-invalid]) .input--standard {
|
|
67
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
:host([data-user-invalid]) .input--standard.input--focused:not(.input--disabled) {
|
|
71
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
72
|
-
box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.input--standard.input--disabled .input__suffix,
|
|
76
|
-
.input--standard.input--disabled .input__prefix {
|
|
77
|
-
cursor: not-allowed;
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
|
|
81
|
-
export {
|
|
82
|
-
input_custom_styles_default
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=chunk.B2EJGIGY.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/input/input.custom.styles.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* PADDINGS */\n .input--medium .input__control {\n padding: var(--syn-spacing-x-small) var(--syn-input-spacing-medium);\n }\n\n .input--small .input__control {\n padding: var(--syn-spacing-3x-small) var(--syn-input-spacing-small);\n }\n\n .input--large .input__control {\n padding: var(--syn-input-spacing-small) var(--syn-input-spacing-large);\n }\n\n .input--small .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-small) var(--syn-spacing-x-small);\n }\n\n .input--medium .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-small);\n }\n\n .input--large .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-large) var(--syn-input-spacing-medium);\n }\n\n .input--small .input__suffix ::slotted(*) {\n margin-inline: var(--syn-spacing-x-small) var(--syn-input-spacing-small);\n }\n\n .input--medium .input__suffix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-small) var(--syn-input-spacing-medium);\n }\n\n .input--large .input__suffix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-large);\n }\n\n /* ICONS SIZE */\n .input--small .input__prefix ::slotted(syn-icon) {\n font-size: var(--syn-input-spacing-medium);\n }\n\n .input--medium .input__prefix ::slotted(syn-icon) {\n font-size: var(--syn-input-spacing-large);\n }\n\n .input--large .input__prefix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-2x-large);\n }\n\n .input--small .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-input-spacing-medium);\n }\n\n .input--medium .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-input-spacing-large);\n }\n\n .input--large .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-2x-large);\n }\n \n :host([data-user-invalid]) .input--standard {\n border-color: var(--syn-input-border-color-focus-error);\n }\n\n :host([data-user-invalid]) .input--standard.input--focused:not(.input--disabled) {\n border-color: var(--syn-input-border-color-focus-error);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);\n }\n\n .input--standard.input--disabled .input__suffix, \n .input--standard.input--disabled .input__prefix {\n cursor: not-allowed;\n } \n`;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,8BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/input/input.component.ts"],
|
|
4
|
-
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './input.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n */\nexport default class SynInput extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\n static dependencies = { 'syn-icon': SynIcon };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.input__control') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n private __numberInput = Object.assign(document.createElement('input'), { type: 'number' });\n private __dateInput = Object.assign(document.createElement('input'), { type: 'date' });\n\n /**\n * The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\n * to `text`.\n */\n @property({ reflect: true }) type:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url' = 'text';\n\n /** The name of the input, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the input, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The input's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The input's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The input's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Adds a clear button when the input is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /** Disables the input. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** Makes the input readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n\n /** Adds a button to toggle the password's visibility. Only applies to password types. */\n @property({ attribute: 'password-toggle', type: Boolean }) passwordToggle = false;\n\n /** Determines whether or not the password is currently visible. Only applies to password input types. */\n @property({ attribute: 'password-visible', type: Boolean }) passwordVisible = false;\n\n /** Hides the browser's built-in increment/decrement spin buttons for number inputs. */\n @property({ attribute: 'no-spin-buttons', type: Boolean }) noSpinButtons = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** A regular expression pattern to validate input against. */\n @property() pattern: string;\n\n /** The minimum length of input that will be considered valid. */\n @property({ type: Number }) minlength: number;\n\n /** The maximum length of input that will be considered valid. */\n @property({ type: Number }) maxlength: number;\n\n /** The input's minimum value. Only applies to date and number input types. */\n @property() min: number | string;\n\n /** The input's maximum value. Only applies to date and number input types. */\n @property() max: number | string;\n\n /**\n * Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is\n * implied, allowing any numeric value. Only applies to date and number input types.\n */\n @property() step: number | 'any';\n\n /** Controls whether and how text input is automatically capitalized as it is entered by the user. */\n @property() autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';\n\n /** Indicates whether the browser's autocorrect feature is on or off. */\n @property() autocorrect: 'off' | 'on';\n\n /**\n * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.\n */\n @property() autocomplete: string;\n\n /** Indicates that the input should receive focus on page load. */\n @property({ type: Boolean }) autofocus: boolean;\n\n /** Used to customize the label or icon of the Enter key on virtual keyboards. */\n @property() enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /** Enables spell checking on the input. */\n @property({\n type: Boolean,\n converter: {\n // Allow \"true|false\" attribute values but keep the property boolean\n fromAttribute: value => (!value || value === 'false' ? false : true),\n toAttribute: value => (value ? 'true' : 'false')\n }\n })\n spellcheck = true;\n\n /**\n * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\n * keyboard on supportive devices.\n */\n @property() inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n //\n // NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties\n // can be set before the component is rendered.\n //\n\n /**\n * Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type=\"{{type}}\">` implementation and may result in an error.\n */\n get valueAsDate() {\n this.__dateInput.type = this.type;\n this.__dateInput.value = this.value;\n return this.input?.valueAsDate || this.__dateInput.valueAsDate;\n }\n\n set valueAsDate(newValue: Date | null) {\n this.__dateInput.type = this.type;\n this.__dateInput.valueAsDate = newValue;\n this.value = this.__dateInput.value;\n }\n\n /** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */\n get valueAsNumber() {\n this.__numberInput.value = this.value;\n return this.input?.valueAsNumber || this.__numberInput.valueAsNumber;\n }\n\n set valueAsNumber(newValue: number) {\n this.__numberInput.valueAsNumber = newValue;\n this.value = this.__numberInput.value;\n }\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleChange() {\n this.value = this.input.value;\n this.emit('syn-change');\n }\n\n private handleClearClick(event: MouseEvent) {\n this.value = '';\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n this.input.focus();\n\n event.stopPropagation();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n\n // Pressing enter when focused on an input should submit the form like a native input, but we wait a tick before\n // submitting to allow users to cancel the keydown event if they need to\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n //\n // When using an Input Method Editor (IME), pressing enter will cause the form to submit unexpectedly. One way\n // to check for this is to look at event.isComposing, which will be true when the IME is open.\n //\n // See https://github.com/synergy-design-system/synergy/pull/988\n //\n if (!event.defaultPrevented && !event.isComposing) {\n this.formControlController.submit();\n }\n });\n }\n }\n\n private handlePasswordToggle() {\n this.passwordVisible = !this.passwordVisible;\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('step', { waitUntilFirstUpdate: true })\n handleStepChange() {\n // If step changes, the value may become invalid so we need to recheck after the update. We set the new step\n // imperatively so we don't have to wait for the next render to report the updated validity.\n this.input.step = String(this.step);\n this.formControlController.updateValidity();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the input. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the input. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the input. */\n select() {\n this.input.select();\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: 'forward' | 'backward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Replaces a range of text with a new string. */\n setRangeText(\n replacement: string,\n start?: number,\n end?: number,\n selectMode?: 'select' | 'start' | 'end' | 'preserve'\n ) {\n // @ts-expect-error - start, end, and selectMode are optional\n this.input.setRangeText(replacement, start, end, selectMode);\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Displays the browser picker for an input element (only works if the browser supports it for the input type). */\n showPicker() {\n if ('showPicker' in HTMLInputElement.prototype) {\n this.input.showPicker();\n }\n }\n\n /** Increments the value of a numeric input type by the value of the step attribute. */\n stepUp() {\n this.input.stepUp();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Decrements the value of a numeric input type by the value of the step attribute. */\n stepDown() {\n this.input.stepDown();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && !this.readonly;\n const isClearIconVisible = hasClearIcon && (typeof this.value === 'number' || this.value.length > 0);\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--standard': !this.readonly,\n 'input--readonly': this.readonly,\n 'input--disabled': this.disabled,\n 'input--focused': this.hasFocus,\n 'input--empty': !this.value,\n 'input--no-spin-buttons': this.noSpinButtons\n })}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <input\n part=\"input\"\n id=\"input\"\n class=\"input__control\"\n type=${this.type === 'password' && this.passwordVisible ? 'text' : this.type}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n min=${ifDefined(this.min)}\n max=${ifDefined(this.max)}\n step=${ifDefined(this.step as number)}\n .value=${live(this.value)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocomplete=${ifDefined(this.autocomplete)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${this.spellcheck}\n pattern=${ifDefined(this.pattern)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${hasClearIcon\n ? html`\n <button\n part=\"clear-button\"\n class=${classMap({\n input__clear: true,\n 'input__clear--visible': isClearIconVisible\n })}\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n ${this.passwordToggle && !this.disabled\n ? html`\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n aria-label=${this.localize.term(this.passwordVisible ? 'hidePassword' : 'showPassword')}\n @click=${this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n ${this.passwordVisible\n ? html`\n <slot name=\"show-password-icon\">\n <syn-icon name=\"eye-slash\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"hide-password-icon\">\n <syn-icon name=\"eye\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>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AAAA,EAAX,SAAS;AAAA,GA5GS,SA4GP;AAMA;AAAA,EAAX,SAAS;AAAA,GAlHS,SAkHP;AAGiB;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GArHR,SAqHU;AAGjB;AAAA,EAAX,SAAS;AAAA,GAxHS,SAwHP;AAWZ;AAAA,EARC,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GAlIkB,SAmInB;AAMY;AAAA,EAAX,SAAS;AAAA,GAzIS,SAyIP;AA4GZ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GApP9B,SAqPnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1P1B,SA2PnB;AAQM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAlQ3B,SAmQb;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|