@kingteza/crud-component 1.0.5 → 1.0.9

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 (148) hide show
  1. package/dist/_virtual/ShowMoreText.cjs +1 -1
  2. package/dist/_virtual/advancedFormat.cjs +1 -1
  3. package/dist/_virtual/customParseFormat.cjs +1 -1
  4. package/dist/_virtual/dayjs.min.cjs +1 -1
  5. package/dist/_virtual/index.cjs +1 -1
  6. package/dist/_virtual/index10.cjs +1 -1
  7. package/dist/_virtual/index10.js +5 -2
  8. package/dist/_virtual/index11.cjs +1 -0
  9. package/dist/_virtual/index11.js +7 -0
  10. package/dist/_virtual/index12.cjs +1 -0
  11. package/dist/_virtual/index12.js +4 -0
  12. package/dist/_virtual/index13.cjs +1 -0
  13. package/dist/_virtual/index13.js +4 -0
  14. package/dist/_virtual/index2.cjs +1 -1
  15. package/dist/_virtual/index2.js +3 -2
  16. package/dist/_virtual/index3.cjs +1 -1
  17. package/dist/_virtual/index3.js +5 -2
  18. package/dist/_virtual/index4.js +2 -2
  19. package/dist/_virtual/index5.cjs +1 -1
  20. package/dist/_virtual/index5.js +2 -5
  21. package/dist/_virtual/index6.cjs +1 -1
  22. package/dist/_virtual/index6.js +4 -2
  23. package/dist/_virtual/index7.cjs +1 -1
  24. package/dist/_virtual/index7.js +2 -5
  25. package/dist/_virtual/index8.cjs +1 -1
  26. package/dist/_virtual/index8.js +2 -7
  27. package/dist/_virtual/index9.cjs +1 -1
  28. package/dist/_virtual/index9.js +5 -2
  29. package/dist/_virtual/localeData.cjs +1 -1
  30. package/dist/_virtual/main.cjs +1 -1
  31. package/dist/_virtual/papaparse.min.cjs +1 -1
  32. package/dist/_virtual/react-is.development2.cjs +1 -0
  33. package/dist/_virtual/react-is.development2.js +4 -0
  34. package/dist/_virtual/react-is.production.min2.cjs +1 -0
  35. package/dist/_virtual/react-is.production.min2.js +4 -0
  36. package/dist/_virtual/weekOfYear.cjs +1 -1
  37. package/dist/_virtual/weekYear.cjs +1 -1
  38. package/dist/_virtual/weekday.cjs +1 -1
  39. package/dist/common/index.cjs +1 -1
  40. package/dist/index.cjs +1 -1
  41. package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -1
  42. package/dist/src/components/common/DatePicker/DatePicker.js +23 -22
  43. package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -1
  44. package/dist/src/components/common/DatePicker/TimePicker.js +13 -12
  45. package/dist/src/components/common/appearance/Hider.cjs +1 -1
  46. package/dist/src/components/common/button/Button.cjs +1 -1
  47. package/dist/src/components/common/button/Button.js +28 -27
  48. package/dist/src/components/common/button/CloneButtonTable.cjs +1 -1
  49. package/dist/src/components/common/button/CloneButtonTable.js +3 -3
  50. package/dist/src/components/common/button/DeleteButtonTable.cjs +1 -1
  51. package/dist/src/components/common/button/DeleteButtonTable.js +7 -7
  52. package/dist/src/components/common/button/ExportButton.cjs +1 -1
  53. package/dist/src/components/common/button/ExportButton.js +5 -5
  54. package/dist/src/components/common/button/HideButtonTable.cjs +1 -1
  55. package/dist/src/components/common/button/HideButtonTable.js +7 -7
  56. package/dist/src/components/common/button/ImportButton.cjs +1 -1
  57. package/dist/src/components/common/button/ImportButton.js +5 -5
  58. package/dist/src/components/common/button/NewButton.cjs +1 -1
  59. package/dist/src/components/common/button/NewButton.js +5 -5
  60. package/dist/src/components/common/button/PrintButton.cjs +1 -1
  61. package/dist/src/components/common/button/PrintButton.js +5 -5
  62. package/dist/src/components/common/button/RefreshButton.cjs +1 -1
  63. package/dist/src/components/common/button/RefreshButton.js +5 -5
  64. package/dist/src/components/common/button/UnHideButton.cjs +1 -1
  65. package/dist/src/components/common/button/UnHideButton.js +7 -7
  66. package/dist/src/components/common/button/UpdateButtonTable.cjs +1 -1
  67. package/dist/src/components/common/button/UpdateButtonTable.js +5 -5
  68. package/dist/src/components/common/button/ViewButtonTable.cjs +1 -1
  69. package/dist/src/components/common/button/ViewButtonTable.js +5 -5
  70. package/dist/src/components/common/check-box/CheckBox.cjs +1 -1
  71. package/dist/src/components/common/check-box/CheckBox.js +17 -15
  72. package/dist/src/components/common/description/DescList.cjs +1 -1
  73. package/dist/src/components/common/description/DescList.js +1 -1
  74. package/dist/src/components/common/layout/VerticalSpace.cjs +1 -1
  75. package/dist/src/components/common/layout/VerticalSpace.js +1 -1
  76. package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -1
  77. package/dist/src/components/common/loading/LoadingIndicator.js +9 -8
  78. package/dist/src/components/common/picker/ImagePicker.cjs +1 -1
  79. package/dist/src/components/common/picker/ImagePicker.js +42 -40
  80. package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -1
  81. package/dist/src/components/common/radio/RadioGroupComponent.js +17 -16
  82. package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -1
  83. package/dist/src/components/common/report/SelectFieldInReport.js +17 -16
  84. package/dist/src/components/common/select/CustomSelectOption.cjs +1 -1
  85. package/dist/src/components/common/select/CustomSelectOption.js +1 -1
  86. package/dist/src/components/common/select/SelectComponent.cjs +1 -1
  87. package/dist/src/components/common/select/SelectComponent.js +36 -33
  88. package/dist/src/components/common/show-more/index.cjs +1 -1
  89. package/dist/src/components/common/tab/TabViewWithRoute.cjs +1 -1
  90. package/dist/src/components/common/tab/TabViewWithRoute.js +15 -14
  91. package/dist/src/components/common/table/table.cjs +1 -1
  92. package/dist/src/components/common/table/table.js +16 -16
  93. package/dist/src/components/common/tag/StatusTag.cjs +1 -1
  94. package/dist/src/components/common/tag/StatusTag.js +4 -4
  95. package/dist/src/components/common/text/index.cjs +1 -1
  96. package/dist/src/components/common/text/index.js +1 -1
  97. package/dist/src/components/common/text/title/index.cjs +1 -1
  98. package/dist/src/components/common/text/title/index.js +1 -1
  99. package/dist/src/components/common/text-field/NumberField.cjs +1 -1
  100. package/dist/src/components/common/text-field/NumberField.js +20 -19
  101. package/dist/src/components/common/text-field/PhoneNumberField.cjs +1 -1
  102. package/dist/src/components/common/text-field/TextArea.cjs +1 -1
  103. package/dist/src/components/common/text-field/TextArea.js +19 -18
  104. package/dist/src/components/common/text-field/TextField.cjs +1 -1
  105. package/dist/src/components/common/text-field/TextField.js +22 -21
  106. package/dist/src/components/common/tooltip/TooltipComponent.cjs +1 -1
  107. package/dist/src/components/common/tooltip/TooltipComponent.js +1 -1
  108. package/dist/src/components/common/wizard/WizardResult.cjs +1 -1
  109. package/dist/src/components/common/wizard/WizardResult.js +5 -5
  110. package/dist/src/components/common/wizard/WizardViewForm.cjs +1 -1
  111. package/dist/src/components/common/wizard/WizardViewForm.js +1 -1
  112. package/dist/src/components/crud/CrudComponent.cjs +1 -1
  113. package/dist/src/components/crud/CrudComponent.js +74 -71
  114. package/dist/src/components/crud/CrudField.cjs +1 -1
  115. package/dist/src/components/crud/CrudField.js +96 -93
  116. package/dist/src/components/crud/CrudForm.cjs +1 -1
  117. package/dist/src/components/crud/CrudForm.js +30 -27
  118. package/dist/src/components/crud/CrudFormWizard.cjs +1 -1
  119. package/dist/src/components/crud/CrudFormWizard.js +57 -54
  120. package/dist/src/components/crud/CrudReportComponent.cjs +3 -3
  121. package/dist/src/components/crud/CrudReportComponent.js +51 -47
  122. package/dist/src/components/crud/CrudSearchComponent.cjs +1 -1
  123. package/dist/src/components/crud/CrudSearchComponent.js +23 -21
  124. package/dist/src/components/crud/FileCrudField.cjs +1 -1
  125. package/dist/src/components/crud/FileCrudField.js +31 -29
  126. package/dist/src/components/crud/ImageCrudField.cjs +1 -1
  127. package/dist/src/components/crud/ImageCrudField.js +46 -43
  128. package/dist/src/components/crud/import/CrudImportButton.cjs +1 -1
  129. package/dist/src/components/crud/import/CrudImportButton.js +7 -7
  130. package/dist/src/components/crud/import/CrudImportComponent.cjs +2 -2
  131. package/dist/src/components/crud/import/CrudImportComponent.js +64 -60
  132. package/dist/src/components/crud/view/CrudDecListView.cjs +1 -1
  133. package/dist/src/components/crud/view/CrudDecListView.js +5 -5
  134. package/dist/src/components/crud/view/CrudViewer.cjs +1 -1
  135. package/dist/src/components/crud/view/CrudViewer.js +25 -25
  136. package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -1
  137. package/dist/src/components/crud/view/CrudViewerUtil.js +18 -17
  138. package/dist/src/context/WindowDimension.cjs +1 -1
  139. package/dist/src/locale/index.cjs +1 -1
  140. package/dist/src/locale/index.js +2 -2
  141. package/dist/src/locale/translations/en.cjs +1 -1
  142. package/dist/src/util/DateUtil.cjs +1 -1
  143. package/dist/src/util/DateUtil.js +4 -4
  144. package/dist/src/util/ImageUtil.cjs +1 -1
  145. package/dist/src/util/ValidationUtil.cjs +1 -1
  146. package/dist/src/util/ValidationUtil.js +1 -1
  147. package/dist/util/index.cjs +1 -1
  148. package/package.json +7 -9
