@object-ui/plugin-aggrid 3.1.2 → 3.1.4

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.
Files changed (68) hide show
  1. package/.turbo/turbo-build.log +60 -91
  2. package/CHANGELOG.md +22 -0
  3. package/dist/AddressField-DKqaE9pD.js +93 -0
  4. package/dist/AgGridImpl-BD5cjyc0.js +226 -0
  5. package/dist/AutoNumberField-0RU2dNKe.js +13 -0
  6. package/dist/AvatarField-IZTLB0Ye.js +82 -0
  7. package/dist/BooleanField-DRzAZhSq.js +40 -0
  8. package/dist/CodeField-RWhnDMyL.js +22 -0
  9. package/dist/ColorField-B-YAFXdz.js +37 -0
  10. package/dist/CurrencyField-Bu80a-sI.js +51 -0
  11. package/dist/DateField-CV-NpLbM.js +21 -0
  12. package/dist/DateTimeField--YTsgTjw.js +32 -0
  13. package/dist/EmailField-B-3fWJsH.js +28 -0
  14. package/dist/FileField-DxxdESfc.js +160 -0
  15. package/dist/FormulaField-MQXJZOep.js +13 -0
  16. package/dist/GeolocationField-BzKgcWLN.js +156 -0
  17. package/dist/GridField-DHsGo9l2.js +51 -0
  18. package/dist/ImageField-DK7sUV6b.js +77 -0
  19. package/dist/LocationField-DSvhU9Dz.js +35 -0
  20. package/dist/LookupField-Dmzju5Q0.js +1033 -0
  21. package/dist/MasterDetailField-CPLHbe_Y.js +109 -0
  22. package/dist/NumberField-JaSlPVXs.js +26 -0
  23. package/dist/ObjectAgGridImpl-4uephlvO.js +19998 -0
  24. package/dist/ObjectField-FzUYlu-m.js +52 -0
  25. package/dist/PasswordField-d6E-vKBI.js +60 -0
  26. package/dist/PercentField-D2_kMuC_.js +63 -0
  27. package/dist/PhoneField-DOaMivd6.js +28 -0
  28. package/dist/QRCodeField-BIQhc73N.js +144 -0
  29. package/dist/RatingField-BKAGmlzh.js +42 -0
  30. package/dist/RichTextField-D4FIV9V8.js +32 -0
  31. package/dist/SelectField-C2gtlnLZ.js +30 -0
  32. package/dist/SignatureField-fFEb0h_C.js +98 -0
  33. package/dist/SliderField-BlAlK3g2.js +34 -0
  34. package/dist/SummaryField-Dy2Kkj6M.js +18 -0
  35. package/dist/TextAreaField-BCUkjKTc.js +36 -0
  36. package/dist/TextField-XWOnbUrk.js +29 -0
  37. package/dist/TimeField-CZdzdqOO.js +21 -0
  38. package/dist/UrlField-sq1mpRoG.js +33 -0
  39. package/dist/UserField-Dqk38Arc.js +79 -0
  40. package/dist/VectorField-CY70VLiW.js +35 -0
  41. package/dist/createLucideIcon-CWx7zIL1.js +39 -0
  42. package/dist/image-Cm7ExMY2.js +24 -0
  43. package/dist/index.css +2 -1
  44. package/dist/index.js +503 -8
  45. package/dist/index.umd.cjs +116 -112
  46. package/dist/jsx-runtime-CGDkM_Jn.js +189 -0
  47. package/dist/plus-CsEgF66K.js +10 -0
  48. package/dist/upload-B1x-ueFd.js +17 -0
  49. package/dist/x-Bwhzfvtg.js +10 -0
  50. package/package.json +9 -9
  51. package/dist/AddressField-D2Yli537.js +0 -95
  52. package/dist/AgGridImpl-GwI1UT7v.js +0 -229
  53. package/dist/AutoNumberField-Y3hL1ZoW.js +0 -8
  54. package/dist/FileField-BHv22jrG.js +0 -144
  55. package/dist/FormulaField-B-JSCA7E.js +0 -9
  56. package/dist/GeolocationField-DxnVAm8n.js +0 -141
  57. package/dist/GridField-7A4mvr7x.js +0 -29
  58. package/dist/LocationField-o8Z6x8qV.js +0 -33
  59. package/dist/MasterDetailField-CnzHQ-jU.js +0 -117
  60. package/dist/ObjectAgGridImpl-CujXHJ0J.js +0 -28833
  61. package/dist/ObjectField-BAVt0fMs.js +0 -51
  62. package/dist/QRCodeField-VAlAXUkP.js +0 -96
  63. package/dist/RichTextField-DylJITFH.js +0 -37
  64. package/dist/SignatureField-BrGCC7_j.js +0 -96
  65. package/dist/SummaryField-BPPAEVC6.js +0 -9
  66. package/dist/UserField-CWZQprry.js +0 -49
  67. package/dist/VectorField-CIvFEC07.js +0 -25
  68. package/dist/index-BfSjmySi.js +0 -662
