@synergy-design-system/components 1.0.0-main.8 → 1.0.0
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/LICENSE +5 -24
- package/README.md +1 -1
- package/dist/chunks/chunk.23HTU3YE.js +189 -0
- package/dist/chunks/chunk.23HTU3YE.js.map +7 -0
- package/dist/chunks/chunk.2XZKXVMR.js +44 -0
- package/dist/chunks/chunk.2XZKXVMR.js.map +7 -0
- package/dist/chunks/chunk.3AQETYIY.js +12 -0
- package/dist/chunks/chunk.3AQETYIY.js.map +7 -0
- package/dist/chunks/chunk.45DBFNVM.js +12 -0
- package/dist/chunks/chunk.45DBFNVM.js.map +7 -0
- package/dist/chunks/chunk.4CBN5LPQ.js +137 -0
- package/dist/chunks/chunk.4CBN5LPQ.js.map +7 -0
- package/dist/chunks/chunk.4I6M5V6O.js +56 -0
- package/dist/chunks/chunk.4I6M5V6O.js.map +7 -0
- package/dist/chunks/{chunk.5OIEI73E.js → chunk.4XAK6MOQ.js} +2 -2
- package/dist/chunks/chunk.4ZURABYO.js +24 -0
- package/dist/chunks/{chunk.BREU4ILT.js.map → chunk.4ZURABYO.js.map} +3 -3
- package/dist/chunks/{chunk.5SUEJSIW.js → chunk.5ECUVPQI.js} +13 -31
- package/dist/chunks/{chunk.5SUEJSIW.js.map → chunk.5ECUVPQI.js.map} +3 -3
- package/dist/chunks/{chunk.53ZDJY4Q.js → chunk.6I3HJMNQ.js} +2 -2
- package/dist/chunks/{chunk.53ZDJY4Q.js.map → chunk.6I3HJMNQ.js.map} +1 -1
- package/dist/chunks/chunk.7CU3ERWO.js +86 -0
- package/dist/chunks/chunk.7CU3ERWO.js.map +7 -0
- package/dist/chunks/chunk.AFEABUNX.js +107 -0
- package/dist/chunks/chunk.AFEABUNX.js.map +7 -0
- package/dist/chunks/chunk.BP34OPXK.js +12 -0
- package/dist/chunks/chunk.BP34OPXK.js.map +7 -0
- package/dist/chunks/chunk.C6BQ2APJ.js +12 -0
- package/dist/chunks/chunk.C6BQ2APJ.js.map +7 -0
- package/dist/chunks/{chunk.G3PDKNFK.js → chunk.EMVM7VFZ.js} +15 -13
- package/dist/chunks/chunk.EMVM7VFZ.js.map +7 -0
- package/dist/chunks/chunk.F4MRQLNL.js +25 -0
- package/dist/chunks/chunk.F4MRQLNL.js.map +7 -0
- package/dist/chunks/chunk.FVSP4LXX.js +138 -0
- package/dist/chunks/chunk.FVSP4LXX.js.map +7 -0
- package/dist/chunks/chunk.GNAJOKCJ.js +32 -0
- package/dist/chunks/chunk.GNAJOKCJ.js.map +7 -0
- package/dist/chunks/{chunk.4SJKXOCV.js → chunk.HPTHXM7Q.js} +2 -2
- package/dist/chunks/chunk.HSZXAY7K.js +12 -0
- package/dist/chunks/chunk.HSZXAY7K.js.map +7 -0
- package/dist/chunks/{chunk.5ZMQBOV3.js → chunk.IV4DT254.js} +2 -2
- package/dist/chunks/{chunk.DI6S4YNU.js → chunk.J36DIOVR.js} +11 -38
- package/dist/chunks/{chunk.DI6S4YNU.js.map → chunk.J36DIOVR.js.map} +4 -4
- package/dist/chunks/chunk.JBYBQ5TQ.js +132 -0
- package/dist/chunks/chunk.JBYBQ5TQ.js.map +7 -0
- package/dist/chunks/chunk.JHXCBOUD.js +123 -0
- package/dist/chunks/chunk.JHXCBOUD.js.map +7 -0
- package/dist/chunks/{chunk.B7XEALID.js → chunk.KZT2HFEV.js} +2 -2
- package/dist/chunks/chunk.MNMITYTH.js +184 -0
- package/dist/chunks/chunk.MNMITYTH.js.map +7 -0
- package/dist/chunks/chunk.NKIYFJN2.js +1 -0
- package/dist/chunks/chunk.NKIYFJN2.js.map +7 -0
- package/dist/chunks/chunk.OVVMSN4D.js +37 -0
- package/dist/chunks/chunk.OVVMSN4D.js.map +7 -0
- package/dist/chunks/{chunk.Q77OTWF2.js → chunk.OXUFFH57.js} +6 -66
- package/dist/chunks/{chunk.Q77OTWF2.js.map → chunk.OXUFFH57.js.map} +4 -4
- package/dist/chunks/{chunk.WDCAHRYG.js → chunk.P2LNG2PZ.js} +4 -2
- package/dist/chunks/chunk.PBWBRVMW.js +111 -0
- package/dist/chunks/chunk.PBWBRVMW.js.map +7 -0
- package/dist/chunks/chunk.PJO6TM3T.js +10 -0
- package/dist/chunks/{chunk.ILONRPL4.js.map → chunk.PJO6TM3T.js.map} +2 -2
- package/dist/chunks/chunk.Q6AHDRN2.js +12 -0
- package/dist/chunks/chunk.Q6AHDRN2.js.map +7 -0
- package/dist/chunks/chunk.QBOOYQY4.js +360 -0
- package/dist/chunks/chunk.QBOOYQY4.js.map +7 -0
- package/dist/chunks/{chunk.BREU4ILT.js → chunk.RSONAU45.js} +6 -1
- package/dist/chunks/chunk.RSONAU45.js.map +7 -0
- package/dist/chunks/chunk.TPRFDNQ5.js +12 -0
- package/dist/chunks/chunk.TPRFDNQ5.js.map +7 -0
- package/dist/chunks/chunk.TS36BW77.js +224 -0
- package/dist/chunks/chunk.TS36BW77.js.map +7 -0
- package/dist/chunks/chunk.V6VND4OF.js +49 -0
- package/dist/chunks/chunk.V6VND4OF.js.map +7 -0
- package/dist/chunks/chunk.VZ7S7YYN.js +34 -0
- package/dist/chunks/chunk.VZ7S7YYN.js.map +7 -0
- package/dist/chunks/chunk.W46CFM2R.js +90 -0
- package/dist/chunks/chunk.W46CFM2R.js.map +7 -0
- package/dist/chunks/chunk.WFAJR3FN.js +25 -0
- package/dist/chunks/chunk.WFAJR3FN.js.map +7 -0
- package/dist/chunks/chunk.X6ZVJSXL.js +212 -0
- package/dist/chunks/chunk.X6ZVJSXL.js.map +7 -0
- package/dist/chunks/chunk.YBIBWRKC.js +19 -0
- package/dist/chunks/chunk.YBIBWRKC.js.map +7 -0
- package/dist/chunks/chunk.YBZOIKAS.js +127 -0
- package/dist/chunks/chunk.YBZOIKAS.js.map +7 -0
- package/dist/chunks/{chunk.P22LQI5J.js → chunk.YTS5TRJZ.js} +6 -6
- package/dist/chunks/chunk.YTS5TRJZ.js.map +7 -0
- package/dist/chunks/{chunk.WTCUSH7V.js → chunk.Z3RZUTQU.js} +2 -2
- package/dist/chunks/chunk.ZJHB2ZWN.js +351 -0
- package/dist/chunks/chunk.ZJHB2ZWN.js.map +7 -0
- package/dist/chunks/chunk.ZSHYGTD6.js +12 -0
- package/dist/chunks/chunk.ZSHYGTD6.js.map +7 -0
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button/button.component.js +13 -11
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +14 -12
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/button-group/button-group.component.d.ts +28 -0
- package/dist/components/button-group/button-group.component.js +11 -0
- package/dist/components/button-group/button-group.component.js.map +7 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +12 -0
- package/dist/components/button-group/button-group.js.map +7 -0
- package/dist/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/components/button-group/button-group.styles.js +9 -0
- package/dist/components/button-group/button-group.styles.js.map +7 -0
- package/dist/components/checkbox/checkbox.component.d.ts +93 -0
- package/dist/components/checkbox/checkbox.component.js +22 -0
- package/dist/components/checkbox/checkbox.component.js.map +7 -0
- package/dist/components/checkbox/checkbox.custom.styles.js +3 -6
- package/dist/components/checkbox/checkbox.custom.styles.js.map +3 -3
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +23 -0
- package/dist/components/checkbox/checkbox.js.map +7 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +10 -0
- package/dist/components/checkbox/checkbox.styles.js.map +7 -0
- package/dist/components/icon/icon.component.js +7 -5
- package/dist/components/icon/icon.custom.styles.d.ts +2 -0
- package/dist/components/icon/icon.custom.styles.js +8 -0
- package/dist/components/icon/icon.custom.styles.js.map +7 -0
- package/dist/components/icon/icon.js +9 -10
- package/dist/components/icon/icon.js.map +3 -3
- package/dist/components/icon/icon.styles.js +2 -1
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/input/input.component.js +14 -10
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +15 -11
- package/dist/components/input/input.styles.js +3 -2
- package/dist/components/radio/radio.component.d.ts +53 -0
- package/dist/components/radio/radio.component.js +20 -0
- package/dist/components/radio/radio.component.js.map +7 -0
- package/dist/components/radio/radio.custom.styles.d.ts +2 -0
- package/dist/components/radio/radio.custom.styles.js +8 -0
- package/dist/components/radio/radio.custom.styles.js.map +7 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.js +21 -0
- package/dist/components/radio/radio.js.map +7 -0
- package/dist/components/radio/radio.styles.d.ts +2 -0
- package/dist/components/radio/radio.styles.js +10 -0
- package/dist/components/radio/radio.styles.js.map +7 -0
- package/dist/components/radio-button/radio-button.component.d.ts +53 -0
- package/dist/components/radio-button/radio-button.component.js +15 -0
- package/dist/components/radio-button/radio-button.component.js.map +7 -0
- package/dist/components/radio-button/radio-button.d.ts +8 -0
- package/dist/components/radio-button/radio-button.js +16 -0
- package/dist/components/radio-button/radio-button.js.map +7 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +2 -0
- package/dist/components/radio-button/radio-button.styles.js +11 -0
- package/dist/components/radio-button/radio-button.styles.js.map +7 -0
- package/dist/components/radio-group/radio-group.component.d.ts +89 -0
- package/dist/components/radio-group/radio-group.component.js +18 -0
- package/dist/components/radio-group/radio-group.component.js.map +7 -0
- package/dist/components/radio-group/radio-group.custom.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.custom.styles.js +8 -0
- package/dist/components/radio-group/radio-group.custom.styles.js.map +7 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.js +19 -0
- package/dist/components/radio-group/radio-group.js.map +7 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.styles.js +11 -0
- package/dist/components/radio-group/radio-group.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.d.ts +86 -0
- package/dist/components/switch/switch.component.js +15 -0
- package/dist/components/switch/switch.component.js.map +7 -0
- package/dist/components/switch/switch.custom.styles.d.ts +2 -0
- package/dist/components/switch/switch.custom.styles.js +8 -0
- package/dist/components/switch/switch.custom.styles.js.map +7 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +16 -0
- package/dist/components/switch/switch.js.map +7 -0
- package/dist/components/switch/switch.styles.d.ts +2 -0
- package/dist/components/switch/switch.styles.js +10 -0
- package/dist/components/switch/switch.styles.js.map +7 -0
- package/dist/components/textarea/textarea.component.d.ts +131 -0
- package/dist/components/textarea/textarea.component.js +17 -0
- package/dist/components/textarea/textarea.component.js.map +7 -0
- package/dist/components/textarea/textarea.custom.styles.js +3 -6
- package/dist/components/textarea/textarea.custom.styles.js.map +3 -3
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +18 -0
- package/dist/components/textarea/textarea.js.map +7 -0
- package/dist/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.styles.js +11 -0
- package/dist/components/textarea/textarea.styles.js.map +7 -0
- package/dist/custom-elements.json +3112 -520
- package/dist/internal/test.d.ts +28 -0
- package/dist/styles/form-control.custom.styles.d.ts +2 -0
- package/dist/synergy.d.ts +11 -1
- package/dist/synergy.js +87 -21
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +14 -0
- package/dist/utilities/icon-library.js.map +7 -0
- package/dist/vscode.html-custom-data.json +390 -1
- package/dist/web-types.json +868 -10
- package/package.json +23 -16
- package/dist/chunks/chunk.DREO4ZTN.js +0 -10
- package/dist/chunks/chunk.DREO4ZTN.js.map +0 -7
- package/dist/chunks/chunk.G3PDKNFK.js.map +0 -7
- package/dist/chunks/chunk.ILONRPL4.js +0 -10
- package/dist/chunks/chunk.P22LQI5J.js.map +0 -7
- package/dist/chunks/chunk.U7ZJ22QM.js +0 -128
- package/dist/chunks/chunk.U7ZJ22QM.js.map +0 -7
- /package/dist/chunks/{chunk.5OIEI73E.js.map → chunk.4XAK6MOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.4SJKXOCV.js.map → chunk.HPTHXM7Q.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZMQBOV3.js.map → chunk.IV4DT254.js.map} +0 -0
- /package/dist/chunks/{chunk.B7XEALID.js.map → chunk.KZT2HFEV.js.map} +0 -0
- /package/dist/chunks/{chunk.WDCAHRYG.js.map → chunk.P2LNG2PZ.js.map} +0 -0
- /package/dist/chunks/{chunk.WTCUSH7V.js.map → chunk.Z3RZUTQU.js.map} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {
|
|
2
|
+
radio_styles_default
|
|
3
|
+
} from "./chunk.JBYBQ5TQ.js";
|
|
4
|
+
import {
|
|
5
|
+
SynIcon
|
|
6
|
+
} from "./chunk.J36DIOVR.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.VZ7S7YYN.js";
|
|
10
|
+
import {
|
|
11
|
+
SynergyElement
|
|
12
|
+
} from "./chunk.6I3HJMNQ.js";
|
|
13
|
+
import {
|
|
14
|
+
__decorateClass
|
|
15
|
+
} from "./chunk.DJOAQ4JU.js";
|
|
16
|
+
|
|
17
|
+
// src/components/radio/radio.component.ts
|
|
18
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
19
|
+
import { html } from "lit";
|
|
20
|
+
import { property, state } from "lit/decorators.js";
|
|
21
|
+
var SynRadio = class extends SynergyElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.checked = false;
|
|
25
|
+
this.hasFocus = false;
|
|
26
|
+
this.size = "medium";
|
|
27
|
+
this.disabled = false;
|
|
28
|
+
this.handleBlur = () => {
|
|
29
|
+
this.hasFocus = false;
|
|
30
|
+
this.emit("syn-blur");
|
|
31
|
+
};
|
|
32
|
+
this.handleClick = () => {
|
|
33
|
+
if (!this.disabled) {
|
|
34
|
+
this.checked = true;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.handleFocus = () => {
|
|
38
|
+
this.hasFocus = true;
|
|
39
|
+
this.emit("syn-focus");
|
|
40
|
+
};
|
|
41
|
+
this.addEventListener("blur", this.handleBlur);
|
|
42
|
+
this.addEventListener("click", this.handleClick);
|
|
43
|
+
this.addEventListener("focus", this.handleFocus);
|
|
44
|
+
}
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
super.connectedCallback();
|
|
47
|
+
this.setInitialAttributes();
|
|
48
|
+
}
|
|
49
|
+
setInitialAttributes() {
|
|
50
|
+
this.setAttribute("role", "radio");
|
|
51
|
+
this.setAttribute("tabindex", "-1");
|
|
52
|
+
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
53
|
+
}
|
|
54
|
+
handleCheckedChange() {
|
|
55
|
+
this.setAttribute("aria-checked", this.checked ? "true" : "false");
|
|
56
|
+
this.setAttribute("tabindex", this.checked ? "0" : "-1");
|
|
57
|
+
}
|
|
58
|
+
handleDisabledChange() {
|
|
59
|
+
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return html`
|
|
63
|
+
<span
|
|
64
|
+
part="base"
|
|
65
|
+
class=${classMap({
|
|
66
|
+
radio: true,
|
|
67
|
+
"radio--checked": this.checked,
|
|
68
|
+
"radio--disabled": this.disabled,
|
|
69
|
+
"radio--focused": this.hasFocus,
|
|
70
|
+
"radio--small": this.size === "small",
|
|
71
|
+
"radio--medium": this.size === "medium",
|
|
72
|
+
"radio--large": this.size === "large"
|
|
73
|
+
})}
|
|
74
|
+
>
|
|
75
|
+
<span part="${`control${this.checked ? " control--checked" : ""}`}" class="radio__control">
|
|
76
|
+
${this.checked ? html` <syn-icon part="checked-icon" class="radio__checked-icon" library="system" name="radio"></syn-icon> ` : ""}
|
|
77
|
+
</span>
|
|
78
|
+
|
|
79
|
+
<slot part="label" class="radio__label"></slot>
|
|
80
|
+
</span>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
SynRadio.styles = radio_styles_default;
|
|
85
|
+
SynRadio.dependencies = { "syn-icon": SynIcon };
|
|
86
|
+
__decorateClass([
|
|
87
|
+
state()
|
|
88
|
+
], SynRadio.prototype, "checked", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
state()
|
|
91
|
+
], SynRadio.prototype, "hasFocus", 2);
|
|
92
|
+
__decorateClass([
|
|
93
|
+
property()
|
|
94
|
+
], SynRadio.prototype, "value", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
property({ reflect: true })
|
|
97
|
+
], SynRadio.prototype, "size", 2);
|
|
98
|
+
__decorateClass([
|
|
99
|
+
property({ type: Boolean, reflect: true })
|
|
100
|
+
], SynRadio.prototype, "disabled", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
watch("checked")
|
|
103
|
+
], SynRadio.prototype, "handleCheckedChange", 1);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
106
|
+
], SynRadio.prototype, "handleDisabledChange", 1);
|
|
107
|
+
|
|
108
|
+
export {
|
|
109
|
+
SynRadio
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=chunk.PBWBRVMW.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio/radio.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 { html } from 'lit';\nimport { property, 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 './radio.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Radios allow the user to select a single option from a group.\n * @documentation https://synergy.style/components/radio\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The radio's label.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-focus - Emitted when the control gains focus.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The circular container that wraps the radio's checked state.\n * @csspart control--checked - The radio control when the radio is checked.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the radio's label.\n */\nexport default class SynRadio extends SynergyElement {\n static styles: CSSResultGroup = styles;\n static dependencies = { 'syn-icon': SynIcon };\n\n @state() checked = false;\n @state() protected hasFocus = false;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property() value: string;\n\n /**\n * The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\n * attribute can typically be omitted.\n */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the radio. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n constructor() {\n super();\n this.addEventListener('blur', this.handleBlur);\n this.addEventListener('click', this.handleClick);\n this.addEventListener('focus', this.handleFocus);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setInitialAttributes();\n }\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.emit('syn-blur');\n };\n\n private handleClick = () => {\n if (!this.disabled) {\n this.checked = true;\n }\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.emit('syn-focus');\n };\n\n private setInitialAttributes() {\n this.setAttribute('role', 'radio');\n this.setAttribute('tabindex', '-1');\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('checked')\n handleCheckedChange() {\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n this.setAttribute('tabindex', this.checked ? '0' : '-1');\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n radio: true,\n 'radio--checked': this.checked,\n 'radio--disabled': this.disabled,\n 'radio--focused': this.hasFocus,\n 'radio--small': this.size === 'small',\n 'radio--medium': this.size === 'medium',\n 'radio--large': this.size === 'large'\n })}\n >\n <span part=\"${`control${this.checked ? ' control--checked' : ''}`}\" class=\"radio__control\">\n ${this.checked\n ? html` <syn-icon part=\"checked-icon\" class=\"radio__checked-icon\" library=\"system\" name=\"radio\"></syn-icon> `\n : ''}\n </span>\n\n <slot part=\"label\" class=\"radio__label\"></slot>\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-radio': SynRadio;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AA0BhC,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAmBnD,cAAc;AACZ,UAAM;AAhBC,mBAAU;AACV,SAAU,WAAW;AASD,gBAAqC;AAGtB,oBAAW;AAcvD,SAAQ,aAAa,MAAM;AACzB,WAAK,WAAW;AAChB,WAAK,KAAK,UAAU;AAAA,IACtB;AAEA,SAAQ,cAAc,MAAM;AAC1B,UAAI,CAAC,KAAK,UAAU;AAClB,aAAK,UAAU;AAAA,MACjB;AAAA,IACF;AAEA,SAAQ,cAAc,MAAM;AAC1B,WAAK,WAAW;AAChB,WAAK,KAAK,WAAW;AAAA,IACvB;AAxBE,SAAK,iBAAiB,QAAQ,KAAK,UAAU;AAC7C,SAAK,iBAAiB,SAAS,KAAK,WAAW;AAC/C,SAAK,iBAAiB,SAAS,KAAK,WAAW;AAAA,EACjD;AAAA,EAEA,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,qBAAqB;AAAA,EAC5B;AAAA,EA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A4DnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/
|
|
3
|
+
"sources": ["../../src/components/icon/icon.custom.styles.ts"],
|
|
4
4
|
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* Write custom CSS here */\n`;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,6BAAQ;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynTextarea
|
|
3
|
+
} from "./chunk.QBOOYQY4.js";
|
|
4
|
+
|
|
5
|
+
// src/components/textarea/textarea.ts
|
|
6
|
+
var textarea_default = SynTextarea;
|
|
7
|
+
SynTextarea.define("syn-textarea");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
textarea_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.Q6AHDRN2.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/textarea/textarea.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 SynTextarea from './textarea.component.js';\n\nexport * from './textarea.component.js';\nexport default SynTextarea;\n\nSynTextarea.define('syn-textarea');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-textarea': SynTextarea;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,mBAAQ;AAEf,YAAY,OAAO,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import {
|
|
2
|
+
textarea_styles_default
|
|
3
|
+
} from "./chunk.23HTU3YE.js";
|
|
4
|
+
import {
|
|
5
|
+
defaultValue
|
|
6
|
+
} from "./chunk.WFAJR3FN.js";
|
|
7
|
+
import {
|
|
8
|
+
HasSlotController
|
|
9
|
+
} from "./chunk.XGXFE6IF.js";
|
|
10
|
+
import {
|
|
11
|
+
FormControlController
|
|
12
|
+
} from "./chunk.P2LNG2PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.VZ7S7YYN.js";
|
|
16
|
+
import {
|
|
17
|
+
SynergyElement
|
|
18
|
+
} from "./chunk.6I3HJMNQ.js";
|
|
19
|
+
import {
|
|
20
|
+
__decorateClass
|
|
21
|
+
} from "./chunk.DJOAQ4JU.js";
|
|
22
|
+
|
|
23
|
+
// src/components/textarea/textarea.component.ts
|
|
24
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
25
|
+
import { html } from "lit";
|
|
26
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
27
|
+
import { live } from "lit/directives/live.js";
|
|
28
|
+
import { property, query, state } from "lit/decorators.js";
|
|
29
|
+
var SynTextarea = class extends SynergyElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.formControlController = new FormControlController(this, {
|
|
33
|
+
assumeInteractionOn: ["syn-blur", "syn-input"]
|
|
34
|
+
});
|
|
35
|
+
this.hasSlotController = new HasSlotController(this, "help-text", "label", "prefix", "suffix");
|
|
36
|
+
this.hasFocus = false;
|
|
37
|
+
this.title = "";
|
|
38
|
+
this.name = "";
|
|
39
|
+
this.value = "";
|
|
40
|
+
this.size = "medium";
|
|
41
|
+
this.label = "";
|
|
42
|
+
this.helpText = "";
|
|
43
|
+
this.placeholder = "";
|
|
44
|
+
this.rows = 4;
|
|
45
|
+
this.resize = "vertical";
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
this.readonly = false;
|
|
48
|
+
this.form = "";
|
|
49
|
+
this.required = false;
|
|
50
|
+
this.spellcheck = true;
|
|
51
|
+
this.defaultValue = "";
|
|
52
|
+
}
|
|
53
|
+
/** Gets the validity state object */
|
|
54
|
+
get validity() {
|
|
55
|
+
return this.input.validity;
|
|
56
|
+
}
|
|
57
|
+
/** Gets the validation message */
|
|
58
|
+
get validationMessage() {
|
|
59
|
+
return this.input.validationMessage;
|
|
60
|
+
}
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
super.connectedCallback();
|
|
63
|
+
this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());
|
|
64
|
+
this.updateComplete.then(() => {
|
|
65
|
+
this.setTextareaHeight();
|
|
66
|
+
this.resizeObserver.observe(this.input);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
firstUpdated() {
|
|
70
|
+
this.formControlController.updateValidity();
|
|
71
|
+
}
|
|
72
|
+
disconnectedCallback() {
|
|
73
|
+
super.disconnectedCallback();
|
|
74
|
+
this.resizeObserver.unobserve(this.input);
|
|
75
|
+
}
|
|
76
|
+
handleBlur() {
|
|
77
|
+
this.hasFocus = false;
|
|
78
|
+
this.emit("syn-blur");
|
|
79
|
+
}
|
|
80
|
+
handleChange() {
|
|
81
|
+
this.value = this.input.value;
|
|
82
|
+
this.setTextareaHeight();
|
|
83
|
+
this.emit("syn-change");
|
|
84
|
+
}
|
|
85
|
+
handleFocus() {
|
|
86
|
+
this.hasFocus = true;
|
|
87
|
+
this.emit("syn-focus");
|
|
88
|
+
}
|
|
89
|
+
handleInput() {
|
|
90
|
+
this.value = this.input.value;
|
|
91
|
+
this.emit("syn-input");
|
|
92
|
+
}
|
|
93
|
+
handleInvalid(event) {
|
|
94
|
+
this.formControlController.setValidity(false);
|
|
95
|
+
this.formControlController.emitInvalidEvent(event);
|
|
96
|
+
}
|
|
97
|
+
setTextareaHeight() {
|
|
98
|
+
if (this.resize === "auto") {
|
|
99
|
+
this.input.style.height = "auto";
|
|
100
|
+
this.input.style.height = `${this.input.scrollHeight}px`;
|
|
101
|
+
} else {
|
|
102
|
+
this.input.style.height = void 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
handleDisabledChange() {
|
|
106
|
+
this.formControlController.setValidity(this.disabled);
|
|
107
|
+
}
|
|
108
|
+
handleRowsChange() {
|
|
109
|
+
this.setTextareaHeight();
|
|
110
|
+
}
|
|
111
|
+
async handleValueChange() {
|
|
112
|
+
await this.updateComplete;
|
|
113
|
+
this.formControlController.updateValidity();
|
|
114
|
+
this.setTextareaHeight();
|
|
115
|
+
}
|
|
116
|
+
/** Sets focus on the textarea. */
|
|
117
|
+
focus(options) {
|
|
118
|
+
this.input.focus(options);
|
|
119
|
+
}
|
|
120
|
+
/** Removes focus from the textarea. */
|
|
121
|
+
blur() {
|
|
122
|
+
this.input.blur();
|
|
123
|
+
}
|
|
124
|
+
/** Selects all the text in the textarea. */
|
|
125
|
+
select() {
|
|
126
|
+
this.input.select();
|
|
127
|
+
}
|
|
128
|
+
/** Gets or sets the textarea's scroll position. */
|
|
129
|
+
scrollPosition(position) {
|
|
130
|
+
if (position) {
|
|
131
|
+
if (typeof position.top === "number")
|
|
132
|
+
this.input.scrollTop = position.top;
|
|
133
|
+
if (typeof position.left === "number")
|
|
134
|
+
this.input.scrollLeft = position.left;
|
|
135
|
+
return void 0;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
top: this.input.scrollTop,
|
|
139
|
+
left: this.input.scrollTop
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
143
|
+
setSelectionRange(selectionStart, selectionEnd, selectionDirection = "none") {
|
|
144
|
+
this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);
|
|
145
|
+
}
|
|
146
|
+
/** Replaces a range of text with a new string. */
|
|
147
|
+
setRangeText(replacement, start, end, selectMode) {
|
|
148
|
+
this.input.setRangeText(replacement, start, end, selectMode);
|
|
149
|
+
if (this.value !== this.input.value) {
|
|
150
|
+
this.value = this.input.value;
|
|
151
|
+
}
|
|
152
|
+
if (this.value !== this.input.value) {
|
|
153
|
+
this.value = this.input.value;
|
|
154
|
+
this.setTextareaHeight();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
158
|
+
checkValidity() {
|
|
159
|
+
return this.input.checkValidity();
|
|
160
|
+
}
|
|
161
|
+
/** Gets the associated form, if one exists. */
|
|
162
|
+
getForm() {
|
|
163
|
+
return this.formControlController.getForm();
|
|
164
|
+
}
|
|
165
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
166
|
+
reportValidity() {
|
|
167
|
+
return this.input.reportValidity();
|
|
168
|
+
}
|
|
169
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
170
|
+
setCustomValidity(message) {
|
|
171
|
+
this.input.setCustomValidity(message);
|
|
172
|
+
this.formControlController.updateValidity();
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
176
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
177
|
+
const hasPrefixSlot = this.hasSlotController.test("prefix");
|
|
178
|
+
const hasSuffixSlot = this.hasSlotController.test("suffix");
|
|
179
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
180
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
181
|
+
return html`
|
|
182
|
+
<div
|
|
183
|
+
part="form-control"
|
|
184
|
+
class=${classMap({
|
|
185
|
+
"form-control": true,
|
|
186
|
+
"form-control--small": this.size === "small",
|
|
187
|
+
"form-control--medium": this.size === "medium",
|
|
188
|
+
"form-control--large": this.size === "large",
|
|
189
|
+
"form-control--has-label": hasLabel,
|
|
190
|
+
"form-control--has-help-text": hasHelpText,
|
|
191
|
+
"form-control--has-prefix": hasPrefixSlot,
|
|
192
|
+
"form-control--has-suffix": hasSuffixSlot
|
|
193
|
+
})}
|
|
194
|
+
>
|
|
195
|
+
<label
|
|
196
|
+
part="form-control-label"
|
|
197
|
+
class="form-control__label"
|
|
198
|
+
for="input"
|
|
199
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
200
|
+
>
|
|
201
|
+
<slot name="label">${this.label}</slot>
|
|
202
|
+
</label>
|
|
203
|
+
|
|
204
|
+
<div part="form-control-input" class="form-control-input">
|
|
205
|
+
<div
|
|
206
|
+
part="base"
|
|
207
|
+
class=${classMap({
|
|
208
|
+
textarea: true,
|
|
209
|
+
"textarea--small": this.size === "small",
|
|
210
|
+
"textarea--medium": this.size === "medium",
|
|
211
|
+
"textarea--large": this.size === "large",
|
|
212
|
+
"textarea--standard": !this.readonly,
|
|
213
|
+
"textarea--readonly": this.readonly,
|
|
214
|
+
"textarea--disabled": this.disabled,
|
|
215
|
+
"textarea--focused": this.hasFocus,
|
|
216
|
+
"textarea--empty": !this.value,
|
|
217
|
+
"textarea--resize-none": this.resize === "none",
|
|
218
|
+
"textarea--resize-vertical": this.resize === "vertical",
|
|
219
|
+
"textarea--resize-auto": this.resize === "auto"
|
|
220
|
+
})}
|
|
221
|
+
>
|
|
222
|
+
<textarea
|
|
223
|
+
part="textarea"
|
|
224
|
+
id="input"
|
|
225
|
+
class="textarea__control"
|
|
226
|
+
title=${this.title}
|
|
227
|
+
name=${ifDefined(this.name)}
|
|
228
|
+
.value=${live(this.value)}
|
|
229
|
+
?disabled=${this.disabled}
|
|
230
|
+
?readonly=${this.readonly}
|
|
231
|
+
?required=${this.required}
|
|
232
|
+
placeholder=${ifDefined(this.placeholder)}
|
|
233
|
+
rows=${ifDefined(this.rows)}
|
|
234
|
+
minlength=${ifDefined(this.minlength)}
|
|
235
|
+
maxlength=${ifDefined(this.maxlength)}
|
|
236
|
+
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
237
|
+
autocorrect=${ifDefined(this.autocorrect)}
|
|
238
|
+
?autofocus=${this.autofocus}
|
|
239
|
+
spellcheck=${ifDefined(this.spellcheck)}
|
|
240
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
241
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
242
|
+
aria-describedby="help-text"
|
|
243
|
+
@change=${this.handleChange}
|
|
244
|
+
@input=${this.handleInput}
|
|
245
|
+
@invalid=${this.handleInvalid}
|
|
246
|
+
@focus=${this.handleFocus}
|
|
247
|
+
@blur=${this.handleBlur}
|
|
248
|
+
></textarea>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
<div
|
|
253
|
+
part="form-control-help-text"
|
|
254
|
+
id="help-text"
|
|
255
|
+
class="form-control__help-text"
|
|
256
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
257
|
+
>
|
|
258
|
+
<slot name="help-text">${this.helpText}</slot>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
`;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
SynTextarea.styles = textarea_styles_default;
|
|
265
|
+
__decorateClass([
|
|
266
|
+
query(".textarea__control")
|
|
267
|
+
], SynTextarea.prototype, "input", 2);
|
|
268
|
+
__decorateClass([
|
|
269
|
+
state()
|
|
270
|
+
], SynTextarea.prototype, "hasFocus", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
property()
|
|
273
|
+
], SynTextarea.prototype, "title", 2);
|
|
274
|
+
__decorateClass([
|
|
275
|
+
property()
|
|
276
|
+
], SynTextarea.prototype, "name", 2);
|
|
277
|
+
__decorateClass([
|
|
278
|
+
property()
|
|
279
|
+
], SynTextarea.prototype, "value", 2);
|
|
280
|
+
__decorateClass([
|
|
281
|
+
property({ reflect: true })
|
|
282
|
+
], SynTextarea.prototype, "size", 2);
|
|
283
|
+
__decorateClass([
|
|
284
|
+
property()
|
|
285
|
+
], SynTextarea.prototype, "label", 2);
|
|
286
|
+
__decorateClass([
|
|
287
|
+
property({ attribute: "help-text" })
|
|
288
|
+
], SynTextarea.prototype, "helpText", 2);
|
|
289
|
+
__decorateClass([
|
|
290
|
+
property()
|
|
291
|
+
], SynTextarea.prototype, "placeholder", 2);
|
|
292
|
+
__decorateClass([
|
|
293
|
+
property({ type: Number })
|
|
294
|
+
], SynTextarea.prototype, "rows", 2);
|
|
295
|
+
__decorateClass([
|
|
296
|
+
property()
|
|
297
|
+
], SynTextarea.prototype, "resize", 2);
|
|
298
|
+
__decorateClass([
|
|
299
|
+
property({ type: Boolean, reflect: true })
|
|
300
|
+
], SynTextarea.prototype, "disabled", 2);
|
|
301
|
+
__decorateClass([
|
|
302
|
+
property({ type: Boolean, reflect: true })
|
|
303
|
+
], SynTextarea.prototype, "readonly", 2);
|
|
304
|
+
__decorateClass([
|
|
305
|
+
property({ reflect: true })
|
|
306
|
+
], SynTextarea.prototype, "form", 2);
|
|
307
|
+
__decorateClass([
|
|
308
|
+
property({ type: Boolean, reflect: true })
|
|
309
|
+
], SynTextarea.prototype, "required", 2);
|
|
310
|
+
__decorateClass([
|
|
311
|
+
property({ type: Number })
|
|
312
|
+
], SynTextarea.prototype, "minlength", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
property({ type: Number })
|
|
315
|
+
], SynTextarea.prototype, "maxlength", 2);
|
|
316
|
+
__decorateClass([
|
|
317
|
+
property()
|
|
318
|
+
], SynTextarea.prototype, "autocapitalize", 2);
|
|
319
|
+
__decorateClass([
|
|
320
|
+
property()
|
|
321
|
+
], SynTextarea.prototype, "autocorrect", 2);
|
|
322
|
+
__decorateClass([
|
|
323
|
+
property()
|
|
324
|
+
], SynTextarea.prototype, "autocomplete", 2);
|
|
325
|
+
__decorateClass([
|
|
326
|
+
property({ type: Boolean })
|
|
327
|
+
], SynTextarea.prototype, "autofocus", 2);
|
|
328
|
+
__decorateClass([
|
|
329
|
+
property()
|
|
330
|
+
], SynTextarea.prototype, "enterkeyhint", 2);
|
|
331
|
+
__decorateClass([
|
|
332
|
+
property({
|
|
333
|
+
type: Boolean,
|
|
334
|
+
converter: {
|
|
335
|
+
// Allow "true|false" attribute values but keep the property boolean
|
|
336
|
+
fromAttribute: (value) => !value || value === "false" ? false : true,
|
|
337
|
+
toAttribute: (value) => value ? "true" : "false"
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
], SynTextarea.prototype, "spellcheck", 2);
|
|
341
|
+
__decorateClass([
|
|
342
|
+
property()
|
|
343
|
+
], SynTextarea.prototype, "inputmode", 2);
|
|
344
|
+
__decorateClass([
|
|
345
|
+
defaultValue()
|
|
346
|
+
], SynTextarea.prototype, "defaultValue", 2);
|
|
347
|
+
__decorateClass([
|
|
348
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
349
|
+
], SynTextarea.prototype, "handleDisabledChange", 1);
|
|
350
|
+
__decorateClass([
|
|
351
|
+
watch("rows", { waitUntilFirstUpdate: true })
|
|
352
|
+
], SynTextarea.prototype, "handleRowsChange", 1);
|
|
353
|
+
__decorateClass([
|
|
354
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
355
|
+
], SynTextarea.prototype, "handleValueChange", 1);
|
|
356
|
+
|
|
357
|
+
export {
|
|
358
|
+
SynTextarea
|
|
359
|
+
};
|
|
360
|
+
//# sourceMappingURL=chunk.QBOOYQY4.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/textarea/textarea.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 { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './textarea.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://synergy.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.\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-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 textarea - The internal `<textarea>` control.\n */\nexport default class SynTextarea extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\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 resizeObserver: ResizeObserver;\n\n @query('.textarea__control') input: HTMLTextAreaElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n /** The name of the textarea, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the textarea, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The textarea's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The textarea's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The textarea's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** The number of rows to display by default. */\n @property({ type: Number }) rows = 4;\n\n /** Controls how the textarea can be resized. */\n @property() resize: 'none' | 'vertical' | 'auto' = 'vertical';\n\n /** Disables the textarea. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Makes the textarea readonly. */\n @property({ type: Boolean, reflect: true }) readonly = 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 textarea a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\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 /** 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: string;\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 textarea. */\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 /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\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 connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());\n\n this.updateComplete.then(() => {\n this.setTextareaHeight();\n this.resizeObserver.observe(this.input);\n });\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this.input);\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.setTextareaHeight();\n this.emit('syn-change');\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.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private setTextareaHeight() {\n if (this.resize === 'auto') {\n this.input.style.height = 'auto';\n this.input.style.height = `${this.input.scrollHeight}px`;\n } else {\n (this.input.style.height as string | undefined) = undefined;\n }\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('rows', { waitUntilFirstUpdate: true })\n handleRowsChange() {\n this.setTextareaHeight();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n this.setTextareaHeight();\n }\n\n /** Sets focus on the textarea. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the textarea. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the textarea. */\n select() {\n this.input.select();\n }\n\n /** Gets or sets the textarea's scroll position. */\n scrollPosition(position?: { top?: number; left?: number }): { top: number; left: number } | undefined {\n if (position) {\n if (typeof position.top === 'number') this.input.scrollTop = position.top;\n if (typeof position.left === 'number') this.input.scrollLeft = position.left;\n return undefined;\n }\n\n return {\n top: this.input.scrollTop,\n left: this.input.scrollTop\n };\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 if (this.value !== this.input.value) {\n this.value = this.input.value;\n this.setTextareaHeight();\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\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 textarea: true,\n 'textarea--small': this.size === 'small',\n 'textarea--medium': this.size === 'medium',\n 'textarea--large': this.size === 'large',\n 'textarea--standard': !this.readonly,\n 'textarea--readonly': this.readonly,\n 'textarea--disabled': this.disabled,\n 'textarea--focused': this.hasFocus,\n 'textarea--empty': !this.value,\n 'textarea--resize-none': this.resize === 'none',\n 'textarea--resize-vertical': this.resize === 'vertical',\n 'textarea--resize-auto': this.resize === 'auto'\n })}\n >\n <textarea\n part=\"textarea\"\n id=\"input\"\n class=\"textarea__control\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n .value=${live(this.value)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n rows=${ifDefined(this.rows)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${ifDefined(this.spellcheck)}\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 @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n ></textarea>\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>\n </div>\n </div>\n `;\n }\n}\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AGA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GA1DP,YA0DS;AAGhB;AAAA,EAAX,SAAS;AAAA,GA7DS,YA6DP;AAGA;AAAA,EAAX,SAAS;AAAA,GAhES,YAgEP;AAMA;AAAA,EAAX,SAAS;AAAA,GAtES,YAsEP;AAGiB;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAzER,YAyEU;AAGjB;AAAA,EAAX,SAAS;AAAA,GA5ES,YA4EP;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,GAtFkB,YAuFnB;AAMY;AAAA,EAAX,SAAS;AAAA,GA7FS,YA6FP;AAGI;AAAA,EAAf,aAAa;AAAA,GAhGK,YAgGH;AAmEhB;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAlK9B,YAmKnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxK1B,YAyKnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7K3B,YA8Kb;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
icon_custom_styles_default
|
|
3
|
+
} from "./chunk.PJO6TM3T.js";
|
|
1
4
|
import {
|
|
2
5
|
component_styles_default
|
|
3
6
|
} from "./chunk.O7USYXBT.js";
|
|
@@ -20,9 +23,11 @@ var icon_styles_default = css`
|
|
|
20
23
|
height: 100%;
|
|
21
24
|
width: 100%;
|
|
22
25
|
}
|
|
26
|
+
|
|
27
|
+
${icon_custom_styles_default}
|
|
23
28
|
`;
|
|
24
29
|
|
|
25
30
|
export {
|
|
26
31
|
icon_styles_default
|
|
27
32
|
};
|
|
28
|
-
//# sourceMappingURL=chunk.
|
|
33
|
+
//# sourceMappingURL=chunk.RSONAU45.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon/icon.styles.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 { css } from 'lit';\nimport customStyles from './icon.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n width: 1em;\n height: 1em;\n box-sizing: content-box !important;\n }\n\n svg {\n display: block;\n height: 100%;\n width: 100%;\n }\n\n ${customStyles}\n`;\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,sBAAQ;AAAA;AAAA,IAEX,wBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAef,0BAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynButtonGroup
|
|
3
|
+
} from "./chunk.7CU3ERWO.js";
|
|
4
|
+
|
|
5
|
+
// src/components/button-group/button-group.ts
|
|
6
|
+
var button_group_default = SynButtonGroup;
|
|
7
|
+
SynButtonGroup.define("syn-button-group");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
button_group_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.TPRFDNQ5.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button-group/button-group.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 SynButtonGroup from './button-group.component.js';\n\nexport * from './button-group.component.js';\nexport default SynButtonGroup;\n\nSynButtonGroup.define('syn-button-group');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-button-group': SynButtonGroup;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,uBAAQ;AAEf,eAAe,OAAO,kBAAkB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|