@kingteza/crud-component 1.0.14 → 1.0.16

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 (105) hide show
  1. package/dist/components/common/DatePicker/DatePicker.cjs +1 -1
  2. package/dist/components/common/DatePicker/DatePicker.js +42 -42
  3. package/dist/components/common/DatePicker/TimePicker.cjs +1 -1
  4. package/dist/components/common/DatePicker/TimePicker.js +39 -39
  5. package/dist/components/common/appearance/Hider.cjs +1 -1
  6. package/dist/components/common/appearance/Hider.js +3 -3
  7. package/dist/components/common/button/Button.cjs +1 -1
  8. package/dist/components/common/button/Button.js +19 -19
  9. package/dist/components/common/button/CloneButtonTable.cjs +1 -1
  10. package/dist/components/common/button/CloneButtonTable.js +11 -11
  11. package/dist/components/common/button/DeleteButtonTable.cjs +1 -1
  12. package/dist/components/common/button/DeleteButtonTable.js +29 -29
  13. package/dist/components/common/button/ExportButton.cjs +1 -1
  14. package/dist/components/common/button/ExportButton.js +17 -17
  15. package/dist/components/common/button/HideButtonTable.cjs +1 -1
  16. package/dist/components/common/button/HideButtonTable.js +35 -35
  17. package/dist/components/common/button/ImportButton.cjs +1 -1
  18. package/dist/components/common/button/ImportButton.js +28 -28
  19. package/dist/components/common/button/NewButton.cjs +1 -1
  20. package/dist/components/common/button/NewButton.js +14 -14
  21. package/dist/components/common/button/PrintButton.cjs +1 -1
  22. package/dist/components/common/button/PrintButton.js +14 -14
  23. package/dist/components/common/button/RefreshButton.cjs +1 -1
  24. package/dist/components/common/button/RefreshButton.js +16 -16
  25. package/dist/components/common/button/UnHideButton.cjs +1 -1
  26. package/dist/components/common/button/UnHideButton.js +37 -37
  27. package/dist/components/common/button/UpdateButtonTable.cjs +1 -1
  28. package/dist/components/common/button/UpdateButtonTable.js +11 -11
  29. package/dist/components/common/button/ViewButtonTable.cjs +1 -1
  30. package/dist/components/common/button/ViewButtonTable.js +10 -10
  31. package/dist/components/common/check-box/CheckBox.cjs +1 -1
  32. package/dist/components/common/check-box/CheckBox.js +20 -20
  33. package/dist/components/common/description/DescList.cjs +1 -1
  34. package/dist/components/common/description/DescList.js +9 -9
  35. package/dist/components/common/layout/VerticalSpace.cjs +1 -1
  36. package/dist/components/common/layout/VerticalSpace.js +3 -3
  37. package/dist/components/common/loading/LoadingIndicator.cjs +1 -1
  38. package/dist/components/common/loading/LoadingIndicator.js +12 -12
  39. package/dist/components/common/picker/ImagePicker.cjs +1 -1
  40. package/dist/components/common/picker/ImagePicker.js +173 -176
  41. package/dist/components/common/radio/RadioGroupComponent.cjs +1 -1
  42. package/dist/components/common/radio/RadioGroupComponent.js +6 -6
  43. package/dist/components/common/report/SelectFieldInReport.cjs +1 -1
  44. package/dist/components/common/report/SelectFieldInReport.js +11 -11
  45. package/dist/components/common/select/CustomSelectOption.cjs +1 -1
  46. package/dist/components/common/select/CustomSelectOption.js +7 -7
  47. package/dist/components/common/select/SelectComponent.cjs +1 -1
  48. package/dist/components/common/select/SelectComponent.js +36 -36
  49. package/dist/components/common/show-more/index.cjs +1 -1
  50. package/dist/components/common/show-more/index.js +5 -5
  51. package/dist/components/common/tab/TabViewWithRoute.cjs +1 -1
  52. package/dist/components/common/tab/TabViewWithRoute.js +23 -22
  53. package/dist/components/common/table/table.cjs +1 -1
  54. package/dist/components/common/table/table.js +12 -12
  55. package/dist/components/common/tag/StatusTag.cjs +1 -1
  56. package/dist/components/common/tag/StatusTag.js +13 -13
  57. package/dist/components/common/text-field/NumberField.cjs +1 -1
  58. package/dist/components/common/text-field/NumberField.js +43 -43
  59. package/dist/components/common/text-field/PhoneNumberField.cjs +1 -1
  60. package/dist/components/common/text-field/PhoneNumberField.js +4 -4
  61. package/dist/components/common/text-field/TextArea.cjs +1 -1
  62. package/dist/components/common/text-field/TextArea.js +20 -20
  63. package/dist/components/common/text-field/TextField.cjs +1 -1
  64. package/dist/components/common/text-field/TextField.js +47 -47
  65. package/dist/components/common/tooltip/TooltipComponent.cjs +1 -1
  66. package/dist/components/common/tooltip/TooltipComponent.js +3 -3
  67. package/dist/components/common/wizard/WizardResult.cjs +1 -1
  68. package/dist/components/common/wizard/WizardResult.js +37 -38
  69. package/dist/components/common/wizard/WizardViewForm.cjs +1 -1
  70. package/dist/components/common/wizard/WizardViewForm.js +43 -43
  71. package/dist/components/crud/CrudComponent.cjs +1 -1
  72. package/dist/components/crud/CrudComponent.js +130 -130
  73. package/dist/components/crud/CrudField.cjs +1 -1
  74. package/dist/components/crud/CrudField.js +217 -217
  75. package/dist/components/crud/CrudForm.cjs +1 -1
  76. package/dist/components/crud/CrudForm.js +55 -55
  77. package/dist/components/crud/CrudFormWizard.cjs +1 -1
  78. package/dist/components/crud/CrudFormWizard.js +82 -84
  79. package/dist/components/crud/CrudReportComponent.cjs +3 -3
  80. package/dist/components/crud/CrudReportComponent.js +123 -123
  81. package/dist/components/crud/CrudSearchComponent.cjs +1 -1
  82. package/dist/components/crud/CrudSearchComponent.js +43 -43
  83. package/dist/components/crud/FileCrudField.cjs +1 -1
  84. package/dist/components/crud/FileCrudField.js +118 -125
  85. package/dist/components/crud/ImageCrudField.cjs +1 -1
  86. package/dist/components/crud/ImageCrudField.js +56 -56
  87. package/dist/components/crud/import/CrudImportButton.cjs +1 -1
  88. package/dist/components/crud/import/CrudImportButton.js +18 -18
  89. package/dist/components/crud/import/CrudImportComponent.cjs +2 -2
  90. package/dist/components/crud/import/CrudImportComponent.js +108 -109
  91. package/dist/components/crud/view/CrudDecListView.cjs +1 -1
  92. package/dist/components/crud/view/CrudDecListView.js +22 -22
  93. package/dist/components/crud/view/CrudViewer.cjs +1 -1
  94. package/dist/components/crud/view/CrudViewer.js +152 -152
  95. package/dist/components/crud/view/CrudViewerUtil.cjs +1 -1
  96. package/dist/components/crud/view/CrudViewerUtil.js +33 -34
  97. package/dist/locale/index.cjs +1 -1
  98. package/dist/locale/index.js +2 -2
  99. package/dist/util/DateUtil.cjs +1 -1
  100. package/dist/util/DateUtil.js +4 -4
  101. package/dist/util/ImageUtil.cjs +1 -1
  102. package/dist/util/ImageUtil.js +1 -1
  103. package/dist/util/ValidationUtil.cjs +1 -1
  104. package/dist/util/ValidationUtil.js +1 -1
  105. package/package.json +1 -1
