tinkiet 0.9.12 → 0.10.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/accordion/accordion.d.ts +3 -4
- package/accordion/index.d.ts +1 -1
- package/accordion/index.js +491 -1
- package/badge/badge.d.ts +2 -3
- package/badge/index.d.ts +1 -1
- package/badge/index.js +134 -1
- package/box/box.d.ts +3 -3
- package/box/focusable-box.d.ts +2 -3
- package/box/index.d.ts +1 -1
- package/box/index.js +289 -1
- package/button/button.d.ts +3 -4
- package/button/index.d.ts +1 -1
- package/button/index.js +502 -1
- package/checkbox/checkbox.d.ts +3 -3
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +450 -1
- package/chip/chip.d.ts +2 -3
- package/chip/index.d.ts +1 -1
- package/chip/index.js +123 -1
- package/dialog/dialog.d.ts +2 -3
- package/dialog/index.d.ts +1 -1
- package/dialog/index.js +162 -1
- package/drawer/drawer.d.ts +2 -3
- package/drawer/index.d.ts +1 -1
- package/drawer/index.js +272 -1
- package/form/form.d.ts +1 -2
- package/form/index.d.ts +1 -1
- package/form/index.js +149 -1
- package/icon/icon.d.ts +3 -4
- package/icon/icons.d.ts +1 -2
- package/icon/index.d.ts +2 -2
- package/icon/index.js +457 -2
- package/index.d.ts +52 -26
- package/index.js +3682 -52
- package/list-item/index.d.ts +1 -1
- package/list-item/index.js +414 -1
- package/list-item/list-item.d.ts +3 -4
- package/loading/index.d.ts +1 -1
- package/loading/index.js +389 -1
- package/loading/loading.d.ts +3 -4
- package/navigation/index.d.ts +2 -2
- package/navigation/index.js +201 -2
- package/navigation/navigation-bar.d.ts +2 -3
- package/navigation/navigation-item.d.ts +2 -3
- package/notie/index.d.ts +1 -1
- package/notie/index.js +744 -1
- package/notie/notie.d.ts +12 -11
- package/package.json +8 -5
- package/pages/index.d.ts +1 -1
- package/pages/index.js +178 -1
- package/pages/pages.d.ts +2 -3
- package/radio/index.d.ts +1 -1
- package/radio/index.js +466 -1
- package/radio/radio.d.ts +3 -3
- package/select/index.d.ts +1 -1
- package/select/index.js +493 -1
- package/select/select.d.ts +3 -3
- package/slider/index.d.ts +1 -1
- package/slider/index.js +274 -1
- package/slider/slider.d.ts +2 -3
- package/snackbar/index.d.ts +1 -0
- package/snackbar/snackbar.d.ts +34 -0
- package/switch/index.d.ts +1 -1
- package/switch/index.js +462 -1
- package/switch/switch.d.ts +3 -3
- package/tab-group/index.d.ts +1 -1
- package/tab-group/index.js +182 -1
- package/tab-group/tab-group.d.ts +2 -3
- package/tab-group/tab-item.d.ts +7 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +272 -1
- package/textarea/textarea.d.ts +2 -3
- package/textfield/index.d.ts +1 -1
- package/textfield/index.js +278 -1
- package/textfield/textfield.d.ts +2 -3
- package/theme/index.d.ts +1 -1
- package/theme/index.js +240 -1
- package/theme/theme.d.ts +2 -3
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +136 -1
- package/tooltip/tooltip.d.ts +2 -3
- package/topbar/index.d.ts +1 -1
- package/topbar/index.js +358 -1
- package/topbar/topbar.d.ts +3 -4
- package/umd/tinkiet.min.js +420 -1
- package/utils/aria.d.ts +11 -0
- package/utils/unique.d.ts +1 -2
- package/accordion/accordion.js +0 -94
- package/accordion/accordion.scss.js +0 -4
- package/badge/badge.js +0 -31
- package/badge/badge.scss.js +0 -4
- package/box/box.js +0 -186
- package/box/box.scss.js +0 -4
- package/box/focusable-box.js +0 -30
- package/button/button.js +0 -141
- package/button/button.scss.js +0 -4
- package/checkbox/checkbox.js +0 -89
- package/checkbox/checkbox.scss.js +0 -4
- package/chip/chip.js +0 -20
- package/chip/chip.scss.js +0 -4
- package/dialog/dialog.js +0 -59
- package/dialog/dialog.scss.js +0 -4
- package/drawer/drawer.js +0 -168
- package/drawer/drawer.scss.js +0 -4
- package/form/form.js +0 -54
- package/icon/icon.js +0 -77
- package/icon/icon.scss.js +0 -4
- package/icon/icons.js +0 -24
- package/index.d.ts.map +0 -1
- package/list-item/list-item.js +0 -86
- package/list-item/list-item.scss.js +0 -4
- package/loading/loading.js +0 -61
- package/loading/loading.scss.js +0 -4
- package/navigation/navigation-bar.js +0 -20
- package/navigation/navigation-bar.scss.js +0 -4
- package/navigation/navigation-item.js +0 -51
- package/navigation/navigation-item.scss.js +0 -4
- package/notie/notie.js +0 -201
- package/notie/notie.scss.js +0 -4
- package/pages/pages.js +0 -75
- package/pages/pages.scss.js +0 -4
- package/radio/radio.js +0 -105
- package/radio/radio.scss.js +0 -4
- package/select/select.js +0 -132
- package/select/select.scss.js +0 -4
- package/slider/slider.js +0 -135
- package/slider/slider.scss.js +0 -4
- package/switch/switch.js +0 -101
- package/switch/switch.scss.js +0 -4
- package/tab-group/tab-group.js +0 -79
- package/tab-group/tab-group.scss.js +0 -4
- package/textarea/textarea.js +0 -133
- package/textarea/textarea.scss.js +0 -4
- package/textfield/textfield.js +0 -138
- package/textfield/textfield.scss.js +0 -4
- package/theme/theme.js +0 -137
- package/theme/theme.scss.js +0 -4
- package/tooltip/tooltip.js +0 -33
- package/tooltip/tooltip.scss.js +0 -4
- package/topbar/topbar.js +0 -33
- package/topbar/topbar.scss.js +0 -4
- package/umd/tinkiet.min.d.ts +0 -660
- package/umd/tinkiet.min.d.ts.map +0 -1
- package/utils/unique.js +0 -12
package/notie/index.js
CHANGED
|
@@ -1 +1,744 @@
|
|
|
1
|
-
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lit__ from "lit";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lit_directives_if_defined_js_76c6050d__ from "lit/directives/if-defined.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__ from "lit/decorators.js";
|
|
4
|
+
/******/ var __webpack_modules__ = ({
|
|
5
|
+
|
|
6
|
+
/***/ 1481:
|
|
7
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
v: () => (/* binding */ TkTextfield)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// UNUSED EXPORTS: TkTextfield
|
|
16
|
+
|
|
17
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
18
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
19
|
+
// EXTERNAL MODULE: external "lit"
|
|
20
|
+
var external_lit_ = __webpack_require__(2927);
|
|
21
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
22
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
23
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
24
|
+
var unique = __webpack_require__(3770);
|
|
25
|
+
;// ./tinkiet/textfield/textfield.scss
|
|
26
|
+
/* harmony default export */ const textfield = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}");
|
|
27
|
+
;// ./tinkiet/textfield/textfield.ts
|
|
28
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
29
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
30
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
32
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
let TkTextfield = class TkTextfield extends external_lit_.LitElement {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
44
|
+
this.type = "text";
|
|
45
|
+
this.required = false;
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
this.readonly = false;
|
|
48
|
+
}
|
|
49
|
+
set value(value) {
|
|
50
|
+
if (!this.$input) {
|
|
51
|
+
this.initialValue = value;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.$input.value = value;
|
|
55
|
+
this.refreshAttributes();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
get value() {
|
|
59
|
+
return this.$input != null ? this.$input.value : this.initialValue || "";
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (0,external_lit_.html) `
|
|
63
|
+
<div id="container">
|
|
64
|
+
<slot id="before" name="before"></slot>
|
|
65
|
+
<div id="wrapper">
|
|
66
|
+
<div id="label">${this.label}</div>
|
|
67
|
+
<slot id="slot"></slot>
|
|
68
|
+
<input
|
|
69
|
+
id=${this._id}
|
|
70
|
+
@keydown=${this.handleChange.bind(this)}
|
|
71
|
+
@input=${this.handleChange.bind(this)}
|
|
72
|
+
@focusout=${this.handleChange.bind(this)}
|
|
73
|
+
?required="${this.required}"
|
|
74
|
+
?disabled="${this.disabled}"
|
|
75
|
+
?readonly="${this.readonly}"
|
|
76
|
+
autocomplete="${(0,if_defined_js_.ifDefined)(this.autocomplete)}"
|
|
77
|
+
autocapitalize="${(0,if_defined_js_.ifDefined)(this.autocapitalize)}"
|
|
78
|
+
aria-label="${(0,if_defined_js_.ifDefined)(this.label)}"
|
|
79
|
+
type="${(0,if_defined_js_.ifDefined)(this.type)}"
|
|
80
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
81
|
+
list="${(0,if_defined_js_.ifDefined)(this.list)}"
|
|
82
|
+
pattern="${(0,if_defined_js_.ifDefined)(this.pattern)}"
|
|
83
|
+
minlength="${(0,if_defined_js_.ifDefined)(this.minLength)}"
|
|
84
|
+
maxlength="${(0,if_defined_js_.ifDefined)(this.maxLength)}"
|
|
85
|
+
min="${(0,if_defined_js_.ifDefined)(this.min)}"
|
|
86
|
+
max="${(0,if_defined_js_.ifDefined)(this.max)}"
|
|
87
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<slot id="after" name="after"></slot>
|
|
91
|
+
</div>
|
|
92
|
+
`;
|
|
93
|
+
}
|
|
94
|
+
handleChange() {
|
|
95
|
+
this.refreshAttributes();
|
|
96
|
+
}
|
|
97
|
+
firstUpdated() {
|
|
98
|
+
var _a;
|
|
99
|
+
this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("input");
|
|
100
|
+
this.appendChild(this.$input);
|
|
101
|
+
if (this.initialValue)
|
|
102
|
+
this.value = this.initialValue;
|
|
103
|
+
}
|
|
104
|
+
refreshAttributes() {
|
|
105
|
+
this.$input.value ? this.setAttribute("dirty", "") : this.removeAttribute("dirty");
|
|
106
|
+
this.$input.checkValidity() ? this.removeAttribute("invalid") : this.setAttribute("invalid", "");
|
|
107
|
+
}
|
|
108
|
+
focus() {
|
|
109
|
+
this.$input.focus();
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
TkTextfield.styles = (0,external_lit_.css) `
|
|
113
|
+
${(0,external_lit_.unsafeCSS)(textfield)}
|
|
114
|
+
`;
|
|
115
|
+
__decorate([
|
|
116
|
+
(0,decorators_js_.property)({ type: String })
|
|
117
|
+
], TkTextfield.prototype, "value", null);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
120
|
+
], TkTextfield.prototype, "name", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0,decorators_js_.property)({ type: String })
|
|
123
|
+
], TkTextfield.prototype, "list", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0,decorators_js_.property)({ type: String })
|
|
126
|
+
], TkTextfield.prototype, "type", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
129
|
+
], TkTextfield.prototype, "required", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
132
|
+
], TkTextfield.prototype, "disabled", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
135
|
+
], TkTextfield.prototype, "readonly", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0,decorators_js_.property)({ type: String })
|
|
138
|
+
], TkTextfield.prototype, "autocomplete", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0,decorators_js_.property)({ type: String })
|
|
141
|
+
], TkTextfield.prototype, "autocapitalize", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0,decorators_js_.property)({ type: String })
|
|
144
|
+
], TkTextfield.prototype, "pattern", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0,decorators_js_.state)()
|
|
147
|
+
], TkTextfield.prototype, "initialValue", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0,decorators_js_.property)({ type: String })
|
|
150
|
+
], TkTextfield.prototype, "label", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0,decorators_js_.property)({ type: Number })
|
|
153
|
+
], TkTextfield.prototype, "min", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0,decorators_js_.property)({ type: Number })
|
|
156
|
+
], TkTextfield.prototype, "max", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0,decorators_js_.property)({ type: Number })
|
|
159
|
+
], TkTextfield.prototype, "minLength", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0,decorators_js_.property)({ type: Number })
|
|
162
|
+
], TkTextfield.prototype, "maxLength", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
165
|
+
], TkTextfield.prototype, "handleChange", null);
|
|
166
|
+
TkTextfield = __decorate([
|
|
167
|
+
(0,decorators_js_.customElement)("tk-textfield")
|
|
168
|
+
], TkTextfield);
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/***/ }),
|
|
173
|
+
|
|
174
|
+
/***/ 2788:
|
|
175
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
// EXPORTS
|
|
179
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
180
|
+
P: () => (/* binding */ TkBox)
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// EXTERNAL MODULE: external "lit"
|
|
184
|
+
var external_lit_ = __webpack_require__(2927);
|
|
185
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
186
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
187
|
+
;// ./tinkiet/box/box.scss
|
|
188
|
+
/* harmony default export */ const box = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:flex;position:relative;flex-direction:column;box-sizing:border-box}:host([hidden]){display:none}.ripple{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;pointer-events:none}.ripple span{position:absolute;border-radius:50%;background-color:hsla(var(--on-primary), 0.5)}:host([align-content=start]){align-content:flex-start}:host([align-content=end]){align-content:flex-end}:host([align-content=stretch]){align-content:stretch}:host([align-content=center]){align-content:center}:host([align-content=around]){align-content:space-around}:host([align-content=between]){align-content:space-between}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([align-items=stretch]){align-items:stretch}:host([align-items=center]){align-items:center}:host([align-items=baseline]){align-items:baseline}:host([align-self=start]){align-self:flex-start}:host([align-self=end]){align-self:flex-end}:host([align-self=stretch]){align-self:stretch}:host([align-self=center]){align-self:center}:host([background=primary]){background-color:hsl(var(--primary))}:host([color=primary]){color:hsl(var(--primary))}:host([background=on-primary]){background-color:hsl(var(--on-primary))}:host([color=on-primary]){color:hsl(var(--on-primary))}:host([background=secondary]){background-color:hsl(var(--secondary))}:host([color=secondary]){color:hsl(var(--secondary))}:host([background=on-secondary]){background-color:hsl(var(--on-secondary))}:host([color=on-secondary]){color:hsl(var(--on-secondary))}:host([background=tertiary]){background-color:hsl(var(--tertiary))}:host([color=tertiary]){color:hsl(var(--tertiary))}:host([background=on-tertiary]){background-color:hsl(var(--on-tertiary))}:host([color=on-tertiary]){color:hsl(var(--on-tertiary))}:host([background=neutral]){background-color:hsl(var(--neutral))}:host([color=neutral]){color:hsl(var(--neutral))}:host([background=on-neutral]){background-color:hsl(var(--on-neutral))}:host([color=on-neutral]){color:hsl(var(--on-neutral))}:host([background=neutral-variant]){background-color:hsl(var(--neutral-variant))}:host([color=neutral-variant]){color:hsl(var(--neutral-variant))}:host([background=on-neutral-variant]){background-color:hsl(var(--on-neutral-variant))}:host([color=on-neutral-variant]){color:hsl(var(--on-neutral-variant))}:host([background=error]){background-color:hsl(var(--error))}:host([color=error]){color:hsl(var(--error))}:host([background=on-error]){background-color:hsl(var(--on-error))}:host([color=on-error]){color:hsl(var(--on-error))}:host([background=primary-container]){background-color:hsl(var(--primary-container))}:host([color=primary-container]){color:hsl(var(--primary-container))}:host([background=on-primary-container]){background-color:hsl(var(--on-primary-container))}:host([color=on-primary-container]){color:hsl(var(--on-primary-container))}:host([background=secondary-container]){background-color:hsl(var(--secondary-container))}:host([color=secondary-container]){color:hsl(var(--secondary-container))}:host([background=on-secondary-container]){background-color:hsl(var(--on-secondary-container))}:host([color=on-secondary-container]){color:hsl(var(--on-secondary-container))}:host([background=tertiary-container]){background-color:hsl(var(--tertiary-container))}:host([color=tertiary-container]){color:hsl(var(--tertiary-container))}:host([background=on-tertiary-container]){background-color:hsl(var(--on-tertiary-container))}:host([color=on-tertiary-container]){color:hsl(var(--on-tertiary-container))}:host([background=neutral-container]){background-color:hsl(var(--neutral-container))}:host([color=neutral-container]){color:hsl(var(--neutral-container))}:host([background=on-neutral-container]){background-color:hsl(var(--on-neutral-container))}:host([color=on-neutral-container]){color:hsl(var(--on-neutral-container))}:host([background=neutral-variant-container]){background-color:hsl(var(--neutral-variant-container))}:host([color=neutral-variant-container]){color:hsl(var(--neutral-variant-container))}:host([background=on-neutral-variant-container]){background-color:hsl(var(--on-neutral-variant-container))}:host([color=on-neutral-variant-container]){color:hsl(var(--on-neutral-variant-container))}:host([background=error-container]){background-color:hsl(var(--error-container))}:host([color=error-container]){color:hsl(var(--error-container))}:host([background=on-error-container]){background-color:hsl(var(--on-error-container))}:host([color=on-error-container]){color:hsl(var(--on-error-container))}:host([background=primary-0]){background-color:hsl(var(--primary-0))}:host([color=primary-0]){color:hsl(var(--primary-0))}:host([background=surface]){background-color:hsl(var(--surface))}:host([color=surface]){color:hsl(var(--surface))}:host([background=on-surface]){background-color:hsl(var(--on-surface))}:host([color=on-surface]){color:hsl(var(--on-surface))}:host([background=surface-dim]){background-color:hsl(var(--surface-dim))}:host([color=surface-dim]){color:hsl(var(--surface-dim))}:host([background=surface-bright]){background-color:hsl(var(--surface-bright))}:host([color=surface-bright]){color:hsl(var(--surface-bright))}:host([background=surface-container-lowest]){background-color:hsl(var(--surface-container-lowest))}:host([color=surface-container-lowest]){color:hsl(var(--surface-container-lowest))}:host([background=surface-container-low]){background-color:hsl(var(--surface-container-low))}:host([color=surface-container-low]){color:hsl(var(--surface-container-low))}:host([background=surface-container]){background-color:hsl(var(--surface-container))}:host([color=surface-container]){color:hsl(var(--surface-container))}:host([background=surface-container-high]){background-color:hsl(var(--surface-container-high))}:host([color=surface-container-high]){color:hsl(var(--surface-container-high))}:host([background=surface-container-highest]){background-color:hsl(var(--surface-container-highest))}:host([color=surface-container-highest]){color:hsl(var(--surface-container-highest))}:host([background=surface-variant]){background-color:hsl(var(--surface-variant))}:host([color=surface-variant]){color:hsl(var(--surface-variant))}:host([background=on-surface-variant]){background-color:hsl(var(--on-surface-variant))}:host([color=on-surface-variant]){color:hsl(var(--on-surface-variant))}:host([background=outline]){background-color:hsl(var(--outline))}:host([color=outline]){color:hsl(var(--outline))}:host([background=outline-variant]){background-color:hsl(var(--outline-variant))}:host([color=outline-variant]){color:hsl(var(--outline-variant))}:host([background=inverse-surface]){background-color:hsl(var(--inverse-surface))}:host([color=inverse-surface]){color:hsl(var(--inverse-surface))}:host([background=inverse-on-surface]){background-color:hsl(var(--inverse-on-surface))}:host([color=inverse-on-surface]){color:hsl(var(--inverse-on-surface))}:host([background=background]){background-color:hsl(var(--background))}:host([color=background]){color:hsl(var(--background))}:host([background=on-background]){background-color:hsl(var(--on-background))}:host([color=on-background]){color:hsl(var(--on-background))}:host([background=shadow]){background-color:hsl(var(--shadow))}:host([color=shadow]){color:hsl(var(--shadow))}:host([background=primary-10]){background-color:hsl(var(--primary-10))}:host([color=primary-10]){color:hsl(var(--primary-10))}:host([background=primary-20]){background-color:hsl(var(--primary-20))}:host([color=primary-20]){color:hsl(var(--primary-20))}:host([background=primary-30]){background-color:hsl(var(--primary-30))}:host([color=primary-30]){color:hsl(var(--primary-30))}:host([background=primary-40]){background-color:hsl(var(--primary-40))}:host([color=primary-40]){color:hsl(var(--primary-40))}:host([background=primary-50]){background-color:hsl(var(--primary-50))}:host([color=primary-50]){color:hsl(var(--primary-50))}:host([background=primary-60]){background-color:hsl(var(--primary-60))}:host([color=primary-60]){color:hsl(var(--primary-60))}:host([background=primary-70]){background-color:hsl(var(--primary-70))}:host([color=primary-70]){color:hsl(var(--primary-70))}:host([background=primary-80]){background-color:hsl(var(--primary-80))}:host([color=primary-80]){color:hsl(var(--primary-80))}:host([background=primary-90]){background-color:hsl(var(--primary-90))}:host([color=primary-90]){color:hsl(var(--primary-90))}:host([background=primary-95]){background-color:hsl(var(--primary-95))}:host([color=primary-95]){color:hsl(var(--primary-95))}:host([background=primary-99]){background-color:hsl(var(--primary-99))}:host([color=primary-99]){color:hsl(var(--primary-99))}:host([background=primary-100]){background-color:hsl(var(--primary-100))}:host([color=primary-100]){color:hsl(var(--primary-100))}:host([background=secondary-0]){background-color:hsl(var(--secondary-0))}:host([color=secondary-0]){color:hsl(var(--secondary-0))}:host([background=secondary-10]){background-color:hsl(var(--secondary-10))}:host([color=secondary-10]){color:hsl(var(--secondary-10))}:host([background=secondary-20]){background-color:hsl(var(--secondary-20))}:host([color=secondary-20]){color:hsl(var(--secondary-20))}:host([background=secondary-30]){background-color:hsl(var(--secondary-30))}:host([color=secondary-30]){color:hsl(var(--secondary-30))}:host([background=secondary-40]){background-color:hsl(var(--secondary-40))}:host([color=secondary-40]){color:hsl(var(--secondary-40))}:host([background=secondary-50]){background-color:hsl(var(--secondary-50))}:host([color=secondary-50]){color:hsl(var(--secondary-50))}:host([background=secondary-60]){background-color:hsl(var(--secondary-60))}:host([color=secondary-60]){color:hsl(var(--secondary-60))}:host([background=secondary-70]){background-color:hsl(var(--secondary-70))}:host([color=secondary-70]){color:hsl(var(--secondary-70))}:host([background=secondary-80]){background-color:hsl(var(--secondary-80))}:host([color=secondary-80]){color:hsl(var(--secondary-80))}:host([background=secondary-90]){background-color:hsl(var(--secondary-90))}:host([color=secondary-90]){color:hsl(var(--secondary-90))}:host([background=secondary-100]){background-color:hsl(var(--secondary-100))}:host([color=secondary-100]){color:hsl(var(--secondary-100))}:host([background=tertiary-0]){background-color:hsl(var(--tertiary-0))}:host([color=tertiary-0]){color:hsl(var(--tertiary-0))}:host([background=tertiary-10]){background-color:hsl(var(--tertiary-10))}:host([color=tertiary-10]){color:hsl(var(--tertiary-10))}:host([background=tertiary-20]){background-color:hsl(var(--tertiary-20))}:host([color=tertiary-20]){color:hsl(var(--tertiary-20))}:host([background=tertiary-30]){background-color:hsl(var(--tertiary-30))}:host([color=tertiary-30]){color:hsl(var(--tertiary-30))}:host([background=tertiary-40]){background-color:hsl(var(--tertiary-40))}:host([color=tertiary-40]){color:hsl(var(--tertiary-40))}:host([background=tertiary-50]){background-color:hsl(var(--tertiary-50))}:host([color=tertiary-50]){color:hsl(var(--tertiary-50))}:host([background=tertiary-60]){background-color:hsl(var(--tertiary-60))}:host([color=tertiary-60]){color:hsl(var(--tertiary-60))}:host([background=tertiary-70]){background-color:hsl(var(--tertiary-70))}:host([color=tertiary-70]){color:hsl(var(--tertiary-70))}:host([background=tertiary-80]){background-color:hsl(var(--tertiary-80))}:host([color=tertiary-80]){color:hsl(var(--tertiary-80))}:host([background=tertiary-90]){background-color:hsl(var(--tertiary-90))}:host([color=tertiary-90]){color:hsl(var(--tertiary-90))}:host([background=tertiary-100]){background-color:hsl(var(--tertiary-100))}:host([color=tertiary-100]){color:hsl(var(--tertiary-100))}:host([background=neutral-0]){background-color:hsl(var(--neutral-0))}:host([color=neutral-0]){color:hsl(var(--neutral-0))}:host([background=neutral-10]){background-color:hsl(var(--neutral-10))}:host([color=neutral-10]){color:hsl(var(--neutral-10))}:host([background=neutral-20]){background-color:hsl(var(--neutral-20))}:host([color=neutral-20]){color:hsl(var(--neutral-20))}:host([background=neutral-30]){background-color:hsl(var(--neutral-30))}:host([color=neutral-30]){color:hsl(var(--neutral-30))}:host([background=neutral-40]){background-color:hsl(var(--neutral-40))}:host([color=neutral-40]){color:hsl(var(--neutral-40))}:host([background=neutral-50]){background-color:hsl(var(--neutral-50))}:host([color=neutral-50]){color:hsl(var(--neutral-50))}:host([background=neutral-60]){background-color:hsl(var(--neutral-60))}:host([color=neutral-60]){color:hsl(var(--neutral-60))}:host([background=neutral-70]){background-color:hsl(var(--neutral-70))}:host([color=neutral-70]){color:hsl(var(--neutral-70))}:host([background=neutral-80]){background-color:hsl(var(--neutral-80))}:host([color=neutral-80]){color:hsl(var(--neutral-80))}:host([background=neutral-90]){background-color:hsl(var(--neutral-90))}:host([color=neutral-90]){color:hsl(var(--neutral-90))}:host([background=neutral-100]){background-color:hsl(var(--neutral-100))}:host([color=neutral-100]){color:hsl(var(--neutral-100))}:host([background=error-0]){background-color:hsl(var(--error-0))}:host([color=error-0]){color:hsl(var(--error-0))}:host([background=error-10]){background-color:hsl(var(--error-10))}:host([color=error-10]){color:hsl(var(--error-10))}:host([background=error-20]){background-color:hsl(var(--error-20))}:host([color=error-20]){color:hsl(var(--error-20))}:host([background=error-30]){background-color:hsl(var(--error-30))}:host([color=error-30]){color:hsl(var(--error-30))}:host([background=error-40]){background-color:hsl(var(--error-40))}:host([color=error-40]){color:hsl(var(--error-40))}:host([background=error-50]){background-color:hsl(var(--error-50))}:host([color=error-50]){color:hsl(var(--error-50))}:host([background=error-60]){background-color:hsl(var(--error-60))}:host([color=error-60]){color:hsl(var(--error-60))}:host([background=error-70]){background-color:hsl(var(--error-70))}:host([color=error-70]){color:hsl(var(--error-70))}:host([background=error-80]){background-color:hsl(var(--error-80))}:host([color=error-80]){color:hsl(var(--error-80))}:host([background=error-90]){background-color:hsl(var(--error-90))}:host([color=error-90]){color:hsl(var(--error-90))}:host([background=error-100]){background-color:hsl(var(--error-100))}:host([color=error-100]){color:hsl(var(--error-100))}:host([direction=column]){flex-direction:column}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row-reverse}:host([direction=column-reverse]){flex-direction:column-reverse}:host([text=center]){text-align:center}:host([text=justify]){text-align:justify}:host([text=left]){text-align:left}:host([text=right]){text-align:right}:host([weight=\"100\"]){font-weight:100}:host([weight=\"200\"]){font-weight:200}:host([weight=\"300\"]){font-weight:300}:host([weight=\"400\"]){font-weight:400}:host([weight=\"500\"]){font-weight:500}:host([weight=\"600\"]){font-weight:600}:host([weight=\"700\"]){font-weight:700}:host([weight=\"800\"]){font-weight:800}:host([weight=\"900\"]){font-weight:900}:host([weight=lighter]){font-weight:lighter}:host([weight=bold]){font-weight:bold}:host([weight=bolder]){font-weight:bolder}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row}:host([elevation=\"1\"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15))}:host([elevation=\"2\"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15))}:host([elevation=\"3\"]){box-shadow:var(--box-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}:host([fill=horizontal]){width:100%}:host([fill=vertical]){height:100%}:host([fill=true]){width:100%;height:100%}:host([flex=grow]){flex:1 0}:host([flex=shrink]){flex:0 1}:host([flex=true]){flex:1 1}:host([flex=false]){flex:0 0}:host([gap=xsmall]) ::slotted(*),:host([gap=xsmall][direction=column]) ::slotted(*){margin:var(--spacing-xs, 0.25rem) 0}:host([gap=xsmall][direction=row]) ::slotted(*){margin:0 var(--spacing-xs, 0.25rem)}:host([margin=xsmall]){margin:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([vmargin=xsmall]){margin-top:var(--box-margin, var(--spacing-xs, 0.25rem));margin-bottom:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([hmargin=xsmall]){margin-left:var(--box-margin, var(--spacing-xs, 0.25rem));margin-right:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([margin=\"xsmall auto\"]){margin:var(--box-margin, var(--spacing-xs, 0.25rem)) auto}:host([margin=\"auto xsmall\"]){margin:auto var(--box-margin, var(--spacing-xs, 0.25rem))}:host([padding=xsmall]){padding:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([vpadding=xsmall]){padding-top:var(--box-padding, var(--spacing-xs, 0.25rem));padding-bottom:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([hpadding=xsmall]){padding-left:var(--box-padding, var(--spacing-xs, 0.25rem));padding-right:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([gap=small]) ::slotted(*),:host([gap=small][direction=column]) ::slotted(*){margin:var(--spacing-s, 0.5rem) 0}:host([gap=small][direction=row]) ::slotted(*){margin:0 var(--spacing-s, 0.5rem)}:host([margin=small]){margin:var(--box-margin, var(--spacing-s, 0.5rem))}:host([vmargin=small]){margin-top:var(--box-margin, var(--spacing-s, 0.5rem));margin-bottom:var(--box-margin, var(--spacing-s, 0.5rem))}:host([hmargin=small]){margin-left:var(--box-margin, var(--spacing-s, 0.5rem));margin-right:var(--box-margin, var(--spacing-s, 0.5rem))}:host([margin=\"small auto\"]){margin:var(--box-margin, var(--spacing-s, 0.5rem)) auto}:host([margin=\"auto small\"]){margin:auto var(--box-margin, var(--spacing-s, 0.5rem))}:host([padding=small]){padding:var(--box-padding, var(--spacing-s, 0.5rem))}:host([vpadding=small]){padding-top:var(--box-padding, var(--spacing-s, 0.5rem));padding-bottom:var(--box-padding, var(--spacing-s, 0.5rem))}:host([hpadding=small]){padding-left:var(--box-padding, var(--spacing-s, 0.5rem));padding-right:var(--box-padding, var(--spacing-s, 0.5rem))}:host([gap=medium]) ::slotted(*),:host([gap=medium][direction=column]) ::slotted(*){margin:var(--spacing-m, 1rem) 0}:host([gap=medium][direction=row]) ::slotted(*){margin:0 var(--spacing-m, 1rem)}:host([margin=medium]){margin:var(--box-margin, var(--spacing-m, 1rem))}:host([vmargin=medium]){margin-top:var(--box-margin, var(--spacing-m, 1rem));margin-bottom:var(--box-margin, var(--spacing-m, 1rem))}:host([hmargin=medium]){margin-left:var(--box-margin, var(--spacing-m, 1rem));margin-right:var(--box-margin, var(--spacing-m, 1rem))}:host([margin=\"medium auto\"]){margin:var(--box-margin, var(--spacing-m, 1rem)) auto}:host([margin=\"auto medium\"]){margin:auto var(--box-margin, var(--spacing-m, 1rem))}:host([padding=medium]){padding:var(--box-padding, var(--spacing-m, 1rem))}:host([vpadding=medium]){padding-top:var(--box-padding, var(--spacing-m, 1rem));padding-bottom:var(--box-padding, var(--spacing-m, 1rem))}:host([hpadding=medium]){padding-left:var(--box-padding, var(--spacing-m, 1rem));padding-right:var(--box-padding, var(--spacing-m, 1rem))}:host([gap=large]) ::slotted(*),:host([gap=large][direction=column]) ::slotted(*){margin:var(--spacing-l, 1.25rem) 0}:host([gap=large][direction=row]) ::slotted(*){margin:0 var(--spacing-l, 1.25rem)}:host([margin=large]){margin:var(--box-margin, var(--spacing-l, 1.25rem))}:host([vmargin=large]){margin-top:var(--box-margin, var(--spacing-l, 1.25rem));margin-bottom:var(--box-margin, var(--spacing-l, 1.25rem))}:host([hmargin=large]){margin-left:var(--box-margin, var(--spacing-l, 1.25rem));margin-right:var(--box-margin, var(--spacing-l, 1.25rem))}:host([margin=\"large auto\"]){margin:var(--box-margin, var(--spacing-l, 1.25rem)) auto}:host([margin=\"auto large\"]){margin:auto var(--box-margin, var(--spacing-l, 1.25rem))}:host([padding=large]){padding:var(--box-padding, var(--spacing-l, 1.25rem))}:host([vpadding=large]){padding-top:var(--box-padding, var(--spacing-l, 1.25rem));padding-bottom:var(--box-padding, var(--spacing-l, 1.25rem))}:host([hpadding=large]){padding-left:var(--box-padding, var(--spacing-l, 1.25rem));padding-right:var(--box-padding, var(--spacing-l, 1.25rem))}:host([gap=xlarge]) ::slotted(*),:host([gap=xlarge][direction=column]) ::slotted(*){margin:var(--spacing-xl, 2rem) 0}:host([gap=xlarge][direction=row]) ::slotted(*){margin:0 var(--spacing-xl, 2rem)}:host([margin=xlarge]){margin:var(--box-margin, var(--spacing-xl, 2rem))}:host([vmargin=xlarge]){margin-top:var(--box-margin, var(--spacing-xl, 2rem));margin-bottom:var(--box-margin, var(--spacing-xl, 2rem))}:host([hmargin=xlarge]){margin-left:var(--box-margin, var(--spacing-xl, 2rem));margin-right:var(--box-margin, var(--spacing-xl, 2rem))}:host([margin=\"xlarge auto\"]){margin:var(--box-margin, var(--spacing-xl, 2rem)) auto}:host([margin=\"auto xlarge\"]){margin:auto var(--box-margin, var(--spacing-xl, 2rem))}:host([padding=xlarge]){padding:var(--box-padding, var(--spacing-xl, 2rem))}:host([vpadding=xlarge]){padding-top:var(--box-padding, var(--spacing-xl, 2rem));padding-bottom:var(--box-padding, var(--spacing-xl, 2rem))}:host([hpadding=xlarge]){padding-left:var(--box-padding, var(--spacing-xl, 2rem));padding-right:var(--box-padding, var(--spacing-xl, 2rem))}:host([font=xsmall]),:host([size=xsmall]){font-size:var(--box-font-size, var(--font-size-xs, 0.625rem))}:host([font=small]),:host([size=small]){font-size:var(--box-font-size, var(--font-size-s, 0.875rem))}:host([font=medium]),:host([size=medium]){font-size:var(--box-font-size, var(--font-size-m, 1rem))}:host([font=large]),:host([size=large]){font-size:var(--box-font-size, var(--font-size-l, 1.25rem))}:host([font=xlarge]),:host([size=xlarge]){font-size:var(--box-font-size, var(--font-size-xl, 1.5rem))}:host([font=xxlarge]),:host([size=xxlarge]){font-size:var(--box-font-size, var(--font-size-xxl, 2.25rem))}:host([justify=start]){justify-content:flex-start}:host([justify=end]){justify-content:flex-end}:host([justify=stretch]){justify-content:stretch}:host([justify=baseline]){justify-content:baseline}:host([justify=center]){justify-content:center}:host([justify=around]){justify-content:space-around}:host([justify=between]){justify-content:space-between}:host([justify=evenly]){justify-content:space-evenly}:host([overflow=auto]){overflow:auto}:host([overflow=hidden]){overflow:hidden}:host([overflow=scroll]){overflow:scroll}:host([overflow=visible]){overflow:visible}:host([radius=none]){border-radius:var(--box-border-radius, 0)}:host([radius=small]){border-radius:var(--box-border-radius, var(--border-radius-small, 0.125rem))}:host([radius=medium]){border-radius:var(--box-border-radius, var(--border-radius-medium, 0.25rem))}:host([radius=large]){border-radius:var(--box-border-radius, var(--border-radius-large, 0.5rem))}:host([radius=xlarge]){border-radius:var(--box-border-radius, var(--border-radius-x-large, 1rem))}:host([radius=circle]){border-radius:var(--box-border-radius, var(--border-radius-circle, 50%))}:host([radius=pill]){border-radius:var(--box-border-radius, var(--border-radius-pill, 9999px))}:host([max-width=xxsmall]){max-width:var(--box-max-width, var(--size-xxs, 2rem))}:host([width=xxsmall]){width:var(--box-width, var(--size-xxs, 2rem))}:host([max-height=xxsmall]){max-height:var(--box-max-height, var(--size-xxs, 2rem))}:host([height=xxsmall]){height:var(--box-height, var(--size-xxs, 2rem))}:host([max-width=xsmall]){max-width:var(--box-max-width, var(--size-xs, 4rem))}:host([width=xsmall]){width:var(--box-width, var(--size-xs, 4rem))}:host([max-height=xsmall]){max-height:var(--box-max-height, var(--size-xs, 4rem))}:host([height=xsmall]){height:var(--box-height, var(--size-xs, 4rem))}:host([max-width=small]){max-width:var(--box-max-width, var(--size-s, 8rem))}:host([width=small]){width:var(--box-width, var(--size-s, 8rem))}:host([max-height=small]){max-height:var(--box-max-height, var(--size-s, 8rem))}:host([height=small]){height:var(--box-height, var(--size-s, 8rem))}:host([max-width=medium]){max-width:var(--box-max-width, var(--size-m, 16rem))}:host([width=medium]){width:var(--box-width, var(--size-m, 16rem))}:host([max-height=medium]){max-height:var(--box-max-height, var(--size-m, 16rem))}:host([height=medium]){height:var(--box-height, var(--size-m, 16rem))}:host([max-width=large]){max-width:var(--box-max-width, var(--size-l, 32rem))}:host([width=large]){width:var(--box-width, var(--size-l, 32rem))}:host([max-height=large]){max-height:var(--box-max-height, var(--size-l, 32rem))}:host([height=large]){height:var(--box-height, var(--size-l, 32rem))}:host([max-width=xlarge]){max-width:var(--box-max-width, var(--size-xl, 48rem))}:host([width=xlarge]){width:var(--box-width, var(--size-xl, 48rem))}:host([max-height=xlarge]){max-height:var(--box-max-height, var(--size-xl, 48rem))}:host([height=xlarge]){height:var(--box-height, var(--size-xl, 48rem))}:host([max-width=xxlarge]){max-width:var(--box-max-width, var(--size-xxl, 64rem))}:host([width=xxlarge]){width:var(--box-width, var(--size-xxl, 64rem))}:host([max-height=xxlarge]){max-height:var(--box-max-height, var(--size-xxl, 64rem))}:host([height=xxlarge]){height:var(--box-height, var(--size-xxl, 64rem))}:host([wrap=true]){flex-wrap:wrap}:host([wrap=reverse]){flex-wrap:wrap-reverse}");
|
|
189
|
+
;// ./tinkiet/box/box.ts
|
|
190
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
191
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
192
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
193
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
194
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
const colors = (/* unused pure expression or super */ null && ([
|
|
200
|
+
"primary-lighter",
|
|
201
|
+
"primary-light",
|
|
202
|
+
"primary",
|
|
203
|
+
"primary-dark",
|
|
204
|
+
"primary-darker",
|
|
205
|
+
"on-primary-lighter",
|
|
206
|
+
"on-primary-light",
|
|
207
|
+
"on-primary",
|
|
208
|
+
"on-primary-dark",
|
|
209
|
+
"on-primary-darker",
|
|
210
|
+
"accent-lighter",
|
|
211
|
+
"accent-light",
|
|
212
|
+
"accent",
|
|
213
|
+
"accent-dark",
|
|
214
|
+
"accent-darker",
|
|
215
|
+
"on-accent-lighter",
|
|
216
|
+
"on-accent-light",
|
|
217
|
+
"on-accent",
|
|
218
|
+
"on-accent-dark",
|
|
219
|
+
"on-accent-darker",
|
|
220
|
+
"error-lighter",
|
|
221
|
+
"error-light",
|
|
222
|
+
"error",
|
|
223
|
+
"error-dark",
|
|
224
|
+
"error-darker",
|
|
225
|
+
"on-error-lighter",
|
|
226
|
+
"on-error-light",
|
|
227
|
+
"on-error",
|
|
228
|
+
"on-error-dark",
|
|
229
|
+
"on-error-darker",
|
|
230
|
+
"shade-lighter",
|
|
231
|
+
"shade-light",
|
|
232
|
+
"shade",
|
|
233
|
+
"shade-dark",
|
|
234
|
+
"shade-darker",
|
|
235
|
+
"on-shade-lighter",
|
|
236
|
+
"on-shade-light",
|
|
237
|
+
"on-shade",
|
|
238
|
+
"on-shade-dark",
|
|
239
|
+
"on-shade-darker"
|
|
240
|
+
]));
|
|
241
|
+
/**
|
|
242
|
+
* A container that lays out its contents in one direction
|
|
243
|
+
*
|
|
244
|
+
* @attr {"none" | "small" | "medium" | "large" | "xlarge" | "circle" | "pill" } radius - border radius
|
|
245
|
+
* @attr {"around" | "between" | "center" | "end" | "start" | "stretch"} align-content - How to align the contents when there is extra space in the cross axis.
|
|
246
|
+
* @attr [align-content="stretch"]
|
|
247
|
+
* @attr {"baseline" | "center" | "end" | "start" | "stretch"} align-items - How to align the contents along the cross axis.
|
|
248
|
+
* @attr {"center" | "end" | "start" | "stretch"} align-self - How to align along the cross axis when contained in a Box or along the column axis when contained in a Grid.
|
|
249
|
+
* @attr {"row" | "column"} direction - The orientation to layout the child components in.
|
|
250
|
+
* @attr [direction="column"]
|
|
251
|
+
* @attr {1|2|3} elevation - Elevated height above the underlying context, indicated via a drop shadow.
|
|
252
|
+
* @attr {"horizontal" | "vertical" | "true" | "false"} fill - Whether the width and/or height should fill the container.
|
|
253
|
+
* @attr {"grow" | "shrink" | "true" | "false"} flex - flex-grow and/or flex-shrink
|
|
254
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} gap - The amount of spacing between child elements. This should not be used in conjunction with 'wrap' as the gap elements will not wrap gracefully. If a child is a Fragment, Box will not add a gap between the children of the Fragment.
|
|
255
|
+
* @attr {"around" | "between" | "center" | "end" | "evenly" | "start" | "stretch"} justify - How to align the contents along the main axis.
|
|
256
|
+
* @attr [justify="stretch"]
|
|
257
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} margin - The amount of margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
|
|
258
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vmargin - The amount of vertical margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
|
|
259
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hmargin - The amount of horizontal margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
|
|
260
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} padding - The amount of padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
|
|
261
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vpadding - The amount of vertical padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
|
|
262
|
+
* @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hpadding - The amount of horizontal padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
|
|
263
|
+
* @attr {"center" | "justify" | "left" | "right"} text - Text align
|
|
264
|
+
* @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} width - A fixed width.
|
|
265
|
+
* @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} height - A fixed height.
|
|
266
|
+
* @attr {"auto" | "hidden" | "scroll" | "visible"} overflow - box overflow.
|
|
267
|
+
* @attr { "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "lighter" | "bold" | "bolder"} weight - Font weight.
|
|
268
|
+
* @attr {"true" | "false" | "reverse"} wrap - Whether children can wrap if they can't all fit.
|
|
269
|
+
* @attr [wrap="false"]
|
|
270
|
+
*/
|
|
271
|
+
let TkBox = class TkBox extends external_lit_.LitElement {
|
|
272
|
+
constructor() {
|
|
273
|
+
super(...arguments);
|
|
274
|
+
/**
|
|
275
|
+
* Activate ripple
|
|
276
|
+
*/
|
|
277
|
+
this.ripple = false;
|
|
278
|
+
}
|
|
279
|
+
static get styles() {
|
|
280
|
+
return [
|
|
281
|
+
(0,external_lit_.css) `
|
|
282
|
+
${(0,external_lit_.unsafeCSS)(box)}
|
|
283
|
+
`
|
|
284
|
+
];
|
|
285
|
+
}
|
|
286
|
+
render() {
|
|
287
|
+
return (0,external_lit_.html) `
|
|
288
|
+
<slot></slot>
|
|
289
|
+
`;
|
|
290
|
+
}
|
|
291
|
+
connectedCallback() {
|
|
292
|
+
if (this.ripple) {
|
|
293
|
+
this.addEventListener("mousedown", this.showRipple.bind(this), { passive: true });
|
|
294
|
+
this.addEventListener("mouseup", this.hideRipple.bind(this), { passive: true });
|
|
295
|
+
}
|
|
296
|
+
super.connectedCallback();
|
|
297
|
+
}
|
|
298
|
+
disconnectedCallback() {
|
|
299
|
+
this.removeEventListener("mousedown", this.showRipple);
|
|
300
|
+
this.addEventListener("mouseup", this.hideRipple);
|
|
301
|
+
super.disconnectedCallback();
|
|
302
|
+
}
|
|
303
|
+
updated(props) {
|
|
304
|
+
// if (props.has("background") && ![...colors, "background", "foreground"].includes(this.background as string))
|
|
305
|
+
// this.style.setProperty("background-color", this.background.toString());
|
|
306
|
+
// if (props.has("color") && ![...colors, "background", "foreground"].includes(this.color as string))
|
|
307
|
+
// this.style.setProperty("color", this.color.toString());
|
|
308
|
+
super.updated(props);
|
|
309
|
+
}
|
|
310
|
+
showRipple(event) {
|
|
311
|
+
const x = event.clientX;
|
|
312
|
+
const y = event.clientY;
|
|
313
|
+
const { offsetWidth, offsetHeight } = this;
|
|
314
|
+
const container = document.createElement("span");
|
|
315
|
+
container.classList.add("ripple", "open");
|
|
316
|
+
const element = document.createElement("span");
|
|
317
|
+
container.appendChild(element);
|
|
318
|
+
this.shadowRoot.appendChild(container);
|
|
319
|
+
const rect = this.getBoundingClientRect();
|
|
320
|
+
const diameter = Math.max(offsetWidth, offsetWidth) * 2;
|
|
321
|
+
element.style.width = element.style.height = diameter + "px";
|
|
322
|
+
element.style.left = x - rect.left - diameter / 2 + "px";
|
|
323
|
+
element.style.top = y - rect.top - diameter / 2 + "px";
|
|
324
|
+
const inAnimation = element.animate({
|
|
325
|
+
transform: [`scale(0)`, `scale(1)`]
|
|
326
|
+
}, {
|
|
327
|
+
easing: "ease-out",
|
|
328
|
+
fill: "both",
|
|
329
|
+
duration: 500
|
|
330
|
+
});
|
|
331
|
+
inAnimation.onfinish = () => {
|
|
332
|
+
container.classList.remove("open");
|
|
333
|
+
const outAnimation = element.animate({
|
|
334
|
+
opacity: ["0.5", "0"]
|
|
335
|
+
}, {
|
|
336
|
+
easing: "ease-in",
|
|
337
|
+
fill: "both",
|
|
338
|
+
duration: 300
|
|
339
|
+
});
|
|
340
|
+
outAnimation.onfinish = () => {
|
|
341
|
+
requestAnimationFrame(() => {
|
|
342
|
+
container.remove();
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
hideRipple(event) {
|
|
348
|
+
var _a;
|
|
349
|
+
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ripple:not([open])").forEach(container => {
|
|
350
|
+
const element = container.querySelector("span");
|
|
351
|
+
const outAnimation = element.animate({
|
|
352
|
+
opacity: ["0.5", "0"]
|
|
353
|
+
}, {
|
|
354
|
+
easing: "ease-out",
|
|
355
|
+
fill: "both",
|
|
356
|
+
duration: 300
|
|
357
|
+
});
|
|
358
|
+
outAnimation.onfinish = () => {
|
|
359
|
+
requestAnimationFrame(() => {
|
|
360
|
+
container.remove();
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
__decorate([
|
|
367
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
368
|
+
], TkBox.prototype, "ripple", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
(0,decorators_js_.property)()
|
|
371
|
+
], TkBox.prototype, "background", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
(0,decorators_js_.property)()
|
|
374
|
+
], TkBox.prototype, "color", void 0);
|
|
375
|
+
TkBox = __decorate([
|
|
376
|
+
(0,decorators_js_.customElement)("tk-box")
|
|
377
|
+
], TkBox);
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
/***/ }),
|
|
382
|
+
|
|
383
|
+
/***/ 2927:
|
|
384
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
385
|
+
|
|
386
|
+
var x = (y) => {
|
|
387
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
388
|
+
}
|
|
389
|
+
var y = (x) => (() => (x))
|
|
390
|
+
module.exports = x({ ["LitElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.LitElement), ["css"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.css), ["html"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.html), ["unsafeCSS"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.unsafeCSS) });
|
|
391
|
+
|
|
392
|
+
/***/ }),
|
|
393
|
+
|
|
394
|
+
/***/ 3433:
|
|
395
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
396
|
+
|
|
397
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
398
|
+
/* harmony export */ P: () => (/* reexport safe */ _box__WEBPACK_IMPORTED_MODULE_0__.P)
|
|
399
|
+
/* harmony export */ });
|
|
400
|
+
/* harmony import */ var _box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2788);
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
/***/ }),
|
|
405
|
+
|
|
406
|
+
/***/ 3517:
|
|
407
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
408
|
+
|
|
409
|
+
var x = (y) => {
|
|
410
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
411
|
+
}
|
|
412
|
+
var y = (x) => (() => (x))
|
|
413
|
+
module.exports = x({ ["ifDefined"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_directives_if_defined_js_76c6050d__.ifDefined) });
|
|
414
|
+
|
|
415
|
+
/***/ }),
|
|
416
|
+
|
|
417
|
+
/***/ 3770:
|
|
418
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
419
|
+
|
|
420
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
421
|
+
/* harmony export */ z: () => (/* binding */ uniqueID)
|
|
422
|
+
/* harmony export */ });
|
|
423
|
+
/**
|
|
424
|
+
* Returns a unique ID.
|
|
425
|
+
* @param {number} length
|
|
426
|
+
* @returns {string}
|
|
427
|
+
*/
|
|
428
|
+
function uniqueID(length = 10) {
|
|
429
|
+
return `_${Math.random()
|
|
430
|
+
.toString(36)
|
|
431
|
+
.substr(2, length)}`;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
/***/ }),
|
|
436
|
+
|
|
437
|
+
/***/ 5554:
|
|
438
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
// EXPORTS
|
|
442
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
443
|
+
Yk: () => (/* binding */ NotieLevel),
|
|
444
|
+
Ap: () => (/* binding */ NotieType),
|
|
445
|
+
jg: () => (/* binding */ TkNotie)
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// EXTERNAL MODULE: external "lit"
|
|
449
|
+
var external_lit_ = __webpack_require__(2927);
|
|
450
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
451
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
452
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
453
|
+
var box = __webpack_require__(3433);
|
|
454
|
+
// EXTERNAL MODULE: ./tinkiet/textfield/index.ts
|
|
455
|
+
var textfield = __webpack_require__(6141);
|
|
456
|
+
;// ./tinkiet/notie/notie.scss
|
|
457
|
+
/* harmony default export */ const notie = (":host{font-size:1.6rem;display:none;position:fixed;bottom:0;left:0;right:0;top:0;margin:0;z-index:var(--notie-z-index, 400)}:host .overlay{background-color:rgba(0,0,0,.5019607843);position:fixed;top:0;right:0;left:0;bottom:0}:host .container{position:fixed;right:0;left:0;bottom:0;height:fit-content;background-color:hsl(var(--primary));box-shadow:10px 10px 10px 10px var(--shadow);z-index:calc(var(--notie-z-index, 400) + 1);transform:translateY(100%);transition:all 150ms ease-in;color:hsl(var(--on-primary));text-align:center}:host .container.info{color:#fff;background-color:#4d82d6}:host .container.error{color:#fff;background-color:#e1715b}:host .container.warning{color:#fff;background-color:#d6a14d}:host .container.success{color:#fff;background-color:#57bf57}:host .text{padding:.5em}:host .input{--input-font-size: vars.$font-size-widescreen;background-color:var(--background, white);color:var(--foreground, black);text-align:center}:host .button{cursor:pointer;padding:.5em}:host .button.confirm,:host .button.force{background-color:#57bf57;color:#fff}:host .button.cancel{color:var(--on-error, white);background-color:var(--error, #e1715b)}@media screen and (max-width: 900px){:host{font-size:1.4rem}}:host([position=top]) .container{position:fixed;top:0;bottom:inherit;transform:translateY(-100%)}:host([open]) .container{transform:translateY(0)}");
|
|
458
|
+
;// ./tinkiet/notie/notie.ts
|
|
459
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
460
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
461
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
462
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
463
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
464
|
+
};
|
|
465
|
+
var TkNotie_1;
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
var NotieType;
|
|
473
|
+
(function (NotieType) {
|
|
474
|
+
NotieType["show"] = "show";
|
|
475
|
+
NotieType["force"] = "force";
|
|
476
|
+
NotieType["confirm"] = "confirm";
|
|
477
|
+
NotieType["input"] = "input";
|
|
478
|
+
})(NotieType || (NotieType = {}));
|
|
479
|
+
var NotieLevel;
|
|
480
|
+
(function (NotieLevel) {
|
|
481
|
+
NotieLevel["success"] = "success";
|
|
482
|
+
NotieLevel["warning"] = "warning";
|
|
483
|
+
NotieLevel["error"] = "error";
|
|
484
|
+
NotieLevel["info"] = "info";
|
|
485
|
+
NotieLevel["neutral"] = "neutral";
|
|
486
|
+
})(NotieLevel || (NotieLevel = {}));
|
|
487
|
+
let TkNotie = TkNotie_1 = class TkNotie extends box/* TkBox */.P {
|
|
488
|
+
static get styles() {
|
|
489
|
+
return [
|
|
490
|
+
...box/* TkBox */.P.styles,
|
|
491
|
+
(0,external_lit_.css) `
|
|
492
|
+
${(0,external_lit_.unsafeCSS)(notie)}
|
|
493
|
+
`
|
|
494
|
+
];
|
|
495
|
+
}
|
|
496
|
+
render() {
|
|
497
|
+
return (0,external_lit_.html) `
|
|
498
|
+
<div class="overlay" @click=${() => this.type == NotieType.force ? null : this.hide(false)}></div>
|
|
499
|
+
<tk-box class="container ${this.level}">
|
|
500
|
+
${this.text
|
|
501
|
+
? (0,external_lit_.html) `
|
|
502
|
+
<tk-box class="text" @click="${() => (this.type == NotieType.show ? this.hide(true) : null)}">${this.text}</tk-box>
|
|
503
|
+
`
|
|
504
|
+
: ""}
|
|
505
|
+
${this.template
|
|
506
|
+
? (0,external_lit_.html) `
|
|
507
|
+
<tk-box class="template" @click="${() => (this.type == NotieType.show ? this.hide(true) : null)}">${this.template}</tk-box>
|
|
508
|
+
`
|
|
509
|
+
: ""}
|
|
510
|
+
${this.type == NotieType.force
|
|
511
|
+
? (0,external_lit_.html) `
|
|
512
|
+
<tk-box @click="${() => this.hide(true)}" class="button force">${this.buttonText}</tk-box>
|
|
513
|
+
`
|
|
514
|
+
: ""}
|
|
515
|
+
${this.type == NotieType.input
|
|
516
|
+
? (0,external_lit_.html) `
|
|
517
|
+
<tk-textfield type=${this.inputType} class="input"></tk-textfield>
|
|
518
|
+
`
|
|
519
|
+
: ""}
|
|
520
|
+
${this.type == NotieType.confirm || this.type == NotieType.input
|
|
521
|
+
? (0,external_lit_.html) `
|
|
522
|
+
<tk-box direction="row">
|
|
523
|
+
<tk-box justify="center" align-items="center" flex="grow" @click="${() => this.hide(true)}" class="button confirm">
|
|
524
|
+
${this.confirmText}
|
|
525
|
+
</tk-box>
|
|
526
|
+
<tk-box justify="center" align-items="center" flex="grow" @click="${() => this.hide(false)}" class="button confirm cancel">
|
|
527
|
+
${this.cancelText}
|
|
528
|
+
</tk-box>
|
|
529
|
+
</tk-box>
|
|
530
|
+
`
|
|
531
|
+
: ""}
|
|
532
|
+
</tk-box>
|
|
533
|
+
`;
|
|
534
|
+
}
|
|
535
|
+
show() {
|
|
536
|
+
return new Promise(resolve => {
|
|
537
|
+
this.resolve = resolve;
|
|
538
|
+
this.style.setProperty("display", "flex");
|
|
539
|
+
setTimeout(() => (this.open = true));
|
|
540
|
+
this.dispatchEvent(new Event("did-show"));
|
|
541
|
+
setTimeout(() => {
|
|
542
|
+
if (this.$input)
|
|
543
|
+
this.$input.focus();
|
|
544
|
+
}, 100);
|
|
545
|
+
if (this.type == NotieType.show)
|
|
546
|
+
setTimeout(() => this.hide(false), this.delay);
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
hide(value) {
|
|
550
|
+
if (value && this.type === NotieType.input)
|
|
551
|
+
value = this.$input.value;
|
|
552
|
+
if (!value && this.type === NotieType.input)
|
|
553
|
+
value = null;
|
|
554
|
+
this.$input ? (this.$input.value = "") : null;
|
|
555
|
+
this.$container.addEventListener("transitionend", () => {
|
|
556
|
+
this.dispatchEvent(new Event("did-hide"));
|
|
557
|
+
this.resolve(value);
|
|
558
|
+
if (!this.persistent)
|
|
559
|
+
this.remove();
|
|
560
|
+
}, { once: true });
|
|
561
|
+
this.open = false;
|
|
562
|
+
}
|
|
563
|
+
constructor(text = "") {
|
|
564
|
+
super();
|
|
565
|
+
this.persistent = true;
|
|
566
|
+
this.open = false;
|
|
567
|
+
this.position = "bottom";
|
|
568
|
+
this.type = NotieType.show;
|
|
569
|
+
this.level = NotieLevel.info;
|
|
570
|
+
this.delay = 3000;
|
|
571
|
+
this.animationDelay = 300;
|
|
572
|
+
this.inputType = "text";
|
|
573
|
+
this.buttonText = "OK";
|
|
574
|
+
this.confirmText = "OK";
|
|
575
|
+
this.cancelText = "CANCEL";
|
|
576
|
+
this.text = text;
|
|
577
|
+
}
|
|
578
|
+
static show(options) {
|
|
579
|
+
const notie = this.getNotie(options, NotieType.show);
|
|
580
|
+
return notie.show();
|
|
581
|
+
}
|
|
582
|
+
static force(options) {
|
|
583
|
+
const notie = this.getNotie(options, NotieType.force);
|
|
584
|
+
options.buttonText ? (notie.buttonText = options.buttonText) : null;
|
|
585
|
+
return notie.show();
|
|
586
|
+
}
|
|
587
|
+
static confirm(options) {
|
|
588
|
+
const notie = this.getNotie(options, NotieType.confirm);
|
|
589
|
+
options.confirmText ? (notie.confirmText = options.confirmText) : null;
|
|
590
|
+
options.cancelText ? (notie.cancelText = options.cancelText) : null;
|
|
591
|
+
return notie.show();
|
|
592
|
+
}
|
|
593
|
+
static input(options) {
|
|
594
|
+
const notie = this.getNotie(options, NotieType.input);
|
|
595
|
+
options.inputType ? (notie.inputType = options.inputType) : null;
|
|
596
|
+
options.password ? (notie.inputType = "password") : null;
|
|
597
|
+
options.confirmText ? (notie.confirmText = options.confirmText) : null;
|
|
598
|
+
options.cancelText ? (notie.cancelText = options.cancelText) : null;
|
|
599
|
+
return notie.show();
|
|
600
|
+
}
|
|
601
|
+
static getNotie(options, type) {
|
|
602
|
+
var _a, _b;
|
|
603
|
+
const notie = new TkNotie_1(options.text);
|
|
604
|
+
notie.persistent = false;
|
|
605
|
+
notie.type = type;
|
|
606
|
+
notie.delay = (_a = options.delay) !== null && _a !== void 0 ? _a : 999999999;
|
|
607
|
+
options.level ? (notie.level = options.level) : null;
|
|
608
|
+
options.template ? (notie.template = options.template) : null;
|
|
609
|
+
options.position ? (notie.position = options.position) : null;
|
|
610
|
+
options.background && notie.$container ? notie.$container.setAttribute("background-color", options.background) : null;
|
|
611
|
+
options.color && notie.$container ? notie.$container.setAttribute("color", options.color) : null;
|
|
612
|
+
options.container ? (_b = options.container.shadowRoot) === null || _b === void 0 ? void 0 : _b.appendChild(notie) : window.document.body.appendChild(notie);
|
|
613
|
+
options.zIndex ? notie.style.setProperty("z-index", options.zIndex.toString()) : null;
|
|
614
|
+
return notie;
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
__decorate([
|
|
618
|
+
(0,decorators_js_.state)()
|
|
619
|
+
], TkNotie.prototype, "persistent", void 0);
|
|
620
|
+
__decorate([
|
|
621
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
622
|
+
], TkNotie.prototype, "open", void 0);
|
|
623
|
+
__decorate([
|
|
624
|
+
(0,decorators_js_.property)({ reflect: true })
|
|
625
|
+
], TkNotie.prototype, "position", void 0);
|
|
626
|
+
__decorate([
|
|
627
|
+
(0,decorators_js_.state)()
|
|
628
|
+
], TkNotie.prototype, "type", void 0);
|
|
629
|
+
__decorate([
|
|
630
|
+
(0,decorators_js_.property)({ type: String })
|
|
631
|
+
], TkNotie.prototype, "level", void 0);
|
|
632
|
+
__decorate([
|
|
633
|
+
(0,decorators_js_.property)({ type: Number })
|
|
634
|
+
], TkNotie.prototype, "delay", void 0);
|
|
635
|
+
__decorate([
|
|
636
|
+
(0,decorators_js_.property)()
|
|
637
|
+
], TkNotie.prototype, "text", void 0);
|
|
638
|
+
__decorate([
|
|
639
|
+
(0,decorators_js_.property)()
|
|
640
|
+
], TkNotie.prototype, "inputType", void 0);
|
|
641
|
+
__decorate([
|
|
642
|
+
(0,decorators_js_.property)()
|
|
643
|
+
], TkNotie.prototype, "buttonText", void 0);
|
|
644
|
+
__decorate([
|
|
645
|
+
(0,decorators_js_.property)()
|
|
646
|
+
], TkNotie.prototype, "confirmText", void 0);
|
|
647
|
+
__decorate([
|
|
648
|
+
(0,decorators_js_.property)()
|
|
649
|
+
], TkNotie.prototype, "cancelText", void 0);
|
|
650
|
+
__decorate([
|
|
651
|
+
(0,decorators_js_.property)({ type: Object })
|
|
652
|
+
], TkNotie.prototype, "template", void 0);
|
|
653
|
+
__decorate([
|
|
654
|
+
(0,decorators_js_.query)("tk-textfield")
|
|
655
|
+
], TkNotie.prototype, "$input", void 0);
|
|
656
|
+
__decorate([
|
|
657
|
+
(0,decorators_js_.query)(".container")
|
|
658
|
+
], TkNotie.prototype, "$container", void 0);
|
|
659
|
+
TkNotie = TkNotie_1 = __decorate([
|
|
660
|
+
(0,decorators_js_.customElement)("tk-notie")
|
|
661
|
+
], TkNotie);
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/***/ }),
|
|
666
|
+
|
|
667
|
+
/***/ 6141:
|
|
668
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
669
|
+
|
|
670
|
+
/* harmony import */ var _textfield__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1481);
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ 8899:
|
|
677
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
678
|
+
|
|
679
|
+
var x = (y) => {
|
|
680
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
681
|
+
}
|
|
682
|
+
var y = (x) => (() => (x))
|
|
683
|
+
module.exports = x({ ["customElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.customElement), ["eventOptions"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.eventOptions), ["property"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.property), ["query"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.query), ["state"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.state) });
|
|
684
|
+
|
|
685
|
+
/***/ })
|
|
686
|
+
|
|
687
|
+
/******/ });
|
|
688
|
+
/************************************************************************/
|
|
689
|
+
/******/ // The module cache
|
|
690
|
+
/******/ var __webpack_module_cache__ = {};
|
|
691
|
+
/******/
|
|
692
|
+
/******/ // The require function
|
|
693
|
+
/******/ function __webpack_require__(moduleId) {
|
|
694
|
+
/******/ // Check if module is in cache
|
|
695
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
696
|
+
/******/ if (cachedModule !== undefined) {
|
|
697
|
+
/******/ return cachedModule.exports;
|
|
698
|
+
/******/ }
|
|
699
|
+
/******/ // Create a new module (and put it into the cache)
|
|
700
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
701
|
+
/******/ // no module.id needed
|
|
702
|
+
/******/ // no module.loaded needed
|
|
703
|
+
/******/ exports: {}
|
|
704
|
+
/******/ };
|
|
705
|
+
/******/
|
|
706
|
+
/******/ // Execute the module function
|
|
707
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
708
|
+
/******/
|
|
709
|
+
/******/ // Return the exports of the module
|
|
710
|
+
/******/ return module.exports;
|
|
711
|
+
/******/ }
|
|
712
|
+
/******/
|
|
713
|
+
/************************************************************************/
|
|
714
|
+
/******/ /* webpack/runtime/define property getters */
|
|
715
|
+
/******/ (() => {
|
|
716
|
+
/******/ // define getter functions for harmony exports
|
|
717
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
718
|
+
/******/ for(var key in definition) {
|
|
719
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
720
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
721
|
+
/******/ }
|
|
722
|
+
/******/ }
|
|
723
|
+
/******/ };
|
|
724
|
+
/******/ })();
|
|
725
|
+
/******/
|
|
726
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
727
|
+
/******/ (() => {
|
|
728
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
729
|
+
/******/ })();
|
|
730
|
+
/******/
|
|
731
|
+
/************************************************************************/
|
|
732
|
+
var __webpack_exports__ = {};
|
|
733
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
734
|
+
/* harmony export */ Ap: () => (/* reexport safe */ _notie__WEBPACK_IMPORTED_MODULE_0__.Ap),
|
|
735
|
+
/* harmony export */ Yk: () => (/* reexport safe */ _notie__WEBPACK_IMPORTED_MODULE_0__.Yk),
|
|
736
|
+
/* harmony export */ jg: () => (/* reexport safe */ _notie__WEBPACK_IMPORTED_MODULE_0__.jg)
|
|
737
|
+
/* harmony export */ });
|
|
738
|
+
/* harmony import */ var _notie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5554);
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
const __webpack_exports__NotieLevel = __webpack_exports__.Yk;
|
|
742
|
+
const __webpack_exports__NotieType = __webpack_exports__.Ap;
|
|
743
|
+
const __webpack_exports__TkNotie = __webpack_exports__.jg;
|
|
744
|
+
export { __webpack_exports__NotieLevel as NotieLevel, __webpack_exports__NotieType as NotieType, __webpack_exports__TkNotie as TkNotie };
|