@object-ui/plugin-aggrid 3.1.3 → 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.
- package/.turbo/turbo-build.log +60 -91
- package/CHANGELOG.md +11 -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
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,99 +1,68 @@
|
|
|
1
1
|
|
|
2
|
-
> @object-ui/plugin-aggrid@3.1.
|
|
2
|
+
> @object-ui/plugin-aggrid@3.1.4 build /home/runner/work/objectui/objectui/packages/plugin-aggrid
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
|
-
[36mvite
|
|
6
|
-
|
|
7
|
-
[32m✓[39m 1784 modules transformed.
|
|
5
|
+
[36mvite v8.0.1 [32mbuilding client environment for production...[36m[39m
|
|
6
|
+
[2K
|
|
8
7
|
rendering chunks...
|
|
9
|
-
[33m[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
|
-
[39m
|
|
12
|
-
[33m[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
|
-
[39m
|
|
15
|
-
[33m[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
|
-
[39m
|
|
18
|
-
[33m[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
|
-
[39m
|
|
21
|
-
[33m[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
|
-
[39m
|
|
24
|
-
[33m[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
|
-
[39m
|
|
27
|
-
[33m[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
|
-
[39m
|
|
30
|
-
[33m[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
|
-
[39m
|
|
33
|
-
[33m[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
|
-
[39m
|
|
36
|
-
[33m[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
|
-
[39m
|
|
39
|
-
[33m[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
|
-
[39m
|
|
42
|
-
[33m[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
|
-
[39m
|
|
45
|
-
[33m[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
|
-
[39m
|
|
48
|
-
[33m[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
|
-
[39m
|
|
51
|
-
[33m[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
|
-
[39m
|
|
54
|
-
[33m[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
|
-
[39m
|
|
57
|
-
[33m[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
|
-
[39m
|
|
60
|
-
[33m[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
|
-
[39m
|
|
63
|
-
[33m[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
|
-
[39m
|
|
66
|
-
[33m[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
|
-
[39m
|
|
69
|
-
[33m[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
|
-
[39m
|
|
72
8
|
[32m
|
|
73
9
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
10
|
+
[32m[36m[vite:dts][32m Declaration files built in 20096ms.
|
|
11
|
+
[39m
|
|
74
12
|
computing gzip size...
|
|
75
|
-
|
|
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
|
+
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugin `vite:dts`. See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
76
61
|
[39m
|
|
77
|
-
[
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[
|
|
84
|
-
[2mdist/[22m[36mRichTextField-DJFKaCj6.js [39m[1m[2m 1.19 kB[22m[1m[22m[2m │ gzip: 0.58 kB[22m
|
|
85
|
-
[2mdist/[22m[36mObjectField-C63JFk2A.js [39m[1m[2m 1.65 kB[22m[1m[22m[2m │ gzip: 0.76 kB[22m
|
|
86
|
-
[2mdist/[22m[36mGridField-Doeh0ghH.js [39m[1m[2m 1.78 kB[22m[1m[22m[2m │ gzip: 0.67 kB[22m
|
|
87
|
-
[2mdist/[22m[36mUserField-BGSE0B99.js [39m[1m[2m 2.50 kB[22m[1m[22m[2m │ gzip: 0.93 kB[22m
|
|
88
|
-
[2mdist/[22m[36mAddressField-CKC4ZJAb.js [39m[1m[2m 3.12 kB[22m[1m[22m[2m │ gzip: 0.75 kB[22m
|
|
89
|
-
[2mdist/[22m[36mSignatureField-DdhPdmDm.js [39m[1m[2m 3.41 kB[22m[1m[22m[2m │ gzip: 1.29 kB[22m
|
|
90
|
-
[2mdist/[22m[36mQRCodeField-DnYB9SbX.js [39m[1m[2m 3.46 kB[22m[1m[22m[2m │ gzip: 1.25 kB[22m
|
|
91
|
-
[2mdist/[22m[36mMasterDetailField-EG8aGKCm.js [39m[1m[2m 3.84 kB[22m[1m[22m[2m │ gzip: 1.14 kB[22m
|
|
92
|
-
[2mdist/[22m[36mGeolocationField-CEWtxddT.js [39m[1m[2m 4.57 kB[22m[1m[22m[2m │ gzip: 1.51 kB[22m
|
|
93
|
-
[2mdist/[22m[36mFileField-VTTCu1Mi.js [39m[1m[2m 6.05 kB[22m[1m[22m[2m │ gzip: 2.13 kB[22m
|
|
94
|
-
[2mdist/[22m[36mAgGridImpl-Da1-9kQm.js [39m[1m[2m 7.21 kB[22m[1m[22m[2m │ gzip: 2.37 kB[22m
|
|
95
|
-
[2mdist/[22m[36mindex-CTPRjgpn.js [39m[1m[2m 20.43 kB[22m[1m[22m[2m │ gzip: 5.11 kB[22m
|
|
96
|
-
[2mdist/[22m[36mObjectAgGridImpl-BQKWGygD.js [39m[1m[33m952.20 kB[39m[22m[2m │ gzip: 210.51 kB[22m
|
|
97
|
-
[2mdist/[22m[35mindex.css [39m[1m[2m370.94 kB[22m[1m[22m[2m │ gzip: 72.89 kB[22m
|
|
98
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m621.07 kB[39m[22m[2m │ gzip: 185.58 kB[22m
|
|
99
|
-
[32m✓ built in 34.45s[39m
|
|
62
|
+
[2K
|
|
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
|
+
[32m✓ built in 26.49s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 3.1.3
|
|
4
15
|
|
|
5
16
|
### 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 };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Textarea as n, cn as r } from "@object-ui/components";
|
|
4
|
+
//#region ../fields/src/widgets/CodeField.tsx
|
|
5
|
+
var i = /* @__PURE__ */ e({ CodeField: () => o }), a = t();
|
|
6
|
+
function o({ value: e, onChange: t, field: i, readonly: o, ...s }) {
|
|
7
|
+
let c = i || s.schema, l = c?.language ?? "javascript";
|
|
8
|
+
return o ? /* @__PURE__ */ (0, a.jsx)("pre", {
|
|
9
|
+
className: r("text-sm bg-muted p-2 rounded overflow-x-auto border", s.className),
|
|
10
|
+
children: /* @__PURE__ */ (0, a.jsx)("code", { children: e || "-" })
|
|
11
|
+
}) : /* @__PURE__ */ (0, a.jsx)(n, {
|
|
12
|
+
value: e || "",
|
|
13
|
+
onChange: (e) => t(e.target.value),
|
|
14
|
+
placeholder: c?.placeholder || `// Write ${l} code here...`,
|
|
15
|
+
disabled: o || s.disabled,
|
|
16
|
+
className: r("font-mono text-sm", s.className),
|
|
17
|
+
rows: 12,
|
|
18
|
+
spellCheck: !1
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as n, o as t };
|