overview-components 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +6 -2
- package/dist/_virtual/air-datepicker.js +4 -0
- package/dist/index.d.ts +56 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +105 -53
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +285 -231
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +48 -47
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +39 -38
- package/dist/node_modules/air-datepicker/air-datepicker.js +1147 -0
- package/dist/node_modules/air-datepicker/index.es.js +4 -0
- package/dist/shared/filter-inputs.js +326 -0
- package/dist/shared/lit-case-variables-tab-cell.js +207 -0
- package/dist/shared/lit-custom-popper.js +99 -0
- package/dist/shared/lit-data-grid-action-buttons-popover.js +258 -0
- package/dist/shared/lit-data-grid-density-popover.js +79 -0
- package/dist/shared/lit-data-grid-export-popover.js +66 -0
- package/dist/shared/lit-data-grid-operators-popover.js +94 -0
- package/dist/shared/lit-data-grid-row-actions.js +73 -0
- package/dist/shared/lit-date-picker.js +525 -0
- package/dist/shared/lit-icon-button.d.ts +1 -1
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-icon-button.js +91 -0
- package/dist/shared/lit-label.js +96 -0
- package/dist/shared/lit-loader.d.ts +1 -1
- package/dist/shared/lit-loader.d.ts.map +1 -1
- package/dist/shared/lit-loader.js +70 -0
- package/dist/shared/lit-loading-bar.d.ts +1 -1
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/shared/lit-loading-bar.js +94 -0
- package/dist/shared/lit-menu-item.d.ts +1 -1
- package/dist/shared/lit-menu-item.d.ts.map +1 -1
- package/dist/shared/lit-menu-item.js +94 -0
- package/dist/shared/lit-modal-body.js +28 -0
- package/dist/shared/lit-modal-footer.js +32 -0
- package/dist/shared/lit-modal-header.js +39 -0
- package/dist/shared/lit-overflow-tooltip.js +85 -0
- package/dist/shared/lit-responsive-button.js +84 -0
- package/dist/shared/lit-select-field.js +376 -0
- package/dist/shared/lit-settings.js +60 -0
- package/dist/shared/lit-text-field.d.ts +1 -1
- package/dist/shared/lit-text-field.d.ts.map +1 -1
- package/dist/shared/lit-text-field.js +205 -0
- package/dist/shared/lit-toggle.js +213 -0
- package/dist/shared/simple-popper.js +186 -0
- package/dist/shared/simple-tooltip.js +1 -1
- package/dist/style.css +1 -0
- package/dist/utils/localization.js +410 -25
- package/dist/utils/utils.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as a } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as f } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as l } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { tooltip as d } from "./simple-tooltip.js";
|
|
7
|
+
import { css as b } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
+
var h = Object.defineProperty, y = Object.getOwnPropertyDescriptor, t = (o, i, p, s) => {
|
|
9
|
+
for (var r = s > 1 ? void 0 : s ? y(i, p) : i, n = o.length - 1, m; n >= 0; n--)
|
|
10
|
+
(m = o[n]) && (r = (s ? m(i, p, r) : m(r)) || r);
|
|
11
|
+
return s && r && h(i, p, r), r;
|
|
12
|
+
};
|
|
13
|
+
let e = class extends f {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.label = "", this.disabled = !1, this.error = !1, this.required = !1;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const o = [
|
|
19
|
+
"label",
|
|
20
|
+
this.error ? "error" : "",
|
|
21
|
+
this.disabled ? "disabled" : "",
|
|
22
|
+
this.required ? "required" : ""
|
|
23
|
+
].join(" ");
|
|
24
|
+
return a`
|
|
25
|
+
${this.label ? a`
|
|
26
|
+
<div class="label-container" style="display: flex; align-items: center;">
|
|
27
|
+
${this.required ? a`<lit-icon
|
|
28
|
+
icon="requiredFilled"
|
|
29
|
+
size="0.625rem"
|
|
30
|
+
style="transform: translate(1px, -2px); color: var(--color-error-main, #d32f2f);"
|
|
31
|
+
@tooltip=${d(this.tooltip, "left")}
|
|
32
|
+
></lit-icon>` : ""}
|
|
33
|
+
<label class="${o}">
|
|
34
|
+
${this.label}
|
|
35
|
+
${this.tooltip ? a`<lit-icon
|
|
36
|
+
icon="help2"
|
|
37
|
+
size="1rem"
|
|
38
|
+
style="top:0.0625rem"
|
|
39
|
+
@tooltip=${d(this.tooltip, "left")}
|
|
40
|
+
></lit-icon>` : ""}
|
|
41
|
+
</label>
|
|
42
|
+
</div>
|
|
43
|
+
` : ""}
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
e.styles = b`
|
|
49
|
+
:host {
|
|
50
|
+
display: block;
|
|
51
|
+
font-family: inherit;
|
|
52
|
+
}
|
|
53
|
+
.label {
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
margin-left: 0.875rem;
|
|
56
|
+
color: var(--text-secondary, #777);
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
font-size: 0.875rem;
|
|
59
|
+
line-height: 160%;
|
|
60
|
+
letter-spacing: 0rem;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 0.625rem;
|
|
64
|
+
}
|
|
65
|
+
.label.error {
|
|
66
|
+
color: var(--color-error-main, #d32f2f);
|
|
67
|
+
}
|
|
68
|
+
.label.disabled {
|
|
69
|
+
color: var(--text-disabled, #b0b0b0);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
.label.required {
|
|
73
|
+
margin-left: 0.5rem;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
t([
|
|
77
|
+
l({ type: String })
|
|
78
|
+
], e.prototype, "label", 2);
|
|
79
|
+
t([
|
|
80
|
+
l({ type: String })
|
|
81
|
+
], e.prototype, "tooltip", 2);
|
|
82
|
+
t([
|
|
83
|
+
l({ type: Boolean })
|
|
84
|
+
], e.prototype, "disabled", 2);
|
|
85
|
+
t([
|
|
86
|
+
l({ type: Boolean })
|
|
87
|
+
], e.prototype, "error", 2);
|
|
88
|
+
t([
|
|
89
|
+
l({ type: Boolean })
|
|
90
|
+
], e.prototype, "required", 2);
|
|
91
|
+
e = t([
|
|
92
|
+
c("lit-label")
|
|
93
|
+
], e);
|
|
94
|
+
export {
|
|
95
|
+
e as LitLabel
|
|
96
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import './lit-icon.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class LitLoader extends LitElement {
|
|
4
4
|
size?: 'small' | 'medium';
|
|
5
5
|
static styles: import("lit").CSSResult;
|
|
6
6
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-loader.d.ts","sourceRoot":"","sources":["../../src/shared/lit-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,OAAO,eAAe,CAAC;AAEvB,qBACa,
|
|
1
|
+
{"version":3,"file":"lit-loader.d.ts","sourceRoot":"","sources":["../../src/shared/lit-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,OAAO,eAAe,CAAC;AAEvB,qBACa,SAAU,SAAQ,UAAU;IACT,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAY;IACjE,MAAM,CAAC,MAAM,0BAuCX;IAEF,MAAM;CAKT"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as l } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as m } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as n } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as c } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { css as f } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
7
|
+
var h = Object.defineProperty, u = Object.getOwnPropertyDescriptor, p = (d, e, i, t) => {
|
|
8
|
+
for (var r = t > 1 ? void 0 : t ? u(e, i) : e, s = d.length - 1, a; s >= 0; s--)
|
|
9
|
+
(a = d[s]) && (r = (t ? a(e, i, r) : a(r)) || r);
|
|
10
|
+
return t && r && h(e, i, r), r;
|
|
11
|
+
};
|
|
12
|
+
let o = class extends m {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.size = "medium";
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return l`<div class="loader-container">
|
|
18
|
+
<div class="loader loader--${this.size}"></div>
|
|
19
|
+
</div> `;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
o.styles = f`
|
|
23
|
+
/* Loader */
|
|
24
|
+
.loader-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
border-radius: 0.75rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.loader {
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
animation: spin 1s linear infinite;
|
|
38
|
+
}
|
|
39
|
+
.loader--small {
|
|
40
|
+
width: 10px;
|
|
41
|
+
height: 10px;
|
|
42
|
+
border: 1px solid #ccc;
|
|
43
|
+
border-top: 1px solid var(--color-primary-main, #76b703);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.loader--medium {
|
|
47
|
+
width: 40px;
|
|
48
|
+
height: 40px;
|
|
49
|
+
border: 4px solid #ccc;
|
|
50
|
+
border-top: 4px solid var(--color-primary-main, #76b703);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes spin {
|
|
54
|
+
0% {
|
|
55
|
+
transform: rotate(0deg);
|
|
56
|
+
}
|
|
57
|
+
100% {
|
|
58
|
+
transform: rotate(360deg);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
p([
|
|
63
|
+
c({ type: String })
|
|
64
|
+
], o.prototype, "size", 2);
|
|
65
|
+
o = p([
|
|
66
|
+
n("lit-loader")
|
|
67
|
+
], o);
|
|
68
|
+
export {
|
|
69
|
+
o as LitLoader
|
|
70
|
+
};
|
|
@@ -7,7 +7,7 @@ export type LitMenuProps = {
|
|
|
7
7
|
isActive?: boolean;
|
|
8
8
|
click: () => void;
|
|
9
9
|
};
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class LitLoadingBar extends LitElement {
|
|
11
11
|
static styles: import("lit").CSSResult;
|
|
12
12
|
isLoading?: string;
|
|
13
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-loading-bar.d.ts","sourceRoot":"","sources":["../../src/shared/lit-loading-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,qBACa,
|
|
1
|
+
{"version":3,"file":"lit-loading-bar.d.ts","sourceRoot":"","sources":["../../src/shared/lit-loading-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,qBACa,aAAc,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BA+DX;IAE0B,SAAS,CAAC,EAAE,MAAM,CAAC;IAE/C,MAAM;CAQT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,YAAY,CAAC;KACnC;CACJ"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as m } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as b } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as f } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { css as p } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
7
|
+
var c = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (s, i, o, e) => {
|
|
8
|
+
for (var r = e > 1 ? void 0 : e ? g(i, o) : i, a = s.length - 1, n; a >= 0; a--)
|
|
9
|
+
(n = s[a]) && (r = (e ? n(i, o, r) : n(r)) || r);
|
|
10
|
+
return e && r && c(i, o, r), r;
|
|
11
|
+
};
|
|
12
|
+
let t = class extends d {
|
|
13
|
+
render() {
|
|
14
|
+
return m`
|
|
15
|
+
<div class="progress-root">
|
|
16
|
+
<div class="bar bar1Indeterminate"></div>
|
|
17
|
+
<div class="bar bar2Indeterminate"></div>
|
|
18
|
+
</div>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
t.styles = p`
|
|
23
|
+
.progress-root {
|
|
24
|
+
position: relative;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
display: block;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 0.125rem;
|
|
31
|
+
background-color: var(--color-primary-light, #f0fadf);
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
/* Prvá animovaná "vlna" */
|
|
35
|
+
|
|
36
|
+
.bar1Indeterminate {
|
|
37
|
+
animation: mui-indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Druhá animovaná "vlna" (oneskorená) */
|
|
41
|
+
|
|
42
|
+
.bar2Indeterminate {
|
|
43
|
+
animation: mui-indeterminate2 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
44
|
+
animation-delay: 1.05s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes mui-indeterminate1 {
|
|
48
|
+
0% {
|
|
49
|
+
left: -35%;
|
|
50
|
+
right: 100%;
|
|
51
|
+
}
|
|
52
|
+
60% {
|
|
53
|
+
left: 100%;
|
|
54
|
+
right: -90%;
|
|
55
|
+
}
|
|
56
|
+
100% {
|
|
57
|
+
left: 100%;
|
|
58
|
+
right: -90%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@keyframes mui-indeterminate2 {
|
|
63
|
+
0% {
|
|
64
|
+
left: -200%;
|
|
65
|
+
right: 100%;
|
|
66
|
+
}
|
|
67
|
+
60% {
|
|
68
|
+
left: 107%;
|
|
69
|
+
right: -8%;
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
left: 107%;
|
|
73
|
+
right: -8%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.bar {
|
|
77
|
+
position: absolute;
|
|
78
|
+
height: 100%;
|
|
79
|
+
display: block;
|
|
80
|
+
background-color: var(--color-primary-main, #76b703);
|
|
81
|
+
width: auto;
|
|
82
|
+
will-change: left, right;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
l([
|
|
87
|
+
f({ type: String })
|
|
88
|
+
], t.prototype, "isLoading", 2);
|
|
89
|
+
t = l([
|
|
90
|
+
b("lit-loading-bar")
|
|
91
|
+
], t);
|
|
92
|
+
export {
|
|
93
|
+
t as LitLoadingBar
|
|
94
|
+
};
|
|
@@ -8,7 +8,7 @@ export type LitMenuProps = {
|
|
|
8
8
|
isSelected?: boolean;
|
|
9
9
|
click: () => void;
|
|
10
10
|
};
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class LitMenuItem extends LitElement {
|
|
12
12
|
static styles: import("lit").CSSResult;
|
|
13
13
|
icon?: string;
|
|
14
14
|
onClick?: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-menu-item.d.ts","sourceRoot":"","sources":["../../src/shared/lit-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,qBACa,
|
|
1
|
+
{"version":3,"file":"lit-menu-item.d.ts","sourceRoot":"","sources":["../../src/shared/lit-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,qBACa,WAAY,SAAQ,UAAU;IACvC,MAAM,CAAC,MAAM,0BAmCX;IAE0B,IAAI,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAS;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAS;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAS;IAE1D,OAAO,CAAC,WAAW;IAMnB,MAAM;CAmBT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACJ"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as p } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { classMap as f } from "../node_modules/lit-html/directives/class-map.js";
|
|
5
|
+
import { customElement as m } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
6
|
+
import { property as o } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
7
|
+
import { css as h } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
+
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (t, s, a, l) => {
|
|
9
|
+
for (var i = l > 1 ? void 0 : l ? y(s, a) : s, c = t.length - 1, n; c >= 0; c--)
|
|
10
|
+
(n = t[c]) && (i = (l ? n(s, a, i) : n(i)) || i);
|
|
11
|
+
return l && i && v(s, a, i), i;
|
|
12
|
+
};
|
|
13
|
+
let e = class extends d {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.disabled = !1, this.isActive = !1, this.isSelected = !1;
|
|
16
|
+
}
|
|
17
|
+
handleClick(t) {
|
|
18
|
+
this.onClick && this.onClick(t);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const t = {
|
|
22
|
+
disabled: this.disabled || !1,
|
|
23
|
+
isActive: this.isActive || !1,
|
|
24
|
+
isSelected: this.isSelected || !1
|
|
25
|
+
};
|
|
26
|
+
return p`
|
|
27
|
+
<li class=${f(t)} @click="${this.handleClick}">
|
|
28
|
+
${this.icon ? p` <lit-icon
|
|
29
|
+
icon=${this.icon}
|
|
30
|
+
size="1.125rem"
|
|
31
|
+
style=" margin-right: 10px;"
|
|
32
|
+
></lit-icon>` : ""}
|
|
33
|
+
<div class="item-label"><slot></slot></div>
|
|
34
|
+
</li>
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
e.styles = h`
|
|
39
|
+
li {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
padding: 0.25rem;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: background 0.2s;
|
|
45
|
+
border-radius: 0.25rem;
|
|
46
|
+
height: 1.25rem;
|
|
47
|
+
}
|
|
48
|
+
li:hover {
|
|
49
|
+
background: var(--color-primary-light, #f0f0f0);
|
|
50
|
+
}
|
|
51
|
+
.item-label {
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
font-size: 13px;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
.disabled {
|
|
60
|
+
opacity: 0.5;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
.isSelected {
|
|
64
|
+
background: var(--color-primary-main, #f0f0f0);
|
|
65
|
+
color: #fff;
|
|
66
|
+
}
|
|
67
|
+
li.isSelected:hover {
|
|
68
|
+
background: var(--color-primary-dark, #d0d0d0);
|
|
69
|
+
}
|
|
70
|
+
.isActive {
|
|
71
|
+
background: var(--color-primary-light, #f0f0f0);
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
r([
|
|
75
|
+
o({ type: String })
|
|
76
|
+
], e.prototype, "icon", 2);
|
|
77
|
+
r([
|
|
78
|
+
o({ type: Function })
|
|
79
|
+
], e.prototype, "onClick", 2);
|
|
80
|
+
r([
|
|
81
|
+
o({ type: Boolean })
|
|
82
|
+
], e.prototype, "disabled", 2);
|
|
83
|
+
r([
|
|
84
|
+
o({ type: Boolean })
|
|
85
|
+
], e.prototype, "isActive", 2);
|
|
86
|
+
r([
|
|
87
|
+
o({ type: Boolean })
|
|
88
|
+
], e.prototype, "isSelected", 2);
|
|
89
|
+
e = r([
|
|
90
|
+
m("lit-menu-item")
|
|
91
|
+
], e);
|
|
92
|
+
export {
|
|
93
|
+
e as LitMenuItem
|
|
94
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as e } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as r } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as i } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const o = class o extends r {
|
|
6
|
+
render() {
|
|
7
|
+
return e`<slot></slot>`;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
o.styles = i`
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
padding: 0.5rem 0.75rem;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background: var(--modal-body-background, #fff);
|
|
17
|
+
height: 100vh;
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
height: auto;
|
|
20
|
+
max-height: 70vh;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
let t = o;
|
|
25
|
+
customElements.define("lit-modal-body", t);
|
|
26
|
+
export {
|
|
27
|
+
t as LitModalBody
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as a } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as p } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { css as n } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
6
|
+
var f = Object.getOwnPropertyDescriptor, c = (e, s, l, m) => {
|
|
7
|
+
for (var r = m > 1 ? void 0 : m ? f(s, l) : s, o = e.length - 1, i; o >= 0; o--)
|
|
8
|
+
(i = e[o]) && (r = i(r) || r);
|
|
9
|
+
return r;
|
|
10
|
+
};
|
|
11
|
+
let t = class extends d {
|
|
12
|
+
render() {
|
|
13
|
+
return a`<slot></slot>`;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
t.styles = n`
|
|
17
|
+
:host {
|
|
18
|
+
position: sticky;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
background: var(--modal-footer-bg, #fff);
|
|
21
|
+
padding: 0.5rem 0.75rem;
|
|
22
|
+
z-index: 10;
|
|
23
|
+
padding: 0.5rem 0.75rem;
|
|
24
|
+
border-top: 1px solid var(--color-divider, #e0e0e0);
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
t = c([
|
|
28
|
+
p("lit-modal-footer")
|
|
29
|
+
], t);
|
|
30
|
+
export {
|
|
31
|
+
t as LitModalFooter
|
|
32
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as a } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as n } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as d } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as f } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { css as c } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
7
|
+
var v = Object.defineProperty, u = Object.getOwnPropertyDescriptor, l = (m, t, s, e) => {
|
|
8
|
+
for (var r = e > 1 ? void 0 : e ? u(t, s) : t, i = m.length - 1, p; i >= 0; i--)
|
|
9
|
+
(p = m[i]) && (r = (e ? p(t, s, r) : p(r)) || r);
|
|
10
|
+
return e && r && v(t, s, r), r;
|
|
11
|
+
};
|
|
12
|
+
let o = class extends n {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.title = "";
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return a` <slot></slot> `;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
o.styles = c`
|
|
21
|
+
:host {
|
|
22
|
+
position: sticky;
|
|
23
|
+
top: 0;
|
|
24
|
+
z-index: 10;
|
|
25
|
+
background: var(--modal-header-bg, #fff);
|
|
26
|
+
border-bottom: 1px solid var(--color-divider, #e0e0e0);
|
|
27
|
+
padding: 0.5rem 0.75rem;
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
l([
|
|
32
|
+
f({ type: String })
|
|
33
|
+
], o.prototype, "title", 2);
|
|
34
|
+
o = l([
|
|
35
|
+
d("lit-modal-header")
|
|
36
|
+
], o);
|
|
37
|
+
export {
|
|
38
|
+
o as LitModalHeader
|
|
39
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { nothing as p, html as h } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as a } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as f } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as v } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { state as O } from "../node_modules/@lit/reactive-element/decorators/state.js";
|
|
7
|
+
import { query as d } from "../node_modules/@lit/reactive-element/decorators/query.js";
|
|
8
|
+
import { tooltip as b } from "./simple-tooltip.js";
|
|
9
|
+
import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
10
|
+
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, i = (e, t, l, o) => {
|
|
11
|
+
for (var s = o > 1 ? void 0 : o ? x(t, l) : t, n = e.length - 1, c; n >= 0; n--)
|
|
12
|
+
(c = e[n]) && (s = (o ? c(t, l, s) : c(s)) || s);
|
|
13
|
+
return o && s && w(t, l, s), s;
|
|
14
|
+
};
|
|
15
|
+
let r = class extends a {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.label = "", this.placement = "top", this.isOverflowing = !1, this.checkOverflow = () => {
|
|
18
|
+
const e = this.textElement;
|
|
19
|
+
if (!e) {
|
|
20
|
+
this.isOverflowing = !1;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
this.isOverflowing = e.scrollWidth > e.clientWidth;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
this.disconnectObservers(), super.disconnectedCallback();
|
|
31
|
+
}
|
|
32
|
+
firstUpdated() {
|
|
33
|
+
var e, t;
|
|
34
|
+
this.setupObservers(), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot")) == null || t.addEventListener("slotchange", this.checkOverflow), this.checkOverflow();
|
|
35
|
+
}
|
|
36
|
+
updated(e) {
|
|
37
|
+
e.has("label") && this.checkOverflow();
|
|
38
|
+
}
|
|
39
|
+
setupObservers() {
|
|
40
|
+
this.disconnectObservers(), this.checkOverflow = this.checkOverflow.bind(this), this.textElement && (this.textObserver = new ResizeObserver(this.checkOverflow), this.textObserver.observe(this.textElement)), this.hostObserver = new ResizeObserver(this.checkOverflow), this.hostObserver.observe(this);
|
|
41
|
+
}
|
|
42
|
+
disconnectObservers() {
|
|
43
|
+
var e, t;
|
|
44
|
+
(e = this.textObserver) == null || e.disconnect(), this.textObserver = void 0, (t = this.hostObserver) == null || t.disconnect(), this.hostObserver = void 0;
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return this.isOverflowing ? h`
|
|
48
|
+
<div
|
|
49
|
+
class="text-content"
|
|
50
|
+
${this.isOverflowing ? b(this.label, this.placement) : p}
|
|
51
|
+
>
|
|
52
|
+
<slot></slot>
|
|
53
|
+
</div>
|
|
54
|
+
` : h` <div class="text-content"><slot></slot></div> `;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
r.styles = m`
|
|
58
|
+
:host {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
.text-content {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
i([
|
|
69
|
+
v({ type: String })
|
|
70
|
+
], r.prototype, "label", 2);
|
|
71
|
+
i([
|
|
72
|
+
v({ type: String })
|
|
73
|
+
], r.prototype, "placement", 2);
|
|
74
|
+
i([
|
|
75
|
+
O()
|
|
76
|
+
], r.prototype, "isOverflowing", 2);
|
|
77
|
+
i([
|
|
78
|
+
d(".text-content")
|
|
79
|
+
], r.prototype, "textElement", 2);
|
|
80
|
+
r = i([
|
|
81
|
+
f("lit-overflow-tooltip")
|
|
82
|
+
], r);
|
|
83
|
+
export {
|
|
84
|
+
r as LitOverflowTooltip
|
|
85
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { customElement as d } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
2
|
+
import { property as i } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
3
|
+
import { state as h } from "../node_modules/@lit/reactive-element/decorators/state.js";
|
|
4
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { html as c } from "../node_modules/lit-html/lit-html.js";
|
|
6
|
+
import { LitElement as u } from "../node_modules/lit-element/lit-element.js";
|
|
7
|
+
var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (p, o, r, n) => {
|
|
8
|
+
for (var s = n > 1 ? void 0 : n ? b(o, r) : o, a = p.length - 1, l; a >= 0; a--)
|
|
9
|
+
(l = p[a]) && (s = (n ? l(o, r, s) : l(s)) || s);
|
|
10
|
+
return n && s && m(o, r, s), s;
|
|
11
|
+
};
|
|
12
|
+
let t = class extends u {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.variant = "contained", this.size = "medium", this.label = "Button", this.fullWidth = !1, this.disabled = !1, this.count = void 0, this.active = !1, this.isSmallScreen = !1;
|
|
15
|
+
}
|
|
16
|
+
// Stav pre breakpoint
|
|
17
|
+
connectedCallback() {
|
|
18
|
+
super.connectedCallback(), this.updateScreenSize(), window.addEventListener("resize", this.updateScreenSize.bind(this));
|
|
19
|
+
}
|
|
20
|
+
disconnectedCallback() {
|
|
21
|
+
window.removeEventListener("resize", this.updateScreenSize.bind(this)), super.disconnectedCallback();
|
|
22
|
+
}
|
|
23
|
+
updateScreenSize() {
|
|
24
|
+
this.isSmallScreen = window.matchMedia("(max-width: 600px)").matches;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return this.isSmallScreen ? c`
|
|
28
|
+
<lit-icon-button
|
|
29
|
+
.icon="${this.icon}"
|
|
30
|
+
.variant="${this.variant}"
|
|
31
|
+
.size="${this.size}"
|
|
32
|
+
.disabled="${this.disabled}"
|
|
33
|
+
.active="${this.active}"
|
|
34
|
+
></lit-icon-button>
|
|
35
|
+
` : c`
|
|
36
|
+
<lit-button
|
|
37
|
+
.icon="${this.icon}"
|
|
38
|
+
.variant="${this.variant}"
|
|
39
|
+
.count="${this.count}"
|
|
40
|
+
.size="${this.size}"
|
|
41
|
+
.label="${this.label}"
|
|
42
|
+
.fullWidth="${this.fullWidth}"
|
|
43
|
+
.disabled="${this.disabled}"
|
|
44
|
+
.active="${this.active}"
|
|
45
|
+
></lit-button>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
e([
|
|
50
|
+
i({ type: String })
|
|
51
|
+
], t.prototype, "variant", 2);
|
|
52
|
+
e([
|
|
53
|
+
i({ type: String })
|
|
54
|
+
], t.prototype, "size", 2);
|
|
55
|
+
e([
|
|
56
|
+
i({ type: String })
|
|
57
|
+
], t.prototype, "label", 2);
|
|
58
|
+
e([
|
|
59
|
+
i({ type: String })
|
|
60
|
+
], t.prototype, "icon", 2);
|
|
61
|
+
e([
|
|
62
|
+
i({ type: Boolean })
|
|
63
|
+
], t.prototype, "fullWidth", 2);
|
|
64
|
+
e([
|
|
65
|
+
i({ type: Boolean })
|
|
66
|
+
], t.prototype, "disabled", 2);
|
|
67
|
+
e([
|
|
68
|
+
i({ type: Number })
|
|
69
|
+
], t.prototype, "count", 2);
|
|
70
|
+
e([
|
|
71
|
+
i({ type: Function })
|
|
72
|
+
], t.prototype, "onClick", 2);
|
|
73
|
+
e([
|
|
74
|
+
i({ type: Boolean })
|
|
75
|
+
], t.prototype, "active", 2);
|
|
76
|
+
e([
|
|
77
|
+
h()
|
|
78
|
+
], t.prototype, "isSmallScreen", 2);
|
|
79
|
+
t = e([
|
|
80
|
+
d("lit-responsive-button")
|
|
81
|
+
], t);
|
|
82
|
+
export {
|
|
83
|
+
t as LitResponsiveButton
|
|
84
|
+
};
|