overview-components 1.0.97 → 1.0.99
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/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10180 -40
- 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-loading-bar.d.ts +3 -3
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/dist/_virtual/FileSaver.min.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/lodash.js +0 -4
- 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 -519
- package/dist/components/lit-badge.js +0 -100
- package/dist/components/lit-case-variables-tab.js +0 -727
- package/dist/components/lit-chart.js +0 -395
- package/dist/components/lit-data-grid-tanstack.js +0 -1733
- package/dist/components/lit-filter-modal.js +0 -312
- package/dist/components/lit-multiselect-item.js +0 -530
- package/dist/components/lit-section-tab.js +0 -133
- package/dist/components/lit-tabs-overview.js +0 -304
- 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/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
- package/dist/node_modules/@lit/localize/init/install.js +0 -11
- package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
- package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
- package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
- package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
- package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
- package/dist/node_modules/@lit/react/create-component.js +0 -35
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
- 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 -250
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/chart.js/dist/chart.js +0 -7122
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
- package/dist/node_modules/lit-element/lit-element.js +0 -51
- 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 -243
- package/dist/node_modules/lodash/lodash.js +0 -3678
- package/dist/node_modules/luxon/src/datetime.js +0 -1793
- package/dist/node_modules/luxon/src/duration.js +0 -723
- package/dist/node_modules/luxon/src/errors.js +0 -40
- package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
- package/dist/node_modules/luxon/src/impl/diff.js +0 -36
- package/dist/node_modules/luxon/src/impl/digits.js +0 -74
- package/dist/node_modules/luxon/src/impl/english.js +0 -138
- package/dist/node_modules/luxon/src/impl/formats.js +0 -150
- package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
- package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
- package/dist/node_modules/luxon/src/impl/locale.js +0 -282
- package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
- package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
- package/dist/node_modules/luxon/src/impl/util.js +0 -206
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
- package/dist/node_modules/luxon/src/info.js +0 -180
- package/dist/node_modules/luxon/src/interval.js +0 -466
- package/dist/node_modules/luxon/src/settings.js +0 -150
- package/dist/node_modules/luxon/src/zone.js +0 -88
- package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
- package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
- package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
- package/dist/shared/lit-button.js +0 -142
- package/dist/shared/lit-progress-bar.js +0 -83
- package/dist/shared/simple-tooltip.js +0 -174
- package/dist/shared/styles/button-shared-styles.js +0 -205
- package/dist/utils/currency.js +0 -13
- package/dist/utils/custom-filters.js +0 -50
- package/dist/utils/date.js +0 -15
- package/dist/utils/getOperatorByType.js +0 -52
- package/dist/utils/localization.js +0 -30
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { html as r } 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 u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
-
import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
-
import m from "./styles/button-shared-styles.js";
|
|
7
|
-
import { css as h } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
-
var b = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (s, n, a, l) => {
|
|
9
|
-
for (var o = l > 1 ? void 0 : l ? f(n, a) : n, p = s.length - 1, c; p >= 0; p--)
|
|
10
|
-
(c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
|
|
11
|
-
return l && o && b(n, a, o), o;
|
|
12
|
-
};
|
|
13
|
-
let t = class extends d {
|
|
14
|
-
constructor() {
|
|
15
|
-
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;
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
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;
|
|
19
|
-
return r`
|
|
20
|
-
<button ?disabled=${this.disabled} @click=${this.onClick} class=${s}>
|
|
21
|
-
<div class="button--content">
|
|
22
|
-
${this.isLoading ? r` <lit-loader size="small" class="button--loader"></lit-loader> ` : null}
|
|
23
|
-
|
|
24
|
-
<div
|
|
25
|
-
class="button-inner"
|
|
26
|
-
style="visibility: ${this.isLoading ? "hidden" : "visible"};
|
|
27
|
-
"
|
|
28
|
-
>
|
|
29
|
-
<slot name="start-icon">
|
|
30
|
-
${this.icon ? r`<lit-icon
|
|
31
|
-
class="start-icon"
|
|
32
|
-
size="1.25rem"
|
|
33
|
-
icon="${this.icon}"
|
|
34
|
-
></lit-icon>` : ""}
|
|
35
|
-
</slot>
|
|
36
|
-
${this.label}
|
|
37
|
-
${n ? r`<lit-pill count=${this.count}></lit-pill>` : ""}
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</button>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
t.styles = [
|
|
45
|
-
// styles,
|
|
46
|
-
m,
|
|
47
|
-
h`
|
|
48
|
-
/* Basic button styles */
|
|
49
|
-
button {
|
|
50
|
-
line-height: 1.5rem;
|
|
51
|
-
flex-direction: row;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Size Variants */
|
|
56
|
-
.button--small {
|
|
57
|
-
-webkit-padding: 0.375rem 1rem;
|
|
58
|
-
padding: 0.1875rem 0.375rem;
|
|
59
|
-
font-size: 11px;
|
|
60
|
-
}
|
|
61
|
-
.button--medium {
|
|
62
|
-
font-size: 0.75rem;
|
|
63
|
-
font-weight: 500;
|
|
64
|
-
-webkit-padding: 0.375rem 0.75rem;
|
|
65
|
-
padding: 0.375rem 0.75rem;
|
|
66
|
-
}
|
|
67
|
-
.button--large {
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
-webkit-padding: 0.75rem 1.5rem;
|
|
70
|
-
padding: 0.75rem 1.5rem;
|
|
71
|
-
font-size: 0.875rem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* FullWidth style */
|
|
75
|
-
.button--fullWidth {
|
|
76
|
-
width: 100%;
|
|
77
|
-
display: block;
|
|
78
|
-
}
|
|
79
|
-
::slotted([slot='start-icon']),
|
|
80
|
-
.start-icon {
|
|
81
|
-
//margin-right: 8px;
|
|
82
|
-
font-size: 1.25rem !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.button--content {
|
|
86
|
-
position: relative;
|
|
87
|
-
display: inline-flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.button--loader {
|
|
93
|
-
position: absolute;
|
|
94
|
-
left: 50%;
|
|
95
|
-
top: 50%;
|
|
96
|
-
transform: translate(-50%, -50%);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.button-inner {
|
|
100
|
-
display: inline-flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
gap: 0.5rem;
|
|
103
|
-
visibility: visible;
|
|
104
|
-
}
|
|
105
|
-
`
|
|
106
|
-
];
|
|
107
|
-
i([
|
|
108
|
-
e({ type: String })
|
|
109
|
-
], t.prototype, "variant", 2);
|
|
110
|
-
i([
|
|
111
|
-
e({ type: String })
|
|
112
|
-
], t.prototype, "size", 2);
|
|
113
|
-
i([
|
|
114
|
-
e({ type: String })
|
|
115
|
-
], t.prototype, "label", 2);
|
|
116
|
-
i([
|
|
117
|
-
e({ type: String })
|
|
118
|
-
], t.prototype, "icon", 2);
|
|
119
|
-
i([
|
|
120
|
-
e({ type: Boolean })
|
|
121
|
-
], t.prototype, "fullWidth", 2);
|
|
122
|
-
i([
|
|
123
|
-
e({ type: Boolean })
|
|
124
|
-
], t.prototype, "disabled", 2);
|
|
125
|
-
i([
|
|
126
|
-
e({ type: Number })
|
|
127
|
-
], t.prototype, "count", 2);
|
|
128
|
-
i([
|
|
129
|
-
e({ type: Function })
|
|
130
|
-
], t.prototype, "onClick", 2);
|
|
131
|
-
i([
|
|
132
|
-
e({ type: Boolean })
|
|
133
|
-
], t.prototype, "active", 2);
|
|
134
|
-
i([
|
|
135
|
-
e({ type: Boolean })
|
|
136
|
-
], t.prototype, "isLoading", 2);
|
|
137
|
-
t = i([
|
|
138
|
-
u("lit-button")
|
|
139
|
-
], t);
|
|
140
|
-
export {
|
|
141
|
-
t as LitButton
|
|
142
|
-
};
|
|
@@ -1,83 +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 "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
4
|
-
import { html as g } from "../node_modules/lit-html/lit-html.js";
|
|
5
|
-
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
6
|
-
import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
7
|
-
var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (e, t, i, o) => {
|
|
8
|
-
for (var r = o > 1 ? void 0 : o ? v(t, i) : t, a = e.length - 1, p; a >= 0; a--)
|
|
9
|
-
(p = e[a]) && (r = (o ? p(t, i, r) : p(r)) || r);
|
|
10
|
-
return o && r && f(t, i, r), r;
|
|
11
|
-
};
|
|
12
|
-
let s = class extends d {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments), this.label = "", this.progress = 0;
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
const e = Math.min(100, Math.max(0, this.progress));
|
|
18
|
-
return g`
|
|
19
|
-
<div class="container">
|
|
20
|
-
<div class="label">${this.label}</div>
|
|
21
|
-
<div class="progress-bar-container">
|
|
22
|
-
<div class="percentage">${e}%</div>
|
|
23
|
-
<div class="progress-bar">
|
|
24
|
-
<div class="progress-fill" style="width: ${e}%"></div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
`;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
s.styles = [
|
|
32
|
-
m`
|
|
33
|
-
.container {
|
|
34
|
-
gap: 4px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.label {
|
|
38
|
-
font-weight: 500;
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
color: var(--text-secondary, #5d6371);
|
|
41
|
-
gap: 10px;
|
|
42
|
-
line-height: 24px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.progress-bar-container {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 4px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.progress-bar {
|
|
52
|
-
display: flex;
|
|
53
|
-
width: 100%;
|
|
54
|
-
height: 12px;
|
|
55
|
-
border-radius: 8px;
|
|
56
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.progress-fill {
|
|
61
|
-
height: 100%;
|
|
62
|
-
background-color: var(--color-primary-main, #76b703);
|
|
63
|
-
transition: width 0.05s ease-in-out;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.percentage {
|
|
67
|
-
font-weight: 500;
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
}
|
|
70
|
-
`
|
|
71
|
-
];
|
|
72
|
-
l([
|
|
73
|
-
n({ type: String })
|
|
74
|
-
], s.prototype, "label", 2);
|
|
75
|
-
l([
|
|
76
|
-
n({ type: Number })
|
|
77
|
-
], s.prototype, "progress", 2);
|
|
78
|
-
s = l([
|
|
79
|
-
c("lit-progress-bar")
|
|
80
|
-
], s);
|
|
81
|
-
export {
|
|
82
|
-
s as LitProgressBar
|
|
83
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { render as p, html as d } 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 u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
-
import { property as h } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
-
import { directive as g, Directive as v } from "../node_modules/lit-html/directive.js";
|
|
7
|
-
import { computePosition as w, offset as y, flip as E, shift as b, size as x, arrow as T } from "../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
8
|
-
import { css as _ } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
9
|
-
var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, a = (i, t, n, r) => {
|
|
10
|
-
for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
|
|
11
|
-
(s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
|
|
12
|
-
return r && o && k(t, n, o), o;
|
|
13
|
-
};
|
|
14
|
-
const m = ["pointerenter", "mouseenter"], c = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
|
|
15
|
-
let l = class extends f {
|
|
16
|
-
constructor() {
|
|
17
|
-
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 = () => {
|
|
18
|
-
this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
|
|
19
|
-
this._target && this.isHoveringTarget && this.showTooltipNow();
|
|
20
|
-
}, this.openDelayMs);
|
|
21
|
-
}, this.showTooltipNow = () => {
|
|
22
|
-
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && w(this.target, this, {
|
|
23
|
-
placement: this.placement,
|
|
24
|
-
strategy: "absolute",
|
|
25
|
-
middleware: [
|
|
26
|
-
y(this.offset),
|
|
27
|
-
E(),
|
|
28
|
-
b({ padding: 8 }),
|
|
29
|
-
x({ padding: 8 }),
|
|
30
|
-
T({ element: this.arrowElement })
|
|
31
|
-
]
|
|
32
|
-
}).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
|
|
33
|
-
r.hide && Object.assign(this.style, {
|
|
34
|
-
display: r.hide.referenceHidden || !this.showing ? "none" : "block"
|
|
35
|
-
}), Object.assign(this.style, {
|
|
36
|
-
left: `${i}px`,
|
|
37
|
-
top: `${t}px`
|
|
38
|
-
});
|
|
39
|
-
const o = {
|
|
40
|
-
top: "bottom",
|
|
41
|
-
bottom: "top",
|
|
42
|
-
left: "right",
|
|
43
|
-
right: "left"
|
|
44
|
-
}[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
|
|
45
|
-
Object.assign(this.arrowElement.style, {
|
|
46
|
-
left: e != null ? `${e}px` : "",
|
|
47
|
-
top: s != null ? `${s}px` : "",
|
|
48
|
-
right: "",
|
|
49
|
-
bottom: "",
|
|
50
|
-
[o]: "-4px"
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}, this.clearOpenTimeout = () => {
|
|
54
|
-
this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
|
|
55
|
-
}, this.markHovering = () => {
|
|
56
|
-
this.isHoveringTarget = !0;
|
|
57
|
-
}, this.markNotHovering = () => {
|
|
58
|
-
this.isHoveringTarget = !1, this.clearOpenTimeout();
|
|
59
|
-
}, this.hide = () => {
|
|
60
|
-
this.showing = !1, this.style.display = "none";
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
get target() {
|
|
64
|
-
return this._target;
|
|
65
|
-
}
|
|
66
|
-
set target(i) {
|
|
67
|
-
this._target && (m.forEach((t) => {
|
|
68
|
-
this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
|
|
69
|
-
}), c.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (m.forEach((t) => {
|
|
70
|
-
i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
|
|
71
|
-
}), c.forEach((t) => {
|
|
72
|
-
i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
|
|
73
|
-
})), this._target = i;
|
|
74
|
-
}
|
|
75
|
-
connectedCallback() {
|
|
76
|
-
super.connectedCallback(), this.style.display = "none";
|
|
77
|
-
}
|
|
78
|
-
firstUpdated() {
|
|
79
|
-
this.arrowElement = this.shadowRoot.getElementById("arrow");
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
82
|
-
return d`
|
|
83
|
-
<div id="arrow"></div>
|
|
84
|
-
<slot></slot>
|
|
85
|
-
`;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
l.styles = _`
|
|
89
|
-
:host {
|
|
90
|
-
position: absolute;
|
|
91
|
-
display: inline-block;
|
|
92
|
-
background: black;
|
|
93
|
-
color: white;
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
padding: 4px 8px;
|
|
96
|
-
border-radius: 6px;
|
|
97
|
-
line-height: 1.5;
|
|
98
|
-
pointer-events: none;
|
|
99
|
-
z-index: 9999;
|
|
100
|
-
opacity: 0;
|
|
101
|
-
transform: scale(0.85);
|
|
102
|
-
transition:
|
|
103
|
-
opacity 0.2s ease,
|
|
104
|
-
transform 0.2s ease;
|
|
105
|
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
106
|
-
max-width: 300px;
|
|
107
|
-
width: max-content;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host([showing]) {
|
|
111
|
-
opacity: 1;
|
|
112
|
-
transform: scale(1);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
#arrow {
|
|
116
|
-
position: absolute;
|
|
117
|
-
width: 8px;
|
|
118
|
-
height: 8px;
|
|
119
|
-
background: black;
|
|
120
|
-
transform: rotate(45deg);
|
|
121
|
-
}
|
|
122
|
-
slot {
|
|
123
|
-
display: -webkit-box;
|
|
124
|
-
-webkit-line-clamp: 30; /* Limit to 3 lines */
|
|
125
|
-
-webkit-box-orient: vertical;
|
|
126
|
-
overflow: hidden;
|
|
127
|
-
text-overflow: ellipsis;
|
|
128
|
-
word-wrap: break-word;
|
|
129
|
-
max-height: 70vh;
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
a([
|
|
133
|
-
h({ type: Boolean, reflect: !0 })
|
|
134
|
-
], l.prototype, "showing", 2);
|
|
135
|
-
a([
|
|
136
|
-
h({ type: String, reflect: !0 })
|
|
137
|
-
], l.prototype, "placement", 2);
|
|
138
|
-
a([
|
|
139
|
-
h({ type: Number })
|
|
140
|
-
], l.prototype, "offset", 2);
|
|
141
|
-
a([
|
|
142
|
-
h({ type: Number })
|
|
143
|
-
], l.prototype, "openDelayMs", 2);
|
|
144
|
-
l = a([
|
|
145
|
-
u("simple-tooltip")
|
|
146
|
-
], l);
|
|
147
|
-
class H extends v {
|
|
148
|
-
constructor() {
|
|
149
|
-
super(...arguments), this.initialized = !1;
|
|
150
|
-
}
|
|
151
|
-
disconnect() {
|
|
152
|
-
this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
|
|
153
|
-
}
|
|
154
|
-
render() {
|
|
155
|
-
}
|
|
156
|
-
// required override
|
|
157
|
-
update(t, [n, r = "top", o = 200]) {
|
|
158
|
-
this.part = t, this.content = n, this.placement = r, this.delay = o;
|
|
159
|
-
const e = this.part.element;
|
|
160
|
-
if (!this.initialized) {
|
|
161
|
-
this.initialized = !0;
|
|
162
|
-
const s = () => {
|
|
163
|
-
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);
|
|
164
|
-
};
|
|
165
|
-
e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
|
|
166
|
-
}
|
|
167
|
-
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());
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const j = g(H);
|
|
171
|
-
export {
|
|
172
|
-
l as SimpleTooltip,
|
|
173
|
-
j as tooltip
|
|
174
|
-
};
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import "../../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import "../../node_modules/lit-html/lit-html.js";
|
|
3
|
-
import "../../node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { css as o } from "../../node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
-
const e = o`
|
|
6
|
-
button {
|
|
7
|
-
font-family: inherit;
|
|
8
|
-
border-radius: var(--border-radius-small, 0.5rem);
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
transition:
|
|
11
|
-
background-color 0.3s,
|
|
12
|
-
color 0.3s,
|
|
13
|
-
border 0.3s;
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
}
|
|
18
|
-
/* Disabled button state */
|
|
19
|
-
|
|
20
|
-
.button--contained:disabled {
|
|
21
|
-
background-color: var(--color-primary-disabled, #d0d3db);
|
|
22
|
-
cursor: not-allowed;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.button--outlined:disabled {
|
|
26
|
-
color: var(--color-primary-disabled);
|
|
27
|
-
border: 1px solid var(--color-primary-disabled, #d0d3db);
|
|
28
|
-
cursor: not-allowed;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.button--text:disabled {
|
|
32
|
-
color: var(--color-primary-disabled, #d0d3db);
|
|
33
|
-
cursor: not-allowed;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.button--dashed:disabled {
|
|
37
|
-
color: var(--color-primary-disabled, #d0d3db);
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
border: 1px dashed var(--color-primary-disabled, #d0d3db);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.button--error:disabled {
|
|
43
|
-
background-color: var(--color-primary-disabled, #d0d3db);
|
|
44
|
-
cursor: not-allowed;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.button--ai:disabled {
|
|
48
|
-
background: var(--color-primary-disabled, #d0d3db);
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.button--outlined-ai:disabled {
|
|
53
|
-
color: var(--color-primary-disabled);
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.button--outlined-ai:disabled::before {
|
|
58
|
-
background: var(--color-primary-disabled);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.button--outlined-ai:disabled .button-inner {
|
|
62
|
-
background: none;
|
|
63
|
-
color: var(--color-primary-disabled);
|
|
64
|
-
-webkit-text-fill-color: var(--color-primary-disabled);
|
|
65
|
-
-webkit-background-clip: border-box;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Button Variants */
|
|
69
|
-
.button--outlined {
|
|
70
|
-
color: var(--text-primary);
|
|
71
|
-
border: 1px solid var(--text-primary, #111827);
|
|
72
|
-
background-color: var(--background-paper, #fff);
|
|
73
|
-
}
|
|
74
|
-
.button--outlined:not(:disabled):hover {
|
|
75
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.button--contained {
|
|
79
|
-
border: none;
|
|
80
|
-
color: #fff;
|
|
81
|
-
background-color: var(--color-primary-main, #76b703);
|
|
82
|
-
}
|
|
83
|
-
.button--contained:not(:disabled):hover {
|
|
84
|
-
background-color: var(--color-primary-dark, #5f9402);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.button--error {
|
|
88
|
-
border: none;
|
|
89
|
-
color: var(--color-error-light, #ffd6cd);
|
|
90
|
-
background-color: var(--color-error-main, #ca2d0a);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.button--error:not(:disabled):hover {
|
|
94
|
-
background-color: var(--color-error-dark, #a52103);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.button--ai {
|
|
98
|
-
border: none;
|
|
99
|
-
color: #fff;
|
|
100
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.button--ai:not(:disabled):hover {
|
|
104
|
-
opacity: 80%;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.button--outlined-ai {
|
|
108
|
-
position: relative;
|
|
109
|
-
background-color: var(--background-paper, #fff);
|
|
110
|
-
border: none;
|
|
111
|
-
z-index: 0;
|
|
112
|
-
color: transparent;
|
|
113
|
-
|
|
114
|
-
background-image: linear-gradient(to right, #573493, #e78047);
|
|
115
|
-
-webkit-background-clip: text;
|
|
116
|
-
-webkit-text-fill-color: transparent;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.button--outlined-ai::before {
|
|
120
|
-
content: '';
|
|
121
|
-
position: absolute;
|
|
122
|
-
top: -1px;
|
|
123
|
-
left: -1px;
|
|
124
|
-
right: -1px;
|
|
125
|
-
bottom: -1px;
|
|
126
|
-
z-index: -1;
|
|
127
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
128
|
-
border-radius: inherit;
|
|
129
|
-
padding: 1px;
|
|
130
|
-
-webkit-mask:
|
|
131
|
-
linear-gradient(#fff 0 0) content-box,
|
|
132
|
-
linear-gradient(#fff 0 0);
|
|
133
|
-
mask-composite: exclude;
|
|
134
|
-
}
|
|
135
|
-
.button--outlined-ai .button-inner {
|
|
136
|
-
background: linear-gradient(to right, #573493, #e78047);
|
|
137
|
-
-webkit-background-clip: text;
|
|
138
|
-
-webkit-text-fill-color: transparent;
|
|
139
|
-
display: inline-flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
gap: 0.5rem;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.button--outlined-ai:not(:disabled) .out-ai {
|
|
145
|
-
color: #573493;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.button--outlined-ai:not(:disabled) .start-icon {
|
|
149
|
-
color: #573493;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.button--outlined-ai:not(:disabled):hover {
|
|
153
|
-
opacity: 80%;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.button--text {
|
|
157
|
-
border: none;
|
|
158
|
-
color: var(--text-primary, #111827);
|
|
159
|
-
background-color: var(--background-paper, #fff);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.button--text:not(:disabled):hover {
|
|
163
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.button--dashed {
|
|
167
|
-
position: relative;
|
|
168
|
-
border: none;
|
|
169
|
-
color: var(--text-primary, #111827);
|
|
170
|
-
background-color: var(--background-paper, #fff);
|
|
171
|
-
display: flex !important;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.button--dashed::before {
|
|
175
|
-
content: '';
|
|
176
|
-
top: 1px;
|
|
177
|
-
left: 1px;
|
|
178
|
-
right: 1px;
|
|
179
|
-
bottom: 1px;
|
|
180
|
-
position: absolute;
|
|
181
|
-
border: 1px dashed var(--color-divider, #d0d3db);
|
|
182
|
-
border-radius: 6px; /* 2px less than main radius */
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
z-index: 1;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.button--dashed:not(:disabled):hover {
|
|
188
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.button--text.active {
|
|
192
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
193
|
-
}
|
|
194
|
-
.button--dashed.active {
|
|
195
|
-
background-color: var(--color-primary-light, #f0fadf);
|
|
196
|
-
}
|
|
197
|
-
.button--inherit {
|
|
198
|
-
background-color: inherit;
|
|
199
|
-
color: var(--text-primary, #111827);
|
|
200
|
-
border: none;
|
|
201
|
-
}
|
|
202
|
-
`;
|
|
203
|
-
export {
|
|
204
|
-
e as default
|
|
205
|
-
};
|
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,50 +0,0 @@
|
|
|
1
|
-
import M from "../node_modules/luxon/src/datetime.js";
|
|
2
|
-
import "../node_modules/luxon/src/duration.js";
|
|
3
|
-
const l = (e, r, y) => {
|
|
4
|
-
const t = e.getValue(r);
|
|
5
|
-
if (!t) return !1;
|
|
6
|
-
const s = a(t), d = y.startDate, n = y.endDate;
|
|
7
|
-
return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
|
|
8
|
-
};
|
|
9
|
-
function u(e, r, y) {
|
|
10
|
-
const t = e.getValue(r);
|
|
11
|
-
if (!t) return !1;
|
|
12
|
-
const s = a(t), d = y;
|
|
13
|
-
return !s || !d ? !1 : s === d;
|
|
14
|
-
}
|
|
15
|
-
const f = (e, r, y) => {
|
|
16
|
-
const t = e.getValue(r);
|
|
17
|
-
return t ? y.includes(t) : !1;
|
|
18
|
-
};
|
|
19
|
-
function a(e) {
|
|
20
|
-
if (!e) return null;
|
|
21
|
-
const r = [
|
|
22
|
-
"yyyy-MM-dd",
|
|
23
|
-
"dd-MM-yyyy",
|
|
24
|
-
"MM-dd-yyyy",
|
|
25
|
-
"d. M. yyyy",
|
|
26
|
-
"d. M. yyyy.",
|
|
27
|
-
"d.M.yyyy",
|
|
28
|
-
"yyyy/MM/dd",
|
|
29
|
-
"dd/MM/yyyy",
|
|
30
|
-
"M/d/yyyy",
|
|
31
|
-
"MM/dd/yyyy",
|
|
32
|
-
"dd MMMM yyyy",
|
|
33
|
-
"yyyy-MM-dd'T'HH:mm:ss",
|
|
34
|
-
"yyyy-MM-dd'T'HH:mm:ss.SSS",
|
|
35
|
-
"yyyy-MM-dd'T'HH:mm:ss.SSSZ",
|
|
36
|
-
"dd.MM.yyyy",
|
|
37
|
-
"MM.dd.yyyy",
|
|
38
|
-
"EEE, d MMM yyyy",
|
|
39
|
-
"EEE, d MMM yyyy HH:mm:ss Z"
|
|
40
|
-
];
|
|
41
|
-
let y;
|
|
42
|
-
for (const t of r)
|
|
43
|
-
if (y = M.fromFormat(e, t), y.isValid) break;
|
|
44
|
-
return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
u as dateFilterFn,
|
|
48
|
-
l as dateRangeFilterFn,
|
|
49
|
-
f as multiselectFilterFn
|
|
50
|
-
};
|
package/dist/utils/date.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import t from "../node_modules/luxon/src/datetime.js";
|
|
2
|
-
import "../node_modules/luxon/src/duration.js";
|
|
3
|
-
const u = (r, e, n = !1, o) => {
|
|
4
|
-
if (r === null)
|
|
5
|
-
return null;
|
|
6
|
-
if (r === "")
|
|
7
|
-
return "";
|
|
8
|
-
const i = n ? `${o} HH:mm` : `${o}`, f = new Date(r);
|
|
9
|
-
return isNaN(f.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(i) : t.fromISO(r).setLocale(e).toLocaleString(
|
|
10
|
-
n ? t.DATETIME_SHORT : void 0
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
u as formatDate
|
|
15
|
-
};
|