@@ -1,99 +1,68 @@
1
1
 
2
- > @object-ui/plugin-aggrid@3.1.2 build /home/runner/work/objectui/objectui/packages/plugin-aggrid
2
+ > @object-ui/plugin-aggrid@3.1.4 build /home/runner/work/objectui/objectui/packages/plugin-aggrid
3
3
  > vite build
4
4
 
5
- vite v7.3.1 building client environment for production...
6
- transforming...
7
- ✓ 1783 modules transformed.
5
+ vite v8.0.1 building client environment for production...
6
+ 
8
7
  rendering chunks...
9
- [plugin vite:reporter]
10
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/TextField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
11
- 
12
- [plugin vite:reporter]
13
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/NumberField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
14
- 
15
- [plugin vite:reporter]
16
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/BooleanField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
17
- 
18
- [plugin vite:reporter]
19
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/SelectField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
20
- 
21
- [plugin vite:reporter]
22
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/DateField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
23
- 
24
- [plugin vite:reporter]
25
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/EmailField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
26
- 
27
- [plugin vite:reporter]
28
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/PhoneField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
29
- 
30
- [plugin vite:reporter]
31
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/UrlField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
32
- 
33
- [plugin vite:reporter]
34
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/CurrencyField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
35
- 
36
- [plugin vite:reporter]
37
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/TextAreaField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
38
- 
39
- [plugin vite:reporter]
40
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/LookupField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
41
- 
42
- [plugin vite:reporter]
43
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/DateTimeField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
44
- 
45
- [plugin vite:reporter]
46
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/TimeField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
47
- 
48
- [plugin vite:reporter]
49
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/PercentField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
50
- 
51
- [plugin vite:reporter]
52
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/PasswordField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
53
- 
54
- [plugin vite:reporter]
55
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/ImageField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
56
- 
57
- [plugin vite:reporter]
58
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/ColorField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
59
- 
60
- [plugin vite:reporter]
61
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/SliderField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
62
- 
63
- [plugin vite:reporter]
64
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/RatingField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
65
- 
66
- [plugin vite:reporter]
67
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/CodeField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
68
- 
69
- [plugin vite:reporter]
70
- (!) /home/runner/work/objectui/objectui/packages/fields/src/widgets/AvatarField.tsx is dynamically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx but also statically imported by /home/runner/work/objectui/objectui/packages/fields/src/index.tsx, dynamic import will not move module into another chunk.
71
- 
72
8
  
73
9
  [vite:dts] Start generate declaration files...
10
+ [vite:dts] Declaration files built in 20096ms.
11
+ 
74
12
  computing gzip size...
