overview-components 1.0.91 → 1.0.92
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/package.json +74 -76
- package/dist/assets/generated/locales/de.js +0 -73
- package/dist/assets/generated/locales/en.js +0 -73
- package/dist/assets/generated/locales/fr.js +0 -73
- package/dist/assets/generated/locales/hr.js +0 -73
- package/dist/assets/generated/locales/it.js +0 -73
- package/dist/assets/generated/locales/pl.js +0 -73
- package/dist/assets/generated/locales/ro.js +0 -73
- package/dist/assets/generated/locales/sk.js +0 -73
- package/dist/assets/generated/locales/sr.js +0 -73
- package/dist/components/lit-attachments-tab.js +0 -515
- package/dist/components/lit-badge.js +0 -97
- package/dist/components/lit-case-variables-tab.js +0 -723
- package/dist/components/lit-chart.js +0 -392
- package/dist/components/lit-data-grid-tanstack.js +0 -1728
- package/dist/components/lit-filter-modal.js +0 -308
- package/dist/components/lit-multiselect-item.js +0 -526
- package/dist/components/lit-section-tab.js +0 -129
- package/dist/components/lit-tabs-overview.js +0 -300
- package/dist/components/react-wrappers/attachments-tab.js +0 -14
- package/dist/components/react-wrappers/badge.js +0 -14
- package/dist/components/react-wrappers/button.js +0 -14
- package/dist/components/react-wrappers/case-variables-tab.js +0 -14
- package/dist/components/react-wrappers/chart.js +0 -14
- package/dist/components/react-wrappers/data-grid-tanstack.js +0 -14
- package/dist/components/react-wrappers/filter-modal.js +0 -14
- package/dist/components/react-wrappers/progress-bar.js +0 -14
- package/dist/components/react-wrappers/section-tab.js +0 -14
- package/dist/components/react-wrappers/tabs-overview.js +0 -14
- package/dist/index.js +0 -42
- package/dist/libs/xlsx.mini.min.js +0 -10
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -42
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -249
- package/dist/node_modules/lit-html/async-directive.js +0 -69
- package/dist/node_modules/lit-html/directive-helpers.js +0 -45
- package/dist/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/lit-html/directives/ref.js +0 -42
- package/dist/node_modules/lit-html/directives/repeat.js +0 -61
- package/dist/node_modules/lit-html/directives/style-map.js +0 -36
- package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
- package/dist/node_modules/lit-html/lit-html.js +0 -242
- package/dist/shared/lit-button.js +0 -139
- package/dist/shared/lit-progress-bar.js +0 -80
- package/dist/shared/simple-tooltip.js +0 -172
- package/dist/shared/styles/button-shared-styles.js +0 -202
- package/dist/utils/currency.js +0 -13
- package/dist/utils/custom-filters.js +0 -49
- package/dist/utils/date.js +0 -14
- package/dist/utils/getOperatorByType.js +0 -51
- package/dist/utils/localization.js +0 -30
- package/dist/vite.svg +0 -1
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { css as o } from "lit";
|
|
2
|
-
const t = o`
|
|
3
|
-
button {
|
|
4
|
-
font-family: inherit;
|
|
5
|
-
border-radius: var(--border-radius-small, 0.5rem);
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
transition:
|
|
8
|
-
background-color 0.3s,
|
|
9
|
-
color 0.3s,
|
|
10
|
-
border 0.3s;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
}
|
|
15
|
-
/* Disabled button state */
|
|
16
|
-
|
|
17
|
-
.button--contained:disabled {
|
|
18
|
-
background-color: var(--color-primary-disabled, #d0d3db);
|
|
19
|
-
cursor: not-allowed;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.button--outlined:disabled {
|
|
23
|
-
color: var(--color-primary-disabled);
|
|
24
|
-
border: 1px solid var(--color-primary-disabled, #d0d3db);
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.button--text:disabled {
|
|
29
|
-
color: var(--color-primary-disabled, #d0d3db);
|
|
30
|
-
cursor: not-allowed;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.button--dashed:disabled {
|
|
34
|
-
color: var(--color-primary-disabled, #d0d3db);
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
border: 1px dashed var(--color-primary-disabled, #d0d3db);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.button--error:disabled {
|
|
40
|
-
background-color: var(--color-primary-disabled, #d0d3db);
|
|
41
|
-
cursor: not-allowed;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.button--ai:disabled {
|
|
45
|
-
background: var(--color-primary-disabled, #d0d3db);
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.button--outlined-ai:disabled {
|
|
50
|
-
color: var(--color-primary-disabled);
|
|
51
|
-
cursor: not-allowed;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.button--outlined-ai:disabled::before {
|
|
55
|
-
background: var(--color-primary-disabled);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.button--outlined-ai:disabled .button-inner {
|
|
59
|
-
background: none;
|
|
60
|
-
color: var(--color-primary-disabled);
|
|
61
|
-
-webkit-text-fill-color: var(--color-primary-disabled);
|
|
62
|
-
-webkit-background-clip: border-box;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Button Variants */
|
|
66
|
-
.button--outlined {
|
|
67
|
-
color: var(--text-primary);
|
|
68
|
-
border: 1px solid var(--text-primary, #111827);
|
|
69
|
-
background-color: var(--background-paper, #fff);
|
|
70
|
-
}
|
|
71
|
-
.button--outlined:not(:disabled):hover {
|
|
72
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.button--contained {
|
|
76
|
-
border: none;
|
|
77
|
-
color: #fff;
|
|
78
|
-
background-color: var(--color-primary-main, #76b703);
|
|
79
|
-
}
|
|
80
|
-
.button--contained:not(:disabled):hover {
|
|
81
|
-
background-color: var(--color-primary-dark, #5f9402);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.button--error {
|
|
85
|
-
border: none;
|
|
86
|
-
color: var(--color-error-light, #ffd6cd);
|
|
87
|
-
background-color: var(--color-error-main, #ca2d0a);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button--error:not(:disabled):hover {
|
|
91
|
-
background-color: var(--color-error-dark, #a52103);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.button--ai {
|
|
95
|
-
border: none;
|
|
96
|
-
color: #fff;
|
|
97
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.button--ai:not(:disabled):hover {
|
|
101
|
-
opacity: 80%;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.button--outlined-ai {
|
|
105
|
-
position: relative;
|
|
106
|
-
background-color: var(--background-paper, #fff);
|
|
107
|
-
border: none;
|
|
108
|
-
z-index: 0;
|
|
109
|
-
color: transparent;
|
|
110
|
-
|
|
111
|
-
background-image: linear-gradient(to right, #573493, #e78047);
|
|
112
|
-
-webkit-background-clip: text;
|
|
113
|
-
-webkit-text-fill-color: transparent;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.button--outlined-ai::before {
|
|
117
|
-
content: '';
|
|
118
|
-
position: absolute;
|
|
119
|
-
top: -1px;
|
|
120
|
-
left: -1px;
|
|
121
|
-
right: -1px;
|
|
122
|
-
bottom: -1px;
|
|
123
|
-
z-index: -1;
|
|
124
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
125
|
-
border-radius: inherit;
|
|
126
|
-
padding: 1px;
|
|
127
|
-
-webkit-mask:
|
|
128
|
-
linear-gradient(#fff 0 0) content-box,
|
|
129
|
-
linear-gradient(#fff 0 0);
|
|
130
|
-
mask-composite: exclude;
|
|
131
|
-
}
|
|
132
|
-
.button--outlined-ai .button-inner {
|
|
133
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
134
|
-
-webkit-background-clip: text;
|
|
135
|
-
-webkit-text-fill-color: transparent;
|
|
136
|
-
display: inline-flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
gap: 0.5rem;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.button--outlined-ai:not(:disabled) .out-ai {
|
|
142
|
-
color: #573493;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.button--outlined-ai:not(:disabled) .start-icon {
|
|
146
|
-
color: #573493;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.button--outlined-ai:not(:disabled):hover {
|
|
150
|
-
opacity: 80%;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.button--text {
|
|
154
|
-
border: none;
|
|
155
|
-
color: var(--text-primary, #111827);
|
|
156
|
-
background-color: var(--background-paper, #fff);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.button--text:not(:disabled):hover {
|
|
160
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.button--dashed {
|
|
164
|
-
position: relative;
|
|
165
|
-
border: none;
|
|
166
|
-
color: var(--text-primary, #111827);
|
|
167
|
-
background-color: var(--background-paper, #fff);
|
|
168
|
-
display: flex !important;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.button--dashed::before {
|
|
172
|
-
content: '';
|
|
173
|
-
top: 1px;
|
|
174
|
-
left: 1px;
|
|
175
|
-
right: 1px;
|
|
176
|
-
bottom: 1px;
|
|
177
|
-
position: absolute;
|
|
178
|
-
border: 1px dashed var(--color-divider, #d0d3db);
|
|
179
|
-
border-radius: 6px; /* 2px less than main radius */
|
|
180
|
-
box-sizing: border-box;
|
|
181
|
-
z-index: 1;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.button--dashed:not(:disabled):hover {
|
|
185
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.button--text.active {
|
|
189
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
190
|
-
}
|
|
191
|
-
.button--dashed.active {
|
|
192
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
193
|
-
}
|
|
194
|
-
.button--inherit {
|
|
195
|
-
background-color: inherit;
|
|
196
|
-
color: var(--text-primary, #111827);
|
|
197
|
-
border: none;
|
|
198
|
-
}
|
|
199
|
-
`;
|
|
200
|
-
export {
|
|
201
|
-
t as default
|
|
202
|
-
};
|
package/dist/utils/currency.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const e = (r, t) => {
|
|
2
|
-
if (r === null)
|
|
3
|
-
return null;
|
|
4
|
-
if (r === "")
|
|
5
|
-
return "";
|
|
6
|
-
const n = typeof r == "string" ? parseFloat(r) : r;
|
|
7
|
-
return isNaN(n) ? "Invalid number" : new Intl.NumberFormat(t, {
|
|
8
|
-
style: "decimal"
|
|
9
|
-
}).format(n);
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
e as formatCurrency
|
|
13
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DateTime as M } from "luxon";
|
|
2
|
-
const i = (e, r, y) => {
|
|
3
|
-
const t = e.getValue(r);
|
|
4
|
-
if (!t) return !1;
|
|
5
|
-
const s = a(t), d = y.startDate, n = y.endDate;
|
|
6
|
-
return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
|
|
7
|
-
};
|
|
8
|
-
function l(e, r, y) {
|
|
9
|
-
const t = e.getValue(r);
|
|
10
|
-
if (!t) return !1;
|
|
11
|
-
const s = a(t), d = y;
|
|
12
|
-
return !s || !d ? !1 : s === d;
|
|
13
|
-
}
|
|
14
|
-
const u = (e, r, y) => {
|
|
15
|
-
const t = e.getValue(r);
|
|
16
|
-
return t ? y.includes(t) : !1;
|
|
17
|
-
};
|
|
18
|
-
function a(e) {
|
|
19
|
-
if (!e) return null;
|
|
20
|
-
const r = [
|
|
21
|
-
"yyyy-MM-dd",
|
|
22
|
-
"dd-MM-yyyy",
|
|
23
|
-
"MM-dd-yyyy",
|
|
24
|
-
"d. M. yyyy",
|
|
25
|
-
"d. M. yyyy.",
|
|
26
|
-
"d.M.yyyy",
|
|
27
|
-
"yyyy/MM/dd",
|
|
28
|
-
"dd/MM/yyyy",
|
|
29
|
-
"M/d/yyyy",
|
|
30
|
-
"MM/dd/yyyy",
|
|
31
|
-
"dd MMMM yyyy",
|
|
32
|
-
"yyyy-MM-dd'T'HH:mm:ss",
|
|
33
|
-
"yyyy-MM-dd'T'HH:mm:ss.SSS",
|
|
34
|
-
"yyyy-MM-dd'T'HH:mm:ss.SSSZ",
|
|
35
|
-
"dd.MM.yyyy",
|
|
36
|
-
"MM.dd.yyyy",
|
|
37
|
-
"EEE, d MMM yyyy",
|
|
38
|
-
"EEE, d MMM yyyy HH:mm:ss Z"
|
|
39
|
-
];
|
|
40
|
-
let y;
|
|
41
|
-
for (const t of r)
|
|
42
|
-
if (y = M.fromFormat(e, t), y.isValid) break;
|
|
43
|
-
return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
l as dateFilterFn,
|
|
47
|
-
i as dateRangeFilterFn,
|
|
48
|
-
u as multiselectFilterFn
|
|
49
|
-
};
|
package/dist/utils/date.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DateTime as t } from "luxon";
|
|
2
|
-
const m = (r, e, n = !1, o) => {
|
|
3
|
-
if (r === null)
|
|
4
|
-
return null;
|
|
5
|
-
if (r === "")
|
|
6
|
-
return "";
|
|
7
|
-
const f = n ? `${o} HH:mm` : `${o}`, i = new Date(r);
|
|
8
|
-
return isNaN(i.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(f) : t.fromISO(r).setLocale(e).toLocaleString(
|
|
9
|
-
n ? t.DATETIME_SHORT : void 0
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
m as formatDate
|
|
14
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { msg as e } from "@lit/localize";
|
|
2
|
-
function n(l) {
|
|
3
|
-
switch (l) {
|
|
4
|
-
case "string":
|
|
5
|
-
return [
|
|
6
|
-
{ label: e("obsahuje"), value: "contains" },
|
|
7
|
-
{ label: e("rovná se"), value: "=" },
|
|
8
|
-
{ label: e("nerovná se"), value: "!=" },
|
|
9
|
-
{ label: e("začíná na"), value: "startsWith" },
|
|
10
|
-
{ label: e("končí na"), value: "endsWith" },
|
|
11
|
-
{ label: e("neobsahuje"), value: "doesNotContain" },
|
|
12
|
-
{ label: e("je prázdné"), value: "isEmpty" },
|
|
13
|
-
{ label: e("není prázdné"), value: "isNotEmpty" }
|
|
14
|
-
];
|
|
15
|
-
case "select":
|
|
16
|
-
return [
|
|
17
|
-
{ value: "is", label: e("Je") },
|
|
18
|
-
{ value: "not", label: e("Není") }
|
|
19
|
-
];
|
|
20
|
-
case "multiselect":
|
|
21
|
-
return [{ value: "isAnyOfValue", label: e("Je libovolná hodnota z") }];
|
|
22
|
-
case "number":
|
|
23
|
-
return [
|
|
24
|
-
{ label: e("rovná se"), value: "=" },
|
|
25
|
-
{ label: e("nerovná se"), value: "!=" },
|
|
26
|
-
{ label: e("větší než"), value: ">" },
|
|
27
|
-
{ label: e("větší nebo rovné"), value: ">=" },
|
|
28
|
-
{ label: e("menší než"), value: "<" },
|
|
29
|
-
{ label: e("menší nebo rovné"), value: "<=" },
|
|
30
|
-
{ label: e("je prázdné"), value: "isEmpty" },
|
|
31
|
-
{ label: e("není prázdné"), value: "isNotEmpty" }
|
|
32
|
-
];
|
|
33
|
-
case "date":
|
|
34
|
-
return [
|
|
35
|
-
{ label: e("rovná se"), value: "=" },
|
|
36
|
-
{ label: e("nerovná se"), value: "!=" },
|
|
37
|
-
{ label: e("větší než"), value: ">" },
|
|
38
|
-
{ label: e("větší nebo rovné"), value: ">=" },
|
|
39
|
-
{ label: e("menší než"), value: "<" },
|
|
40
|
-
{ label: e("menší nebo rovné"), value: "<=" },
|
|
41
|
-
{ label: e("je prázdné"), value: "isEmpty" },
|
|
42
|
-
{ label: e("není prázdné"), value: "isNotEmpty" },
|
|
43
|
-
{ label: e("od - do"), value: "fromTo" }
|
|
44
|
-
];
|
|
45
|
-
default:
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
n as getOperatorsByColumnType
|
|
51
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { configureLocalization as s } from "@lit/localize";
|
|
2
|
-
import * as o from "../assets/generated/locales/en.js";
|
|
3
|
-
import * as t from "../assets/generated/locales/pl.js";
|
|
4
|
-
import * as a from "../assets/generated/locales/de.js";
|
|
5
|
-
import * as e from "../assets/generated/locales/sk.js";
|
|
6
|
-
import * as m from "../assets/generated/locales/fr.js";
|
|
7
|
-
import * as i from "../assets/generated/locales/hr.js";
|
|
8
|
-
import * as p from "../assets/generated/locales/it.js";
|
|
9
|
-
import * as c from "../assets/generated/locales/ro.js";
|
|
10
|
-
import * as f from "../assets/generated/locales/sr.js";
|
|
11
|
-
const l = "cs", n = ["en", "de", "sk", "pl", "fr", "hr", "it", "ro", "ru", "sr"], L = /* @__PURE__ */ new Map([
|
|
12
|
-
["en", o],
|
|
13
|
-
["sk", e],
|
|
14
|
-
["pl", t],
|
|
15
|
-
["de", a],
|
|
16
|
-
["fr", m],
|
|
17
|
-
["hr", i],
|
|
18
|
-
["it", p],
|
|
19
|
-
["ro", c],
|
|
20
|
-
["ru", o],
|
|
21
|
-
["sr", f]
|
|
22
|
-
]), { getLocale: g, setLocale: u } = s({
|
|
23
|
-
sourceLocale: l,
|
|
24
|
-
targetLocales: n,
|
|
25
|
-
loadLocale: async (r) => L.get(r)
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
g as getLocale,
|
|
29
|
-
u as setLocale
|
|
30
|
-
};
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|