@object-ui/plugin-aggrid 3.3.2 → 3.4.0
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/CHANGELOG.md +14 -0
- package/dist/{AvatarField-CpFxJRdO.js → AvatarField-DuaF__ns.js} +2 -2
- package/dist/FileField-DtvoWRK-.js +214 -0
- package/dist/{GeolocationField-BfhC7QLw.js → GeolocationField-CyzG2dqR.js} +1 -1
- package/dist/ImageCropperDialog-BFlbM7vO.js +153 -0
- package/dist/ImageField-DoXNtXV_.js +145 -0
- package/dist/LookupField-DXGCnQ3q.js +1063 -0
- package/dist/{MasterDetailField-DGUmvg2f.js → MasterDetailField-JpmMudRV.js} +3 -3
- package/dist/{ObjectAgGridImpl-yiHlXYgp.js → ObjectAgGridImpl-Bz5whFec.js} +110 -108
- package/dist/{PasswordField-BJboeBJY.js → PasswordField-40E439oE.js} +1 -1
- package/dist/{QRCodeField-COLyc5iQ.js → QRCodeField-CrRsA1vB.js} +1 -1
- package/dist/{RatingField-B2momIna.js → RatingField-BVkroiQ4.js} +1 -1
- package/dist/{SelectField-oo6vnNhQ.js → SelectField-K-xoVDss.js} +1 -1
- package/dist/{SignatureField-DUgoK09r.js → SignatureField-D0nUx3Cb.js} +1 -1
- package/dist/TextAreaField-j4eJQ66C.js +125 -0
- package/dist/{UserField-eT5njHwQ.js → UserField-LrhYdvnz.js} +1 -1
- package/dist/check-CBAnx5TO.js +7 -0
- package/dist/{createLucideIcon-C_5JZ35b.js → createLucideIcon-BtZxPlua.js} +1 -1
- package/dist/crop-2wjrXKXD.js +10 -0
- package/dist/dist-BcXWTU-8.js +54 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +79 -79
- package/dist/loader-circle-Cxg-xF4u.js +7 -0
- package/dist/{plus-bvZ2f9T_.js → plus-COkdZ2Fh.js} +1 -1
- package/dist/{upload-BdzwEMeV.js → upload-DWhfIa3Y.js} +1 -1
- package/dist/{x-98xe-fYG.js → x-BDi_yYx9.js} +1 -1
- package/package.json +8 -8
- package/dist/FileField-D3mZIrJ1.js +0 -158
- package/dist/ImageField-BZfSFwmJ.js +0 -75
- package/dist/LookupField-Cms1Cu_l.js +0 -1032
- package/dist/TextAreaField-CLzzmPce.js +0 -37
- package/dist/image-DmzU2ETO.js +0 -24
- /package/dist/{AgGridImpl-DJWnS8p3.js → AgGridImpl-DiTsK8F6.js} +0 -0
- /package/dist/{BooleanField-Chphr8cB.js → BooleanField-0QUz5DOy.js} +0 -0
- /package/dist/{CodeField-BWngVIw1.js → CodeField-iTabv7wS.js} +0 -0
- /package/dist/{ColorField-GygyYArR.js → ColorField-R7ZmLj1V.js} +0 -0
- /package/dist/{CurrencyField-O8Pn59RO.js → CurrencyField-CEu2SjEj.js} +0 -0
- /package/dist/{DateField-u6U8wmvI.js → DateField-DoaPu9GV.js} +0 -0
- /package/dist/{DateTimeField-D1z1Ovvy.js → DateTimeField-DcKX54zr.js} +0 -0
- /package/dist/{EmailField-IOcDmGjJ.js → EmailField-eYfpFAtE.js} +0 -0
- /package/dist/{FormulaField-MuyWzQx0.js → FormulaField-DF6-4u2b.js} +0 -0
- /package/dist/{GridField-gN34gk4b.js → GridField-BFlgbp8W.js} +0 -0
- /package/dist/{LocationField-B-zwfw3h.js → LocationField-BeYK6K9V.js} +0 -0
- /package/dist/{NumberField-BV5sKwZ7.js → NumberField-BYuCxbmU.js} +0 -0
- /package/dist/{ObjectField-DJ5s3ciA.js → ObjectField-Dlf_yrMC.js} +0 -0
- /package/dist/{PercentField-DO3be_bL.js → PercentField-BvdQEcfn.js} +0 -0
- /package/dist/{PhoneField-CT6XcO6O.js → PhoneField-CBuoC-vs.js} +0 -0
- /package/dist/{RichTextField-C7qzDPJy.js → RichTextField-DEYNcokk.js} +0 -0
- /package/dist/{SliderField-DrggtBSX.js → SliderField-C2EpGbj8.js} +0 -0
- /package/dist/{SummaryField-DuMsFoY5.js → SummaryField-S6Gt7IDC.js} +0 -0
- /package/dist/{TextField-CZE7SzK4.js → TextField-DccUZtd7.js} +0 -0
- /package/dist/{TimeField-Bha4cayv.js → TimeField-CWbpycPt.js} +0 -0
- /package/dist/{UrlField-Dff4WLlN.js → UrlField-BkPyImh9.js} +0 -0
- /package/dist/{VectorField-BHe8lDOH.js → VectorField-Baa_mHsO.js} +0 -0
- /package/dist/{useFieldTranslation-CfXaJRC4.js → useFieldTranslation-DtLNhrx3.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-
|
|
4
|
-
import { t as r } from "./plus-
|
|
5
|
-
import { t as i } from "./x-
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
|
+
import { t as r } from "./plus-COkdZ2Fh.js";
|
|
5
|
+
import { t as i } from "./x-BDi_yYx9.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Badge as a, Button as o, cn as s } from "@object-ui/components";
|
|
8
8
|
var c = n("external-link", [
|
|
@@ -2,41 +2,43 @@ import { r as e, t } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
|
2
2
|
import { t as n } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
3
|
import "./AddressField-CP-8JJvR.js";
|
|
4
4
|
import "./AutoNumberField-DCL2eUJj.js";
|
|
5
|
-
import { t as r } from "./createLucideIcon-
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import "./
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import { t as v } from "./
|
|
25
|
-
import "./
|
|
26
|
-
import
|
|
27
|
-
import "./
|
|
28
|
-
import
|
|
29
|
-
import { t as
|
|
30
|
-
import "./
|
|
31
|
-
import { t as
|
|
32
|
-
import { t as
|
|
33
|
-
import "./
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import
|
|
37
|
-
import { t as
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
5
|
+
import { t as r } from "./createLucideIcon-BtZxPlua.js";
|
|
6
|
+
import { r as i, t as a } from "./LookupField-DXGCnQ3q.js";
|
|
7
|
+
import "./FileField-DtvoWRK-.js";
|
|
8
|
+
import { t as o } from "./check-CBAnx5TO.js";
|
|
9
|
+
import { n as s } from "./QRCodeField-CrRsA1vB.js";
|
|
10
|
+
import "./GeolocationField-CyzG2dqR.js";
|
|
11
|
+
import "./SignatureField-D0nUx3Cb.js";
|
|
12
|
+
import "./MasterDetailField-JpmMudRV.js";
|
|
13
|
+
import { t as c } from "./PasswordField-40E439oE.js";
|
|
14
|
+
import { t as l } from "./TextAreaField-j4eJQ66C.js";
|
|
15
|
+
import "./ImageCropperDialog-BFlbM7vO.js";
|
|
16
|
+
import { t as u } from "./RatingField-BVkroiQ4.js";
|
|
17
|
+
import { t as d } from "./AvatarField-DuaF__ns.js";
|
|
18
|
+
import { t as f } from "./BooleanField-0QUz5DOy.js";
|
|
19
|
+
import { t as p } from "./CodeField-iTabv7wS.js";
|
|
20
|
+
import { t as m } from "./ColorField-R7ZmLj1V.js";
|
|
21
|
+
import { t as h } from "./CurrencyField-CEu2SjEj.js";
|
|
22
|
+
import { t as g } from "./DateField-DoaPu9GV.js";
|
|
23
|
+
import { t as _ } from "./DateTimeField-DcKX54zr.js";
|
|
24
|
+
import { t as v } from "./EmailField-eYfpFAtE.js";
|
|
25
|
+
import "./FormulaField-DF6-4u2b.js";
|
|
26
|
+
import "./GridField-BFlgbp8W.js";
|
|
27
|
+
import { t as y } from "./ImageField-DoXNtXV_.js";
|
|
28
|
+
import "./LocationField-BeYK6K9V.js";
|
|
29
|
+
import { t as b } from "./NumberField-BYuCxbmU.js";
|
|
30
|
+
import "./ObjectField-Dlf_yrMC.js";
|
|
31
|
+
import { t as x } from "./PercentField-BvdQEcfn.js";
|
|
32
|
+
import { t as ee } from "./PhoneField-CBuoC-vs.js";
|
|
33
|
+
import "./RichTextField-DEYNcokk.js";
|
|
34
|
+
import { t as te } from "./SelectField-K-xoVDss.js";
|
|
35
|
+
import { t as ne } from "./SliderField-C2EpGbj8.js";
|
|
36
|
+
import "./SummaryField-S6Gt7IDC.js";
|
|
37
|
+
import { t as re } from "./TextField-DccUZtd7.js";
|
|
38
|
+
import { t as S } from "./TimeField-CWbpycPt.js";
|
|
39
|
+
import { t as ie } from "./UrlField-BkPyImh9.js";
|
|
40
|
+
import "./UserField-LrhYdvnz.js";
|
|
41
|
+
import "./VectorField-Baa_mHsO.js";
|
|
40
42
|
import C, { useCallback as ae, useEffect as oe, useMemo as w, useRef as se, useState as ce } from "react";
|
|
41
43
|
import { ComponentRegistry as T, buildExpandFields as E } from "@object-ui/core";
|
|
42
44
|
import { Avatar as le, AvatarFallback as ue, Badge as de, Button as fe, Checkbox as pe, EmptyValue as D } from "@object-ui/components";
|
|
@@ -19136,7 +19138,7 @@ function Fe({ value: e, field: t }) {
|
|
|
19136
19138
|
role: "img",
|
|
19137
19139
|
"aria-label": "Completed",
|
|
19138
19140
|
"data-testid": "completion-indicator",
|
|
19139
|
-
children: /* @__PURE__ */ (0, k.jsx)(
|
|
19141
|
+
children: /* @__PURE__ */ (0, k.jsx)(o, { className: "size-3 text-white" })
|
|
19140
19142
|
}) : /* @__PURE__ */ (0, k.jsx)("div", {
|
|
19141
19143
|
className: "size-5 rounded-full border-2 border-muted-foreground/30",
|
|
19142
19144
|
role: "img",
|
|
@@ -19159,13 +19161,13 @@ function Fe({ value: e, field: t }) {
|
|
|
19159
19161
|
}
|
|
19160
19162
|
function Ie({ value: e, field: t }) {
|
|
19161
19163
|
if (!e) return /* @__PURE__ */ (0, k.jsx)(D, {});
|
|
19162
|
-
let n = Ce(e), r = Oe(n,
|
|
19163
|
-
|
|
19164
|
-
let
|
|
19164
|
+
let n = Ce(e), r = t, i = Oe(n, r.format || "relative"), a = typeof n == "string" ? new Date(n) : n, o = a instanceof Date && !isNaN(a.getTime()), s = /* @__PURE__ */ new Date();
|
|
19165
|
+
s.setHours(0, 0, 0, 0);
|
|
19166
|
+
let c = String(r?.name || r?.accessorKey || r?.key || "").toLowerCase(), l = (r?.dueLike === !0 || /(^|_)(due|deadline|expires?|expiry|expiration|expected_close|target_close|sla|return_by|renewal|next_action)(_|$)/.test(c)) && o && a < s, u = o ? a.toISOString() : String(n);
|
|
19165
19167
|
return /* @__PURE__ */ (0, k.jsx)("span", {
|
|
19166
|
-
className: `tabular-nums${
|
|
19167
|
-
title:
|
|
19168
|
-
children:
|
|
19168
|
+
className: `tabular-nums${l ? " text-red-600" : ""}`,
|
|
19169
|
+
title: u,
|
|
19170
|
+
children: i
|
|
19169
19171
|
});
|
|
19170
19172
|
}
|
|
19171
19173
|
function Le({ value: e }) {
|
|
@@ -19222,15 +19224,15 @@ var Re = {
|
|
|
19222
19224
|
delivered: "purple",
|
|
19223
19225
|
archived: "indigo"
|
|
19224
19226
|
}, ze = {
|
|
19225
|
-
gray: "bg-gray-
|
|
19226
|
-
red: "bg-red-
|
|
19227
|
-
orange: "bg-orange-
|
|
19228
|
-
yellow: "bg-yellow-
|
|
19229
|
-
green: "bg-green-
|
|
19230
|
-
blue: "bg-blue-
|
|
19231
|
-
indigo: "bg-indigo-
|
|
19232
|
-
purple: "bg-purple-
|
|
19233
|
-
pink: "bg-pink-
|
|
19227
|
+
gray: "bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-800/50 dark:text-gray-200 dark:border-gray-700/60",
|
|
19228
|
+
red: "bg-red-50 text-red-700 border-red-200 dark:bg-red-950/40 dark:text-red-300 dark:border-red-900/60",
|
|
19229
|
+
orange: "bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-950/40 dark:text-orange-300 dark:border-orange-900/60",
|
|
19230
|
+
yellow: "bg-yellow-50 text-yellow-800 border-yellow-200 dark:bg-yellow-950/40 dark:text-yellow-300 dark:border-yellow-900/60",
|
|
19231
|
+
green: "bg-green-50 text-green-700 border-green-200 dark:bg-green-950/40 dark:text-green-300 dark:border-green-900/60",
|
|
19232
|
+
blue: "bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950/40 dark:text-blue-300 dark:border-blue-900/60",
|
|
19233
|
+
indigo: "bg-indigo-50 text-indigo-700 border-indigo-200 dark:bg-indigo-950/40 dark:text-indigo-300 dark:border-indigo-900/60",
|
|
19234
|
+
purple: "bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-950/40 dark:text-purple-300 dark:border-purple-900/60",
|
|
19235
|
+
pink: "bg-pink-50 text-pink-700 border-pink-200 dark:bg-pink-950/40 dark:text-pink-300 dark:border-pink-900/60"
|
|
19234
19236
|
}, Be = [
|
|
19235
19237
|
"blue",
|
|
19236
19238
|
"green",
|
|
@@ -19296,7 +19298,7 @@ function We({ value: e }) {
|
|
|
19296
19298
|
}).catch(() => {});
|
|
19297
19299
|
},
|
|
19298
19300
|
"aria-label": "Copy email",
|
|
19299
|
-
children: n ? /* @__PURE__ */ (0, k.jsx)(
|
|
19301
|
+
children: n ? /* @__PURE__ */ (0, k.jsx)(o, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, k.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
|
|
19300
19302
|
})]
|
|
19301
19303
|
});
|
|
19302
19304
|
}
|
|
@@ -19335,7 +19337,7 @@ function Ke({ value: e }) {
|
|
|
19335
19337
|
}).catch(() => {});
|
|
19336
19338
|
},
|
|
19337
19339
|
"aria-label": "Copy phone number",
|
|
19338
|
-
children: n ? /* @__PURE__ */ (0, k.jsx)(
|
|
19340
|
+
children: n ? /* @__PURE__ */ (0, k.jsx)(o, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, k.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
|
|
19339
19341
|
})]
|
|
19340
19342
|
});
|
|
19341
19343
|
}
|
|
@@ -19388,7 +19390,7 @@ function Ye({ value: e, field: t }) {
|
|
|
19388
19390
|
children: e.map((e, t) => {
|
|
19389
19391
|
let n;
|
|
19390
19392
|
return n = typeof e == "object" && e ? e.name || e.label || e.id || e._id || String(e) : r(e), /* @__PURE__ */ (0, k.jsx)("span", {
|
|
19391
|
-
className: "inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-
|
|
19393
|
+
className: "inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-50 text-gray-700 dark:bg-gray-800/50 dark:text-gray-200",
|
|
19392
19394
|
children: n
|
|
19393
19395
|
}, t);
|
|
19394
19396
|
})
|
|
@@ -19499,46 +19501,46 @@ function et(e) {
|
|
|
19499
19501
|
})
|
|
19500
19502
|
}[e] || ke;
|
|
19501
19503
|
}
|
|
19502
|
-
$e("lookup", Ye), $e("master_detail", Ye), $e("select", Ue), $e("status", Ue), $e("user", Ze), $e("owner", Ze),
|
|
19504
|
+
$e("lookup", Ye), $e("master_detail", Ye), $e("select", Ue), $e("status", Ue), $e("user", Ze), $e("owner", Ze), i(et);
|
|
19503
19505
|
var tt = {
|
|
19504
|
-
text: () => import("./TextField-
|
|
19505
|
-
textarea: () => import("./TextAreaField-
|
|
19506
|
-
number: () => import("./NumberField-
|
|
19507
|
-
boolean: () => import("./BooleanField-
|
|
19508
|
-
select: () => import("./SelectField-
|
|
19509
|
-
date: () => import("./DateField-
|
|
19510
|
-
datetime: () => import("./DateTimeField-
|
|
19511
|
-
time: () => import("./TimeField-
|
|
19512
|
-
email: () => import("./EmailField-
|
|
19513
|
-
phone: () => import("./PhoneField-
|
|
19514
|
-
url: () => import("./UrlField-
|
|
19515
|
-
currency: () => import("./CurrencyField-
|
|
19516
|
-
percent: () => import("./PercentField-
|
|
19517
|
-
password: () => import("./PasswordField-
|
|
19518
|
-
markdown: () => import("./RichTextField-
|
|
19519
|
-
html: () => import("./RichTextField-
|
|
19520
|
-
lookup: () => import("./LookupField-
|
|
19521
|
-
master_detail: () => import("./MasterDetailField-
|
|
19522
|
-
file: () => import("./FileField-
|
|
19523
|
-
image: () => import("./ImageField-
|
|
19524
|
-
location: () => import("./LocationField-
|
|
19525
|
-
formula: () => import("./FormulaField-
|
|
19526
|
-
summary: () => import("./SummaryField-
|
|
19506
|
+
text: () => import("./TextField-DccUZtd7.js").then((e) => e.n).then((e) => ({ default: e.TextField })),
|
|
19507
|
+
textarea: () => import("./TextAreaField-j4eJQ66C.js").then((e) => e.n).then((e) => ({ default: e.TextAreaField })),
|
|
19508
|
+
number: () => import("./NumberField-BYuCxbmU.js").then((e) => e.n).then((e) => ({ default: e.NumberField })),
|
|
19509
|
+
boolean: () => import("./BooleanField-0QUz5DOy.js").then((e) => e.n).then((e) => ({ default: e.BooleanField })),
|
|
19510
|
+
select: () => import("./SelectField-K-xoVDss.js").then((e) => e.n).then((e) => ({ default: e.SelectField })),
|
|
19511
|
+
date: () => import("./DateField-DoaPu9GV.js").then((e) => e.n).then((e) => ({ default: e.DateField })),
|
|
19512
|
+
datetime: () => import("./DateTimeField-DcKX54zr.js").then((e) => e.n).then((e) => ({ default: e.DateTimeField })),
|
|
19513
|
+
time: () => import("./TimeField-CWbpycPt.js").then((e) => e.n).then((e) => ({ default: e.TimeField })),
|
|
19514
|
+
email: () => import("./EmailField-eYfpFAtE.js").then((e) => e.n).then((e) => ({ default: e.EmailField })),
|
|
19515
|
+
phone: () => import("./PhoneField-CBuoC-vs.js").then((e) => e.n).then((e) => ({ default: e.PhoneField })),
|
|
19516
|
+
url: () => import("./UrlField-BkPyImh9.js").then((e) => e.n).then((e) => ({ default: e.UrlField })),
|
|
19517
|
+
currency: () => import("./CurrencyField-CEu2SjEj.js").then((e) => e.n).then((e) => ({ default: e.CurrencyField })),
|
|
19518
|
+
percent: () => import("./PercentField-BvdQEcfn.js").then((e) => e.n).then((e) => ({ default: e.PercentField })),
|
|
19519
|
+
password: () => import("./PasswordField-40E439oE.js").then((e) => e.n).then((e) => ({ default: e.PasswordField })),
|
|
19520
|
+
markdown: () => import("./RichTextField-DEYNcokk.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
|
|
19521
|
+
html: () => import("./RichTextField-DEYNcokk.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
|
|
19522
|
+
lookup: () => import("./LookupField-DXGCnQ3q.js").then((e) => e.n).then((e) => ({ default: e.LookupField })),
|
|
19523
|
+
master_detail: () => import("./MasterDetailField-JpmMudRV.js").then((e) => e.t).then((e) => ({ default: e.MasterDetailField })),
|
|
19524
|
+
file: () => import("./FileField-DtvoWRK-.js").then((e) => e.t).then((e) => ({ default: e.FileField })),
|
|
19525
|
+
image: () => import("./ImageField-DoXNtXV_.js").then((e) => e.n).then((e) => ({ default: e.ImageField })),
|
|
19526
|
+
location: () => import("./LocationField-BeYK6K9V.js").then((e) => e.t).then((e) => ({ default: e.LocationField })),
|
|
19527
|
+
formula: () => import("./FormulaField-DF6-4u2b.js").then((e) => e.t).then((e) => ({ default: e.FormulaField })),
|
|
19528
|
+
summary: () => import("./SummaryField-S6Gt7IDC.js").then((e) => e.t).then((e) => ({ default: e.SummaryField })),
|
|
19527
19529
|
auto_number: () => import("./AutoNumberField-DCL2eUJj.js").then((e) => e.t).then((e) => ({ default: e.AutoNumberField })),
|
|
19528
|
-
user: () => import("./UserField-
|
|
19529
|
-
owner: () => import("./UserField-
|
|
19530
|
-
object: () => import("./ObjectField-
|
|
19531
|
-
vector: () => import("./VectorField-
|
|
19532
|
-
grid: () => import("./GridField-
|
|
19533
|
-
color: () => import("./ColorField-
|
|
19534
|
-
slider: () => import("./SliderField-
|
|
19535
|
-
rating: () => import("./RatingField-
|
|
19536
|
-
code: () => import("./CodeField-
|
|
19537
|
-
avatar: () => import("./AvatarField-
|
|
19530
|
+
user: () => import("./UserField-LrhYdvnz.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
|
|
19531
|
+
owner: () => import("./UserField-LrhYdvnz.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
|
|
19532
|
+
object: () => import("./ObjectField-Dlf_yrMC.js").then((e) => e.t).then((e) => ({ default: e.ObjectField })),
|
|
19533
|
+
vector: () => import("./VectorField-Baa_mHsO.js").then((e) => e.t).then((e) => ({ default: e.VectorField })),
|
|
19534
|
+
grid: () => import("./GridField-BFlgbp8W.js").then((e) => e.t).then((e) => ({ default: e.GridField })),
|
|
19535
|
+
color: () => import("./ColorField-R7ZmLj1V.js").then((e) => e.n).then((e) => ({ default: e.ColorField })),
|
|
19536
|
+
slider: () => import("./SliderField-C2EpGbj8.js").then((e) => e.n).then((e) => ({ default: e.SliderField })),
|
|
19537
|
+
rating: () => import("./RatingField-BVkroiQ4.js").then((e) => e.n).then((e) => ({ default: e.RatingField })),
|
|
19538
|
+
code: () => import("./CodeField-iTabv7wS.js").then((e) => e.n).then((e) => ({ default: e.CodeField })),
|
|
19539
|
+
avatar: () => import("./AvatarField-DuaF__ns.js").then((e) => e.n).then((e) => ({ default: e.AvatarField })),
|
|
19538
19540
|
address: () => import("./AddressField-CP-8JJvR.js").then((e) => e.t).then((e) => ({ default: e.AddressField })),
|
|
19539
|
-
geolocation: () => import("./GeolocationField-
|
|
19540
|
-
signature: () => import("./SignatureField-
|
|
19541
|
-
qrcode: () => import("./QRCodeField-
|
|
19541
|
+
geolocation: () => import("./GeolocationField-CyzG2dqR.js").then((e) => e.t).then((e) => ({ default: e.GeolocationField })),
|
|
19542
|
+
signature: () => import("./SignatureField-D0nUx3Cb.js").then((e) => e.t).then((e) => ({ default: e.SignatureField })),
|
|
19543
|
+
qrcode: () => import("./QRCodeField-CrRsA1vB.js").then((e) => e.t).then((e) => ({ default: e.QRCodeField }))
|
|
19542
19544
|
};
|
|
19543
19545
|
function nt(e) {
|
|
19544
19546
|
let t = tt[e];
|
|
@@ -19559,26 +19561,26 @@ rt();
|
|
|
19559
19561
|
//#region src/field-renderers.tsx
|
|
19560
19562
|
var it = {
|
|
19561
19563
|
text: re,
|
|
19562
|
-
textarea:
|
|
19563
|
-
number:
|
|
19564
|
-
currency:
|
|
19565
|
-
percent:
|
|
19566
|
-
boolean:
|
|
19567
|
-
select:
|
|
19568
|
-
date:
|
|
19569
|
-
datetime:
|
|
19564
|
+
textarea: l,
|
|
19565
|
+
number: b,
|
|
19566
|
+
currency: h,
|
|
19567
|
+
percent: x,
|
|
19568
|
+
boolean: f,
|
|
19569
|
+
select: te,
|
|
19570
|
+
date: g,
|
|
19571
|
+
datetime: _,
|
|
19570
19572
|
time: S,
|
|
19571
|
-
email:
|
|
19572
|
-
phone:
|
|
19573
|
+
email: v,
|
|
19574
|
+
phone: ee,
|
|
19573
19575
|
url: ie,
|
|
19574
19576
|
password: c,
|
|
19575
|
-
color:
|
|
19576
|
-
rating:
|
|
19577
|
-
image:
|
|
19578
|
-
avatar:
|
|
19579
|
-
lookup:
|
|
19580
|
-
slider:
|
|
19581
|
-
code:
|
|
19577
|
+
color: m,
|
|
19578
|
+
rating: u,
|
|
19579
|
+
image: y,
|
|
19580
|
+
avatar: d,
|
|
19581
|
+
lookup: a,
|
|
19582
|
+
slider: ne,
|
|
19583
|
+
code: p
|
|
19582
19584
|
};
|
|
19583
19585
|
function at(e) {
|
|
19584
19586
|
return it[e] || null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { Button as i, Input as a } from "@object-ui/components";
|
|
6
6
|
var o = n("eye-off", [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import { Button as i, EmptyValue as a, Input as o } from "@object-ui/components";
|
|
6
6
|
var s = n("copy", [["rect", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import { cn as i } from "@object-ui/components";
|
|
6
6
|
var a = n("star", [["path", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./useFieldTranslation-
|
|
3
|
+
import { t as n } from "./useFieldTranslation-DtLNhrx3.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { EmptyValue as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c } from "@object-ui/components";
|
|
6
6
|
//#region ../fields/src/widgets/SelectField.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
4
|
import r, { useEffect as i, useRef as a } from "react";
|
|
5
5
|
import { Button as o } from "@object-ui/components";
|
|
6
6
|
var s = n("eraser", [["path", {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
+
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
+
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
|
+
import { t as r } from "./check-CBAnx5TO.js";
|
|
5
|
+
import { t as i } from "./x-BDi_yYx9.js";
|
|
6
|
+
import { useState as a } from "react";
|
|
7
|
+
import { Button as o, Dialog as s, DialogContent as c, DialogFooter as l, DialogHeader as u, DialogTitle as d, EmptyValue as f, Textarea as p } from "@object-ui/components";
|
|
8
|
+
var m = n("maximize-2", [
|
|
9
|
+
["path", {
|
|
10
|
+
d: "M15 3h6v6",
|
|
11
|
+
key: "1q9fwt"
|
|
12
|
+
}],
|
|
13
|
+
["path", {
|
|
14
|
+
d: "m21 3-7 7",
|
|
15
|
+
key: "1l2asr"
|
|
16
|
+
}],
|
|
17
|
+
["path", {
|
|
18
|
+
d: "m3 21 7-7",
|
|
19
|
+
key: "tjx5ai"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M9 21H3v-6",
|
|
23
|
+
key: "wtvkvv"
|
|
24
|
+
}]
|
|
25
|
+
]), h = /* @__PURE__ */ e({ TextAreaField: () => _ }), g = t();
|
|
26
|
+
function _({ value: e, onChange: t, field: n, readonly: h, errorMessage: _, ...v }) {
|
|
27
|
+
if (h) return /* @__PURE__ */ (0, g.jsx)("div", {
|
|
28
|
+
className: "text-sm whitespace-pre-wrap",
|
|
29
|
+
children: e || /* @__PURE__ */ (0, g.jsx)(f, {})
|
|
30
|
+
});
|
|
31
|
+
let y = n || v.schema, b = y?.rows || 4, x = y?.max_length, S = !!(v.mobileFullscreen ?? y?.mobile_fullscreen ?? v.mobile_fullscreen ?? v.schema?.mobile_fullscreen), [C, w] = a(!1), [T, E] = a(e ?? ""), D = () => {
|
|
32
|
+
E(e ?? ""), w(!0);
|
|
33
|
+
}, O = () => w(!1), k = () => {
|
|
34
|
+
t(T), w(!1);
|
|
35
|
+
}, { inputType: A, mobileFullscreen: j, ...M } = v;
|
|
36
|
+
return /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
37
|
+
className: "relative",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ (0, g.jsx)(p, {
|
|
40
|
+
...M,
|
|
41
|
+
value: e || "",
|
|
42
|
+
onChange: (e) => t(e.target.value),
|
|
43
|
+
placeholder: y?.placeholder,
|
|
44
|
+
disabled: h || M.disabled,
|
|
45
|
+
rows: b,
|
|
46
|
+
maxLength: x,
|
|
47
|
+
"aria-invalid": !!_,
|
|
48
|
+
className: M.className
|
|
49
|
+
}),
|
|
50
|
+
S && /* @__PURE__ */ (0, g.jsx)("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
onClick: D,
|
|
53
|
+
className: "absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-md bg-background/80 text-muted-foreground hover:text-foreground hover:bg-background border shadow-sm transition-colors",
|
|
54
|
+
"aria-label": `Edit ${y?.label ?? "text"} fullscreen`,
|
|
55
|
+
"data-testid": "textarea-fullscreen-toggle",
|
|
56
|
+
children: /* @__PURE__ */ (0, g.jsx)(m, { className: "size-3.5" })
|
|
57
|
+
}),
|
|
58
|
+
x && /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
59
|
+
className: "absolute bottom-2 right-2 text-xs text-gray-400",
|
|
60
|
+
"aria-live": "polite",
|
|
61
|
+
"aria-label": `Character count: ${(e || "").length} of ${x}`,
|
|
62
|
+
children: [
|
|
63
|
+
(e || "").length,
|
|
64
|
+
"/",
|
|
65
|
+
x
|
|
66
|
+
]
|
|
67
|
+
}),
|
|
68
|
+
S && /* @__PURE__ */ (0, g.jsx)(s, {
|
|
69
|
+
open: C,
|
|
70
|
+
onOpenChange: w,
|
|
71
|
+
children: /* @__PURE__ */ (0, g.jsxs)(c, {
|
|
72
|
+
className: "sm:max-w-3xl h-[100dvh] sm:h-[80vh] max-h-[100dvh] sm:max-h-[80vh] flex flex-col p-0 gap-0",
|
|
73
|
+
"data-testid": "textarea-fullscreen-dialog",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ (0, g.jsx)(u, {
|
|
76
|
+
className: "p-4 border-b",
|
|
77
|
+
children: /* @__PURE__ */ (0, g.jsx)(d, {
|
|
78
|
+
className: "text-base",
|
|
79
|
+
children: y?.label ?? "Edit text"
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
83
|
+
className: "flex-1 min-h-0 p-4",
|
|
84
|
+
children: /* @__PURE__ */ (0, g.jsx)(p, {
|
|
85
|
+
autoFocus: !0,
|
|
86
|
+
value: T,
|
|
87
|
+
onChange: (e) => E(e.target.value),
|
|
88
|
+
maxLength: x,
|
|
89
|
+
placeholder: y?.placeholder,
|
|
90
|
+
className: "h-full min-h-full resize-none text-base",
|
|
91
|
+
"data-testid": "textarea-fullscreen-input"
|
|
92
|
+
})
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ (0, g.jsxs)(l, {
|
|
95
|
+
className: "p-3 border-t flex-row justify-between sm:justify-end gap-2",
|
|
96
|
+
children: [x && /* @__PURE__ */ (0, g.jsxs)("span", {
|
|
97
|
+
className: "text-xs text-muted-foreground self-center",
|
|
98
|
+
children: [
|
|
99
|
+
T.length,
|
|
100
|
+
"/",
|
|
101
|
+
x
|
|
102
|
+
]
|
|
103
|
+
}), /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
104
|
+
className: "flex gap-2 ml-auto",
|
|
105
|
+
children: [/* @__PURE__ */ (0, g.jsxs)(o, {
|
|
106
|
+
type: "button",
|
|
107
|
+
variant: "ghost",
|
|
108
|
+
onClick: O,
|
|
109
|
+
children: [/* @__PURE__ */ (0, g.jsx)(i, { className: "size-4 mr-1" }), " Cancel"]
|
|
110
|
+
}), /* @__PURE__ */ (0, g.jsxs)(o, {
|
|
111
|
+
type: "button",
|
|
112
|
+
onClick: k,
|
|
113
|
+
"data-testid": "textarea-fullscreen-save",
|
|
114
|
+
children: [/* @__PURE__ */ (0, g.jsx)(r, { className: "size-4 mr-1" }), " Done"]
|
|
115
|
+
})]
|
|
116
|
+
})]
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { h as n, _ as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
2
|
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./x-
|
|
3
|
+
import { t as n } from "./x-BDi_yYx9.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Avatar as r, AvatarFallback as i, Badge as a, EmptyValue as o } from "@object-ui/components";
|
|
6
6
|
//#region ../fields/src/widgets/UserField.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext as e, createElement as t, forwardRef as n, useContext as r } from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.14.0_react@19.2.5/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
3
3
|
var i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
|
|
4
4
|
let t = o(e);
|
|
5
5
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CXSCp6pT.js";
|
|
2
|
+
import { t } from "./createLucideIcon-BtZxPlua.js";
|
|
3
|
+
import { createContext as n, useContext as r, useMemo as i } from "react";
|
|
4
|
+
var a = t("image", [
|
|
5
|
+
["rect", {
|
|
6
|
+
width: "18",
|
|
7
|
+
height: "18",
|
|
8
|
+
x: "3",
|
|
9
|
+
y: "3",
|
|
10
|
+
rx: "2",
|
|
11
|
+
ry: "2",
|
|
12
|
+
key: "1m3agn"
|
|
13
|
+
}],
|
|
14
|
+
["circle", {
|
|
15
|
+
cx: "9",
|
|
16
|
+
cy: "9",
|
|
17
|
+
r: "2",
|
|
18
|
+
key: "af1f0g"
|
|
19
|
+
}],
|
|
20
|
+
["path", {
|
|
21
|
+
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
22
|
+
key: "1xmnt7"
|
|
23
|
+
}]
|
|
24
|
+
]);
|
|
25
|
+
e(), n(null), n(null), n(null);
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../providers/dist/UploadProvider.js
|
|
28
|
+
var o = n(null);
|
|
29
|
+
function s() {
|
|
30
|
+
return {
|
|
31
|
+
name: "object-url",
|
|
32
|
+
async upload(e) {
|
|
33
|
+
let t = e, n = "name" in t && t.name || "upload";
|
|
34
|
+
return {
|
|
35
|
+
url: URL.createObjectURL(e),
|
|
36
|
+
name: n,
|
|
37
|
+
size: e.size,
|
|
38
|
+
mimeType: e.type || "application/octet-stream"
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function c() {
|
|
44
|
+
let e = r(o), t = i(() => {
|
|
45
|
+
let e = s();
|
|
46
|
+
return {
|
|
47
|
+
upload: (t, n) => e.upload(t, n),
|
|
48
|
+
adapter: e
|
|
49
|
+
};
|
|
50
|
+
}, []);
|
|
51
|
+
return e ?? t;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { a as n, c as t };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import t, { Suspense as n } from "react";
|
|
|
3
3
|
import { ComponentRegistry as r } from "@object-ui/core";
|
|
4
4
|
import { Skeleton as i } from "@object-ui/components";
|
|
5
5
|
//#region src/index.tsx
|
|
6
|
-
var a = e(), o = t.lazy(() => import("./AgGridImpl-
|
|
6
|
+
var a = e(), o = t.lazy(() => import("./AgGridImpl-DiTsK8F6.js")), s = t.lazy(() => import("./ObjectAgGridImpl-Bz5whFec.js")), c = ({ schema: e }) => /* @__PURE__ */ (0, a.jsx)(n, {
|
|
7
7
|
fallback: /* @__PURE__ */ (0, a.jsx)(i, { className: "w-full h-[500px]" }),
|
|
8
8
|
children: /* @__PURE__ */ (0, a.jsx)(o, {
|
|
9
9
|
rowData: e.rowData,
|