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,27 +0,0 @@
|
|
|
1
|
-
import { nothing as s, noChange as r } from "../lit-html.js";
|
|
2
|
-
import { directive as n, Directive as o, PartType as a } from "../directive.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2017 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
class i extends o {
|
|
9
|
-
constructor(t) {
|
|
10
|
-
if (super(t), this.it = s, t.type !== a.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
11
|
-
}
|
|
12
|
-
render(t) {
|
|
13
|
-
if (t === s || t == null) return this._t = void 0, this.it = t;
|
|
14
|
-
if (t === r) return t;
|
|
15
|
-
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
-
if (t === this.it) return this._t;
|
|
17
|
-
this.it = t;
|
|
18
|
-
const e = [t];
|
|
19
|
-
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
i.directiveName = "unsafeHTML", i.resultType = 1;
|
|
23
|
-
const l = n(i);
|
|
24
|
-
export {
|
|
25
|
-
i as UnsafeHTMLDirective,
|
|
26
|
-
l as unsafeHTML
|
|
27
|
-
};
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const H = globalThis, M = H.trustedTypes, B = M ? M.createPolicy("lit-html", { createHTML: (h) => h }) : void 0, W = "$lit$", p = `lit$${Math.random().toFixed(9).slice(2)}$`, k = "?" + p, D = `<${k}>`, f = document, x = () => f.createComment(""), N = (h) => h === null || typeof h != "object" && typeof h != "function", E = Array.isArray, z = (h) => E(h) || typeof (h == null ? void 0 : h[Symbol.iterator]) == "function", w = `[
|
|
7
|
-
\f\r]`, y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P = /-->/g, U = />/g, u = RegExp(`>|${w}(?:([^\\s"'>=/]+)(${w}*=${w}*(?:[^
|
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), L = /'/g, O = /"/g, V = /^(?:script|style|textarea|title)$/i, T = Symbol.for("lit-noChange"), a = Symbol.for("lit-nothing"), R = /* @__PURE__ */ new WeakMap(), g = f.createTreeWalker(f, 129);
|
|
9
|
-
function j(h, t) {
|
|
10
|
-
if (!E(h) || !h.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
11
|
-
return B !== void 0 ? B.createHTML(t) : t;
|
|
12
|
-
}
|
|
13
|
-
const Z = (h, t) => {
|
|
14
|
-
const e = h.length - 1, s = [];
|
|
15
|
-
let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = y;
|
|
16
|
-
for (let A = 0; A < e; A++) {
|
|
17
|
-
const r = h[A];
|
|
18
|
-
let $, _, l = -1, c = 0;
|
|
19
|
-
for (; c < r.length && (n.lastIndex = c, _ = n.exec(r), _ !== null); ) c = n.lastIndex, n === y ? _[1] === "!--" ? n = P : _[1] !== void 0 ? n = U : _[2] !== void 0 ? (V.test(_[2]) && (i = RegExp("</" + _[2], "g")), n = u) : _[3] !== void 0 && (n = u) : n === u ? _[0] === ">" ? (n = i ?? y, l = -1) : _[1] === void 0 ? l = -2 : (l = n.lastIndex - _[2].length, $ = _[1], n = _[3] === void 0 ? u : _[3] === '"' ? O : L) : n === O || n === L ? n = u : n === P || n === U ? n = y : (n = u, i = void 0);
|
|
20
|
-
const d = n === u && h[A + 1].startsWith("/>") ? " " : "";
|
|
21
|
-
o += n === y ? r + D : l >= 0 ? (s.push($), r.slice(0, l) + W + r.slice(l) + p + d) : r + p + (l === -2 ? A : d);
|
|
22
|
-
}
|
|
23
|
-
return [j(h, o + (h[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
24
|
-
};
|
|
25
|
-
class b {
|
|
26
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
|
27
|
-
let i;
|
|
28
|
-
this.parts = [];
|
|
29
|
-
let o = 0, n = 0;
|
|
30
|
-
const A = t.length - 1, r = this.parts, [$, _] = Z(t, e);
|
|
31
|
-
if (this.el = b.createElement($, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
32
|
-
const l = this.el.content.firstChild;
|
|
33
|
-
l.replaceWith(...l.childNodes);
|
|
34
|
-
}
|
|
35
|
-
for (; (i = g.nextNode()) !== null && r.length < A; ) {
|
|
36
|
-
if (i.nodeType === 1) {
|
|
37
|
-
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(W)) {
|
|
38
|
-
const c = _[n++], d = i.getAttribute(l).split(p), C = /([.?@])?(.*)/.exec(c);
|
|
39
|
-
r.push({ type: 1, index: o, name: C[2], strings: d, ctor: C[1] === "." ? q : C[1] === "?" ? G : C[1] === "@" ? J : S }), i.removeAttribute(l);
|
|
40
|
-
} else l.startsWith(p) && (r.push({ type: 6, index: o }), i.removeAttribute(l));
|
|
41
|
-
if (V.test(i.tagName)) {
|
|
42
|
-
const l = i.textContent.split(p), c = l.length - 1;
|
|
43
|
-
if (c > 0) {
|
|
44
|
-
i.textContent = M ? M.emptyScript : "";
|
|
45
|
-
for (let d = 0; d < c; d++) i.append(l[d], x()), g.nextNode(), r.push({ type: 2, index: ++o });
|
|
46
|
-
i.append(l[c], x());
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
} else if (i.nodeType === 8) if (i.data === k) r.push({ type: 2, index: o });
|
|
50
|
-
else {
|
|
51
|
-
let l = -1;
|
|
52
|
-
for (; (l = i.data.indexOf(p, l + 1)) !== -1; ) r.push({ type: 7, index: o }), l += p.length - 1;
|
|
53
|
-
}
|
|
54
|
-
o++;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
static createElement(t, e) {
|
|
58
|
-
const s = f.createElement("template");
|
|
59
|
-
return s.innerHTML = t, s;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function v(h, t, e = h, s) {
|
|
63
|
-
var n, A;
|
|
64
|
-
if (t === T) return t;
|
|
65
|
-
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
|
66
|
-
const o = N(t) ? void 0 : t._$litDirective$;
|
|
67
|
-
return (i == null ? void 0 : i.constructor) !== o && ((A = i == null ? void 0 : i._$AO) == null || A.call(i, !1), o === void 0 ? i = void 0 : (i = new o(h), i._$AT(h, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = v(h, i._$AS(h, t.values), i, s)), t;
|
|
68
|
-
}
|
|
69
|
-
class F {
|
|
70
|
-
constructor(t, e) {
|
|
71
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
72
|
-
}
|
|
73
|
-
get parentNode() {
|
|
74
|
-
return this._$AM.parentNode;
|
|
75
|
-
}
|
|
76
|
-
get _$AU() {
|
|
77
|
-
return this._$AM._$AU;
|
|
78
|
-
}
|
|
79
|
-
u(t) {
|
|
80
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? f).importNode(e, !0);
|
|
81
|
-
g.currentNode = i;
|
|
82
|
-
let o = g.nextNode(), n = 0, A = 0, r = s[0];
|
|
83
|
-
for (; r !== void 0; ) {
|
|
84
|
-
if (n === r.index) {
|
|
85
|
-
let $;
|
|
86
|
-
r.type === 2 ? $ = new m(o, o.nextSibling, this, t) : r.type === 1 ? $ = new r.ctor(o, r.name, r.strings, this, t) : r.type === 6 && ($ = new K(o, this, t)), this._$AV.push($), r = s[++A];
|
|
87
|
-
}
|
|
88
|
-
n !== (r == null ? void 0 : r.index) && (o = g.nextNode(), n++);
|
|
89
|
-
}
|
|
90
|
-
return g.currentNode = f, i;
|
|
91
|
-
}
|
|
92
|
-
p(t) {
|
|
93
|
-
let e = 0;
|
|
94
|
-
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
class m {
|
|
98
|
-
get _$AU() {
|
|
99
|
-
var t;
|
|
100
|
-
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
101
|
-
}
|
|
102
|
-
constructor(t, e, s, i) {
|
|
103
|
-
this.type = 2, this._$AH = a, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
104
|
-
}
|
|
105
|
-
get parentNode() {
|
|
106
|
-
let t = this._$AA.parentNode;
|
|
107
|
-
const e = this._$AM;
|
|
108
|
-
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
109
|
-
}
|
|
110
|
-
get startNode() {
|
|
111
|
-
return this._$AA;
|
|
112
|
-
}
|
|
113
|
-
get endNode() {
|
|
114
|
-
return this._$AB;
|
|
115
|
-
}
|
|
116
|
-
_$AI(t, e = this) {
|
|
117
|
-
t = v(this, t, e), N(t) ? t === a || t == null || t === "" ? (this._$AH !== a && this._$AR(), this._$AH = a) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : z(t) ? this.k(t) : this._(t);
|
|
118
|
-
}
|
|
119
|
-
O(t) {
|
|
120
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
121
|
-
}
|
|
122
|
-
T(t) {
|
|
123
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
124
|
-
}
|
|
125
|
-
_(t) {
|
|
126
|
-
this._$AH !== a && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(f.createTextNode(t)), this._$AH = t;
|
|
127
|
-
}
|
|
128
|
-
$(t) {
|
|
129
|
-
var o;
|
|
130
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = b.createElement(j(s.h, s.h[0]), this.options)), s);
|
|
131
|
-
if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
|
|
132
|
-
else {
|
|
133
|
-
const n = new F(i, this), A = n.u(this.options);
|
|
134
|
-
n.p(e), this.T(A), this._$AH = n;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
_$AC(t) {
|
|
138
|
-
let e = R.get(t.strings);
|
|
139
|
-
return e === void 0 && R.set(t.strings, e = new b(t)), e;
|
|
140
|
-
}
|
|
141
|
-
k(t) {
|
|
142
|
-
E(this._$AH) || (this._$AH = [], this._$AR());
|
|
143
|
-
const e = this._$AH;
|
|
144
|
-
let s, i = 0;
|
|
145
|
-
for (const o of t) i === e.length ? e.push(s = new m(this.O(x()), this.O(x()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
|
146
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
147
|
-
}
|
|
148
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
|
149
|
-
var s;
|
|
150
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
151
|
-
const i = t.nextSibling;
|
|
152
|
-
t.remove(), t = i;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
setConnected(t) {
|
|
156
|
-
var e;
|
|
157
|
-
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
class S {
|
|
161
|
-
get tagName() {
|
|
162
|
-
return this.element.tagName;
|
|
163
|
-
}
|
|
164
|
-
get _$AU() {
|
|
165
|
-
return this._$AM._$AU;
|
|
166
|
-
}
|
|
167
|
-
constructor(t, e, s, i, o) {
|
|
168
|
-
this.type = 1, this._$AH = a, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = a;
|
|
169
|
-
}
|
|
170
|
-
_$AI(t, e = this, s, i) {
|
|
171
|
-
const o = this.strings;
|
|
172
|
-
let n = !1;
|
|
173
|
-
if (o === void 0) t = v(this, t, e, 0), n = !N(t) || t !== this._$AH && t !== T, n && (this._$AH = t);
|
|
174
|
-
else {
|
|
175
|
-
const A = t;
|
|
176
|
-
let r, $;
|
|
177
|
-
for (t = o[0], r = 0; r < o.length - 1; r++) $ = v(this, A[s + r], e, r), $ === T && ($ = this._$AH[r]), n || (n = !N($) || $ !== this._$AH[r]), $ === a ? t = a : t !== a && (t += ($ ?? "") + o[r + 1]), this._$AH[r] = $;
|
|
178
|
-
}
|
|
179
|
-
n && !i && this.j(t);
|
|
180
|
-
}
|
|
181
|
-
j(t) {
|
|
182
|
-
t === a ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
class q extends S {
|
|
186
|
-
constructor() {
|
|
187
|
-
super(...arguments), this.type = 3;
|
|
188
|
-
}
|
|
189
|
-
j(t) {
|
|
190
|
-
this.element[this.name] = t === a ? void 0 : t;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
class G extends S {
|
|
194
|
-
constructor() {
|
|
195
|
-
super(...arguments), this.type = 4;
|
|
196
|
-
}
|
|
197
|
-
j(t) {
|
|
198
|
-
this.element.toggleAttribute(this.name, !!t && t !== a);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class J extends S {
|
|
202
|
-
constructor(t, e, s, i, o) {
|
|
203
|
-
super(t, e, s, i, o), this.type = 5;
|
|
204
|
-
}
|
|
205
|
-
_$AI(t, e = this) {
|
|
206
|
-
if ((t = v(this, t, e, 0) ?? a) === T) return;
|
|
207
|
-
const s = this._$AH, i = t === a && s !== a || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== a && (s === a || i);
|
|
208
|
-
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
209
|
-
}
|
|
210
|
-
handleEvent(t) {
|
|
211
|
-
var e;
|
|
212
|
-
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
class K {
|
|
216
|
-
constructor(t, e, s) {
|
|
217
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
218
|
-
}
|
|
219
|
-
get _$AU() {
|
|
220
|
-
return this._$AM._$AU;
|
|
221
|
-
}
|
|
222
|
-
_$AI(t) {
|
|
223
|
-
v(this, t);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
const Q = { I: m }, I = H.litHtmlPolyfillSupport;
|
|
227
|
-
I == null || I(b, m), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.3.0");
|
|
228
|
-
const X = (h, t, e) => {
|
|
229
|
-
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
230
|
-
let i = s._$litPart$;
|
|
231
|
-
if (i === void 0) {
|
|
232
|
-
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
233
|
-
s._$litPart$ = i = new m(t.insertBefore(x(), o), o, void 0, e ?? {});
|
|
234
|
-
}
|
|
235
|
-
return i._$AI(h), i;
|
|
236
|
-
};
|
|
237
|
-
export {
|
|
238
|
-
Q as _$LH,
|
|
239
|
-
T as noChange,
|
|
240
|
-
a as nothing,
|
|
241
|
-
X as render
|
|
242
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { LitElement as d, html as r, css as u } from "lit";
|
|
2
|
-
import { customElement as m } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
3
|
-
import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
-
import h from "./styles/button-shared-styles.js";
|
|
5
|
-
var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (s, n, a, l) => {
|
|
6
|
-
for (var o = l > 1 ? void 0 : l ? y(n, a) : n, p = s.length - 1, c; p >= 0; p--)
|
|
7
|
-
(c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
|
|
8
|
-
return l && o && b(n, a, o), o;
|
|
9
|
-
};
|
|
10
|
-
let t = class extends d {
|
|
11
|
-
constructor() {
|
|
12
|
-
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.isLoading = !1;
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
const s = `button--${this.size} button--${this.variant} ${this.fullWidth ? "button--fullWidth" : ""} ${this.active ? "active" : ""}`, n = this.count !== void 0 && this.count !== null && this.count >= 0;
|
|
16
|
-
return r`
|
|
17
|
-
<button ?disabled=${this.disabled} @click=${this.onClick} class=${s}>
|
|
18
|
-
<div class="button--content">
|
|
19
|
-
${this.isLoading ? r` <lit-loader size="small" class="button--loader"></lit-loader> ` : null}
|
|
20
|
-
|
|
21
|
-
<div
|
|
22
|
-
class="button-inner"
|
|
23
|
-
style="visibility: ${this.isLoading ? "hidden" : "visible"};
|
|
24
|
-
"
|
|
25
|
-
>
|
|
26
|
-
<slot name="start-icon">
|
|
27
|
-
${this.icon ? r`<lit-icon
|
|
28
|
-
class="start-icon"
|
|
29
|
-
size="1.25rem"
|
|
30
|
-
icon="${this.icon}"
|
|
31
|
-
></lit-icon>` : ""}
|
|
32
|
-
</slot>
|
|
33
|
-
${this.label}
|
|
34
|
-
${n ? r`<lit-pill count=${this.count}></lit-pill>` : ""}
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</button>
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
t.styles = [
|
|
42
|
-
// styles,
|
|
43
|
-
h,
|
|
44
|
-
u`
|
|
45
|
-
/* Basic button styles */
|
|
46
|
-
button {
|
|
47
|
-
line-height: 1.5rem;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Size Variants */
|
|
53
|
-
.button--small {
|
|
54
|
-
-webkit-padding: 0.375rem 1rem;
|
|
55
|
-
padding: 0.1875rem 0.375rem;
|
|
56
|
-
font-size: 11px;
|
|
57
|
-
}
|
|
58
|
-
.button--medium {
|
|
59
|
-
font-size: 0.75rem;
|
|
60
|
-
font-weight: 500;
|
|
61
|
-
-webkit-padding: 0.375rem 0.75rem;
|
|
62
|
-
padding: 0.375rem 0.75rem;
|
|
63
|
-
}
|
|
64
|
-
.button--large {
|
|
65
|
-
font-weight: 700;
|
|
66
|
-
-webkit-padding: 0.75rem 1.5rem;
|
|
67
|
-
padding: 0.75rem 1.5rem;
|
|
68
|
-
font-size: 0.875rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* FullWidth style */
|
|
72
|
-
.button--fullWidth {
|
|
73
|
-
width: 100%;
|
|
74
|
-
display: block;
|
|
75
|
-
}
|
|
76
|
-
::slotted([slot='start-icon']),
|
|
77
|
-
.start-icon {
|
|
78
|
-
//margin-right: 8px;
|
|
79
|
-
font-size: 1.25rem !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.button--content {
|
|
83
|
-
position: relative;
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.button--loader {
|
|
90
|
-
position: absolute;
|
|
91
|
-
left: 50%;
|
|
92
|
-
top: 50%;
|
|
93
|
-
transform: translate(-50%, -50%);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.button-inner {
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
gap: 0.5rem;
|
|
100
|
-
visibility: visible;
|
|
101
|
-
}
|
|
102
|
-
`
|
|
103
|
-
];
|
|
104
|
-
i([
|
|
105
|
-
e({ type: String })
|
|
106
|
-
], t.prototype, "variant", 2);
|
|
107
|
-
i([
|
|
108
|
-
e({ type: String })
|
|
109
|
-
], t.prototype, "size", 2);
|
|
110
|
-
i([
|
|
111
|
-
e({ type: String })
|
|
112
|
-
], t.prototype, "label", 2);
|
|
113
|
-
i([
|
|
114
|
-
e({ type: String })
|
|
115
|
-
], t.prototype, "icon", 2);
|
|
116
|
-
i([
|
|
117
|
-
e({ type: Boolean })
|
|
118
|
-
], t.prototype, "fullWidth", 2);
|
|
119
|
-
i([
|
|
120
|
-
e({ type: Boolean })
|
|
121
|
-
], t.prototype, "disabled", 2);
|
|
122
|
-
i([
|
|
123
|
-
e({ type: Number })
|
|
124
|
-
], t.prototype, "count", 2);
|
|
125
|
-
i([
|
|
126
|
-
e({ type: Function })
|
|
127
|
-
], t.prototype, "onClick", 2);
|
|
128
|
-
i([
|
|
129
|
-
e({ type: Boolean })
|
|
130
|
-
], t.prototype, "active", 2);
|
|
131
|
-
i([
|
|
132
|
-
e({ type: Boolean })
|
|
133
|
-
], t.prototype, "isLoading", 2);
|
|
134
|
-
t = i([
|
|
135
|
-
m("lit-button")
|
|
136
|
-
], t);
|
|
137
|
-
export {
|
|
138
|
-
t as LitButton
|
|
139
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
2
|
-
import { property as n } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
3
|
-
import { LitElement as g, html as d, css as v } from "lit";
|
|
4
|
-
var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (e, t, i, o) => {
|
|
5
|
-
for (var r = o > 1 ? void 0 : o ? f(t, i) : t, a = e.length - 1, p; a >= 0; a--)
|
|
6
|
-
(p = e[a]) && (r = (o ? p(t, i, r) : p(r)) || r);
|
|
7
|
-
return o && r && h(t, i, r), r;
|
|
8
|
-
};
|
|
9
|
-
let s = class extends g {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments), this.label = "", this.progress = 0;
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const e = Math.min(100, Math.max(0, this.progress));
|
|
15
|
-
return d`
|
|
16
|
-
<div class="container">
|
|
17
|
-
<div class="label">${this.label}</div>
|
|
18
|
-
<div class="progress-bar-container">
|
|
19
|
-
<div class="percentage">${e}%</div>
|
|
20
|
-
<div class="progress-bar">
|
|
21
|
-
<div class="progress-fill" style="width: ${e}%"></div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
`;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
s.styles = [
|
|
29
|
-
v`
|
|
30
|
-
.container {
|
|
31
|
-
gap: 4px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.label {
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
color: var(--text-secondary, #5d6371);
|
|
38
|
-
gap: 10px;
|
|
39
|
-
line-height: 24px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.progress-bar-container {
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: 4px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.progress-bar {
|
|
49
|
-
display: flex;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 12px;
|
|
52
|
-
border-radius: 8px;
|
|
53
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.progress-fill {
|
|
58
|
-
height: 100%;
|
|
59
|
-
background-color: var(--color-primary-main, #76b703);
|
|
60
|
-
transition: width 0.05s ease-in-out;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.percentage {
|
|
64
|
-
font-weight: 500;
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
}
|
|
67
|
-
`
|
|
68
|
-
];
|
|
69
|
-
l([
|
|
70
|
-
n({ type: String })
|
|
71
|
-
], s.prototype, "label", 2);
|
|
72
|
-
l([
|
|
73
|
-
n({ type: Number })
|
|
74
|
-
], s.prototype, "progress", 2);
|
|
75
|
-
s = l([
|
|
76
|
-
c("lit-progress-bar")
|
|
77
|
-
], s);
|
|
78
|
-
export {
|
|
79
|
-
s as LitProgressBar
|
|
80
|
-
};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { css as m, LitElement as f, html as u } from "lit";
|
|
2
|
-
import { customElement as g } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
3
|
-
import { property as a } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
-
import { directive as v, Directive as w } from "../node_modules/lit-html/directive.js";
|
|
5
|
-
import { render as p } from "../node_modules/lit-html/lit-html.js";
|
|
6
|
-
import { computePosition as y, offset as E, flip as b, shift as x, size as T, arrow as _ } from "@floating-ui/dom";
|
|
7
|
-
var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, h = (i, t, n, r) => {
|
|
8
|
-
for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
|
|
9
|
-
(s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
|
|
10
|
-
return r && o && k(t, n, o), o;
|
|
11
|
-
};
|
|
12
|
-
const c = ["pointerenter", "mouseenter"], d = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
|
|
13
|
-
let l = class extends f {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments), this.showing = !1, this.placement = "top", this.offset = 8, this.openDelayMs = 300, this._target = null, this.openTimeout = null, this.isHoveringTarget = !1, this.scheduleShow = () => {
|
|
16
|
-
this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
|
|
17
|
-
this._target && this.isHoveringTarget && this.showTooltipNow();
|
|
18
|
-
}, this.openDelayMs);
|
|
19
|
-
}, this.showTooltipNow = () => {
|
|
20
|
-
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && y(this.target, this, {
|
|
21
|
-
placement: this.placement,
|
|
22
|
-
strategy: "absolute",
|
|
23
|
-
middleware: [
|
|
24
|
-
E(this.offset),
|
|
25
|
-
b(),
|
|
26
|
-
x({ padding: 8 }),
|
|
27
|
-
T({ padding: 8 }),
|
|
28
|
-
_({ element: this.arrowElement })
|
|
29
|
-
]
|
|
30
|
-
}).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
|
|
31
|
-
r.hide && Object.assign(this.style, {
|
|
32
|
-
display: r.hide.referenceHidden || !this.showing ? "none" : "block"
|
|
33
|
-
}), Object.assign(this.style, {
|
|
34
|
-
left: `${i}px`,
|
|
35
|
-
top: `${t}px`
|
|
36
|
-
});
|
|
37
|
-
const o = {
|
|
38
|
-
top: "bottom",
|
|
39
|
-
bottom: "top",
|
|
40
|
-
left: "right",
|
|
41
|
-
right: "left"
|
|
42
|
-
}[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
|
|
43
|
-
Object.assign(this.arrowElement.style, {
|
|
44
|
-
left: e != null ? `${e}px` : "",
|
|
45
|
-
top: s != null ? `${s}px` : "",
|
|
46
|
-
right: "",
|
|
47
|
-
bottom: "",
|
|
48
|
-
[o]: "-4px"
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}, this.clearOpenTimeout = () => {
|
|
52
|
-
this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
|
|
53
|
-
}, this.markHovering = () => {
|
|
54
|
-
this.isHoveringTarget = !0;
|
|
55
|
-
}, this.markNotHovering = () => {
|
|
56
|
-
this.isHoveringTarget = !1, this.clearOpenTimeout();
|
|
57
|
-
}, this.hide = () => {
|
|
58
|
-
this.showing = !1, this.style.display = "none";
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
get target() {
|
|
62
|
-
return this._target;
|
|
63
|
-
}
|
|
64
|
-
set target(i) {
|
|
65
|
-
this._target && (c.forEach((t) => {
|
|
66
|
-
this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
|
|
67
|
-
}), d.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (c.forEach((t) => {
|
|
68
|
-
i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
|
|
69
|
-
}), d.forEach((t) => {
|
|
70
|
-
i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
|
|
71
|
-
})), this._target = i;
|
|
72
|
-
}
|
|
73
|
-
connectedCallback() {
|
|
74
|
-
super.connectedCallback(), this.style.display = "none";
|
|
75
|
-
}
|
|
76
|
-
firstUpdated() {
|
|
77
|
-
this.arrowElement = this.shadowRoot.getElementById("arrow");
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
return u`
|
|
81
|
-
<div id="arrow"></div>
|
|
82
|
-
<slot></slot>
|
|
83
|
-
`;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
l.styles = m`
|
|
87
|
-
:host {
|
|
88
|
-
position: absolute;
|
|
89
|
-
display: inline-block;
|
|
90
|
-
background: black;
|
|
91
|
-
color: white;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
padding: 4px 8px;
|
|
94
|
-
border-radius: 6px;
|
|
95
|
-
line-height: 1.5;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
z-index: 9999;
|
|
98
|
-
opacity: 0;
|
|
99
|
-
transform: scale(0.85);
|
|
100
|
-
transition:
|
|
101
|
-
opacity 0.2s ease,
|
|
102
|
-
transform 0.2s ease;
|
|
103
|
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
104
|
-
max-width: 300px;
|
|
105
|
-
width: max-content;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host([showing]) {
|
|
109
|
-
opacity: 1;
|
|
110
|
-
transform: scale(1);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
#arrow {
|
|
114
|
-
position: absolute;
|
|
115
|
-
width: 8px;
|
|
116
|
-
height: 8px;
|
|
117
|
-
background: black;
|
|
118
|
-
transform: rotate(45deg);
|
|
119
|
-
}
|
|
120
|
-
slot {
|
|
121
|
-
display: -webkit-box;
|
|
122
|
-
-webkit-line-clamp: 30; /* Limit to 3 lines */
|
|
123
|
-
-webkit-box-orient: vertical;
|
|
124
|
-
overflow: hidden;
|
|
125
|
-
text-overflow: ellipsis;
|
|
126
|
-
word-wrap: break-word;
|
|
127
|
-
max-height: 70vh;
|
|
128
|
-
}
|
|
129
|
-
`;
|
|
130
|
-
h([
|
|
131
|
-
a({ type: Boolean, reflect: !0 })
|
|
132
|
-
], l.prototype, "showing", 2);
|
|
133
|
-
h([
|
|
134
|
-
a({ type: String, reflect: !0 })
|
|
135
|
-
], l.prototype, "placement", 2);
|
|
136
|
-
h([
|
|
137
|
-
a({ type: Number })
|
|
138
|
-
], l.prototype, "offset", 2);
|
|
139
|
-
h([
|
|
140
|
-
a({ type: Number })
|
|
141
|
-
], l.prototype, "openDelayMs", 2);
|
|
142
|
-
l = h([
|
|
143
|
-
g("simple-tooltip")
|
|
144
|
-
], l);
|
|
145
|
-
class H extends w {
|
|
146
|
-
constructor() {
|
|
147
|
-
super(...arguments), this.initialized = !1;
|
|
148
|
-
}
|
|
149
|
-
disconnect() {
|
|
150
|
-
this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
|
|
151
|
-
}
|
|
152
|
-
render() {
|
|
153
|
-
}
|
|
154
|
-
// required override
|
|
155
|
-
update(t, [n, r = "top", o = 200]) {
|
|
156
|
-
this.part = t, this.content = n, this.placement = r, this.delay = o;
|
|
157
|
-
const e = this.part.element;
|
|
158
|
-
if (!this.initialized) {
|
|
159
|
-
this.initialized = !0;
|
|
160
|
-
const s = () => {
|
|
161
|
-
this.tooltip || (this.tooltip = document.createElement("simple-tooltip"), this.tooltip.placement = this.placement, this.tooltip.openDelayMs = this.delay, document.body.appendChild(this.tooltip), p(this.content, this.tooltip, this.part.options)), this.tooltip.target = e, this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, this.tooltip.scheduleShow(), e.removeEventListener("mouseenter", s), e.removeEventListener("pointerenter", s);
|
|
162
|
-
};
|
|
163
|
-
e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
|
|
164
|
-
}
|
|
165
|
-
this.tooltip && (this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, p(this.content, this.tooltip, this.part.options), document.body.contains(e) || this.tooltip.hide());
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
const P = v(H);
|
|
169
|
-
export {
|
|
170
|
-
l as SimpleTooltip,
|
|
171
|
-
P as tooltip
|
|
172
|
-
};
|