overview-components 1.0.75 → 1.0.77
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/FileSaver.min.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +4 -0
- package/dist/assets/icons/iconGlyphs.js +680 -0
- package/dist/components/lit-attachments-tab.js +11 -7
- package/dist/components/lit-badge.js +10 -7
- package/dist/components/lit-case-variables-tab.js +23 -19
- package/dist/components/lit-chart.js +24 -21
- package/dist/components/lit-data-grid-tanstack.js +42 -37
- package/dist/components/lit-filter-modal.js +6 -2
- package/dist/components/lit-multiselect-item.js +7 -3
- package/dist/components/lit-section-tab.js +15 -11
- package/dist/components/lit-tabs-overview.js +9 -5
- package/dist/components/react-wrappers/attachments-tab.js +1 -1
- package/dist/components/react-wrappers/badge.js +1 -1
- package/dist/components/react-wrappers/button.js +3 -3
- package/dist/components/react-wrappers/case-variables-tab.js +3 -3
- package/dist/components/react-wrappers/chart.js +3 -3
- package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
- package/dist/components/react-wrappers/filter-modal.js +4 -4
- package/dist/components/react-wrappers/progress-bar.js +5 -5
- package/dist/components/react-wrappers/section-tab.js +4 -4
- package/dist/components/react-wrappers/tabs-overview.js +3 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -32
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +390 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/@lit/localize/init/install.js +11 -0
- package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
- package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
- package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
- package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
- package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
- package/dist/node_modules/@lit/react/create-component.js +35 -0
- package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
- package/dist/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/node_modules/lit-html/lit-html.js +75 -74
- package/dist/node_modules/luxon/src/datetime.js +1793 -0
- package/dist/node_modules/luxon/src/duration.js +723 -0
- package/dist/node_modules/luxon/src/errors.js +40 -0
- package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
- package/dist/node_modules/luxon/src/impl/diff.js +36 -0
- package/dist/node_modules/luxon/src/impl/digits.js +74 -0
- package/dist/node_modules/luxon/src/impl/english.js +138 -0
- package/dist/node_modules/luxon/src/impl/formats.js +150 -0
- package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
- package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
- package/dist/node_modules/luxon/src/impl/locale.js +282 -0
- package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
- package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
- package/dist/node_modules/luxon/src/impl/util.js +206 -0
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
- package/dist/node_modules/luxon/src/info.js +180 -0
- package/dist/node_modules/luxon/src/interval.js +466 -0
- package/dist/node_modules/luxon/src/settings.js +150 -0
- package/dist/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
- package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
- package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
- package/dist/shared/lit-button.js +11 -8
- package/dist/shared/lit-checkbox.js +155 -0
- package/dist/shared/lit-icon.js +282 -0
- package/dist/shared/lit-input.js +211 -0
- package/dist/shared/lit-menu.js +40 -0
- package/dist/shared/lit-modal.js +128 -0
- package/dist/shared/lit-pill.js +86 -0
- package/dist/shared/lit-progress-bar.js +10 -7
- package/dist/shared/lit-select.js +339 -0
- package/dist/shared/lit-tooltip.js +137 -0
- package/dist/shared/simple-tooltip.js +33 -31
- package/dist/shared/styles/button-shared-styles.js +6 -3
- package/dist/styles.js +174 -0
- package/dist/utils/custom-filters.js +8 -7
- package/dist/utils/date.js +6 -5
- package/dist/utils/getOperatorByType.js +4 -3
- package/dist/utils/localization.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as c } 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 g } 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 { query as h } from "../node_modules/@lit/reactive-element/decorators/query.js";
|
|
7
|
+
import { autoUpdate as T, computePosition as w, offset as x, flip as y, shift as b, arrow as H } from "../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
8
|
+
import { css as E } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
9
|
+
var L = Object.defineProperty, S = Object.getOwnPropertyDescriptor, n = (e, t, i, s) => {
|
|
10
|
+
for (var o = s > 1 ? void 0 : s ? S(t, i) : t, a = e.length - 1, l; a >= 0; a--)
|
|
11
|
+
(l = e[a]) && (o = (s ? l(t, i, o) : l(o)) || o);
|
|
12
|
+
return s && o && L(t, i, o), o;
|
|
13
|
+
};
|
|
14
|
+
let r = class extends f {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.placement = "top", this.cleanup = null, this.isHoveringTrigger = !1, this.isHoveringTooltip = !1, this.hideTimeout = null;
|
|
17
|
+
}
|
|
18
|
+
firstUpdated() {
|
|
19
|
+
const e = this.triggerSlot.assignedElements()[0], t = this.tooltipSlot.assignedElements()[0];
|
|
20
|
+
!e || !t || (e.addEventListener("mouseenter", () => {
|
|
21
|
+
this.isHoveringTrigger = !0, this.clearHideTimeout(), this.showTooltip(e, t);
|
|
22
|
+
}), e.addEventListener("mouseleave", () => {
|
|
23
|
+
this.isHoveringTrigger = !1, this.startHideTimeout();
|
|
24
|
+
}), e.addEventListener("focus", () => this.showTooltip(e, t)), e.addEventListener("blur", () => this.hideTooltip(t)), e.addEventListener("keydown", (i) => {
|
|
25
|
+
i.key === "Escape" && this.hideTooltip(t);
|
|
26
|
+
}), t.addEventListener("mouseenter", () => {
|
|
27
|
+
this.isHoveringTooltip = !0, this.clearHideTimeout();
|
|
28
|
+
}), t.addEventListener("mouseleave", () => {
|
|
29
|
+
this.isHoveringTooltip = !1, this.startHideTimeout();
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
startHideTimeout() {
|
|
33
|
+
this.clearHideTimeout(), this.hideTimeout = window.setTimeout(() => {
|
|
34
|
+
if (!this.isHoveringTrigger && !this.isHoveringTooltip) {
|
|
35
|
+
const e = this.tooltipSlot.assignedElements()[0];
|
|
36
|
+
e && this.hideTooltip(e);
|
|
37
|
+
}
|
|
38
|
+
}, 200);
|
|
39
|
+
}
|
|
40
|
+
clearHideTimeout() {
|
|
41
|
+
this.hideTimeout !== null && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
|
|
42
|
+
}
|
|
43
|
+
async showTooltip(e, t) {
|
|
44
|
+
t.setAttribute("data-visible", "");
|
|
45
|
+
let i = t.querySelector(".arrow");
|
|
46
|
+
i || (i = document.createElement("div"), i.classList.add("arrow"), t.appendChild(i)), this.cleanup = T(e, t, async () => {
|
|
47
|
+
const s = await w(e, t, {
|
|
48
|
+
placement: this.placement,
|
|
49
|
+
middleware: [x(8), y(), b({ padding: 5 }), H({ element: i })]
|
|
50
|
+
}), { x: o, y: a, placement: l, middlewareData: u } = s, { arrow: p } = u;
|
|
51
|
+
if (Object.assign(t.style, {
|
|
52
|
+
left: `${o}px`,
|
|
53
|
+
top: `${a}px`
|
|
54
|
+
}), p) {
|
|
55
|
+
const { x: d, y: m } = p;
|
|
56
|
+
Object.assign(i.style, {
|
|
57
|
+
left: d != null ? `${d}px` : "",
|
|
58
|
+
top: m != null ? `${m}px` : ""
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
i.setAttribute("data-placement", l);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
hideTooltip(e) {
|
|
65
|
+
var t;
|
|
66
|
+
e.removeAttribute("data-visible"), (t = this.cleanup) == null || t.call(this), this.cleanup = null;
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return c`
|
|
70
|
+
<slot name="trigger"></slot>
|
|
71
|
+
<slot name="tooltip"></slot>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
r.styles = E`
|
|
76
|
+
:host {
|
|
77
|
+
position: relative;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
::slotted([slot='tooltip']) {
|
|
82
|
+
position: absolute;
|
|
83
|
+
z-index: 9999;
|
|
84
|
+
background: #111;
|
|
85
|
+
color: #fff;
|
|
86
|
+
padding: 6px 10px;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transition: opacity 0.2s ease;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
::slotted([slot='tooltip'][data-visible]) {
|
|
95
|
+
opacity: 1;
|
|
96
|
+
pointer-events: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.arrow {
|
|
100
|
+
position: absolute;
|
|
101
|
+
width: 8px;
|
|
102
|
+
height: 8px;
|
|
103
|
+
background: inherit;
|
|
104
|
+
transform: rotate(45deg);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.arrow[data-placement^='top'] {
|
|
108
|
+
bottom: -4px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.arrow[data-placement^='bottom'] {
|
|
112
|
+
top: -4px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.arrow[data-placement^='left'] {
|
|
116
|
+
right: -4px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.arrow[data-placement^='right'] {
|
|
120
|
+
left: -4px;
|
|
121
|
+
}
|
|
122
|
+
`;
|
|
123
|
+
n([
|
|
124
|
+
v({ type: String })
|
|
125
|
+
], r.prototype, "placement", 2);
|
|
126
|
+
n([
|
|
127
|
+
h('slot[name="trigger"]')
|
|
128
|
+
], r.prototype, "triggerSlot", 2);
|
|
129
|
+
n([
|
|
130
|
+
h('slot[name="tooltip"]')
|
|
131
|
+
], r.prototype, "tooltipSlot", 2);
|
|
132
|
+
r = n([
|
|
133
|
+
g("perf-tooltip")
|
|
134
|
+
], r);
|
|
135
|
+
export {
|
|
136
|
+
r as PerfTooltip
|
|
137
|
+
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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) => {
|
|
8
10
|
for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
|
|
9
11
|
(s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
|
|
10
12
|
return r && o && k(t, n, o), o;
|
|
11
13
|
};
|
|
12
|
-
const
|
|
14
|
+
const m = ["pointerenter", "mouseenter"], c = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
|
|
13
15
|
let l = class extends f {
|
|
14
16
|
constructor() {
|
|
15
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 = () => {
|
|
@@ -17,15 +19,15 @@ let l = class extends f {
|
|
|
17
19
|
this._target && this.isHoveringTarget && this.showTooltipNow();
|
|
18
20
|
}, this.openDelayMs);
|
|
19
21
|
}, this.showTooltipNow = () => {
|
|
20
|
-
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) &&
|
|
22
|
+
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && w(this.target, this, {
|
|
21
23
|
placement: this.placement,
|
|
22
24
|
strategy: "absolute",
|
|
23
25
|
middleware: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
y(this.offset),
|
|
27
|
+
E(),
|
|
28
|
+
b({ padding: 8 }),
|
|
26
29
|
x({ padding: 8 }),
|
|
27
|
-
T({
|
|
28
|
-
_({ element: this.arrowElement })
|
|
30
|
+
T({ element: this.arrowElement })
|
|
29
31
|
]
|
|
30
32
|
}).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
|
|
31
33
|
r.hide && Object.assign(this.style, {
|
|
@@ -62,11 +64,11 @@ let l = class extends f {
|
|
|
62
64
|
return this._target;
|
|
63
65
|
}
|
|
64
66
|
set target(i) {
|
|
65
|
-
this._target && (
|
|
67
|
+
this._target && (m.forEach((t) => {
|
|
66
68
|
this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
|
|
67
|
-
}),
|
|
69
|
+
}), c.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (m.forEach((t) => {
|
|
68
70
|
i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
|
|
69
|
-
}),
|
|
71
|
+
}), c.forEach((t) => {
|
|
70
72
|
i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
|
|
71
73
|
})), this._target = i;
|
|
72
74
|
}
|
|
@@ -77,13 +79,13 @@ let l = class extends f {
|
|
|
77
79
|
this.arrowElement = this.shadowRoot.getElementById("arrow");
|
|
78
80
|
}
|
|
79
81
|
render() {
|
|
80
|
-
return
|
|
82
|
+
return d`
|
|
81
83
|
<div id="arrow"></div>
|
|
82
84
|
<slot></slot>
|
|
83
85
|
`;
|
|
84
86
|
}
|
|
85
87
|
};
|
|
86
|
-
l.styles =
|
|
88
|
+
l.styles = _`
|
|
87
89
|
:host {
|
|
88
90
|
position: absolute;
|
|
89
91
|
display: inline-block;
|
|
@@ -127,22 +129,22 @@ l.styles = m`
|
|
|
127
129
|
max-height: 70vh;
|
|
128
130
|
}
|
|
129
131
|
`;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
a([
|
|
133
|
+
h({ type: Boolean, reflect: !0 })
|
|
132
134
|
], l.prototype, "showing", 2);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
a([
|
|
136
|
+
h({ type: String, reflect: !0 })
|
|
135
137
|
], l.prototype, "placement", 2);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
a([
|
|
139
|
+
h({ type: Number })
|
|
138
140
|
], l.prototype, "offset", 2);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
a([
|
|
142
|
+
h({ type: Number })
|
|
141
143
|
], l.prototype, "openDelayMs", 2);
|
|
142
|
-
l =
|
|
143
|
-
|
|
144
|
+
l = a([
|
|
145
|
+
u("simple-tooltip")
|
|
144
146
|
], l);
|
|
145
|
-
class H extends
|
|
147
|
+
class H extends v {
|
|
146
148
|
constructor() {
|
|
147
149
|
super(...arguments), this.initialized = !1;
|
|
148
150
|
}
|
|
@@ -165,8 +167,8 @@ class H extends w {
|
|
|
165
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());
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
|
-
const
|
|
170
|
+
const j = g(H);
|
|
169
171
|
export {
|
|
170
172
|
l as SimpleTooltip,
|
|
171
|
-
|
|
173
|
+
j as tooltip
|
|
172
174
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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`
|
|
3
6
|
button {
|
|
4
7
|
font-family: inherit;
|
|
5
8
|
border-radius: var(--border-radius-small, 0.5rem);
|
|
@@ -198,5 +201,5 @@ const t = o`
|
|
|
198
201
|
}
|
|
199
202
|
`;
|
|
200
203
|
export {
|
|
201
|
-
|
|
204
|
+
e as default
|
|
202
205
|
};
|
package/dist/styles.js
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
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 n = o`
|
|
6
|
+
:host {
|
|
7
|
+
--breakpoint-sm: 600px;
|
|
8
|
+
--breakpoint-md: 960px;
|
|
9
|
+
--breakpoint-lg: 1280px;
|
|
10
|
+
--breakpoint-xl: 1536px;
|
|
11
|
+
|
|
12
|
+
--color-primary-main: #76b703;
|
|
13
|
+
--color-primary-light: #f0fadf;
|
|
14
|
+
--color-primary-dark: #5f9402;
|
|
15
|
+
--color-primary-disabled: #d0d3db;
|
|
16
|
+
|
|
17
|
+
--color-secondary-main: #111827;
|
|
18
|
+
--color-secondary-light: #d0d3db;
|
|
19
|
+
--color-secondary-dark: #010204;
|
|
20
|
+
|
|
21
|
+
--color-info-main: #00687e;
|
|
22
|
+
--color-info-light: #cbf6ff;
|
|
23
|
+
--color-info-dark: #004452;
|
|
24
|
+
|
|
25
|
+
--color-warning-main: #875900;
|
|
26
|
+
--color-warning-light: #ffe1a8;
|
|
27
|
+
--color-warning-dark: #684500;
|
|
28
|
+
|
|
29
|
+
--color-error-main: #ca2d0a;
|
|
30
|
+
--color-error-light: #ffd6cd;
|
|
31
|
+
--color-error-dark: #a52103;
|
|
32
|
+
|
|
33
|
+
--color-success-main: #76b703;
|
|
34
|
+
--color-success-light: #f0fadf;
|
|
35
|
+
--color-success-dark: #5f9402;
|
|
36
|
+
|
|
37
|
+
--color-divider: #d0d3db;
|
|
38
|
+
|
|
39
|
+
--text-primary: #111827;
|
|
40
|
+
--text-secondary: #5d6371;
|
|
41
|
+
--text-disabled: #d0d3db;
|
|
42
|
+
|
|
43
|
+
--background-paper: #ffffff;
|
|
44
|
+
--background-default: #eff3f4;
|
|
45
|
+
|
|
46
|
+
--border-radius-small: 0.5rem;
|
|
47
|
+
--border-radius-medium: 0.75rem;
|
|
48
|
+
|
|
49
|
+
--box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
50
|
+
|
|
51
|
+
--section-padding: 0.75rem 1rem;
|
|
52
|
+
|
|
53
|
+
font-family: Inter, sans-serif;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
|
|
56
|
+
*,
|
|
57
|
+
*::before,
|
|
58
|
+
*::after {
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
* {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
article,
|
|
69
|
+
aside,
|
|
70
|
+
details,
|
|
71
|
+
figcaption,
|
|
72
|
+
figure,
|
|
73
|
+
footer,
|
|
74
|
+
header,
|
|
75
|
+
hgroup,
|
|
76
|
+
main,
|
|
77
|
+
menu,
|
|
78
|
+
nav,
|
|
79
|
+
section {
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
ol,
|
|
84
|
+
ul {
|
|
85
|
+
list-style: none;
|
|
86
|
+
}
|
|
87
|
+
a {
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
color: inherit;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
img,
|
|
93
|
+
video {
|
|
94
|
+
max-width: 100%;
|
|
95
|
+
height: auto;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
button,
|
|
99
|
+
input,
|
|
100
|
+
optgroup,
|
|
101
|
+
select,
|
|
102
|
+
textarea {
|
|
103
|
+
font: inherit;
|
|
104
|
+
color: inherit;
|
|
105
|
+
margin: 0;
|
|
106
|
+
border: none;
|
|
107
|
+
background: none;
|
|
108
|
+
padding: 0;
|
|
109
|
+
appearance: none;
|
|
110
|
+
-webkit-appearance: none;
|
|
111
|
+
-moz-appearance: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
table {
|
|
115
|
+
border-collapse: collapse;
|
|
116
|
+
border-spacing: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
html {
|
|
121
|
+
font-size: 100%; /* 16px base */
|
|
122
|
+
line-height: 1.5;
|
|
123
|
+
scroll-behavior: smooth;
|
|
124
|
+
-webkit-text-size-adjust: 100%; /* Prevent font scaling in Safari */
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
body {
|
|
128
|
+
font-family:
|
|
129
|
+
system-ui,
|
|
130
|
+
-apple-system,
|
|
131
|
+
BlinkMacSystemFont,
|
|
132
|
+
'Segoe UI',
|
|
133
|
+
Roboto,
|
|
134
|
+
Oxygen,
|
|
135
|
+
Ubuntu,
|
|
136
|
+
Cantarell,
|
|
137
|
+
'Open Sans',
|
|
138
|
+
'Helvetica Neue',
|
|
139
|
+
sans-serif;
|
|
140
|
+
line-height: 1.6;
|
|
141
|
+
color: #333;
|
|
142
|
+
background-color: #fff;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
strong {
|
|
146
|
+
font-weight: bold;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
h1,
|
|
150
|
+
h2,
|
|
151
|
+
h3,
|
|
152
|
+
h4,
|
|
153
|
+
h5,
|
|
154
|
+
h6 {
|
|
155
|
+
font-size: inherit;
|
|
156
|
+
font-weight: inherit;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
blockquote,
|
|
160
|
+
q {
|
|
161
|
+
quotes: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
blockquote::before,
|
|
165
|
+
blockquote::after,
|
|
166
|
+
q::before,
|
|
167
|
+
q::after {
|
|
168
|
+
content: '';
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
172
|
+
export {
|
|
173
|
+
n as default
|
|
174
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import M from "../node_modules/luxon/src/datetime.js";
|
|
2
|
+
import "../node_modules/luxon/src/duration.js";
|
|
3
|
+
const l = (e, r, y) => {
|
|
3
4
|
const t = e.getValue(r);
|
|
4
5
|
if (!t) return !1;
|
|
5
6
|
const s = a(t), d = y.startDate, n = y.endDate;
|
|
6
7
|
return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
|
|
7
8
|
};
|
|
8
|
-
function
|
|
9
|
+
function u(e, r, y) {
|
|
9
10
|
const t = e.getValue(r);
|
|
10
11
|
if (!t) return !1;
|
|
11
12
|
const s = a(t), d = y;
|
|
12
13
|
return !s || !d ? !1 : s === d;
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const f = (e, r, y) => {
|
|
15
16
|
const t = e.getValue(r);
|
|
16
17
|
return t ? y.includes(t) : !1;
|
|
17
18
|
};
|
|
@@ -43,7 +44,7 @@ function a(e) {
|
|
|
43
44
|
return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
u as dateFilterFn,
|
|
48
|
+
l as dateRangeFilterFn,
|
|
49
|
+
f as multiselectFilterFn
|
|
49
50
|
};
|
package/dist/utils/date.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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) => {
|
|
3
4
|
if (r === null)
|
|
4
5
|
return null;
|
|
5
6
|
if (r === "")
|
|
6
7
|
return "";
|
|
7
|
-
const
|
|
8
|
-
return isNaN(
|
|
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(
|
|
9
10
|
n ? t.DATETIME_SHORT : void 0
|
|
10
11
|
);
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
u as formatDate
|
|
14
15
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { msg as e } from "
|
|
2
|
-
|
|
1
|
+
import { msg as e } from "../node_modules/@lit/localize/init/install.js";
|
|
2
|
+
import "../node_modules/@lit/localize/init/runtime.js";
|
|
3
|
+
function v(l) {
|
|
3
4
|
switch (l) {
|
|
4
5
|
case "string":
|
|
5
6
|
return [
|
|
@@ -47,5 +48,5 @@ function n(l) {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
v as getOperatorsByColumnType
|
|
51
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { configureLocalization as s } from "
|
|
1
|
+
import { configureLocalization as s } from "../node_modules/@lit/localize/init/runtime.js";
|
|
2
2
|
import * as o from "../assets/generated/locales/en.js";
|
|
3
3
|
import * as t from "../assets/generated/locales/pl.js";
|
|
4
4
|
import * as a from "../assets/generated/locales/de.js";
|