@geovi/the-datagrid 0.1.1 → 0.1.2
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/README.md +47 -1253
- package/dist/BoolEditor.cjs +1 -1
- package/dist/BoolEditor.js +235 -222
- package/dist/DateEditor.cjs +1 -1
- package/dist/DateEditor.js +297 -273
- package/dist/DateFilter.cjs +1 -1
- package/dist/DateFilter.js +65 -63
- package/dist/NumberFilter.cjs +1 -1
- package/dist/NumberFilter.js +104 -102
- package/dist/NumericEditor.cjs +1 -1
- package/dist/NumericEditor.js +296 -277
- package/dist/SelectEditor.cjs +42 -0
- package/dist/SelectEditor.js +6703 -0
- package/dist/StringFilter.cjs +1 -1
- package/dist/StringFilter.js +121 -119
- package/dist/TextEditor.cjs +2 -0
- package/dist/TextEditor.js +2972 -0
- package/dist/base.css +1 -1
- package/dist/community-package-manifest.json +3 -1
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/editors/BoolEditor.d.ts +1 -1
- package/dist/editors/BoolEditor.d.ts.map +1 -1
- package/dist/editors/DateEditor.d.ts +1 -1
- package/dist/editors/DateEditor.d.ts.map +1 -1
- package/dist/editors/NumericEditor.d.ts +1 -1
- package/dist/editors/NumericEditor.d.ts.map +1 -1
- package/dist/editors/SelectEditor.d.ts +27 -0
- package/dist/editors/SelectEditor.d.ts.map +1 -0
- package/dist/editors/TextEditor.d.ts +27 -0
- package/dist/editors/TextEditor.d.ts.map +1 -0
- package/dist/editors/editorTypes.d.ts +24 -0
- package/dist/editors/editorTypes.d.ts.map +1 -1
- package/dist/editors/index.d.ts +5 -0
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/grid/ReactDataGrid.d.ts.map +1 -1
- package/dist/grid/components/GridBody.d.ts.map +1 -1
- package/dist/grid/components/GridContextMenuLayer.d.ts.map +1 -1
- package/dist/grid/hooks/useGridEditing.d.ts.map +1 -1
- package/dist/grid/menuRuntime.d.ts +27 -0
- package/dist/grid/menuRuntime.d.ts.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.css +1 -1
- package/dist/index.js +9435 -9164
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/style/theme/amber-dark/index.css +1 -1
- package/dist/style/theme/amber-light/index.css +1 -1
- package/dist/style/theme/blue-dark/index.css +1 -1
- package/dist/style/theme/blue-light/index.css +1 -1
- package/dist/style/theme/default-dark/index.css +1 -1
- package/dist/style/theme/default-light/index.css +1 -1
- package/dist/style/theme/green-dark/index.css +1 -1
- package/dist/style/theme/green-light/index.css +1 -1
- package/dist/style/theme/pink-dark/index.css +1 -1
- package/dist/style/theme/pink-light/index.css +1 -1
- package/dist/toolbar/RDGToolbar.d.ts.map +1 -1
- package/dist/toolbar/icons.d.ts +0 -2
- package/dist/toolbar/icons.d.ts.map +1 -1
- package/dist/toolbar/runtime.d.ts +7 -0
- package/dist/toolbar/runtime.d.ts.map +1 -1
- package/dist/toolbar.css +1 -1
- package/dist/toolbar.js +548 -651
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +20 -2
package/dist/NumberFilter.js
CHANGED
|
@@ -186,30 +186,30 @@ const $e = (e, t) => {
|
|
|
186
186
|
let i = 0, p = 0, l = 0, f;
|
|
187
187
|
const b = a.length;
|
|
188
188
|
for (let h = 0; h < b; h++) {
|
|
189
|
-
const
|
|
189
|
+
const k = a[h];
|
|
190
190
|
if (i === 0 && p === 0) {
|
|
191
|
-
if (
|
|
191
|
+
if (k === ye) {
|
|
192
192
|
c.push(a.slice(l, h)), l = h + 1;
|
|
193
193
|
continue;
|
|
194
194
|
}
|
|
195
|
-
if (
|
|
195
|
+
if (k === "/") {
|
|
196
196
|
f = h;
|
|
197
197
|
continue;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
k === "[" ? i++ : k === "]" ? i-- : k === "(" ? p++ : k === ")" && p--;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
let
|
|
204
|
-
|
|
202
|
+
const v = c.length === 0 ? a : a.slice(l);
|
|
203
|
+
let C = v, N = !1;
|
|
204
|
+
v.endsWith(ue) ? (C = v.slice(0, -1), N = !0) : (
|
|
205
205
|
/**
|
|
206
206
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
207
207
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
208
208
|
*/
|
|
209
|
-
|
|
209
|
+
v.startsWith(ue) && (C = v.slice(1), N = !0)
|
|
210
210
|
);
|
|
211
211
|
const F = f && f > l ? f - l : void 0;
|
|
212
|
-
return ke(c,
|
|
212
|
+
return ke(c, N, C, F);
|
|
213
213
|
};
|
|
214
214
|
if (t) {
|
|
215
215
|
const a = t + ye, c = r;
|
|
@@ -251,33 +251,33 @@ const $e = (e, t) => {
|
|
|
251
251
|
let l = "";
|
|
252
252
|
for (let f = p.length - 1; f >= 0; f -= 1) {
|
|
253
253
|
const b = p[f], {
|
|
254
|
-
isExternal:
|
|
255
|
-
modifiers:
|
|
256
|
-
hasImportantModifier:
|
|
254
|
+
isExternal: v,
|
|
255
|
+
modifiers: C,
|
|
256
|
+
hasImportantModifier: N,
|
|
257
257
|
baseClassName: F,
|
|
258
258
|
maybePostfixModifierPosition: h
|
|
259
259
|
} = o(b);
|
|
260
|
-
if (
|
|
260
|
+
if (v) {
|
|
261
261
|
l = b + (l.length > 0 ? " " + l : l);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
|
-
let
|
|
265
|
-
if (!
|
|
266
|
-
if (!
|
|
264
|
+
let k = !!h, T = r(k ? F.substring(0, h) : F);
|
|
265
|
+
if (!T) {
|
|
266
|
+
if (!k) {
|
|
267
267
|
l = b + (l.length > 0 ? " " + l : l);
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
|
-
if (
|
|
270
|
+
if (T = r(F), !T) {
|
|
271
271
|
l = b + (l.length > 0 ? " " + l : l);
|
|
272
272
|
continue;
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
k = !1;
|
|
275
275
|
}
|
|
276
|
-
const j =
|
|
276
|
+
const j = C.length === 0 ? "" : C.length === 1 ? C[0] : c(C).join(":"), L = N ? j + ue : j, A = L + T;
|
|
277
277
|
if (i.indexOf(A) > -1)
|
|
278
278
|
continue;
|
|
279
279
|
i.push(A);
|
|
280
|
-
const x = a(
|
|
280
|
+
const x = a(T, k);
|
|
281
281
|
for (let S = 0; S < x.length; ++S) {
|
|
282
282
|
const B = x[S];
|
|
283
283
|
i.push(L + B);
|
|
@@ -300,7 +300,7 @@ const $e = (e, t) => {
|
|
|
300
300
|
}, dt = (e, ...t) => {
|
|
301
301
|
let o, r, a, c;
|
|
302
302
|
const i = (l) => {
|
|
303
|
-
const f = t.reduce((b,
|
|
303
|
+
const f = t.reduce((b, v) => v(b), e());
|
|
304
304
|
return o = at(f), r = o.cache.get, a = o.cache.set, c = p, p(l);
|
|
305
305
|
}, p = (l) => {
|
|
306
306
|
const f = r(l);
|
|
@@ -325,7 +325,7 @@ const $e = (e, t) => {
|
|
|
325
325
|
const r = Me.exec(e);
|
|
326
326
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
327
327
|
}, Ee = (e) => e === "position" || e === "percentage", Ge = (e) => e === "image" || e === "url", Fe = (e) => e === "length" || e === "size" || e === "bg-size", Le = (e) => e === "length", Nt = (e) => e === "number", It = (e) => e === "family-name", Oe = (e) => e === "shadow", Pt = () => {
|
|
328
|
-
const e = w("color"), t = w("font"), o = w("text"), r = w("font-weight"), a = w("tracking"), c = w("leading"), i = w("breakpoint"), p = w("container"), l = w("spacing"), f = w("radius"), b = w("shadow"),
|
|
328
|
+
const e = w("color"), t = w("font"), o = w("text"), r = w("font-weight"), a = w("tracking"), c = w("leading"), i = w("breakpoint"), p = w("container"), l = w("spacing"), f = w("radius"), b = w("shadow"), v = w("inset-shadow"), C = w("text-shadow"), N = w("drop-shadow"), F = w("blur"), h = w("perspective"), k = w("aspect"), T = w("ease"), j = w("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
329
329
|
"center",
|
|
330
330
|
"top",
|
|
331
331
|
"bottom",
|
|
@@ -343,9 +343,9 @@ const $e = (e, t) => {
|
|
|
343
343
|
"bottom-left",
|
|
344
344
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
345
345
|
"left-bottom"
|
|
346
|
-
], x = () => [...A(), s, n], S = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], d = () => [s, n, l], R = () => [Y, "full", "auto", ...d()],
|
|
346
|
+
], x = () => [...A(), s, n], S = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], d = () => [s, n, l], R = () => [Y, "full", "auto", ...d()], E = () => [_, "none", "subgrid", s, n], G = () => ["auto", {
|
|
347
347
|
span: ["full", _, s, n]
|
|
348
|
-
}, _, s, n], D = () => [_, "auto", s, n],
|
|
348
|
+
}, _, s, n], D = () => [_, "auto", s, n], M = () => ["auto", "min", "max", "fr", s, n], I = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...d()], W = () => [Y, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], m = () => [e, s, n], fe = () => [...A(), Ce, ve, {
|
|
349
349
|
position: [s, n]
|
|
350
350
|
}], ge = () => ["no-repeat", {
|
|
351
351
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -359,7 +359,7 @@ const $e = (e, t) => {
|
|
|
359
359
|
f,
|
|
360
360
|
s,
|
|
361
361
|
n
|
|
362
|
-
],
|
|
362
|
+
], P = () => ["", u, K, $], Z = () => ["solid", "dashed", "dotted", "double"], he = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], y = () => [u, ce, Ce, ve], xe = () => [
|
|
363
363
|
// Deprecated since Tailwind CSS v4.0.0
|
|
364
364
|
"",
|
|
365
365
|
"none",
|
|
@@ -399,7 +399,7 @@ const $e = (e, t) => {
|
|
|
399
399
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
400
400
|
*/
|
|
401
401
|
aspect: [{
|
|
402
|
-
aspect: ["auto", "square", Y, n, s,
|
|
402
|
+
aspect: ["auto", "square", Y, n, s, k]
|
|
403
403
|
}],
|
|
404
404
|
/**
|
|
405
405
|
* Container
|
|
@@ -671,14 +671,14 @@ const $e = (e, t) => {
|
|
|
671
671
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
672
672
|
*/
|
|
673
673
|
"grid-cols": [{
|
|
674
|
-
"grid-cols":
|
|
674
|
+
"grid-cols": E()
|
|
675
675
|
}],
|
|
676
676
|
/**
|
|
677
677
|
* Grid Column Start / End
|
|
678
678
|
* @see https://tailwindcss.com/docs/grid-column
|
|
679
679
|
*/
|
|
680
680
|
"col-start-end": [{
|
|
681
|
-
col:
|
|
681
|
+
col: G()
|
|
682
682
|
}],
|
|
683
683
|
/**
|
|
684
684
|
* Grid Column Start
|
|
@@ -699,14 +699,14 @@ const $e = (e, t) => {
|
|
|
699
699
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
700
700
|
*/
|
|
701
701
|
"grid-rows": [{
|
|
702
|
-
"grid-rows":
|
|
702
|
+
"grid-rows": E()
|
|
703
703
|
}],
|
|
704
704
|
/**
|
|
705
705
|
* Grid Row Start / End
|
|
706
706
|
* @see https://tailwindcss.com/docs/grid-row
|
|
707
707
|
*/
|
|
708
708
|
"row-start-end": [{
|
|
709
|
-
row:
|
|
709
|
+
row: G()
|
|
710
710
|
}],
|
|
711
711
|
/**
|
|
712
712
|
* Grid Row Start
|
|
@@ -734,14 +734,14 @@ const $e = (e, t) => {
|
|
|
734
734
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
735
735
|
*/
|
|
736
736
|
"auto-cols": [{
|
|
737
|
-
"auto-cols":
|
|
737
|
+
"auto-cols": M()
|
|
738
738
|
}],
|
|
739
739
|
/**
|
|
740
740
|
* Grid Auto Rows
|
|
741
741
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
742
742
|
*/
|
|
743
743
|
"auto-rows": [{
|
|
744
|
-
"auto-rows":
|
|
744
|
+
"auto-rows": M()
|
|
745
745
|
}],
|
|
746
746
|
/**
|
|
747
747
|
* Gap
|
|
@@ -769,7 +769,7 @@ const $e = (e, t) => {
|
|
|
769
769
|
* @see https://tailwindcss.com/docs/justify-content
|
|
770
770
|
*/
|
|
771
771
|
"justify-content": [{
|
|
772
|
-
justify: [...
|
|
772
|
+
justify: [...I(), "normal"]
|
|
773
773
|
}],
|
|
774
774
|
/**
|
|
775
775
|
* Justify Items
|
|
@@ -790,7 +790,7 @@ const $e = (e, t) => {
|
|
|
790
790
|
* @see https://tailwindcss.com/docs/align-content
|
|
791
791
|
*/
|
|
792
792
|
"align-content": [{
|
|
793
|
-
content: ["normal", ...
|
|
793
|
+
content: ["normal", ...I()]
|
|
794
794
|
}],
|
|
795
795
|
/**
|
|
796
796
|
* Align Items
|
|
@@ -815,7 +815,7 @@ const $e = (e, t) => {
|
|
|
815
815
|
* @see https://tailwindcss.com/docs/place-content
|
|
816
816
|
*/
|
|
817
817
|
"place-content": [{
|
|
818
|
-
"place-content":
|
|
818
|
+
"place-content": I()
|
|
819
819
|
}],
|
|
820
820
|
/**
|
|
821
821
|
* Place Items
|
|
@@ -1509,70 +1509,70 @@ const $e = (e, t) => {
|
|
|
1509
1509
|
* @see https://tailwindcss.com/docs/border-width
|
|
1510
1510
|
*/
|
|
1511
1511
|
"border-w": [{
|
|
1512
|
-
border:
|
|
1512
|
+
border: P()
|
|
1513
1513
|
}],
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Border Width X
|
|
1516
1516
|
* @see https://tailwindcss.com/docs/border-width
|
|
1517
1517
|
*/
|
|
1518
1518
|
"border-w-x": [{
|
|
1519
|
-
"border-x":
|
|
1519
|
+
"border-x": P()
|
|
1520
1520
|
}],
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Border Width Y
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/border-width
|
|
1524
1524
|
*/
|
|
1525
1525
|
"border-w-y": [{
|
|
1526
|
-
"border-y":
|
|
1526
|
+
"border-y": P()
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Border Width Start
|
|
1530
1530
|
* @see https://tailwindcss.com/docs/border-width
|
|
1531
1531
|
*/
|
|
1532
1532
|
"border-w-s": [{
|
|
1533
|
-
"border-s":
|
|
1533
|
+
"border-s": P()
|
|
1534
1534
|
}],
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Border Width End
|
|
1537
1537
|
* @see https://tailwindcss.com/docs/border-width
|
|
1538
1538
|
*/
|
|
1539
1539
|
"border-w-e": [{
|
|
1540
|
-
"border-e":
|
|
1540
|
+
"border-e": P()
|
|
1541
1541
|
}],
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Border Width Top
|
|
1544
1544
|
* @see https://tailwindcss.com/docs/border-width
|
|
1545
1545
|
*/
|
|
1546
1546
|
"border-w-t": [{
|
|
1547
|
-
"border-t":
|
|
1547
|
+
"border-t": P()
|
|
1548
1548
|
}],
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Border Width Right
|
|
1551
1551
|
* @see https://tailwindcss.com/docs/border-width
|
|
1552
1552
|
*/
|
|
1553
1553
|
"border-w-r": [{
|
|
1554
|
-
"border-r":
|
|
1554
|
+
"border-r": P()
|
|
1555
1555
|
}],
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Border Width Bottom
|
|
1558
1558
|
* @see https://tailwindcss.com/docs/border-width
|
|
1559
1559
|
*/
|
|
1560
1560
|
"border-w-b": [{
|
|
1561
|
-
"border-b":
|
|
1561
|
+
"border-b": P()
|
|
1562
1562
|
}],
|
|
1563
1563
|
/**
|
|
1564
1564
|
* Border Width Left
|
|
1565
1565
|
* @see https://tailwindcss.com/docs/border-width
|
|
1566
1566
|
*/
|
|
1567
1567
|
"border-w-l": [{
|
|
1568
|
-
"border-l":
|
|
1568
|
+
"border-l": P()
|
|
1569
1569
|
}],
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Divide Width X
|
|
1572
1572
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1573
1573
|
*/
|
|
1574
1574
|
"divide-x": [{
|
|
1575
|
-
"divide-x":
|
|
1575
|
+
"divide-x": P()
|
|
1576
1576
|
}],
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Divide Width X Reverse
|
|
@@ -1584,7 +1584,7 @@ const $e = (e, t) => {
|
|
|
1584
1584
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1585
1585
|
*/
|
|
1586
1586
|
"divide-y": [{
|
|
1587
|
-
"divide-y":
|
|
1587
|
+
"divide-y": P()
|
|
1588
1588
|
}],
|
|
1589
1589
|
/**
|
|
1590
1590
|
* Divide Width Y Reverse
|
|
@@ -1732,7 +1732,7 @@ const $e = (e, t) => {
|
|
|
1732
1732
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1733
1733
|
*/
|
|
1734
1734
|
"inset-shadow": [{
|
|
1735
|
-
"inset-shadow": ["none",
|
|
1735
|
+
"inset-shadow": ["none", v, ne, re]
|
|
1736
1736
|
}],
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Inset Box Shadow Color
|
|
@@ -1746,7 +1746,7 @@ const $e = (e, t) => {
|
|
|
1746
1746
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1747
1747
|
*/
|
|
1748
1748
|
"ring-w": [{
|
|
1749
|
-
ring:
|
|
1749
|
+
ring: P()
|
|
1750
1750
|
}],
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Ring Width Inset
|
|
@@ -1785,7 +1785,7 @@ const $e = (e, t) => {
|
|
|
1785
1785
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1786
1786
|
*/
|
|
1787
1787
|
"inset-ring-w": [{
|
|
1788
|
-
"inset-ring":
|
|
1788
|
+
"inset-ring": P()
|
|
1789
1789
|
}],
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Inset Ring Color
|
|
@@ -1799,7 +1799,7 @@ const $e = (e, t) => {
|
|
|
1799
1799
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1800
1800
|
*/
|
|
1801
1801
|
"text-shadow": [{
|
|
1802
|
-
"text-shadow": ["none",
|
|
1802
|
+
"text-shadow": ["none", C, ne, re]
|
|
1803
1803
|
}],
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Text Shadow Color
|
|
@@ -2071,7 +2071,7 @@ const $e = (e, t) => {
|
|
|
2071
2071
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2072
2072
|
"",
|
|
2073
2073
|
"none",
|
|
2074
|
-
|
|
2074
|
+
N,
|
|
2075
2075
|
ne,
|
|
2076
2076
|
re
|
|
2077
2077
|
]
|
|
@@ -2268,7 +2268,7 @@ const $e = (e, t) => {
|
|
|
2268
2268
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2269
2269
|
*/
|
|
2270
2270
|
ease: [{
|
|
2271
|
-
ease: ["linear", "initial",
|
|
2271
|
+
ease: ["linear", "initial", T, s, n]
|
|
2272
2272
|
}],
|
|
2273
2273
|
/**
|
|
2274
2274
|
* Transition Delay
|
|
@@ -2820,46 +2820,48 @@ const se = _e(
|
|
|
2820
2820
|
({
|
|
2821
2821
|
className: e,
|
|
2822
2822
|
inputClassName: t,
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2823
|
+
endAdornment: o,
|
|
2824
|
+
type: r,
|
|
2825
|
+
onFocus: a,
|
|
2826
|
+
onBlur: c,
|
|
2827
|
+
disabled: i,
|
|
2828
|
+
style: p,
|
|
2829
|
+
...l
|
|
2830
|
+
}, f) => {
|
|
2831
|
+
const b = Lt(), [v, C] = De(!1);
|
|
2831
2832
|
return /* @__PURE__ */ q(
|
|
2832
2833
|
"div",
|
|
2833
2834
|
{
|
|
2834
2835
|
className: H(
|
|
2835
2836
|
"flex h-9 w-full items-center rounded-md border bg-[var(--tdg-input-bg,var(--background))] px-3 py-1 text-[var(--tdg-input-color,var(--foreground))] shadow-sm transition-colors [border-color:var(--tdg-input-border-color,var(--input))] hover:[border-color:var(--tdg-input-border-color-hover,var(--ring))] focus-within:ring-1 focus-within:ring-ring focus-within:[border-color:var(--tdg-input-border-color-focus,var(--ring))] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2836
2837
|
"inovua-react-toolkit-text-input",
|
|
2837
|
-
`inovua-react-toolkit-text-input--theme-${
|
|
2838
|
-
|
|
2839
|
-
|
|
2838
|
+
`inovua-react-toolkit-text-input--theme-${b}`,
|
|
2839
|
+
i ? "inovua-react-toolkit-text-input--disabled" : "",
|
|
2840
|
+
v ? "inovua-react-toolkit-text-input--focused" : "",
|
|
2840
2841
|
e
|
|
2841
2842
|
),
|
|
2842
|
-
style:
|
|
2843
|
+
style: p
|
|
2843
2844
|
},
|
|
2844
2845
|
/* @__PURE__ */ q(
|
|
2845
2846
|
"input",
|
|
2846
2847
|
{
|
|
2847
|
-
type:
|
|
2848
|
+
type: r,
|
|
2848
2849
|
className: H(
|
|
2849
2850
|
"inovua-react-toolkit-text-input__input m-0 min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent p-0 text-base text-[var(--tdg-input-color,var(--foreground))] shadow-none outline-none [font:inherit] [line-height:inherit] file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground md:text-sm",
|
|
2850
2851
|
t
|
|
2851
2852
|
),
|
|
2852
|
-
ref:
|
|
2853
|
-
disabled:
|
|
2854
|
-
onFocus: (
|
|
2855
|
-
|
|
2853
|
+
ref: f,
|
|
2854
|
+
disabled: i,
|
|
2855
|
+
onFocus: (N) => {
|
|
2856
|
+
C(!0), a?.(N);
|
|
2856
2857
|
},
|
|
2857
|
-
onBlur: (
|
|
2858
|
-
|
|
2858
|
+
onBlur: (N) => {
|
|
2859
|
+
C(!1), c?.(N);
|
|
2859
2860
|
},
|
|
2860
|
-
...
|
|
2861
|
+
...l
|
|
2861
2862
|
}
|
|
2862
|
-
)
|
|
2863
|
+
),
|
|
2864
|
+
o
|
|
2863
2865
|
);
|
|
2864
2866
|
}
|
|
2865
2867
|
);
|
|
@@ -2892,57 +2894,57 @@ function jt(e) {
|
|
|
2892
2894
|
min: l,
|
|
2893
2895
|
max: f,
|
|
2894
2896
|
disabled: b,
|
|
2895
|
-
className:
|
|
2896
|
-
style:
|
|
2897
|
-
filterEditorProps:
|
|
2898
|
-
} = e, F = t?.operator, h = o !== void 0 ? o : t?.value,
|
|
2897
|
+
className: v,
|
|
2898
|
+
style: C,
|
|
2899
|
+
filterEditorProps: N
|
|
2900
|
+
} = e, F = t?.operator, h = o !== void 0 ? o : t?.value, k = N ?? t?.filterEditorProps, T = (x, S) => typeof k == "function" ? k({ ...e, value: x }, { index: S, value: x }) ?? {} : k ?? {}, j = (x) => r?.(Ot(t, x, "number"));
|
|
2899
2901
|
if (Vt(F)) {
|
|
2900
|
-
const x = h && typeof h == "object" && !Array.isArray(h) ? h : null, S = Array.isArray(h) ? h[0] : x ? x.start : h, B = Array.isArray(h) ? h[1] : x ? x.end : void 0, d = me(S), R = me(B),
|
|
2901
|
-
return /* @__PURE__ */ q("div", { className: H("flex items-center gap-1",
|
|
2902
|
+
const x = h && typeof h == "object" && !Array.isArray(h) ? h : null, S = Array.isArray(h) ? h[0] : x ? x.start : h, B = Array.isArray(h) ? h[1] : x ? x.end : void 0, d = me(S), R = me(B), E = T(d, 0), G = T(R, 1), D = (M, I) => M == null && I == null ? null : Array.isArray(h) ? [M, I] : { start: M, end: I };
|
|
2903
|
+
return /* @__PURE__ */ q("div", { className: H("flex items-center gap-1", v), style: C }, /* @__PURE__ */ q(
|
|
2902
2904
|
se,
|
|
2903
2905
|
{
|
|
2904
|
-
...
|
|
2906
|
+
...E,
|
|
2905
2907
|
type: "number",
|
|
2906
2908
|
value: d == null ? "" : String(d),
|
|
2907
|
-
disabled: b || !!
|
|
2908
|
-
className: H("h-8 w-full",
|
|
2909
|
+
disabled: b || !!E.disabled,
|
|
2910
|
+
className: H("h-8 w-full", E.className),
|
|
2909
2911
|
placeholder: String(
|
|
2910
|
-
|
|
2912
|
+
E.placeholder ?? c ?? a ?? ""
|
|
2911
2913
|
),
|
|
2912
|
-
step:
|
|
2913
|
-
min:
|
|
2914
|
-
max:
|
|
2915
|
-
onChange: (
|
|
2916
|
-
const
|
|
2914
|
+
step: E.step ?? p,
|
|
2915
|
+
min: E.min ?? l,
|
|
2916
|
+
max: E.max ?? f,
|
|
2917
|
+
onChange: (M) => {
|
|
2918
|
+
const I = M.target.value === "" ? null : Number(M.target.value);
|
|
2917
2919
|
j(
|
|
2918
|
-
D(Number.isFinite(
|
|
2920
|
+
D(Number.isFinite(I) ? I : null, R)
|
|
2919
2921
|
);
|
|
2920
2922
|
}
|
|
2921
2923
|
}
|
|
2922
2924
|
), /* @__PURE__ */ q(
|
|
2923
2925
|
se,
|
|
2924
2926
|
{
|
|
2925
|
-
...
|
|
2927
|
+
...G,
|
|
2926
2928
|
type: "number",
|
|
2927
2929
|
value: R == null ? "" : String(R),
|
|
2928
|
-
disabled: b || !!
|
|
2929
|
-
className: H("h-8 w-full",
|
|
2930
|
+
disabled: b || !!G.disabled,
|
|
2931
|
+
className: H("h-8 w-full", G.className),
|
|
2930
2932
|
placeholder: String(
|
|
2931
|
-
|
|
2933
|
+
G.placeholder ?? i ?? a ?? ""
|
|
2932
2934
|
),
|
|
2933
|
-
step:
|
|
2934
|
-
min:
|
|
2935
|
-
max:
|
|
2936
|
-
onChange: (
|
|
2937
|
-
const
|
|
2935
|
+
step: G.step ?? p,
|
|
2936
|
+
min: G.min ?? l,
|
|
2937
|
+
max: G.max ?? f,
|
|
2938
|
+
onChange: (M) => {
|
|
2939
|
+
const I = M.target.value === "" ? null : Number(M.target.value);
|
|
2938
2940
|
j(
|
|
2939
|
-
D(d, Number.isFinite(
|
|
2941
|
+
D(d, Number.isFinite(I) ? I : null)
|
|
2940
2942
|
);
|
|
2941
2943
|
}
|
|
2942
2944
|
}
|
|
2943
2945
|
));
|
|
2944
2946
|
}
|
|
2945
|
-
const L = me(h), A =
|
|
2947
|
+
const L = me(h), A = T(L, 0);
|
|
2946
2948
|
return /* @__PURE__ */ q(
|
|
2947
2949
|
se,
|
|
2948
2950
|
{
|
|
@@ -2950,8 +2952,8 @@ function jt(e) {
|
|
|
2950
2952
|
type: "number",
|
|
2951
2953
|
value: L == null ? "" : String(L),
|
|
2952
2954
|
disabled: b || !!A.disabled,
|
|
2953
|
-
className: H("h-8 w-full", A.className,
|
|
2954
|
-
style:
|
|
2955
|
+
className: H("h-8 w-full", A.className, v),
|
|
2956
|
+
style: C,
|
|
2955
2957
|
placeholder: String(A.placeholder ?? a ?? ""),
|
|
2956
2958
|
step: A.step ?? p,
|
|
2957
2959
|
min: A.min ?? l,
|