@francofantomius/material-components 0.1.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 +22 -0
- package/README.md +192 -0
- package/custom-elements.json +5448 -0
- package/dist/chunks/base-component-DQTjlEVL.js +34 -0
- package/dist/chunks/base-component-DQTjlEVL.js.map +1 -0
- package/dist/chunks/focus-ring-Dl-XoEKK.js +71 -0
- package/dist/chunks/focus-ring-Dl-XoEKK.js.map +1 -0
- package/dist/chunks/form-associated-fKbeX_2P.js +74 -0
- package/dist/chunks/form-associated-fKbeX_2P.js.map +1 -0
- package/dist/chunks/theme.css-DV3DRha-.js +263 -0
- package/dist/chunks/theme.css-DV3DRha-.js.map +1 -0
- package/dist/components/badge/badge.css.d.ts +2 -0
- package/dist/components/badge/badge.css.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +16 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +93 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/button/button.css.d.ts +2 -0
- package/dist/components/button/button.css.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +25 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +263 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/card/card.css.d.ts +2 -0
- package/dist/components/card/card.css.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +18 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +169 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.css.d.ts +2 -0
- package/dist/components/checkbox/checkbox.css.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +24 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +188 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/chip/chip.css.d.ts +3 -0
- package/dist/components/chip/chip.css.d.ts.map +1 -0
- package/dist/components/chip/chip.d.ts +27 -0
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +174 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/dialog/dialog.css.d.ts +2 -0
- package/dist/components/dialog/dialog.css.d.ts.map +1 -0
- package/dist/components/dialog/dialog.d.ts +22 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +167 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/divider/divider.css.d.ts +2 -0
- package/dist/components/divider/divider.css.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +16 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.js +81 -0
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/fab/fab.css.d.ts +2 -0
- package/dist/components/fab/fab.css.d.ts.map +1 -0
- package/dist/components/fab/fab.d.ts +19 -0
- package/dist/components/fab/fab.d.ts.map +1 -0
- package/dist/components/fab/fab.js +155 -0
- package/dist/components/fab/fab.js.map +1 -0
- package/dist/components/icon/icon.css.d.ts +2 -0
- package/dist/components/icon/icon.css.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +15 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +70 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon-button/icon-button.css.d.ts +2 -0
- package/dist/components/icon-button/icon-button.css.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.d.ts +22 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.js +192 -0
- package/dist/components/icon-button/icon-button.js.map +1 -0
- package/dist/components/list/list.css.d.ts +3 -0
- package/dist/components/list/list.css.d.ts.map +1 -0
- package/dist/components/list/list.d.ts +25 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +190 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/progress/progress.css.d.ts +2 -0
- package/dist/components/progress/progress.css.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +19 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +183 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio/radio.css.d.ts +3 -0
- package/dist/components/radio/radio.css.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +38 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +205 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/snackbar/snackbar.css.d.ts +2 -0
- package/dist/components/snackbar/snackbar.css.d.ts.map +1 -0
- package/dist/components/snackbar/snackbar.d.ts +24 -0
- package/dist/components/snackbar/snackbar.d.ts.map +1 -0
- package/dist/components/snackbar/snackbar.js +164 -0
- package/dist/components/snackbar/snackbar.js.map +1 -0
- package/dist/components/switch/switch.css.d.ts +2 -0
- package/dist/components/switch/switch.css.d.ts.map +1 -0
- package/dist/components/switch/switch.d.ts +22 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +171 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/tabs/tabs.css.d.ts +3 -0
- package/dist/components/tabs/tabs.css.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +33 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +200 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/text-field/text-field.css.d.ts +2 -0
- package/dist/components/text-field/text-field.css.d.ts.map +1 -0
- package/dist/components/text-field/text-field.d.ts +40 -0
- package/dist/components/text-field/text-field.d.ts.map +1 -0
- package/dist/components/text-field/text-field.js +327 -0
- package/dist/components/text-field/text-field.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/base-component.d.ts +13 -0
- package/dist/internal/base-component.d.ts.map +1 -0
- package/dist/internal/focus-ring/focus-ring.css.d.ts +2 -0
- package/dist/internal/focus-ring/focus-ring.css.d.ts.map +1 -0
- package/dist/internal/focus-ring/focus-ring.d.ts +18 -0
- package/dist/internal/focus-ring/focus-ring.d.ts.map +1 -0
- package/dist/internal/form-associated.d.ts +26 -0
- package/dist/internal/form-associated.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.css.d.ts +2 -0
- package/dist/internal/ripple/ripple.css.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.d.ts +26 -0
- package/dist/internal/ripple/ripple.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.js +144 -0
- package/dist/internal/ripple/ripple.js.map +1 -0
- package/dist/tokens/colors.d.ts +42 -0
- package/dist/tokens/colors.d.ts.map +1 -0
- package/dist/tokens/elevation.d.ts +9 -0
- package/dist/tokens/elevation.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +7 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +13 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/motion.d.ts +21 -0
- package/dist/tokens/motion.d.ts.map +1 -0
- package/dist/tokens/shape.d.ts +10 -0
- package/dist/tokens/shape.d.ts.map +1 -0
- package/dist/tokens/theme.css.d.ts +4 -0
- package/dist/tokens/theme.css.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +101 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/package.json +133 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { css as h, html as p } from "lit";
|
|
2
|
+
import { property as n, query as m, customElement as u } from "lit/decorators.js";
|
|
3
|
+
import { M as c } from "../../chunks/form-associated-fKbeX_2P.js";
|
|
4
|
+
import "../../internal/ripple/ripple.js";
|
|
5
|
+
import "../../chunks/focus-ring-Dl-XoEKK.js";
|
|
6
|
+
const b = h`
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
outline: none;
|
|
13
|
+
-webkit-tap-highlight-color: transparent;
|
|
14
|
+
user-select: none;
|
|
15
|
+
gap: 8px;
|
|
16
|
+
font-family: var(--md-sys-typescale-font-family, inherit);
|
|
17
|
+
font-size: var(--md-sys-typescale-body-large-size, 16px);
|
|
18
|
+
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([disabled]) {
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
color: rgba(29, 27, 32, 0.38);
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.container {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
width: 40px;
|
|
33
|
+
height: 40px;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.box {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 18px;
|
|
43
|
+
height: 18px;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
border: 2px solid var(--md-sys-color-on-surface-variant, #49454F);
|
|
46
|
+
border-radius: var(--md-sys-shape-corner-extra-small, 2px);
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),
|
|
49
|
+
border-color 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([checked]) .box,
|
|
53
|
+
:host([indeterminate]) .box {
|
|
54
|
+
background-color: var(--md-sys-color-primary, #6750A4);
|
|
55
|
+
border-color: var(--md-sys-color-primary, #6750A4);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([error]) .box {
|
|
59
|
+
border-color: var(--md-sys-color-error, #B3261E);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([error][checked]) .box,
|
|
63
|
+
:host([error][indeterminate]) .box {
|
|
64
|
+
background-color: var(--md-sys-color-error, #B3261E);
|
|
65
|
+
border-color: var(--md-sys-color-error, #B3261E);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([disabled]) .box {
|
|
69
|
+
border-color: rgba(29, 27, 32, 0.38);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([disabled][checked]) .box,
|
|
73
|
+
:host([disabled][indeterminate]) .box {
|
|
74
|
+
background-color: rgba(29, 27, 32, 0.38);
|
|
75
|
+
border-color: transparent;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.mark {
|
|
79
|
+
position: absolute;
|
|
80
|
+
width: 14px;
|
|
81
|
+
height: 14px;
|
|
82
|
+
fill: none;
|
|
83
|
+
stroke: var(--md-sys-color-on-primary, #FFFFFF);
|
|
84
|
+
stroke-width: 2.5;
|
|
85
|
+
stroke-linecap: round;
|
|
86
|
+
stroke-linejoin: round;
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transition: opacity 150ms ease;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([checked]) .mark.check {
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([indeterminate]) .mark.dash {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input {
|
|
100
|
+
position: absolute;
|
|
101
|
+
opacity: 0;
|
|
102
|
+
width: 0;
|
|
103
|
+
height: 0;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
var y = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (e, o, a, s) => {
|
|
108
|
+
for (var r = s > 1 ? void 0 : s ? k(o, a) : o, l = e.length - 1, d; l >= 0; l--)
|
|
109
|
+
(d = e[l]) && (r = (s ? d(o, a, r) : d(r)) || r);
|
|
110
|
+
return s && r && y(o, a, r), r;
|
|
111
|
+
};
|
|
112
|
+
let t = class extends c {
|
|
113
|
+
constructor() {
|
|
114
|
+
super(...arguments), this.checked = !1, this.indeterminate = !1, this.error = !1, this.value = "on", this.handleClick = (e) => {
|
|
115
|
+
this.disabled || (e.preventDefault(), this.toggle());
|
|
116
|
+
}, this.handleKeyDown = (e) => {
|
|
117
|
+
this.disabled || (e.key === " " || e.key === "Enter") && (e.preventDefault(), this.toggle());
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
connectedCallback() {
|
|
121
|
+
super.connectedCallback(), this.tabIndex = this.disabled ? -1 : 0, this.addEventListener("click", this.handleClick), this.addEventListener("keydown", this.handleKeyDown), this.updateFormValue();
|
|
122
|
+
}
|
|
123
|
+
disconnectedCallback() {
|
|
124
|
+
super.disconnectedCallback(), this.removeEventListener("click", this.handleClick), this.removeEventListener("keydown", this.handleKeyDown);
|
|
125
|
+
}
|
|
126
|
+
updated(e) {
|
|
127
|
+
super.updated(e), (e.has("checked") || e.has("indeterminate") || e.has("value")) && this.updateFormValue();
|
|
128
|
+
}
|
|
129
|
+
formResetCallback() {
|
|
130
|
+
this.checked = !1, this.indeterminate = !1, this.updateFormValue();
|
|
131
|
+
}
|
|
132
|
+
updateFormValue() {
|
|
133
|
+
this.setFormValue(this.checked ? this.value : null), this.required && !this.checked ? this.setValidity({ valueMissing: !0 }, "Please check this box if you want to proceed") : this.setValidity({});
|
|
134
|
+
}
|
|
135
|
+
toggle() {
|
|
136
|
+
this.indeterminate ? (this.indeterminate = !1, this.checked = !0) : this.checked = !this.checked, this.updateFormValue(), this.emitEvent("change", { checked: this.checked, indeterminate: this.indeterminate }), this.emitEvent("input", { checked: this.checked, indeterminate: this.indeterminate });
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
return p`
|
|
140
|
+
<div class="container">
|
|
141
|
+
<md-ripple ?disabled=${this.disabled} unbounded></md-ripple>
|
|
142
|
+
<md-focus-ring></md-focus-ring>
|
|
143
|
+
<div class="box">
|
|
144
|
+
<!-- Checkmark SVG -->
|
|
145
|
+
<svg class="mark check" viewBox="0 0 18 18">
|
|
146
|
+
<polyline points="3.5,9.5 7,13 14.5,5.5"></polyline>
|
|
147
|
+
</svg>
|
|
148
|
+
<!-- Indeterminate Dash SVG -->
|
|
149
|
+
<svg class="mark dash" viewBox="0 0 18 18">
|
|
150
|
+
<line x1="3.5" y1="9" x2="14.5" y2="9"></line>
|
|
151
|
+
</svg>
|
|
152
|
+
</div>
|
|
153
|
+
<input
|
|
154
|
+
type="checkbox"
|
|
155
|
+
.checked=${this.checked}
|
|
156
|
+
.indeterminate=${this.indeterminate}
|
|
157
|
+
?disabled=${this.disabled}
|
|
158
|
+
tabindex="-1"
|
|
159
|
+
aria-hidden="true"
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
<slot></slot>
|
|
163
|
+
`;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
t.styles = [c.styles, b];
|
|
167
|
+
i([
|
|
168
|
+
n({ type: Boolean, reflect: !0 })
|
|
169
|
+
], t.prototype, "checked", 2);
|
|
170
|
+
i([
|
|
171
|
+
n({ type: Boolean, reflect: !0 })
|
|
172
|
+
], t.prototype, "indeterminate", 2);
|
|
173
|
+
i([
|
|
174
|
+
n({ type: Boolean, reflect: !0 })
|
|
175
|
+
], t.prototype, "error", 2);
|
|
176
|
+
i([
|
|
177
|
+
n({ type: String })
|
|
178
|
+
], t.prototype, "value", 2);
|
|
179
|
+
i([
|
|
180
|
+
m("input")
|
|
181
|
+
], t.prototype, "inputElement", 2);
|
|
182
|
+
t = i([
|
|
183
|
+
u("md-checkbox")
|
|
184
|
+
], t);
|
|
185
|
+
export {
|
|
186
|
+
t as MdCheckbox
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.js","sources":["../../../src/components/checkbox/checkbox.css.ts","../../../src/components/checkbox/checkbox.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const checkboxStyles = css`\n :host {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n cursor: pointer;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n user-select: none;\n gap: 8px;\n font-family: var(--md-sys-typescale-font-family, inherit);\n font-size: var(--md-sys-typescale-body-large-size, 16px);\n color: var(--md-sys-color-on-surface, #1D1B20);\n }\n\n :host([disabled]) {\n cursor: not-allowed;\n color: rgba(29, 27, 32, 0.38);\n pointer-events: none;\n }\n\n .container {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n }\n\n .box {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n border: 2px solid var(--md-sys-color-on-surface-variant, #49454F);\n border-radius: var(--md-sys-shape-corner-extra-small, 2px);\n background-color: transparent;\n transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),\n border-color 150ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n :host([checked]) .box,\n :host([indeterminate]) .box {\n background-color: var(--md-sys-color-primary, #6750A4);\n border-color: var(--md-sys-color-primary, #6750A4);\n }\n\n :host([error]) .box {\n border-color: var(--md-sys-color-error, #B3261E);\n }\n\n :host([error][checked]) .box,\n :host([error][indeterminate]) .box {\n background-color: var(--md-sys-color-error, #B3261E);\n border-color: var(--md-sys-color-error, #B3261E);\n }\n\n :host([disabled]) .box {\n border-color: rgba(29, 27, 32, 0.38);\n }\n\n :host([disabled][checked]) .box,\n :host([disabled][indeterminate]) .box {\n background-color: rgba(29, 27, 32, 0.38);\n border-color: transparent;\n }\n\n .mark {\n position: absolute;\n width: 14px;\n height: 14px;\n fill: none;\n stroke: var(--md-sys-color-on-primary, #FFFFFF);\n stroke-width: 2.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0;\n transition: opacity 150ms ease;\n }\n\n :host([checked]) .mark.check {\n opacity: 1;\n }\n\n :host([indeterminate]) .mark.dash {\n opacity: 1;\n }\n\n input {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n }\n`;\n\n","import { html } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { MdBaseElement } from '../../internal/base-component.js';\nimport { MdFormAssociatedElement } from '../../internal/form-associated.js';\nimport '../../internal/ripple/ripple.js';\nimport '../../internal/focus-ring/focus-ring.js';\nimport { checkboxStyles } from './checkbox.css.js';\n\n@customElement('md-checkbox')\nexport class MdCheckbox extends MdFormAssociatedElement {\n static override styles = [MdFormAssociatedElement.styles, checkboxStyles];\n\n @property({ type: Boolean, reflect: true })\n checked = false;\n\n @property({ type: Boolean, reflect: true })\n indeterminate = false;\n\n @property({ type: Boolean, reflect: true })\n error = false;\n\n @property({ type: String })\n value = 'on';\n\n @query('input')\n private inputElement?: HTMLInputElement;\n\n override connectedCallback() {\n super.connectedCallback();\n this.tabIndex = this.disabled ? -1 : 0;\n this.addEventListener('click', this.handleClick);\n this.addEventListener('keydown', this.handleKeyDown);\n this.updateFormValue();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.handleClick);\n this.removeEventListener('keydown', this.handleKeyDown);\n }\n\n override updated(changedProperties: Map<string, unknown>) {\n super.updated(changedProperties);\n if (changedProperties.has('checked') || changedProperties.has('indeterminate') || changedProperties.has('value')) {\n this.updateFormValue();\n }\n }\n\n override formResetCallback() {\n this.checked = false;\n this.indeterminate = false;\n this.updateFormValue();\n }\n\n private updateFormValue() {\n this.setFormValue(this.checked ? this.value : null);\n if (this.required && !this.checked) {\n this.setValidity({ valueMissing: true }, 'Please check this box if you want to proceed');\n } else {\n this.setValidity({});\n }\n }\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled) return;\n event.preventDefault();\n this.toggle();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (this.disabled) return;\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault();\n this.toggle();\n }\n };\n\n private toggle() {\n if (this.indeterminate) {\n this.indeterminate = false;\n this.checked = true;\n } else {\n this.checked = !this.checked;\n }\n this.updateFormValue();\n this.emitEvent('change', { checked: this.checked, indeterminate: this.indeterminate });\n this.emitEvent('input', { checked: this.checked, indeterminate: this.indeterminate });\n }\n\n override render() {\n return html`\n <div class=\"container\">\n <md-ripple ?disabled=${this.disabled} unbounded></md-ripple>\n <md-focus-ring></md-focus-ring>\n <div class=\"box\">\n <!-- Checkmark SVG -->\n <svg class=\"mark check\" viewBox=\"0 0 18 18\">\n <polyline points=\"3.5,9.5 7,13 14.5,5.5\"></polyline>\n </svg>\n <!-- Indeterminate Dash SVG -->\n <svg class=\"mark dash\" viewBox=\"0 0 18 18\">\n <line x1=\"3.5\" y1=\"9\" x2=\"14.5\" y2=\"9\"></line>\n </svg>\n </div>\n <input\n type=\"checkbox\"\n .checked=${this.checked}\n .indeterminate=${this.indeterminate}\n ?disabled=${this.disabled}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n />\n </div>\n <slot></slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-checkbox': MdCheckbox;\n }\n}\n"],"names":["checkboxStyles","css","MdCheckbox","MdFormAssociatedElement","event","changedProperties","html","__decorateClass","property","query","customElement"],"mappings":";;;;;AAEO,MAAMA,IAAiBC;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;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,EAgBH,WAAA,gBAAA,CAAA;AAhBGA,IAANK,EAAA;AAAA,EADNG,EAAc,aAAa;AAAA,GACfR,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.css.d.ts","sourceRoot":"","sources":["../../../src/components/chip/chip.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBA2EtB,CAAC;AAEF,eAAO,MAAM,aAAa,yBAOzB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MdBaseElement } from '../../internal/base-component.js';
|
|
2
|
+
export type ChipVariant = 'assist' | 'filter' | 'input' | 'suggestion';
|
|
3
|
+
export declare class MdChip extends MdBaseElement {
|
|
4
|
+
static styles: import('lit').CSSResultGroup[];
|
|
5
|
+
variant: ChipVariant;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
removable: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
private handleClick;
|
|
14
|
+
private handleRemove;
|
|
15
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
export declare class MdChipSet extends MdBaseElement {
|
|
18
|
+
static styles: import('lit').CSSResultGroup[];
|
|
19
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
'md-chip': MdChip;
|
|
24
|
+
'md-chip-set': MdChipSet;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip/chip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,iBAAiB,CAAC;AAGzB,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAEvE,qBACa,MAAO,SAAQ,aAAa;IACvC,OAAgB,MAAM,iCAAsC;IAG5D,OAAO,EAAE,WAAW,CAAY;IAGhC,KAAK,SAAM;IAGX,IAAI,SAAM;IAGV,QAAQ,UAAS;IAGjB,SAAS,UAAS;IAGlB,QAAQ,UAAS;IAER,iBAAiB;IAKjB,oBAAoB;IAK7B,OAAO,CAAC,WAAW,CAOjB;IAEF,OAAO,CAAC,YAAY,CAGlB;IAEO,MAAM;CAiChB;AAED,qBACa,SAAU,SAAQ,aAAa;IAC1C,OAAgB,MAAM,iCAAyC;IAEtD,MAAM;CAGhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,SAAS,CAAC;KAC1B;CACF"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { css as b, nothing as m, html as i } from "lit";
|
|
2
|
+
import { property as o, customElement as v } from "lit/decorators.js";
|
|
3
|
+
import { M as a } from "../../chunks/base-component-DQTjlEVL.js";
|
|
4
|
+
import "../../internal/ripple/ripple.js";
|
|
5
|
+
import "../../chunks/focus-ring-Dl-XoEKK.js";
|
|
6
|
+
import "../icon/icon.js";
|
|
7
|
+
const y = b`
|
|
8
|
+
:host {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
outline: none;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
-webkit-tap-highlight-color: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([disabled]) {
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
opacity: 0.38;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.chip {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
height: 32px;
|
|
26
|
+
padding: 0 12px;
|
|
27
|
+
border-radius: var(--md-sys-shape-corner-small, 8px);
|
|
28
|
+
border: 1px solid var(--md-sys-color-outline, #79747E);
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
31
|
+
font-family: var(--md-sys-typescale-font-family, inherit);
|
|
32
|
+
font-size: var(--md-sys-typescale-label-large-size, 14px);
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
line-height: 20px;
|
|
35
|
+
letter-spacing: 0.1px;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
user-select: none;
|
|
38
|
+
outline: none;
|
|
39
|
+
gap: 8px;
|
|
40
|
+
transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),
|
|
41
|
+
border-color 150ms cubic-bezier(0.2, 0, 0, 1),
|
|
42
|
+
box-shadow 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([selected]) .chip {
|
|
47
|
+
background-color: var(--md-sys-color-secondary-container, #E8DEF8);
|
|
48
|
+
color: var(--md-sys-color-on-secondary-container, #1D192B);
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([variant="elevated"]) .chip {
|
|
53
|
+
background-color: var(--md-sys-color-surface-container-low, #F7F2FA);
|
|
54
|
+
border: none;
|
|
55
|
+
box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.icon {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
color: var(--md-sys-color-primary, #6750A4);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.remove-btn {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
width: 18px;
|
|
69
|
+
height: 18px;
|
|
70
|
+
padding: 0;
|
|
71
|
+
border: none;
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
background: transparent;
|
|
74
|
+
color: var(--md-sys-color-on-surface-variant, #49454F);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
margin-left: 2px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.remove-btn:hover {
|
|
80
|
+
background-color: rgba(29, 27, 32, 0.12);
|
|
81
|
+
}
|
|
82
|
+
`, u = b`
|
|
83
|
+
:host {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: 8px;
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, t = (s, n, c, l) => {
|
|
91
|
+
for (var r = l > 1 ? void 0 : l ? g(n, c) : n, d = s.length - 1, p; d >= 0; d--)
|
|
92
|
+
(p = s[d]) && (r = (l ? p(n, c, r) : p(r)) || r);
|
|
93
|
+
return l && r && f(n, c, r), r;
|
|
94
|
+
};
|
|
95
|
+
let e = class extends a {
|
|
96
|
+
constructor() {
|
|
97
|
+
super(...arguments), this.variant = "assist", this.label = "", this.icon = "", this.selected = !1, this.removable = !1, this.disabled = !1, this.handleClick = (s) => {
|
|
98
|
+
this.disabled || this.variant === "filter" && (this.selected = !this.selected, this.emitEvent("change", { selected: this.selected }));
|
|
99
|
+
}, this.handleRemove = (s) => {
|
|
100
|
+
s.stopPropagation(), this.emitEvent("remove");
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
connectedCallback() {
|
|
104
|
+
super.connectedCallback(), this.addEventListener("click", this.handleClick);
|
|
105
|
+
}
|
|
106
|
+
disconnectedCallback() {
|
|
107
|
+
super.disconnectedCallback(), this.removeEventListener("click", this.handleClick);
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
return i`
|
|
111
|
+
<div class="chip" tabindex=${this.disabled ? "-1" : "0"}>
|
|
112
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
113
|
+
<md-focus-ring></md-focus-ring>
|
|
114
|
+
|
|
115
|
+
<span class="icon">
|
|
116
|
+
${this.variant === "filter" && this.selected ? i`<md-icon name="check" size="18"></md-icon>` : i`
|
|
117
|
+
<slot name="icon">
|
|
118
|
+
${this.icon ? i`<md-icon name=${this.icon} size="18"></md-icon>` : m}
|
|
119
|
+
</slot>
|
|
120
|
+
`}
|
|
121
|
+
</span>
|
|
122
|
+
|
|
123
|
+
<slot>${this.label}</slot>
|
|
124
|
+
|
|
125
|
+
${this.removable || this.variant === "input" ? i`
|
|
126
|
+
<button
|
|
127
|
+
class="remove-btn"
|
|
128
|
+
aria-label="Remove"
|
|
129
|
+
@click=${this.handleRemove}
|
|
130
|
+
tabindex="-1"
|
|
131
|
+
>
|
|
132
|
+
<md-icon name="close" size="16"></md-icon>
|
|
133
|
+
</button>
|
|
134
|
+
` : m}
|
|
135
|
+
</div>
|
|
136
|
+
`;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
e.styles = [a.styles, y];
|
|
140
|
+
t([
|
|
141
|
+
o({ type: String, reflect: !0 })
|
|
142
|
+
], e.prototype, "variant", 2);
|
|
143
|
+
t([
|
|
144
|
+
o({ type: String })
|
|
145
|
+
], e.prototype, "label", 2);
|
|
146
|
+
t([
|
|
147
|
+
o({ type: String })
|
|
148
|
+
], e.prototype, "icon", 2);
|
|
149
|
+
t([
|
|
150
|
+
o({ type: Boolean, reflect: !0 })
|
|
151
|
+
], e.prototype, "selected", 2);
|
|
152
|
+
t([
|
|
153
|
+
o({ type: Boolean, reflect: !0 })
|
|
154
|
+
], e.prototype, "removable", 2);
|
|
155
|
+
t([
|
|
156
|
+
o({ type: Boolean, reflect: !0 })
|
|
157
|
+
], e.prototype, "disabled", 2);
|
|
158
|
+
e = t([
|
|
159
|
+
v("md-chip")
|
|
160
|
+
], e);
|
|
161
|
+
let h = class extends a {
|
|
162
|
+
render() {
|
|
163
|
+
return i`<slot></slot>`;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
h.styles = [a.styles, u];
|
|
167
|
+
h = t([
|
|
168
|
+
v("md-chip-set")
|
|
169
|
+
], h);
|
|
170
|
+
export {
|
|
171
|
+
e as MdChip,
|
|
172
|
+
h as MdChipSet
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.js","sources":["../../../src/components/chip/chip.css.ts","../../../src/components/chip/chip.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const chipStyles = css`\n :host {\n display: inline-flex;\n outline: none;\n vertical-align: middle;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.38;\n }\n\n .chip {\n position: relative;\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n height: 32px;\n padding: 0 12px;\n border-radius: var(--md-sys-shape-corner-small, 8px);\n border: 1px solid var(--md-sys-color-outline, #79747E);\n background-color: transparent;\n color: var(--md-sys-color-on-surface, #1D1B20);\n font-family: var(--md-sys-typescale-font-family, inherit);\n font-size: var(--md-sys-typescale-label-large-size, 14px);\n font-weight: 500;\n line-height: 20px;\n letter-spacing: 0.1px;\n cursor: pointer;\n user-select: none;\n outline: none;\n gap: 8px;\n transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),\n border-color 150ms cubic-bezier(0.2, 0, 0, 1),\n box-shadow 150ms cubic-bezier(0.2, 0, 0, 1);\n overflow: hidden;\n }\n\n :host([selected]) .chip {\n background-color: var(--md-sys-color-secondary-container, #E8DEF8);\n color: var(--md-sys-color-on-secondary-container, #1D192B);\n border-color: transparent;\n }\n\n :host([variant=\"elevated\"]) .chip {\n background-color: var(--md-sys-color-surface-container-low, #F7F2FA);\n border: none;\n box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));\n }\n\n .icon {\n display: inline-flex;\n align-items: center;\n color: var(--md-sys-color-primary, #6750A4);\n }\n\n .remove-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n margin-left: 2px;\n }\n\n .remove-btn:hover {\n background-color: rgba(29, 27, 32, 0.12);\n }\n`;\n\nexport const chipSetStyles = css`\n :host {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MdBaseElement } from '../../internal/base-component.js';\nimport '../../internal/ripple/ripple.js';\nimport '../../internal/focus-ring/focus-ring.js';\nimport '../icon/icon.js';\nimport { chipStyles, chipSetStyles } from './chip.css.js';\n\nexport type ChipVariant = 'assist' | 'filter' | 'input' | 'suggestion';\n\n@customElement('md-chip')\nexport class MdChip extends MdBaseElement {\n static override styles = [MdBaseElement.styles, chipStyles];\n\n @property({ type: String, reflect: true })\n variant: ChipVariant = 'assist';\n\n @property({ type: String })\n label = '';\n\n @property({ type: String })\n icon = '';\n\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n @property({ type: Boolean, reflect: true })\n removable = false;\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n override connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.handleClick);\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.handleClick);\n }\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled) return;\n\n if (this.variant === 'filter') {\n this.selected = !this.selected;\n this.emitEvent('change', { selected: this.selected });\n }\n };\n\n private handleRemove = (event: MouseEvent) => {\n event.stopPropagation();\n this.emitEvent('remove');\n };\n\n override render() {\n return html`\n <div class=\"chip\" tabindex=${this.disabled ? '-1' : '0'}>\n <md-ripple ?disabled=${this.disabled}></md-ripple>\n <md-focus-ring></md-focus-ring>\n\n <span class=\"icon\">\n ${this.variant === 'filter' && this.selected\n ? html`<md-icon name=\"check\" size=\"18\"></md-icon>`\n : html`\n <slot name=\"icon\">\n ${this.icon ? html`<md-icon name=${this.icon} size=\"18\"></md-icon>` : nothing}\n </slot>\n `}\n </span>\n\n <slot>${this.label}</slot>\n\n ${this.removable || this.variant === 'input'\n ? html`\n <button\n class=\"remove-btn\"\n aria-label=\"Remove\"\n @click=${this.handleRemove}\n tabindex=\"-1\"\n >\n <md-icon name=\"close\" size=\"16\"></md-icon>\n </button>\n `\n : nothing}\n </div>\n `;\n }\n}\n\n@customElement('md-chip-set')\nexport class MdChipSet extends MdBaseElement {\n static override styles = [MdBaseElement.styles, chipSetStyles];\n\n override render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-chip': MdChip;\n 'md-chip-set': MdChipSet;\n }\n}\n\n"],"names":["chipStyles","css","chipSetStyles","MdChip","MdBaseElement","event","html","nothing","__decorateClass","property","customElement","MdChipSet"],"mappings":";;;;;;AAEO,MAAMA,IAAaC;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,GA6EbC,IAAgBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;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AIX,WAAA,WAAA,CAAA;AAGAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GANfN,EAOX,WAAA,SAAA,CAAA;AAGAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GATfN,EAUX,WAAA,QAAA,CAAA;AAGAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAZ/BN,EAaX,WAAA,YAAA,CAAA;AAGAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAf/BN,EAgBX,WAAA,aAAA,CAAA;AAGAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAlB/BN,EAmBX,WAAA,YAAA,CAAA;AAnBWA,IAANK,EAAA;AAAA,EADNE,EAAc,SAAS;AAAA,GACXP,CAAA;AAiFN,IAAMQ,IAAN,cAAwBP,EAAc;AAAA,EAGlC,SAAS;AAChB,WAAOE;AAAA,EACT;AACF;AANaK,EACK,SAAS,CAACP,EAAc,QAAQF,CAAa;AADlDS,IAANH,EAAA;AAAA,EADNE,EAAc,aAAa;AAAA,GACfC,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.css.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAkFxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MdBaseElement } from '../../internal/base-component.js';
|
|
2
|
+
export declare class MdDialog extends MdBaseElement {
|
|
3
|
+
static styles: import('lit').CSSResultGroup[];
|
|
4
|
+
open: boolean;
|
|
5
|
+
headline: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
returnValue: string;
|
|
8
|
+
private dialogElement?;
|
|
9
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
10
|
+
showModal(): void;
|
|
11
|
+
show(): void;
|
|
12
|
+
close(returnValue?: string): void;
|
|
13
|
+
private handleCancel;
|
|
14
|
+
private handleBackdropClick;
|
|
15
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'md-dialog': MdDialog;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,iBAAiB,CAAC;AAGzB,qBACa,QAAS,SAAQ,aAAa;IACzC,OAAgB,MAAM,iCAAwC;IAG9D,IAAI,UAAS;IAGb,QAAQ,SAAM;IAGd,IAAI,SAAM;IAGV,WAAW,SAAM;IAGjB,OAAO,CAAC,aAAa,CAAC,CAAoB;IAEjC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAexD,SAAS;IAIT,IAAI;IAIJ,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM;IAQ1B,OAAO,CAAC,YAAY,CAGlB;IAEF,OAAO,CAAC,mBAAmB,CAazB;IAEO,MAAM;CA4BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { css as m, nothing as p, html as c } from "lit";
|
|
2
|
+
import { property as n, query as f, customElement as g } from "lit/decorators.js";
|
|
3
|
+
import { M as h } from "../../chunks/base-component-DQTjlEVL.js";
|
|
4
|
+
import "../icon/icon.js";
|
|
5
|
+
const u = m`
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
dialog {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
min-width: 280px;
|
|
13
|
+
max-width: 560px;
|
|
14
|
+
padding: 24px;
|
|
15
|
+
border: none;
|
|
16
|
+
border-radius: var(--md-sys-shape-corner-extra-large, 28px);
|
|
17
|
+
background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
|
|
18
|
+
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
19
|
+
box-shadow: var(--md-sys-elevation-level3, 0px 1px 3px 0px rgba(0,0,0,0.30));
|
|
20
|
+
font-family: var(--md-sys-typescale-font-family, inherit);
|
|
21
|
+
position: fixed;
|
|
22
|
+
inset: 0;
|
|
23
|
+
margin: auto;
|
|
24
|
+
overflow: auto;
|
|
25
|
+
z-index: 1000;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
dialog::backdrop {
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.32);
|
|
30
|
+
backdrop-filter: blur(2px);
|
|
31
|
+
animation: md-fade-in 150ms ease-out forwards;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
dialog[open] {
|
|
35
|
+
animation: md-dialog-in 150ms cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes md-fade-in {
|
|
39
|
+
from { opacity: 0; }
|
|
40
|
+
to { opacity: 1; }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes md-dialog-in {
|
|
44
|
+
from {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: scale(0.92);
|
|
47
|
+
}
|
|
48
|
+
to {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
transform: scale(1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dialog-container {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 16px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon {
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
color: var(--md-sys-color-secondary, #625B71);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.headline {
|
|
67
|
+
font-size: var(--md-sys-typescale-headline-small-size, 24px);
|
|
68
|
+
line-height: 32px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.content {
|
|
75
|
+
font-size: var(--md-sys-typescale-body-medium-size, 14px);
|
|
76
|
+
line-height: 20px;
|
|
77
|
+
color: var(--md-sys-color-on-surface-variant, #49454F);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.actions {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: flex-end;
|
|
84
|
+
gap: 8px;
|
|
85
|
+
padding-top: 8px;
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, s = (e, o, a, l) => {
|
|
89
|
+
for (var i = l > 1 ? void 0 : l ? x(o, a) : o, r = e.length - 1, d; r >= 0; r--)
|
|
90
|
+
(d = e[r]) && (i = (l ? d(o, a, i) : d(i)) || i);
|
|
91
|
+
return l && i && y(o, a, i), i;
|
|
92
|
+
};
|
|
93
|
+
let t = class extends h {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(...arguments), this.open = !1, this.headline = "", this.icon = "", this.returnValue = "", this.handleCancel = (e) => {
|
|
96
|
+
e.preventDefault(), this.close("cancel");
|
|
97
|
+
}, this.handleBackdropClick = (e) => {
|
|
98
|
+
if (e.target === this.dialogElement) {
|
|
99
|
+
const o = this.dialogElement.getBoundingClientRect();
|
|
100
|
+
o.top <= e.clientY && e.clientY <= o.top + o.height && o.left <= e.clientX && e.clientX <= o.left + o.width || this.close("backdrop");
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
updated(e) {
|
|
105
|
+
super.updated(e), e.has("open") && (this.open ? this.dialogElement && !this.dialogElement.open && this.dialogElement.showModal() : this.dialogElement && this.dialogElement.open && this.dialogElement.close());
|
|
106
|
+
}
|
|
107
|
+
showModal() {
|
|
108
|
+
this.open = !0;
|
|
109
|
+
}
|
|
110
|
+
show() {
|
|
111
|
+
this.open = !0;
|
|
112
|
+
}
|
|
113
|
+
close(e) {
|
|
114
|
+
e !== void 0 && (this.returnValue = e), this.open = !1, this.emitEvent("close", { returnValue: this.returnValue });
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
return c`
|
|
118
|
+
<dialog
|
|
119
|
+
@cancel=${this.handleCancel}
|
|
120
|
+
@click=${this.handleBackdropClick}
|
|
121
|
+
>
|
|
122
|
+
<div class="dialog-container">
|
|
123
|
+
<div class="icon">
|
|
124
|
+
<slot name="icon">
|
|
125
|
+
${this.icon ? c`<md-icon name=${this.icon} size="32"></md-icon>` : p}
|
|
126
|
+
</slot>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<slot name="headline">
|
|
130
|
+
${this.headline ? c`<h2 class="headline">${this.headline}</h2>` : p}
|
|
131
|
+
</slot>
|
|
132
|
+
|
|
133
|
+
<div class="content">
|
|
134
|
+
<slot></slot>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div class="actions">
|
|
138
|
+
<slot name="actions"></slot>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</dialog>
|
|
142
|
+
`;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
t.styles = [h.styles, u];
|
|
146
|
+
s([
|
|
147
|
+
n({ type: Boolean, reflect: !0 })
|
|
148
|
+
], t.prototype, "open", 2);
|
|
149
|
+
s([
|
|
150
|
+
n({ type: String })
|
|
151
|
+
], t.prototype, "headline", 2);
|
|
152
|
+
s([
|
|
153
|
+
n({ type: String })
|
|
154
|
+
], t.prototype, "icon", 2);
|
|
155
|
+
s([
|
|
156
|
+
n({ type: String, attribute: "return-value" })
|
|
157
|
+
], t.prototype, "returnValue", 2);
|
|
158
|
+
s([
|
|
159
|
+
f("dialog")
|
|
160
|
+
], t.prototype, "dialogElement", 2);
|
|
161
|
+
t = s([
|
|
162
|
+
g("md-dialog")
|
|
163
|
+
], t);
|
|
164
|
+
export {
|
|
165
|
+
t as MdDialog
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../../src/components/dialog/dialog.css.ts","../../../src/components/dialog/dialog.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const dialogStyles = css`\n :host {\n display: contents;\n }\n\n dialog {\n box-sizing: border-box;\n min-width: 280px;\n max-width: 560px;\n padding: 24px;\n border: none;\n border-radius: var(--md-sys-shape-corner-extra-large, 28px);\n background-color: var(--md-sys-color-surface-container-high, #ECE6F0);\n color: var(--md-sys-color-on-surface, #1D1B20);\n box-shadow: var(--md-sys-elevation-level3, 0px 1px 3px 0px rgba(0,0,0,0.30));\n font-family: var(--md-sys-typescale-font-family, inherit);\n position: fixed;\n inset: 0;\n margin: auto;\n overflow: auto;\n z-index: 1000;\n }\n\n dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.32);\n backdrop-filter: blur(2px);\n animation: md-fade-in 150ms ease-out forwards;\n }\n\n dialog[open] {\n animation: md-dialog-in 150ms cubic-bezier(0.2, 0, 0, 1) forwards;\n }\n\n @keyframes md-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes md-dialog-in {\n from {\n opacity: 0;\n transform: scale(0.92);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n .dialog-container {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .icon {\n display: flex;\n justify-content: center;\n color: var(--md-sys-color-secondary, #625B71);\n }\n\n .headline {\n font-size: var(--md-sys-typescale-headline-small-size, 24px);\n line-height: 32px;\n font-weight: 400;\n color: var(--md-sys-color-on-surface, #1D1B20);\n margin: 0;\n }\n\n .content {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n line-height: 20px;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n }\n\n .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n padding-top: 8px;\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { MdBaseElement } from '../../internal/base-component.js';\nimport '../icon/icon.js';\nimport { dialogStyles } from './dialog.css.js';\n\n@customElement('md-dialog')\nexport class MdDialog extends MdBaseElement {\n static override styles = [MdBaseElement.styles, dialogStyles];\n\n @property({ type: Boolean, reflect: true })\n open = false;\n\n @property({ type: String })\n headline = '';\n\n @property({ type: String })\n icon = '';\n\n @property({ type: String, attribute: 'return-value' })\n returnValue = '';\n\n @query('dialog')\n private dialogElement?: HTMLDialogElement;\n\n override updated(changedProperties: Map<string, unknown>) {\n super.updated(changedProperties);\n if (changedProperties.has('open')) {\n if (this.open) {\n if (this.dialogElement && !this.dialogElement.open) {\n this.dialogElement.showModal();\n }\n } else {\n if (this.dialogElement && this.dialogElement.open) {\n this.dialogElement.close();\n }\n }\n }\n }\n\n showModal() {\n this.open = true;\n }\n\n show() {\n this.open = true;\n }\n\n close(returnValue?: string) {\n if (returnValue !== undefined) {\n this.returnValue = returnValue;\n }\n this.open = false;\n this.emitEvent('close', { returnValue: this.returnValue });\n }\n\n private handleCancel = (event: Event) => {\n event.preventDefault();\n this.close('cancel');\n };\n\n private handleBackdropClick = (event: MouseEvent) => {\n if (event.target === this.dialogElement) {\n const rect = this.dialogElement.getBoundingClientRect();\n const isInDialog = (\n rect.top <= event.clientY &&\n event.clientY <= rect.top + rect.height &&\n rect.left <= event.clientX &&\n event.clientX <= rect.left + rect.width\n );\n if (!isInDialog) {\n this.close('backdrop');\n }\n }\n };\n\n override render() {\n return html`\n <dialog\n @cancel=${this.handleCancel}\n @click=${this.handleBackdropClick}\n >\n <div class=\"dialog-container\">\n <div class=\"icon\">\n <slot name=\"icon\">\n ${this.icon ? html`<md-icon name=${this.icon} size=\"32\"></md-icon>` : nothing}\n </slot>\n </div>\n\n <slot name=\"headline\">\n ${this.headline ? html`<h2 class=\"headline\">${this.headline}</h2>` : nothing}\n </slot>\n\n <div class=\"content\">\n <slot></slot>\n </div>\n\n <div class=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n </div>\n </dialog>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-dialog': MdDialog;\n }\n}\n\n"],"names":["dialogStyles","css","MdDialog","MdBaseElement","event","rect","changedProperties","returnValue","html","nothing","__decorateClass","property","query","customElement"],"mappings":";;;;AAEO,MAAMA,IAAeC;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;ACKrB,IAAMC,IAAN,cAAuBC,EAAc;AAAA,EAArC,cAAA;AAAA,UAAA,GAAA,SAAA,GAIL,KAAA,OAAO,IAGP,KAAA,WAAW,IAGX,KAAA,OAAO,IAGP,KAAA,cAAc,IAoCd,KAAQ,eAAe,CAACC,MAAiB;AACvC,MAAAA,EAAM,eAAA,GACN,KAAK,MAAM,QAAQ;AAAA,IACrB,GAEA,KAAQ,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