@@ -1,28 +1,30 @@
1
1
  import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { Form as Ce, Modal as Z, Upload as ve } from "antd";
5
- import M, { useRef as _, useState as h, useEffect as U, useCallback as q, useMemo as ee } from "react";
6
- import { Cropper as Ie } from "../../../../node_modules/react-cropper/dist/react-cropper.es.js";
7
- import { TRANSLATION_NAMESPACE as be } from "../../../locale/hooks/translation-constants.js";
4
+ import M, { useRef as _, useState as h, useEffect as U, useCallback as Z, useMemo as q } from "react";
5
+ import { Cropper as Ce } from "../../../../node_modules/react-cropper/dist/react-cropper.es.js";
6
+ import { useTranslation as ve } from "react-i18next";
7
+ import { TRANSLATION_NAMESPACE as Ie } from "../../../locale/hooks/translation-constants.js";
8
8
  import z from "../button/Button.js";
9
- import ye from "../../../util/ImageUtil.js";
10
- import { useTranslation as Re } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
11
- import Fe from "../../../../node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js";
12
- import Ne from "../../../../node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js";
9
+ import be from "../../../util/ImageUtil.js";
10
+ import ye from "../../../../node_modules/antd/es/form/index.js";
11
+ import ee from "../../../../node_modules/antd/es/modal/index.js";
12
+ import Re from "../../../../node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js";
13
+ import Fe from "../../../../node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js";
13
14
  import re from "../../../../node_modules/@ant-design/icons/es/icons/UploadOutlined.js";
15
+ import Ne from "../../../../node_modules/antd/es/upload/index.js";
14
16
  import Ue from "../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js";
