@object-ui/plugin-aggrid 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +60 -91
- package/CHANGELOG.md +22 -0
- package/dist/AddressField-DKqaE9pD.js +93 -0
- package/dist/AgGridImpl-BD5cjyc0.js +226 -0
- package/dist/AutoNumberField-0RU2dNKe.js +13 -0
- package/dist/AvatarField-IZTLB0Ye.js +82 -0
- package/dist/BooleanField-DRzAZhSq.js +40 -0
- package/dist/CodeField-RWhnDMyL.js +22 -0
- package/dist/ColorField-B-YAFXdz.js +37 -0
- package/dist/CurrencyField-Bu80a-sI.js +51 -0
- package/dist/DateField-CV-NpLbM.js +21 -0
- package/dist/DateTimeField--YTsgTjw.js +32 -0
- package/dist/EmailField-B-3fWJsH.js +28 -0
- package/dist/FileField-DxxdESfc.js +160 -0
- package/dist/FormulaField-MQXJZOep.js +13 -0
- package/dist/GeolocationField-BzKgcWLN.js +156 -0
- package/dist/GridField-DHsGo9l2.js +51 -0
- package/dist/ImageField-DK7sUV6b.js +77 -0
- package/dist/LocationField-DSvhU9Dz.js +35 -0
- package/dist/LookupField-Dmzju5Q0.js +1033 -0
- package/dist/MasterDetailField-CPLHbe_Y.js +109 -0
- package/dist/NumberField-JaSlPVXs.js +26 -0
- package/dist/ObjectAgGridImpl-4uephlvO.js +19998 -0
- package/dist/ObjectField-FzUYlu-m.js +52 -0
- package/dist/PasswordField-d6E-vKBI.js +60 -0
- package/dist/PercentField-D2_kMuC_.js +63 -0
- package/dist/PhoneField-DOaMivd6.js +28 -0
- package/dist/QRCodeField-BIQhc73N.js +144 -0
- package/dist/RatingField-BKAGmlzh.js +42 -0
- package/dist/RichTextField-D4FIV9V8.js +32 -0
- package/dist/SelectField-C2gtlnLZ.js +30 -0
- package/dist/SignatureField-fFEb0h_C.js +98 -0
- package/dist/SliderField-BlAlK3g2.js +34 -0
- package/dist/SummaryField-Dy2Kkj6M.js +18 -0
- package/dist/TextAreaField-BCUkjKTc.js +36 -0
- package/dist/TextField-XWOnbUrk.js +29 -0
- package/dist/TimeField-CZdzdqOO.js +21 -0
- package/dist/UrlField-sq1mpRoG.js +33 -0
- package/dist/UserField-Dqk38Arc.js +79 -0
- package/dist/VectorField-CY70VLiW.js +35 -0
- package/dist/createLucideIcon-CWx7zIL1.js +39 -0
- package/dist/image-Cm7ExMY2.js +24 -0
- package/dist/index.css +2 -1
- package/dist/index.js +503 -8
- package/dist/index.umd.cjs +116 -112
- package/dist/jsx-runtime-CGDkM_Jn.js +189 -0
- package/dist/plus-CsEgF66K.js +10 -0
- package/dist/upload-B1x-ueFd.js +17 -0
- package/dist/x-Bwhzfvtg.js +10 -0
- package/package.json +9 -9
- package/dist/AddressField-CKC4ZJAb.js +0 -95
- package/dist/AgGridImpl-Da1-9kQm.js +0 -229
- package/dist/AutoNumberField-DUIGHfEs.js +0 -8
- package/dist/FileField-VTTCu1Mi.js +0 -144
- package/dist/FormulaField-Db3yTWbM.js +0 -9
- package/dist/GeolocationField-CEWtxddT.js +0 -141
- package/dist/GridField-Doeh0ghH.js +0 -29
- package/dist/LocationField-BF0sYg0h.js +0 -33
- package/dist/MasterDetailField-EG8aGKCm.js +0 -113
- package/dist/ObjectAgGridImpl-BQKWGygD.js +0 -28987
- package/dist/ObjectField-C63JFk2A.js +0 -51
- package/dist/QRCodeField-DnYB9SbX.js +0 -96
- package/dist/RichTextField-DJFKaCj6.js +0 -37
- package/dist/SignatureField-DdhPdmDm.js +0 -96
- package/dist/SummaryField-qwokC_TB.js +0 -9
- package/dist/UserField-BGSE0B99.js +0 -49
- package/dist/VectorField-MkcitfSl.js +0 -25
- package/dist/index-CTPRjgpn.js +0 -662
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), n = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, r = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
10
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
12
|
+
}), i = /* @__PURE__ */ t(((e) => {
|
|
13
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
14
|
+
function r(e, n, r) {
|
|
15
|
+
var i = null;
|
|
16
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
17
|
+
else r = n;
|
|
18
|
+
return n = r.ref, {
|
|
19
|
+
$$typeof: t,
|
|
20
|
+
type: e,
|
|
21
|
+
key: i,
|
|
22
|
+
ref: n === void 0 ? null : n,
|
|
23
|
+
props: r
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
27
|
+
})), a = /* @__PURE__ */ t(((e) => {
|
|
28
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
+
function t(e) {
|
|
30
|
+
if (e == null) return null;
|
|
31
|
+
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
32
|
+
if (typeof e == "string") return e;
|
|
33
|
+
switch (e) {
|
|
34
|
+
case v: return "Fragment";
|
|
35
|
+
case b: return "Profiler";
|
|
36
|
+
case y: return "StrictMode";
|
|
37
|
+
case w: return "Suspense";
|
|
38
|
+
case T: return "SuspenseList";
|
|
39
|
+
case O: return "Activity";
|
|
40
|
+
}
|
|
41
|
+
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
42
|
+
case _: return "Portal";
|
|
43
|
+
case S: return e.displayName || "Context";
|
|
44
|
+
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
45
|
+
case C:
|
|
46
|
+
var n = e.render;
|
|
47
|
+
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
48
|
+
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
49
|
+
case D:
|
|
50
|
+
n = e._payload, e = e._init;
|
|
51
|
+
try {
|
|
52
|
+
return t(e(n));
|
|
53
|
+
} catch {}
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
function n(e) {
|
|
58
|
+
return "" + e;
|
|
59
|
+
}
|
|
60
|
+
function i(e) {
|
|
61
|
+
try {
|
|
62
|
+
n(e);
|
|
63
|
+
var t = !1;
|
|
64
|
+
} catch {
|
|
65
|
+
t = !0;
|
|
66
|
+
}
|
|
67
|
+
if (t) {
|
|
68
|
+
t = console;
|
|
69
|
+
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
70
|
+
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function a(e) {
|
|
74
|
+
if (e === v) return "<>";
|
|
75
|
+
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
76
|
+
try {
|
|
77
|
+
var n = t(e);
|
|
78
|
+
return n ? "<" + n + ">" : "<...>";
|
|
79
|
+
} catch {
|
|
80
|
+
return "<...>";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function o() {
|
|
84
|
+
var e = A.A;
|
|
85
|
+
return e === null ? null : e.getOwner();
|
|
86
|
+
}
|
|
87
|
+
function s() {
|
|
88
|
+
return Error("react-stack-top-frame");
|
|
89
|
+
}
|
|
90
|
+
function c(e) {
|
|
91
|
+
if (j.call(e, "key")) {
|
|
92
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
93
|
+
if (t && t.isReactWarning) return !1;
|
|
94
|
+
}
|
|
95
|
+
return e.key !== void 0;
|
|
96
|
+
}
|
|
97
|
+
function l(e, t) {
|
|
98
|
+
function n() {
|
|
99
|
+
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
100
|
+
}
|
|
101
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
102
|
+
get: n,
|
|
103
|
+
configurable: !0
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function u() {
|
|
107
|
+
var e = t(this.type);
|
|
108
|
+
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
109
|
+
}
|
|
110
|
+
function d(e, t, n, r, i, a) {
|
|
111
|
+
var o = n.ref;
|
|
112
|
+
return e = {
|
|
113
|
+
$$typeof: g,
|
|
114
|
+
type: e,
|
|
115
|
+
key: t,
|
|
116
|
+
props: n,
|
|
117
|
+
_owner: r
|
|
118
|
+
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
119
|
+
enumerable: !1,
|
|
120
|
+
value: null
|
|
121
|
+
}) : Object.defineProperty(e, "ref", {
|
|
122
|
+
enumerable: !1,
|
|
123
|
+
get: u
|
|
124
|
+
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
125
|
+
configurable: !1,
|
|
126
|
+
enumerable: !1,
|
|
127
|
+
writable: !0,
|
|
128
|
+
value: 0
|
|
129
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
130
|
+
configurable: !1,
|
|
131
|
+
enumerable: !1,
|
|
132
|
+
writable: !0,
|
|
133
|
+
value: null
|
|
134
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
135
|
+
configurable: !1,
|
|
136
|
+
enumerable: !1,
|
|
137
|
+
writable: !0,
|
|
138
|
+
value: i
|
|
139
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
140
|
+
configurable: !1,
|
|
141
|
+
enumerable: !1,
|
|
142
|
+
writable: !0,
|
|
143
|
+
value: a
|
|
144
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
145
|
+
}
|
|
146
|
+
function f(e, n, r, a, s, u) {
|
|
147
|
+
var f = n.children;
|
|
148
|
+
if (f !== void 0) if (a) if (M(f)) {
|
|
149
|
+
for (a = 0; a < f.length; a++) p(f[a]);
|
|
150
|
+
Object.freeze && Object.freeze(f);
|
|
151
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
152
|
+
else p(f);
|
|
153
|
+
if (j.call(n, "key")) {
|
|
154
|
+
f = t(e);
|
|
155
|
+
var m = Object.keys(n).filter(function(e) {
|
|
156
|
+
return e !== "key";
|
|
157
|
+
});
|
|
158
|
+
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
|
|
159
|
+
}
|
|
160
|
+
if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
|
|
161
|
+
else r = n;
|
|
162
|
+
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
163
|
+
}
|
|
164
|
+
function p(e) {
|
|
165
|
+
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
166
|
+
}
|
|
167
|
+
function m(e) {
|
|
168
|
+
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
169
|
+
}
|
|
170
|
+
var h = r("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
171
|
+
return null;
|
|
172
|
+
};
|
|
173
|
+
h = { react_stack_bottom_frame: function(e) {
|
|
174
|
+
return e();
|
|
175
|
+
} };
|
|
176
|
+
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
|
|
177
|
+
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
178
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
179
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
180
|
+
}, e.jsxs = function(e, t, n) {
|
|
181
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
182
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
183
|
+
};
|
|
184
|
+
})();
|
|
185
|
+
})), o = /* @__PURE__ */ t(((e, t) => {
|
|
186
|
+
process.env.NODE_ENV === "production" ? t.exports = i() : t.exports = a();
|
|
187
|
+
}));
|
|
188
|
+
//#endregion
|
|
189
|
+
export { r as i, t as n, n as r, o as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-CWx7zIL1.js";
|
|
2
|
+
var t = e("upload", [
|
|
3
|
+
["path", {
|
|
4
|
+
d: "M12 3v12",
|
|
5
|
+
key: "1x0j5s"
|
|
6
|
+
}],
|
|
7
|
+
["path", {
|
|
8
|
+
d: "m17 8-5-5-5 5",
|
|
9
|
+
key: "7q97r8"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
13
|
+
key: "ih7n3h"
|
|
14
|
+
}]
|
|
15
|
+
]);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-aggrid",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "AG Grid data grid plugin for Object UI, powered by AG Grid Community",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"./style.css": "./dist/index.css"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@object-ui/components": "3.1.
|
|
29
|
-
"@object-ui/core": "3.1.
|
|
30
|
-
"@object-ui/data-objectstack": "3.1.
|
|
31
|
-
"@object-ui/fields": "3.1.
|
|
32
|
-
"@object-ui/react": "3.1.
|
|
33
|
-
"@object-ui/types": "3.1.
|
|
28
|
+
"@object-ui/components": "3.1.5",
|
|
29
|
+
"@object-ui/core": "3.1.5",
|
|
30
|
+
"@object-ui/data-objectstack": "3.1.5",
|
|
31
|
+
"@object-ui/fields": "3.1.5",
|
|
32
|
+
"@object-ui/react": "3.1.5",
|
|
33
|
+
"@object-ui/types": "3.1.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"ag-grid-community": "^32.0.0",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/react": "19.2.14",
|
|
43
43
|
"@types/react-dom": "19.2.3",
|
|
44
|
-
"@vitejs/plugin-react": "^
|
|
44
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
45
45
|
"ag-grid-react": "^35.1.0",
|
|
46
46
|
"ag-grid-community": "^35.1.0",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
|
-
"vite": "^
|
|
48
|
+
"vite": "^8.0.1",
|
|
49
49
|
"vite-plugin-dts": "^4.5.4"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./index-CTPRjgpn.js";
|
|
2
|
-
import { Label as d, Input as r } from "@object-ui/components";
|
|
3
|
-
function u({ value: n, onChange: o, field: h, readonly: a, ...i }) {
|
|
4
|
-
const s = n || {}, l = (t, c) => {
|
|
5
|
-
o({
|
|
6
|
-
...s,
|
|
7
|
-
[t]: c
|
|
8
|
-
});
|
|
9
|
-
}, x = (t) => [
|
|
10
|
-
t.street,
|
|
11
|
-
t.city,
|
|
12
|
-
[t.state, t.zipCode].filter(Boolean).join(" "),
|
|
13
|
-
t.country
|
|
14
|
-
].filter(Boolean).join(", ") || "-";
|
|
15
|
-
return a ? /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: x(s) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
16
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
17
|
-
/* @__PURE__ */ e.jsx(d, { htmlFor: "street", className: "text-xs", children: "Street Address" }),
|
|
18
|
-
/* @__PURE__ */ e.jsx(
|
|
19
|
-
r,
|
|
20
|
-
{
|
|
21
|
-
id: "street",
|
|
22
|
-
type: "text",
|
|
23
|
-
value: s.street || "",
|
|
24
|
-
onChange: (t) => l("street", t.target.value),
|
|
25
|
-
placeholder: "123 Main St",
|
|
26
|
-
disabled: a || i.disabled,
|
|
27
|
-
className: i.className
|
|
28
|
-
}
|
|
29
|
-
)
|
|
30
|
-
] }),
|
|
31
|
-
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
32
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
33
|
-
/* @__PURE__ */ e.jsx(d, { htmlFor: "city", className: "text-xs", children: "City" }),
|
|
34
|
-
/* @__PURE__ */ e.jsx(
|
|
35
|
-
r,
|
|
36
|
-
{
|
|
37
|
-
id: "city",
|
|
38
|
-
type: "text",
|
|
39
|
-
value: s.city || "",
|
|
40
|
-
onChange: (t) => l("city", t.target.value),
|
|
41
|
-
placeholder: "San Francisco",
|
|
42
|
-
disabled: a || i.disabled
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] }),
|
|
46
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
47
|
-
/* @__PURE__ */ e.jsx(d, { htmlFor: "state", className: "text-xs", children: "State / Province" }),
|
|
48
|
-
/* @__PURE__ */ e.jsx(
|
|
49
|
-
r,
|
|
50
|
-
{
|
|
51
|
-
id: "state",
|
|
52
|
-
type: "text",
|
|
53
|
-
value: s.state || "",
|
|
54
|
-
onChange: (t) => l("state", t.target.value),
|
|
55
|
-
placeholder: "CA",
|
|
56
|
-
disabled: a || i.disabled
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
62
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
63
|
-
/* @__PURE__ */ e.jsx(d, { htmlFor: "zipCode", className: "text-xs", children: "ZIP / Postal Code" }),
|
|
64
|
-
/* @__PURE__ */ e.jsx(
|
|
65
|
-
r,
|
|
66
|
-
{
|
|
67
|
-
id: "zipCode",
|
|
68
|
-
type: "text",
|
|
69
|
-
value: s.zipCode || "",
|
|
70
|
-
onChange: (t) => l("zipCode", t.target.value),
|
|
71
|
-
placeholder: "94102",
|
|
72
|
-
disabled: a || i.disabled
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
77
|
-
/* @__PURE__ */ e.jsx(d, { htmlFor: "country", className: "text-xs", children: "Country" }),
|
|
78
|
-
/* @__PURE__ */ e.jsx(
|
|
79
|
-
r,
|
|
80
|
-
{
|
|
81
|
-
id: "country",
|
|
82
|
-
type: "text",
|
|
83
|
-
value: s.country || "",
|
|
84
|
-
onChange: (t) => l("country", t.target.value),
|
|
85
|
-
placeholder: "United States",
|
|
86
|
-
disabled: a || i.disabled
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] })
|
|
90
|
-
] })
|
|
91
|
-
] });
|
|
92
|
-
}
|
|
93
|
-
export {
|
|
94
|
-
u as AddressField
|
|
95
|
-
};
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { j as f } from "./index-CTPRjgpn.js";
|
|
2
|
-
import { useRef as Z, useMemo as C, useCallback as d } from "react";
|
|
3
|
-
import { AgGridReact as _ } from "ag-grid-react";
|
|
4
|
-
function G({
|
|
5
|
-
rowData: i = [],
|
|
6
|
-
columnDefs: v = [],
|
|
7
|
-
gridOptions: c = {},
|
|
8
|
-
pagination: A = !1,
|
|
9
|
-
paginationPageSize: y = 10,
|
|
10
|
-
domLayout: R = "normal",
|
|
11
|
-
animateRows: N = !0,
|
|
12
|
-
rowSelection: E,
|
|
13
|
-
theme: O = "quartz",
|
|
14
|
-
height: h = 500,
|
|
15
|
-
className: Q = "",
|
|
16
|
-
editable: g = !1,
|
|
17
|
-
editType: F,
|
|
18
|
-
singleClickEdit: V = !1,
|
|
19
|
-
stopEditingWhenCellsLoseFocus: j = !0,
|
|
20
|
-
exportConfig: l,
|
|
21
|
-
statusBar: x,
|
|
22
|
-
callbacks: n,
|
|
23
|
-
columnConfig: o,
|
|
24
|
-
enableRangeSelection: z = !1,
|
|
25
|
-
enableCharts: H = !1,
|
|
26
|
-
contextMenu: u,
|
|
27
|
-
treeData: p,
|
|
28
|
-
rowGrouping: r,
|
|
29
|
-
excelExport: m
|
|
30
|
-
}) {
|
|
31
|
-
const t = Z(null), b = C(() => {
|
|
32
|
-
if (!x?.enabled) return;
|
|
33
|
-
const e = x.aggregations || ["count", "sum", "avg"], s = [];
|
|
34
|
-
return e.includes("count") && s.push({ statusPanel: "agAggregationComponent", statusPanelParams: { aggFuncs: ["count"] } }), e.includes("sum") && s.push({ statusPanel: "agAggregationComponent", statusPanelParams: { aggFuncs: ["sum"] } }), e.includes("avg") && s.push({ statusPanel: "agAggregationComponent", statusPanelParams: { aggFuncs: ["avg"] } }), e.includes("min") && s.push({ statusPanel: "agAggregationComponent", statusPanelParams: { aggFuncs: ["min"] } }), e.includes("max") && s.push({ statusPanel: "agAggregationComponent", statusPanelParams: { aggFuncs: ["max"] } }), s;
|
|
35
|
-
}, [x]), S = d(() => {
|
|
36
|
-
if (!t.current?.api) return;
|
|
37
|
-
const e = {
|
|
38
|
-
fileName: l?.fileName || "export.csv",
|
|
39
|
-
skipColumnHeaders: l?.skipColumnHeaders || !1,
|
|
40
|
-
allColumns: l?.allColumns || !1,
|
|
41
|
-
onlySelected: l?.onlySelected || !1
|
|
42
|
-
};
|
|
43
|
-
if (t.current.api.exportDataAsCsv(e), n?.onExport) {
|
|
44
|
-
const s = l?.onlySelected ? t.current.api.getSelectedRows() : i;
|
|
45
|
-
n.onExport(s || [], "csv");
|
|
46
|
-
}
|
|
47
|
-
}, [l, n, i]), P = d(() => {
|
|
48
|
-
if (!t.current?.api) return;
|
|
49
|
-
const e = m?.fileName || l?.fileName || "export.csv", s = m?.includeHeaders !== !1, K = {
|
|
50
|
-
fileName: e,
|
|
51
|
-
skipColumnHeaders: !s,
|
|
52
|
-
allColumns: !0,
|
|
53
|
-
onlySelected: m?.onlySelected || !1
|
|
54
|
-
};
|
|
55
|
-
if (t.current.api.exportDataAsCsv(K), n?.onExport) {
|
|
56
|
-
const a = m?.onlySelected ? t.current.api.getSelectedRows() : i;
|
|
57
|
-
n.onExport(a || [], "excel");
|
|
58
|
-
}
|
|
59
|
-
}, [m, l, n, i]), I = d((e) => {
|
|
60
|
-
if (!u?.enabled) return [];
|
|
61
|
-
const s = [];
|
|
62
|
-
return (u.items || ["copy", "copyWithHeaders", "separator", "export"]).forEach((a) => {
|
|
63
|
-
a === "export" ? s.push({
|
|
64
|
-
name: "Export CSV",
|
|
65
|
-
icon: "<span>📥</span>",
|
|
66
|
-
action: () => S()
|
|
67
|
-
}) : a === "export-excel" ? s.push({
|
|
68
|
-
name: "Export Excel (CSV)",
|
|
69
|
-
icon: "<span>📊</span>",
|
|
70
|
-
action: () => P()
|
|
71
|
-
}) : a === "autoSizeAll" ? s.push({
|
|
72
|
-
name: "Auto-size All Columns",
|
|
73
|
-
action: () => {
|
|
74
|
-
t.current?.api && t.current.api.autoSizeAllColumns();
|
|
75
|
-
}
|
|
76
|
-
}) : a === "resetColumns" ? s.push({
|
|
77
|
-
name: "Reset Columns",
|
|
78
|
-
action: () => {
|
|
79
|
-
t.current?.api && t.current.api.resetColumnState();
|
|
80
|
-
}
|
|
81
|
-
}) : s.push(a);
|
|
82
|
-
}), u.customItems && (s.length > 0 && s.push("separator"), u.customItems.forEach((a) => {
|
|
83
|
-
s.push({
|
|
84
|
-
name: a.name,
|
|
85
|
-
disabled: a.disabled,
|
|
86
|
-
action: () => {
|
|
87
|
-
n?.onContextMenuAction && n.onContextMenuAction(a.action, e.node?.data);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
})), s;
|
|
91
|
-
}, [u, S, P, n]), B = d((e) => {
|
|
92
|
-
n?.onCellClicked?.(e);
|
|
93
|
-
}, [n]), W = d((e) => {
|
|
94
|
-
n?.onRowClicked?.(e);
|
|
95
|
-
}, [n]), $ = d((e) => {
|
|
96
|
-
n?.onSelectionChanged?.(e);
|
|
97
|
-
}, [n]), q = d((e) => {
|
|
98
|
-
n?.onCellValueChanged?.(e);
|
|
99
|
-
}, [n]), J = d((e) => {
|
|
100
|
-
t.current = e;
|
|
101
|
-
}, []), T = C(() => v ? v.map((e) => {
|
|
102
|
-
const s = { ...e };
|
|
103
|
-
return g && e.editable !== !1 && (s.editable = !0), o && (o.resizable !== void 0 && e.resizable === void 0 && (s.resizable = o.resizable), o.sortable !== void 0 && e.sortable === void 0 && (s.sortable = o.sortable), o.filterable !== void 0 && e.filter === void 0 && (s.filter = o.filterable)), r?.enabled && r.groupByFields?.includes(e.field || "") && (s.rowGroup = !0, s.hide = !0), r?.aggregations && e.field && r.aggregations[e.field] && (s.aggFunc = r.aggregations[e.field]), s;
|
|
104
|
-
}) : [], [v, g, o, r]), U = C(() => ({
|
|
105
|
-
...c,
|
|
106
|
-
pagination: A,
|
|
107
|
-
paginationPageSize: y,
|
|
108
|
-
domLayout: R,
|
|
109
|
-
animateRows: N,
|
|
110
|
-
rowSelection: E,
|
|
111
|
-
editType: F,
|
|
112
|
-
singleClickEdit: V,
|
|
113
|
-
stopEditingWhenCellsLoseFocus: j,
|
|
114
|
-
statusBar: b ? { statusPanels: b } : void 0,
|
|
115
|
-
enableRangeSelection: z,
|
|
116
|
-
enableCharts: H,
|
|
117
|
-
getContextMenuItems: u?.enabled ? I : void 0,
|
|
118
|
-
// Tree data support
|
|
119
|
-
...p?.enabled ? {
|
|
120
|
-
treeData: !0,
|
|
121
|
-
getDataPath: p.pathField ? (e) => e[p.pathField] : void 0,
|
|
122
|
-
autoGroupColumnDef: {
|
|
123
|
-
headerName: "Hierarchy",
|
|
124
|
-
minWidth: 250,
|
|
125
|
-
cellRendererParams: {
|
|
126
|
-
suppressCount: !1
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
groupDefaultExpanded: p.expandAll ? -1 : p.expandDepth ?? 0
|
|
130
|
-
} : {},
|
|
131
|
-
// Row grouping
|
|
132
|
-
...r?.enabled ? {
|
|
133
|
-
groupDefaultExpanded: r.groupByFields?.length ? 1 : 0,
|
|
134
|
-
autoGroupColumnDef: {
|
|
135
|
-
minWidth: 200,
|
|
136
|
-
cellRendererParams: {
|
|
137
|
-
suppressCount: !r.showRowCount
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
} : {},
|
|
141
|
-
// Default options for better UX
|
|
142
|
-
suppressCellFocus: !g,
|
|
143
|
-
enableCellTextSelection: !0,
|
|
144
|
-
ensureDomOrder: !0,
|
|
145
|
-
// Virtual scrolling optimizations for large datasets
|
|
146
|
-
rowBuffer: c.rowBuffer ?? 10,
|
|
147
|
-
debounceVerticalScrollbar: c.debounceVerticalScrollbar ?? i.length > 1e3,
|
|
148
|
-
// Event handlers
|
|
149
|
-
onCellClicked: B,
|
|
150
|
-
onRowClicked: W,
|
|
151
|
-
onSelectionChanged: $,
|
|
152
|
-
onCellValueChanged: q,
|
|
153
|
-
onGridReady: J
|
|
154
|
-
}), [
|
|
155
|
-
c,
|
|
156
|
-
A,
|
|
157
|
-
y,
|
|
158
|
-
R,
|
|
159
|
-
N,
|
|
160
|
-
E,
|
|
161
|
-
F,
|
|
162
|
-
V,
|
|
163
|
-
j,
|
|
164
|
-
b,
|
|
165
|
-
z,
|
|
166
|
-
H,
|
|
167
|
-
u,
|
|
168
|
-
I,
|
|
169
|
-
p,
|
|
170
|
-
r,
|
|
171
|
-
g,
|
|
172
|
-
i.length,
|
|
173
|
-
B,
|
|
174
|
-
W,
|
|
175
|
-
$,
|
|
176
|
-
q,
|
|
177
|
-
J
|
|
178
|
-
]), X = C(() => ({
|
|
179
|
-
height: typeof h == "number" ? `${h}px` : h,
|
|
180
|
-
width: "100%"
|
|
181
|
-
}), [h]), Y = [
|
|
182
|
-
`ag-theme-${O}`,
|
|
183
|
-
"rounded-xl",
|
|
184
|
-
"border",
|
|
185
|
-
"border-border",
|
|
186
|
-
"overflow-hidden",
|
|
187
|
-
"shadow-lg",
|
|
188
|
-
Q
|
|
189
|
-
].filter(Boolean).join(" ");
|
|
190
|
-
return /* @__PURE__ */ f.jsxs("div", { className: "ag-grid-container", children: [
|
|
191
|
-
(l?.enabled || m?.enabled) && /* @__PURE__ */ f.jsxs("div", { className: "mb-2 flex gap-2", children: [
|
|
192
|
-
l?.enabled && /* @__PURE__ */ f.jsx(
|
|
193
|
-
"button",
|
|
194
|
-
{
|
|
195
|
-
onClick: S,
|
|
196
|
-
className: "px-3 py-1.5 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-md transition-colors",
|
|
197
|
-
children: "Export CSV"
|
|
198
|
-
}
|
|
199
|
-
),
|
|
200
|
-
m?.enabled && /* @__PURE__ */ f.jsx(
|
|
201
|
-
"button",
|
|
202
|
-
{
|
|
203
|
-
onClick: P,
|
|
204
|
-
className: "px-3 py-1.5 text-sm font-medium text-white bg-green-600 hover:bg-green-700 rounded-md transition-colors",
|
|
205
|
-
children: "Export Excel (CSV)"
|
|
206
|
-
}
|
|
207
|
-
)
|
|
208
|
-
] }),
|
|
209
|
-
/* @__PURE__ */ f.jsx(
|
|
210
|
-
"div",
|
|
211
|
-
{
|
|
212
|
-
className: Y,
|
|
213
|
-
style: X,
|
|
214
|
-
children: /* @__PURE__ */ f.jsx(
|
|
215
|
-
_,
|
|
216
|
-
{
|
|
217
|
-
ref: t,
|
|
218
|
-
rowData: i,
|
|
219
|
-
columnDefs: T,
|
|
220
|
-
gridOptions: U
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
] });
|
|
226
|
-
}
|
|
227
|
-
export {
|
|
228
|
-
G as default
|
|
229
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { j as n } from "./index-CTPRjgpn.js";
|
|
2
|
-
function a({ value: t, field: o, ...s }) {
|
|
3
|
-
const e = t != null ? String(t) : "-";
|
|
4
|
-
return /* @__PURE__ */ n.jsx("span", { className: `text-sm font-mono text-gray-700 ${s.className || ""}`, children: e });
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
a as AutoNumberField
|
|
8
|
-
};
|