75
- [vite:dts] Declaration files built in 22298ms.
13
+ dist/index.css 366.84 kB │ gzip: 71.88 kB
14
+ dist/plus-CsEgF66K.js 0.19 kB │ gzip: 0.17 kB
15
+ dist/x-Bwhzfvtg.js 0.19 kB │ gzip: 0.17 kB
16
+ dist/upload-B1x-ueFd.js 0.29 kB │ gzip: 0.22 kB
17
+ dist/image-Cm7ExMY2.js 0.36 kB │ gzip: 0.25 kB
18
+ dist/AutoNumberField-0RU2dNKe.js 0.43 kB │ gzip: 0.32 kB
19
+ dist/SummaryField-Dy2Kkj6M.js 0.61 kB │ gzip: 0.43 kB
20
+ dist/TimeField-CZdzdqOO.js 0.62 kB │ gzip: 0.39 kB
21
+ dist/FormulaField-MQXJZOep.js 0.65 kB │ gzip: 0.44 kB
22
+ dist/DateField-CV-NpLbM.js 0.66 kB │ gzip: 0.42 kB
23
+ dist/NumberField-JaSlPVXs.js 0.78 kB │ gzip: 0.48 kB
24
+ dist/DateTimeField--YTsgTjw.js 0.84 kB │ gzip: 0.46 kB
25
+ dist/CodeField-RWhnDMyL.js 0.88 kB │ gzip: 0.52 kB
26
+ dist/PhoneField-DOaMivd6.js 0.89 kB │ gzip: 0.52 kB
27
+ dist/EmailField-B-3fWJsH.js 0.89 kB │ gzip: 0.52 kB
28
+ dist/TextField-XWOnbUrk.js 0.92 kB │ gzip: 0.48 kB
29
+ dist/VectorField-CY70VLiW.js 0.94 kB │ gzip: 0.50 kB
30
+ dist/LocationField-DSvhU9Dz.js 1.02 kB │ gzip: 0.58 kB
31
+ dist/UrlField-sq1mpRoG.js 1.06 kB │ gzip: 0.56 kB
32
+ dist/SelectField-C2gtlnLZ.js 1.07 kB │ gzip: 0.55 kB
33
+ dist/SliderField-BlAlK3g2.js 1.13 kB │ gzip: 0.53 kB
34
+ dist/TextAreaField-BCUkjKTc.js 1.14 kB │ gzip: 0.63 kB
35
+ dist/RichTextField-D4FIV9V8.js 1.21 kB │ gzip: 0.62 kB
36
+ dist/BooleanField-DRzAZhSq.js 1.25 kB │ gzip: 0.57 kB
37
+ dist/ColorField-B-YAFXdz.js 1.29 kB │ gzip: 0.57 kB
38
+ dist/createLucideIcon-CWx7zIL1.js 1.50 kB │ gzip: 0.83 kB
39
+ dist/CurrencyField-Bu80a-sI.js 1.56 kB │ gzip: 0.79 kB
40
+ dist/ObjectField-FzUYlu-m.js 1.66 kB │ gzip: 0.81 kB
41
+ dist/PercentField-D2_kMuC_.js 1.89 kB │ gzip: 0.87 kB
42
+ dist/PasswordField-d6E-vKBI.js 1.93 kB │ gzip: 0.95 kB
43
+ dist/GridField-DHsGo9l2.js 2.00 kB │ gzip: 0.75 kB
44
+ dist/RatingField-BKAGmlzh.js 2.09 kB │ gzip: 0.93 kB
45
+ dist/UserField-Dqk38Arc.js 2.68 kB │ gzip: 0.97 kB
46
+ dist/ImageField-DK7sUV6b.js 2.71 kB │ gzip: 1.12 kB
47
+ dist/AvatarField-IZTLB0Ye.js 2.71 kB │ gzip: 1.15 kB
48
+ dist/AddressField-DKqaE9pD.js 2.91 kB │ gzip: 0.81 kB
49
+ dist/SignatureField-fFEb0h_C.js 3.21 kB │ gzip: 1.30 kB
50
+ dist/QRCodeField-BIQhc73N.js 3.34 kB │ gzip: 1.26 kB
51
+ dist/MasterDetailField-CPLHbe_Y.js 3.47 kB │ gzip: 1.13 kB
52
+ dist/GeolocationField-BzKgcWLN.js 4.19 kB │ gzip: 1.50 kB
53
+ dist/FileField-DxxdESfc.js 5.80 kB │ gzip: 2.09 kB
54
+ dist/AgGridImpl-BD5cjyc0.js 6.54 kB │ gzip: 2.29 kB
55
+ dist/jsx-runtime-CGDkM_Jn.js 8.02 kB │ gzip: 2.92 kB
56
+ dist/index.js 10.58 kB │ gzip: 2.47 kB
57
+ dist/LookupField-Dmzju5Q0.js 34.54 kB │ gzip: 9.19 kB
58
+ dist/ObjectAgGridImpl-4uephlvO.js 743.97 kB │ gzip: 188.71 kB
59
+
60
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `vite:dts`. See https://rolldown.rs/options/checks#plugintimings for more details.
76
61
  
