@kingteza/crud-component 1.0.64 → 1.0.65

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.
@@ -1,338 +1,304 @@
1
- import { jsxs as D, Fragment as J, jsx as m } from "react/jsx-runtime";
2
- import { Modal as St } from "antd";
3
- import { DndContext as Bt } from "@dnd-kit/core";
4
- import { restrictToVerticalAxis as Ct } from "@dnd-kit/modifiers";
1
+ import { jsx as e, jsxs as L, Fragment as ot } from "react/jsx-runtime";
2
+ import { Modal as It } from "antd";
3
+ import { DndContext as St } from "@dnd-kit/core";
4
+ import { restrictToVerticalAxis as Tt } from "@dnd-kit/modifiers";
5
5
  import { CSS as Rt } from "@dnd-kit/utilities";
6
- import { arrayMove as st, SortableContext as vt, verticalListSortingStrategy as xt, useSortable as Nt } from "@dnd-kit/sortable";
7
- import jt from "../../common/button/Button.es.js";
8
- import Dt from "../../common/button/CloneButtonTable.es.js";
9
- import Et from "../../common/button/DeleteButtonTable.es.js";
10
- import { ExportButton as Lt } from "../../common/button/ExportButton.es.js";
11
- import Mt from "../../common/button/HideButtonTable.es.js";
12
- import { RefreshButton as Ot } from "../../common/button/RefreshButton.es.js";
13
- import zt from "../../common/button/UpdateButtonTable.es.js";
14
- import Vt from "../../common/button/ViewButtonTable.es.js";
15
- import _t from "../../common/table/table.es.js";
16
- import ut, { useMemo as I, useState as K, useEffect as mt, useCallback as Q, useContext as $t } from "react";
17
- import { useTranslationLib as qt } from "../../locale/index.es.js";
18
- import Gt from "../CrudSearchComponent.es.js";
19
- import { CrudDecListView as Jt } from "./CrudDecListView.es.js";
20
- import { getRendererValueCrudViewer as et } from "./CrudViewerUtil.es.js";
21
- import { HolderOutlined as Kt } from "@ant-design/icons";
22
- import ct from "../../util/CrudUtil.es.js";
23
- import Qt from "../../common/layout/VerticalSpace.es.js";
24
- const Xt = ut.memo(_t);
25
- function ho({
6
+ import { arrayMove as nt, SortableContext as lt, verticalListSortingStrategy as Bt, useSortable as Dt } from "@dnd-kit/sortable";
7
+ import Nt from "../../common/button/Button.es.js";
8
+ import { RefreshButton as dt } from "../../common/button/RefreshButton.es.js";
9
+ import jt from "../../common/button/ViewButtonTable.es.js";
10
+ import Et from "../actions/index.es.js";
11
+ import Lt from "../../common/table/table.es.js";
12
+ import mt, { useMemo as h, useState as V, useEffect as rt, useCallback as et, useContext as Mt } from "react";
13
+ import { useTranslationLib as Ot } from "../../locale/index.es.js";
14
+ import zt from "../CrudSearchComponent.es.js";
15
+ import { CrudDecListView as Vt } from "./CrudDecListView.es.js";
16
+ import { getRendererValueCrudViewer as ct } from "./CrudViewerUtil.es.js";
17
+ import { HolderOutlined as kt } from "@ant-design/icons";
18
+ import st from "../../util/CrudUtil.es.js";
19
+ import vt from "../../common/layout/VerticalSpace.es.js";
20
+ const At = mt.memo(Lt);
21
+ function ro({
26
22
  idField: o = "id",
27
- loadingData: S,
28
- fields: f,
29
- isDeleting: x,
30
- isHiding: B,
23
+ loadingData: C,
24
+ fields: u,
25
+ isDeleting: D,
26
+ isHiding: R,
31
27
  viewable: c = !1,
32
- paginateProps: y,
33
- onDelete: h,
28
+ paginateProps: p,
29
+ onDelete: x,
34
30
  onHide: N,
35
- onUpdate: l,
36
- data: C = [],
37
- extraAction: R,
38
- onClickUpdate: p,
39
- minusHeight: O,
40
- scroll: X,
41
- onClickClone: E,
42
- className: Y,
43
- expandable: Z,
44
- size: k,
45
- bordered: A,
46
- descListColumn: it,
47
- extraView: z,
48
- decListLayout: yt,
49
- scrollToTop: kt,
50
- onClickRefresh: P,
51
- closeViewOnClickUpdate: W,
52
- onExport: V,
53
- confirmHiding: H,
54
- confirmDeleting: w,
55
- rowClassName: U,
56
- actionWidth: d = 190,
57
- draggable: r,
58
- ...ht
31
+ onUpdate: I,
32
+ data: S = [],
33
+ extraAction: d,
34
+ onClickUpdate: j,
35
+ minusHeight: M,
36
+ scroll: k,
37
+ onClickClone: v,
38
+ className: A,
39
+ expandable: _,
40
+ size: $,
41
+ bordered: q,
42
+ descListColumn: ft,
43
+ extraView: O,
44
+ decListLayout: it,
45
+ scrollToTop: qt,
46
+ onClickRefresh: G,
47
+ closeViewOnClickUpdate: J,
48
+ onExport: K,
49
+ confirmHiding: Q,
50
+ confirmDeleting: X,
51
+ rowClassName: Y,
52
+ actionWidth: Z = 190,
53
+ draggable: t,
54
+ ...pt
59
55
  }) {
60
- const { t: F } = qt(), a = I(
61
- () => f.map(({ hideInTable: t, hidden: n, width: e, label: s, halign: v, ...j }) => {
62
- const M = ct.getRealName(j.name);
56
+ const { t: P } = Ot(), W = h(
57
+ () => u.map(({ hideInTable: n, hidden: r, width: s, label: f, halign: T, ...B }) => {
58
+ const E = st.getRealName(B.name);
63
59
  return {
64
- title: s,
65
- width: e,
66
- key: M,
67
- dataIndex: M,
68
- hidden: t || n,
69
- align: v ?? (j.type === "number" ? "right" : void 0),
70
- render: et(j)
60
+ title: f,
61
+ width: s,
62
+ key: E,
63
+ dataIndex: E,
64
+ hidden: n || r,
65
+ align: T ?? (B.type === "number" ? "right" : void 0),
66
+ render: ct(B)
71
67
  };
72
68
  }),
73
- [f]
74
- ), [u, L] = K(), [_, $] = K(), [T, b] = K([]);
75
- mt(() => {
76
- C && b(C);
77
- }, [C]), mt(() => {
78
- C && L((t) => {
79
- if (t)
80
- return C.find((n) => n[o] === t[o]);
69
+ [u]
70
+ ), [m, l] = V(), [H, U] = V(), [y, w] = V([]);
71
+ rt(() => {
72
+ S && w(S);
73
+ }, [S]), rt(() => {
74
+ S && l((n) => {
75
+ if (n)
76
+ return S.find((r) => r[o] === n[o]);
81
77
  });
82
- }, [C, o, u]);
83
- const q = Q(
84
- (t) => {
85
- var e;
86
- const n = R == null ? void 0 : R(t);
87
- return (Array.isArray(n) ? (e = n == null ? void 0 : n.filter(Boolean)) != null && e.length : n) || l || p || E || h ? /* @__PURE__ */ D(J, { children: [
88
- n,
89
- (l || p) && /* @__PURE__ */ m(
90
- zt,
91
- {
92
- value: t,
93
- onClick: (s) => {
94
- $(s[o]), p == null || p(t), W && L(void 0);
95
- }
96
- }
97
- ),
98
- E && /* @__PURE__ */ m(Dt, { value: t, onClick: (s) => E(s) }),
99
- V && /* @__PURE__ */ m(
100
- Lt,
101
- {
102
- value: t,
103
- onClick: async (s) => await V(s)
104
- }
105
- ),
106
- N && /* @__PURE__ */ m(
107
- Mt,
108
- {
109
- value: t,
110
- disabled: B,
111
- shouldConfirm: H,
112
- loading: B && t[o] === _,
113
- onClick: async (s) => {
114
- $(s[o]), await N({ [o]: s[o] });
115
- }
116
- }
117
- ),
118
- h && /* @__PURE__ */ m(
119
- Et,
120
- {
121
- value: t,
122
- disabled: x,
123
- shouldConfirm: w,
124
- loading: x && t[o] === _,
125
- onClick: async (s) => {
126
- $(s[o]), await h({ [o]: s[o] });
127
- }
128
- }
129
- )
130
- ] }) : void 0;
131
- },
132
- [
133
- W,
134
- w,
135
- H,
136
- R,
137
- o,
138
- x,
139
- B,
140
- E,
141
- p,
142
- h,
143
- V,
144
- N,
145
- l,
146
- _
147
- ]
148
- ), g = Q(
149
- (t) => {
150
- var s;
151
- const { active: n, over: e } = t;
152
- if (r != null && r.onDragEnd && (r == null || r.onDragEnd(t)), n.id !== (e == null ? void 0 : e.id)) {
153
- const v = T.findIndex(
154
- (i) => i[o] === n.id
155
- ), j = T.findIndex(
156
- (i) => i[o] === (e == null ? void 0 : e.id)
157
- ), M = st(T, v, j);
158
- b((i) => {
159
- const lt = i.findIndex(
160
- (G) => G[o] === (n == null ? void 0 : n.id)
161
- ), It = i.findIndex(
162
- (G) => G[o] === (e == null ? void 0 : e.id)
78
+ }, [S, o, m]);
79
+ const F = et(
80
+ (n) => {
81
+ var f;
82
+ const { active: r, over: s } = n;
83
+ if (t != null && t.onDragEnd && (t == null || t.onDragEnd(n)), r.id !== (s == null ? void 0 : s.id)) {
84
+ const T = y.findIndex(
85
+ (i) => i[o] === r.id
86
+ ), B = y.findIndex(
87
+ (i) => i[o] === (s == null ? void 0 : s.id)
88
+ ), E = nt(y, T, B);
89
+ w((i) => {
90
+ const Ct = i.findIndex(
91
+ (z) => z[o] === (r == null ? void 0 : r.id)
92
+ ), xt = i.findIndex(
93
+ (z) => z[o] === (s == null ? void 0 : s.id)
163
94
  );
164
- return st(i, lt, It);
165
- }), (s = r == null ? void 0 : r.onDrag) == null || s.call(r, {
166
- newOrder: M.map((i) => i[o])
95
+ return nt(i, Ct, xt);
96
+ }), (f = t == null ? void 0 : t.onDrag) == null || f.call(t, {
97
+ newOrder: E.map((i) => i[o])
167
98
  });
168
99
  }
169
100
  },
170
- [T, o, r]
171
- ), pt = I(() => {
172
- let t = typeof c == "string" ? u == null ? void 0 : u[c] : void 0;
173
- if (typeof t == "object") {
174
- const n = f.find((e) => ct.getRealName(e.name) === c);
175
- t = et(n)(
176
- t,
177
- u,
101
+ [y, o, t]
102
+ ), yt = h(() => {
103
+ let n = typeof c == "string" ? m == null ? void 0 : m[c] : void 0;
104
+ if (typeof n == "object") {
105
+ const r = u.find((s) => st.getRealName(s.name) === c);
106
+ n = ct(r)(
107
+ n,
108
+ m,
178
109
  0
179
110
  );
180
111
  }
181
- return t;
182
- }, [c, u, f]), tt = I(
112
+ return n;
113
+ }, [c, m, u]), a = h(
183
114
  () => ({
184
- rowClassName: U,
185
- className: Y,
186
- scroll: X ?? (O ? { y: `calc(100vh - ${O})` } : void 0),
115
+ rowClassName: Y,
116
+ className: A,
117
+ scroll: k ?? (M ? { y: `calc(100vh - ${M})` } : void 0),
187
118
  id: "crud-table",
188
- bordered: A,
189
- size: k,
190
- expandable: Z
119
+ bordered: q,
120
+ size: $,
121
+ expandable: _
191
122
  }),
192
- [U, Y, X, O, A, k, Z]
193
- ), ot = I(
194
- () => y ? {
195
- total: y.count,
196
- onChange: y.setPage,
197
- current: y.page,
198
- pageSize: y.pageSize
123
+ [Y, A, k, M, q, $, _]
124
+ ), b = h(
125
+ () => p ? {
126
+ total: p.count,
127
+ onChange: p.setPage,
128
+ current: p.page,
129
+ pageSize: p.pageSize
199
130
  } : void 0,
200
- [y]
201
- ), nt = I(() => {
202
- const t = l || p || h || R || c, n = [];
203
- return r && n.push({
131
+ [p]
132
+ ), g = h(() => {
133
+ const n = I || j || x || d || c, r = [];
134
+ return t && r.push({
204
135
  key: "key",
205
136
  align: "center",
206
137
  width: 5,
207
- title: r == null ? void 0 : r.columnLabel,
208
- render: () => /* @__PURE__ */ m(Yt, { tooltip: r == null ? void 0 : r.tooltip })
209
- }), n.push(...a), t && t && n.push({
210
- title: F("str.action"),
138
+ title: t == null ? void 0 : t.columnLabel,
139
+ render: () => /* @__PURE__ */ e(_t, { tooltip: t == null ? void 0 : t.tooltip })
140
+ }), r.push(...W), n && n && r.push({
141
+ title: P("str.action"),
211
142
  fixed: "right",
212
- width: d,
213
- render: (e, s) => /* @__PURE__ */ D(J, { children: [
214
- c && /* @__PURE__ */ m(
215
- Vt,
143
+ width: Z,
144
+ render: (s, f) => /* @__PURE__ */ L(ot, { children: [
145
+ c && /* @__PURE__ */ e(
146
+ jt,
216
147
  {
217
- value: s,
148
+ value: f,
218
149
  onClick: typeof c == "object" ? () => {
219
- var v;
220
- return (v = c.onClick) == null ? void 0 : v.call(c, s);
221
- } : L
150
+ var T;
151
+ return (T = c.onClick) == null ? void 0 : T.call(c, f);
152
+ } : l
222
153
  }
223
154
  ),
224
- q(s)
155
+ /* @__PURE__ */ e(
156
+ Et,
157
+ {
158
+ data: f,
159
+ idField: o,
160
+ extraAction: d,
161
+ onUpdate: I,
162
+ onClickUpdate: j,
163
+ onClickClone: v,
164
+ onDelete: x,
165
+ onHide: N,
166
+ onExport: K,
167
+ isHiding: R,
168
+ isDeleting: D,
169
+ confirmHiding: Q,
170
+ confirmDeleting: X,
171
+ closeViewOnClickUpdate: J,
172
+ recentUpdateOrDeleteId: H,
173
+ setRecentUpdateOrDeleteId: U,
174
+ setOpenView: l
175
+ }
176
+ )
225
177
  ] })
226
- }), n;
178
+ }), r;
227
179
  }, [
228
- a,
229
- l,
230
- p,
231
- h,
232
- R,
233
- c,
234
- F,
180
+ W,
181
+ I,
182
+ j,
183
+ x,
235
184
  d,
236
- q
237
- ]), rt = I(
238
- () => T.map((t) => t[o]),
239
- [T, o]
240
- ), Tt = Q(() => {
241
- const t = /* @__PURE__ */ m(
242
- Xt,
185
+ c,
186
+ P,
187
+ Z
188
+ ]), tt = h(
189
+ () => y.map((n) => n[o]),
190
+ [y, o]
191
+ ), ht = et(() => {
192
+ const n = /* @__PURE__ */ e(
193
+ At,
243
194
  {
244
- ...tt,
245
- dataSource: T,
246
- loading: S,
247
- components: r ? { body: { row: Zt } } : void 0,
248
- pagination: ot,
249
- columns: nt
195
+ ...a,
196
+ dataSource: y,
197
+ loading: C,
198
+ components: t ? { body: { row: $t } } : void 0,
199
+ pagination: b,
200
+ columns: g
250
201
  }
251
202
  );
252
- return r ? /* @__PURE__ */ m(Bt, { modifiers: [Ct], onDragEnd: g, children: /* @__PURE__ */ m(
253
- vt,
203
+ return t ? /* @__PURE__ */ e(St, { modifiers: [Tt], onDragEnd: F, children: /* @__PURE__ */ e(
204
+ lt,
254
205
  {
255
- items: rt,
256
- strategy: xt,
257
- children: t
206
+ items: tt,
207
+ strategy: Bt,
208
+ children: n
258
209
  }
259
- ) }) : t;
210
+ ) }) : n;
260
211
  }, [
212
+ a,
213
+ y,
214
+ C,
215
+ b,
216
+ g,
217
+ t,
261
218
  tt,
262
- T,
263
- S,
264
- ot,
265
- nt,
266
- r,
267
- rt,
268
- g
219
+ F
269
220
  ]);
270
- return /* @__PURE__ */ D("div", { children: [
271
- typeof c == "boolean" || typeof c == "string" && /* @__PURE__ */ m(
272
- St,
221
+ return /* @__PURE__ */ L("div", { children: [
222
+ typeof c == "boolean" || typeof c == "string" && /* @__PURE__ */ e(
223
+ It,
273
224
  {
274
225
  width: "100%",
275
- open: !!u,
276
- title: pt ?? /* @__PURE__ */ m("div", { children: " " }),
277
- footer: /* @__PURE__ */ m(J, {}),
226
+ open: !!m,
227
+ title: yt ?? /* @__PURE__ */ e("div", { children: " " }),
228
+ footer: /* @__PURE__ */ e(ot, {}),
278
229
  closable: !0,
279
- onCancel: () => L(void 0),
280
- children: !!u && /* @__PURE__ */ D("div", { children: [
281
- /* @__PURE__ */ m(
282
- Jt,
230
+ onCancel: () => l(void 0),
231
+ children: !!m && /* @__PURE__ */ L("div", { children: [
232
+ /* @__PURE__ */ e(
233
+ Vt,
283
234
  {
284
- layout: yt,
285
- descListColumn: it,
286
- data: u,
287
- fields: f,
288
- action: q(u)
235
+ layout: it,
236
+ descListColumn: ft,
237
+ data: m,
238
+ fields: u,
239
+ idField: o,
240
+ extraAction: d,
241
+ onUpdate: I,
242
+ onClickUpdate: j,
243
+ onClickClone: v,
244
+ onDelete: x,
245
+ onHide: N,
246
+ onExport: K,
247
+ isHiding: R,
248
+ isDeleting: D,
249
+ confirmHiding: Q,
250
+ confirmDeleting: X,
251
+ closeViewOnClickUpdate: J,
252
+ recentUpdateOrDeleteId: H,
253
+ setRecentUpdateOrDeleteId: U,
254
+ setOpenView: l
289
255
  }
290
256
  ),
291
- z == null ? void 0 : z(u)
292
- ] }, u == null ? void 0 : u[o])
257
+ O == null ? void 0 : O(m)
258
+ ] }, m == null ? void 0 : m[o])
293
259
  }
294
260
  ),
295
- /* @__PURE__ */ m(Gt, { fields: f, ...ht }),
296
- /* @__PURE__ */ D(Qt, { children: [
297
- !!P && /* @__PURE__ */ m(Ot, { onClick: P }),
298
- Tt()
261
+ /* @__PURE__ */ e(zt, { fields: u, ...pt }),
262
+ /* @__PURE__ */ L(vt, { children: [
263
+ !!G && /* @__PURE__ */ e(dt, { onClick: G }),
264
+ ht()
299
265
  ] })
300
266
  ] });
301
267
  }
302
- const ft = ut.createContext({}), Yt = ({ tooltip: o }) => {
303
- const { setActivatorNodeRef: S, listeners: f } = $t(ft);
304
- return /* @__PURE__ */ m(
305
- jt,
268
+ const ut = mt.createContext({}), _t = ({ tooltip: o }) => {
269
+ const { setActivatorNodeRef: C, listeners: u } = Mt(ut);
270
+ return /* @__PURE__ */ e(
271
+ Nt,
306
272
  {
307
273
  type: "text",
308
274
  size: "small",
309
275
  tooltip: o,
310
- icon: /* @__PURE__ */ m(Kt, {}),
276
+ icon: /* @__PURE__ */ e(kt, {}),
311
277
  style: { cursor: "move", border: "none" },
312
- ref: S,
313
- ...f
278
+ ref: C,
279
+ ...u
314
280
  }
315
281
  );
316
- }, Zt = (o) => {
282
+ }, $t = (o) => {
317
283
  const {
318
- attributes: S,
319
- listeners: f,
320
- setNodeRef: x,
321
- setActivatorNodeRef: B,
284
+ attributes: C,
285
+ listeners: u,
286
+ setNodeRef: D,
287
+ setActivatorNodeRef: R,
322
288
  transform: c,
323
- transition: y,
324
- isDragging: h
325
- } = Nt({ id: o["data-row-key"] }), N = {
289
+ transition: p,
290
+ isDragging: x
291
+ } = Dt({ id: o["data-row-key"] }), N = {
326
292
  ...o.style,
327
293
  transform: Rt.Translate.toString(c),
328
- transition: y,
329
- ...h ? { position: "relative", zIndex: 9999 } : {}
330
- }, l = I(
331
- () => ({ setActivatorNodeRef: B, listeners: f }),
332
- [B, f]
294
+ transition: p,
295
+ ...x ? { position: "relative", zIndex: 9999 } : {}
296
+ }, I = h(
297
+ () => ({ setActivatorNodeRef: R, listeners: u }),
298
+ [R, u]
333
299
  );
334
- return /* @__PURE__ */ m(ft.Provider, { value: l, children: /* @__PURE__ */ m("tr", { ...o, ref: x, style: N, ...S }) });
300
+ return /* @__PURE__ */ e(ut.Provider, { value: I, children: /* @__PURE__ */ e("tr", { ...o, ref: D, style: N, ...C }) });
335
301
  };
336
302
  export {
337
- ho as default
303
+ ro as default
338
304
  };
package/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),t=require("./crud/CrudComponent.cjs.js"),r=require("./crud/CrudField.cjs.js"),C=require("./crud/CrudFormWizard.cjs.js"),i=require("./crud/CrudReportComponent.cjs.js"),n=require("./crud/CrudSearchComponent.cjs.js"),e=require("./crud/ImageCrudField.cjs.js"),o=require("./crud/FileCrudField.cjs.js"),a=require("./crud/import/CrudImportComponent.cjs.js"),s=require("./crud/import/CrudImportButton.cjs.js"),m=require("./crud/view/CrudViewer.cjs.js"),d=require("./crud/CrudForm.cjs.js"),F=require("./crud/view/CrudDecListView.cjs.js"),p=require("./crud/view/CrudViewerUtil.cjs.js");exports.TRANSLATION_NAMESPACE=l.TRANSLATION_NAMESPACE;exports.setupI18n=u.setupI18n;exports.updateTranslations=u.updateTranslations;exports.CrudComponent=t;exports.ColorCrudFieldComponent=r.ColorCrudFieldComponent;exports.CrudField=r.default;exports.SelectCrudFieldComponent=r.SelectCrudFieldComponent;exports.CrudFormWizard=C;exports.CrudReportComponent=i;exports.CrudSearchComponent=n;exports.FileDownloadProvider=e.FileDownloadProvider;exports.FileUploadProvider=e.FileUploadProvider;exports.ImageCellValue=e.ImageCellValue;exports.ImageCrudCellValue=e.ImageCrudCellValue;exports.ImageCrudField=e.default;exports.FileCellValue=o.FileCellValue;exports.FileCrudCellValue=o.FileCrudCellValue;exports.FileCrudField=o.default;exports.CrudImportComponent=a;exports.CrudImportButton=s;exports.CrudViewer=m;exports.CrudForm=d.CrudForm;exports.CrudFormFields=d.CrudFormFields;exports.CrudDecListView=F.CrudDecListView;exports.getRendererValueCrudViewer=p.getRendererValueCrudViewer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),l=require("./crud/CrudComponent.cjs.js"),r=require("./crud/CrudField.cjs.js"),t=require("./crud/CrudFormWizard.cjs.js"),C=require("./crud/CrudReportComponent.cjs.js"),n=require("./crud/CrudSearchComponent.cjs.js"),e=require("./crud/ImageCrudField.cjs.js"),o=require("./crud/FileCrudField.cjs.js"),a=require("./crud/import/CrudImportComponent.cjs.js"),s=require("./crud/import/CrudImportButton.cjs.js"),m=require("./crud/actions/index.cjs.js"),F=require("./crud/view/CrudViewer.cjs.js"),d=require("./crud/CrudForm.cjs.js"),c=require("./crud/modal/index.cjs.js"),p=require("./crud/view/CrudDecListView.cjs.js"),V=require("./crud/view/CrudViewerUtil.cjs.js");exports.TRANSLATION_NAMESPACE=i.TRANSLATION_NAMESPACE;exports.setupI18n=u.setupI18n;exports.updateTranslations=u.updateTranslations;exports.CrudComponent=l;exports.ColorCrudFieldComponent=r.ColorCrudFieldComponent;exports.CrudField=r.default;exports.SelectCrudFieldComponent=r.SelectCrudFieldComponent;exports.CrudFormWizard=t;exports.CrudReportComponent=C;exports.CrudSearchComponent=n;exports.FileDownloadProvider=e.FileDownloadProvider;exports.FileUploadProvider=e.FileUploadProvider;exports.ImageCellValue=e.ImageCellValue;exports.ImageCrudCellValue=e.ImageCrudCellValue;exports.ImageCrudField=e.default;exports.FileCellValue=o.FileCellValue;exports.FileCrudCellValue=o.FileCrudCellValue;exports.FileCrudField=o.default;exports.CrudImportComponent=a;exports.CrudImportButton=s;exports.CrudActions=m;exports.CrudViewer=F;exports.CrudForm=d.CrudForm;exports.CrudFormFields=d.CrudFormFields;exports.CrudModal=c;exports.CrudDecListView=p.CrudDecListView;exports.getRendererValueCrudViewer=V.getRendererValueCrudViewer;
package/index.es.js CHANGED
@@ -1,42 +1,46 @@
1
1
  import { TRANSLATION_NAMESPACE as o } from "./locale/hooks/translation-constants.es.js";
2
2
  import { setupI18n as d, updateTranslations as l } from "./locale/index.es.js";
3
- import { default as a } from "./crud/CrudComponent.es.js";
4
- import { ColorCrudFieldComponent as m, default as p, SelectCrudFieldComponent as f } from "./crud/CrudField.es.js";
3
+ import { default as u } from "./crud/CrudComponent.es.js";
4
+ import { ColorCrudFieldComponent as m, default as f, SelectCrudFieldComponent as p } from "./crud/CrudField.es.js";
5
5
  import { default as n } from "./crud/CrudFormWizard.es.js";
6
6
  import { default as x } from "./crud/CrudReportComponent.es.js";
7
7
  import { default as V } from "./crud/CrudSearchComponent.es.js";
8
- import { FileDownloadProvider as g, FileUploadProvider as w, ImageCellValue as A, ImageCrudCellValue as S, default as c } from "./crud/ImageCrudField.es.js";
8
+ import { FileDownloadProvider as A, FileUploadProvider as c, ImageCellValue as g, ImageCrudCellValue as w, default as S } from "./crud/ImageCrudField.es.js";
9
9
  import { FileCellValue as P, FileCrudCellValue as R, default as T } from "./crud/FileCrudField.es.js";
10
10
  import { default as D } from "./crud/import/CrudImportComponent.es.js";
11
11
  import { default as L } from "./crud/import/CrudImportButton.es.js";
12
- import { default as z } from "./crud/view/CrudViewer.es.js";
13
- import { CrudForm as M, CrudFormFields as O } from "./crud/CrudForm.es.js";
14
- import { CrudDecListView as W } from "./crud/view/CrudDecListView.es.js";
15
- import { getRendererValueCrudViewer as b } from "./crud/view/CrudViewerUtil.es.js";
12
+ import { default as h } from "./crud/actions/index.es.js";
13
+ import { default as B } from "./crud/view/CrudViewer.es.js";
14
+ import { CrudForm as U, CrudFormFields as W } from "./crud/CrudForm.es.js";
15
+ import { default as b } from "./crud/modal/index.es.js";
16
+ import { CrudDecListView as k } from "./crud/view/CrudDecListView.es.js";
17
+ import { getRendererValueCrudViewer as y } from "./crud/view/CrudViewerUtil.es.js";
16
18
  export {
17
19
  m as ColorCrudFieldComponent,
18
- a as CrudComponent,
19
- W as CrudDecListView,
20
- p as CrudField,
21
- M as CrudForm,
22
- O as CrudFormFields,
20
+ h as CrudActions,
21
+ u as CrudComponent,
22
+ k as CrudDecListView,
23
+ f as CrudField,
24
+ U as CrudForm,
25
+ W as CrudFormFields,
23
26
  n as CrudFormWizard,
24
27
  L as CrudImportButton,
25
28
  D as CrudImportComponent,
29
+ b as CrudModal,
26
30
  x as CrudReportComponent,
27
31
  V as CrudSearchComponent,
28
- z as CrudViewer,
32
+ B as CrudViewer,
29
33
  P as FileCellValue,
30
34
  R as FileCrudCellValue,
31
35
  T as FileCrudField,
32
- g as FileDownloadProvider,
33
- w as FileUploadProvider,
34
- A as ImageCellValue,
35
- S as ImageCrudCellValue,
36
- c as ImageCrudField,
37
- f as SelectCrudFieldComponent,
36
+ A as FileDownloadProvider,
37
+ c as FileUploadProvider,
38
+ g as ImageCellValue,
39
+ w as ImageCrudCellValue,
40
+ S as ImageCrudField,
41
+ p as SelectCrudFieldComponent,
38
42
  o as TRANSLATION_NAMESPACE,
39
- b as getRendererValueCrudViewer,
43
+ y as getRendererValueCrudViewer,
40
44
  d as setupI18n,
41
45
  l as updateTranslations
42
46
  };