overview-components 1.0.78 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +6 -2
- package/dist/_virtual/air-datepicker.js +4 -0
- package/dist/index.d.ts +56 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +105 -53
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +285 -231
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +48 -47
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +39 -38
- package/dist/node_modules/air-datepicker/air-datepicker.js +1147 -0
- package/dist/node_modules/air-datepicker/index.es.js +4 -0
- package/dist/shared/filter-inputs.js +326 -0
- package/dist/shared/lit-case-variables-tab-cell.js +207 -0
- package/dist/shared/lit-custom-popper.js +99 -0
- package/dist/shared/lit-data-grid-action-buttons-popover.js +258 -0
- package/dist/shared/lit-data-grid-density-popover.js +79 -0
- package/dist/shared/lit-data-grid-export-popover.js +66 -0
- package/dist/shared/lit-data-grid-operators-popover.js +94 -0
- package/dist/shared/lit-data-grid-row-actions.js +73 -0
- package/dist/shared/lit-date-picker.js +525 -0
- package/dist/shared/lit-icon-button.d.ts +1 -1
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-icon-button.js +91 -0
- package/dist/shared/lit-label.js +96 -0
- package/dist/shared/lit-loader.d.ts +1 -1
- package/dist/shared/lit-loader.d.ts.map +1 -1
- package/dist/shared/lit-loader.js +70 -0
- package/dist/shared/lit-loading-bar.d.ts +1 -1
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/shared/lit-loading-bar.js +94 -0
- package/dist/shared/lit-menu-item.d.ts +1 -1
- package/dist/shared/lit-menu-item.d.ts.map +1 -1
- package/dist/shared/lit-menu-item.js +94 -0
- package/dist/shared/lit-modal-body.js +28 -0
- package/dist/shared/lit-modal-footer.js +32 -0
- package/dist/shared/lit-modal-header.js +39 -0
- package/dist/shared/lit-overflow-tooltip.js +85 -0
- package/dist/shared/lit-responsive-button.js +84 -0
- package/dist/shared/lit-select-field.js +376 -0
- package/dist/shared/lit-settings.js +60 -0
- package/dist/shared/lit-text-field.d.ts +1 -1
- package/dist/shared/lit-text-field.d.ts.map +1 -1
- package/dist/shared/lit-text-field.js +205 -0
- package/dist/shared/lit-toggle.js +213 -0
- package/dist/shared/simple-popper.js +186 -0
- package/dist/shared/simple-tooltip.js +1 -1
- package/dist/style.css +1 -0
- package/dist/utils/localization.js +410 -25
- package/dist/utils/utils.js +11 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { offset as it, flip as nt, shift as ot, size as st, arrow as rt, computePosition as ct } from "../../core/dist/floating-ui.core.js";
|
|
2
|
-
import { createCoords as y,
|
|
3
|
-
import {
|
|
1
|
+
import { offset as it, flip as nt, shift as ot, size as st, arrow as rt, computePosition as ct, hide as lt } from "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as y, round as D, max as E, min as V, rectToClientRect as G, floor as z } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { isElement as v, getDocumentElement as R, getOverflowAncestors as $, getComputedStyle as b, isHTMLElement as O, getWindow as L, isTopLayer as M, getParentNode as W, isLastTraversableNode as H, isTableElement as ft, isContainingBlock as J, getContainingBlock as ut, getNodeName as S, isOverflowElement as _, getNodeScroll as N, getFrameElement as U, isWebKit as Q } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
4
|
function Y(t) {
|
|
5
5
|
const e = b(t);
|
|
6
6
|
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
@@ -29,15 +29,15 @@ function F(t) {
|
|
|
29
29
|
y: c
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const ht = /* @__PURE__ */ y(0);
|
|
33
33
|
function Z(t) {
|
|
34
34
|
const e = L(t);
|
|
35
|
-
return !
|
|
35
|
+
return !Q() || !e.visualViewport ? ht : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function at(t, e, i) {
|
|
41
41
|
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
|
42
42
|
}
|
|
43
43
|
function T(t, e, i, n) {
|
|
@@ -45,7 +45,7 @@ function T(t, e, i, n) {
|
|
|
45
45
|
const o = t.getBoundingClientRect(), r = k(t);
|
|
46
46
|
let s = y(1);
|
|
47
47
|
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
-
const c =
|
|
48
|
+
const c = at(r, i, n) ? Z(r) : y(0);
|
|
49
49
|
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
50
|
if (r) {
|
|
51
51
|
const p = L(r), g = n && v(n) ? L(n) : n;
|
|
@@ -77,7 +77,7 @@ function X(t, e, i) {
|
|
|
77
77
|
y: r
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function dt(t) {
|
|
81
81
|
let {
|
|
82
82
|
elements: e,
|
|
83
83
|
rect: i,
|
|
@@ -104,10 +104,10 @@ function at(t) {
|
|
|
104
104
|
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function gt(t) {
|
|
108
108
|
return Array.from(t.getClientRects());
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function pt(t) {
|
|
111
111
|
const e = R(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
112
112
|
let s = -i.scrollLeft + q(t);
|
|
113
113
|
const c = -i.scrollTop;
|
|
@@ -118,12 +118,12 @@ function gt(t) {
|
|
|
118
118
|
y: c
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function wt(t, e) {
|
|
122
122
|
const i = L(t), n = R(t), o = i.visualViewport;
|
|
123
123
|
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
124
124
|
if (o) {
|
|
125
125
|
r = o.width, s = o.height;
|
|
126
|
-
const f =
|
|
126
|
+
const f = Q();
|
|
127
127
|
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
@@ -133,7 +133,7 @@ function pt(t, e) {
|
|
|
133
133
|
y: l
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function mt(t, e) {
|
|
137
137
|
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = O(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
138
138
|
return {
|
|
139
139
|
width: s,
|
|
@@ -145,11 +145,11 @@ function wt(t, e) {
|
|
|
145
145
|
function K(t, e, i) {
|
|
146
146
|
let n;
|
|
147
147
|
if (e === "viewport")
|
|
148
|
-
n =
|
|
148
|
+
n = wt(t, i);
|
|
149
149
|
else if (e === "document")
|
|
150
|
-
n =
|
|
150
|
+
n = pt(R(t));
|
|
151
151
|
else if (v(e))
|
|
152
|
-
n =
|
|
152
|
+
n = mt(e, i);
|
|
153
153
|
else {
|
|
154
154
|
const o = Z(t);
|
|
155
155
|
n = {
|
|
@@ -165,7 +165,7 @@ function tt(t, e) {
|
|
|
165
165
|
const i = W(t);
|
|
166
166
|
return i === e || !v(i) || H(i) ? !1 : b(i).position === "fixed" || tt(i, e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function yt(t, e) {
|
|
169
169
|
const i = e.get(t);
|
|
170
170
|
if (i)
|
|
171
171
|
return i;
|
|
@@ -173,19 +173,19 @@ function mt(t, e) {
|
|
|
173
173
|
const r = b(t).position === "fixed";
|
|
174
174
|
let s = r ? W(t) : t;
|
|
175
175
|
for (; v(s) && !H(s); ) {
|
|
176
|
-
const c = b(s), l =
|
|
176
|
+
const c = b(s), l = J(s);
|
|
177
177
|
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && tt(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
|
178
178
|
}
|
|
179
179
|
return e.set(t, n), n;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function xt(t) {
|
|
182
182
|
let {
|
|
183
183
|
element: e,
|
|
184
184
|
boundary: i,
|
|
185
185
|
rootBoundary: n,
|
|
186
186
|
strategy: o
|
|
187
187
|
} = t;
|
|
188
|
-
const s = [...i === "clippingAncestors" ? M(e) ? [] :
|
|
188
|
+
const s = [...i === "clippingAncestors" ? M(e) ? [] : yt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
|
189
189
|
const h = K(e, u, o);
|
|
190
190
|
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
191
191
|
}, K(e, c, o));
|
|
@@ -196,7 +196,7 @@ function yt(t) {
|
|
|
196
196
|
y: l.top
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function vt(t) {
|
|
200
200
|
const {
|
|
201
201
|
width: e,
|
|
202
202
|
height: i
|
|
@@ -206,7 +206,7 @@ function xt(t) {
|
|
|
206
206
|
height: i
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function bt(t, e, i) {
|
|
210
210
|
const n = O(e), o = R(e), r = i === "fixed", s = T(t, !0, r, e);
|
|
211
211
|
let c = {
|
|
212
212
|
scrollLeft: 0,
|
|
@@ -251,14 +251,14 @@ function et(t, e) {
|
|
|
251
251
|
return i;
|
|
252
252
|
}
|
|
253
253
|
let n = j(t, e);
|
|
254
|
-
for (; n &&
|
|
254
|
+
for (; n && ft(n) && I(n); )
|
|
255
255
|
n = j(n, e);
|
|
256
|
-
return n && H(n) && I(n) && !
|
|
256
|
+
return n && H(n) && I(n) && !J(n) ? i : n || ut(t) || i;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Rt = async function(t) {
|
|
259
259
|
const e = this.getOffsetParent || et, i = this.getDimensions, n = await i(t.floating);
|
|
260
260
|
return {
|
|
261
|
-
reference:
|
|
261
|
+
reference: bt(t.reference, await e(t.floating), t.strategy),
|
|
262
262
|
floating: {
|
|
263
263
|
x: 0,
|
|
264
264
|
y: 0,
|
|
@@ -267,22 +267,22 @@ const bt = async function(t) {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
|
-
function
|
|
270
|
+
function Ot(t) {
|
|
271
271
|
return b(t).direction === "rtl";
|
|
272
272
|
}
|
|
273
|
-
const
|
|
274
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
273
|
+
const Ct = {
|
|
274
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: dt,
|
|
275
275
|
getDocumentElement: R,
|
|
276
|
-
getClippingRect:
|
|
276
|
+
getClippingRect: xt,
|
|
277
277
|
getOffsetParent: et,
|
|
278
|
-
getElementRects:
|
|
279
|
-
getClientRects:
|
|
280
|
-
getDimensions:
|
|
278
|
+
getElementRects: Rt,
|
|
279
|
+
getClientRects: gt,
|
|
280
|
+
getDimensions: vt,
|
|
281
281
|
getScale: F,
|
|
282
282
|
isElement: v,
|
|
283
|
-
isRTL:
|
|
283
|
+
isRTL: Ot
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function Lt(t, e) {
|
|
286
286
|
let i = null, n;
|
|
287
287
|
const o = R(t);
|
|
288
288
|
function r() {
|
|
@@ -328,7 +328,7 @@ function Ct(t, e) {
|
|
|
328
328
|
}
|
|
329
329
|
return s(!0), r;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Wt(t, e, i, n) {
|
|
332
332
|
n === void 0 && (n = {});
|
|
333
333
|
const {
|
|
334
334
|
ancestorScroll: o = !0,
|
|
@@ -342,7 +342,7 @@ function Ft(t, e, i, n) {
|
|
|
342
342
|
passive: !0
|
|
343
343
|
}), r && d.addEventListener("resize", i);
|
|
344
344
|
});
|
|
345
|
-
const h = f && c ?
|
|
345
|
+
const h = f && c ? Lt(f, i) : null;
|
|
346
346
|
let p = -1, g = null;
|
|
347
347
|
s && (g = new ResizeObserver((d) => {
|
|
348
348
|
let [m] = d;
|
|
@@ -364,9 +364,9 @@ function Ft(t, e, i, n) {
|
|
|
364
364
|
}), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(x);
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Bt = it, zt = ot, Dt = nt, Ht = st, Nt = lt, At = rt, It = (t, e, i) => {
|
|
368
368
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
369
|
-
platform:
|
|
369
|
+
platform: Ct,
|
|
370
370
|
...i
|
|
371
371
|
}, r = {
|
|
372
372
|
...o.platform,
|
|
@@ -378,13 +378,14 @@ const Wt = it, Bt = ot, zt = nt, Dt = st, Ht = rt, Nt = (t, e, i) => {
|
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
380
|
export {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
381
|
+
At as arrow,
|
|
382
|
+
Wt as autoUpdate,
|
|
383
|
+
It as computePosition,
|
|
384
|
+
Dt as flip,
|
|
385
385
|
$ as getOverflowAncestors,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
386
|
+
Nt as hide,
|
|
387
|
+
Bt as offset,
|
|
388
|
+
Ct as platform,
|
|
389
|
+
zt as shift,
|
|
390
|
+
Ht as size
|
|
390
391
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const l = Math.min,
|
|
1
|
+
const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
|
|
2
2
|
x: t,
|
|
3
3
|
y: t
|
|
4
|
-
}),
|
|
4
|
+
}), p = {
|
|
5
5
|
left: "right",
|
|
6
6
|
right: "left",
|
|
7
7
|
bottom: "top",
|
|
8
8
|
top: "bottom"
|
|
9
|
-
},
|
|
9
|
+
}, a = {
|
|
10
10
|
start: "end",
|
|
11
11
|
end: "start"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
return
|
|
13
|
+
function w(t, n, e) {
|
|
14
|
+
return m(t, l(n, e));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function j(t, n) {
|
|
17
17
|
return typeof t == "function" ? t(n) : t;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function u(t) {
|
|
20
20
|
return t.split("-")[0];
|
|
21
21
|
}
|
|
22
22
|
function g(t) {
|
|
@@ -25,27 +25,27 @@ function g(t) {
|
|
|
25
25
|
function h(t) {
|
|
26
26
|
return t === "x" ? "y" : "x";
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function b(t) {
|
|
29
29
|
return t === "y" ? "height" : "width";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return ["top", "bottom"].includes(
|
|
31
|
+
function x(t) {
|
|
32
|
+
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
|
33
33
|
}
|
|
34
34
|
function d(t) {
|
|
35
|
-
return h(
|
|
35
|
+
return h(x(t));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function C(t, n, e) {
|
|
38
38
|
e === void 0 && (e = !1);
|
|
39
|
-
const r = g(t), o = d(t), i =
|
|
39
|
+
const r = g(t), o = d(t), i = b(o);
|
|
40
40
|
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[i] > n.floating[i] && (c =
|
|
41
|
+
return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const n =
|
|
43
|
+
function L(t) {
|
|
44
|
+
const n = f(t);
|
|
45
45
|
return [s(t), n, s(n)];
|
|
46
46
|
}
|
|
47
47
|
function s(t) {
|
|
48
|
-
return t.replace(/start|end/g, (n) =>
|
|
48
|
+
return t.replace(/start|end/g, (n) => a[n]);
|
|
49
49
|
}
|
|
50
50
|
function A(t, n, e) {
|
|
51
51
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
|
@@ -60,13 +60,13 @@ function A(t, n, e) {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function E(t, n, e, r) {
|
|
64
64
|
const o = g(t);
|
|
65
|
-
let i = A(
|
|
65
|
+
let i = A(u(t), e === "start", r);
|
|
66
66
|
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return t.replace(/left|right|bottom|top/g, (n) =>
|
|
68
|
+
function f(t) {
|
|
69
|
+
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
|
70
70
|
}
|
|
71
71
|
function y(t) {
|
|
72
72
|
return {
|
|
@@ -77,7 +77,7 @@ function y(t) {
|
|
|
77
77
|
...t
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function R(t) {
|
|
81
81
|
return typeof t != "number" ? y(t) : {
|
|
82
82
|
top: t,
|
|
83
83
|
right: t,
|
|
@@ -85,7 +85,7 @@ function E(t) {
|
|
|
85
85
|
left: t
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function T(t) {
|
|
89
89
|
const {
|
|
90
90
|
x: n,
|
|
91
91
|
y: e,
|
|
@@ -104,25 +104,26 @@ function R(t) {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
w as clamp,
|
|
108
|
+
S as createCoords,
|
|
109
|
+
j as evaluate,
|
|
110
110
|
y as expandPaddingObject,
|
|
111
|
-
|
|
111
|
+
O as floor,
|
|
112
112
|
g as getAlignment,
|
|
113
113
|
d as getAlignmentAxis,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
C as getAlignmentSides,
|
|
115
|
+
b as getAxisLength,
|
|
116
|
+
L as getExpandedPlacements,
|
|
117
117
|
s as getOppositeAlignmentPlacement,
|
|
118
118
|
h as getOppositeAxis,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
E as getOppositeAxisPlacements,
|
|
120
|
+
f as getOppositePlacement,
|
|
121
|
+
R as getPaddingObject,
|
|
122
|
+
u as getSide,
|
|
123
|
+
x as getSideAxis,
|
|
124
|
+
m as max,
|
|
125
125
|
l as min,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
T as rectToClientRect,
|
|
127
|
+
M as round,
|
|
128
|
+
P as sides
|
|
128
129
|
};
|