77
- dist/index.css 370.94 kB │ gzip: 72.89 kB
78
- dist/index.js  0.22 kB │ gzip: 0.16 kB
79
- dist/AutoNumberField-Y3hL1ZoW.js  0.29 kB │ gzip: 0.25 kB
80
- dist/SummaryField-BPPAEVC6.js  0.49 kB │ gzip: 0.35 kB
81
- dist/FormulaField-B-JSCA7E.js  0.53 kB │ gzip: 0.37 kB
82
- dist/VectorField-CIvFEC07.js  0.81 kB │ gzip: 0.43 kB
83
- dist/LocationField-o8Z6x8qV.js  0.95 kB │ gzip: 0.52 kB
84
- dist/RichTextField-DylJITFH.js  1.19 kB │ gzip: 0.58 kB
85
- dist/ObjectField-BAVt0fMs.js  1.65 kB │ gzip: 0.76 kB
86
- dist/GridField-7A4mvr7x.js  1.78 kB │ gzip: 0.67 kB
87
- dist/UserField-CWZQprry.js  2.50 kB │ gzip: 0.93 kB
88
- dist/AddressField-D2Yli537.js  3.12 kB │ gzip: 0.75 kB
89
- dist/SignatureField-BrGCC7_j.js  3.41 kB │ gzip: 1.29 kB
90
- dist/QRCodeField-VAlAXUkP.js  3.46 kB │ gzip: 1.24 kB
91
- dist/MasterDetailField-CnzHQ-jU.js  3.96 kB │ gzip: 1.17 kB
92
- dist/GeolocationField-DxnVAm8n.js  4.57 kB │ gzip: 1.51 kB
93
- dist/FileField-BHv22jrG.js  6.05 kB │ gzip: 2.13 kB
94
- dist/AgGridImpl-GwI1UT7v.js  7.21 kB │ gzip: 2.37 kB
95
- dist/index-BfSjmySi.js  20.43 kB │ gzip: 5.11 kB
96
- dist/ObjectAgGridImpl-CujXHJ0J.js 945.41 kB │ gzip: 208.75 kB
97
- dist/index.css 370.94 kB │ gzip: 72.89 kB
98
- dist/index.umd.cjs 616.78 kB │ gzip: 184.34 kB
99
- ✓ built in 40.07s
62
+ 
63
+ rendering chunks...
64
+ computing gzip size...
65
+ dist/index.css 366.84 kB │ gzip: 71.88 kB
66
+ dist/index.umd.cjs 643.37 kB │ gzip: 192.27 kB
67
+
68
+ ✓ built in 26.49s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @object-ui/plugin-aggrid
2
2
 
3
+ ## 3.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - @object-ui/types@3.1.4
8
+ - @object-ui/core@3.1.4
9
+ - @object-ui/react@3.1.4
10
+ - @object-ui/components@3.1.4
11
+ - @object-ui/fields@3.1.4
12
+ - @object-ui/data-objectstack@3.1.4
13
+
14
+ ## 3.1.3
15
+
16
+ ### Patch Changes
17
+
18
+ - @object-ui/types@3.1.3
19
+ - @object-ui/core@3.1.3
20
+ - @object-ui/react@3.1.3
21
+ - @object-ui/components@3.1.3
22
+ - @object-ui/fields@3.1.3
23
+ - @object-ui/data-objectstack@3.1.3
24
+
3
25
  ## 3.1.2
4
26
 
5
27
  ### Patch Changes