15
- const Se = Ce.Item;
17
+ const Se = ye.Item;
16
18
  function te(r) {
17
- return new Promise((l, m) => {
19
+ return new Promise((l, d) => {
18
20
  const o = new FileReader();
19
- o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (p) => m(p);
21
+ o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (p) => d(p);
20
22
  });
21
23
  }
22
- const He = ({
24
+ const Ge = ({
23
25
  values: r = [],
24
26
  required: l,
25
- buttonType: m,
27
+ buttonType: d,
26
28
  label: o,
27
29
  name: p,
28
30
  onChange: f,
@@ -40,9 +42,9 @@ const He = ({
40
42
  listType: F,
41
43
  ...E
42
44
  }) => {
43
- const [oe, se] = M.useState(""), [ne, ie] = M.useState(""), [ae, $] = M.useState(!1), O = _(), n = _(), [i, k] = h([]), [x, A] = h(), ce = _(), le = () => $(!1), de = async (e) => {
45
+ const [oe, se] = M.useState(""), [ne, ie] = M.useState(""), [ae, $] = M.useState(!1), O = _(), n = _(), [i, k] = h([]), [x, A] = h(), ce = _(), le = () => $(!1), me = async (e) => {
44
46
  !e.url && !e.preview && (e.preview = await te(e.originFileObj)), ie(e.url || e.preview), $(!0), se(e.name);
45
- }, [T, N] = h(!1), me = () => {
47
+ }, [T, N] = h(!1), de = () => {
46
48
  }, J = (e) => {
47
49
  var s;
48
50
  (s = n == null ? void 0 : n.current) == null || s.cropper.rotate(e ? -90 : 90);
@@ -52,13 +54,13 @@ const He = ({
52
54
  }, [i, f]);
53
55
  const pe = () => {
54
56
  var I;
55
- const e = (I = n == null ? void 0 : n.current) == null ? void 0 : I.cropper.getCroppedCanvas(), { type: s, size: a, name: d, uid: v } = O.current;
57
+ const e = (I = n == null ? void 0 : n.current) == null ? void 0 : I.cropper.getCroppedCanvas(), { type: s, size: a, name: m, uid: v } = O.current;
56
58
  N(!0), e == null || e.toBlob(async (je) => {
57
- const we = Object.assign(new File([je], d, { type: s }), {
59
+ const we = Object.assign(new File([je], m, { type: s }), {
58
60
  uid: v
59
- }), Q = await ye.resizeImage(we), X = await te(Q), Y = {
61
+ }), Q = await be.resizeImage(we), X = await te(Q), Y = {
60
62
  url: X,
61
- name: d,
63
+ name: m,
62
64
  uid: v,
63
65
  type: s,
64
66
  size: a,
@@ -75,17 +77,17 @@ const He = ({
75
77
  }), A(void 0);
76
78
  }, fe = () => {
77
79
  A(void 0), O.current = void 0;
78
- }, V = q((e) => {
80
+ }, V = Z((e) => {
79
81
  const s = e;
80
82
  if (s) {
81
83
  O.current = s;
82
84
  const a = new FileReader();
83
85
  a.addEventListener("load", () => {
84
- var d;
86
+ var m;
85
87
  if (typeof a.result == "string") {
86
88
  A(a.result);
87
89
  const v = localStorage.getItem("cropper.box"), I = v ? JSON.parse(v) : void 0;
88
- I && ((d = n == null ? void 0 : n.current) == null || d.cropper.setCropBoxData(I)), setTimeout(() => {
90
+ I && ((m = n == null ? void 0 : n.current) == null || m.cropper.setCropBoxData(I)), setTimeout(() => {
89
91
  K();
90
92
  }, 100);
91
93
  }
@@ -98,7 +100,7 @@ const He = ({
98
100
  k(e);
99
101
  }
100
102
  }, [r]);
101
- const { t: P } = Re(be), ue = ee(
103
+ const { t: P } = ve(Ie), ue = q(
102
104
  () => l ? {
103
105
  required: l,
104
106
  validator: (e, s, a) => {
@@ -106,14 +108,14 @@ const He = ({
106
108
  }
107
109
  } : void 0,
108
110
  [l, x, i == null ? void 0 : i.length, o, P]
109
- ), W = j ?? P("message.fileUploadMessage2"), H = ee(
111
+ ), W = j ?? P("message.fileUploadMessage2"), H = q(
110
112
  () => /* @__PURE__ */ t.jsx(
111
113
  Oe,
112
114
  {
113
115
  showLoadingIndicator: T,
114
116
  _buttonTitle: W,
115
117
  buttonSize: u,
116
- buttonType: m,
118
+ buttonType: d,
117
119
  fileList: i,
118
120
  hidePreview: w,
119
121
  icon: b,
@@ -123,7 +125,7 @@ const He = ({
123
125
  onChangeFile: V,
124
126
  onRemove: R,
125
127
  showButtonText: g,
126
- handlePreview: de,
128
+ handlePreview: me,
127
129
  setFileList: k
128
130
  }
129
131
  ),
@@ -131,7 +133,7 @@ const He = ({
131
133
  T,
132
134
  W,
133
135
  u,
134
- m,
136
+ d,
135
137
  i,
136
138
  w,
137
139
  b,
@@ -153,12 +155,12 @@ const He = ({
153
155
  }, [D]), U(() => {
154
156
  x || (L(0), G(0));
155
157
  }, [x]);
156
- const K = q(async () => {
158
+ const K = Z(async () => {
157
159
  var s;
158
160
  const e = (s = n == null ? void 0 : n.current) == null ? void 0 : s.cropper;
159
161
  if (e) {
160
- const { width: a, height: d } = e.getCroppedCanvas();
161
- he(e.getCropBoxData()), L(a), G(d);
162
+ const { width: a, height: m } = e.getCroppedCanvas();
163
+ he(e.getCropBoxData()), L(a), G(m);
162
164
  }
163
165
  }, []);
164
166
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -174,7 +176,7 @@ const He = ({
174
176
  }
175
177
  ),
176
178
  /* @__PURE__ */ t.jsxs(
177
- Z,
179
+ ee,
178
180
  {
179
181
  open: !!x,
180
182
  maskClosable: !1,
@@ -183,14 +185,14 @@ const He = ({
183
185
  onCancel: fe,
184
186
  children: [
185
187
  /* @__PURE__ */ t.jsx(
186
- Ie,
188
+ Ce,
187
189
  {
188
190
  ref: n,
189
191
  src: x,
190
192
  cropmove: K,
191
193
  viewMode: 1,
192
194
  aspectRatio: S,
193
- cropend: () => me()
195
+ cropend: () => de()
194
196
  }
195
197
  ),
196
198
  /* @__PURE__ */ t.jsx("p", { className: "text-center", children: [ge, xe].join(" ⨉ ") }),
@@ -199,7 +201,7 @@ const He = ({
199
201
  z,
200
202
  {
201
203
  size: "large",
202
- icon: /* @__PURE__ */ t.jsx(Fe, {}),
204
+ icon: /* @__PURE__ */ t.jsx(Re, {}),
203
205
  onClick: () => J(!0)
204
206
  }
205
207
  ),
@@ -207,7 +209,7 @@ const He = ({
207
209
  z,
208
210
  {
209
211
  size: "large",
210
- icon: /* @__PURE__ */ t.jsx(Ne, {}),
212
+ icon: /* @__PURE__ */ t.jsx(Fe, {}),
211
213
  onClick: () => J(!1)
212
214
  }
213
215
  )
@@ -216,7 +218,7 @@ const He = ({
216
218
  }
217
219
  ),
218
220
  /* @__PURE__ */ t.jsx(
219
- Z,
221
+ ee,
220
222
  {
221
223
  open: ae,
222
224
  title: oe,
@@ -229,7 +231,7 @@ const He = ({
229
231
  }, Oe = ({
230
232
  _buttonTitle: r,
231
233
  buttonSize: l,
232
- buttonType: m,
234
+ buttonType: d,
233
235
  fileList: o,
234
236
  hidePreview: p,
235
237
  icon: f,
@@ -243,7 +245,7 @@ const He = ({
243
245
  showLoadingIndicator: y,
244
246
  listType: C = "picture"
245
247
  }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
246
- ve,
248
+ Ne,
247
249
  {
248
250
  accept: "image/x-png,image/gif,image/jpeg",
249
251
  fileList: o,
@@ -271,7 +273,7 @@ const He = ({
271
273
  tooltip: g ? void 0 : r,
272
274
  size: l,
273
275
  icon: f,
274
- type: g ? m : "text",
276
+ type: g ? d : "text",
275
277
  children: g ? r : void 0
276
278
  }
277
279
  )) })
@@ -281,5 +283,5 @@ const He = ({
281
283
  ) });
282
284
  export {
283
285
  Oe as UploadComponent,
284
- He as default
286
+ Ge as default
285
287
  };
@@ -1 +1 @@
1
- "use strict";const s=require("../../../../_virtual/jsx-runtime.cjs"),n=require("antd"),i=require("react"),l=({button:m,disabled:c,...t})=>{const a=i.useMemo(()=>{const{enum:e,translations:o}=t;if(e){const r=[];for(const u of e)r.push({key:u,value:(o==null?void 0:o[u])??u.toUpperCase()});return r}else return t.values},[t]),x=m?n.Radio.Button:n.Radio;return s.jsxRuntimeExports.jsx(n.Form.Item,{...t,children:s.jsxRuntimeExports.jsx(n.Radio.Group,{disabled:c,children:a.map(({key:e,value:o})=>s.jsxRuntimeExports.jsx(x,{value:e,children:o},e))})})},R=i.memo(l);module.exports=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../../_virtual/jsx-runtime.cjs"),l=require("react"),s=require("../../../../node_modules/antd/es/radio/index.cjs"),d=require("../../../../node_modules/antd/es/form/index.cjs"),x=({button:i,disabled:a,...u})=>{const c=l.useMemo(()=>{const{enum:e,translations:t}=u;if(e){const r=[];for(const n of e)r.push({key:n,value:(t==null?void 0:t[n])??n.toUpperCase()});return r}else return u.values},[u]),m=i?s.default.Button:s.default;return o.jsxRuntimeExports.jsx(d.default.Item,{...u,children:o.jsxRuntimeExports.jsx(s.default.Group,{disabled:a,children:c.map(({key:e,value:t})=>o.jsxRuntimeExports.jsx(m,{value:e,children:t},e))})})},f=l.memo(x);exports.default=f;
@@ -1,19 +1,20 @@
1
- import { j as u } from "../../../../_virtual/jsx-runtime.js";
2
- import { Radio as m, Form as i } from "antd";
3
- import { memo as p, useMemo as d } from "react";
4
- const f = ({ button: s, disabled: a, ...n }) => {
5
- const l = d(() => {
6
- const { enum: e, translations: o } = n;
7
- if (e) {
8
- const r = [];
9
- for (const t of e)
10
- r.push({ key: t, value: (o == null ? void 0 : o[t]) ?? t.toUpperCase() });
11
- return r;
1
+ import { j as m } from "../../../../_virtual/jsx-runtime.js";
2
+ import { memo as c, useMemo as p } from "react";
3
+ import r from "../../../../node_modules/antd/es/radio/index.js";
4
+ import f from "../../../../node_modules/antd/es/form/index.js";
5
+ const d = ({ button: s, disabled: a, ...t }) => {
6
+ const i = p(() => {
7
+ const { enum: o, translations: e } = t;
8
+ if (o) {
9
+ const u = [];
10
+ for (const n of o)
11
+ u.push({ key: n, value: (e == null ? void 0 : e[n]) ?? n.toUpperCase() });
12
+ return u;
12
13
  } else
13
- return n.values;
14
- }, [n]), c = s ? m.Button : m;
15
- return /* @__PURE__ */ u.jsx(i.Item, { ...n, children: /* @__PURE__ */ u.jsx(m.Group, { disabled: a, children: l.map(({ key: e, value: o }) => /* @__PURE__ */ u.jsx(c, { value: e, children: o }, e)) }) });
16
- }, h = p(f);
14
+ return t.values;
15
+ }, [t]), l = s ? r.Button : r;
16
+ return /* @__PURE__ */ m.jsx(f.Item, { ...t, children: /* @__PURE__ */ m.jsx(r.Group, { disabled: a, children: i.map(({ key: o, value: e }) => /* @__PURE__ */ m.jsx(l, { value: o, children: e }, o)) }) });
17
+ }, C = c(d);
17
18
  export {
18
- h as default
19
+ C as default
19
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../_virtual/jsx-runtime.cjs"),o=require("antd"),u=require("react"),j=require("../select/SelectComponent.cjs"),F=({className:a,onSelect:d,label:p,required:S,name:s,mode:l,items:t})=>{const r=o.Form.useFormInstance(),[n,x]=u.useState(!0);return u.useEffect(()=>{if(t&&n){const e=t.filter(i=>i.alreadySelected).map(i=>i.id);r==null||r.setFieldsValue({[s]:l==="multiple"?e:e==null?void 0:e[0]}),x(!1)}},[n,r,t,l,s]),c.jsxRuntimeExports.jsx(j,{required:S,label:p,mode:l,className:a,name:s,onSelect:d,items:t,itemBuilder:e=>c.jsxRuntimeExports.jsx(o.Select.Option,{value:e.id,disabled:e.lock,children:e.label},e.id)})};exports.SelectFieldInReport=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/jsx-runtime.cjs"),c=require("react"),f=require("../select/SelectComponent.cjs"),S=require("../../../../node_modules/antd/es/form/index.cjs"),j=require("../../../../node_modules/antd/es/select/index.cjs"),R=({className:o,onSelect:d,label:a,required:p,name:i,mode:l,items:t})=>{const r=S.default.useFormInstance(),[n,x]=c.useState(!0);return c.useEffect(()=>{if(t&&n){const e=t.filter(s=>s.alreadySelected).map(s=>s.id);r==null||r.setFieldsValue({[i]:l==="multiple"?e:e==null?void 0:e[0]}),x(!1)}},[n,r,t,l,i]),u.jsxRuntimeExports.jsx(f.default,{required:p,label:a,mode:l,className:o,name:i,onSelect:d,items:t,itemBuilder:e=>u.jsxRuntimeExports.jsx(j.default.Option,{value:e.id,disabled:e.lock,children:e.label},e.id)})};exports.SelectFieldInReport=R;
@@ -1,30 +1,31 @@
1
1
  import { j as c } from "../../../../_virtual/jsx-runtime.js";
2
- import { Form as f, Select as m } from "antd";
3
- import { useState as x, useEffect as F } from "react";
4
- import S from "../select/SelectComponent.js";
5
- const R = ({ className: n, onSelect: p, label: u, required: a, name: l, mode: o, items: e }) => {
6
- const r = f.useFormInstance(), [s, d] = x(!0);
7
- return F(() => {
2
+ import { useState as m, useEffect as d } from "react";
3
+ import x from "../select/SelectComponent.js";
4
+ import F from "../../../../node_modules/antd/es/form/index.js";
5
+ import S from "../../../../node_modules/antd/es/select/index.js";
6
+ const h = ({ className: p, onSelect: n, label: u, required: a, name: o, mode: l, items: e }) => {
7
+ const r = F.useFormInstance(), [s, f] = m(!0);
8
+ return d(() => {
8
9
  if (e && s) {
9
10
  const t = e.filter((i) => i.alreadySelected).map((i) => i.id);
10
11
  r == null || r.setFieldsValue({
11
- [l]: o === "multiple" ? t : t == null ? void 0 : t[0]
12
- }), d(!1);
12
+ [o]: l === "multiple" ? t : t == null ? void 0 : t[0]
13
+ }), f(!1);
13
14
  }
14
- }, [s, r, e, o, l]), /* @__PURE__ */ c.jsx(
15
- S,
15
+ }, [s, r, e, l, o]), /* @__PURE__ */ c.jsx(
16
+ x,
16
17
  {
17
18
  required: a,
18
19
  label: u,
19
- mode: o,
20
- className: n,
21
- name: l,
22
- onSelect: p,
20
+ mode: l,
21
+ className: p,
22
+ name: o,
23
+ onSelect: n,
23
24
  items: e,
24
- itemBuilder: (t) => /* @__PURE__ */ c.jsx(m.Option, { value: t.id, disabled: t.lock, children: t.label }, t.id)
25
+ itemBuilder: (t) => /* @__PURE__ */ c.jsx(S.Option, { value: t.id, disabled: t.lock, children: t.label }, t.id)
25
26
  }
26
27
  );
27
28
  };
28
29
  export {
29
- R as SelectFieldInReport
30
+ h as SelectFieldInReport
30
31
  };
@@ -1 +1 @@
1
- "use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),s=require("antd"),r=s.List.Item.Meta,x=s.List.Item,o=({title:e,description:i,children:n})=>t.jsxRuntimeExports.jsxs(x,{className:"",children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(r,{title:e,description:i})}),t.jsxRuntimeExports.jsx("div",{className:"float-right",children:n})]});module.exports=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../../../node_modules/antd/es/list/index.cjs"),u=t.default.Item.Meta,n=t.default.Item,o=({title:s,description:i,children:r})=>e.jsxRuntimeExports.jsxs(n,{className:"",children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(u,{title:s,description:i})}),e.jsxRuntimeExports.jsx("div",{className:"float-right",children:r})]});exports.default=o;
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
- import { List as s } from "antd";
2
+ import s from "../../../../node_modules/antd/es/list/index.js";
3
3
  const r = s.Item.Meta, a = s.Item, n = ({
4
4
  title: e,
5
5
  description: o,
@@ -1 +1 @@
1
- "use strict";const r=require("../../../../_virtual/jsx-runtime.cjs"),x=require("antd"),k=require("react"),H=require("../../../locale/hooks/translation-constants.cjs"),P=require("../tooltip/TooltipComponent.cjs"),b=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs");function B({label:a,rules:E=[],required:R,placeholder:m,notSearch:S,children:u,readOnly:n,items:o,dropdownRender:y,itemBuilder:w,loading:d,showLoadingInEmptyIndicator:T,nameFieldInArray:h="name",innerRef:q,tooltip:L,filterOption:N,tagRender:_,...s}){const{t:A}=b.useTranslation(H.TRANSLATION_NAMESPACE),I=k.useCallback(e=>{const t=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e.id,c=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e[h];return r.jsxRuntimeExports.jsx("option",{value:t,children:r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:c}})},t)},[h]);return r.jsxRuntimeExports.jsx(x.ConfigProvider,{renderEmpty:T&&d?()=>r.jsxRuntimeExports.jsx(x.Spin,{}):void 0,children:r.jsxRuntimeExports.jsx(P,{title:L,children:r.jsxRuntimeExports.jsx(x.Form.Item,{label:a,name:s.name,help:s.help,className:s.className,rules:[...E,{required:R,message:`${a??m??""} ${A("err.validation.required")}`}],children:r.jsxRuntimeExports.jsx(x.Select,{ref:q,loading:d,open:n?!1:void 0,onChange:!n&&s.onChange,allowClear:!n&&s.allowClear,showSearch:!S,className:`max-width ${n?"readOnly":""}`,...s,tagRender:_,placeholder:m??a,filterOption:N??((e,t)=>{var c,j,f,C;try{const i=(f=(j=(c=t==null?void 0:t.children)==null?void 0:c.props)==null?void 0:j.dangerouslySetInnerHTML)==null?void 0:f.__html,M=e.toLowerCase().split(/\s+/),g=(t==null?void 0:t.children)??"",p=typeof g=="string"?g.toLowerCase():typeof i=="string"?i.toLowerCase():"",O=(((C=t==null?void 0:t.value)==null?void 0:C.toString())??"").toLowerCase(),$=p.replace(/\s/g,"");return M.every(l=>p.indexOf(l)>=0||O.indexOf(l)>=0||$.indexOf(l)>=0)}catch(i){return console.log(i),!0}}),dropdownRender:y,children:u===null?void 0:u??(o&&(o==null?void 0:o.map(w??I)))})})})})}module.exports=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../_virtual/jsx-runtime.cjs"),b=require("react"),A=require("react-i18next"),k=require("../../../locale/hooks/translation-constants.cjs"),H=require("../tooltip/TooltipComponent.cjs"),P=require("../../../../node_modules/antd/es/config-provider/index.cjs"),B=require("../../../../node_modules/antd/es/spin/index.cjs"),D=require("../../../../node_modules/antd/es/form/index.cjs"),V=require("../../../../node_modules/antd/es/select/index.cjs");function W({label:u,rules:q=[],required:y,placeholder:a,notSearch:E,children:l,readOnly:s,items:o,dropdownRender:R,itemBuilder:S,loading:d,showLoadingInEmptyIndicator:p,nameFieldInArray:m="name",innerRef:w,tooltip:T,filterOption:_,tagRender:L,...n}){const{t:N}=A.useTranslation(k.TRANSLATION_NAMESPACE),$=b.useCallback(e=>{const t=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e.id,i=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e[m];return r.jsxRuntimeExports.jsx("option",{value:t,children:r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:i}})},t)},[m]);return r.jsxRuntimeExports.jsx(P.default,{renderEmpty:p&&d?()=>r.jsxRuntimeExports.jsx(B.default,{}):void 0,children:r.jsxRuntimeExports.jsx(H.default,{title:T,children:r.jsxRuntimeExports.jsx(D.default.Item,{label:u,name:n.name,help:n.help,className:n.className,rules:[...q,{required:y,message:`${u??a??""} ${N("err.validation.required")}`}],children:r.jsxRuntimeExports.jsx(V.default,{ref:w,loading:d,open:s?!1:void 0,onChange:!s&&n.onChange,allowClear:!s&&n.allowClear,showSearch:!E,className:`max-width ${s?"readOnly":""}`,...n,tagRender:L,placeholder:a??u,filterOption:_??((e,t)=>{var i,f,h,j;try{const c=(h=(f=(i=t==null?void 0:t.children)==null?void 0:i.props)==null?void 0:f.dangerouslySetInnerHTML)==null?void 0:h.__html,M=e.toLowerCase().split(/\s+/),g=(t==null?void 0:t.children)??"",C=typeof g=="string"?g.toLowerCase():typeof c=="string"?c.toLowerCase():"",I=(((j=t==null?void 0:t.value)==null?void 0:j.toString())??"").toLowerCase(),O=C.replace(/\s/g,"");return M.every(x=>C.indexOf(x)>=0||I.indexOf(x)>=0||O.indexOf(x)>=0)}catch(c){return console.log(c),!0}}),dropdownRender:R,children:l===null?void 0:l??(o&&(o==null?void 0:o.map(S??$)))})})})})}exports.default=W;
@@ -1,17 +1,20 @@
1
1
  import { j as t } from "../../../../_virtual/jsx-runtime.js";
2
- import { ConfigProvider as H, Spin as P, Form as R, Select as b } from "antd";
3
- import { useCallback as q } from "react";
4
- import { TRANSLATION_NAMESPACE as B } from "../../../locale/hooks/translation-constants.js";
5
- import D from "../tooltip/TooltipComponent.js";
6
- import { useTranslation as F } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
7
- function Q({
8
- label: m,
2
+ import { useCallback as H } from "react";
3
+ import { useTranslation as P } from "react-i18next";
4
+ import { TRANSLATION_NAMESPACE as R } from "../../../locale/hooks/translation-constants.js";
5
+ import b from "../tooltip/TooltipComponent.js";
6
+ import q from "../../../../node_modules/antd/es/config-provider/index.js";
7
+ import B from "../../../../node_modules/antd/es/spin/index.js";
8
+ import D from "../../../../node_modules/antd/es/form/index.js";
9
+ import F from "../../../../node_modules/antd/es/select/index.js";
10
+ function Y({
11
+ label: c,
9
12
  rules: j = [],
10
13
  required: y,
11
14
  placeholder: l,
12
15
  notSearch: w,
13
16
  children: a,
14
- readOnly: o,
17
+ readOnly: n,
15
18
  items: s,
16
19
  dropdownRender: u,
17
20
  itemBuilder: L,
@@ -22,52 +25,52 @@ function Q({
22
25
  tooltip: _,
23
26
  filterOption: E,
24
27
  tagRender: A,
25
- ...n
28
+ ...o
26
29
  }) {
27
- const { t: I } = F(B), M = q(
28
- (e) => {
29
- const r = typeof e == "string" || typeof e == "number" ? e : e == null ? void 0 : e.id, c = typeof e == "string" || typeof e == "number" ? e : e == null ? void 0 : e[h];
30
- return /* @__PURE__ */ t.jsx("option", { value: r, children: /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: c } }) }, r);
30
+ const { t: I } = P(R), M = H(
31
+ (r) => {
32
+ const e = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r.id, m = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r[h];
33
+ return /* @__PURE__ */ t.jsx("option", { value: e, children: /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: m } }) }, e);
31
34
  },
32
35
  [h]
33
36
  );
34
37
  return /* @__PURE__ */ t.jsx(
35
- H,
38
+ q,
36
39
  {
37
- renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(P, {}) : void 0,
38
- children: /* @__PURE__ */ t.jsx(D, { title: _, children: /* @__PURE__ */ t.jsx(
39
- R.Item,
40
+ renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(B, {}) : void 0,
41
+ children: /* @__PURE__ */ t.jsx(b, { title: _, children: /* @__PURE__ */ t.jsx(
42
+ D.Item,
40
43
  {
41
- label: m,
42
- name: n.name,
43
- help: n.help,
44
- className: n.className,
44
+ label: c,
45
+ name: o.name,
46
+ help: o.help,
47
+ className: o.className,
45
48
  rules: [
46
49
  ...j,
47
50
  {
48
51
  required: y,
49
- message: `${m ?? l ?? ""} ${I(
52
+ message: `${c ?? l ?? ""} ${I(
50
53
  "err.validation.required"
51
54
  )}`
52
55
  }
53
56
  ],
54
57
  children: /* @__PURE__ */ t.jsx(
55
- b,
58
+ F,
56
59
  {
57
60
  ref: N,
58
61
  loading: d,
59
- open: o ? !1 : void 0,
60
- onChange: !o && n.onChange,
61
- allowClear: !o && n.allowClear,
62
+ open: n ? !1 : void 0,
63
+ onChange: !n && o.onChange,
64
+ allowClear: !n && o.allowClear,
62
65
  showSearch: !w,
63
- className: `max-width ${o ? "readOnly" : ""}`,
64
- ...n,
66
+ className: `max-width ${n ? "readOnly" : ""}`,
67
+ ...o,
65
68
  tagRender: A,
66
- placeholder: l ?? m,
67
- filterOption: E ?? ((e, r) => {
68
- var c, x, C, g;
69
+ placeholder: l ?? c,
70
+ filterOption: E ?? ((r, e) => {
71
+ var m, x, p, C;
69
72
  try {
70
- const i = (C = (x = (c = r == null ? void 0 : r.children) == null ? void 0 : c.props) == null ? void 0 : x.dangerouslySetInnerHTML) == null ? void 0 : C.__html, O = e.toLowerCase().split(/\s+/), p = (r == null ? void 0 : r.children) ?? "", S = typeof p == "string" ? p.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", $ = (((g = r == null ? void 0 : r.value) == null ? void 0 : g.toString()) ?? "").toLowerCase(), k = S.replace(/\s/g, "");
73
+ const i = (p = (x = (m = e == null ? void 0 : e.children) == null ? void 0 : m.props) == null ? void 0 : x.dangerouslySetInnerHTML) == null ? void 0 : p.__html, O = r.toLowerCase().split(/\s+/), g = (e == null ? void 0 : e.children) ?? "", S = typeof g == "string" ? g.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", $ = (((C = e == null ? void 0 : e.value) == null ? void 0 : C.toString()) ?? "").toLowerCase(), k = S.replace(/\s/g, "");
71
74
  return O.every(
72
75
  (f) => S.indexOf(f) >= 0 || $.indexOf(f) >= 0 || k.indexOf(f) >= 0
73
76
  );
@@ -85,5 +88,5 @@ function Q({
85
88
  );
86
89
  }
87
90
  export {
88
- Q as default
91
+ Y as default
89
92
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o,{...r});exports.ShowMore=e;exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o.default,{...r});exports.ShowMore=e;exports.default=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),c=require("antd"),f=require("../../../context/WindowDimension.cjs"),u=require("react"),a=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),{Content:v}=c.Layout,g=({positionOfRoute:i,initialKey:s="*",tabs:x,className:l="",mode:d="default"})=>{const[m,p]=u.useState(s),n=a.useNavigate(),h=t=>{n(t)},r=a.useLocation();u.useEffect(()=>{const t=r.pathname.split("/")[i];p(t??""),t||n(s,{replace:!0})},[s,r.pathname,n,i]);const{isDesktop:j}=f(),o=d==="side"&&j,b=o?"left":"top",R=o?"d-flex h-100":"";return e.jsxRuntimeExports.jsxs("div",{className:`${l} ${R}`,children:[e.jsxRuntimeExports.jsx(c.Tabs,{type:"card",tabPosition:b,activeKey:m,onChange:h,children:x.map(({key:t,label:T})=>e.jsxRuntimeExports.jsx(c.Tabs.TabPane,{tab:T},t))}),e.jsxRuntimeExports.jsx(v,{className:`max-height ${o?"overflow-auto":""}`,children:e.jsxRuntimeExports.jsx(a.Outlet,{})})]})};exports.TabViewWithRoute=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../_virtual/jsx-runtime.cjs"),v=require("../../../context/WindowDimension.cjs"),r=require("react"),c=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),u=require("../../../../node_modules/antd/es/tabs/index.cjs"),g=require("../../../../node_modules/antd/es/layout/index.cjs"),{Content:q}=g.default,E=({positionOfRoute:a,initialKey:s="*",tabs:l,className:x="",mode:d="default"})=>{const[m,p]=r.useState(s),n=c.useNavigate(),h=e=>{n(e)},i=c.useLocation();r.useEffect(()=>{const e=i.pathname.split("/")[a];p(e??""),e||n(s,{replace:!0})},[s,i.pathname,n,a]);const{isDesktop:j}=v.default(),o=d==="side"&&j,f=o?"left":"top",b=o?"d-flex h-100":"";return t.jsxRuntimeExports.jsxs("div",{className:`${x} ${b}`,children:[t.jsxRuntimeExports.jsx(u.default,{type:"card",tabPosition:f,activeKey:m,onChange:h,children:l.map(({key:e,label:R})=>t.jsxRuntimeExports.jsx(u.default.TabPane,{tab:R},e))}),t.jsxRuntimeExports.jsx(q,{className:`max-height ${o?"overflow-auto":""}`,children:t.jsxRuntimeExports.jsx(c.Outlet,{})})]})};exports.TabViewWithRoute=E;
@@ -1,37 +1,38 @@
1
1
  import { j as e } from "../../../../_virtual/jsx-runtime.js";
2
- import { Tabs as r, Layout as b } from "antd";
3
- import v from "../../../context/WindowDimension.js";
4
- import { useState as g, useEffect as w } from "react";
5
- import { useNavigate as y, useLocation as N, Outlet as P } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
6
- const { Content: S } = b, E = ({
2
+ import b from "../../../context/WindowDimension.js";
3
+ import { useState as v, useEffect as g } from "react";
4
+ import { useNavigate as w, useLocation as y, Outlet as N } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
5
+ import r from "../../../../node_modules/antd/es/tabs/index.js";
6
+ import P from "../../../../node_modules/antd/es/layout/index.js";
7
+ const { Content: S } = P, L = ({
7
8
  positionOfRoute: n,
8
9
  initialKey: s = "*",
9
10
  tabs: i,
10
11
  className: m = "",
11
- mode: l = "default"
12
+ mode: p = "default"
12
13
  }) => {
13
- const [p, u] = g(s), o = y(), d = (t) => {
14
+ const [l, u] = v(s), o = w(), f = (t) => {
14
15
  o(t);
15
- }, c = N();
16
- w(() => {
16
+ }, c = y();
17
+ g(() => {
17
18
  const t = c.pathname.split("/")[n];
18
19
  u(t ?? ""), t || o(s, { replace: !0 });
19
20
  }, [s, c.pathname, o, n]);
20
- const { isDesktop: f } = v(), a = l === "side" && f, h = a ? "left" : "top", x = a ? "d-flex h-100" : "";
21
+ const { isDesktop: d } = b(), a = p === "side" && d, h = a ? "left" : "top", x = a ? "d-flex h-100" : "";
21
22
  return /* @__PURE__ */ e.jsxs("div", { className: `${m} ${x}`, children: [
22
23
  /* @__PURE__ */ e.jsx(
23
24
  r,
24
25
  {
25
26
  type: "card",
26
27
  tabPosition: h,
27
- activeKey: p,
28
- onChange: d,
28
+ activeKey: l,
29
+ onChange: f,
29
30
  children: i.map(({ key: t, label: j }) => /* @__PURE__ */ e.jsx(r.TabPane, { tab: j }, t))
30
31
  }
31
32
  ),
32
- /* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(P, {}) })
33
+ /* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(N, {}) })
33
34
  ] });
34
35
  };
35
36
  export {
36
- E as TabViewWithRoute
37
+ L as TabViewWithRoute
37
38
  };
@@ -1 +1 @@
1
- "use strict";const a=require("../../../../_virtual/jsx-runtime.cjs"),c=require("antd"),l=require("react");function d({minusHeight:h,onRow:m,count:g=1,onPageSizeChanged:x,pagination:e=!1,rowKey:n="id",columns:t,className:o,scroll:s,...i}){const r=l.useMemo(()=>t.filter(u=>!u.hidden),[t]);return a.jsxRuntimeExports.jsx(c.Table,{className:`custom-scroll ${o}`,style:{width:"100%"},columns:r,rowKey:n,...i,scroll:s||{x:!0},pagination:e&&{...e,hideOnSinglePage:!0,showSizeChanger:!1}})}module.exports=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../../_virtual/jsx-runtime.cjs"),a=require("react"),c=require("../../../../node_modules/antd/es/table/Table.cjs");function d({minusHeight:g,onRow:m,count:f=1,onPageSizeChanged:h,pagination:e=!1,rowKey:n="id",columns:t,className:o,scroll:s,...u}){const i=a.useMemo(()=>t.filter(r=>!r.hidden),[t]);return l.jsxRuntimeExports.jsx(c.default,{className:`custom-scroll ${o}`,style:{width:"100%"},columns:i,rowKey:n,...u,scroll:s||{x:!0},pagination:e&&{...e,hideOnSinglePage:!0,showSizeChanger:!1}})}exports.default=d;
@@ -1,27 +1,27 @@
1
1
  import { j as l } from "../../../../_virtual/jsx-runtime.js";
2
- import { Table as m } from "antd";
3
- import { useMemo as u } from "react";
4
- function j({
5
- minusHeight: f,
6
- onRow: c,
7
- count: d = 1,
2
+ import { useMemo as m } from "react";
3
+ import u from "../../../../node_modules/antd/es/table/Table.js";
4
+ function w({
5
+ minusHeight: d,
6
+ onRow: f,
7
+ count: c = 1,
8
8
  onPageSizeChanged: h,
9
9
  pagination: e = !1,
10
- rowKey: s = "id",
10
+ rowKey: r = "id",
11
11
  columns: o,
12
- className: n,
12
+ className: s,
13
13
  scroll: t,
14
- ...i
14
+ ...n
15
15
  }) {
16
- const r = u(() => o.filter((a) => !a.hidden), [o]);
16
+ const i = m(() => o.filter((a) => !a.hidden), [o]);
17
17
  return /* @__PURE__ */ l.jsx(
18
- m,
18
+ u,
19
19
  {
20
- className: `custom-scroll ${n}`,
20
+ className: `custom-scroll ${s}`,
21
21
  style: { width: "100%" },
22
- columns: r,
23
- rowKey: s,
24
- ...i,
22
+ columns: i,
23
+ rowKey: r,
24
+ ...n,
25
25
  scroll: t || {
26
26
  // y: `calc(100vh - ${minusHeight ?? 0}px)`,
27
27
  x: !0
@@ -36,5 +36,5 @@ function j({
36
36
  );
37
37
  }
38
38
  export {
39
- j as default
39
+ w as default
40
40
  };
@@ -1 +1 @@
1
- "use strict";const a=require("../../../../_virtual/jsx-runtime.cjs"),p=require("antd"),x=require("../../../locale/hooks/translation-constants.cjs"),T=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),q=({onClick:n,clickable:o,colorFunction:s,translation:i,value:e})=>{var r;const t=s==null?void 0:s(e),{t:c}=T.useTranslation(x.TRANSLATION_NAMESPACE),u=p.Tag;return a.jsxRuntimeExports.jsx(u,{onClick:n,color:t==null?void 0:t.color,icon:t==null?void 0:t.icon,style:{color:t==null?void 0:t.text,cursor:o?"pointer":void 0},children:(r=c(i[e]))==null?void 0:r.toUpperCase()})};module.exports=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../_virtual/jsx-runtime.cjs"),d=require("../../../locale/hooks/translation-constants.cjs"),x=require("react-i18next"),p=require("../../../../node_modules/antd/es/tag/index.cjs"),S=({onClick:n,clickable:o,colorFunction:t,translation:i,value:s})=>{var r;const e=t==null?void 0:t(s),{t:u}=x.useTranslation(d.TRANSLATION_NAMESPACE),c=p.default;return a.jsxRuntimeExports.jsx(c,{onClick:n,color:e==null?void 0:e.color,icon:e==null?void 0:e.icon,style:{color:e==null?void 0:e.text,cursor:o?"pointer":void 0},children:(r=u(i[s]))==null?void 0:r.toUpperCase()})};exports.default=S;