tinkiet 0.9.14 → 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/index.js
CHANGED
|
@@ -1,52 +1,3682 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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 { classMap as __WEBPACK_EXTERNAL_MODULE_lit_directives_class_map_js_2f88e643_classMap__ } from "lit/directives/class-map.js";
|
|
4
|
+
import { unsafeHTML as __WEBPACK_EXTERNAL_MODULE_lit_directives_unsafe_html_js_56553e3e_unsafeHTML__ } from "lit/directives/unsafe-html.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__ from "lit/decorators.js";
|
|
6
|
+
/******/ var __webpack_modules__ = ({
|
|
7
|
+
|
|
8
|
+
/***/ 93:
|
|
9
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// EXPORTS
|
|
13
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
14
|
+
Z: () => (/* binding */ TkTooltip)
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// EXTERNAL MODULE: external "lit"
|
|
18
|
+
var external_lit_ = __webpack_require__(2927);
|
|
19
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
20
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
21
|
+
;// ./tinkiet/tooltip/tooltip.scss
|
|
22
|
+
/* harmony default export */ const tooltip = (".container{position:relative;display:inline-block}.container .tooltip{visibility:hidden;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:.4em;position:absolute;z-index:var(--notie-z-index, 400);opacity:0;transition:opacity .3s}.container .tooltip.top{top:0;right:50%;transform:translateX(50%) translateY(calc(-100% - 5px))}.container .tooltip.top::after{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.container .tooltip.right{right:0;top:50%;transform:translateX(calc(100% + 5px)) translateY(-50%)}.container .tooltip.right::after{content:\"\";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) #555 rgba(0,0,0,0) rgba(0,0,0,0)}.container .tooltip.bottom{bottom:0;right:50%;transform:translateX(50%) translateY(calc(100% + 5px))}.container .tooltip.bottom::after{content:\"\";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #555 rgba(0,0,0,0)}.container .tooltip.left{left:0;top:50%;transform:translateX(calc(-100% - 5px)) translateY(-50%)}.container .tooltip.left::after{content:\"\";position:absolute;top:50%;left:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #555}.container:hover .tooltip{visibility:visible;opacity:1}");
|
|
23
|
+
;// ./tinkiet/tooltip/tooltip.ts
|
|
24
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
26
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
27
|
+
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;
|
|
28
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
let TkTooltip = class TkTooltip extends external_lit_.LitElement {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.position = "top";
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (0,external_lit_.html) `
|
|
40
|
+
<div class="container">
|
|
41
|
+
<slot></slot>
|
|
42
|
+
<div class="tooltip ${this.position}">
|
|
43
|
+
<slot name="tooltip"></slot>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
TkTooltip.styles = (0,external_lit_.css) `
|
|
51
|
+
${(0,external_lit_.unsafeCSS)(tooltip)}
|
|
52
|
+
`;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
55
|
+
], TkTooltip.prototype, "position", void 0);
|
|
56
|
+
TkTooltip = __decorate([
|
|
57
|
+
(0,decorators_js_.customElement)("tk-tooltip")
|
|
58
|
+
], TkTooltip);
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 126:
|
|
65
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
66
|
+
|
|
67
|
+
/* harmony import */ var _navigation_bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2667);
|
|
68
|
+
/* harmony import */ var _navigation_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3338);
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/***/ }),
|
|
74
|
+
|
|
75
|
+
/***/ 267:
|
|
76
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
77
|
+
|
|
78
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1647);
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/***/ }),
|
|
83
|
+
|
|
84
|
+
/***/ 302:
|
|
85
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
86
|
+
|
|
87
|
+
/* harmony import */ var _accordion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2418);
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ 404:
|
|
94
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
95
|
+
|
|
96
|
+
/* harmony import */ var _pages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8853);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/***/ }),
|
|
101
|
+
|
|
102
|
+
/***/ 722:
|
|
103
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
// EXPORTS
|
|
107
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
108
|
+
j: () => (/* binding */ TkListItem)
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// EXTERNAL MODULE: external "lit"
|
|
112
|
+
var external_lit_ = __webpack_require__(2927);
|
|
113
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
114
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
115
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
116
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
117
|
+
// EXTERNAL MODULE: ./tinkiet/box/box.ts + 1 modules
|
|
118
|
+
var box = __webpack_require__(2788);
|
|
119
|
+
;// ./tinkiet/list-item/list-item.scss
|
|
120
|
+
/* harmony default export */ const list_item = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{height:56px;padding:0 24px 0 16px;border-radius:28px;display:flex;flex-direction:row;align-items:center;outline:none;overflow:hidden;position:relative;text-align:left;color:hsl(var(--on-surface-variant))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:hover),:host(:focus){will-change:background,color;background-color:hsla(var(--on-surface), 0.08);color:hsl(var(--on-surface))}:host([active]){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([active]:focus),:host([active]:hover){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([disabled]){background:hsla(var(--surface-container-highest), 0.12);color:hsl(var(--on-surface-variant));opacity:.4;pointer-events:none}::slotted([slot=before]),::slotted([slot=after]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self, center);margin:0 var(--spacing-m, 1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self, center);margin:0 0 0 var(--spacing-m, 1rem)}#content{flex-grow:1;display:flex;flex-direction:column;max-width:100%}");
|
|
121
|
+
;// ./tinkiet/list-item/list-item.ts
|
|
122
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
123
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
124
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
125
|
+
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;
|
|
126
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
let TkListItem = class TkListItem extends box/* TkBox */.P {
|
|
134
|
+
static get styles() {
|
|
135
|
+
return [
|
|
136
|
+
...box/* TkBox */.P.styles,
|
|
137
|
+
(0,external_lit_.css) `
|
|
138
|
+
${(0,external_lit_.unsafeCSS)(list_item)}
|
|
139
|
+
`
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
return (0,external_lit_.html) `
|
|
144
|
+
<slot name="before" @click=${this.handleClick}></slot>
|
|
145
|
+
<div id="content">
|
|
146
|
+
<slot></slot>
|
|
147
|
+
</div>
|
|
148
|
+
<slot name="after" @click=${this.handleClick}></slot>
|
|
149
|
+
${this.href
|
|
150
|
+
? (0,external_lit_.html) `
|
|
151
|
+
<a tabindex="-1" id="ahref" href="${this.href}" target=${(0,if_defined_js_.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
|
|
152
|
+
`
|
|
153
|
+
: ""}
|
|
154
|
+
`;
|
|
155
|
+
}
|
|
156
|
+
constructor() {
|
|
157
|
+
super();
|
|
158
|
+
this.href = "";
|
|
159
|
+
this.target = "";
|
|
160
|
+
}
|
|
161
|
+
firstUpdated() {
|
|
162
|
+
if (!this.ariaLabel && this.innerText)
|
|
163
|
+
this.ariaLabel = this.innerText;
|
|
164
|
+
}
|
|
165
|
+
connectedCallback() {
|
|
166
|
+
super.connectedCallback();
|
|
167
|
+
this.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
168
|
+
this.addEventListener("click", this.handleClick.bind(this));
|
|
169
|
+
}
|
|
170
|
+
disconnectedCallback() {
|
|
171
|
+
super.disconnectedCallback();
|
|
172
|
+
this.removeEventListener("click", this.handleClick);
|
|
173
|
+
this.removeEventListener("keydown", this.onKeyDown);
|
|
174
|
+
}
|
|
175
|
+
onKeyDown(e) {
|
|
176
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
e.stopPropagation();
|
|
179
|
+
this.click();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
handleClick(e) {
|
|
183
|
+
const target = e.target;
|
|
184
|
+
// In case click cames from a slotted element with href attribute we stop propagation
|
|
185
|
+
if (target.tagName == "BUTTON" || target.tagName == "TK-BUTTON" || target.tagName == "TK-SWITCH" || target.tagName == "TK-CHECKBOX") {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (this.href && e.isTrusted) {
|
|
189
|
+
e.stopPropagation();
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
this.$ahref.click();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
__decorate([
|
|
196
|
+
(0,decorators_js_.property)({ attribute: true })
|
|
197
|
+
], TkListItem.prototype, "href", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0,decorators_js_.property)({ attribute: true })
|
|
200
|
+
], TkListItem.prototype, "target", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0,decorators_js_.property)({ attribute: "aria-label" })
|
|
203
|
+
], TkListItem.prototype, "ariaLabel", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0,decorators_js_.query)("#ahref")
|
|
206
|
+
], TkListItem.prototype, "$ahref", void 0);
|
|
207
|
+
TkListItem = __decorate([
|
|
208
|
+
(0,decorators_js_.customElement)("tk-list-item")
|
|
209
|
+
], TkListItem);
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/***/ }),
|
|
214
|
+
|
|
215
|
+
/***/ 792:
|
|
216
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
217
|
+
|
|
218
|
+
/* harmony import */ var _topbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1593);
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
/***/ }),
|
|
223
|
+
|
|
224
|
+
/***/ 845:
|
|
225
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
226
|
+
|
|
227
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5603);
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
/***/ }),
|
|
232
|
+
|
|
233
|
+
/***/ 1182:
|
|
234
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
235
|
+
|
|
236
|
+
/* harmony import */ var _chip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3309);
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
/***/ }),
|
|
241
|
+
|
|
242
|
+
/***/ 1481:
|
|
243
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
// EXPORTS
|
|
247
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
248
|
+
v: () => (/* binding */ TkTextfield)
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
252
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
253
|
+
// EXTERNAL MODULE: external "lit"
|
|
254
|
+
var external_lit_ = __webpack_require__(2927);
|
|
255
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
256
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
257
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
258
|
+
var unique = __webpack_require__(3770);
|
|
259
|
+
;// ./tinkiet/textfield/textfield.scss
|
|
260
|
+
/* 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)}");
|
|
261
|
+
;// ./tinkiet/textfield/textfield.ts
|
|
262
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
263
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
264
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
265
|
+
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;
|
|
266
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
let TkTextfield = class TkTextfield extends external_lit_.LitElement {
|
|
275
|
+
constructor() {
|
|
276
|
+
super(...arguments);
|
|
277
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
278
|
+
this.type = "text";
|
|
279
|
+
this.required = false;
|
|
280
|
+
this.disabled = false;
|
|
281
|
+
this.readonly = false;
|
|
282
|
+
}
|
|
283
|
+
set value(value) {
|
|
284
|
+
if (!this.$input) {
|
|
285
|
+
this.initialValue = value;
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
this.$input.value = value;
|
|
289
|
+
this.refreshAttributes();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
get value() {
|
|
293
|
+
return this.$input != null ? this.$input.value : this.initialValue || "";
|
|
294
|
+
}
|
|
295
|
+
render() {
|
|
296
|
+
return (0,external_lit_.html) `
|
|
297
|
+
<div id="container">
|
|
298
|
+
<slot id="before" name="before"></slot>
|
|
299
|
+
<div id="wrapper">
|
|
300
|
+
<div id="label">${this.label}</div>
|
|
301
|
+
<slot id="slot"></slot>
|
|
302
|
+
<input
|
|
303
|
+
id=${this._id}
|
|
304
|
+
@keydown=${this.handleChange.bind(this)}
|
|
305
|
+
@input=${this.handleChange.bind(this)}
|
|
306
|
+
@focusout=${this.handleChange.bind(this)}
|
|
307
|
+
?required="${this.required}"
|
|
308
|
+
?disabled="${this.disabled}"
|
|
309
|
+
?readonly="${this.readonly}"
|
|
310
|
+
autocomplete="${(0,if_defined_js_.ifDefined)(this.autocomplete)}"
|
|
311
|
+
autocapitalize="${(0,if_defined_js_.ifDefined)(this.autocapitalize)}"
|
|
312
|
+
aria-label="${(0,if_defined_js_.ifDefined)(this.label)}"
|
|
313
|
+
type="${(0,if_defined_js_.ifDefined)(this.type)}"
|
|
314
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
315
|
+
list="${(0,if_defined_js_.ifDefined)(this.list)}"
|
|
316
|
+
pattern="${(0,if_defined_js_.ifDefined)(this.pattern)}"
|
|
317
|
+
minlength="${(0,if_defined_js_.ifDefined)(this.minLength)}"
|
|
318
|
+
maxlength="${(0,if_defined_js_.ifDefined)(this.maxLength)}"
|
|
319
|
+
min="${(0,if_defined_js_.ifDefined)(this.min)}"
|
|
320
|
+
max="${(0,if_defined_js_.ifDefined)(this.max)}"
|
|
321
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
322
|
+
/>
|
|
323
|
+
</div>
|
|
324
|
+
<slot id="after" name="after"></slot>
|
|
325
|
+
</div>
|
|
326
|
+
`;
|
|
327
|
+
}
|
|
328
|
+
handleChange() {
|
|
329
|
+
this.refreshAttributes();
|
|
330
|
+
}
|
|
331
|
+
firstUpdated() {
|
|
332
|
+
var _a;
|
|
333
|
+
this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("input");
|
|
334
|
+
this.appendChild(this.$input);
|
|
335
|
+
if (this.initialValue)
|
|
336
|
+
this.value = this.initialValue;
|
|
337
|
+
}
|
|
338
|
+
refreshAttributes() {
|
|
339
|
+
this.$input.value ? this.setAttribute("dirty", "") : this.removeAttribute("dirty");
|
|
340
|
+
this.$input.checkValidity() ? this.removeAttribute("invalid") : this.setAttribute("invalid", "");
|
|
341
|
+
}
|
|
342
|
+
focus() {
|
|
343
|
+
this.$input.focus();
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
TkTextfield.styles = (0,external_lit_.css) `
|
|
347
|
+
${(0,external_lit_.unsafeCSS)(textfield)}
|
|
348
|
+
`;
|
|
349
|
+
__decorate([
|
|
350
|
+
(0,decorators_js_.property)({ type: String })
|
|
351
|
+
], TkTextfield.prototype, "value", null);
|
|
352
|
+
__decorate([
|
|
353
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
354
|
+
], TkTextfield.prototype, "name", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
(0,decorators_js_.property)({ type: String })
|
|
357
|
+
], TkTextfield.prototype, "list", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
(0,decorators_js_.property)({ type: String })
|
|
360
|
+
], TkTextfield.prototype, "type", void 0);
|
|
361
|
+
__decorate([
|
|
362
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
363
|
+
], TkTextfield.prototype, "required", void 0);
|
|
364
|
+
__decorate([
|
|
365
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
366
|
+
], TkTextfield.prototype, "disabled", void 0);
|
|
367
|
+
__decorate([
|
|
368
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
369
|
+
], TkTextfield.prototype, "readonly", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
(0,decorators_js_.property)({ type: String })
|
|
372
|
+
], TkTextfield.prototype, "autocomplete", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
(0,decorators_js_.property)({ type: String })
|
|
375
|
+
], TkTextfield.prototype, "autocapitalize", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0,decorators_js_.property)({ type: String })
|
|
378
|
+
], TkTextfield.prototype, "pattern", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
(0,decorators_js_.state)()
|
|
381
|
+
], TkTextfield.prototype, "initialValue", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
(0,decorators_js_.property)({ type: String })
|
|
384
|
+
], TkTextfield.prototype, "label", void 0);
|
|
385
|
+
__decorate([
|
|
386
|
+
(0,decorators_js_.property)({ type: Number })
|
|
387
|
+
], TkTextfield.prototype, "min", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
(0,decorators_js_.property)({ type: Number })
|
|
390
|
+
], TkTextfield.prototype, "max", void 0);
|
|
391
|
+
__decorate([
|
|
392
|
+
(0,decorators_js_.property)({ type: Number })
|
|
393
|
+
], TkTextfield.prototype, "minLength", void 0);
|
|
394
|
+
__decorate([
|
|
395
|
+
(0,decorators_js_.property)({ type: Number })
|
|
396
|
+
], TkTextfield.prototype, "maxLength", void 0);
|
|
397
|
+
__decorate([
|
|
398
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
399
|
+
], TkTextfield.prototype, "handleChange", null);
|
|
400
|
+
TkTextfield = __decorate([
|
|
401
|
+
(0,decorators_js_.customElement)("tk-textfield")
|
|
402
|
+
], TkTextfield);
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
/***/ }),
|
|
407
|
+
|
|
408
|
+
/***/ 1587:
|
|
409
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
410
|
+
|
|
411
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
412
|
+
/* harmony export */ W: () => (/* binding */ TkIcons)
|
|
413
|
+
/* harmony export */ });
|
|
414
|
+
/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2927);
|
|
415
|
+
/* harmony import */ var lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8899);
|
|
416
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
417
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
418
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
419
|
+
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;
|
|
420
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
let TkIcons = class TkIcons extends lit__WEBPACK_IMPORTED_MODULE_0__.LitElement {
|
|
425
|
+
constructor() {
|
|
426
|
+
super(...arguments);
|
|
427
|
+
this.library = "default";
|
|
428
|
+
}
|
|
429
|
+
firstUpdated() {
|
|
430
|
+
window.document.body.appendChild(this);
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
__decorate([
|
|
434
|
+
(0,lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__.property)({ attribute: false })
|
|
435
|
+
], TkIcons.prototype, "resolve", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0,lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__.property)({ reflect: true })
|
|
438
|
+
], TkIcons.prototype, "library", void 0);
|
|
439
|
+
TkIcons = __decorate([
|
|
440
|
+
(0,lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__.customElement)("tk-icons")
|
|
441
|
+
], TkIcons);
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
/***/ }),
|
|
446
|
+
|
|
447
|
+
/***/ 1593:
|
|
448
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
// EXPORTS
|
|
452
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
453
|
+
q: () => (/* binding */ TkTopbar)
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
// EXTERNAL MODULE: external "lit"
|
|
457
|
+
var external_lit_ = __webpack_require__(2927);
|
|
458
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
459
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
460
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
461
|
+
var box = __webpack_require__(3433);
|
|
462
|
+
;// ./tinkiet/topbar/topbar.scss
|
|
463
|
+
/* harmony default export */ const topbar = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{color:hsl(var(--primary));background:hsl(var(--on-primary));justify-content:space-between;align-items:center;flex-direction:row}:host([fixed]){position:fixed;top:0;left:0;right:0;z-index:var(--navbar-z-index, 100)}#left,#right,#title,::slotted([slot=left]),::slotted([slot=right]),::slotted([slot=title]){display:flex;align-items:center;height:100%}#title,::slotted([slot=title]){margin:var(--nav-title-margin, 0 0 0 var(--spacing-l, 1.25rem))}");
|
|
464
|
+
;// ./tinkiet/topbar/topbar.ts
|
|
465
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
466
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
467
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
468
|
+
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;
|
|
469
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
let TkTopbar = class TkTopbar extends box/* TkBox */.P {
|
|
476
|
+
static get styles() {
|
|
477
|
+
return [
|
|
478
|
+
...box/* TkBox */.P.styles,
|
|
479
|
+
(0,external_lit_.css) `
|
|
480
|
+
${(0,external_lit_.unsafeCSS)(topbar)}
|
|
481
|
+
`
|
|
482
|
+
];
|
|
483
|
+
}
|
|
484
|
+
render() {
|
|
485
|
+
return (0,external_lit_.html) `
|
|
486
|
+
<div id="left">
|
|
487
|
+
<slot name="left"></slot>
|
|
488
|
+
<slot name="title"></slot>
|
|
489
|
+
</div>
|
|
490
|
+
<div id="right">
|
|
491
|
+
<slot name="right"></slot>
|
|
492
|
+
</div>
|
|
493
|
+
`;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
TkTopbar = __decorate([
|
|
497
|
+
(0,decorators_js_.customElement)("tk-topbar")
|
|
498
|
+
], TkTopbar);
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/***/ }),
|
|
503
|
+
|
|
504
|
+
/***/ 1647:
|
|
505
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
// EXPORTS
|
|
509
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
510
|
+
d: () => (/* binding */ TkBadge)
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
// EXTERNAL MODULE: external "lit"
|
|
514
|
+
var external_lit_ = __webpack_require__(2927);
|
|
515
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
516
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
517
|
+
;// ./tinkiet/badge/badge.scss
|
|
518
|
+
/* harmony default export */ const badge = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .badge{background-color:hsl(var(--error));font-family:\"Trebuchet MS\",\"Lucida Sans Unicode\",\"Lucida Grande\",\"Lucida Sans\",Arial,sans-serif;color:hsl(var(--on-error));height:16px;min-width:16px;max-width:34px;border-radius:8px;padding:4px;font-size:10px;line-height:8px;text-align:center;white-space:nowrap;user-select:none;cursor:inherit}:host .badge.empty{height:6px;width:6px;min-width:6px;border-radius:100%}");
|
|
519
|
+
;// ./tinkiet/badge/badge.ts
|
|
520
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
521
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
522
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
523
|
+
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;
|
|
524
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* A badge WebComponent
|
|
531
|
+
* @cssprop --tk-badge-color - Color of widget default to --primary
|
|
532
|
+
* @cssprop --tk-badge-text-color - Text color of widget to --on-primary
|
|
533
|
+
*/
|
|
534
|
+
let TkBadge = class TkBadge extends external_lit_.LitElement {
|
|
535
|
+
static get styles() {
|
|
536
|
+
return (0,external_lit_.css) `
|
|
537
|
+
${(0,external_lit_.unsafeCSS)(badge)}
|
|
538
|
+
`;
|
|
539
|
+
}
|
|
540
|
+
render() {
|
|
541
|
+
return (0,external_lit_.html) `
|
|
542
|
+
<slot></slot>
|
|
543
|
+
<div class="badge ${this.label ? "" : "empty"}">${this.label}</div>
|
|
544
|
+
`;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
__decorate([
|
|
548
|
+
(0,decorators_js_.property)()
|
|
549
|
+
], TkBadge.prototype, "label", void 0);
|
|
550
|
+
TkBadge = __decorate([
|
|
551
|
+
(0,decorators_js_.customElement)("tk-badge")
|
|
552
|
+
], TkBadge);
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
/***/ }),
|
|
557
|
+
|
|
558
|
+
/***/ 1702:
|
|
559
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
// EXPORTS
|
|
563
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
564
|
+
T: () => (/* binding */ TkCheckbox)
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
// EXTERNAL MODULE: external "lit"
|
|
568
|
+
var external_lit_ = __webpack_require__(2927);
|
|
569
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
570
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
571
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
572
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
573
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
574
|
+
var box = __webpack_require__(3433);
|
|
575
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
576
|
+
var unique = __webpack_require__(3770);
|
|
577
|
+
;// ./tinkiet/checkbox/checkbox.scss
|
|
578
|
+
/* harmony default export */ const checkbox_checkbox = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;outline:none;overflow:hidden}:host .checkbox{width:18px;height:18px;border:solid 2px hsl(var(--primary));transition:var(--checkbox-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;outline:none;-webkit-user-select:none;user-select:none;margin:0 5px}:host .label{user-select:none}:host([checked]) .checkbox{background-color:hsl(var(--primary))}:host([checked]:not([indeterminate])) #checkmark-path,:host([indeterminate]) #indeterminate-path{stroke-dashoffset:0}:host(:focus) #checkmark-path,:host(:hover) #checkmark-path{will-change:stroke-dashoffset}#checkmark{padding:1px}#checkmark-path,#indeterminate-path{stroke-width:5px;stroke:hsl(var(--on-primary));stroke-dasharray:30;stroke-dashoffset:30;transition:var(--checkbox-checkmark-transition, stroke-dashoffset var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)))}#checkmark-path{transition-delay:var(--checkbox-checkmark-path-delay, 50ms)}:host(:not([disabled])){cursor:pointer}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([checked]:focus) .checked,:host([checked]:hover) .checked{background-color:hsl(var(--primary))}:host([disabled]){pointer-events:none}:host([disabled]) .checkbox{border-color:hsla(var(--on-surface), 0);background-color:hsla(var(--on-surface), 0.3)}:host([disabled]) #checkmark-path,:host([disabled]) #indeterminate-path{stroke:hsla(var(--on-surface-variant, 0.3))}:host([disabled]) .label{opacity:.6}");
|
|
579
|
+
;// ./tinkiet/checkbox/checkbox.ts
|
|
580
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
581
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
582
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
583
|
+
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;
|
|
584
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
let TkCheckbox = class TkCheckbox extends external_lit_.LitElement {
|
|
593
|
+
constructor() {
|
|
594
|
+
super(...arguments);
|
|
595
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
596
|
+
this.checked = false;
|
|
597
|
+
this.disabled = false;
|
|
598
|
+
}
|
|
599
|
+
render() {
|
|
600
|
+
return (0,external_lit_.html) `
|
|
601
|
+
<tk-box direction="row" align-items="center">
|
|
602
|
+
<tk-box ripple tabindex="${this.disabled ? -1 : 0}" class="state">
|
|
603
|
+
<div class="checkbox">
|
|
604
|
+
<svg id="checkmark" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 24 24">
|
|
605
|
+
<path id="checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
|
|
606
|
+
<line id="indeterminate-path" fill="none" x1="0" y1="12.5" x2="24" y2="12.5" />
|
|
607
|
+
</svg>
|
|
608
|
+
</div>
|
|
609
|
+
</tk-box>
|
|
610
|
+
<span class="label"><slot></slot></span>
|
|
611
|
+
</tk-box>
|
|
612
|
+
<input
|
|
613
|
+
id=${this._id}
|
|
614
|
+
slot="none"
|
|
615
|
+
style="display: none;"
|
|
616
|
+
?checked=${this.checked}
|
|
617
|
+
type="checkbox"
|
|
618
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
619
|
+
value="${(0,if_defined_js_.ifDefined)(this.value)}"
|
|
620
|
+
aria-hidden="true"
|
|
621
|
+
tabindex="-1"
|
|
622
|
+
/>
|
|
623
|
+
`;
|
|
624
|
+
}
|
|
625
|
+
connectedCallback() {
|
|
626
|
+
super.connectedCallback();
|
|
627
|
+
this.addEventListener("click", this.handleClick.bind(this));
|
|
628
|
+
this.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
629
|
+
}
|
|
630
|
+
disconnectedCallback() {
|
|
631
|
+
super.disconnectedCallback();
|
|
632
|
+
this.removeEventListener("click", this.handleClick);
|
|
633
|
+
this.removeEventListener("keydown", this.onKeyDown);
|
|
634
|
+
}
|
|
635
|
+
firstUpdated() {
|
|
636
|
+
this.appendChild(this.$input);
|
|
637
|
+
}
|
|
638
|
+
onKeyDown(e) {
|
|
639
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
640
|
+
e.preventDefault();
|
|
641
|
+
e.stopPropagation();
|
|
642
|
+
this.click();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
handleClick() {
|
|
646
|
+
this.checked = !this.checked;
|
|
647
|
+
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
TkCheckbox.styles = (0,external_lit_.css) `
|
|
651
|
+
${(0,external_lit_.unsafeCSS)(checkbox_checkbox)}
|
|
652
|
+
`;
|
|
653
|
+
__decorate([
|
|
654
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
655
|
+
], TkCheckbox.prototype, "name", void 0);
|
|
656
|
+
__decorate([
|
|
657
|
+
(0,decorators_js_.property)({ attribute: true, type: String, reflect: true })
|
|
658
|
+
], TkCheckbox.prototype, "value", void 0);
|
|
659
|
+
__decorate([
|
|
660
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean, reflect: true })
|
|
661
|
+
], TkCheckbox.prototype, "checked", void 0);
|
|
662
|
+
__decorate([
|
|
663
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
664
|
+
], TkCheckbox.prototype, "disabled", void 0);
|
|
665
|
+
__decorate([
|
|
666
|
+
(0,decorators_js_.query)("input")
|
|
667
|
+
], TkCheckbox.prototype, "$input", void 0);
|
|
668
|
+
TkCheckbox = __decorate([
|
|
669
|
+
(0,decorators_js_.customElement)("tk-checkbox")
|
|
670
|
+
], TkCheckbox);
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ 2418:
|
|
677
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
// EXPORTS
|
|
681
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
682
|
+
u: () => (/* binding */ TkAccordion)
|
|
683
|
+
});
|
|
684
|
+
|
|
685
|
+
// EXTERNAL MODULE: external "lit"
|
|
686
|
+
var external_lit_ = __webpack_require__(2927);
|
|
687
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
688
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
689
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
690
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
691
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
692
|
+
var box = __webpack_require__(3433);
|
|
693
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
694
|
+
var unique = __webpack_require__(3770);
|
|
695
|
+
// EXTERNAL MODULE: ./tinkiet/box/box.ts + 1 modules
|
|
696
|
+
var box_box = __webpack_require__(2788);
|
|
697
|
+
;// ./tinkiet/box/focusable-box.ts
|
|
698
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
699
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
700
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
701
|
+
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;
|
|
702
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
class TkFocusableBox extends box_box/* TkBox */.P {
|
|
708
|
+
constructor() {
|
|
709
|
+
super(...arguments);
|
|
710
|
+
/**
|
|
711
|
+
* Element random id
|
|
712
|
+
*/
|
|
713
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
714
|
+
/**
|
|
715
|
+
* disabled atribute
|
|
716
|
+
*/
|
|
717
|
+
this.disabled = false;
|
|
718
|
+
}
|
|
719
|
+
updated(props) {
|
|
720
|
+
this.tabIndex = this.disabled ? -1 : 0;
|
|
721
|
+
super.updated(props);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
__decorate([
|
|
725
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
726
|
+
], TkFocusableBox.prototype, "_id", void 0);
|
|
727
|
+
__decorate([
|
|
728
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
729
|
+
], TkFocusableBox.prototype, "disabled", void 0);
|
|
730
|
+
|
|
731
|
+
;// ./tinkiet/accordion/accordion.scss
|
|
732
|
+
/* harmony default export */ const accordion = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-lowest));padding:16px;border:solid 2px hsl(var(--outline))}:host .header>*{margin:0 10px}:host .header{cursor:pointer}:host .header:after{transition:transform .3s;content:\"▼\";display:inline-block;font-size:12px}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:95%;margin:0 auto;height:0;opacity:0;visibility:hidden;transition:all .2s}:host h3,:host h5{margin:0}:host([checked]) .header{background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .content{height:auto;opacity:1;visibility:visible;transition:all .3s,opacity .7s}:host([pill]) .header{border-radius:9999px}");
|
|
733
|
+
;// ./tinkiet/accordion/accordion.ts
|
|
734
|
+
var accordion_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
735
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
736
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
737
|
+
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;
|
|
738
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
let TkAccordion = class TkAccordion extends TkFocusableBox {
|
|
747
|
+
constructor() {
|
|
748
|
+
super(...arguments);
|
|
749
|
+
this.checked = false;
|
|
750
|
+
this.rippleHeader = false;
|
|
751
|
+
}
|
|
752
|
+
static get styles() {
|
|
753
|
+
return [
|
|
754
|
+
...box/* TkBox */.P.styles,
|
|
755
|
+
(0,external_lit_.css) `
|
|
756
|
+
${(0,external_lit_.unsafeCSS)(accordion)}
|
|
757
|
+
`
|
|
758
|
+
];
|
|
759
|
+
}
|
|
760
|
+
render() {
|
|
761
|
+
return (0,external_lit_.html) `
|
|
762
|
+
<tk-box margin="small">
|
|
763
|
+
<tk-box
|
|
764
|
+
@click=${this.handleClick.bind(this)}
|
|
765
|
+
?ripple=${this.rippleHeader}
|
|
766
|
+
class="header"
|
|
767
|
+
direction="row"
|
|
768
|
+
align-items="center"
|
|
769
|
+
>
|
|
770
|
+
<tk-box class="before">
|
|
771
|
+
<slot name="before"></slot>
|
|
772
|
+
</tk-box>
|
|
773
|
+
<tk-box class="header-content">
|
|
774
|
+
<h3 class="title"><slot name="title"></slot></h3>
|
|
775
|
+
<h5><slot name="description"></slot></h5>
|
|
776
|
+
</tk-box>
|
|
777
|
+
</tk-box>
|
|
778
|
+
<tk-box class="content">
|
|
779
|
+
<slot></slot>
|
|
780
|
+
</tk-box>
|
|
781
|
+
</tk-box>
|
|
782
|
+
<input
|
|
783
|
+
id=${this.id}
|
|
784
|
+
slot="none"
|
|
785
|
+
style="display: none;"
|
|
786
|
+
type="radio"
|
|
787
|
+
?checked="${this.checked}"
|
|
788
|
+
?disabled="${this.disabled}"
|
|
789
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
790
|
+
aria-hidden="true"
|
|
791
|
+
tabindex="-1"
|
|
792
|
+
/>
|
|
793
|
+
`;
|
|
794
|
+
}
|
|
795
|
+
firstUpdated() {
|
|
796
|
+
this.appendChild(this.$input);
|
|
797
|
+
}
|
|
798
|
+
onKeyDown(e) {
|
|
799
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
800
|
+
e.preventDefault();
|
|
801
|
+
e.stopPropagation();
|
|
802
|
+
this.click();
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
handleClick() {
|
|
806
|
+
this.checked = !this.checked;
|
|
807
|
+
if (this.checked && this.name)
|
|
808
|
+
this.getRootNode()
|
|
809
|
+
.querySelectorAll(`tk-accordion[name="${this.name}"]`)
|
|
810
|
+
.forEach(el => (el != this ? (el.checked = false) : null));
|
|
811
|
+
this.dispatchEvent(new Event("change"));
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
accordion_decorate([
|
|
815
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
816
|
+
], TkAccordion.prototype, "name", void 0);
|
|
817
|
+
accordion_decorate([
|
|
818
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean, reflect: true })
|
|
819
|
+
], TkAccordion.prototype, "checked", void 0);
|
|
820
|
+
accordion_decorate([
|
|
821
|
+
(0,decorators_js_.property)({ attribute: "ripple-header", type: Boolean })
|
|
822
|
+
], TkAccordion.prototype, "rippleHeader", void 0);
|
|
823
|
+
accordion_decorate([
|
|
824
|
+
(0,decorators_js_.query)("input")
|
|
825
|
+
], TkAccordion.prototype, "$input", void 0);
|
|
826
|
+
TkAccordion = accordion_decorate([
|
|
827
|
+
(0,decorators_js_.customElement)("tk-accordion")
|
|
828
|
+
], TkAccordion);
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
/***/ }),
|
|
833
|
+
|
|
834
|
+
/***/ 2667:
|
|
835
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
// EXPORTS
|
|
839
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
840
|
+
v: () => (/* binding */ TkNavigationBar)
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
// EXTERNAL MODULE: external "lit"
|
|
844
|
+
var external_lit_ = __webpack_require__(2927);
|
|
845
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
846
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
847
|
+
;// ./tinkiet/navigation/navigation-bar.scss
|
|
848
|
+
/* harmony default export */ const navigation_bar = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host slot{display:flex;justify-content:space-between}");
|
|
849
|
+
;// ./tinkiet/navigation/navigation-bar.ts
|
|
850
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
851
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
852
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
853
|
+
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;
|
|
854
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
let TkNavigationBar = class TkNavigationBar extends external_lit_.LitElement {
|
|
860
|
+
render() {
|
|
861
|
+
return (0,external_lit_.html) `
|
|
862
|
+
<slot></slot>
|
|
863
|
+
`;
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
TkNavigationBar.styles = (0,external_lit_.css) `
|
|
867
|
+
${(0,external_lit_.unsafeCSS)(navigation_bar)}
|
|
868
|
+
`;
|
|
869
|
+
TkNavigationBar = __decorate([
|
|
870
|
+
(0,decorators_js_.customElement)("tk-navigation-bar")
|
|
871
|
+
], TkNavigationBar);
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
/***/ }),
|
|
876
|
+
|
|
877
|
+
/***/ 2693:
|
|
878
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
879
|
+
|
|
880
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8469);
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
/***/ }),
|
|
885
|
+
|
|
886
|
+
/***/ 2788:
|
|
887
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
// EXPORTS
|
|
891
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
892
|
+
P: () => (/* binding */ TkBox)
|
|
893
|
+
});
|
|
894
|
+
|
|
895
|
+
// EXTERNAL MODULE: external "lit"
|
|
896
|
+
var external_lit_ = __webpack_require__(2927);
|
|
897
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
898
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
899
|
+
;// ./tinkiet/box/box.scss
|
|
900
|
+
/* 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}");
|
|
901
|
+
;// ./tinkiet/box/box.ts
|
|
902
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
903
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
904
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
905
|
+
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;
|
|
906
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
const colors = (/* unused pure expression or super */ null && ([
|
|
912
|
+
"primary-lighter",
|
|
913
|
+
"primary-light",
|
|
914
|
+
"primary",
|
|
915
|
+
"primary-dark",
|
|
916
|
+
"primary-darker",
|
|
917
|
+
"on-primary-lighter",
|
|
918
|
+
"on-primary-light",
|
|
919
|
+
"on-primary",
|
|
920
|
+
"on-primary-dark",
|
|
921
|
+
"on-primary-darker",
|
|
922
|
+
"accent-lighter",
|
|
923
|
+
"accent-light",
|
|
924
|
+
"accent",
|
|
925
|
+
"accent-dark",
|
|
926
|
+
"accent-darker",
|
|
927
|
+
"on-accent-lighter",
|
|
928
|
+
"on-accent-light",
|
|
929
|
+
"on-accent",
|
|
930
|
+
"on-accent-dark",
|
|
931
|
+
"on-accent-darker",
|
|
932
|
+
"error-lighter",
|
|
933
|
+
"error-light",
|
|
934
|
+
"error",
|
|
935
|
+
"error-dark",
|
|
936
|
+
"error-darker",
|
|
937
|
+
"on-error-lighter",
|
|
938
|
+
"on-error-light",
|
|
939
|
+
"on-error",
|
|
940
|
+
"on-error-dark",
|
|
941
|
+
"on-error-darker",
|
|
942
|
+
"shade-lighter",
|
|
943
|
+
"shade-light",
|
|
944
|
+
"shade",
|
|
945
|
+
"shade-dark",
|
|
946
|
+
"shade-darker",
|
|
947
|
+
"on-shade-lighter",
|
|
948
|
+
"on-shade-light",
|
|
949
|
+
"on-shade",
|
|
950
|
+
"on-shade-dark",
|
|
951
|
+
"on-shade-darker"
|
|
952
|
+
]));
|
|
953
|
+
/**
|
|
954
|
+
* A container that lays out its contents in one direction
|
|
955
|
+
*
|
|
956
|
+
* @attr {"none" | "small" | "medium" | "large" | "xlarge" | "circle" | "pill" } radius - border radius
|
|
957
|
+
* @attr {"around" | "between" | "center" | "end" | "start" | "stretch"} align-content - How to align the contents when there is extra space in the cross axis.
|
|
958
|
+
* @attr [align-content="stretch"]
|
|
959
|
+
* @attr {"baseline" | "center" | "end" | "start" | "stretch"} align-items - How to align the contents along the cross axis.
|
|
960
|
+
* @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.
|
|
961
|
+
* @attr {"row" | "column"} direction - The orientation to layout the child components in.
|
|
962
|
+
* @attr [direction="column"]
|
|
963
|
+
* @attr {1|2|3} elevation - Elevated height above the underlying context, indicated via a drop shadow.
|
|
964
|
+
* @attr {"horizontal" | "vertical" | "true" | "false"} fill - Whether the width and/or height should fill the container.
|
|
965
|
+
* @attr {"grow" | "shrink" | "true" | "false"} flex - flex-grow and/or flex-shrink
|
|
966
|
+
* @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.
|
|
967
|
+
* @attr {"around" | "between" | "center" | "end" | "evenly" | "start" | "stretch"} justify - How to align the contents along the main axis.
|
|
968
|
+
* @attr [justify="stretch"]
|
|
969
|
+
* @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.
|
|
970
|
+
* @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.
|
|
971
|
+
* @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.
|
|
972
|
+
* @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.
|
|
973
|
+
* @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.
|
|
974
|
+
* @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.
|
|
975
|
+
* @attr {"center" | "justify" | "left" | "right"} text - Text align
|
|
976
|
+
* @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} width - A fixed width.
|
|
977
|
+
* @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} height - A fixed height.
|
|
978
|
+
* @attr {"auto" | "hidden" | "scroll" | "visible"} overflow - box overflow.
|
|
979
|
+
* @attr { "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "lighter" | "bold" | "bolder"} weight - Font weight.
|
|
980
|
+
* @attr {"true" | "false" | "reverse"} wrap - Whether children can wrap if they can't all fit.
|
|
981
|
+
* @attr [wrap="false"]
|
|
982
|
+
*/
|
|
983
|
+
let TkBox = class TkBox extends external_lit_.LitElement {
|
|
984
|
+
constructor() {
|
|
985
|
+
super(...arguments);
|
|
986
|
+
/**
|
|
987
|
+
* Activate ripple
|
|
988
|
+
*/
|
|
989
|
+
this.ripple = false;
|
|
990
|
+
}
|
|
991
|
+
static get styles() {
|
|
992
|
+
return [
|
|
993
|
+
(0,external_lit_.css) `
|
|
994
|
+
${(0,external_lit_.unsafeCSS)(box)}
|
|
995
|
+
`
|
|
996
|
+
];
|
|
997
|
+
}
|
|
998
|
+
render() {
|
|
999
|
+
return (0,external_lit_.html) `
|
|
1000
|
+
<slot></slot>
|
|
1001
|
+
`;
|
|
1002
|
+
}
|
|
1003
|
+
connectedCallback() {
|
|
1004
|
+
if (this.ripple) {
|
|
1005
|
+
this.addEventListener("mousedown", this.showRipple.bind(this), { passive: true });
|
|
1006
|
+
this.addEventListener("mouseup", this.hideRipple.bind(this), { passive: true });
|
|
1007
|
+
}
|
|
1008
|
+
super.connectedCallback();
|
|
1009
|
+
}
|
|
1010
|
+
disconnectedCallback() {
|
|
1011
|
+
this.removeEventListener("mousedown", this.showRipple);
|
|
1012
|
+
this.addEventListener("mouseup", this.hideRipple);
|
|
1013
|
+
super.disconnectedCallback();
|
|
1014
|
+
}
|
|
1015
|
+
updated(props) {
|
|
1016
|
+
// if (props.has("background") && ![...colors, "background", "foreground"].includes(this.background as string))
|
|
1017
|
+
// this.style.setProperty("background-color", this.background.toString());
|
|
1018
|
+
// if (props.has("color") && ![...colors, "background", "foreground"].includes(this.color as string))
|
|
1019
|
+
// this.style.setProperty("color", this.color.toString());
|
|
1020
|
+
super.updated(props);
|
|
1021
|
+
}
|
|
1022
|
+
showRipple(event) {
|
|
1023
|
+
const x = event.clientX;
|
|
1024
|
+
const y = event.clientY;
|
|
1025
|
+
const { offsetWidth, offsetHeight } = this;
|
|
1026
|
+
const container = document.createElement("span");
|
|
1027
|
+
container.classList.add("ripple", "open");
|
|
1028
|
+
const element = document.createElement("span");
|
|
1029
|
+
container.appendChild(element);
|
|
1030
|
+
this.shadowRoot.appendChild(container);
|
|
1031
|
+
const rect = this.getBoundingClientRect();
|
|
1032
|
+
const diameter = Math.max(offsetWidth, offsetWidth) * 2;
|
|
1033
|
+
element.style.width = element.style.height = diameter + "px";
|
|
1034
|
+
element.style.left = x - rect.left - diameter / 2 + "px";
|
|
1035
|
+
element.style.top = y - rect.top - diameter / 2 + "px";
|
|
1036
|
+
const inAnimation = element.animate({
|
|
1037
|
+
transform: [`scale(0)`, `scale(1)`]
|
|
1038
|
+
}, {
|
|
1039
|
+
easing: "ease-out",
|
|
1040
|
+
fill: "both",
|
|
1041
|
+
duration: 500
|
|
1042
|
+
});
|
|
1043
|
+
inAnimation.onfinish = () => {
|
|
1044
|
+
container.classList.remove("open");
|
|
1045
|
+
const outAnimation = element.animate({
|
|
1046
|
+
opacity: ["0.5", "0"]
|
|
1047
|
+
}, {
|
|
1048
|
+
easing: "ease-in",
|
|
1049
|
+
fill: "both",
|
|
1050
|
+
duration: 300
|
|
1051
|
+
});
|
|
1052
|
+
outAnimation.onfinish = () => {
|
|
1053
|
+
requestAnimationFrame(() => {
|
|
1054
|
+
container.remove();
|
|
1055
|
+
});
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
hideRipple(event) {
|
|
1060
|
+
var _a;
|
|
1061
|
+
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ripple:not([open])").forEach(container => {
|
|
1062
|
+
const element = container.querySelector("span");
|
|
1063
|
+
const outAnimation = element.animate({
|
|
1064
|
+
opacity: ["0.5", "0"]
|
|
1065
|
+
}, {
|
|
1066
|
+
easing: "ease-out",
|
|
1067
|
+
fill: "both",
|
|
1068
|
+
duration: 300
|
|
1069
|
+
});
|
|
1070
|
+
outAnimation.onfinish = () => {
|
|
1071
|
+
requestAnimationFrame(() => {
|
|
1072
|
+
container.remove();
|
|
1073
|
+
});
|
|
1074
|
+
};
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
__decorate([
|
|
1079
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1080
|
+
], TkBox.prototype, "ripple", void 0);
|
|
1081
|
+
__decorate([
|
|
1082
|
+
(0,decorators_js_.property)()
|
|
1083
|
+
], TkBox.prototype, "background", void 0);
|
|
1084
|
+
__decorate([
|
|
1085
|
+
(0,decorators_js_.property)()
|
|
1086
|
+
], TkBox.prototype, "color", void 0);
|
|
1087
|
+
TkBox = __decorate([
|
|
1088
|
+
(0,decorators_js_.customElement)("tk-box")
|
|
1089
|
+
], TkBox);
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
/***/ }),
|
|
1094
|
+
|
|
1095
|
+
/***/ 2927:
|
|
1096
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1097
|
+
|
|
1098
|
+
var x = (y) => {
|
|
1099
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
1100
|
+
}
|
|
1101
|
+
var y = (x) => (() => (x))
|
|
1102
|
+
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) });
|
|
1103
|
+
|
|
1104
|
+
/***/ }),
|
|
1105
|
+
|
|
1106
|
+
/***/ 3185:
|
|
1107
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1108
|
+
|
|
1109
|
+
/* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7401);
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
/***/ }),
|
|
1114
|
+
|
|
1115
|
+
/***/ 3224:
|
|
1116
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1117
|
+
|
|
1118
|
+
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7927);
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
/***/ }),
|
|
1123
|
+
|
|
1124
|
+
/***/ 3309:
|
|
1125
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
// EXPORTS
|
|
1129
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1130
|
+
i: () => (/* binding */ TkChip)
|
|
1131
|
+
});
|
|
1132
|
+
|
|
1133
|
+
// EXTERNAL MODULE: external "lit"
|
|
1134
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1135
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1136
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1137
|
+
;// ./tinkiet/chip/chip.scss
|
|
1138
|
+
/* harmony default export */ const chip = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{z-index:var(--navbar-z-index, 100);--color: var(--primary);--text: var(--on-primary);position:relative;color:var(--text);transition:var(--nav-transition, background var(--transition-duration-fast, 120ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));height:var(--navbar-height, 48px);padding:var(--navbar-padding, var(--spacing-s, 0.5rem));background:var(--color);display:flex;justify-content:space-between;box-sizing:border-box;flex-grow:1}:host([inverted]){--color: var(--on-primary);--text: var(--primary)}:host([fixed]){position:fixed;top:0;left:0;width:100%}:host([shadow]){box-shadow:var(--nav-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}#left,#right,#title,::slotted([slot=left]),::slotted([slot=right]),::slotted([slot=title]){display:flex;align-items:center;height:100%}#title,::slotted([slot=title]){margin:var(--nav-title-margin, 0 0 0 var(--spacing-l, 1.25rem));font-size:var(--nav-title-font-size, var(--font-size-l, 1.25rem))}");
|
|
1139
|
+
;// ./tinkiet/chip/chip.ts
|
|
1140
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1141
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1142
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1143
|
+
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;
|
|
1144
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
let TkChip = class TkChip extends external_lit_.LitElement {
|
|
1150
|
+
render() {
|
|
1151
|
+
return (0,external_lit_.html) `
|
|
1152
|
+
<div class="chip"><slot></slot></div>
|
|
1153
|
+
`;
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
TkChip.styles = (0,external_lit_.css) `
|
|
1157
|
+
${(0,external_lit_.unsafeCSS)(chip)}
|
|
1158
|
+
`;
|
|
1159
|
+
TkChip = __decorate([
|
|
1160
|
+
(0,decorators_js_.customElement)("tk-chip")
|
|
1161
|
+
], TkChip);
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
/***/ }),
|
|
1166
|
+
|
|
1167
|
+
/***/ 3338:
|
|
1168
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
// EXPORTS
|
|
1172
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1173
|
+
L: () => (/* binding */ TkNavigationItem)
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
// EXTERNAL MODULE: external "lit"
|
|
1177
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1178
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1179
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1180
|
+
;// ./tinkiet/navigation/navigation-item.scss
|
|
1181
|
+
/* harmony default export */ const navigation_item = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{cursor:pointer}:host .indicator{position:relative;height:32px;width:64px;border-radius:16px;margin-bottom:4px;display:flex;justify-content:center;align-items:center;outline:none}:host .indicator tk-icon{width:24px;height:24px}:host .indicator .badge{display:flex;position:absolute;top:4px;left:35px}:host .label{font-size:12px;line-height:16px;margin-top:4px;font-weight:500}:host([active]){color:hsl(var(--on-secondary-container))}:host([active]) .indicator{background-color:hsl(var(--secondary-container))}:host(:hover){color:hsl(var(--on-surface-variant))}:host(:hover) .indicator{background-color:hsla(var(--on-surface-variant), 0.08)}:host(:focus){color:hsl(var(--on-surface-variant))}:host(:focus) .indicator{background-color:hsla(var(--on-surface-variant), 0.12)}:host([active]:hover){color:hsl(var(--on-surface))}:host([active]:hover) .indicator{background-color:hsla(var(--on-surface), 0.08)}:host([active]:focus){color:hsl(var(--on-surface))}:host([active]:focus) .indicator{background-color:hsl(var(--on-surface), 0.12)}");
|
|
1182
|
+
;// ./tinkiet/navigation/navigation-item.ts
|
|
1183
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1184
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1185
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1186
|
+
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;
|
|
1187
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
let TkNavigationItem = class TkNavigationItem extends external_lit_.LitElement {
|
|
1193
|
+
constructor() {
|
|
1194
|
+
super(...arguments);
|
|
1195
|
+
this.label = "";
|
|
1196
|
+
this.iconPath = "";
|
|
1197
|
+
this.activeIconPath = "";
|
|
1198
|
+
this.active = false;
|
|
1199
|
+
}
|
|
1200
|
+
render() {
|
|
1201
|
+
return (0,external_lit_.html) `
|
|
1202
|
+
<tk-box align-items="center">
|
|
1203
|
+
<tk-box ripple overflow="hidden" tabindex="0" class="indicator">
|
|
1204
|
+
<tk-icon path=${this.active && this.activeIconPath ? this.activeIconPath : this.iconPath}></tk-icon>
|
|
1205
|
+
<span class="badge">
|
|
1206
|
+
<slot name="badge"></slot>
|
|
1207
|
+
</span>
|
|
1208
|
+
</tk-box>
|
|
1209
|
+
${this.label
|
|
1210
|
+
? (0,external_lit_.html) `
|
|
1211
|
+
<span class="label">${this.label}</span>
|
|
1212
|
+
`
|
|
1213
|
+
: ""}
|
|
1214
|
+
</tk-box>
|
|
1215
|
+
`;
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
TkNavigationItem.styles = (0,external_lit_.css) `
|
|
1219
|
+
${(0,external_lit_.unsafeCSS)(navigation_item)}
|
|
1220
|
+
`;
|
|
1221
|
+
__decorate([
|
|
1222
|
+
(0,decorators_js_.property)()
|
|
1223
|
+
], TkNavigationItem.prototype, "label", void 0);
|
|
1224
|
+
__decorate([
|
|
1225
|
+
(0,decorators_js_.property)()
|
|
1226
|
+
], TkNavigationItem.prototype, "iconPath", void 0);
|
|
1227
|
+
__decorate([
|
|
1228
|
+
(0,decorators_js_.property)()
|
|
1229
|
+
], TkNavigationItem.prototype, "activeIconPath", void 0);
|
|
1230
|
+
__decorate([
|
|
1231
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1232
|
+
], TkNavigationItem.prototype, "active", void 0);
|
|
1233
|
+
TkNavigationItem = __decorate([
|
|
1234
|
+
(0,decorators_js_.customElement)("tk-navigation-item")
|
|
1235
|
+
], TkNavigationItem);
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
/***/ }),
|
|
1240
|
+
|
|
1241
|
+
/***/ 3433:
|
|
1242
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1243
|
+
|
|
1244
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1245
|
+
/* harmony export */ P: () => (/* reexport safe */ _box__WEBPACK_IMPORTED_MODULE_0__.P)
|
|
1246
|
+
/* harmony export */ });
|
|
1247
|
+
/* harmony import */ var _box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2788);
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/***/ }),
|
|
1252
|
+
|
|
1253
|
+
/***/ 3449:
|
|
1254
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1255
|
+
|
|
1256
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8758);
|
|
1257
|
+
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1587);
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
/***/ }),
|
|
1263
|
+
|
|
1264
|
+
/***/ 3514:
|
|
1265
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
// EXPORTS
|
|
1269
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1270
|
+
Z: () => (/* binding */ TkRadio)
|
|
1271
|
+
});
|
|
1272
|
+
|
|
1273
|
+
// EXTERNAL MODULE: external "lit"
|
|
1274
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1275
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1276
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1277
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
1278
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
1279
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
1280
|
+
var box = __webpack_require__(3433);
|
|
1281
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
1282
|
+
var unique = __webpack_require__(3770);
|
|
1283
|
+
;// ./tinkiet/radio/radio.scss
|
|
1284
|
+
/* harmony default export */ const radio_radio = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;cursor:pointer}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;overflow:hidden;outline:none}:host .radio{width:20px;height:20px;border:solid 2px hsl(var(--on-surface-variant));border-radius:100%;transition:var(--radio-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}:host #dot{background:hsl(var(--primary));width:10px;height:10px;border-radius:100%;transition:var(--radio-dot-transition, transform var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transform:scale(0)}:host .label{user-select:none}:host([checked]) .radio{border-color:hsl(var(--primary))}:host([checked]) #dot{transform:scale(1)}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none;opacity:.5}:host([disabled]) .radio{border:solid 2px hsl(var(--on-surface-variant))}:host([disabled]) #dot{background:hsl(var(--on-surface-variant))}:host([disabled]) .label{opacity:.6}");
|
|
1285
|
+
;// ./tinkiet/radio/radio.ts
|
|
1286
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1287
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1288
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1289
|
+
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;
|
|
1290
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
let TkRadio = class TkRadio extends external_lit_.LitElement {
|
|
1299
|
+
constructor() {
|
|
1300
|
+
super(...arguments);
|
|
1301
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
1302
|
+
this.checked = false;
|
|
1303
|
+
this.required = false;
|
|
1304
|
+
this.disabled = false;
|
|
1305
|
+
this.readonly = false;
|
|
1306
|
+
}
|
|
1307
|
+
render() {
|
|
1308
|
+
return (0,external_lit_.html) `
|
|
1309
|
+
<tk-box direction="row" align-items="center">
|
|
1310
|
+
<tk-box ripple tabindex="${this.disabled ? -1 : 0}" class="state">
|
|
1311
|
+
<div class="radio">
|
|
1312
|
+
<div id="dot"></div>
|
|
1313
|
+
</div>
|
|
1314
|
+
</tk-box>
|
|
1315
|
+
<span class="label"><slot></slot></span>
|
|
1316
|
+
</tk-box>
|
|
1317
|
+
<input
|
|
1318
|
+
id=${this._id}
|
|
1319
|
+
hidden
|
|
1320
|
+
type="radio"
|
|
1321
|
+
style="position: absolute;left: 0;z-index: -1;"
|
|
1322
|
+
?checked="${this.checked}"
|
|
1323
|
+
.checked=${this.checked}
|
|
1324
|
+
?required="${this.required}"
|
|
1325
|
+
?disabled="${this.disabled}"
|
|
1326
|
+
?readonly="${this.readonly}"
|
|
1327
|
+
value="${(0,if_defined_js_.ifDefined)(this.value)}"
|
|
1328
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
1329
|
+
tabindex="-1"
|
|
1330
|
+
/>
|
|
1331
|
+
`;
|
|
1332
|
+
}
|
|
1333
|
+
connectedCallback() {
|
|
1334
|
+
super.connectedCallback();
|
|
1335
|
+
this.addEventListener("click", this.handleClick.bind(this));
|
|
1336
|
+
this.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
1337
|
+
}
|
|
1338
|
+
disconnectedCallback() {
|
|
1339
|
+
super.disconnectedCallback();
|
|
1340
|
+
this.removeEventListener("click", this.handleClick);
|
|
1341
|
+
this.removeEventListener("keydown", this.onKeyDown);
|
|
1342
|
+
}
|
|
1343
|
+
firstUpdated() {
|
|
1344
|
+
this.appendChild(this.$input);
|
|
1345
|
+
}
|
|
1346
|
+
onKeyDown(e) {
|
|
1347
|
+
if (this.disabled)
|
|
1348
|
+
return;
|
|
1349
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
1350
|
+
e.preventDefault();
|
|
1351
|
+
e.stopPropagation();
|
|
1352
|
+
this.click();
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
handleClick() {
|
|
1356
|
+
if (this.disabled)
|
|
1357
|
+
return;
|
|
1358
|
+
this.checked = !this.checked;
|
|
1359
|
+
if (this.checked && this.name)
|
|
1360
|
+
this.getRootNode()
|
|
1361
|
+
.querySelectorAll(`tk-radio[name="${this.name}"]`)
|
|
1362
|
+
.forEach(el => (el != this ? (el.checked = false) : null));
|
|
1363
|
+
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
TkRadio.styles = (0,external_lit_.css) `
|
|
1367
|
+
${(0,external_lit_.unsafeCSS)(radio_radio)}
|
|
1368
|
+
`;
|
|
1369
|
+
__decorate([
|
|
1370
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
1371
|
+
], TkRadio.prototype, "name", void 0);
|
|
1372
|
+
__decorate([
|
|
1373
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean, reflect: true })
|
|
1374
|
+
], TkRadio.prototype, "checked", void 0);
|
|
1375
|
+
__decorate([
|
|
1376
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1377
|
+
], TkRadio.prototype, "required", void 0);
|
|
1378
|
+
__decorate([
|
|
1379
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1380
|
+
], TkRadio.prototype, "disabled", void 0);
|
|
1381
|
+
__decorate([
|
|
1382
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1383
|
+
], TkRadio.prototype, "readonly", void 0);
|
|
1384
|
+
__decorate([
|
|
1385
|
+
(0,decorators_js_.property)({ type: String, reflect: true })
|
|
1386
|
+
], TkRadio.prototype, "value", void 0);
|
|
1387
|
+
__decorate([
|
|
1388
|
+
(0,decorators_js_.query)("input")
|
|
1389
|
+
], TkRadio.prototype, "$input", void 0);
|
|
1390
|
+
TkRadio = __decorate([
|
|
1391
|
+
(0,decorators_js_.customElement)("tk-radio")
|
|
1392
|
+
], TkRadio);
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
/***/ }),
|
|
1397
|
+
|
|
1398
|
+
/***/ 3517:
|
|
1399
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1400
|
+
|
|
1401
|
+
var x = (y) => {
|
|
1402
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
1403
|
+
}
|
|
1404
|
+
var y = (x) => (() => (x))
|
|
1405
|
+
module.exports = x({ ["ifDefined"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_directives_if_defined_js_76c6050d__.ifDefined) });
|
|
1406
|
+
|
|
1407
|
+
/***/ }),
|
|
1408
|
+
|
|
1409
|
+
/***/ 3572:
|
|
1410
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1411
|
+
|
|
1412
|
+
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4646);
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
/***/ }),
|
|
1417
|
+
|
|
1418
|
+
/***/ 3711:
|
|
1419
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1420
|
+
|
|
1421
|
+
/* harmony import */ var _notie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5554);
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
/***/ }),
|
|
1426
|
+
|
|
1427
|
+
/***/ 3770:
|
|
1428
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1429
|
+
|
|
1430
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1431
|
+
/* harmony export */ z: () => (/* binding */ uniqueID)
|
|
1432
|
+
/* harmony export */ });
|
|
1433
|
+
/**
|
|
1434
|
+
* Returns a unique ID.
|
|
1435
|
+
* @param {number} length
|
|
1436
|
+
* @returns {string}
|
|
1437
|
+
*/
|
|
1438
|
+
function uniqueID(length = 10) {
|
|
1439
|
+
return `_${Math.random()
|
|
1440
|
+
.toString(36)
|
|
1441
|
+
.substr(2, length)}`;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
/***/ }),
|
|
1446
|
+
|
|
1447
|
+
/***/ 4646:
|
|
1448
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
// EXPORTS
|
|
1452
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1453
|
+
k: () => (/* binding */ TkLoading)
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
// EXTERNAL MODULE: external "lit"
|
|
1457
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1458
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1459
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1460
|
+
;// external "lit/directives/class-map.js"
|
|
1461
|
+
|
|
1462
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
1463
|
+
var box = __webpack_require__(3433);
|
|
1464
|
+
;// ./tinkiet/loading/loading.scss
|
|
1465
|
+
/* harmony default export */ const loading = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: hsl(var(--primary));--background-color: var(--tk-loading-background-color, hsl(var(--surface-dim)))}:host([secondary]){--color: hsl(var(--secondary))}:host([error]){--color: hsl(var(--error))}.circle{display:inline-flex;animation:rotator 3s linear infinite;transform-origin:center;width:56px;height:56px}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;transform-origin:center;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}100%{stroke-dashoffset:265;transform:rotate(360deg)}}:host([small]) .circle{width:20px;height:20px}:host([small]) .line{height:2px}:host([large]) .circle{width:96px;height:96px}:host([large]) .line{height:14px}.line{position:relative;background-color:var(--background-color);overflow:hidden;height:6px}.line .progress{background-color:var(--color);height:100%}.line .indeterminate{background-color:var(--color)}.line .indeterminate:before{content:\"\";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.line .indeterminate:after{content:\"\";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}");
|
|
1466
|
+
;// ./tinkiet/loading/loading.ts
|
|
1467
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1468
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1469
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1470
|
+
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;
|
|
1471
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
let TkLoading = class TkLoading extends box/* TkBox */.P {
|
|
1479
|
+
constructor() {
|
|
1480
|
+
super(...arguments);
|
|
1481
|
+
this.circle = false;
|
|
1482
|
+
this.indeterminate = false;
|
|
1483
|
+
this.percent = 0;
|
|
1484
|
+
}
|
|
1485
|
+
static get styles() {
|
|
1486
|
+
return [
|
|
1487
|
+
...box/* TkBox */.P.styles,
|
|
1488
|
+
(0,external_lit_.css) `
|
|
1489
|
+
${(0,external_lit_.unsafeCSS)(loading)}
|
|
1490
|
+
`
|
|
1491
|
+
];
|
|
1492
|
+
}
|
|
1493
|
+
render() {
|
|
1494
|
+
return (0,external_lit_.html) `
|
|
1495
|
+
${this.circle
|
|
1496
|
+
? (0,external_lit_.html) `
|
|
1497
|
+
<svg class="circle" viewBox="0 0 100 100">
|
|
1498
|
+
<circle
|
|
1499
|
+
class=${__WEBPACK_EXTERNAL_MODULE_lit_directives_class_map_js_2f88e643_classMap__({ indeterminate: this.indeterminate, path: true })}
|
|
1500
|
+
fill="none"
|
|
1501
|
+
stroke-width="1em"
|
|
1502
|
+
stroke-linecap="butt"
|
|
1503
|
+
cx="50"
|
|
1504
|
+
cy="50"
|
|
1505
|
+
r="40"
|
|
1506
|
+
></circle>
|
|
1507
|
+
</svg>
|
|
1508
|
+
`
|
|
1509
|
+
: (0,external_lit_.html) `
|
|
1510
|
+
<div class="line">
|
|
1511
|
+
<div class=${__WEBPACK_EXTERNAL_MODULE_lit_directives_class_map_js_2f88e643_classMap__({ progress: true, indeterminate: this.indeterminate })} style="${`width:${this.percent}%;`}"></div>
|
|
1512
|
+
</div>
|
|
1513
|
+
`}
|
|
1514
|
+
`;
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
__decorate([
|
|
1518
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean })
|
|
1519
|
+
], TkLoading.prototype, "circle", void 0);
|
|
1520
|
+
__decorate([
|
|
1521
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean })
|
|
1522
|
+
], TkLoading.prototype, "indeterminate", void 0);
|
|
1523
|
+
__decorate([
|
|
1524
|
+
(0,decorators_js_.property)({ attribute: true, type: Number })
|
|
1525
|
+
], TkLoading.prototype, "percent", void 0);
|
|
1526
|
+
TkLoading = __decorate([
|
|
1527
|
+
(0,decorators_js_.customElement)("tk-loading")
|
|
1528
|
+
], TkLoading);
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
/***/ }),
|
|
1533
|
+
|
|
1534
|
+
/***/ 4686:
|
|
1535
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1536
|
+
|
|
1537
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1538
|
+
/* harmony export */ i: () => (/* binding */ TkForm)
|
|
1539
|
+
/* harmony export */ });
|
|
1540
|
+
/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2927);
|
|
1541
|
+
/* harmony import */ var lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8899);
|
|
1542
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1543
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1544
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1545
|
+
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;
|
|
1546
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
let TkForm = class TkForm extends lit__WEBPACK_IMPORTED_MODULE_0__.LitElement {
|
|
1551
|
+
connectedCallback() {
|
|
1552
|
+
super.connectedCallback();
|
|
1553
|
+
this.addEventListener("submit", this.submit);
|
|
1554
|
+
}
|
|
1555
|
+
disconnectedCallback() {
|
|
1556
|
+
super.disconnectedCallback();
|
|
1557
|
+
this.removeEventListener("submit", this.submit);
|
|
1558
|
+
}
|
|
1559
|
+
submit(e) {
|
|
1560
|
+
e.preventDefault();
|
|
1561
|
+
const result = this.getFormDataAsObject();
|
|
1562
|
+
this.dispatchEvent(new CustomEvent("fulfill", { detail: result }));
|
|
1563
|
+
}
|
|
1564
|
+
getFormDataAsObject() {
|
|
1565
|
+
const $form = this.querySelector("form");
|
|
1566
|
+
const result = {};
|
|
1567
|
+
const data = new FormData($form);
|
|
1568
|
+
data.forEach((value, key) => {
|
|
1569
|
+
var _a;
|
|
1570
|
+
const $inputElement = this.querySelector(`[name=${key}]`);
|
|
1571
|
+
if ($inputElement.tagName == "TK-SLIDER") {
|
|
1572
|
+
value = Number(value);
|
|
1573
|
+
}
|
|
1574
|
+
if ($inputElement.tagName == "TK-CHECKBOX" && (value == "on" || value == "true")) {
|
|
1575
|
+
value = true;
|
|
1576
|
+
}
|
|
1577
|
+
if ($inputElement.tagName == "TK-RADIO" && (value == "on" || value == "true")) {
|
|
1578
|
+
value = true;
|
|
1579
|
+
}
|
|
1580
|
+
if (key.indexOf("-") > 0) {
|
|
1581
|
+
const _ks = key.split("-");
|
|
1582
|
+
result[_ks[0]] = (_a = result[_ks[0]]) !== null && _a !== void 0 ? _a : {};
|
|
1583
|
+
result[_ks[0]][_ks[1]] = value;
|
|
1584
|
+
}
|
|
1585
|
+
else {
|
|
1586
|
+
result[key] = value;
|
|
1587
|
+
}
|
|
1588
|
+
});
|
|
1589
|
+
return result;
|
|
1590
|
+
}
|
|
1591
|
+
};
|
|
1592
|
+
__decorate([
|
|
1593
|
+
(0,lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
1594
|
+
], TkForm.prototype, "value", void 0);
|
|
1595
|
+
TkForm = __decorate([
|
|
1596
|
+
(0,lit_decorators_js__WEBPACK_IMPORTED_MODULE_1__.customElement)("tk-form")
|
|
1597
|
+
], TkForm);
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
/***/ }),
|
|
1602
|
+
|
|
1603
|
+
/***/ 5302:
|
|
1604
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
1605
|
+
|
|
1606
|
+
/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5524);
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
/***/ }),
|
|
1611
|
+
|
|
1612
|
+
/***/ 5524:
|
|
1613
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
// EXPORTS
|
|
1617
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1618
|
+
W: () => (/* binding */ TkTextarea)
|
|
1619
|
+
});
|
|
1620
|
+
|
|
1621
|
+
// EXTERNAL MODULE: external "lit"
|
|
1622
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1623
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1624
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1625
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
1626
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
1627
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
1628
|
+
var unique = __webpack_require__(3770);
|
|
1629
|
+
;// ./tinkiet/textarea/textarea.scss
|
|
1630
|
+
/* harmony default export */ const textarea_textarea = ("*{-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)}:host #container{height:auto;min-height:56px}#wrapper ::slotted(textarea){height:var(--textarea-height, var(--_textarea-height));min-height:var(--textarea-min-height, var(--textarea-height, var(--_textarea-height)));max-height:var(--textarea-max-height);resize:var(--textarea-resize, none);font-family:inherit}:host(:focus) ::slotted(textarea),:host(:hover) ::slotted(textarea){will-change:height}");
|
|
1631
|
+
;// ./tinkiet/textarea/textarea.ts
|
|
1632
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1633
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1634
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1635
|
+
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;
|
|
1636
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
let TkTextarea = class TkTextarea extends external_lit_.LitElement {
|
|
1644
|
+
constructor() {
|
|
1645
|
+
super(...arguments);
|
|
1646
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
1647
|
+
this.type = "text";
|
|
1648
|
+
this.required = false;
|
|
1649
|
+
this.disabled = false;
|
|
1650
|
+
this.readonly = false;
|
|
1651
|
+
this.rows = 1;
|
|
1652
|
+
}
|
|
1653
|
+
set value(value) {
|
|
1654
|
+
if (!this.$input) {
|
|
1655
|
+
this.initialValue = value;
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
this.$input.value = value;
|
|
1659
|
+
this.refreshAttributes();
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
get value() {
|
|
1663
|
+
return this.$input != null ? this.$input.value : this.initialValue || "";
|
|
1664
|
+
}
|
|
1665
|
+
render() {
|
|
1666
|
+
return (0,external_lit_.html) `
|
|
1667
|
+
<div id="container">
|
|
1668
|
+
<slot id="before" name="before"></slot>
|
|
1669
|
+
<div id="wrapper">
|
|
1670
|
+
<div id="label">${this.label}</div>
|
|
1671
|
+
<slot id="slot"></slot>
|
|
1672
|
+
<textarea
|
|
1673
|
+
id=${this._id}
|
|
1674
|
+
@keydown=${this.handleChange.bind(this)}
|
|
1675
|
+
@input=${this.handleChange.bind(this)}
|
|
1676
|
+
@focusout=${this.handleChange.bind(this)}
|
|
1677
|
+
?required="${this.required}"
|
|
1678
|
+
?disabled="${this.disabled}"
|
|
1679
|
+
?readonly="${this.readonly}"
|
|
1680
|
+
aria-label="${(0,if_defined_js_.ifDefined)(this.label)}"
|
|
1681
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
1682
|
+
pattern="${(0,if_defined_js_.ifDefined)(this.pattern)}"
|
|
1683
|
+
autocomplete="${(0,if_defined_js_.ifDefined)(this.autocomplete)}"
|
|
1684
|
+
autocapitalize="${(0,if_defined_js_.ifDefined)(this.autocapitalize)}"
|
|
1685
|
+
minlength="${(0,if_defined_js_.ifDefined)(this.minLength)}"
|
|
1686
|
+
maxlength="${(0,if_defined_js_.ifDefined)(this.maxLength)}"
|
|
1687
|
+
rows="${this.rows}"
|
|
1688
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
1689
|
+
></textarea>
|
|
1690
|
+
</div>
|
|
1691
|
+
<slot id="after" name="after"></slot>
|
|
1692
|
+
</div>
|
|
1693
|
+
`;
|
|
1694
|
+
}
|
|
1695
|
+
handleChange() {
|
|
1696
|
+
this.refreshAttributes();
|
|
1697
|
+
}
|
|
1698
|
+
firstUpdated() {
|
|
1699
|
+
var _a;
|
|
1700
|
+
this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("textarea");
|
|
1701
|
+
this.appendChild(this.$input);
|
|
1702
|
+
if (this.initialValue)
|
|
1703
|
+
this.value = this.initialValue;
|
|
1704
|
+
}
|
|
1705
|
+
refreshAttributes() {
|
|
1706
|
+
this.$input.value ? this.setAttribute("dirty", "") : this.removeAttribute("dirty");
|
|
1707
|
+
this.$input.checkValidity() ? this.removeAttribute("invalid") : this.setAttribute("invalid", "");
|
|
1708
|
+
}
|
|
1709
|
+
focus() {
|
|
1710
|
+
this.$input.focus();
|
|
1711
|
+
}
|
|
1712
|
+
};
|
|
1713
|
+
TkTextarea.styles = (0,external_lit_.css) `
|
|
1714
|
+
${(0,external_lit_.unsafeCSS)(textarea_textarea)}
|
|
1715
|
+
`;
|
|
1716
|
+
__decorate([
|
|
1717
|
+
(0,decorators_js_.property)({ type: String })
|
|
1718
|
+
], TkTextarea.prototype, "value", null);
|
|
1719
|
+
__decorate([
|
|
1720
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
1721
|
+
], TkTextarea.prototype, "name", void 0);
|
|
1722
|
+
__decorate([
|
|
1723
|
+
(0,decorators_js_.property)({ type: String })
|
|
1724
|
+
], TkTextarea.prototype, "list", void 0);
|
|
1725
|
+
__decorate([
|
|
1726
|
+
(0,decorators_js_.property)({ type: String })
|
|
1727
|
+
], TkTextarea.prototype, "type", void 0);
|
|
1728
|
+
__decorate([
|
|
1729
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1730
|
+
], TkTextarea.prototype, "required", void 0);
|
|
1731
|
+
__decorate([
|
|
1732
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
1733
|
+
], TkTextarea.prototype, "disabled", void 0);
|
|
1734
|
+
__decorate([
|
|
1735
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
1736
|
+
], TkTextarea.prototype, "readonly", void 0);
|
|
1737
|
+
__decorate([
|
|
1738
|
+
(0,decorators_js_.property)({ type: String })
|
|
1739
|
+
], TkTextarea.prototype, "autocomplete", void 0);
|
|
1740
|
+
__decorate([
|
|
1741
|
+
(0,decorators_js_.property)({ type: String })
|
|
1742
|
+
], TkTextarea.prototype, "autocapitalize", void 0);
|
|
1743
|
+
__decorate([
|
|
1744
|
+
(0,decorators_js_.property)({ type: String })
|
|
1745
|
+
], TkTextarea.prototype, "pattern", void 0);
|
|
1746
|
+
__decorate([
|
|
1747
|
+
(0,decorators_js_.state)()
|
|
1748
|
+
], TkTextarea.prototype, "initialValue", void 0);
|
|
1749
|
+
__decorate([
|
|
1750
|
+
(0,decorators_js_.property)({ type: String })
|
|
1751
|
+
], TkTextarea.prototype, "label", void 0);
|
|
1752
|
+
__decorate([
|
|
1753
|
+
(0,decorators_js_.property)({ type: Number })
|
|
1754
|
+
], TkTextarea.prototype, "minLength", void 0);
|
|
1755
|
+
__decorate([
|
|
1756
|
+
(0,decorators_js_.property)({ type: Number })
|
|
1757
|
+
], TkTextarea.prototype, "maxLength", void 0);
|
|
1758
|
+
__decorate([
|
|
1759
|
+
(0,decorators_js_.property)({ type: Number })
|
|
1760
|
+
], TkTextarea.prototype, "rows", void 0);
|
|
1761
|
+
__decorate([
|
|
1762
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
1763
|
+
], TkTextarea.prototype, "handleChange", null);
|
|
1764
|
+
TkTextarea = __decorate([
|
|
1765
|
+
(0,decorators_js_.customElement)("tk-textarea")
|
|
1766
|
+
], TkTextarea);
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
/***/ }),
|
|
1771
|
+
|
|
1772
|
+
/***/ 5554:
|
|
1773
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
// EXPORTS
|
|
1777
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1778
|
+
Yk: () => (/* binding */ NotieLevel),
|
|
1779
|
+
Ap: () => (/* binding */ NotieType),
|
|
1780
|
+
jg: () => (/* binding */ TkNotie)
|
|
1781
|
+
});
|
|
1782
|
+
|
|
1783
|
+
// UNUSED EXPORTS: NotieType
|
|
1784
|
+
|
|
1785
|
+
// EXTERNAL MODULE: external "lit"
|
|
1786
|
+
var external_lit_ = __webpack_require__(2927);
|
|
1787
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
1788
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
1789
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
1790
|
+
var box = __webpack_require__(3433);
|
|
1791
|
+
// EXTERNAL MODULE: ./tinkiet/textfield/index.ts
|
|
1792
|
+
var textfield = __webpack_require__(6141);
|
|
1793
|
+
;// ./tinkiet/notie/notie.scss
|
|
1794
|
+
/* 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)}");
|
|
1795
|
+
;// ./tinkiet/notie/notie.ts
|
|
1796
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1797
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1798
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1799
|
+
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;
|
|
1800
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1801
|
+
};
|
|
1802
|
+
var TkNotie_1;
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
var NotieType;
|
|
1810
|
+
(function (NotieType) {
|
|
1811
|
+
NotieType["show"] = "show";
|
|
1812
|
+
NotieType["force"] = "force";
|
|
1813
|
+
NotieType["confirm"] = "confirm";
|
|
1814
|
+
NotieType["input"] = "input";
|
|
1815
|
+
})(NotieType || (NotieType = {}));
|
|
1816
|
+
var NotieLevel;
|
|
1817
|
+
(function (NotieLevel) {
|
|
1818
|
+
NotieLevel["success"] = "success";
|
|
1819
|
+
NotieLevel["warning"] = "warning";
|
|
1820
|
+
NotieLevel["error"] = "error";
|
|
1821
|
+
NotieLevel["info"] = "info";
|
|
1822
|
+
NotieLevel["neutral"] = "neutral";
|
|
1823
|
+
})(NotieLevel || (NotieLevel = {}));
|
|
1824
|
+
let TkNotie = TkNotie_1 = class TkNotie extends box/* TkBox */.P {
|
|
1825
|
+
static get styles() {
|
|
1826
|
+
return [
|
|
1827
|
+
...box/* TkBox */.P.styles,
|
|
1828
|
+
(0,external_lit_.css) `
|
|
1829
|
+
${(0,external_lit_.unsafeCSS)(notie)}
|
|
1830
|
+
`
|
|
1831
|
+
];
|
|
1832
|
+
}
|
|
1833
|
+
render() {
|
|
1834
|
+
return (0,external_lit_.html) `
|
|
1835
|
+
<div class="overlay" @click=${() => this.type == NotieType.force ? null : this.hide(false)}></div>
|
|
1836
|
+
<tk-box class="container ${this.level}">
|
|
1837
|
+
${this.text
|
|
1838
|
+
? (0,external_lit_.html) `
|
|
1839
|
+
<tk-box class="text" @click="${() => (this.type == NotieType.show ? this.hide(true) : null)}">${this.text}</tk-box>
|
|
1840
|
+
`
|
|
1841
|
+
: ""}
|
|
1842
|
+
${this.template
|
|
1843
|
+
? (0,external_lit_.html) `
|
|
1844
|
+
<tk-box class="template" @click="${() => (this.type == NotieType.show ? this.hide(true) : null)}">${this.template}</tk-box>
|
|
1845
|
+
`
|
|
1846
|
+
: ""}
|
|
1847
|
+
${this.type == NotieType.force
|
|
1848
|
+
? (0,external_lit_.html) `
|
|
1849
|
+
<tk-box @click="${() => this.hide(true)}" class="button force">${this.buttonText}</tk-box>
|
|
1850
|
+
`
|
|
1851
|
+
: ""}
|
|
1852
|
+
${this.type == NotieType.input
|
|
1853
|
+
? (0,external_lit_.html) `
|
|
1854
|
+
<tk-textfield type=${this.inputType} class="input"></tk-textfield>
|
|
1855
|
+
`
|
|
1856
|
+
: ""}
|
|
1857
|
+
${this.type == NotieType.confirm || this.type == NotieType.input
|
|
1858
|
+
? (0,external_lit_.html) `
|
|
1859
|
+
<tk-box direction="row">
|
|
1860
|
+
<tk-box justify="center" align-items="center" flex="grow" @click="${() => this.hide(true)}" class="button confirm">
|
|
1861
|
+
${this.confirmText}
|
|
1862
|
+
</tk-box>
|
|
1863
|
+
<tk-box justify="center" align-items="center" flex="grow" @click="${() => this.hide(false)}" class="button confirm cancel">
|
|
1864
|
+
${this.cancelText}
|
|
1865
|
+
</tk-box>
|
|
1866
|
+
</tk-box>
|
|
1867
|
+
`
|
|
1868
|
+
: ""}
|
|
1869
|
+
</tk-box>
|
|
1870
|
+
`;
|
|
1871
|
+
}
|
|
1872
|
+
show() {
|
|
1873
|
+
return new Promise(resolve => {
|
|
1874
|
+
this.resolve = resolve;
|
|
1875
|
+
this.style.setProperty("display", "flex");
|
|
1876
|
+
setTimeout(() => (this.open = true));
|
|
1877
|
+
this.dispatchEvent(new Event("did-show"));
|
|
1878
|
+
setTimeout(() => {
|
|
1879
|
+
if (this.$input)
|
|
1880
|
+
this.$input.focus();
|
|
1881
|
+
}, 100);
|
|
1882
|
+
if (this.type == NotieType.show)
|
|
1883
|
+
setTimeout(() => this.hide(false), this.delay);
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
hide(value) {
|
|
1887
|
+
if (value && this.type === NotieType.input)
|
|
1888
|
+
value = this.$input.value;
|
|
1889
|
+
if (!value && this.type === NotieType.input)
|
|
1890
|
+
value = null;
|
|
1891
|
+
this.$input ? (this.$input.value = "") : null;
|
|
1892
|
+
this.$container.addEventListener("transitionend", () => {
|
|
1893
|
+
this.dispatchEvent(new Event("did-hide"));
|
|
1894
|
+
this.resolve(value);
|
|
1895
|
+
if (!this.persistent)
|
|
1896
|
+
this.remove();
|
|
1897
|
+
}, { once: true });
|
|
1898
|
+
this.open = false;
|
|
1899
|
+
}
|
|
1900
|
+
constructor(text = "") {
|
|
1901
|
+
super();
|
|
1902
|
+
this.persistent = true;
|
|
1903
|
+
this.open = false;
|
|
1904
|
+
this.position = "bottom";
|
|
1905
|
+
this.type = NotieType.show;
|
|
1906
|
+
this.level = NotieLevel.info;
|
|
1907
|
+
this.delay = 3000;
|
|
1908
|
+
this.animationDelay = 300;
|
|
1909
|
+
this.inputType = "text";
|
|
1910
|
+
this.buttonText = "OK";
|
|
1911
|
+
this.confirmText = "OK";
|
|
1912
|
+
this.cancelText = "CANCEL";
|
|
1913
|
+
this.text = text;
|
|
1914
|
+
}
|
|
1915
|
+
static show(options) {
|
|
1916
|
+
const notie = this.getNotie(options, NotieType.show);
|
|
1917
|
+
return notie.show();
|
|
1918
|
+
}
|
|
1919
|
+
static force(options) {
|
|
1920
|
+
const notie = this.getNotie(options, NotieType.force);
|
|
1921
|
+
options.buttonText ? (notie.buttonText = options.buttonText) : null;
|
|
1922
|
+
return notie.show();
|
|
1923
|
+
}
|
|
1924
|
+
static confirm(options) {
|
|
1925
|
+
const notie = this.getNotie(options, NotieType.confirm);
|
|
1926
|
+
options.confirmText ? (notie.confirmText = options.confirmText) : null;
|
|
1927
|
+
options.cancelText ? (notie.cancelText = options.cancelText) : null;
|
|
1928
|
+
return notie.show();
|
|
1929
|
+
}
|
|
1930
|
+
static input(options) {
|
|
1931
|
+
const notie = this.getNotie(options, NotieType.input);
|
|
1932
|
+
options.inputType ? (notie.inputType = options.inputType) : null;
|
|
1933
|
+
options.password ? (notie.inputType = "password") : null;
|
|
1934
|
+
options.confirmText ? (notie.confirmText = options.confirmText) : null;
|
|
1935
|
+
options.cancelText ? (notie.cancelText = options.cancelText) : null;
|
|
1936
|
+
return notie.show();
|
|
1937
|
+
}
|
|
1938
|
+
static getNotie(options, type) {
|
|
1939
|
+
var _a, _b;
|
|
1940
|
+
const notie = new TkNotie_1(options.text);
|
|
1941
|
+
notie.persistent = false;
|
|
1942
|
+
notie.type = type;
|
|
1943
|
+
notie.delay = (_a = options.delay) !== null && _a !== void 0 ? _a : 999999999;
|
|
1944
|
+
options.level ? (notie.level = options.level) : null;
|
|
1945
|
+
options.template ? (notie.template = options.template) : null;
|
|
1946
|
+
options.position ? (notie.position = options.position) : null;
|
|
1947
|
+
options.background && notie.$container ? notie.$container.setAttribute("background-color", options.background) : null;
|
|
1948
|
+
options.color && notie.$container ? notie.$container.setAttribute("color", options.color) : null;
|
|
1949
|
+
options.container ? (_b = options.container.shadowRoot) === null || _b === void 0 ? void 0 : _b.appendChild(notie) : window.document.body.appendChild(notie);
|
|
1950
|
+
options.zIndex ? notie.style.setProperty("z-index", options.zIndex.toString()) : null;
|
|
1951
|
+
return notie;
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
__decorate([
|
|
1955
|
+
(0,decorators_js_.state)()
|
|
1956
|
+
], TkNotie.prototype, "persistent", void 0);
|
|
1957
|
+
__decorate([
|
|
1958
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
1959
|
+
], TkNotie.prototype, "open", void 0);
|
|
1960
|
+
__decorate([
|
|
1961
|
+
(0,decorators_js_.property)({ reflect: true })
|
|
1962
|
+
], TkNotie.prototype, "position", void 0);
|
|
1963
|
+
__decorate([
|
|
1964
|
+
(0,decorators_js_.state)()
|
|
1965
|
+
], TkNotie.prototype, "type", void 0);
|
|
1966
|
+
__decorate([
|
|
1967
|
+
(0,decorators_js_.property)({ type: String })
|
|
1968
|
+
], TkNotie.prototype, "level", void 0);
|
|
1969
|
+
__decorate([
|
|
1970
|
+
(0,decorators_js_.property)({ type: Number })
|
|
1971
|
+
], TkNotie.prototype, "delay", void 0);
|
|
1972
|
+
__decorate([
|
|
1973
|
+
(0,decorators_js_.property)()
|
|
1974
|
+
], TkNotie.prototype, "text", void 0);
|
|
1975
|
+
__decorate([
|
|
1976
|
+
(0,decorators_js_.property)()
|
|
1977
|
+
], TkNotie.prototype, "inputType", void 0);
|
|
1978
|
+
__decorate([
|
|
1979
|
+
(0,decorators_js_.property)()
|
|
1980
|
+
], TkNotie.prototype, "buttonText", void 0);
|
|
1981
|
+
__decorate([
|
|
1982
|
+
(0,decorators_js_.property)()
|
|
1983
|
+
], TkNotie.prototype, "confirmText", void 0);
|
|
1984
|
+
__decorate([
|
|
1985
|
+
(0,decorators_js_.property)()
|
|
1986
|
+
], TkNotie.prototype, "cancelText", void 0);
|
|
1987
|
+
__decorate([
|
|
1988
|
+
(0,decorators_js_.property)({ type: Object })
|
|
1989
|
+
], TkNotie.prototype, "template", void 0);
|
|
1990
|
+
__decorate([
|
|
1991
|
+
(0,decorators_js_.query)("tk-textfield")
|
|
1992
|
+
], TkNotie.prototype, "$input", void 0);
|
|
1993
|
+
__decorate([
|
|
1994
|
+
(0,decorators_js_.query)(".container")
|
|
1995
|
+
], TkNotie.prototype, "$container", void 0);
|
|
1996
|
+
TkNotie = TkNotie_1 = __decorate([
|
|
1997
|
+
(0,decorators_js_.customElement)("tk-notie")
|
|
1998
|
+
], TkNotie);
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
/***/ }),
|
|
2003
|
+
|
|
2004
|
+
/***/ 5603:
|
|
2005
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
// EXPORTS
|
|
2009
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2010
|
+
l: () => (/* binding */ TkDrawer)
|
|
2011
|
+
});
|
|
2012
|
+
|
|
2013
|
+
// EXTERNAL MODULE: external "lit"
|
|
2014
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2015
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2016
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2017
|
+
;// ./tinkiet/drawer/drawer.scss
|
|
2018
|
+
/* harmony default export */ const drawer = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:block;height:100%;width:100%;position:relative;overflow:hidden;background-color:hsl(var(--surface))}.drawer{display:grid;grid-template-columns:var(--drawer-width, 256px) 10px;grid-template-rows:auto 1fr auto;grid-template-areas:\"header swipe\" \"content swipe\" \"footer swipe\";position:absolute;top:0;bottom:0;transform:translateX(calc(-100% + 10px));transition:transform cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-medium, 180ms);will-change:transform;touch-action:pan-y;z-index:var(--drawer-z-index, 200);background-color:hsl(var(--surface))}.drawer .drawer-header{grid-area:header}.drawer .drawer-content{grid-area:content;overflow:auto}.drawer .drawer-footer{grid-area:footer}.drawer .drawer-swipe{grid-area:swipe;background-color:rgba(0,0,0,0)}:host([right]) .drawer{right:0;transform:translateX(calc(100% + 10px))}.overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:var(--drawer-overlay-z-index, 200);background-color:rgba(0,0,0,.5);display:none}.container{transition:padding cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-slow, 250ms);overflow:auto;height:100%}:host([open]) .drawer{transform:none}:host([open]) .container{padding-left:var(--drawer-width, 256px)}:host([open][over]) .drawer{background-color:hsl(var(--surface-container-low));box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}:host([open][over]) .container{padding-left:0}:host([open][over]) .overlay{display:block}@media(max-width: var(--drawer-trigger-width, 400px)){:host([open]) .container{padding-left:0}:host([open]) .overlay{display:block}}");
|
|
2019
|
+
;// ./tinkiet/drawer/drawer.ts
|
|
2020
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2021
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2022
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2023
|
+
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;
|
|
2024
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
let TkDrawer = class TkDrawer extends external_lit_.LitElement {
|
|
2031
|
+
constructor() {
|
|
2032
|
+
super(...arguments);
|
|
2033
|
+
this._open = false;
|
|
2034
|
+
this.over = false;
|
|
2035
|
+
this.right = false;
|
|
2036
|
+
this.swipeable = false;
|
|
2037
|
+
this.swipeX = 0;
|
|
2038
|
+
this.swipeY = 0;
|
|
2039
|
+
this.isHorizontalSwipe = false;
|
|
2040
|
+
}
|
|
2041
|
+
set open(value) {
|
|
2042
|
+
if (value === this._open)
|
|
2043
|
+
return;
|
|
2044
|
+
const oldValue = this._open;
|
|
2045
|
+
this._open = value;
|
|
2046
|
+
this.requestUpdate("open", oldValue);
|
|
2047
|
+
if (this._open)
|
|
2048
|
+
this.dispatchEvent(new Event("did-show"));
|
|
2049
|
+
if (!this._open)
|
|
2050
|
+
this.dispatchEvent(new Event("did-close"));
|
|
2051
|
+
}
|
|
2052
|
+
get open() {
|
|
2053
|
+
return this._open;
|
|
2054
|
+
}
|
|
2055
|
+
render() {
|
|
2056
|
+
return (0,external_lit_.html) `
|
|
2057
|
+
<div class="container">
|
|
2058
|
+
<slot name="drawer-container"></slot>
|
|
2059
|
+
</div>
|
|
2060
|
+
<div class="overlay" @click=${() => (this.open = false)}></div>
|
|
2061
|
+
<div class="drawer" @touchstart=${this.touchStart} @touchmove=${this.touchMove} @touchend=${this.touchEnd}>
|
|
2062
|
+
<div class="drawer-header">
|
|
2063
|
+
<slot name="drawer-header"></slot>
|
|
2064
|
+
</div>
|
|
2065
|
+
<div class="drawer-content">
|
|
2066
|
+
<slot name="drawer-content"></slot>
|
|
2067
|
+
</div>
|
|
2068
|
+
<div class="drawer-footer">
|
|
2069
|
+
<slot name="drawer-footer"></slot>
|
|
2070
|
+
</div>
|
|
2071
|
+
<div class="drawer-swipe"></div>
|
|
2072
|
+
</div>
|
|
2073
|
+
|
|
2074
|
+
`;
|
|
2075
|
+
}
|
|
2076
|
+
updated(props) {
|
|
2077
|
+
if (props.has("overQuery"))
|
|
2078
|
+
this.overMediaQuery();
|
|
2079
|
+
if (props.has("openQuery")) {
|
|
2080
|
+
if (window.matchMedia(this.openQuery).matches)
|
|
2081
|
+
this.show();
|
|
2082
|
+
}
|
|
2083
|
+
if (props.has("open") && this.swipeable) {
|
|
2084
|
+
requestAnimationFrame(_ => {
|
|
2085
|
+
this.$drawer.removeAttribute('style');
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
overMediaQuery() {
|
|
2090
|
+
if (this.mql)
|
|
2091
|
+
this.mql.removeEventListener("change", this.overMediaQueryListener.bind(this));
|
|
2092
|
+
this.mql = window.matchMedia(this.overQuery);
|
|
2093
|
+
this.mql.matches ? this.setAttribute("over", "") : this.removeAttribute("over");
|
|
2094
|
+
this.mql.addEventListener("change", this.overMediaQueryListener.bind(this));
|
|
2095
|
+
}
|
|
2096
|
+
overMediaQueryListener(e) {
|
|
2097
|
+
e.matches ? this.setAttribute("over", "") : this.removeAttribute("over");
|
|
2098
|
+
}
|
|
2099
|
+
hideIfOver() {
|
|
2100
|
+
var _a;
|
|
2101
|
+
if ((this.overQuery && ((_a = this.mql) === null || _a === void 0 ? void 0 : _a.matches)) || this.over)
|
|
2102
|
+
this.open = false;
|
|
2103
|
+
}
|
|
2104
|
+
show() {
|
|
2105
|
+
this.open = true;
|
|
2106
|
+
}
|
|
2107
|
+
hide() {
|
|
2108
|
+
this.open = false;
|
|
2109
|
+
}
|
|
2110
|
+
toggle() {
|
|
2111
|
+
this.open = !this.open;
|
|
2112
|
+
}
|
|
2113
|
+
touchStart(event) {
|
|
2114
|
+
if (!this.swipeable)
|
|
2115
|
+
return;
|
|
2116
|
+
this.$drawer.style.transition = "transform 0ms ease";
|
|
2117
|
+
this.swipeX = event.touches[0].clientX;
|
|
2118
|
+
this.swipeY = event.touches[0].clientY;
|
|
2119
|
+
}
|
|
2120
|
+
touchMove(event) {
|
|
2121
|
+
if (!this.swipeable)
|
|
2122
|
+
return;
|
|
2123
|
+
const deltaX = event.touches[0].clientX - this.swipeX;
|
|
2124
|
+
const deltaY = event.touches[0].clientY - this.swipeY;
|
|
2125
|
+
this.isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
|
|
2126
|
+
if (!this.isHorizontalSwipe)
|
|
2127
|
+
return;
|
|
2128
|
+
var x = this.open ?
|
|
2129
|
+
deltaX > 0 ? 0 : deltaX :
|
|
2130
|
+
deltaX < 0 ? 0 : deltaX;
|
|
2131
|
+
var transformString;
|
|
2132
|
+
this.open ?
|
|
2133
|
+
transformString = "translateX(" + x + "px)" :
|
|
2134
|
+
transformString = `translateX(min(calc(-100% + 10px + ${x}px), 0px)`;
|
|
2135
|
+
requestAnimationFrame(_ => {
|
|
2136
|
+
this.$drawer.style.transform = transformString;
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
touchEnd(event) {
|
|
2140
|
+
if (!this.swipeable)
|
|
2141
|
+
return;
|
|
2142
|
+
requestAnimationFrame(_ => {
|
|
2143
|
+
this.$drawer.removeAttribute('style');
|
|
2144
|
+
});
|
|
2145
|
+
const deltaX = event.changedTouches[0].clientX - this.swipeX;
|
|
2146
|
+
if (this.isHorizontalSwipe && this.open)
|
|
2147
|
+
this.open = -50 > deltaX ? false : true;
|
|
2148
|
+
else if (this.isHorizontalSwipe && !this.open) {
|
|
2149
|
+
console.log("bbb", deltaX, 50 < Math.abs(deltaX) ? true : false);
|
|
2150
|
+
this.open = 50 < deltaX ? true : false;
|
|
2151
|
+
}
|
|
2152
|
+
this.isHorizontalSwipe = false;
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
TkDrawer.styles = (0,external_lit_.css) `
|
|
2156
|
+
${(0,external_lit_.unsafeCSS)(drawer)}
|
|
2157
|
+
`;
|
|
2158
|
+
__decorate([
|
|
2159
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
2160
|
+
], TkDrawer.prototype, "open", null);
|
|
2161
|
+
__decorate([
|
|
2162
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
2163
|
+
], TkDrawer.prototype, "over", void 0);
|
|
2164
|
+
__decorate([
|
|
2165
|
+
(0,decorators_js_.property)({ type: String, attribute: "open-query" })
|
|
2166
|
+
], TkDrawer.prototype, "openQuery", void 0);
|
|
2167
|
+
__decorate([
|
|
2168
|
+
(0,decorators_js_.property)({ type: String, attribute: "over-query" })
|
|
2169
|
+
], TkDrawer.prototype, "overQuery", void 0);
|
|
2170
|
+
__decorate([
|
|
2171
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
2172
|
+
], TkDrawer.prototype, "right", void 0);
|
|
2173
|
+
__decorate([
|
|
2174
|
+
(0,decorators_js_.property)({ type: Boolean, reflect: true })
|
|
2175
|
+
], TkDrawer.prototype, "swipeable", void 0);
|
|
2176
|
+
__decorate([
|
|
2177
|
+
(0,decorators_js_.query)("div.drawer")
|
|
2178
|
+
], TkDrawer.prototype, "$drawer", void 0);
|
|
2179
|
+
__decorate([
|
|
2180
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
2181
|
+
], TkDrawer.prototype, "touchStart", null);
|
|
2182
|
+
__decorate([
|
|
2183
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
2184
|
+
], TkDrawer.prototype, "touchMove", null);
|
|
2185
|
+
__decorate([
|
|
2186
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
2187
|
+
], TkDrawer.prototype, "touchEnd", null);
|
|
2188
|
+
TkDrawer = __decorate([
|
|
2189
|
+
(0,decorators_js_.customElement)("tk-drawer")
|
|
2190
|
+
], TkDrawer);
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
/***/ }),
|
|
2195
|
+
|
|
2196
|
+
/***/ 6141:
|
|
2197
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2198
|
+
|
|
2199
|
+
/* harmony import */ var _textfield__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1481);
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
|
|
2203
|
+
/***/ }),
|
|
2204
|
+
|
|
2205
|
+
/***/ 6361:
|
|
2206
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
// EXPORTS
|
|
2210
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2211
|
+
I: () => (/* binding */ TkTabGroup)
|
|
2212
|
+
});
|
|
2213
|
+
|
|
2214
|
+
// EXTERNAL MODULE: external "lit"
|
|
2215
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2216
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2217
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2218
|
+
;// ./tinkiet/tab-group/tab-group.scss
|
|
2219
|
+
/* harmony default export */ const tab_group = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-block;position:relative;overflow-x:hidden}:host([overflow]){overflow-x:auto}.tabs{display:flex}:host(:not([circle])) .tabs{border-bottom:solid 2px hsl(var(--primary-container))}.underline{will-change:transform;margin-top:-2px;background-color:hsl(var(--primary));height:2px;transition:transform ease 200ms;width:0}.circle{background-color:hsl(var(--primary));height:8px;width:8px;border-radius:var(--border-radius-circle, 50%);transition:transform ease 300ms}");
|
|
2220
|
+
;// ./tinkiet/tab-group/tab-group.ts
|
|
2221
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2222
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2223
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2224
|
+
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;
|
|
2225
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
let TkTabGroup = class TkTabGroup extends external_lit_.LitElement {
|
|
2231
|
+
render() {
|
|
2232
|
+
return (0,external_lit_.html) `
|
|
2233
|
+
<div class="tabs">
|
|
2234
|
+
<slot @click=${(e) => this.clickOnTab(e.target)} @slotchange=${() => this.updateUnderline()}></slot>
|
|
2235
|
+
</div>
|
|
2236
|
+
<div class="underline"></div>
|
|
2237
|
+
`;
|
|
2238
|
+
}
|
|
2239
|
+
constructor() {
|
|
2240
|
+
super();
|
|
2241
|
+
this.secondary = false;
|
|
2242
|
+
this.observe = "";
|
|
2243
|
+
this.selected = "";
|
|
2244
|
+
}
|
|
2245
|
+
firstUpdated() {
|
|
2246
|
+
if (IntersectionObserver) {
|
|
2247
|
+
const observer = new IntersectionObserver(this.updateUnderline.bind(this));
|
|
2248
|
+
observer.observe(this);
|
|
2249
|
+
}
|
|
2250
|
+
else {
|
|
2251
|
+
this.updateUnderline.bind(this);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
updated(props) {
|
|
2255
|
+
var _a, _b;
|
|
2256
|
+
if (props.has("selected") && this.selected !== "") {
|
|
2257
|
+
this.querySelectorAll("*").forEach(node => node.removeAttribute("selected"));
|
|
2258
|
+
(_a = this.querySelector(`[tab="${this.selected}"]`)) === null || _a === void 0 ? void 0 : _a.setAttribute("selected", "");
|
|
2259
|
+
}
|
|
2260
|
+
if (props.has("observe")) {
|
|
2261
|
+
(_b = this.querySelector(`[tab="${this.selected}"]`)) === null || _b === void 0 ? void 0 : _b.focus();
|
|
2262
|
+
this.updateUnderline();
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
clickOnTab(tab) {
|
|
2266
|
+
this.querySelectorAll("*").forEach(node => node.removeAttribute("selected"));
|
|
2267
|
+
tab.setAttribute("selected", "");
|
|
2268
|
+
this.updateUnderline();
|
|
2269
|
+
this.dispatchEvent(new CustomEvent("change", { detail: tab.getAttribute("tab"), composed: true, bubbles: true }));
|
|
2270
|
+
}
|
|
2271
|
+
updateUnderline() {
|
|
2272
|
+
const selected = this.querySelector("[selected]");
|
|
2273
|
+
if (selected) {
|
|
2274
|
+
setTimeout(() => {
|
|
2275
|
+
this.$underline.style.width = selected.clientWidth + "px";
|
|
2276
|
+
this.$underline.style.transform = `translateX(${selected.offsetLeft}px)`;
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
};
|
|
2281
|
+
TkTabGroup.styles = (0,external_lit_.css) `
|
|
2282
|
+
${(0,external_lit_.unsafeCSS)(tab_group)}
|
|
2283
|
+
`;
|
|
2284
|
+
__decorate([
|
|
2285
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean })
|
|
2286
|
+
], TkTabGroup.prototype, "secondary", void 0);
|
|
2287
|
+
__decorate([
|
|
2288
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
2289
|
+
], TkTabGroup.prototype, "observe", void 0);
|
|
2290
|
+
__decorate([
|
|
2291
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
2292
|
+
], TkTabGroup.prototype, "selected", void 0);
|
|
2293
|
+
__decorate([
|
|
2294
|
+
(0,decorators_js_.query)(".underline")
|
|
2295
|
+
], TkTabGroup.prototype, "$underline", void 0);
|
|
2296
|
+
__decorate([
|
|
2297
|
+
(0,decorators_js_.query)(".circle")
|
|
2298
|
+
], TkTabGroup.prototype, "$circle", void 0);
|
|
2299
|
+
TkTabGroup = __decorate([
|
|
2300
|
+
(0,decorators_js_.customElement)("tk-tab-group")
|
|
2301
|
+
], TkTabGroup);
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
/***/ }),
|
|
2306
|
+
|
|
2307
|
+
/***/ 6668:
|
|
2308
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2309
|
+
|
|
2310
|
+
|
|
2311
|
+
// EXPORTS
|
|
2312
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2313
|
+
U: () => (/* binding */ TkButton)
|
|
2314
|
+
});
|
|
2315
|
+
|
|
2316
|
+
// EXTERNAL MODULE: external "lit"
|
|
2317
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2318
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2319
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2320
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
2321
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
2322
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
2323
|
+
var box = __webpack_require__(3433);
|
|
2324
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
2325
|
+
var unique = __webpack_require__(3770);
|
|
2326
|
+
;// ./tinkiet/button/button.scss
|
|
2327
|
+
/* harmony default export */ const button_button = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;justify-content:center;flex-shrink:0;flex-direction:row;align-items:center;position:relative;cursor:pointer;text-align:center;text-decoration:none;vertical-align:middle;text-overflow:ellipsis;user-select:none;overflow:hidden;border-radius:20px;height:40px;width:40px;color:hsl(var(--primary))}:host tk-icon{width:24px;height:24px}:host([extended]){width:auto}:host([extended]) .content{display:flex;align-items:center;pointer-events:none;font-family:Roboto,sans-serif;line-height:20px;font-size:var(--font-size, 14px);font-weight:500;margin:0 24px}:host([extended]) .content.has-icon{margin:0 24px 0 8px}:host([extended]) tk-icon{margin-left:16px;width:18px;height:18px}:host(:hover),:host(:focus){background-color:hsla(var(--primary), 0.3);outline:none}:host([elevated]){background-color:hsl(var(--surface-container-low));color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:host([elevated]:hover),:host([elevated]:focus){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);background-color:hsl(var(--surface-container-high));outline:none}:host([filled]){background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([filled]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--primary), 0.6)}:host([filled]:focus){background-color:hsla(var(--primary), 0.6);outline:none}:host([tonal]){background-color:hsl(var(--secondary-container));color:hsl(var(--on-secondary-container))}:host([tonal]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--on-secondary-container), 0.3)}:host([tonal]:focus){background-color:hsla(var(--on-secondary-container), 0.3);outline:none}:host([outlined]){background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));color:hsl(var(--primary))}:host([outlined]:hover){background-color:hsla(var(--primary), 0.08);color:hsl(var(--primary))}:host([outlined]:focus){background-color:hsla(var(--primary), 0.12);border-color:hsl(var(--primary));outline:none}:host([fab]){background-color:hsl(var(--primary));display:inline-flex;justify-content:center;align-items:center;color:hsl(var(--on-primary));box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);width:56px;height:56px;padding:12px;border-radius:16px}:host([fab]) tk-icon{margin-left:0;width:24px;height:24px}:host([fab]) .content{margin:0}:host([fab][extended]){width:auto;min-width:80px}:host([fab][extended]) .content{margin:0 24px}:host([fab][extended]) .content.has-icon{margin:0 24px 0 8px}:host([fab][extended]) tk-icon{margin-left:16px}:host([fab]:hover){background-color:hsla(var(--on-primary-container), 0.3)}:host([fab]:focus){box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);background-color:hsla(var(--on-primary-container), 0.3);outline:none}:host([fab][small]){width:40px;height:40px;border-radius:12px}:host([fab][small]) tk-icon{width:24px;height:24px}:host([fab][large]){width:96px;height:96px;border-radius:28px}:host([fab][large]) tk-icon{width:36px;height:36px}:host([disabled]){pointer-events:none;cursor:not-allowed;background-color:hsla(var(--on-surface), 0.12);box-shadow:none;opacity:.5;color:hsl(var(--on-surface))}");
|
|
2328
|
+
;// ./tinkiet/button/button.ts
|
|
2329
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2330
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2331
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2332
|
+
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;
|
|
2333
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* A button web component
|
|
2343
|
+
*
|
|
2344
|
+
* @cssprop --tk-badge-color - Color of widget
|
|
2345
|
+
* @cssprop [--tk-badge-color=--primary]
|
|
2346
|
+
* @cssprop --tk-badge-text-color - Text color of widget to --on-primary-color
|
|
2347
|
+
*
|
|
2348
|
+
* @attr {Boolean} accent - accent colors
|
|
2349
|
+
* @attr {Boolean} disabled - Disable this element
|
|
2350
|
+
* @attr {Boolean} inverted - color and text-color are inverted
|
|
2351
|
+
* @attr {Boolean} outlined - outlined
|
|
2352
|
+
* @attr {Boolean} pill - rounded corner
|
|
2353
|
+
* @attr {Boolean} ripple - display ripple when active
|
|
2354
|
+
* @attr {Boolean} small - mini button
|
|
2355
|
+
*/
|
|
2356
|
+
let TkButton = class TkButton extends box/* TkBox */.P {
|
|
2357
|
+
constructor() {
|
|
2358
|
+
super(...arguments);
|
|
2359
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
2360
|
+
this.href = null;
|
|
2361
|
+
this.type = "button";
|
|
2362
|
+
this.disabled = false;
|
|
2363
|
+
this.fab = false;
|
|
2364
|
+
this.ripple = true;
|
|
2365
|
+
}
|
|
2366
|
+
static get styles() {
|
|
2367
|
+
return [
|
|
2368
|
+
...box/* TkBox */.P.styles,
|
|
2369
|
+
(0,external_lit_.css) `
|
|
2370
|
+
${(0,external_lit_.unsafeCSS)(button_button)}
|
|
2371
|
+
`
|
|
2372
|
+
];
|
|
2373
|
+
}
|
|
2374
|
+
render() {
|
|
2375
|
+
return (0,external_lit_.html) `
|
|
2376
|
+
${this.iconPath
|
|
2377
|
+
? (0,external_lit_.html) `
|
|
2378
|
+
<tk-icon path="${this.iconPath}"></tk-icon>
|
|
2379
|
+
`
|
|
2380
|
+
: ""}
|
|
2381
|
+
|
|
2382
|
+
<div class="content ${this.iconPath ? "has-icon" : ""}" @slotchange=${this.slotChanged}>
|
|
2383
|
+
<slot></slot>
|
|
2384
|
+
</div>
|
|
2385
|
+
|
|
2386
|
+
${this.href
|
|
2387
|
+
? (0,external_lit_.html) `
|
|
2388
|
+
<a tabindex="-1" hidden id="ahref" href="${this.href}" target="${(0,if_defined_js_.ifDefined)(this.target)}" rel="noreferrer"></a>
|
|
2389
|
+
`
|
|
2390
|
+
: ""}
|
|
2391
|
+
<button id=${this._id} hidden type="${(0,if_defined_js_.ifDefined)(this.type)}"></button>
|
|
2392
|
+
`;
|
|
2393
|
+
}
|
|
2394
|
+
connectedCallback() {
|
|
2395
|
+
super.connectedCallback();
|
|
2396
|
+
this.addEventListener("click", this.handleClick.bind(this));
|
|
2397
|
+
}
|
|
2398
|
+
disconnectedCallback() {
|
|
2399
|
+
super.disconnectedCallback();
|
|
2400
|
+
this.removeEventListener("click", this.handleClick);
|
|
2401
|
+
this.removeEventListener("keydown", this.onKeyDown);
|
|
2402
|
+
}
|
|
2403
|
+
updated(props) {
|
|
2404
|
+
this.tabIndex = this.disabled ? -1 : 0;
|
|
2405
|
+
super.updated(props);
|
|
2406
|
+
}
|
|
2407
|
+
onKeyDown(e) {
|
|
2408
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
2409
|
+
e.preventDefault();
|
|
2410
|
+
e.stopPropagation();
|
|
2411
|
+
this.click();
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
firstUpdated() {
|
|
2415
|
+
if (this.type == "submit" || this.type == "reset")
|
|
2416
|
+
this.appendChild(this.$button);
|
|
2417
|
+
}
|
|
2418
|
+
handleClick(e) {
|
|
2419
|
+
var _a;
|
|
2420
|
+
if (this.href && e.isTrusted) {
|
|
2421
|
+
e.stopPropagation();
|
|
2422
|
+
e.preventDefault();
|
|
2423
|
+
this.$ahref.click();
|
|
2424
|
+
}
|
|
2425
|
+
else if ((e.isTrusted && this.type == "submit") || this.type == "reset") {
|
|
2426
|
+
(_a = this.querySelector("button")) === null || _a === void 0 ? void 0 : _a.click();
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
slotChanged() {
|
|
2430
|
+
var _a;
|
|
2431
|
+
const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
2432
|
+
const elements = slot === null || slot === void 0 ? void 0 : slot.assignedNodes({ flatten: true });
|
|
2433
|
+
if (elements && elements.length > 0) {
|
|
2434
|
+
this.setAttribute('extended', '');
|
|
2435
|
+
}
|
|
2436
|
+
else {
|
|
2437
|
+
this.removeAttribute('extended');
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
};
|
|
2441
|
+
__decorate([
|
|
2442
|
+
(0,decorators_js_.property)()
|
|
2443
|
+
], TkButton.prototype, "href", void 0);
|
|
2444
|
+
__decorate([
|
|
2445
|
+
(0,decorators_js_.property)()
|
|
2446
|
+
], TkButton.prototype, "target", void 0);
|
|
2447
|
+
__decorate([
|
|
2448
|
+
(0,decorators_js_.property)()
|
|
2449
|
+
], TkButton.prototype, "type", void 0);
|
|
2450
|
+
__decorate([
|
|
2451
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2452
|
+
], TkButton.prototype, "disabled", void 0);
|
|
2453
|
+
__decorate([
|
|
2454
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2455
|
+
], TkButton.prototype, "fab", void 0);
|
|
2456
|
+
__decorate([
|
|
2457
|
+
(0,decorators_js_.property)({ type: String })
|
|
2458
|
+
], TkButton.prototype, "iconPath", void 0);
|
|
2459
|
+
__decorate([
|
|
2460
|
+
(0,decorators_js_.property)()
|
|
2461
|
+
], TkButton.prototype, "ripple", void 0);
|
|
2462
|
+
__decorate([
|
|
2463
|
+
(0,decorators_js_.query)("#ahref")
|
|
2464
|
+
], TkButton.prototype, "$ahref", void 0);
|
|
2465
|
+
__decorate([
|
|
2466
|
+
(0,decorators_js_.query)("button")
|
|
2467
|
+
], TkButton.prototype, "$button", void 0);
|
|
2468
|
+
TkButton = __decorate([
|
|
2469
|
+
(0,decorators_js_.customElement)("tk-button")
|
|
2470
|
+
], TkButton);
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
/***/ }),
|
|
2475
|
+
|
|
2476
|
+
/***/ 6916:
|
|
2477
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
// EXPORTS
|
|
2481
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2482
|
+
C: () => (/* binding */ TkSwitch)
|
|
2483
|
+
});
|
|
2484
|
+
|
|
2485
|
+
// EXTERNAL MODULE: external "lit"
|
|
2486
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2487
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2488
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2489
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
2490
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
2491
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
2492
|
+
var box = __webpack_require__(3433);
|
|
2493
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
2494
|
+
var unique = __webpack_require__(3770);
|
|
2495
|
+
;// ./tinkiet/switch/switch.scss
|
|
2496
|
+
/* harmony default export */ const switch_switch = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .switch{background:hsl(var(--surface-container-highest));border:solid 2px hsl(var(--outline));width:52px;height:32px;border-radius:9999px;transition:var(--switch-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));display:inline-flex;flex-shrink:0;align-items:center;position:relative;-webkit-user-select:none;user-select:none;will-change:background-color}:host .switch .state{width:40px;height:40px;border-radius:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;outline:none;margin-left:-5px;transition:var(--switch-knob-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));will-change:background-color,transform}:host .switch .state #knob{width:16px;height:16px;border-radius:100%;background:hsl(var(--outline));position:absolute;will-change:background-color}:host .label{margin-left:10px}:host(:not([disabled])){cursor:pointer}:host([checked]) .switch{background:hsl(var(--primary));border:none}:host([checked]) .switch .state{transform:translateX(18px)}:host([checked]) .switch .state #knob{width:24px;height:24px;background:hsl(var(--on-primary))}:host(:focus) .switch .state,:host(:hover) .switch .state{background:hsla(var(--surface-container-highest), 0.8)}:host([checked]:focus) .switch .state,:host([checked]:hover) .switch .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none}:host([disabled]) .switch{background:hsla(var(--surface-container-highest), 0.12);border-color:hsla(var(--on-surface), 0.12)}:host([disabled]) .switch .state #knob{background:hsla(var(--on-surface), 0.38)}:host([disabled]) .label{opacity:.6}:host([disabled][checked]) .switch{background:hsla(var(--on-surface), 0.12);border:none}:host([disabled][checked]) .switch .state #knob{background:hsla(var(--surface), 1)}");
|
|
2497
|
+
;// ./tinkiet/switch/switch.ts
|
|
2498
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2499
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2500
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2501
|
+
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;
|
|
2502
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2503
|
+
};
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
let TkSwitch = class TkSwitch extends external_lit_.LitElement {
|
|
2511
|
+
constructor() {
|
|
2512
|
+
super(...arguments);
|
|
2513
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
2514
|
+
this.checked = false;
|
|
2515
|
+
this.required = false;
|
|
2516
|
+
this.disabled = false;
|
|
2517
|
+
this.readonly = false;
|
|
2518
|
+
}
|
|
2519
|
+
render() {
|
|
2520
|
+
return (0,external_lit_.html) `
|
|
2521
|
+
<tk-box direction="row" align-items="center">
|
|
2522
|
+
<span class="switch">
|
|
2523
|
+
<tk-box ripple tabindex="${this.disabled ? -1 : 0}" class="state">
|
|
2524
|
+
<span id="knob"></span>
|
|
2525
|
+
</tk-box>
|
|
2526
|
+
</span>
|
|
2527
|
+
<span class="label"><slot></slot></span>
|
|
2528
|
+
</tk-box>
|
|
2529
|
+
<input
|
|
2530
|
+
id=${this._id}
|
|
2531
|
+
slot="none"
|
|
2532
|
+
style="display: none;"
|
|
2533
|
+
type="radio"
|
|
2534
|
+
?checked="${this.checked}"
|
|
2535
|
+
?required="${this.required}"
|
|
2536
|
+
?disabled="${this.disabled}"
|
|
2537
|
+
?readonly="${this.readonly}"
|
|
2538
|
+
value="${(0,if_defined_js_.ifDefined)(this.value)}"
|
|
2539
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
2540
|
+
aria-hidden="true"
|
|
2541
|
+
tabindex="-1"
|
|
2542
|
+
/>
|
|
2543
|
+
`;
|
|
2544
|
+
}
|
|
2545
|
+
connectedCallback() {
|
|
2546
|
+
super.connectedCallback();
|
|
2547
|
+
this.addEventListener("click", this.handleClick.bind(this));
|
|
2548
|
+
this.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
2549
|
+
}
|
|
2550
|
+
disconnectedCallback() {
|
|
2551
|
+
super.disconnectedCallback();
|
|
2552
|
+
this.removeEventListener("click", this.handleClick);
|
|
2553
|
+
this.removeEventListener("keydown", this.onKeyDown);
|
|
2554
|
+
}
|
|
2555
|
+
firstUpdated() {
|
|
2556
|
+
this.appendChild(this.$input);
|
|
2557
|
+
}
|
|
2558
|
+
onKeyDown(e) {
|
|
2559
|
+
if (e.code === "Space" || e.code === "Enter") {
|
|
2560
|
+
e.preventDefault();
|
|
2561
|
+
e.stopPropagation();
|
|
2562
|
+
this.click();
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
handleClick() {
|
|
2566
|
+
this.checked = !this.checked;
|
|
2567
|
+
if (this.checked && this.name)
|
|
2568
|
+
this.getRootNode()
|
|
2569
|
+
.querySelectorAll(`tk-radio[name="${this.name}"]`)
|
|
2570
|
+
.forEach(el => (el != this ? (el.checked = false) : null));
|
|
2571
|
+
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2574
|
+
TkSwitch.styles = (0,external_lit_.css) `
|
|
2575
|
+
${(0,external_lit_.unsafeCSS)(switch_switch)}
|
|
2576
|
+
`;
|
|
2577
|
+
__decorate([
|
|
2578
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
2579
|
+
], TkSwitch.prototype, "name", void 0);
|
|
2580
|
+
__decorate([
|
|
2581
|
+
(0,decorators_js_.property)({ attribute: true, type: Boolean, reflect: true })
|
|
2582
|
+
], TkSwitch.prototype, "checked", void 0);
|
|
2583
|
+
__decorate([
|
|
2584
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2585
|
+
], TkSwitch.prototype, "required", void 0);
|
|
2586
|
+
__decorate([
|
|
2587
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2588
|
+
], TkSwitch.prototype, "disabled", void 0);
|
|
2589
|
+
__decorate([
|
|
2590
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2591
|
+
], TkSwitch.prototype, "readonly", void 0);
|
|
2592
|
+
__decorate([
|
|
2593
|
+
(0,decorators_js_.property)({ type: String, reflect: true })
|
|
2594
|
+
], TkSwitch.prototype, "value", void 0);
|
|
2595
|
+
__decorate([
|
|
2596
|
+
(0,decorators_js_.query)("input")
|
|
2597
|
+
], TkSwitch.prototype, "$input", void 0);
|
|
2598
|
+
TkSwitch = __decorate([
|
|
2599
|
+
(0,decorators_js_.customElement)("tk-switch")
|
|
2600
|
+
], TkSwitch);
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
/***/ }),
|
|
2605
|
+
|
|
2606
|
+
/***/ 7136:
|
|
2607
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2608
|
+
|
|
2609
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6668);
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
|
|
2613
|
+
/***/ }),
|
|
2614
|
+
|
|
2615
|
+
/***/ 7401:
|
|
2616
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
// EXPORTS
|
|
2620
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2621
|
+
l: () => (/* binding */ TkSlider)
|
|
2622
|
+
});
|
|
2623
|
+
|
|
2624
|
+
// EXTERNAL MODULE: external "lit"
|
|
2625
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2626
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2627
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2628
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
2629
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
2630
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
2631
|
+
var unique = __webpack_require__(3770);
|
|
2632
|
+
;// ./tinkiet/slider/slider.scss
|
|
2633
|
+
/* harmony default export */ const slider = ("*{-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)}:host{--_perc: 0;--_slider-track-bg: var(--slider-bg, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active, hsl(var(--primary)));--_slider-thumb-bg: var(--slider-thumb-bg, hsl(var(--on-primary)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--primary)))}:host([disabled]){--_slider-track-bg: var(--slider-bg-disabled, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active-disabled, hsl(var(--shadow)));--_slider-thumb-bg: var(--slider-thumb-bg-disabled, hsl(var(--shadow)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--shadow)))}:host([thumblabel]) #container,:host([thumblabel-persist]) #container{padding-top:33px}#container{overflow:visible;border:none}#slider{height:var(--slider-height, 0.3125rem);background:linear-gradient(90deg, var(--_slider-track-bg-active) 0, var(--_slider-track-bg-active) calc(var(--_perc) * 100%), var(--_slider-track-bg) calc(var(--_perc) * 100%), var(--_slider-track-bg));cursor:grab;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;box-sizing:border-box;margin:0;border-radius:0;top:calc(var(--slider-height, 0.3125rem)*-1/2)}#slider,#thumb-container{width:100%;position:relative}#thumb-label{--_thumb-label-transform-y: 0.625rem;left:calc(var(--_perc)*100% - var(--slider-thumb-size, 1.2rem)*var(--_perc));transform:translate(calc(-50% + var(--slider-thumb-size, 1.2rem) / 2), var(--_thumb-label-transform-y));width:var(--slider-thumb-label-size, 1.875rem);height:var(--slider-thumb-label-size, 1.875rem);border-radius:var(--slider-thumb-label-border-radius, 100%);color:var(--slider-thumb-label-color, hsl(var(--on-primary)));-webkit-text-fill-color:var(--slider-thumb-label-color, hsl(var(--on-primary)));font-size:var(--slider-thumb-label-font-size, 0.75rem);transition:var(--slider-thumb-label-transition, opacity var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));opacity:0;display:flex;align-items:center;justify-content:center;pointer-events:none;text-overflow:ellipsis;bottom:calc(100% + var(--slider-thumb-size, 0.75rem) + var(--slider-height, 0.3125rem) + var(--slider-thumb-space, 0.75rem))}#thumb-label,#thumb-label:before{background:var(--slider-thumb-label-bg, hsl(var(--primary)));position:absolute}#thumb-label:before{content:\"\";border-radius:0 50% 50% 50%;transform:rotate(225deg);width:100%;left:0;top:0;height:100%;z-index:-1}:host([thumblabel-persist]) #thumb-label,#slider:focus+#thumb-container #thumb-label,:host:focus #thumb-label{--_thumb-label-transform-y: 0;opacity:1}#slider::-webkit-slider-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-webkit-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-webkit-appearance:none;appearance:none;cursor:grab;position:relative}#slider::-moz-range-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-moz-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-moz-appearance:none;appearance:none;border:none;cursor:grab;position:relative}#slider:focus::-webkit-slider-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}#slider:focus::-moz-range-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}");
|
|
2634
|
+
;// ./tinkiet/slider/slider.ts
|
|
2635
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2636
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2637
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2638
|
+
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;
|
|
2639
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
let TkSlider = class TkSlider extends external_lit_.LitElement {
|
|
2647
|
+
constructor() {
|
|
2648
|
+
super(...arguments);
|
|
2649
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
2650
|
+
this.required = false;
|
|
2651
|
+
this.disabled = false;
|
|
2652
|
+
this.readonly = false;
|
|
2653
|
+
this.thumbLabel = false;
|
|
2654
|
+
this.thumbLabelPersist = false;
|
|
2655
|
+
this.min = 0;
|
|
2656
|
+
this.value = this.min;
|
|
2657
|
+
this.max = 100;
|
|
2658
|
+
}
|
|
2659
|
+
render() {
|
|
2660
|
+
return (0,external_lit_.html) `
|
|
2661
|
+
<div id="container">
|
|
2662
|
+
<slot id="before" name="before"></slot>
|
|
2663
|
+
<div id="wrapper">
|
|
2664
|
+
<div id="label">${this.label}</div>
|
|
2665
|
+
<div id="slot-wrapper">
|
|
2666
|
+
<input
|
|
2667
|
+
@input="${this.handleChange.bind(this)}"
|
|
2668
|
+
id="slider"
|
|
2669
|
+
type="range"
|
|
2670
|
+
.value="${this.value.toString()}"
|
|
2671
|
+
?required="${this.required}"
|
|
2672
|
+
?disabled="${this.disabled}"
|
|
2673
|
+
?readonly="${this.readonly}"
|
|
2674
|
+
aria-label="${(0,if_defined_js_.ifDefined)(this.label)}"
|
|
2675
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
2676
|
+
autocomplete="${(0,if_defined_js_.ifDefined)(this.autocomplete)}"
|
|
2677
|
+
min="${(0,if_defined_js_.ifDefined)(this.min)}"
|
|
2678
|
+
max="${(0,if_defined_js_.ifDefined)(this.max)}"
|
|
2679
|
+
step="${(0,if_defined_js_.ifDefined)(this.step)}"
|
|
2680
|
+
tabindex="0"
|
|
2681
|
+
/>
|
|
2682
|
+
${this.thumbLabel || this.thumbLabelPersist
|
|
2683
|
+
? (0,external_lit_.html) `
|
|
2684
|
+
<div id="thumb-container">
|
|
2685
|
+
<div id="thumb-label"><slot name="thumb-label">${this.value}</slot></div>
|
|
2686
|
+
</div>
|
|
2687
|
+
`
|
|
2688
|
+
: ''}
|
|
2689
|
+
</div>
|
|
2690
|
+
<input
|
|
2691
|
+
id=${this._id}
|
|
2692
|
+
class="hidden-input"
|
|
2693
|
+
type="hidden"
|
|
2694
|
+
value="${this.value.toString()}"
|
|
2695
|
+
?required="${this.required}"
|
|
2696
|
+
?disabled="${this.disabled}"
|
|
2697
|
+
?readonly="${this.readonly}"
|
|
2698
|
+
aria-label="${(0,if_defined_js_.ifDefined)(this.label)}"
|
|
2699
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
2700
|
+
/>
|
|
2701
|
+
</div>
|
|
2702
|
+
<slot id="after" name="after"></slot>
|
|
2703
|
+
</div>
|
|
2704
|
+
`;
|
|
2705
|
+
}
|
|
2706
|
+
handleChange(e) {
|
|
2707
|
+
e.target.checkValidity() ? this.removeAttribute("invalid") : this.setAttribute("invalid", "");
|
|
2708
|
+
this.value = e.target.value.toString();
|
|
2709
|
+
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
2710
|
+
}
|
|
2711
|
+
firstUpdated() {
|
|
2712
|
+
this.appendChild(this.$input);
|
|
2713
|
+
this.setAttribute("dirty", "");
|
|
2714
|
+
}
|
|
2715
|
+
updated() {
|
|
2716
|
+
requestAnimationFrame(() => {
|
|
2717
|
+
this.style.setProperty("--_perc", ((Number(this.value) - this.min) / (this.max - this.min)).toString());
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
};
|
|
2721
|
+
TkSlider.styles = (0,external_lit_.css) `
|
|
2722
|
+
${(0,external_lit_.unsafeCSS)(slider)}
|
|
2723
|
+
`;
|
|
2724
|
+
__decorate([
|
|
2725
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
2726
|
+
], TkSlider.prototype, "name", void 0);
|
|
2727
|
+
__decorate([
|
|
2728
|
+
(0,decorators_js_.property)({ type: String })
|
|
2729
|
+
], TkSlider.prototype, "list", void 0);
|
|
2730
|
+
__decorate([
|
|
2731
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2732
|
+
], TkSlider.prototype, "required", void 0);
|
|
2733
|
+
__decorate([
|
|
2734
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2735
|
+
], TkSlider.prototype, "disabled", void 0);
|
|
2736
|
+
__decorate([
|
|
2737
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2738
|
+
], TkSlider.prototype, "readonly", void 0);
|
|
2739
|
+
__decorate([
|
|
2740
|
+
(0,decorators_js_.property)({ type: String })
|
|
2741
|
+
], TkSlider.prototype, "autocomplete", void 0);
|
|
2742
|
+
__decorate([
|
|
2743
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: "thumblabel" })
|
|
2744
|
+
], TkSlider.prototype, "thumbLabel", void 0);
|
|
2745
|
+
__decorate([
|
|
2746
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: "thumblabel-persist" })
|
|
2747
|
+
], TkSlider.prototype, "thumbLabelPersist", void 0);
|
|
2748
|
+
__decorate([
|
|
2749
|
+
(0,decorators_js_.property)({ type: String })
|
|
2750
|
+
], TkSlider.prototype, "label", void 0);
|
|
2751
|
+
__decorate([
|
|
2752
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2753
|
+
], TkSlider.prototype, "min", void 0);
|
|
2754
|
+
__decorate([
|
|
2755
|
+
(0,decorators_js_.property)({ type: Number, reflect: true })
|
|
2756
|
+
], TkSlider.prototype, "value", void 0);
|
|
2757
|
+
__decorate([
|
|
2758
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2759
|
+
], TkSlider.prototype, "max", void 0);
|
|
2760
|
+
__decorate([
|
|
2761
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2762
|
+
], TkSlider.prototype, "step", void 0);
|
|
2763
|
+
__decorate([
|
|
2764
|
+
(0,decorators_js_.query)("#slider")
|
|
2765
|
+
], TkSlider.prototype, "$slider", void 0);
|
|
2766
|
+
__decorate([
|
|
2767
|
+
(0,decorators_js_.query)(".hidden-input")
|
|
2768
|
+
], TkSlider.prototype, "$input", void 0);
|
|
2769
|
+
TkSlider = __decorate([
|
|
2770
|
+
(0,decorators_js_.customElement)("tk-slider")
|
|
2771
|
+
], TkSlider);
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
/***/ }),
|
|
2776
|
+
|
|
2777
|
+
/***/ 7441:
|
|
2778
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2779
|
+
|
|
2780
|
+
/* harmony import */ var _tab_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6361);
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
/***/ }),
|
|
2785
|
+
|
|
2786
|
+
/***/ 7650:
|
|
2787
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2788
|
+
|
|
2789
|
+
/* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4686);
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
/***/ }),
|
|
2794
|
+
|
|
2795
|
+
/***/ 7927:
|
|
2796
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
// EXPORTS
|
|
2800
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2801
|
+
i: () => (/* binding */ TkSelect)
|
|
2802
|
+
});
|
|
2803
|
+
|
|
2804
|
+
// EXTERNAL MODULE: external "lit"
|
|
2805
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2806
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2807
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2808
|
+
// EXTERNAL MODULE: external "lit/directives/if-defined.js"
|
|
2809
|
+
var if_defined_js_ = __webpack_require__(3517);
|
|
2810
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
2811
|
+
var box = __webpack_require__(3433);
|
|
2812
|
+
// EXTERNAL MODULE: ./tinkiet/utils/unique.ts
|
|
2813
|
+
var unique = __webpack_require__(3770);
|
|
2814
|
+
;// ./tinkiet/select/select.scss
|
|
2815
|
+
/* harmony default export */ const select_select = ("*{-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)}#arrow{fill:var(--_input-state-color);z-index:-1;height:8px;position:absolute;top:50%;right:0;transform:translate(-100%, -50%)}::slotted(option){display:none}:host(:not([dirty])) ::slotted(select){opacity:0}");
|
|
2816
|
+
;// ./tinkiet/select/select.ts
|
|
2817
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2818
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2819
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2820
|
+
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;
|
|
2821
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
let TkSelect = class TkSelect extends external_lit_.LitElement {
|
|
2830
|
+
constructor() {
|
|
2831
|
+
super(...arguments);
|
|
2832
|
+
this._id = (0,unique/* uniqueID */.z)();
|
|
2833
|
+
this.type = "text";
|
|
2834
|
+
this.required = false;
|
|
2835
|
+
this.disabled = false;
|
|
2836
|
+
this.readonly = false;
|
|
2837
|
+
}
|
|
2838
|
+
set value(value) {
|
|
2839
|
+
if (!this.$select) {
|
|
2840
|
+
this.initialValue = value;
|
|
2841
|
+
}
|
|
2842
|
+
else {
|
|
2843
|
+
this.$select.value = value;
|
|
2844
|
+
this.refreshAttributes();
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
get value() {
|
|
2848
|
+
return this.$select != null ? this.$select.value : this.initialValue || "";
|
|
2849
|
+
}
|
|
2850
|
+
render() {
|
|
2851
|
+
return (0,external_lit_.html) `
|
|
2852
|
+
<div id="container">
|
|
2853
|
+
<slot id="before" name="before"></slot>
|
|
2854
|
+
<div id="wrapper">
|
|
2855
|
+
<div id="label">${this.label}</div>
|
|
2856
|
+
<slot id="slot"></slot>
|
|
2857
|
+
<select
|
|
2858
|
+
id="${this._id}"
|
|
2859
|
+
@keydown=${this.handleChange.bind(this)}
|
|
2860
|
+
@input=${this.handleChange.bind(this)}
|
|
2861
|
+
@focusout=${this.handleChange.bind(this)}
|
|
2862
|
+
@change=${this.handleChange.bind(this)}
|
|
2863
|
+
.value="${this.initialValue}"
|
|
2864
|
+
?required="${this.required}"
|
|
2865
|
+
?disabled="${this.disabled}"
|
|
2866
|
+
?readonly="${this.readonly}"
|
|
2867
|
+
name="${(0,if_defined_js_.ifDefined)(this.name)}"
|
|
2868
|
+
autocomplete="${(0,if_defined_js_.ifDefined)(this.autocomplete)}"
|
|
2869
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
2870
|
+
></select>
|
|
2871
|
+
<svg id="arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 25" preserveAspectRatio="none">
|
|
2872
|
+
<polygon points="0,0 50,0 25,25" />
|
|
2873
|
+
</svg>
|
|
2874
|
+
</div>
|
|
2875
|
+
<slot id="after" name="after"></slot>
|
|
2876
|
+
</div>
|
|
2877
|
+
`;
|
|
2878
|
+
}
|
|
2879
|
+
handleChange() {
|
|
2880
|
+
this.refreshAttributes();
|
|
2881
|
+
}
|
|
2882
|
+
firstUpdated() {
|
|
2883
|
+
var _a;
|
|
2884
|
+
this.$select = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("select");
|
|
2885
|
+
this.appendChild(this.$select);
|
|
2886
|
+
const options = this.querySelectorAll("option");
|
|
2887
|
+
options.forEach(option => this.$select.appendChild(option));
|
|
2888
|
+
if (this.initialValue)
|
|
2889
|
+
this.value = this.initialValue;
|
|
2890
|
+
}
|
|
2891
|
+
refreshAttributes() {
|
|
2892
|
+
this.$select.value ? this.setAttribute("dirty", "") : this.removeAttribute("dirty");
|
|
2893
|
+
this.$select.checkValidity() ? this.removeAttribute("invalid") : this.setAttribute("invalid", "");
|
|
2894
|
+
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
2895
|
+
}
|
|
2896
|
+
};
|
|
2897
|
+
TkSelect.styles = (0,external_lit_.css) `
|
|
2898
|
+
${(0,external_lit_.unsafeCSS)(select_select)}
|
|
2899
|
+
`;
|
|
2900
|
+
__decorate([
|
|
2901
|
+
(0,decorators_js_.property)({ type: String })
|
|
2902
|
+
], TkSelect.prototype, "value", null);
|
|
2903
|
+
__decorate([
|
|
2904
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
2905
|
+
], TkSelect.prototype, "name", void 0);
|
|
2906
|
+
__decorate([
|
|
2907
|
+
(0,decorators_js_.property)({ type: String })
|
|
2908
|
+
], TkSelect.prototype, "list", void 0);
|
|
2909
|
+
__decorate([
|
|
2910
|
+
(0,decorators_js_.property)({ type: String })
|
|
2911
|
+
], TkSelect.prototype, "type", void 0);
|
|
2912
|
+
__decorate([
|
|
2913
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2914
|
+
], TkSelect.prototype, "required", void 0);
|
|
2915
|
+
__decorate([
|
|
2916
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2917
|
+
], TkSelect.prototype, "disabled", void 0);
|
|
2918
|
+
__decorate([
|
|
2919
|
+
(0,decorators_js_.property)({ type: Boolean })
|
|
2920
|
+
], TkSelect.prototype, "readonly", void 0);
|
|
2921
|
+
__decorate([
|
|
2922
|
+
(0,decorators_js_.property)({ type: String })
|
|
2923
|
+
], TkSelect.prototype, "autocomplete", void 0);
|
|
2924
|
+
__decorate([
|
|
2925
|
+
(0,decorators_js_.property)({ type: String })
|
|
2926
|
+
], TkSelect.prototype, "pattern", void 0);
|
|
2927
|
+
__decorate([
|
|
2928
|
+
(0,decorators_js_.state)()
|
|
2929
|
+
], TkSelect.prototype, "initialValue", void 0);
|
|
2930
|
+
__decorate([
|
|
2931
|
+
(0,decorators_js_.property)({ type: String })
|
|
2932
|
+
], TkSelect.prototype, "label", void 0);
|
|
2933
|
+
__decorate([
|
|
2934
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2935
|
+
], TkSelect.prototype, "min", void 0);
|
|
2936
|
+
__decorate([
|
|
2937
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2938
|
+
], TkSelect.prototype, "max", void 0);
|
|
2939
|
+
__decorate([
|
|
2940
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2941
|
+
], TkSelect.prototype, "minLength", void 0);
|
|
2942
|
+
__decorate([
|
|
2943
|
+
(0,decorators_js_.property)({ type: Number })
|
|
2944
|
+
], TkSelect.prototype, "maxLength", void 0);
|
|
2945
|
+
__decorate([
|
|
2946
|
+
(0,decorators_js_.eventOptions)({ passive: true })
|
|
2947
|
+
], TkSelect.prototype, "handleChange", null);
|
|
2948
|
+
TkSelect = __decorate([
|
|
2949
|
+
(0,decorators_js_.customElement)("tk-select")
|
|
2950
|
+
], TkSelect);
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
/***/ }),
|
|
2955
|
+
|
|
2956
|
+
/***/ 8469:
|
|
2957
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
// EXPORTS
|
|
2961
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2962
|
+
h: () => (/* binding */ TkTheme)
|
|
2963
|
+
});
|
|
2964
|
+
|
|
2965
|
+
// EXTERNAL MODULE: external "lit"
|
|
2966
|
+
var external_lit_ = __webpack_require__(2927);
|
|
2967
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
2968
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
2969
|
+
;// ./tinkiet/theme/theme.scss
|
|
2970
|
+
/* harmony default export */ const theme = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{font-family:var(--font-family, Roboto, sans-serif);font-size:var(--font-size, 1rem);--primary-0: var(--primary-h), var(--primary-s), 0%;--primary-10: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 20);--primary-20: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 10);--primary-30: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 5);--primary-40: var(--primary-h), var(--primary-s), calc(var(--primary-l));--primary-50: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 5);--primary-60: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 10);--primary-70: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 20);--primary-80: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 30);--primary-90: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 40);--primary-95: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 50);--primary-99: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 55);--primary-100: var(--primary-h), var(--primary-s), 100%;--secondary-0: var(--secondary-h), var(--secondary-s), 0%;--secondary-10: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 20);--secondary-20: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 10);--secondary-30: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 5);--secondary-40: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l));--secondary-50: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 5);--secondary-60: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 10);--secondary-70: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 20);--secondary-80: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 30);--secondary-90: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 40);--secondary-95: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 50);--secondary-99: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 55);--secondary-100: var(--secondary-h), var(--secondary-s), 100%;--tertiary-0: var(--tertiary-h), var(--tertiary-s), 0%;--tertiary-10: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 20);--tertiary-20: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 10);--tertiary-30: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 5);--tertiary-40: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l));--tertiary-50: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 5);--tertiary-60: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 10);--tertiary-70: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 20);--tertiary-80: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 30);--tertiary-90: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 40);--tertiary-95: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 50);--tertiary-99: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 55);--tertiary-100: var(--tertiary-h), var(--tertiary-s), 100%;--error-0: var(--error-h), var(--error-s), 0%;--error-10: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 20);--error-20: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 10);--error-30: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 5);--error-40: var(--error-h), var(--error-s), calc(var(--error-l));--error-50: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 5);--error-60: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 10);--error-70: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 20);--error-80: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 30);--error-90: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 40);--error-95: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 50);--error-99: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 55);--error-100: var(--error-h), var(--error-s), 100%;--neutral-0: var(--neutral-h), var(--neutral-s), 0%;--neutral-4: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 26);--neutral-6: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 24);--neutral-10: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 20);--neutral-12: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l)- (var(--neutral-l)) / 30 * 18);--neutral-17: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 13);--neutral-22: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 8);--neutral-24: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 6);--neutral-40: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l));--neutral-87: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 30);--neutral-90: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 34);--neutral-92: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 38);--neutral-94: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 42);--neutral-96: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 46);--neutral-98: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 54);--neutral-100: var(--neutral-h), var(--neutral-s), 100%;--neutral-variant-0: var(--neutral-variant-h), var(--neutral-variant-s), 0%;--neutral-variant-30: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) - (var(--neutral-variant-l)) / 30 * 10);--neutral-variant-50: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 5);--neutral-variant-60: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 10);--neutral-variant-80: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 30);--primary: var(--primary-40);--secondary: var(--secondary-40);--tertiary: var(--tertiary-40);--error: var(--error-40);--on-primary: var(--primary-100);--on-secondary: var(--secondary-100);--on-tertiary: var(--tertiary-100);--on-error: var(--error-100);--primary-container: var(--primary-90);--secondary-container: var(--secondary-90);--tertiary-container: var(--tertiary-90);--error-container: var(--error-90);--on-primary-container: var(--primary-10);--on-secondary-container: var(--secondary-10);--on-tertiary-container: var(--tertiary-10);--on-error-container: var(--error-10);--surface: var(--neutral-98);--surface-dim: var(--neutral-87);--surface-bright: var(--neutral-98);--surface-container-lowest: var(--neutral-100);--surface-container-low: var(--neutral-96);--surface-container: var(--neutral-94);--surface-container-high: var(--neutral-92);--surface-container-highest: var(--neutral-90);--surface-variant: var(--neutral-variant-90);--on-surface: var(--neutral-10);--on-surface-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--background: var(--neutral-98);--on-background: var(--neutral-10);--outline: var(--neutral-variant-50);--outline-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--inverse-primary: var(--primary-80);--shadow: var(--neutral-0);--scrim: var(--neutral-0);color:hsl(var(--on-background))}:host([inverted]){--primary: var(--primary-80);--secondary: var(--secondary-80);--tertiary: var(--tertiary-80);--error: var(--error-80);--on-primary: var(--primary-20);--on-secondary: var(--secondary-20);--on-tertiary: var(--tertiary-20);--on-error: var(--error-20);--primary-container: var(--primary-30);--secondary-container: var(--secondary-30);--tertiary-container: var(--tertiary-30);--error-container: var(--error-30);--on-primary-container: var(--primary-90);--on-secondary-container: var(--secondary-90);--on-tertiary-container: var(--tertiary-90);--on-error-container: var(--error-90);--surface: var(--neutral-6);--surface-dim: var(--neutral-6);--surface-bright: var(--neutral-24);--surface-container-lowest: var(--neutral-4);--surface-container-low: var(--neutral-10);--surface-container: var(--neutral-12);--surface-container-high: var(--neutral-17);--surface-container-highest: var(--neutral-22);--surface-variant: var(--neutral-variant-30);--on-surface: var(--neutral-90);--on-surface-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--background: var(--neutral-6);--on-background: var(--neutral-90);--outline: var(--neutral-variant-60);--outline-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--inverse-primary: var(--primary-40);--shadow: var(--neutral-0);--scrim: var(--neutral-0)}");
|
|
2971
|
+
;// ./tinkiet/theme/theme.ts
|
|
2972
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2973
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2974
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2975
|
+
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;
|
|
2976
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2977
|
+
};
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
let TkTheme = class TkTheme extends external_lit_.LitElement {
|
|
2982
|
+
constructor() {
|
|
2983
|
+
super(...arguments);
|
|
2984
|
+
this.primary = "#62519f";
|
|
2985
|
+
this.secondary = "#625B71";
|
|
2986
|
+
this.tertiary = "#7D5260";
|
|
2987
|
+
this.error = "#B3261E";
|
|
2988
|
+
this.neutral = "#5E5F5C";
|
|
2989
|
+
this.neutralVariant = "#5c6057";
|
|
2990
|
+
this.forceBody = false;
|
|
2991
|
+
this.inverted = false;
|
|
2992
|
+
}
|
|
2993
|
+
render() {
|
|
2994
|
+
return (0,external_lit_.html) `
|
|
2995
|
+
<slot></slot>
|
|
2996
|
+
`;
|
|
2997
|
+
}
|
|
2998
|
+
firstUpdated(_changedProperties) {
|
|
2999
|
+
this.setThemeColor();
|
|
3000
|
+
}
|
|
3001
|
+
hexToHSL(hex) {
|
|
3002
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(hex);
|
|
3003
|
+
if (result == null)
|
|
3004
|
+
return ["0", "0%", "0%"];
|
|
3005
|
+
const [, rHex, gHex, bHex] = result;
|
|
3006
|
+
const radix = 16;
|
|
3007
|
+
const r = parseInt(rHex, radix) / 255;
|
|
3008
|
+
const g = parseInt(gHex, radix) / 255;
|
|
3009
|
+
const b = parseInt(bHex, radix) / 255;
|
|
3010
|
+
const max = Math.max(r, g, b), min = Math.min(r, g, b);
|
|
3011
|
+
let h = 0, s = 0, l = (max + min) / 2;
|
|
3012
|
+
if (max != min) {
|
|
3013
|
+
const d = max - min;
|
|
3014
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
3015
|
+
switch (max) {
|
|
3016
|
+
case r:
|
|
3017
|
+
h = (g - b) / d + (g < b ? 6 : 0);
|
|
3018
|
+
break;
|
|
3019
|
+
case g:
|
|
3020
|
+
h = (b - r) / d + 2;
|
|
3021
|
+
break;
|
|
3022
|
+
case b:
|
|
3023
|
+
h = (r - g) / d + 4;
|
|
3024
|
+
break;
|
|
3025
|
+
}
|
|
3026
|
+
h /= 6;
|
|
3027
|
+
}
|
|
3028
|
+
return [(h * 360).toString(), (s * 100).toString() + "%", (l * 100).toString() + "%"];
|
|
3029
|
+
}
|
|
3030
|
+
setThemeColor() {
|
|
3031
|
+
this.primary_hsl = this.hexToHSL(this.primary);
|
|
3032
|
+
this.secondary_hsl = this.hexToHSL(this.secondary);
|
|
3033
|
+
this.tertiary_hsl = this.hexToHSL(this.tertiary);
|
|
3034
|
+
this.error_hsl = this.hexToHSL(this.error);
|
|
3035
|
+
this.neutral_hsl = this.hexToHSL(this.neutral);
|
|
3036
|
+
this.neutral_variant_hsl = this.hexToHSL(this.neutralVariant);
|
|
3037
|
+
const style = document.createElement("style");
|
|
3038
|
+
style.innerHTML = `
|
|
3039
|
+
:root {
|
|
3040
|
+
--primary-h: ${this.primary_hsl[0]};
|
|
3041
|
+
--primary-s: ${this.primary_hsl[1]};
|
|
3042
|
+
--primary-l: ${this.primary_hsl[2]};
|
|
3043
|
+
--secondary-h: ${this.secondary_hsl[0]};
|
|
3044
|
+
--secondary-s: ${this.secondary_hsl[1]};
|
|
3045
|
+
--secondary-l: ${this.secondary_hsl[2]};
|
|
3046
|
+
--tertiary-h: ${this.tertiary_hsl[0]};
|
|
3047
|
+
--tertiary-s: ${this.tertiary_hsl[1]};
|
|
3048
|
+
--tertiary-l: ${this.tertiary_hsl[2]};
|
|
3049
|
+
--error-h: ${this.error_hsl[0]};
|
|
3050
|
+
--error-s: ${this.error_hsl[1]};
|
|
3051
|
+
--error-l: ${this.error_hsl[2]};
|
|
3052
|
+
--neutral-h: ${this.neutral_hsl[0]};
|
|
3053
|
+
--neutral-s: ${this.neutral_hsl[1]};
|
|
3054
|
+
--neutral-l: ${this.neutral_hsl[2]};
|
|
3055
|
+
--neutral-variant-h: ${this.neutral_variant_hsl[0]};
|
|
3056
|
+
--neutral-variant-s: ${this.neutral_variant_hsl[1]};
|
|
3057
|
+
--neutral-variant-l: ${this.neutral_variant_hsl[2]};
|
|
3058
|
+
}
|
|
3059
|
+
`;
|
|
3060
|
+
document.body.appendChild(style);
|
|
3061
|
+
}
|
|
3062
|
+
};
|
|
3063
|
+
TkTheme.styles = (0,external_lit_.css) `
|
|
3064
|
+
${(0,external_lit_.unsafeCSS)(theme)}
|
|
3065
|
+
`;
|
|
3066
|
+
__decorate([
|
|
3067
|
+
(0,decorators_js_.property)()
|
|
3068
|
+
], TkTheme.prototype, "primary", void 0);
|
|
3069
|
+
__decorate([
|
|
3070
|
+
(0,decorators_js_.property)()
|
|
3071
|
+
], TkTheme.prototype, "secondary", void 0);
|
|
3072
|
+
__decorate([
|
|
3073
|
+
(0,decorators_js_.property)()
|
|
3074
|
+
], TkTheme.prototype, "tertiary", void 0);
|
|
3075
|
+
__decorate([
|
|
3076
|
+
(0,decorators_js_.property)()
|
|
3077
|
+
], TkTheme.prototype, "error", void 0);
|
|
3078
|
+
__decorate([
|
|
3079
|
+
(0,decorators_js_.property)()
|
|
3080
|
+
], TkTheme.prototype, "neutral", void 0);
|
|
3081
|
+
__decorate([
|
|
3082
|
+
(0,decorators_js_.property)()
|
|
3083
|
+
], TkTheme.prototype, "neutralVariant", void 0);
|
|
3084
|
+
__decorate([
|
|
3085
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: "force-body", reflect: true })
|
|
3086
|
+
], TkTheme.prototype, "forceBody", void 0);
|
|
3087
|
+
__decorate([
|
|
3088
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: true, reflect: true })
|
|
3089
|
+
], TkTheme.prototype, "inverted", void 0);
|
|
3090
|
+
__decorate([
|
|
3091
|
+
(0,decorators_js_.state)()
|
|
3092
|
+
], TkTheme.prototype, "primary_hsl", void 0);
|
|
3093
|
+
__decorate([
|
|
3094
|
+
(0,decorators_js_.state)()
|
|
3095
|
+
], TkTheme.prototype, "secondary_hsl", void 0);
|
|
3096
|
+
__decorate([
|
|
3097
|
+
(0,decorators_js_.state)()
|
|
3098
|
+
], TkTheme.prototype, "tertiary_hsl", void 0);
|
|
3099
|
+
__decorate([
|
|
3100
|
+
(0,decorators_js_.state)()
|
|
3101
|
+
], TkTheme.prototype, "error_hsl", void 0);
|
|
3102
|
+
__decorate([
|
|
3103
|
+
(0,decorators_js_.state)()
|
|
3104
|
+
], TkTheme.prototype, "neutral_hsl", void 0);
|
|
3105
|
+
__decorate([
|
|
3106
|
+
(0,decorators_js_.state)()
|
|
3107
|
+
], TkTheme.prototype, "neutral_variant_hsl", void 0);
|
|
3108
|
+
TkTheme = __decorate([
|
|
3109
|
+
(0,decorators_js_.customElement)("tk-theme")
|
|
3110
|
+
], TkTheme);
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
/***/ }),
|
|
3115
|
+
|
|
3116
|
+
/***/ 8758:
|
|
3117
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3118
|
+
|
|
3119
|
+
|
|
3120
|
+
// EXPORTS
|
|
3121
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
3122
|
+
J: () => (/* binding */ TkIcon)
|
|
3123
|
+
});
|
|
3124
|
+
|
|
3125
|
+
// EXTERNAL MODULE: external "lit"
|
|
3126
|
+
var external_lit_ = __webpack_require__(2927);
|
|
3127
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
3128
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
3129
|
+
;// external "lit/directives/unsafe-html.js"
|
|
3130
|
+
|
|
3131
|
+
// EXTERNAL MODULE: ./tinkiet/box/index.ts
|
|
3132
|
+
var box = __webpack_require__(3433);
|
|
3133
|
+
;// ./tinkiet/icon/icon.scss
|
|
3134
|
+
/* harmony default export */ const icon = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: var(--tk-icon-color, currentColor);display:inline-flex;flex-shrink:0;width:1.5em;height:1.5em}:host svg{width:100%;height:100%;display:block;fill:var(--color)}");
|
|
3135
|
+
;// ./tinkiet/icon/icon.ts
|
|
3136
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3137
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3138
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3139
|
+
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;
|
|
3140
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3141
|
+
};
|
|
3142
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3143
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3144
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3145
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3146
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3147
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3148
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3149
|
+
});
|
|
3150
|
+
};
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
let TkIcon = class TkIcon extends box/* TkBox */.P {
|
|
3157
|
+
constructor() {
|
|
3158
|
+
super(...arguments);
|
|
3159
|
+
this.svg = "";
|
|
3160
|
+
}
|
|
3161
|
+
static get styles() {
|
|
3162
|
+
return [
|
|
3163
|
+
...box/* TkBox */.P.styles,
|
|
3164
|
+
(0,external_lit_.css) `
|
|
3165
|
+
${(0,external_lit_.unsafeCSS)(icon)}
|
|
3166
|
+
`
|
|
3167
|
+
];
|
|
3168
|
+
}
|
|
3169
|
+
render() {
|
|
3170
|
+
return (0,external_lit_.html) `
|
|
3171
|
+
${this.path
|
|
3172
|
+
? (0,external_lit_.html) `
|
|
3173
|
+
<svg viewBox="0 0 24 24"><path d="${this.path}"></path></svg>
|
|
3174
|
+
`
|
|
3175
|
+
: (0,external_lit_.html) `
|
|
3176
|
+
${__WEBPACK_EXTERNAL_MODULE_lit_directives_unsafe_html_js_56553e3e_unsafeHTML__(this.svg)}
|
|
3177
|
+
`}
|
|
3178
|
+
`;
|
|
3179
|
+
}
|
|
3180
|
+
updated(props) {
|
|
3181
|
+
if (props.has("name") && this.name)
|
|
3182
|
+
this.loadIcon();
|
|
3183
|
+
}
|
|
3184
|
+
loadIcon() {
|
|
3185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3186
|
+
const resolver = this.library
|
|
3187
|
+
? document.querySelector(`tk-icons[library=${this.library}]`)
|
|
3188
|
+
: document.querySelector("tk-icons");
|
|
3189
|
+
if (resolver) {
|
|
3190
|
+
this.svg = yield fetch(resolver.resolve(this.name))
|
|
3191
|
+
.then(response => {
|
|
3192
|
+
return response.blob().then(blob => {
|
|
3193
|
+
return {
|
|
3194
|
+
contentType: response.headers.get("Content-Type"),
|
|
3195
|
+
raw: blob
|
|
3196
|
+
};
|
|
3197
|
+
});
|
|
3198
|
+
})
|
|
3199
|
+
.then(data => {
|
|
3200
|
+
if (data.contentType && /svg/.test(data.contentType))
|
|
3201
|
+
return data.raw.text();
|
|
3202
|
+
return "";
|
|
3203
|
+
});
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
}
|
|
3207
|
+
};
|
|
3208
|
+
__decorate([
|
|
3209
|
+
(0,decorators_js_.property)()
|
|
3210
|
+
], TkIcon.prototype, "name", void 0);
|
|
3211
|
+
__decorate([
|
|
3212
|
+
(0,decorators_js_.property)()
|
|
3213
|
+
], TkIcon.prototype, "library", void 0);
|
|
3214
|
+
__decorate([
|
|
3215
|
+
(0,decorators_js_.property)()
|
|
3216
|
+
], TkIcon.prototype, "path", void 0);
|
|
3217
|
+
__decorate([
|
|
3218
|
+
(0,decorators_js_.property)()
|
|
3219
|
+
], TkIcon.prototype, "svg", void 0);
|
|
3220
|
+
TkIcon = __decorate([
|
|
3221
|
+
(0,decorators_js_.customElement)("tk-icon")
|
|
3222
|
+
], TkIcon);
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
|
|
3226
|
+
/***/ }),
|
|
3227
|
+
|
|
3228
|
+
/***/ 8853:
|
|
3229
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
// EXPORTS
|
|
3233
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
3234
|
+
O: () => (/* binding */ TkPages)
|
|
3235
|
+
});
|
|
3236
|
+
|
|
3237
|
+
// EXTERNAL MODULE: external "lit"
|
|
3238
|
+
var external_lit_ = __webpack_require__(2927);
|
|
3239
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
3240
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
3241
|
+
;// ./tinkiet/pages/pages.scss
|
|
3242
|
+
/* harmony default export */ const pages = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}");
|
|
3243
|
+
;// ./tinkiet/pages/pages.ts
|
|
3244
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3245
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3246
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3247
|
+
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;
|
|
3248
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3249
|
+
};
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
|
|
3253
|
+
let TkPages = class TkPages extends external_lit_.LitElement {
|
|
3254
|
+
constructor() {
|
|
3255
|
+
super(...arguments);
|
|
3256
|
+
this._page = "";
|
|
3257
|
+
this.selected = "";
|
|
3258
|
+
this.handleScroll = false;
|
|
3259
|
+
this.scrollHistory = {};
|
|
3260
|
+
}
|
|
3261
|
+
set page(val) {
|
|
3262
|
+
let oldVal = this._page;
|
|
3263
|
+
this._page = val;
|
|
3264
|
+
if (oldVal && this.handleScroll) {
|
|
3265
|
+
const el = this.querySelector(`[page=${oldVal}]`);
|
|
3266
|
+
if (el) {
|
|
3267
|
+
const scrollElement = document.scrollingElement || document.documentElement;
|
|
3268
|
+
this.scrollHistory[oldVal] = scrollElement.scrollTop;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
this.requestUpdate("page", oldVal);
|
|
3272
|
+
}
|
|
3273
|
+
get page() {
|
|
3274
|
+
return this._page;
|
|
3275
|
+
}
|
|
3276
|
+
render() {
|
|
3277
|
+
return (0,external_lit_.html) `
|
|
3278
|
+
<slot></slot>
|
|
3279
|
+
`;
|
|
3280
|
+
}
|
|
3281
|
+
updated(props) {
|
|
3282
|
+
if (props.has("page")) {
|
|
3283
|
+
this.querySelectorAll(":scope > *").forEach(el => {
|
|
3284
|
+
var _a;
|
|
3285
|
+
const elPageAttribute = (_a = el.getAttribute("page")) !== null && _a !== void 0 ? _a : "default";
|
|
3286
|
+
const scrollElement = document.scrollingElement || document.documentElement;
|
|
3287
|
+
if (elPageAttribute == this.page) {
|
|
3288
|
+
el.removeAttribute("hidden");
|
|
3289
|
+
if (this.selected != "") {
|
|
3290
|
+
el.setAttribute(this.selected, "");
|
|
3291
|
+
}
|
|
3292
|
+
if (this.handleScroll && !el.hasAttribute("no-scroll")) {
|
|
3293
|
+
scrollElement.scrollTop = this.scrollHistory[elPageAttribute] ? this.scrollHistory[elPageAttribute] : 0;
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
else {
|
|
3297
|
+
el.setAttribute("hidden", "");
|
|
3298
|
+
if (this.selected != "") {
|
|
3299
|
+
el.removeAttribute(this.selected);
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
});
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
};
|
|
3306
|
+
TkPages.styles = (0,external_lit_.css) `
|
|
3307
|
+
${(0,external_lit_.unsafeCSS)(pages)}
|
|
3308
|
+
`;
|
|
3309
|
+
__decorate([
|
|
3310
|
+
(0,decorators_js_.property)({ attribute: "page", type: String })
|
|
3311
|
+
], TkPages.prototype, "page", null);
|
|
3312
|
+
__decorate([
|
|
3313
|
+
(0,decorators_js_.property)({ attribute: true, type: String })
|
|
3314
|
+
], TkPages.prototype, "selected", void 0);
|
|
3315
|
+
__decorate([
|
|
3316
|
+
(0,decorators_js_.property)({ attribute: "handle-scroll", type: Boolean })
|
|
3317
|
+
], TkPages.prototype, "handleScroll", void 0);
|
|
3318
|
+
TkPages = __decorate([
|
|
3319
|
+
(0,decorators_js_.customElement)("tk-pages")
|
|
3320
|
+
], TkPages);
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
/***/ }),
|
|
3325
|
+
|
|
3326
|
+
/***/ 8891:
|
|
3327
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3328
|
+
|
|
3329
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93);
|
|
3330
|
+
|
|
3331
|
+
|
|
3332
|
+
|
|
3333
|
+
/***/ }),
|
|
3334
|
+
|
|
3335
|
+
/***/ 8899:
|
|
3336
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3337
|
+
|
|
3338
|
+
var x = (y) => {
|
|
3339
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
3340
|
+
}
|
|
3341
|
+
var y = (x) => (() => (x))
|
|
3342
|
+
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) });
|
|
3343
|
+
|
|
3344
|
+
/***/ }),
|
|
3345
|
+
|
|
3346
|
+
/***/ 9147:
|
|
3347
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3348
|
+
|
|
3349
|
+
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3514);
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
/***/ }),
|
|
3354
|
+
|
|
3355
|
+
/***/ 9200:
|
|
3356
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3357
|
+
|
|
3358
|
+
/* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9203);
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
/***/ }),
|
|
3363
|
+
|
|
3364
|
+
/***/ 9203:
|
|
3365
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
// EXPORTS
|
|
3369
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
3370
|
+
o: () => (/* binding */ TkDialog)
|
|
3371
|
+
});
|
|
3372
|
+
|
|
3373
|
+
// EXTERNAL MODULE: external "lit"
|
|
3374
|
+
var external_lit_ = __webpack_require__(2927);
|
|
3375
|
+
// EXTERNAL MODULE: external "lit/decorators.js"
|
|
3376
|
+
var decorators_js_ = __webpack_require__(8899);
|
|
3377
|
+
;// ./tinkiet/dialog/dialog.scss
|
|
3378
|
+
/* harmony default export */ const dialog = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:none;position:relative;outline:none}:host([open]){display:block;z-index:var(--dialog-z-index, 300);position:fixed;top:0;left:0;width:100%;height:100%}:host([open]) .overlay{background-color:rgba(0,0,0,.5);position:absolute;top:0;left:0;bottom:0;right:0}:host([open]) .overlay.blur{backdrop-filter:blur(2px)}:host([open]) .container{animation:fade-in .3s forwards;position:fixed;margin:0;max-width:100%;height:100%;max-height:100%;width:fit-content;will-change:transform,opacity;overflow-y:auto;overscroll-behavior:contain}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@media(max-width: 400px){:host([open]) .container{padding:.1rem}}");
|
|
3379
|
+
;// ./tinkiet/dialog/dialog.ts
|
|
3380
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3381
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3382
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3383
|
+
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;
|
|
3384
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3385
|
+
};
|
|
3386
|
+
|
|
3387
|
+
|
|
3388
|
+
|
|
3389
|
+
let TkDialog = class TkDialog extends external_lit_.LitElement {
|
|
3390
|
+
constructor() {
|
|
3391
|
+
super(...arguments);
|
|
3392
|
+
this.modal = false;
|
|
3393
|
+
this.open = false;
|
|
3394
|
+
this.blurOverlay = false;
|
|
3395
|
+
}
|
|
3396
|
+
render() {
|
|
3397
|
+
return (0,external_lit_.html) `
|
|
3398
|
+
${this.open
|
|
3399
|
+
? (0,external_lit_.html) `
|
|
3400
|
+
<div class="overlay ${this.blurOverlay ? "blur" : ""}" @click=${() => (this.modal ? null : this.hide())}></div>
|
|
3401
|
+
<div class="container">
|
|
3402
|
+
<slot></slot>
|
|
3403
|
+
</div>
|
|
3404
|
+
`
|
|
3405
|
+
: ""}
|
|
3406
|
+
`;
|
|
3407
|
+
}
|
|
3408
|
+
updated(_changedProperties) {
|
|
3409
|
+
if (_changedProperties.has("open") && this.open)
|
|
3410
|
+
this.dispatchEvent(new Event("did-show"));
|
|
3411
|
+
if (_changedProperties.has("open") && _changedProperties.get("open") == true && !this.open)
|
|
3412
|
+
this.dispatchEvent(new Event("did-close"));
|
|
3413
|
+
}
|
|
3414
|
+
show() {
|
|
3415
|
+
this.open = true;
|
|
3416
|
+
return new Promise(resolve => {
|
|
3417
|
+
this.resolve = resolve;
|
|
3418
|
+
});
|
|
3419
|
+
}
|
|
3420
|
+
hide(value = null) {
|
|
3421
|
+
this.open = false;
|
|
3422
|
+
if (this.resolve)
|
|
3423
|
+
this.resolve(value);
|
|
3424
|
+
}
|
|
3425
|
+
};
|
|
3426
|
+
TkDialog.styles = (0,external_lit_.css) `
|
|
3427
|
+
${(0,external_lit_.unsafeCSS)(dialog)}
|
|
3428
|
+
`;
|
|
3429
|
+
__decorate([
|
|
3430
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: true })
|
|
3431
|
+
], TkDialog.prototype, "modal", void 0);
|
|
3432
|
+
__decorate([
|
|
3433
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: true, reflect: true })
|
|
3434
|
+
], TkDialog.prototype, "open", void 0);
|
|
3435
|
+
__decorate([
|
|
3436
|
+
(0,decorators_js_.property)({ type: Boolean, attribute: "blur-overlay" })
|
|
3437
|
+
], TkDialog.prototype, "blurOverlay", void 0);
|
|
3438
|
+
TkDialog = __decorate([
|
|
3439
|
+
(0,decorators_js_.customElement)("tk-dialog")
|
|
3440
|
+
], TkDialog);
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
|
|
3444
|
+
/***/ }),
|
|
3445
|
+
|
|
3446
|
+
/***/ 9337:
|
|
3447
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3448
|
+
|
|
3449
|
+
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1702);
|
|
3450
|
+
|
|
3451
|
+
|
|
3452
|
+
|
|
3453
|
+
/***/ }),
|
|
3454
|
+
|
|
3455
|
+
/***/ 9800:
|
|
3456
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3457
|
+
|
|
3458
|
+
/* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(722);
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
/***/ }),
|
|
3463
|
+
|
|
3464
|
+
/***/ 9816:
|
|
3465
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
3466
|
+
|
|
3467
|
+
/* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6916);
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
|
|
3471
|
+
/***/ })
|
|
3472
|
+
|
|
3473
|
+
/******/ });
|
|
3474
|
+
/************************************************************************/
|
|
3475
|
+
/******/ // The module cache
|
|
3476
|
+
/******/ var __webpack_module_cache__ = {};
|
|
3477
|
+
/******/
|
|
3478
|
+
/******/ // The require function
|
|
3479
|
+
/******/ function __webpack_require__(moduleId) {
|
|
3480
|
+
/******/ // Check if module is in cache
|
|
3481
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
3482
|
+
/******/ if (cachedModule !== undefined) {
|
|
3483
|
+
/******/ return cachedModule.exports;
|
|
3484
|
+
/******/ }
|
|
3485
|
+
/******/ // Create a new module (and put it into the cache)
|
|
3486
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
3487
|
+
/******/ // no module.id needed
|
|
3488
|
+
/******/ // no module.loaded needed
|
|
3489
|
+
/******/ exports: {}
|
|
3490
|
+
/******/ };
|
|
3491
|
+
/******/
|
|
3492
|
+
/******/ // Execute the module function
|
|
3493
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3494
|
+
/******/
|
|
3495
|
+
/******/ // Return the exports of the module
|
|
3496
|
+
/******/ return module.exports;
|
|
3497
|
+
/******/ }
|
|
3498
|
+
/******/
|
|
3499
|
+
/************************************************************************/
|
|
3500
|
+
/******/ /* webpack/runtime/define property getters */
|
|
3501
|
+
/******/ (() => {
|
|
3502
|
+
/******/ // define getter functions for harmony exports
|
|
3503
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
3504
|
+
/******/ for(var key in definition) {
|
|
3505
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
3506
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
3507
|
+
/******/ }
|
|
3508
|
+
/******/ }
|
|
3509
|
+
/******/ };
|
|
3510
|
+
/******/ })();
|
|
3511
|
+
/******/
|
|
3512
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
3513
|
+
/******/ (() => {
|
|
3514
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
3515
|
+
/******/ })();
|
|
3516
|
+
/******/
|
|
3517
|
+
/************************************************************************/
|
|
3518
|
+
var __webpack_exports__ = {};
|
|
3519
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3520
|
+
/* harmony export */ CW: () => (/* reexport safe */ _switch_switch__WEBPACK_IMPORTED_MODULE_46__.C),
|
|
3521
|
+
/* harmony export */ Iu: () => (/* reexport safe */ _tab_group_tab_group__WEBPACK_IMPORTED_MODULE_47__.I),
|
|
3522
|
+
/* harmony export */ J0: () => (/* reexport safe */ _icon_icon__WEBPACK_IMPORTED_MODULE_34__.J),
|
|
3523
|
+
/* harmony export */ L9: () => (/* reexport safe */ _navigation_navigation_item__WEBPACK_IMPORTED_MODULE_39__.L),
|
|
3524
|
+
/* harmony export */ Ou: () => (/* reexport safe */ _pages_pages__WEBPACK_IMPORTED_MODULE_42__.O),
|
|
3525
|
+
/* harmony export */ PF: () => (/* reexport safe */ _box_box__WEBPACK_IMPORTED_MODULE_27__.P),
|
|
3526
|
+
/* harmony export */ T1: () => (/* reexport safe */ _checkbox_checkbox__WEBPACK_IMPORTED_MODULE_29__.T),
|
|
3527
|
+
/* harmony export */ Uj: () => (/* reexport safe */ _button_button__WEBPACK_IMPORTED_MODULE_28__.U),
|
|
3528
|
+
/* harmony export */ W$: () => (/* reexport safe */ _icon_icons__WEBPACK_IMPORTED_MODULE_35__.W),
|
|
3529
|
+
/* harmony export */ Wr: () => (/* reexport safe */ _textarea_textarea__WEBPACK_IMPORTED_MODULE_48__.W),
|
|
3530
|
+
/* harmony export */ Yk: () => (/* reexport safe */ _notie_notie__WEBPACK_IMPORTED_MODULE_41__.Yk),
|
|
3531
|
+
/* harmony export */ ZL: () => (/* reexport safe */ _radio_radio__WEBPACK_IMPORTED_MODULE_43__.Z),
|
|
3532
|
+
/* harmony export */ Zz: () => (/* reexport safe */ _tooltip_tooltip__WEBPACK_IMPORTED_MODULE_51__.Z),
|
|
3533
|
+
/* harmony export */ d5: () => (/* reexport safe */ _badge_badge__WEBPACK_IMPORTED_MODULE_26__.d),
|
|
3534
|
+
/* harmony export */ h: () => (/* reexport safe */ _theme_theme__WEBPACK_IMPORTED_MODULE_50__.h),
|
|
3535
|
+
/* harmony export */ iK: () => (/* reexport safe */ _select_select__WEBPACK_IMPORTED_MODULE_44__.i),
|
|
3536
|
+
/* harmony export */ iL: () => (/* reexport safe */ _chip_chip__WEBPACK_IMPORTED_MODULE_30__.i),
|
|
3537
|
+
/* harmony export */ it: () => (/* reexport safe */ _form_form__WEBPACK_IMPORTED_MODULE_33__.i),
|
|
3538
|
+
/* harmony export */ jM: () => (/* reexport safe */ _list_item_list_item__WEBPACK_IMPORTED_MODULE_36__.j),
|
|
3539
|
+
/* harmony export */ jg: () => (/* reexport safe */ _notie_notie__WEBPACK_IMPORTED_MODULE_41__.jg),
|
|
3540
|
+
/* harmony export */ kl: () => (/* reexport safe */ _loading_loading__WEBPACK_IMPORTED_MODULE_37__.k),
|
|
3541
|
+
/* harmony export */ lI: () => (/* reexport safe */ _slider_slider__WEBPACK_IMPORTED_MODULE_45__.l),
|
|
3542
|
+
/* harmony export */ lQ: () => (/* reexport safe */ _drawer_drawer__WEBPACK_IMPORTED_MODULE_32__.l),
|
|
3543
|
+
/* harmony export */ oF: () => (/* reexport safe */ _dialog_dialog__WEBPACK_IMPORTED_MODULE_31__.o),
|
|
3544
|
+
/* harmony export */ q_: () => (/* reexport safe */ _topbar_topbar__WEBPACK_IMPORTED_MODULE_40__.q),
|
|
3545
|
+
/* harmony export */ ud: () => (/* reexport safe */ _accordion_accordion__WEBPACK_IMPORTED_MODULE_25__.u),
|
|
3546
|
+
/* harmony export */ vI: () => (/* reexport safe */ _navigation_navigation_bar__WEBPACK_IMPORTED_MODULE_38__.v),
|
|
3547
|
+
/* harmony export */ vv: () => (/* reexport safe */ _textfield_textfield__WEBPACK_IMPORTED_MODULE_49__.v)
|
|
3548
|
+
/* harmony export */ });
|
|
3549
|
+
/* harmony import */ var _accordion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(302);
|
|
3550
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(267);
|
|
3551
|
+
/* harmony import */ var _box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3433);
|
|
3552
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7136);
|
|
3553
|
+
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9337);
|
|
3554
|
+
/* harmony import */ var _chip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1182);
|
|
3555
|
+
/* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9200);
|
|
3556
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(845);
|
|
3557
|
+
/* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7650);
|
|
3558
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3449);
|
|
3559
|
+
/* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9800);
|
|
3560
|
+
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3572);
|
|
3561
|
+
/* harmony import */ var _navigation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(126);
|
|
3562
|
+
/* harmony import */ var _topbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(792);
|
|
3563
|
+
/* harmony import */ var _notie__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3711);
|
|
3564
|
+
/* harmony import */ var _pages__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(404);
|
|
3565
|
+
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(9147);
|
|
3566
|
+
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(3224);
|
|
3567
|
+
/* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(3185);
|
|
3568
|
+
/* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9816);
|
|
3569
|
+
/* harmony import */ var _tab_group__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(7441);
|
|
3570
|
+
/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(5302);
|
|
3571
|
+
/* harmony import */ var _textfield__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(6141);
|
|
3572
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(2693);
|
|
3573
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(8891);
|
|
3574
|
+
/* harmony import */ var _accordion_accordion__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(2418);
|
|
3575
|
+
/* harmony import */ var _badge_badge__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(1647);
|
|
3576
|
+
/* harmony import */ var _box_box__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(2788);
|
|
3577
|
+
/* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(6668);
|
|
3578
|
+
/* harmony import */ var _checkbox_checkbox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(1702);
|
|
3579
|
+
/* harmony import */ var _chip_chip__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(3309);
|
|
3580
|
+
/* harmony import */ var _dialog_dialog__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(9203);
|
|
3581
|
+
/* harmony import */ var _drawer_drawer__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(5603);
|
|
3582
|
+
/* harmony import */ var _form_form__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(4686);
|
|
3583
|
+
/* harmony import */ var _icon_icon__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(8758);
|
|
3584
|
+
/* harmony import */ var _icon_icons__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(1587);
|
|
3585
|
+
/* harmony import */ var _list_item_list_item__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(722);
|
|
3586
|
+
/* harmony import */ var _loading_loading__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(4646);
|
|
3587
|
+
/* harmony import */ var _navigation_navigation_bar__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(2667);
|
|
3588
|
+
/* harmony import */ var _navigation_navigation_item__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(3338);
|
|
3589
|
+
/* harmony import */ var _topbar_topbar__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(1593);
|
|
3590
|
+
/* harmony import */ var _notie_notie__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(5554);
|
|
3591
|
+
/* harmony import */ var _pages_pages__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(8853);
|
|
3592
|
+
/* harmony import */ var _radio_radio__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(3514);
|
|
3593
|
+
/* harmony import */ var _select_select__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(7927);
|
|
3594
|
+
/* harmony import */ var _slider_slider__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(7401);
|
|
3595
|
+
/* harmony import */ var _switch_switch__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(6916);
|
|
3596
|
+
/* harmony import */ var _tab_group_tab_group__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(6361);
|
|
3597
|
+
/* harmony import */ var _textarea_textarea__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(5524);
|
|
3598
|
+
/* harmony import */ var _textfield_textfield__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(1481);
|
|
3599
|
+
/* harmony import */ var _theme_theme__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(8469);
|
|
3600
|
+
/* harmony import */ var _tooltip_tooltip__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(93);
|
|
3601
|
+
|
|
3602
|
+
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3652
|
+
|
|
3653
|
+
|
|
3654
|
+
const __webpack_exports__NotieLevel = __webpack_exports__.Yk;
|
|
3655
|
+
const __webpack_exports__TkAccordion = __webpack_exports__.ud;
|
|
3656
|
+
const __webpack_exports__TkBadge = __webpack_exports__.d5;
|
|
3657
|
+
const __webpack_exports__TkBox = __webpack_exports__.PF;
|
|
3658
|
+
const __webpack_exports__TkButton = __webpack_exports__.Uj;
|
|
3659
|
+
const __webpack_exports__TkCheckbox = __webpack_exports__.T1;
|
|
3660
|
+
const __webpack_exports__TkChip = __webpack_exports__.iL;
|
|
3661
|
+
const __webpack_exports__TkDialog = __webpack_exports__.oF;
|
|
3662
|
+
const __webpack_exports__TkDrawer = __webpack_exports__.lQ;
|
|
3663
|
+
const __webpack_exports__TkForm = __webpack_exports__.it;
|
|
3664
|
+
const __webpack_exports__TkIcon = __webpack_exports__.J0;
|
|
3665
|
+
const __webpack_exports__TkIcons = __webpack_exports__.W$;
|
|
3666
|
+
const __webpack_exports__TkListItem = __webpack_exports__.jM;
|
|
3667
|
+
const __webpack_exports__TkLoading = __webpack_exports__.kl;
|
|
3668
|
+
const __webpack_exports__TkNavigationBar = __webpack_exports__.vI;
|
|
3669
|
+
const __webpack_exports__TkNavigationItem = __webpack_exports__.L9;
|
|
3670
|
+
const __webpack_exports__TkNotie = __webpack_exports__.jg;
|
|
3671
|
+
const __webpack_exports__TkPages = __webpack_exports__.Ou;
|
|
3672
|
+
const __webpack_exports__TkRadio = __webpack_exports__.ZL;
|
|
3673
|
+
const __webpack_exports__TkSelect = __webpack_exports__.iK;
|
|
3674
|
+
const __webpack_exports__TkSlider = __webpack_exports__.lI;
|
|
3675
|
+
const __webpack_exports__TkSwitch = __webpack_exports__.CW;
|
|
3676
|
+
const __webpack_exports__TkTabGroup = __webpack_exports__.Iu;
|
|
3677
|
+
const __webpack_exports__TkTextarea = __webpack_exports__.Wr;
|
|
3678
|
+
const __webpack_exports__TkTextfield = __webpack_exports__.vv;
|
|
3679
|
+
const __webpack_exports__TkTheme = __webpack_exports__.h;
|
|
3680
|
+
const __webpack_exports__TkTooltip = __webpack_exports__.Zz;
|
|
3681
|
+
const __webpack_exports__TkTopbar = __webpack_exports__.q_;
|
|
3682
|
+
export { __webpack_exports__NotieLevel as NotieLevel, __webpack_exports__TkAccordion as TkAccordion, __webpack_exports__TkBadge as TkBadge, __webpack_exports__TkBox as TkBox, __webpack_exports__TkButton as TkButton, __webpack_exports__TkCheckbox as TkCheckbox, __webpack_exports__TkChip as TkChip, __webpack_exports__TkDialog as TkDialog, __webpack_exports__TkDrawer as TkDrawer, __webpack_exports__TkForm as TkForm, __webpack_exports__TkIcon as TkIcon, __webpack_exports__TkIcons as TkIcons, __webpack_exports__TkListItem as TkListItem, __webpack_exports__TkLoading as TkLoading, __webpack_exports__TkNavigationBar as TkNavigationBar, __webpack_exports__TkNavigationItem as TkNavigationItem, __webpack_exports__TkNotie as TkNotie, __webpack_exports__TkPages as TkPages, __webpack_exports__TkRadio as TkRadio, __webpack_exports__TkSelect as TkSelect, __webpack_exports__TkSlider as TkSlider, __webpack_exports__TkSwitch as TkSwitch, __webpack_exports__TkTabGroup as TkTabGroup, __webpack_exports__TkTextarea as TkTextarea, __webpack_exports__TkTextfield as TkTextfield, __webpack_exports__TkTheme as TkTheme, __webpack_exports__TkTooltip as TkTooltip, __webpack_exports__TkTopbar as TkTopbar };
|