@@ -1,352 +1,352 @@
1
- import { j as t } from "../../_virtual/jsx-runtime.js";
2
- import { Form as k, Radio as H, Select as O, ColorPicker as _ } from "antd";
3
- import { useEffect as R, useState as U, useCallback as G } from "react";
4
- import $ from "../../_virtual/main.js";
5
- import { TRANSLATION_NAMESPACE as z } from "../../locale/hooks/translation-constants.js";
6
- import J from "./FileCrudField.js";
7
- import K from "./ImageCrudField.js";
8
- import Q from "../common/DatePicker/DatePicker.js";
9
- import X from "../common/DatePicker/TimePicker.js";
10
- import Y from "../common/check-box/CheckBox.js";
11
- import q from "../common/select/SelectComponent.js";
12
- import Z from "../common/text-field/NumberField.js";
13
- import V from "../common/text-field/TextField.js";
14
- import ee from "../common/text-field/TextArea.js";
15
- import te from "../common/tooltip/TooltipComponent.js";
16
- import { useTranslation as re } from "../../node_modules/react-i18next/dist/es/useTranslation.js";
17
- function ve(v) {
1
+ import { jsx as a, Fragment as O, jsxs as U } from "react/jsx-runtime";
2
+ import { Form as S, Radio as q, Select as A, ColorPicker as $ } from "antd";
3
+ import { useEffect as P, useState as D, useCallback as z } from "react";
4
+ import J from "react-highlight-words";
5
+ import { useTranslation as K } from "react-i18next";
6
+ import { TRANSLATION_NAMESPACE as Q } from "../../locale/hooks/translation-constants.js";
7
+ import X from "./FileCrudField.js";
8
+ import Y from "./ImageCrudField.js";
9
+ import Z from "../common/DatePicker/DatePicker.js";
10
+ import V from "../common/DatePicker/TimePicker.js";
11
+ import ee from "../common/check-box/CheckBox.js";
12
+ import M from "../common/select/SelectComponent.js";
13
+ import re from "../common/text-field/NumberField.js";
14
+ import te from "../common/text-field/TextField.js";
15
+ import oe from "../common/text-field/TextArea.js";
16
+ import ae from "../common/tooltip/TooltipComponent.js";
17
+ function Ne(x) {
18
18
  const {
19
19
  label: i,
20
- name: m,
21
- type: x,
20
+ name: c,
21
+ type: b,
22
22
  required: s,
23
- hidden: T,
23
+ hidden: F,
24
24
  rules: u = [],
25
25
  updatable: h = !0,
26
- readonly: N = !1,
27
- fieldClassName: g,
28
- customFormFieldRender: w,
29
- fieldTooltip: b,
26
+ readonly: w = !1,
27
+ fieldClassName: f,
28
+ customFormFieldRender: k,
29
+ fieldTooltip: v,
30
30
  ...e
31
- } = v, p = k.useFormInstance();
32
- R(() => {
33
- if (x === "select") {
31
+ } = x, p = S.useFormInstance();
32
+ P(() => {
33
+ if (b === "select") {
34
34
  const {
35
- items: o = [],
35
+ items: t = [],
36
36
  onSearch: n,
37
- searchOnType: a
37
+ searchOnType: o
38
38
  } = e;
39
- !(o != null && o.length) && !a && (n == null || n(void 0, p, e == null ? void 0 : e.updatingValue));
39
+ !(t != null && t.length) && !o && (n == null || n(void 0, p, e == null ? void 0 : e.updatingValue));
40
40
  }
41
- }, [p, e, x, e == null ? void 0 : e.updatingValue]);
42
- const { t: F } = re(z);
43
- if (N || T) return /* @__PURE__ */ t.jsx(t.Fragment, {});
44
- if (w)
45
- return w(p, v);
46
- switch (x) {
41
+ }, [p, e, b, e == null ? void 0 : e.updatingValue]);
42
+ const { t: N } = K(Q);
43
+ if (w || F) return /* @__PURE__ */ a(O, {});
44
+ if (k)
45
+ return k(p, x);
46
+ switch (b) {
47
47
  case "text":
48
48
  case "email":
49
49
  case "password": {
50
- const { onChange: o, placeholder: n } = e;
51
- return /* @__PURE__ */ t.jsx(
52
- V,
50
+ const { onChange: t, placeholder: n } = e;
51
+ return /* @__PURE__ */ a(
52
+ te,
53
53
  {
54
54
  placeholder: n,
55
55
  disabled: !h,
56
56
  rules: u,
57
57
  required: s,
58
- onChange: o ? (a) => o(a, p) : void 0,
59
- type: x,
60
- name: m,
61
- tooltip: b,
58
+ onChange: t ? (o) => t(o, p) : void 0,
59
+ type: b,
60
+ name: c,
61
+ tooltip: v,
62
62
  label: i,
63
- className: g,
63
+ className: f,
64
64
  autoComplete: "new-password"
65
65
  }
66
66
  );
67
67
  }
68
68
  case "number": {
69
- const { onChange: o, placeholder: n, allowMinus: a } = e;
70
- return /* @__PURE__ */ t.jsx(
71
- Z,
69
+ const { onChange: t, placeholder: n, allowMinus: o } = e;
70
+ return /* @__PURE__ */ a(
71
+ re,
72
72
  {
73
73
  placeholder: n,
74
74
  disabled: !h,
75
75
  moneyField: !!e.formatted,
76
- type: x,
77
- onChange: o ? (f) => o(f, p) : void 0,
76
+ type: b,
77
+ onChange: t ? (g) => t(g, p) : void 0,
78
78
  rules: u,
79
79
  autoComplete: "false",
80
80
  required: s,
81
- tooltip: b,
82
- className: g,
83
- min: a ? null : void 0,
84
- name: m,
81
+ tooltip: v,
82
+ className: f,
83
+ min: o ? null : void 0,
84
+ name: c,
85
85
  label: i
86
86
  }
87
87
  );
88
88
  }
89
89
  case "date": {
90
90
  const {
91
- range: o,
91
+ range: t,
92
92
  disableToday: n,
93
- disabledFutureDays: a,
94
- disabledPastDays: f,
93
+ disabledFutureDays: o,
94
+ disabledPastDays: g,
95
95
  onChange: C,
96
- placeholder: c,
97
- format: y
96
+ placeholder: m,
97
+ format: T
98
98
  } = e;
99
- return /* @__PURE__ */ t.jsx(
100
- Q,
99
+ return /* @__PURE__ */ a(
100
+ Z,
101
101
  {
102
- placeholder: c,
102
+ placeholder: m,
103
103
  required: s,
104
104
  disabled: !h,
105
- type: x,
106
- format: y,
107
- tooltip: b,
108
- range: o,
109
- name: m,
105
+ type: b,
106
+ format: T,
107
+ tooltip: v,
108
+ range: t,
109
+ name: c,
110
110
  label: i,
111
111
  onChange: C ? (l) => C(l, p) : void 0,
112
- className: g,
112
+ className: f,
113
113
  disableToday: n,
114
- disabledFutureDays: a,
115
- disabledPastDays: f
114
+ disabledFutureDays: o,
115
+ disabledPastDays: g
116
116
  }
117
117
  );
118
118
  }
119
119
  case "time": {
120
120
  const {
121
- range: o = !1,
121
+ range: t = !1,
122
122
  disableCurrent: n,
123
- disabledFuture: a,
124
- disabledPast: f,
123
+ disabledFuture: o,
124
+ disabledPast: g,
125
125
  onChange: C,
126
- use12Hours: c,
127
- format: y,
126
+ use12Hours: m,
127
+ format: T,
128
128
  placeholder: l
129
129
  } = e;
130
- return /* @__PURE__ */ t.jsx(
131
- X,
130
+ return /* @__PURE__ */ a(
131
+ V,
132
132
  {
133
133
  placeholder: l,
134
134
  required: s,
135
- format: y,
135
+ format: T,
136
136
  disabled: !h,
137
- type: x,
138
- tooltip: b,
139
- range: o,
140
- use12Hours: c,
141
- name: m,
137
+ type: b,
138
+ tooltip: v,
139
+ range: t,
140
+ use12Hours: m,
141
+ name: c,
142
142
  label: i,
143
- onChange: C ? (j) => C(j, p) : void 0,
144
- className: g,
143
+ onChange: C ? (y) => C(y, p) : void 0,
144
+ className: f,
145
145
  disableCurrent: n,
146
- disabledFuture: a,
147
- disabledPast: f
146
+ disabledFuture: o,
147
+ disabledPast: g
148
148
  }
149
149
  );
150
150
  }
151
151
  case "textarea": {
152
- const { onChange: o, placeholder: n, rows: a, cols: f } = e;
153
- return /* @__PURE__ */ t.jsx(
154
- ee,
152
+ const { onChange: t, placeholder: n, rows: o, cols: g } = e;
153
+ return /* @__PURE__ */ a(
154
+ oe,
155
155
  {
156
156
  rules: u,
157
157
  placeholder: n,
158
- onChange: o ? (C) => {
159
- var c;
160
- return o((c = C == null ? void 0 : C.target) == null ? void 0 : c.value, p);
158
+ onChange: t ? (C) => {
159
+ var m;
160
+ return t((m = C == null ? void 0 : C.target) == null ? void 0 : m.value, p);
161
161
  } : void 0,
162
- tooltip: b,
162
+ tooltip: v,
163
163
  required: s,
164
164
  disabled: !h,
165
- name: m,
165
+ name: c,
166
166
  label: i,
167
- className: g,
168
- rows: a,
169
- cols: f
167
+ className: f,
168
+ rows: o,
169
+ cols: g
170
170
  }
171
171
  );
172
172
  }
173
173
  case "image":
174
- return /* @__PURE__ */ t.jsx(
175
- K,
174
+ return /* @__PURE__ */ a(
175
+ Y,
176
176
  {
177
177
  ...e,
178
178
  required: s,
179
- name: m,
179
+ name: c,
180
180
  label: i,
181
181
  rules: u,
182
- fieldClassName: g,
182
+ fieldClassName: f,
183
183
  onRemoved: e.onRemoved,
184
184
  onUploading: e.onUploading,
185
185
  provider: e.provider
186
186
  }
187
187
  );
188
188
  case "file":
189
- return /* @__PURE__ */ t.jsx(
190
- J,
189
+ return /* @__PURE__ */ a(
190
+ X,
191
191
  {
192
192
  ...e,
193
193
  required: s,
194
- name: m,
194
+ name: c,
195
195
  label: i,
196
196
  rules: u,
197
- fieldClassName: g,
197
+ fieldClassName: f,
198
198
  onRemoved: e.onRemoved,
199
199
  onUploading: e.onUploading,
200
200
  provider: e.provider
201
201
  }
202
202
  );
203
203
  case "select":
204
- return /* @__PURE__ */ t.jsx(
205
- oe,
204
+ return /* @__PURE__ */ a(
205
+ le,
206
206
  {
207
207
  ...e,
208
208
  required: s,
209
- name: m,
209
+ name: c,
210
210
  label: i,
211
211
  rules: u,
212
- fieldClassName: g,
212
+ fieldClassName: f,
213
213
  form: p,
214
214
  updatable: h,
215
- readonly: N,
216
- fieldTooltip: b
215
+ readonly: w,
216
+ fieldTooltip: v
217
217
  }
218
218
  );
219
219
  case "enum": {
220
220
  const {
221
- enum: o,
221
+ enum: t,
222
222
  radio: n = !1,
223
- translation: a,
224
- onChange: f,
223
+ translation: o,
224
+ onChange: g,
225
225
  onSearch: C,
226
- multiple: c
227
- } = e, y = Array.isArray(o) ? o : Object.keys(o);
228
- return n ? /* @__PURE__ */ t.jsx(
229
- k.Item,
226
+ multiple: m
227
+ } = e, T = Array.isArray(t) ? t : Object.keys(t);
228
+ return n ? /* @__PURE__ */ a(
229
+ S.Item,
230
230
  {
231
231
  ...e,
232
- name: m,
232
+ name: c,
233
233
  required: s,
234
- tooltip: b,
234
+ tooltip: v,
235
235
  rules: u,
236
236
  label: i,
237
- className: ["w-100", g].join(" "),
238
- children: /* @__PURE__ */ t.jsx(
239
- H.Group,
237
+ className: ["w-100", f].join(" "),
238
+ children: /* @__PURE__ */ a(
239
+ q.Group,
240
240
  {
241
241
  ...e,
242
- onChange: f ? (l) => {
243
- var j;
244
- return f((j = l == null ? void 0 : l.target) == null ? void 0 : j.value, p);
242
+ onChange: g ? (l) => {
243
+ var y;
244
+ return g((y = l == null ? void 0 : l.target) == null ? void 0 : y.value, p);
245
245
  } : void 0,
246
- children: y.map((l) => /* @__PURE__ */ t.jsx(H, { disabled: !h, value: l, children: a ? F(a[l]) : l }, l))
246
+ children: T.map((l) => /* @__PURE__ */ a(q, { disabled: !h, value: l, children: o ? N(o[l]) : l }, l))
247
247
  }
248
248
  )
249
249
  }
250
- ) : /* @__PURE__ */ t.jsx(
251
- q,
250
+ ) : /* @__PURE__ */ a(
251
+ M,
252
252
  {
253
253
  ...e,
254
- onChange: f ? (l) => f(l, p) : void 0,
255
- className: ["w-100", g].join(" "),
256
- name: m,
257
- items: y,
254
+ onChange: g ? (l) => g(l, p) : void 0,
255
+ className: ["w-100", f].join(" "),
256
+ name: c,
257
+ items: T,
258
258
  required: s,
259
- tooltip: b,
259
+ tooltip: v,
260
260
  rules: u,
261
261
  label: i,
262
262
  disabled: !h,
263
263
  onSearch: C ? (l) => C(l, p) : void 0,
264
264
  allowClear: !0,
265
- mode: c ? "multiple" : void 0,
266
- itemBuilder: (l) => /* @__PURE__ */ t.jsx(O.Option, { value: l, children: a ? F(a[l]) : l }, l)
265
+ mode: m ? "multiple" : void 0,
266
+ itemBuilder: (l) => /* @__PURE__ */ a(A.Option, { value: l, children: o ? N(o[l]) : l }, l)
267
267
  }
268
268
  );
269
269
  }
270
270
  case "checkbox": {
271
- const { onChange: o } = e;
272
- return /* @__PURE__ */ t.jsx(
273
- Y,
271
+ const { onChange: t } = e;
272
+ return /* @__PURE__ */ a(
273
+ ee,
274
274
  {
275
- className: g,
275
+ className: f,
276
276
  rules: u,
277
- onChange: o ? (n) => o(n, p) : void 0,
277
+ onChange: t ? (n) => t(n, p) : void 0,
278
278
  label: i,
279
- tooltip: b,
279
+ tooltip: v,
280
280
  disabled: !h,
281
- name: m
281
+ name: c
282
282
  }
283
283
  );
284
284
  }
285
285
  case "color":
286
- return /* @__PURE__ */ t.jsx(
287
- ae,
286
+ return /* @__PURE__ */ a(
287
+ ne,
288
288
  {
289
289
  ...e,
290
290
  type: "color",
291
291
  required: s,
292
- name: m,
292
+ name: c,
293
293
  label: i,
294
294
  rules: u,
295
- fieldClassName: g,
295
+ fieldClassName: f,
296
296
  updatable: h,
297
- readonly: N,
298
- fieldTooltip: b
297
+ readonly: w,
298
+ fieldTooltip: v
299
299
  }
300
300
  );
301
301
  default:
302
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: `${x} Not Implemented` });
302
+ return /* @__PURE__ */ a(O, { children: `${b} Not Implemented` });
303
303
  }
304
304
  }
305
- function oe(v) {
305
+ function le(x) {
306
306
  const {
307
307
  items: i = [],
308
- loading: m,
309
- searchOnType: x,
308
+ loading: c,
309
+ searchOnType: b,
310
310
  onSearch: s,
311
- multiple: T,
311
+ multiple: F,
312
312
  onChange: u,
313
313
  highlightSearch: h,
314
- required: N,
315
- fieldClassName: g,
316
- rules: w,
317
- fieldTooltip: b,
314
+ required: w,
315
+ fieldClassName: f,
316
+ rules: k,
317
+ fieldTooltip: v,
318
318
  updatable: e,
319
319
  label: p,
320
- name: F,
321
- tagRender: o,
320
+ name: N,
321
+ tagRender: t,
322
322
  updatingValue: n,
323
- onSet: a,
324
- placeholder: f,
323
+ onSet: o,
324
+ placeholder: g,
325
325
  allowClear: C = !0
326
- } = v, c = v.form, [y, l] = U(""), j = k.useWatch(F, c), [S, A] = U(!0);
327
- R(() => {
328
- a && S && j && (a == null || a(j, i, c), A(!1));
329
- }, [S, c, i, F, a, j]), R(() => {
330
- j && A(!0);
331
- }, [j]);
332
- const D = G(
326
+ } = x, m = x.form, [T, l] = D(""), y = S.useWatch(N, m), [R, j] = D(!0);
327
+ P(() => {
328
+ o && R && y && (o == null || o(y, i, m), j(!1));
329
+ }, [R, m, i, N, o, y]), P(() => {
330
+ y && j(!0);
331
+ }, [y]);
332
+ const W = z(
333
333
  async (r) => {
334
- l(r), x && (s == null || s(r, c, n));
334
+ l(r), b && (s == null || s(r, m, n));
335
335
  },
336
- [c, s, x, n]
336
+ [m, s, b, n]
337
337
  );
338
- return /* @__PURE__ */ t.jsx(
339
- q,
338
+ return /* @__PURE__ */ a(
339
+ M,
340
340
  {
341
- ...v,
341
+ ...x,
342
342
  maxTagCount: "responsive",
343
- maxTagPlaceholder: (r) => /* @__PURE__ */ t.jsxs(
344
- te,
343
+ maxTagPlaceholder: (r) => /* @__PURE__ */ U(
344
+ ae,
345
345
  {
346
- title: /* @__PURE__ */ t.jsx(t.Fragment, { children: r.map((d) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
346
+ title: /* @__PURE__ */ a(O, { children: r.map((d) => /* @__PURE__ */ U(O, { children: [
347
347
  d.label,
348
348
  " ",
349
- /* @__PURE__ */ t.jsx("br", {})
349
+ /* @__PURE__ */ a("br", {})
350
350
  ] })) }),
351
351
  children: [
352
352
  "+",
@@ -354,32 +354,32 @@ function oe(v) {
354
354
  ]
355
355
  }
356
356
  ),
357
- placeholder: f,
357
+ placeholder: g,
358
358
  onSelect: (r) => {
359
- a == null || a(r == null ? void 0 : r.key, i, c);
359
+ o == null || o(r == null ? void 0 : r.key, i, m);
360
360
  },
361
361
  onChange: u ? (r) => {
362
- l(""), u(r, c);
362
+ l(""), u(r, m);
363
363
  } : void 0,
364
- mode: T ? "multiple" : void 0,
365
- className: ["w-100", g].join(" "),
366
- name: F,
364
+ mode: F ? "multiple" : void 0,
365
+ className: ["w-100", f].join(" "),
366
+ name: N,
367
367
  items: i,
368
- required: N,
369
- tooltip: b,
370
- tagRender: o,
371
- rules: w,
368
+ required: w,
369
+ tooltip: v,
370
+ tagRender: t,
371
+ rules: k,
372
372
  disabled: !e,
373
373
  label: p,
374
374
  allowClear: C,
375
- onSearch: D,
376
- loading: m,
375
+ onSearch: W,
376
+ loading: c,
377
377
  filterOption: h ? (r, d) => {
378
- var P, I, E;
378
+ var I, L, B;
379
379
  try {
380
- const L = r.toLowerCase().split(/\s+/), M = ((typeof (d == null ? void 0 : d.children) == "string" ? d == null ? void 0 : d.children : (I = (P = d == null ? void 0 : d.children) == null ? void 0 : P.props) == null ? void 0 : I.textToHighlight) ?? "").toLowerCase(), W = (((E = d == null ? void 0 : d.value) == null ? void 0 : E.toString()) ?? "").toLowerCase();
381
- return L.every(
382
- (B) => M.indexOf(B) >= 0 || W.indexOf(B) >= 0
380
+ const E = r.toLowerCase().split(/\s+/), _ = ((typeof (d == null ? void 0 : d.children) == "string" ? d == null ? void 0 : d.children : (L = (I = d == null ? void 0 : d.children) == null ? void 0 : I.props) == null ? void 0 : L.textToHighlight) ?? "").toLowerCase(), G = (((B = d == null ? void 0 : d.value) == null ? void 0 : B.toString()) ?? "").toLowerCase();
381
+ return E.every(
382
+ (H) => _.indexOf(H) >= 0 || G.indexOf(H) >= 0
383
383
  );
384
384
  } catch {
385
385
  return !0;
@@ -387,17 +387,17 @@ function oe(v) {
387
387
  } : void 0,
388
388
  itemBuilder: h ? (r) => {
389
389
  const d = r.value ? String(r.value) : void 0;
390
- return /* @__PURE__ */ t.jsx(
391
- O.Option,
390
+ return /* @__PURE__ */ a(
391
+ A.Option,
392
392
  {
393
393
  value: r.key,
394
394
  title: d,
395
395
  disabled: r.disabled,
396
- children: /* @__PURE__ */ t.jsx(
397
- $,
396
+ children: /* @__PURE__ */ a(
397
+ J,
398
398
  {
399
399
  highlightClassName: "highlight-text",
400
- searchWords: (y ?? "").split(" "),
400
+ searchWords: (T ?? "").split(" "),
401
401
  autoEscape: !0,
402
402
  textToHighlight: d ?? ""
403
403
  }
@@ -405,8 +405,8 @@ function oe(v) {
405
405
  },
406
406
  r.key
407
407
  );
408
- } : (r) => /* @__PURE__ */ t.jsx(
409
- O.Option,
408
+ } : (r) => /* @__PURE__ */ a(
409
+ A.Option,
410
410
  {
411
411
  value: r.key,
412
412
  title: r.value,
@@ -418,42 +418,42 @@ function oe(v) {
418
418
  }
419
419
  );
420
420
  }
421
- function ae(v) {
421
+ function ne(x) {
422
422
  const {
423
423
  required: i,
424
- fieldClassName: m,
425
- rules: x,
424
+ fieldClassName: c,
425
+ rules: b,
426
426
  fieldTooltip: s,
427
- updatable: T,
427
+ updatable: F,
428
428
  label: u,
429
429
  name: h
430
- } = v;
431
- return /* @__PURE__ */ t.jsx(
432
- k.Item,
430
+ } = x;
431
+ return /* @__PURE__ */ a(
432
+ S.Item,
433
433
  {
434
434
  label: u,
435
435
  name: h,
436
436
  required: i,
437
- rules: x,
437
+ rules: b,
438
438
  tooltip: s,
439
- children: /* @__PURE__ */ t.jsx(
440
- _,
439
+ children: /* @__PURE__ */ a(
440
+ $,
441
441
  {
442
442
  disabledAlpha: !0,
443
443
  format: "hex",
444
444
  defaultFormat: "hex",
445
445
  showText: !0,
446
446
  trigger: "click",
447
- className: m,
448
- disabled: !T,
449
- ...v.innerProps
447
+ className: c,
448
+ disabled: !F,
449
+ ...x.innerProps
450
450
  }
451
451
  )
452
452
  }
453
453
  );
454
454
  }
455
455
  export {
456
- ae as ColorCrudFieldComponent,
457
- oe as SelectCrudFieldComponent,
458
- ve as default
456
+ ne as ColorCrudFieldComponent,
457
+ le as SelectCrudFieldComponent,
458
+ Ne as default
459
459
  };