@object-ui/plugin-aggrid 3.1.3 → 3.1.5
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/.turbo/turbo-build.log +60 -91
- package/CHANGELOG.md +22 -0
- package/dist/AddressField-DKqaE9pD.js +93 -0
- package/dist/AgGridImpl-BD5cjyc0.js +226 -0
- package/dist/AutoNumberField-0RU2dNKe.js +13 -0
- package/dist/AvatarField-IZTLB0Ye.js +82 -0
- package/dist/BooleanField-DRzAZhSq.js +40 -0
- package/dist/CodeField-RWhnDMyL.js +22 -0
- package/dist/ColorField-B-YAFXdz.js +37 -0
- package/dist/CurrencyField-Bu80a-sI.js +51 -0
- package/dist/DateField-CV-NpLbM.js +21 -0
- package/dist/DateTimeField--YTsgTjw.js +32 -0
- package/dist/EmailField-B-3fWJsH.js +28 -0
- package/dist/FileField-DxxdESfc.js +160 -0
- package/dist/FormulaField-MQXJZOep.js +13 -0
- package/dist/GeolocationField-BzKgcWLN.js +156 -0
- package/dist/GridField-DHsGo9l2.js +51 -0
- package/dist/ImageField-DK7sUV6b.js +77 -0
- package/dist/LocationField-DSvhU9Dz.js +35 -0
- package/dist/LookupField-Dmzju5Q0.js +1033 -0
- package/dist/MasterDetailField-CPLHbe_Y.js +109 -0
- package/dist/NumberField-JaSlPVXs.js +26 -0
- package/dist/ObjectAgGridImpl-4uephlvO.js +19998 -0
- package/dist/ObjectField-FzUYlu-m.js +52 -0
- package/dist/PasswordField-d6E-vKBI.js +60 -0
- package/dist/PercentField-D2_kMuC_.js +63 -0
- package/dist/PhoneField-DOaMivd6.js +28 -0
- package/dist/QRCodeField-BIQhc73N.js +144 -0
- package/dist/RatingField-BKAGmlzh.js +42 -0
- package/dist/RichTextField-D4FIV9V8.js +32 -0
- package/dist/SelectField-C2gtlnLZ.js +30 -0
- package/dist/SignatureField-fFEb0h_C.js +98 -0
- package/dist/SliderField-BlAlK3g2.js +34 -0
- package/dist/SummaryField-Dy2Kkj6M.js +18 -0
- package/dist/TextAreaField-BCUkjKTc.js +36 -0
- package/dist/TextField-XWOnbUrk.js +29 -0
- package/dist/TimeField-CZdzdqOO.js +21 -0
- package/dist/UrlField-sq1mpRoG.js +33 -0
- package/dist/UserField-Dqk38Arc.js +79 -0
- package/dist/VectorField-CY70VLiW.js +35 -0
- package/dist/createLucideIcon-CWx7zIL1.js +39 -0
- package/dist/image-Cm7ExMY2.js +24 -0
- package/dist/index.css +2 -1
- package/dist/index.js +503 -8
- package/dist/index.umd.cjs +116 -112
- package/dist/jsx-runtime-CGDkM_Jn.js +189 -0
- package/dist/plus-CsEgF66K.js +10 -0
- package/dist/upload-B1x-ueFd.js +17 -0
- package/dist/x-Bwhzfvtg.js +10 -0
- package/package.json +9 -9
- package/dist/AddressField-CKC4ZJAb.js +0 -95
- package/dist/AgGridImpl-Da1-9kQm.js +0 -229
- package/dist/AutoNumberField-DUIGHfEs.js +0 -8
- package/dist/FileField-VTTCu1Mi.js +0 -144
- package/dist/FormulaField-Db3yTWbM.js +0 -9
- package/dist/GeolocationField-CEWtxddT.js +0 -141
- package/dist/GridField-Doeh0ghH.js +0 -29
- package/dist/LocationField-BF0sYg0h.js +0 -33
- package/dist/MasterDetailField-EG8aGKCm.js +0 -113
- package/dist/ObjectAgGridImpl-BQKWGygD.js +0 -28987
- package/dist/ObjectField-C63JFk2A.js +0 -51
- package/dist/QRCodeField-DnYB9SbX.js +0 -96
- package/dist/RichTextField-DJFKaCj6.js +0 -37
- package/dist/SignatureField-DdhPdmDm.js +0 -96
- package/dist/SummaryField-qwokC_TB.js +0 -9
- package/dist/UserField-BGSE0B99.js +0 -49
- package/dist/VectorField-MkcitfSl.js +0 -25
- package/dist/index-CTPRjgpn.js +0 -662
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Input as n } from "@object-ui/components";
|
|
4
|
+
//#region ../fields/src/widgets/TimeField.tsx
|
|
5
|
+
var r = /* @__PURE__ */ e({ TimeField: () => a }), i = t();
|
|
6
|
+
function a({ value: e, onChange: t, field: r, readonly: a, ...o }) {
|
|
7
|
+
if (a) return /* @__PURE__ */ (0, i.jsx)("span", {
|
|
8
|
+
className: "text-sm",
|
|
9
|
+
children: e || "-"
|
|
10
|
+
});
|
|
11
|
+
let { inputType: s, ...c } = o;
|
|
12
|
+
return /* @__PURE__ */ (0, i.jsx)(n, {
|
|
13
|
+
...c,
|
|
14
|
+
type: "time",
|
|
15
|
+
value: e || "",
|
|
16
|
+
onChange: (e) => t(e.target.value),
|
|
17
|
+
disabled: a || c.disabled
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as n, a as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Input as n } from "@object-ui/components";
|
|
4
|
+
//#region ../fields/src/widgets/UrlField.tsx
|
|
5
|
+
var r = /* @__PURE__ */ e({ UrlField: () => a }), i = t();
|
|
6
|
+
function a({ value: e, onChange: t, field: r, readonly: a, errorMessage: o, ...s }) {
|
|
7
|
+
let c = r || s.schema;
|
|
8
|
+
if (a) return e ? e.startsWith("http://") || e.startsWith("https://") ? /* @__PURE__ */ (0, i.jsx)("a", {
|
|
9
|
+
href: e,
|
|
10
|
+
target: "_blank",
|
|
11
|
+
rel: "noopener noreferrer",
|
|
12
|
+
className: "text-sm text-blue-600 hover:text-blue-800 hover:underline",
|
|
13
|
+
children: e
|
|
14
|
+
}) : /* @__PURE__ */ (0, i.jsx)("span", {
|
|
15
|
+
className: "text-sm",
|
|
16
|
+
children: e
|
|
17
|
+
}) : /* @__PURE__ */ (0, i.jsx)("span", {
|
|
18
|
+
className: "text-sm",
|
|
19
|
+
children: "-"
|
|
20
|
+
});
|
|
21
|
+
let { inputType: l, ...u } = s;
|
|
22
|
+
return /* @__PURE__ */ (0, i.jsx)(n, {
|
|
23
|
+
...u,
|
|
24
|
+
type: "url",
|
|
25
|
+
value: e || "",
|
|
26
|
+
onChange: (e) => t(e.target.value),
|
|
27
|
+
placeholder: c?.placeholder || "https://example.com",
|
|
28
|
+
disabled: a || u.disabled,
|
|
29
|
+
"aria-invalid": !!o
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as n, a as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
|
|
2
|
+
import { t as n } from "./x-Bwhzfvtg.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Avatar as r, AvatarFallback as i, Badge as a } from "@object-ui/components";
|
|
5
|
+
//#region ../fields/src/widgets/UserField.tsx
|
|
6
|
+
var o = /* @__PURE__ */ e({ UserField: () => c }), s = t();
|
|
7
|
+
function c({ value: e, onChange: t, field: o, readonly: c, ...l }) {
|
|
8
|
+
let u = (o || l.schema)?.multiple || !1;
|
|
9
|
+
if (c) {
|
|
10
|
+
if (!e) return /* @__PURE__ */ (0, s.jsx)("span", {
|
|
11
|
+
className: "text-sm",
|
|
12
|
+
children: "-"
|
|
13
|
+
});
|
|
14
|
+
let t = Array.isArray(e) ? e : [e];
|
|
15
|
+
return /* @__PURE__ */ (0, s.jsxs)("div", {
|
|
16
|
+
className: "flex -space-x-2",
|
|
17
|
+
children: [t.slice(0, 3).map((e, t) => {
|
|
18
|
+
let n = e.name || e.username || "User";
|
|
19
|
+
return /* @__PURE__ */ (0, s.jsx)(r, {
|
|
20
|
+
className: "size-8 border-2 border-white",
|
|
21
|
+
title: n,
|
|
22
|
+
children: /* @__PURE__ */ (0, s.jsx)(i, {
|
|
23
|
+
className: "bg-blue-500 text-white text-xs",
|
|
24
|
+
children: n.split(" ").map((e) => e[0]).join("").toUpperCase().slice(0, 2)
|
|
25
|
+
})
|
|
26
|
+
}, t);
|
|
27
|
+
}), t.length > 3 && /* @__PURE__ */ (0, s.jsx)(r, {
|
|
28
|
+
className: "size-8 border-2 border-white",
|
|
29
|
+
children: /* @__PURE__ */ (0, s.jsxs)(i, {
|
|
30
|
+
className: "bg-gray-200 text-gray-600 text-xs",
|
|
31
|
+
children: ["+", t.length - 3]
|
|
32
|
+
})
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
let d = e ? Array.isArray(e) ? e : [e] : [], f = (e) => {
|
|
37
|
+
if (u) {
|
|
38
|
+
let n = d.filter((t, n) => n !== e);
|
|
39
|
+
t(n.length > 0 ? n : null);
|
|
40
|
+
} else t(null);
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ (0, s.jsxs)("div", {
|
|
43
|
+
className: l.className,
|
|
44
|
+
children: [d.length > 0 && /* @__PURE__ */ (0, s.jsx)("div", {
|
|
45
|
+
className: "flex flex-wrap gap-2 mb-2",
|
|
46
|
+
children: d.map((e, t) => {
|
|
47
|
+
let o = e.name || e.username || "User";
|
|
48
|
+
return /* @__PURE__ */ (0, s.jsxs)(a, {
|
|
49
|
+
variant: "outline",
|
|
50
|
+
className: "gap-2 pr-1",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ (0, s.jsx)(r, {
|
|
53
|
+
className: "size-5",
|
|
54
|
+
children: /* @__PURE__ */ (0, s.jsx)(i, {
|
|
55
|
+
className: "bg-blue-500 text-white text-xs",
|
|
56
|
+
children: o.split(" ").map((e) => e[0]).join("").toUpperCase().slice(0, 2)
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ (0, s.jsx)("span", {
|
|
60
|
+
className: "text-sm",
|
|
61
|
+
children: o
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ (0, s.jsx)("button", {
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: () => f(t),
|
|
66
|
+
className: "ml-1 rounded-full hover:bg-gray-200 p-0.5",
|
|
67
|
+
children: /* @__PURE__ */ (0, s.jsx)(n, { className: "size-3" })
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
}, t);
|
|
71
|
+
})
|
|
72
|
+
}), /* @__PURE__ */ (0, s.jsx)("div", {
|
|
73
|
+
className: "text-sm text-gray-500 italic",
|
|
74
|
+
children: "User selection component requires integration with user management system"
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { o as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
|
|
2
|
+
import "react";
|
|
3
|
+
//#region ../fields/src/widgets/VectorField.tsx
|
|
4
|
+
var n = /* @__PURE__ */ e({ VectorField: () => i }), r = t();
|
|
5
|
+
function i({ value: e, field: t, ...n }) {
|
|
6
|
+
let i = (t || n.schema)?.dimensions || (Array.isArray(e) ? e.length : 0);
|
|
7
|
+
if (!e || !Array.isArray(e)) return /* @__PURE__ */ (0, r.jsx)("span", {
|
|
8
|
+
className: "text-sm text-gray-500",
|
|
9
|
+
children: "-"
|
|
10
|
+
});
|
|
11
|
+
let a = e.slice(0, 3).map((e) => {
|
|
12
|
+
let t = Number(e);
|
|
13
|
+
return isNaN(t) ? "0" : t.toFixed(4);
|
|
14
|
+
}).join(", ");
|
|
15
|
+
return /* @__PURE__ */ (0, r.jsxs)("div", {
|
|
16
|
+
className: `text-sm ${n.className || ""}`,
|
|
17
|
+
children: [/* @__PURE__ */ (0, r.jsxs)("span", {
|
|
18
|
+
className: "font-mono text-gray-700",
|
|
19
|
+
children: [
|
|
20
|
+
"[",
|
|
21
|
+
a,
|
|
22
|
+
"...]"
|
|
23
|
+
]
|
|
24
|
+
}), /* @__PURE__ */ (0, r.jsxs)("span", {
|
|
25
|
+
className: "text-gray-500 ml-2",
|
|
26
|
+
children: [
|
|
27
|
+
"(",
|
|
28
|
+
i,
|
|
29
|
+
"D)"
|
|
30
|
+
]
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { n as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createElement as e, forwardRef as t } from "react";
|
|
2
|
+
//#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
3
|
+
var n = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), r = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), a = (e) => {
|
|
4
|
+
let t = i(e);
|
|
5
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6
|
+
}, o = {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: 24,
|
|
9
|
+
height: 24,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeWidth: 2,
|
|
14
|
+
strokeLinecap: "round",
|
|
15
|
+
strokeLinejoin: "round"
|
|
16
|
+
}, s = (e) => {
|
|
17
|
+
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
18
|
+
return !1;
|
|
19
|
+
}, c = t(({ color: t = "currentColor", size: r = 24, strokeWidth: i = 2, absoluteStrokeWidth: a, className: c = "", children: l, iconNode: u, ...d }, f) => e("svg", {
|
|
20
|
+
ref: f,
|
|
21
|
+
...o,
|
|
22
|
+
width: r,
|
|
23
|
+
height: r,
|
|
24
|
+
stroke: t,
|
|
25
|
+
strokeWidth: a ? Number(i) * 24 / Number(r) : i,
|
|
26
|
+
className: n("lucide", c),
|
|
27
|
+
...!l && !s(d) && { "aria-hidden": "true" },
|
|
28
|
+
...d
|
|
29
|
+
}, [...u.map(([t, n]) => e(t, n)), ...Array.isArray(l) ? l : [l]])), l = (i, o) => {
|
|
30
|
+
let s = t(({ className: t, ...s }, l) => e(c, {
|
|
31
|
+
ref: l,
|
|
32
|
+
iconNode: o,
|
|
33
|
+
className: n(`lucide-${r(a(i))}`, `lucide-${i}`, t),
|
|
34
|
+
...s
|
|
35
|
+
}));
|
|
36
|
+
return s.displayName = a(i), s;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { l as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-CWx7zIL1.js";
|
|
2
|
+
var t = e("image", [
|
|
3
|
+
["rect", {
|
|
4
|
+
width: "18",
|
|
5
|
+
height: "18",
|
|
6
|
+
x: "3",
|
|
7
|
+
y: "3",
|
|
8
|
+
rx: "2",
|
|
9
|
+
ry: "2",
|
|
10
|
+
key: "1m3agn"
|
|
11
|
+
}],
|
|
12
|
+
["circle", {
|
|
13
|
+
cx: "9",
|
|
14
|
+
cy: "9",
|
|
15
|
+
r: "2",
|
|
16
|
+
key: "af1f0g"
|
|
17
|
+
}],
|
|
18
|
+
["path", {
|
|
19
|
+
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
20
|
+
key: "1xmnt7"
|
|
21
|
+
}]
|
|
22
|
+
]);
|
|
23
|
+
//#endregion
|
|
24
|
+
export { t };
|