@@ -0,0 +1,93 @@
1
+ import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import "react";
3
+ import { Input as n, Label as r } from "@object-ui/components";
4
+ //#region ../fields/src/widgets/AddressField.tsx
5
+ var i = /* @__PURE__ */ e({ AddressField: () => o }), a = t();
6
+ function o({ value: e, onChange: t, field: i, readonly: o, ...s }) {
7
+ let c = e || {}, l = (e, n) => {
8
+ t({
9
+ ...c,
10
+ [e]: n
11
+ });
12
+ };
13
+ return o ? /* @__PURE__ */ (0, a.jsx)("span", {
14
+ className: "text-sm",
15
+ children: ((e) => [
16
+ e.street,
17
+ e.city,
18
+ [e.state, e.zipCode].filter(Boolean).join(" "),
19
+ e.country
20
+ ].filter(Boolean).join(", ") || "-")(c)
21
+ }) : /* @__PURE__ */ (0, a.jsxs)("div", {
22
+ className: "space-y-3",
23
+ children: [
24
+ /* @__PURE__ */ (0, a.jsxs)("div", { children: [/* @__PURE__ */ (0, a.jsx)(r, {
25
+ htmlFor: "street",
26
+ className: "text-xs",
27
+ children: "Street Address"
28
+ }), /* @__PURE__ */ (0, a.jsx)(n, {
29
+ id: "street",
30
+ type: "text",
31
+ value: c.street || "",
32
+ onChange: (e) => l("street", e.target.value),
33
+ placeholder: "123 Main St",
34
+ disabled: o || s.disabled,
35
+ className: s.className
36
+ })] }),
37
+ /* @__PURE__ */ (0, a.jsxs)("div", {
38
+ className: "grid grid-cols-2 gap-3",
39
+ children: [/* @__PURE__ */ (0, a.jsxs)("div", { children: [/* @__PURE__ */ (0, a.jsx)(r, {
40
+ htmlFor: "city",
41
+ className: "text-xs",
42
+ children: "City"
43
+ }), /* @__PURE__ */ (0, a.jsx)(n, {
44
+ id: "city",
45
+ type: "text",
46
+ value: c.city || "",
47
+ onChange: (e) => l("city", e.target.value),
48
+ placeholder: "San Francisco",
49
+ disabled: o || s.disabled
50
+ })] }), /* @__PURE__ */ (0, a.jsxs)("div", { children: [/* @__PURE__ */ (0, a.jsx)(r, {
51
+ htmlFor: "state",
52
+ className: "text-xs",
53
+ children: "State / Province"
54
+ }), /* @__PURE__ */ (0, a.jsx)(n, {
55
+ id: "state",
56
+ type: "text",
57
+ value: c.state || "",
58
+ onChange: (e) => l("state", e.target.value),
59
+ placeholder: "CA",
60
+ disabled: o || s.disabled
61
+ })] })]
62
+ }),
63
+ /* @__PURE__ */ (0, a.jsxs)("div", {
64
+ className: "grid grid-cols-2 gap-3",
65
+ children: [/* @__PURE__ */ (0, a.jsxs)("div", { children: [/* @__PURE__ */ (0, a.jsx)(r, {
66
+ htmlFor: "zipCode",
67
+ className: "text-xs",
68
+ children: "ZIP / Postal Code"
69
+ }), /* @__PURE__ */ (0, a.jsx)(n, {
70
+ id: "zipCode",
71
+ type: "text",
72
+ value: c.zipCode || "",
73
+ onChange: (e) => l("zipCode", e.target.value),
74
+ placeholder: "94102",
75
+ disabled: o || s.disabled
76
+ })] }), /* @__PURE__ */ (0, a.jsxs)("div", { children: [/* @__PURE__ */ (0, a.jsx)(r, {
77
+ htmlFor: "country",
78
+ className: "text-xs",
79
+ children: "Country"
80
+ }), /* @__PURE__ */ (0, a.jsx)(n, {
81
+ id: "country",
82
+ type: "text",
83
+ value: c.country || "",
84
+ onChange: (e) => l("country", e.target.value),
85
+ placeholder: "United States",
86
+ disabled: o || s.disabled
87
+ })] })]
88
+ })
89
+ ]
90
+ });
91
+ }
92
+ //#endregion
93
+ export { i as t };
@@ -0,0 +1,226 @@
1
+ import { t as e } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import { useCallback as t, useMemo as n, useRef as r } from "react";
3
+ import { AgGridReact as i } from "ag-grid-react";
4
+ //#region src/AgGridImpl.tsx
5
+ var a = e();
6
+ function o({ rowData: e = [], columnDefs: o = [], gridOptions: s = {}, pagination: c = !1, paginationPageSize: l = 10, domLayout: u = "normal", animateRows: d = !0, rowSelection: f, theme: p = "quartz", height: m = 500, className: h = "", editable: g = !1, editType: _, singleClickEdit: v = !1, stopEditingWhenCellsLoseFocus: y = !0, exportConfig: b, statusBar: x, callbacks: S, columnConfig: C, enableRangeSelection: w = !1, enableCharts: T = !1, contextMenu: E, treeData: D, rowGrouping: O, excelExport: k }) {
7
+ let A = r(null), j = n(() => {
8
+ if (!x?.enabled) return;
9
+ let e = x.aggregations || [
10
+ "count",
11
+ "sum",
12
+ "avg"
13
+ ], t = [];
14
+ return e.includes("count") && t.push({
15
+ statusPanel: "agAggregationComponent",
16
+ statusPanelParams: { aggFuncs: ["count"] }
17
+ }), e.includes("sum") && t.push({
18
+ statusPanel: "agAggregationComponent",
19
+ statusPanelParams: { aggFuncs: ["sum"] }
20
+ }), e.includes("avg") && t.push({
21
+ statusPanel: "agAggregationComponent",
22
+ statusPanelParams: { aggFuncs: ["avg"] }
23
+ }), e.includes("min") && t.push({
24
+ statusPanel: "agAggregationComponent",
25
+ statusPanelParams: { aggFuncs: ["min"] }
26
+ }), e.includes("max") && t.push({
27
+ statusPanel: "agAggregationComponent",
28
+ statusPanelParams: { aggFuncs: ["max"] }
29
+ }), t;
30
+ }, [x]), M = t(() => {
31
+ if (!A.current?.api) return;
32
+ let t = {
33
+ fileName: b?.fileName || "export.csv",
34
+ skipColumnHeaders: b?.skipColumnHeaders || !1,
35
+ allColumns: b?.allColumns || !1,
36
+ onlySelected: b?.onlySelected || !1
37
+ };
38
+ if (A.current.api.exportDataAsCsv(t), S?.onExport) {
39
+ let t = b?.onlySelected ? A.current.api.getSelectedRows() : e;
40
+ S.onExport(t || [], "csv");
41
+ }
42
+ }, [
43
+ b,
44
+ S,
45
+ e
46
+ ]), N = t(() => {
47
+ if (!A.current?.api) return;
48
+ let t = {
49
+ fileName: k?.fileName || b?.fileName || "export.csv",
50
+ skipColumnHeaders: k?.includeHeaders === !1,
51
+ allColumns: !0,
52
+ onlySelected: k?.onlySelected || !1
53
+ };
54
+ if (A.current.api.exportDataAsCsv(t), S?.onExport) {
55
+ let t = k?.onlySelected ? A.current.api.getSelectedRows() : e;
56
+ S.onExport(t || [], "excel");
57
+ }
58
+ }, [
59
+ k,
60
+ b,
61
+ S,
62
+ e
63
+ ]), P = t((e) => {
64
+ if (!E?.enabled) return [];
65
+ let t = [];
66
+ return (E.items || [
67
+ "copy",
68
+ "copyWithHeaders",
69
+ "separator",
70
+ "export"
71
+ ]).forEach((e) => {
72
+ e === "export" ? t.push({
73
+ name: "Export CSV",
74
+ icon: "<span>📥</span>",
75
+ action: () => M()
76
+ }) : e === "export-excel" ? t.push({
77
+ name: "Export Excel (CSV)",
78
+ icon: "<span>📊</span>",
79
+ action: () => N()
80
+ }) : e === "autoSizeAll" ? t.push({
81
+ name: "Auto-size All Columns",
82
+ action: () => {
83
+ A.current?.api && A.current.api.autoSizeAllColumns();
84
+ }
85
+ }) : e === "resetColumns" ? t.push({
86
+ name: "Reset Columns",
87
+ action: () => {
88
+ A.current?.api && A.current.api.resetColumnState();
89
+ }
90
+ }) : t.push(e);
91
+ }), E.customItems && (t.length > 0 && t.push("separator"), E.customItems.forEach((n) => {
92
+ t.push({
93
+ name: n.name,
94
+ disabled: n.disabled,
95
+ action: () => {
96
+ S?.onContextMenuAction && S.onContextMenuAction(n.action, e.node?.data);
97
+ }
98
+ });
99
+ })), t;
100
+ }, [
101
+ E,
102
+ M,
103
+ N,
104
+ S
105
+ ]), F = t((e) => {
106
+ S?.onCellClicked?.(e);
107
+ }, [S]), I = t((e) => {
108
+ S?.onRowClicked?.(e);
109
+ }, [S]), L = t((e) => {
110
+ S?.onSelectionChanged?.(e);
111
+ }, [S]), R = t((e) => {
112
+ S?.onCellValueChanged?.(e);
113
+ }, [S]), z = t((e) => {
114
+ A.current = e;
115
+ }, []), B = n(() => o ? o.map((e) => {
116
+ let t = { ...e };
117
+ return g && e.editable !== !1 && (t.editable = !0), C && (C.resizable !== void 0 && e.resizable === void 0 && (t.resizable = C.resizable), C.sortable !== void 0 && e.sortable === void 0 && (t.sortable = C.sortable), C.filterable !== void 0 && e.filter === void 0 && (t.filter = C.filterable)), O?.enabled && O.groupByFields?.includes(e.field || "") && (t.rowGroup = !0, t.hide = !0), O?.aggregations && e.field && O.aggregations[e.field] && (t.aggFunc = O.aggregations[e.field]), t;
118
+ }) : [], [
119
+ o,
120
+ g,
121
+ C,
122
+ O
123
+ ]), V = n(() => ({
124
+ ...s,
125
+ pagination: c,
126
+ paginationPageSize: l,
127
+ domLayout: u,
128
+ animateRows: d,
129
+ rowSelection: f,
130
+ editType: _,
131
+ singleClickEdit: v,
132
+ stopEditingWhenCellsLoseFocus: y,
133
+ statusBar: j ? { statusPanels: j } : void 0,
134
+ enableRangeSelection: w,
135
+ enableCharts: T,
136
+ getContextMenuItems: E?.enabled ? P : void 0,
137
+ ...D?.enabled ? {
138
+ treeData: !0,
139
+ getDataPath: D.pathField ? (e) => e[D.pathField] : void 0,
140
+ autoGroupColumnDef: {
141
+ headerName: "Hierarchy",
142
+ minWidth: 250,
143
+ cellRendererParams: { suppressCount: !1 }
144
+ },
145
+ groupDefaultExpanded: D.expandAll ? -1 : D.expandDepth ?? 0
146
+ } : {},
147
+ ...O?.enabled ? {
148
+ groupDefaultExpanded: O.groupByFields?.length ? 1 : 0,
149
+ autoGroupColumnDef: {
150
+ minWidth: 200,
151
+ cellRendererParams: { suppressCount: !O.showRowCount }
152
+ }
153
+ } : {},
154
+ suppressCellFocus: !g,
155
+ enableCellTextSelection: !0,
156
+ ensureDomOrder: !0,
157
+ rowBuffer: s.rowBuffer ?? 10,
158
+ debounceVerticalScrollbar: s.debounceVerticalScrollbar ?? e.length > 1e3,
159
+ onCellClicked: F,
160
+ onRowClicked: I,
161
+ onSelectionChanged: L,
162
+ onCellValueChanged: R,
163
+ onGridReady: z
164
+ }), [
165
+ s,
166
+ c,
167
+ l,
168
+ u,
169
+ d,
170
+ f,
171
+ _,
172
+ v,
173
+ y,
174
+ j,
175
+ w,
176
+ T,
177
+ E,
178
+ P,
179
+ D,
180
+ O,
181
+ g,
182
+ e.length,
183
+ F,
184
+ I,
185
+ L,
186
+ R,
187
+ z
188
+ ]), H = n(() => ({
189
+ height: typeof m == "number" ? `${m}px` : m,
190
+ width: "100%"
191
+ }), [m]), U = [
192
+ `ag-theme-${p}`,
193
+ "rounded-xl",
194
+ "border",
195
+ "border-border",
196
+ "overflow-hidden",
197
+ "shadow-lg",
198
+ h
199
+ ].filter(Boolean).join(" ");
200
+ return /* @__PURE__ */ (0, a.jsxs)("div", {
201
+ className: "ag-grid-container",
202
+ children: [(b?.enabled || k?.enabled) && /* @__PURE__ */ (0, a.jsxs)("div", {
203
+ className: "mb-2 flex gap-2",
204
+ children: [b?.enabled && /* @__PURE__ */ (0, a.jsx)("button", {
205
+ onClick: M,
206
+ className: "px-3 py-1.5 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-md transition-colors",
207
+ children: "Export CSV"
208
+ }), k?.enabled && /* @__PURE__ */ (0, a.jsx)("button", {
209
+ onClick: N,
210
+ className: "px-3 py-1.5 text-sm font-medium text-white bg-green-600 hover:bg-green-700 rounded-md transition-colors",
211
+ children: "Export Excel (CSV)"
212
+ })]
213
+ }), /* @__PURE__ */ (0, a.jsx)("div", {
214
+ className: U,
215
+ style: H,
216
+ children: /* @__PURE__ */ (0, a.jsx)(i, {
217
+ ref: A,
218
+ rowData: e,
219
+ columnDefs: B,
220
+ gridOptions: V
221
+ })
222
+ })]
223
+ });
224
+ }
225
+ //#endregion
226
+ export { o as default };
@@ -0,0 +1,13 @@
1
+ import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import "react";
3
+ //#region ../fields/src/widgets/AutoNumberField.tsx
4
+ var n = /* @__PURE__ */ e({ AutoNumberField: () => i }), r = t();
5
+ function i({ value: e, field: t, ...n }) {
6
+ let i = e == null ? "-" : String(e);
7
+ return /* @__PURE__ */ (0, r.jsx)("span", {
8
+ className: `text-sm font-mono text-gray-700 ${n.className || ""}`,
9
+ children: i
10
+ });
11
+ }
12
+ //#endregion
13
+ export { n as t };
@@ -0,0 +1,82 @@
1
+ import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import { t as n } from "./upload-B1x-ueFd.js";
3
+ import { t as r } from "./x-Bwhzfvtg.js";
4
+ import i from "react";
5
+ import { Avatar as a, AvatarFallback as o, AvatarImage as s, Button as c } from "@object-ui/components";
6
+ //#region ../fields/src/widgets/AvatarField.tsx
7
+ var l = /* @__PURE__ */ e({ AvatarField: () => d }), u = t();
8
+ function d({ value: e, onChange: t, field: l, readonly: d, ...f }) {
9
+ let [p, m] = i.useState(!1), h = i.useRef(null), g = l || f.schema, _ = (e) => {
10
+ let n = e.target.files?.[0];
11
+ if (!n) return;
12
+ if (!n.type.startsWith("image/")) {
13
+ console.error("Please select an image file");
14
+ return;
15
+ }
16
+ if (n.size > 5 * 1024 * 1024) {
17
+ console.error("File size must be less than 5MB");
18
+ return;
19
+ }
20
+ let r = new FileReader();
21
+ r.onloadend = () => {
22
+ t(r.result);
23
+ }, r.readAsDataURL(n);
24
+ }, v = () => {
25
+ t("");
26
+ }, y = () => (g?.defaultName || g?.label || "User").split(" ").map((e) => e[0]).join("").toUpperCase().slice(0, 2);
27
+ return d ? /* @__PURE__ */ (0, u.jsxs)(a, {
28
+ className: "w-16 h-16",
29
+ children: [e && /* @__PURE__ */ (0, u.jsx)(s, {
30
+ src: e,
31
+ alt: g?.label
32
+ }), /* @__PURE__ */ (0, u.jsx)(o, { children: y() })]
33
+ }) : /* @__PURE__ */ (0, u.jsxs)("div", {
34
+ className: "flex items-center gap-4",
35
+ children: [/* @__PURE__ */ (0, u.jsxs)("div", {
36
+ className: "relative",
37
+ onMouseEnter: () => m(!0),
38
+ onMouseLeave: () => m(!1),
39
+ children: [/* @__PURE__ */ (0, u.jsxs)(a, {
40
+ className: "w-16 h-16",
41
+ children: [e && /* @__PURE__ */ (0, u.jsx)(s, {
42
+ src: e,
43
+ alt: g?.label
44
+ }), /* @__PURE__ */ (0, u.jsx)(o, { children: y() })]
45
+ }), !d && p && e && /* @__PURE__ */ (0, u.jsx)("button", {
46
+ type: "button",
47
+ onClick: v,
48
+ className: "absolute -top-1 -right-1 bg-destructive text-destructive-foreground rounded-full p-1 hover:bg-destructive/90",
49
+ children: /* @__PURE__ */ (0, u.jsx)(r, { className: "w-3 h-3" })
50
+ })]
51
+ }), /* @__PURE__ */ (0, u.jsxs)("div", {
52
+ className: "flex flex-col gap-2",
53
+ children: [
54
+ /* @__PURE__ */ (0, u.jsx)("input", {
55
+ ref: h,
56
+ type: "file",
57
+ accept: "image/*",
58
+ onChange: _,
59
+ className: "hidden"
60
+ }),
61
+ /* @__PURE__ */ (0, u.jsxs)(c, {
62
+ type: "button",
63
+ variant: "outline",
64
+ size: "sm",
65
+ onClick: () => h.current?.click(),
66
+ disabled: d || f.disabled,
67
+ children: [
68
+ /* @__PURE__ */ (0, u.jsx)(n, { className: "w-4 h-4 mr-2" }),
69
+ e ? "Change" : "Upload",
70
+ " Avatar"
71
+ ]
72
+ }),
73
+ /* @__PURE__ */ (0, u.jsx)("p", {
74
+ className: "text-xs text-muted-foreground",
75
+ children: "PNG, JPG up to 5MB"
76
+ })
77
+ ]
78
+ })]
79
+ });
80
+ }
81
+ //#endregion
82
+ export { l as n, d as t };
@@ -0,0 +1,40 @@
1
+ import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import { useId as n } from "react";
3
+ import { Checkbox as r, Label as i, Switch as a } from "@object-ui/components";
4
+ //#region ../fields/src/widgets/BooleanField.tsx
5
+ var o = /* @__PURE__ */ e({ BooleanField: () => c }), s = t();
6
+ function c({ value: e, onChange: t, field: o, readonly: c, ...l }) {
7
+ let u = o || l.schema, d = u?.widget, f = n(), p = u?.name || f, m = u?.label || "Checkbox";
8
+ if (c) return /* @__PURE__ */ (0, s.jsx)("span", {
9
+ className: "text-sm",
10
+ children: e ? "Yes" : "No"
11
+ });
12
+ let { inputType: h, ...g } = l;
13
+ return d === "checkbox" ? /* @__PURE__ */ (0, s.jsxs)("div", {
14
+ className: "flex items-center space-x-2",
15
+ children: [/* @__PURE__ */ (0, s.jsx)(r, {
16
+ ...g,
17
+ id: p,
18
+ checked: !!e,
19
+ onCheckedChange: (e) => t(!!e),
20
+ disabled: c || g.disabled
21
+ }), /* @__PURE__ */ (0, s.jsx)(i, {
22
+ htmlFor: p,
23
+ children: m
24
+ })]
25
+ }) : /* @__PURE__ */ (0, s.jsxs)("div", {
26
+ className: "flex items-center space-x-2",
27
+ children: [/* @__PURE__ */ (0, s.jsx)(a, {
28
+ ...g,
29
+ id: p,
30
+ checked: !!e,
31
+ onCheckedChange: t,
32
+ disabled: c || g.disabled
33
+ }), /* @__PURE__ */ (0, s.jsx)(i, {
34
+ htmlFor: p,
35
+ children: m
36
+ })]
37
+ });
38
+ }
39
+ //#endregion
40
+ export { o as n, c as t };