@kingteza/crud-component 1.0.26 → 1.0.28

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 (205) hide show
  1. package/App.d.ts +2 -0
  2. package/common/index.cjs +1 -0
  3. package/common/index.js +75 -0
  4. package/components/common/DatePicker/DatePicker.cjs +1 -0
  5. package/components/common/DatePicker/DatePicker.d.ts +37 -0
  6. package/components/common/DatePicker/DatePicker.js +88 -0
  7. package/components/common/DatePicker/TimePicker.cjs +1 -0
  8. package/components/common/DatePicker/TimePicker.d.ts +34 -0
  9. package/components/common/DatePicker/TimePicker.js +78 -0
  10. package/components/common/DatePicker/index.d.ts +3 -0
  11. package/components/common/appearance/Hider.cjs +1 -0
  12. package/components/common/appearance/Hider.d.ts +6 -0
  13. package/components/common/appearance/Hider.js +5 -0
  14. package/components/common/appearance/index.d.ts +0 -0
  15. package/components/common/button/Button.cjs +1 -0
  16. package/components/common/button/Button.d.ts +12 -0
  17. package/components/common/button/Button.js +79 -0
  18. package/components/common/button/CloneButtonTable.cjs +1 -0
  19. package/components/common/button/CloneButtonTable.d.ts +6 -0
  20. package/components/common/button/CloneButtonTable.js +20 -0
  21. package/components/common/button/DeleteButtonTable.cjs +1 -0
  22. package/components/common/button/DeleteButtonTable.d.ts +13 -0
  23. package/components/common/button/DeleteButtonTable.js +68 -0
  24. package/components/common/button/ExportButton.cjs +1 -0
  25. package/components/common/button/ExportButton.d.ts +4 -0
  26. package/components/common/button/ExportButton.js +27 -0
  27. package/components/common/button/HideButtonTable.cjs +1 -0
  28. package/components/common/button/HideButtonTable.d.ts +13 -0
  29. package/components/common/button/HideButtonTable.js +68 -0
  30. package/components/common/button/ImportButton.cjs +1 -0
  31. package/components/common/button/ImportButton.d.ts +9 -0
  32. package/components/common/button/ImportButton.js +56 -0
  33. package/components/common/button/NewButton.cjs +1 -0
  34. package/components/common/button/NewButton.d.ts +12 -0
  35. package/components/common/button/NewButton.js +24 -0
  36. package/components/common/button/PrintButton.cjs +1 -0
  37. package/components/common/button/PrintButton.d.ts +12 -0
  38. package/components/common/button/PrintButton.js +26 -0
  39. package/components/common/button/RefreshButton.cjs +1 -0
  40. package/components/common/button/RefreshButton.d.ts +11 -0
  41. package/components/common/button/RefreshButton.js +24 -0
  42. package/components/common/button/UnHideButton.cjs +1 -0
  43. package/components/common/button/UnHideButton.d.ts +14 -0
  44. package/components/common/button/UnHideButton.js +70 -0
  45. package/components/common/button/UpdateButtonTable.cjs +1 -0
  46. package/components/common/button/UpdateButtonTable.d.ts +6 -0
  47. package/components/common/button/UpdateButtonTable.js +20 -0
  48. package/components/common/button/ViewButtonTable.cjs +1 -0
  49. package/components/common/button/ViewButtonTable.d.ts +6 -0
  50. package/components/common/button/ViewButtonTable.js +20 -0
  51. package/components/common/button/index.d.ts +14 -0
  52. package/components/common/check-box/CheckBox.cjs +1 -0
  53. package/components/common/check-box/CheckBox.d.ts +9 -0
  54. package/components/common/check-box/CheckBox.js +40 -0
  55. package/components/common/check-box/index.d.ts +2 -0
  56. package/components/common/description/DescList.cjs +1 -0
  57. package/components/common/description/DescList.d.ts +18 -0
  58. package/components/common/description/DescList.js +16 -0
  59. package/components/common/description/DescriptionComponent.d.ts +7 -0
  60. package/components/common/description/index.d.ts +3 -0
  61. package/components/common/index.d.ts +22 -0
  62. package/components/common/layout/VerticalSpace.cjs +1 -0
  63. package/components/common/layout/VerticalSpace.d.ts +5 -0
  64. package/components/common/layout/VerticalSpace.js +6 -0
  65. package/components/common/layout/index.d.ts +2 -0
  66. package/components/common/loading/LoadingIndicator.cjs +1 -0
  67. package/components/common/loading/LoadingIndicator.d.ts +6 -0
  68. package/components/common/loading/LoadingIndicator.js +24 -0
  69. package/components/common/loading/index.d.ts +2 -0
  70. package/components/common/picker/ImagePicker.cjs +1 -0
  71. package/components/common/picker/ImagePicker.d.ts +56 -0
  72. package/components/common/picker/ImagePicker.js +282 -0
  73. package/components/common/picker/index.d.ts +2 -0
  74. package/components/common/radio/RadioGroupComponent.cjs +1 -0
  75. package/components/common/radio/RadioGroupComponent.d.ts +18 -0
  76. package/components/common/radio/RadioGroupComponent.js +19 -0
  77. package/components/common/radio/index.d.ts +2 -0
  78. package/components/common/report/SelectFieldInReport.cjs +1 -0
  79. package/components/common/report/SelectFieldInReport.d.ts +16 -0
  80. package/components/common/report/SelectFieldInReport.js +30 -0
  81. package/components/common/report/index.d.ts +3 -0
  82. package/components/common/select/CustomSelectOption.cjs +1 -0
  83. package/components/common/select/CustomSelectOption.d.ts +7 -0
  84. package/components/common/select/CustomSelectOption.js +13 -0
  85. package/components/common/select/SelectComponent.cjs +1 -0
  86. package/components/common/select/SelectComponent.d.ts +21 -0
  87. package/components/common/select/SelectComponent.js +89 -0
  88. package/components/common/select/index.d.ts +3 -0
  89. package/components/common/show-more/index.cjs +1 -0
  90. package/components/common/show-more/index.d.ts +4 -0
  91. package/components/common/show-more/index.js +8 -0
  92. package/components/common/tab/TabViewWithRoute.cjs +1 -0
  93. package/components/common/tab/TabViewWithRoute.d.ts +13 -0
  94. package/components/common/tab/TabViewWithRoute.js +38 -0
  95. package/components/common/tab/index.d.ts +2 -0
  96. package/components/common/table/index.d.ts +3 -0
  97. package/components/common/table/table.cjs +1 -0
  98. package/components/common/table/table.d.ts +19 -0
  99. package/components/common/table/table.js +40 -0
  100. package/components/common/tag/StatusTag.cjs +1 -0
  101. package/components/common/tag/StatusTag.d.ts +14 -0
  102. package/components/common/tag/StatusTag.js +30 -0
  103. package/components/common/tag/index.d.ts +2 -0
  104. package/components/common/text/index.cjs +1 -0
  105. package/components/common/text/index.d.ts +3 -0
  106. package/components/common/text/index.js +5 -0
  107. package/components/common/text/title/TitleWithHeadTitle.d.ts +7 -0
  108. package/components/common/text/title/index.cjs +1 -0
  109. package/components/common/text/title/index.d.ts +1 -0
  110. package/components/common/text/title/index.js +5 -0
  111. package/components/common/text-field/NumberField.cjs +1 -0
  112. package/components/common/text-field/NumberField.d.ts +13 -0
  113. package/components/common/text-field/NumberField.js +83 -0
  114. package/components/common/text-field/PhoneNumberField.cjs +1 -0
  115. package/components/common/text-field/PhoneNumberField.d.ts +4 -0
  116. package/components/common/text-field/PhoneNumberField.js +18 -0
  117. package/components/common/text-field/TextArea.cjs +1 -0
  118. package/components/common/text-field/TextArea.d.ts +17 -0
  119. package/components/common/text-field/TextArea.js +47 -0
  120. package/components/common/text-field/TextField.cjs +1 -0
  121. package/components/common/text-field/TextField.d.ts +27 -0
  122. package/components/common/text-field/TextField.js +73 -0
  123. package/components/common/text-field/index.d.ts +5 -0
  124. package/components/common/tooltip/TooltipComponent.cjs +1 -0
  125. package/components/common/tooltip/TooltipComponent.d.ts +5 -0
  126. package/components/common/tooltip/TooltipComponent.js +9 -0
  127. package/components/common/tooltip/index.d.ts +2 -0
  128. package/components/common/wizard/WizardResult.cjs +1 -0
  129. package/components/common/wizard/WizardResult.d.ts +16 -0
  130. package/components/common/wizard/WizardResult.js +60 -0
  131. package/components/common/wizard/WizardViewForm.cjs +1 -0
  132. package/components/common/wizard/WizardViewForm.d.ts +24 -0
  133. package/components/common/wizard/WizardViewForm.js +74 -0
  134. package/components/common/wizard/index.d.ts +3 -0
  135. package/components/crud/CrudComponent.cjs +1 -0
  136. package/components/crud/CrudComponent.d.ts +237 -0
  137. package/components/crud/CrudComponent.js +210 -0
  138. package/components/crud/CrudField.cjs +1 -0
  139. package/components/crud/CrudField.d.ts +4 -0
  140. package/components/crud/CrudField.js +459 -0
  141. package/components/crud/CrudForm.cjs +1 -0
  142. package/components/crud/CrudForm.d.ts +14 -0
  143. package/components/crud/CrudForm.js +91 -0
  144. package/components/crud/CrudFormWizard.cjs +1 -0
  145. package/components/crud/CrudFormWizard.d.ts +14 -0
  146. package/components/crud/CrudFormWizard.js +140 -0
  147. package/components/crud/CrudReportComponent.cjs +4 -0
  148. package/components/crud/CrudReportComponent.d.ts +44 -0
  149. package/components/crud/CrudReportComponent.js +255 -0
  150. package/components/crud/CrudSearchComponent.cjs +1 -0
  151. package/components/crud/CrudSearchComponent.d.ts +21 -0
  152. package/components/crud/CrudSearchComponent.js +95 -0
  153. package/components/crud/FileCrudField.cjs +1 -0
  154. package/components/crud/FileCrudField.d.ts +25 -0
  155. package/components/crud/FileCrudField.js +220 -0
  156. package/components/crud/ImageCrudField.cjs +1 -0
  157. package/components/crud/ImageCrudField.d.ts +38 -0
  158. package/components/crud/ImageCrudField.js +113 -0
  159. package/components/crud/import/CrudImportButton.cjs +1 -0
  160. package/components/crud/import/CrudImportButton.d.ts +3 -0
  161. package/components/crud/import/CrudImportButton.js +31 -0
  162. package/components/crud/import/CrudImportComponent.cjs +2 -0
  163. package/components/crud/import/CrudImportComponent.d.ts +14 -0
  164. package/components/crud/import/CrudImportComponent.js +223 -0
  165. package/components/crud/index.d.ts +15 -0
  166. package/components/crud/view/CrudDecListView.cjs +1 -0
  167. package/components/crud/view/CrudDecListView.d.ts +14 -0
  168. package/components/crud/view/CrudDecListView.js +42 -0
  169. package/components/crud/view/CrudViewer.cjs +1 -0
  170. package/components/crud/view/CrudViewer.d.ts +43 -0
  171. package/components/crud/view/CrudViewer.js +217 -0
  172. package/components/crud/view/CrudViewerUtil.cjs +1 -0
  173. package/components/crud/view/CrudViewerUtil.d.ts +2 -0
  174. package/components/crud/view/CrudViewerUtil.js +57 -0
  175. package/components/crud/view/index.d.ts +5 -0
  176. package/index.cjs +1 -0
  177. package/index.d.ts +4 -0
  178. package/index.js +32 -0
  179. package/locale/hooks/translation-constants.cjs +1 -0
  180. package/locale/hooks/translation-constants.d.ts +1 -0
  181. package/locale/hooks/translation-constants.js +4 -0
  182. package/locale/index.cjs +1 -0
  183. package/locale/index.d.ts +74 -0
  184. package/locale/index.js +37 -0
  185. package/locale/translations/en.cjs +1 -0
  186. package/locale/translations/en.d.ts +58 -0
  187. package/locale/translations/en.js +60 -0
  188. package/main.d.ts +0 -0
  189. package/package.json +5 -4
  190. package/util/DateUtil.cjs +1 -0
  191. package/util/DateUtil.d.ts +7 -0
  192. package/util/DateUtil.js +6 -0
  193. package/util/ImageUtil.cjs +1 -0
  194. package/util/ImageUtil.d.ts +14 -0
  195. package/util/ImageUtil.js +63 -0
  196. package/util/NumberUtil.cjs +1 -0
  197. package/util/NumberUtil.d.ts +17 -0
  198. package/util/NumberUtil.js +60 -0
  199. package/util/ValidationUtil.cjs +1 -0
  200. package/util/ValidationUtil.d.ts +14 -0
  201. package/util/ValidationUtil.js +60 -0
  202. package/util/index.cjs +1 -0
  203. package/util/index.d.ts +4 -0
  204. package/util/index.js +10 -0
  205. package/vite-env.d.ts +1 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime");;/* empty css */;/* empty css */const S=require("@ant-design/icons"),F=require("antd"),s=require("react"),xe=require("react-cropper"),he=require("react-i18next"),je=require("../../../locale/hooks/translation-constants.cjs"),E=require("../button/Button.cjs"),we=require("../../../util/ImageUtil.cjs"),Ce=F.Form.Item;function X(r){return new Promise((d,p)=>{const n=new FileReader;n.readAsDataURL(r),n.onload=()=>d(n.result),n.onerror=f=>p(f)})}const ve=({values:r=[],required:d,buttonType:p,label:n,name:f,onChange:m,aspectRatio:N,buttonTitle:j,hidePreview:w,buttonSize:g="large",showButtonText:x=!0,showOnlyIcon:D=!1,icon:y=t.jsx(S.UploadOutlined,{}),loading:O,maxCount:C=1,onAdd:l,onRemove:U,listType:I,..._})=>{const[Z,ee]=s.useState(""),[te,se]=s.useState(""),[re,z]=s.useState(!1),q=s.useRef(),a=s.useRef(),[i,M]=s.useState([]),[h,k]=s.useState(),ne=s.useRef(),oe=()=>z(!1),ae=async e=>{!e.url&&!e.preview&&(e.preview=await X(e.originFileObj)),se(e.url||e.preview),z(!0),ee(e.name)},[B,R]=s.useState(!1),ie=()=>{},T=e=>{var o;(o=a==null?void 0:a.current)==null||o.cropper.rotate(e?-90:90)};s.useEffect(()=>{m==null||m(i[0],i)},[i,m]);const ce=()=>{var b;const e=(b=a==null?void 0:a.current)==null?void 0:b.cropper.getCroppedCanvas(),{type:o,size:c,name:u,uid:v}=q.current;R(!0),e==null||e.toBlob(async me=>{const ge=Object.assign(new File([me],u,{type:o}),{uid:v}),G=await we.resizeImage(ge),K=await X(G),Q={url:K,name:u,uid:v,type:o,size:c,thumbUrl:K,originFileObj:G};if(l)try{R(!0),await l(Q)}finally{R(!1)}M([Q,...i]),R(!1)}),k(void 0)},le=()=>{k(void 0),q.current=void 0},L=s.useCallback(e=>{const o=e;if(o){q.current=o;const c=new FileReader;c.addEventListener("load",()=>{var u;if(typeof c.result=="string"){k(c.result);const v=localStorage.getItem("cropper.box"),b=v?JSON.parse(v):void 0;b&&((u=a==null?void 0:a.current)==null||u.cropper.setCropBoxData(b)),setTimeout(()=>{H()},100)}}),c.readAsDataURL(o)}},[]);s.useEffect(()=>{if(r!=null&&r.length||typeof r=="string"){const e=Array.isArray(r)?r.map(o=>[{uid:r,url:o}]):[{uid:r,url:r}];M(e)}},[r]);const{t:P}=he.useTranslation(je.TRANSLATION_NAMESPACE),de=s.useMemo(()=>d?{required:d,validator:(e,o,c)=>{h||i!=null&&i.length?c():c(`${n??""} ${P("err.validation.required")}`)}}:void 0,[d,h,i==null?void 0:i.length,n,P]),J=j??P("message.fileUploadMessage2"),V=s.useMemo(()=>t.jsx(Y,{showLoadingIndicator:B,_buttonTitle:J,buttonSize:g,buttonType:p,fileList:i,hidePreview:w,icon:y,loading:O,listType:I,maxCount:C,onChangeFile:L,onRemove:U,showButtonText:x,handlePreview:ae,setFileList:M}),[B,J,g,p,i,w,y,O,I,C,L,U,x]);ne.current=V.props.beforeUpload;const[ue,W]=s.useState(0),[pe,$]=s.useState(0),[A,fe]=s.useState();s.useEffect(()=>{const e=setTimeout(()=>{A&&localStorage.setItem("cropper.box",JSON.stringify(A))},400);return()=>clearTimeout(e)},[A]),s.useEffect(()=>{h||(W(0),$(0))},[h]);const H=s.useCallback(async()=>{var o;const e=(o=a==null?void 0:a.current)==null?void 0:o.cropper;if(e){const{width:c,height:u}=e.getCroppedCanvas();fe(e.getCropBoxData()),W(c),$(u)}},[]);return t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:n,..._,name:f,className:"mb-0",rules:[de,..._.rules??[]],children:V}),t.jsxs(F.Modal,{open:!!h,maskClosable:!1,onOk:ce,closable:!1,onCancel:le,children:[t.jsx(xe.Cropper,{ref:a,src:h,cropmove:H,viewMode:1,aspectRatio:N,cropend:()=>ie()}),t.jsx("p",{className:"text-center",children:[ue,pe].join(" ⨉ ")}),t.jsxs("div",{className:"mt-2 d-flex justify-content-center",children:[t.jsx(E,{size:"large",icon:t.jsx(S.RotateLeftOutlined,{}),onClick:()=>T(!0)}),t.jsx(E,{size:"large",icon:t.jsx(S.RotateRightOutlined,{}),onClick:()=>T(!1)})]})]}),t.jsx(F.Modal,{open:re,title:Z,footer:null,onCancel:oe,children:t.jsx("div",{className:"text-center",children:t.jsx("img",{alt:"example",style:{maxWidth:"400px"},src:te})})})]})},Y=({_buttonTitle:r,buttonSize:d,buttonType:p,fileList:n,hidePreview:f,icon:m,loading:N,maxCount:j,onChangeFile:w,onRemove:g,showButtonText:x,handlePreview:D,setFileList:y,showLoadingIndicator:O,listType:C="picture"})=>t.jsx(t.Fragment,{children:t.jsxs(F.Upload,{accept:"image/x-png,image/gif,image/jpeg",fileList:n,defaultFileList:n,onChange:()=>{},className:(n.length>=j?" hide-upload ":"")+" mb-0",multiple:!1,onPreview:f?void 0:D,onDrop:l=>(w(l.dataTransfer.files.item(0)),!1),listType:C,showUploadList:!f,onRemove:l=>{const U=n.filter(I=>l.uid!==I.uid);g==null||g(l),y(U)},beforeUpload:async l=>(w(l),!1),maxCount:j,children:[O&&t.jsx(S.LoadingOutlined,{}),t.jsx("div",{className:"d-flex flex-column",children:n.length<j&&(C==="picture-circle"?t.jsx(S.UploadOutlined,{}):t.jsx(E,{loading:N,tooltip:x?void 0:r,size:d,icon:m,type:x?p:"text",children:x?r:void 0}))})]},n.length)});exports.UploadComponent=Y;exports.default=ve;
@@ -0,0 +1,56 @@
1
+ import { FormItemProps } from 'antd';
2
+ import { UploadFile } from 'antd/lib/upload/interface';
3
+ import { FC, ReactElement } from 'react';
4
+ import { UploadListType } from 'antd/es/upload/interface';
5
+ export declare function dataURLtoFile({ url, name }: {
6
+ url: any;
7
+ name: any;
8
+ }): File;
9
+ interface Props extends FormItemProps {
10
+ values?: string[] | string;
11
+ maxCount?: number;
12
+ onChange?: (file?: UploadFile, allFiles?: UploadFile[]) => void;
13
+ buttonTitle?: string;
14
+ listType?: UploadListType;
15
+ hidePreview?: boolean;
16
+ buttonSize?: string;
17
+ showButtonText?: boolean;
18
+ aspectRatio?: number;
19
+ showOnlyIcon?: boolean;
20
+ icon?: ReactElement;
21
+ loading?: boolean;
22
+ buttonType?: string;
23
+ onAdd?: (file?: UploadFile) => Promise<void>;
24
+ onRemove?: (file?: UploadFile) => void;
25
+ }
26
+ /**
27
+ * When submitting Uploader
28
+ * ```
29
+ * if(field === undefined)
30
+ * "There is no file uploaded"
31
+ * else if(field.fileList.length === 0)
32
+ * "The initial file is deleted"
33
+ * else if(field.fileList.length > 1)
34
+ * "A new file has been uploaded"
35
+ * ```
36
+ *
37
+ */
38
+ declare const ImagePicker: FC<Props>;
39
+ export declare const UploadComponent: FC<{
40
+ _buttonTitle: any;
41
+ buttonSize: any;
42
+ buttonType: any;
43
+ fileList: any;
44
+ hidePreview: any;
45
+ icon: any;
46
+ loading: any;
47
+ maxCount: any;
48
+ onChangeFile: any;
49
+ onRemove: any;
50
+ showButtonText: any;
51
+ handlePreview: any;
52
+ setFileList: any;
53
+ showLoadingIndicator?: boolean;
54
+ listType?: UploadListType;
55
+ }>;
56
+ export default ImagePicker;
@@ -0,0 +1,282 @@
1
+ import { jsx as t, jsxs as S, Fragment as oe } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { RotateLeftOutlined as ye, RotateRightOutlined as Ie, UploadOutlined as ne, LoadingOutlined as Oe } from "@ant-design/icons";
5
+ import { Form as Ue, Modal as q, Upload as Ne } from "antd";
6
+ import z, { useRef as B, useState as w, useEffect as R, useCallback as ee, useMemo as te } from "react";
7
+ import { Cropper as Fe } from "react-cropper";
8
+ import { useTranslation as Re } from "react-i18next";
9
+ import { TRANSLATION_NAMESPACE as Se } from "../../../locale/hooks/translation-constants.js";
10
+ import E from "../button/Button.js";
11
+ import je from "../../../util/ImageUtil.js";
12
+ const ke = Ue.Item;
13
+ function re(r) {
14
+ return new Promise((l, p) => {
15
+ const o = new FileReader();
16
+ o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (m) => p(m);
17
+ });
18
+ }
19
+ const We = ({
20
+ values: r = [],
21
+ required: l,
22
+ buttonType: p,
23
+ label: o,
24
+ name: m,
25
+ onChange: f,
26
+ aspectRatio: j,
27
+ buttonTitle: C,
28
+ hidePreview: v,
29
+ buttonSize: u = "large",
30
+ showButtonText: g = !0,
31
+ showOnlyIcon: _ = !1,
32
+ icon: I = /* @__PURE__ */ t(ne, {}),
33
+ loading: O,
34
+ maxCount: b = 1,
35
+ onAdd: c,
36
+ onRemove: U,
37
+ listType: N,
38
+ ...L
39
+ }) => {
40
+ const [ie, ae] = z.useState(""), [se, ce] = z.useState(""), [le, T] = z.useState(!1), k = B(), i = B(), [a, A] = w([]), [h, P] = w(), de = B(), pe = () => T(!1), me = async (e) => {
41
+ !e.url && !e.preview && (e.preview = await re(e.originFileObj)), ce(e.url || e.preview), T(!0), ae(e.name);
42
+ }, [J, F] = w(!1), fe = () => {
43
+ }, V = (e) => {
44
+ var n;
45
+ (n = i == null ? void 0 : i.current) == null || n.cropper.rotate(e ? -90 : 90);
46
+ };
47
+ R(() => {
48
+ f == null || f(a[0], a);
49
+ }, [a, f]);
50
+ const ue = () => {
51
+ var y;
52
+ const e = (y = i == null ? void 0 : i.current) == null ? void 0 : y.cropper.getCroppedCanvas(), { type: n, size: s, name: d, uid: x } = k.current;
53
+ F(!0), e == null || e.toBlob(async (be) => {
54
+ const xe = Object.assign(new File([be], d, { type: n }), {
55
+ uid: x
56
+ }), X = await je.resizeImage(xe), Y = await re(X), Z = {
57
+ url: Y,
58
+ name: d,
59
+ uid: x,
60
+ type: n,
61
+ size: s,
62
+ thumbUrl: Y,
63
+ originFileObj: X
64
+ };
65
+ if (c)
66
+ try {
67
+ F(!0), await c(Z);
68
+ } finally {
69
+ F(!1);
70
+ }
71
+ A([Z, ...a]), F(!1);
72
+ }), P(void 0);
73
+ }, ge = () => {
74
+ P(void 0), k.current = void 0;
75
+ }, W = ee((e) => {
76
+ const n = e;
77
+ if (n) {
78
+ k.current = n;
79
+ const s = new FileReader();
80
+ s.addEventListener("load", () => {
81
+ var d;
82
+ if (typeof s.result == "string") {
83
+ P(s.result);
84
+ const x = localStorage.getItem("cropper.box"), y = x ? JSON.parse(x) : void 0;
85
+ y && ((d = i == null ? void 0 : i.current) == null || d.cropper.setCropBoxData(y)), setTimeout(() => {
86
+ Q();
87
+ }, 100);
88
+ }
89
+ }), s.readAsDataURL(n);
90
+ }
91
+ }, []);
92
+ R(() => {
93
+ if (r != null && r.length || typeof r == "string") {
94
+ const e = Array.isArray(r) ? r.map((n) => [{ uid: r, url: n }]) : [{ uid: r, url: r }];
95
+ A(e);
96
+ }
97
+ }, [r]);
98
+ const { t: D } = Re(Se), he = te(
99
+ () => l ? {
100
+ required: l,
101
+ validator: (e, n, s) => {
102
+ h || a != null && a.length ? s() : s(`${o ?? ""} ${D("err.validation.required")}`);
103
+ }
104
+ } : void 0,
105
+ [l, h, a == null ? void 0 : a.length, o, D]
106
+ ), $ = C ?? D("message.fileUploadMessage2"), H = te(
107
+ () => /* @__PURE__ */ t(
108
+ Ae,
109
+ {
110
+ showLoadingIndicator: J,
111
+ _buttonTitle: $,
112
+ buttonSize: u,
113
+ buttonType: p,
114
+ fileList: a,
115
+ hidePreview: v,
116
+ icon: I,
117
+ loading: O,
118
+ listType: N,
119
+ maxCount: b,
120
+ onChangeFile: W,
121
+ onRemove: U,
122
+ showButtonText: g,
123
+ handlePreview: me,
124
+ setFileList: A
125
+ }
126
+ ),
127
+ [
128
+ J,
129
+ $,
130
+ u,
131
+ p,
132
+ a,
133
+ v,
134
+ I,
135
+ O,
136
+ N,
137
+ b,
138
+ W,
139
+ U,
140
+ g
141
+ ]
142
+ );
143
+ de.current = H.props.beforeUpload;
144
+ const [we, G] = w(0), [Ce, K] = w(0), [M, ve] = w();
145
+ R(() => {
146
+ const e = setTimeout(() => {
147
+ M && localStorage.setItem("cropper.box", JSON.stringify(M));
148
+ }, 400);
149
+ return () => clearTimeout(e);
150
+ }, [M]), R(() => {
151
+ h || (G(0), K(0));
152
+ }, [h]);
153
+ const Q = ee(async () => {
154
+ var n;
155
+ const e = (n = i == null ? void 0 : i.current) == null ? void 0 : n.cropper;
156
+ if (e) {
157
+ const { width: s, height: d } = e.getCroppedCanvas();
158
+ ve(e.getCropBoxData()), G(s), K(d);
159
+ }
160
+ }, []);
161
+ return /* @__PURE__ */ S(oe, { children: [
162
+ /* @__PURE__ */ t(
163
+ ke,
164
+ {
165
+ label: o,
166
+ ...L,
167
+ name: m,
168
+ className: "mb-0",
169
+ rules: [he, ...L.rules ?? []],
170
+ children: H
171
+ }
172
+ ),
173
+ /* @__PURE__ */ S(
174
+ q,
175
+ {
176
+ open: !!h,
177
+ maskClosable: !1,
178
+ onOk: ue,
179
+ closable: !1,
180
+ onCancel: ge,
181
+ children: [
182
+ /* @__PURE__ */ t(
183
+ Fe,
184
+ {
185
+ ref: i,
186
+ src: h,
187
+ cropmove: Q,
188
+ viewMode: 1,
189
+ aspectRatio: j,
190
+ cropend: () => fe()
191
+ }
192
+ ),
193
+ /* @__PURE__ */ t("p", { className: "text-center", children: [we, Ce].join(" ⨉ ") }),
194
+ /* @__PURE__ */ S("div", { className: "mt-2 d-flex justify-content-center", children: [
195
+ /* @__PURE__ */ t(
196
+ E,
197
+ {
198
+ size: "large",
199
+ icon: /* @__PURE__ */ t(ye, {}),
200
+ onClick: () => V(!0)
201
+ }
202
+ ),
203
+ /* @__PURE__ */ t(
204
+ E,
205
+ {
206
+ size: "large",
207
+ icon: /* @__PURE__ */ t(Ie, {}),
208
+ onClick: () => V(!1)
209
+ }
210
+ )
211
+ ] })
212
+ ]
213
+ }
214
+ ),
215
+ /* @__PURE__ */ t(
216
+ q,
217
+ {
218
+ open: le,
219
+ title: ie,
220
+ footer: null,
221
+ onCancel: pe,
222
+ children: /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t("img", { alt: "example", style: { maxWidth: "400px" }, src: se }) })
223
+ }
224
+ )
225
+ ] });
226
+ }, Ae = ({
227
+ _buttonTitle: r,
228
+ buttonSize: l,
229
+ buttonType: p,
230
+ fileList: o,
231
+ hidePreview: m,
232
+ icon: f,
233
+ loading: j,
234
+ maxCount: C,
235
+ onChangeFile: v,
236
+ onRemove: u,
237
+ showButtonText: g,
238
+ handlePreview: _,
239
+ setFileList: I,
240
+ showLoadingIndicator: O,
241
+ listType: b = "picture"
242
+ }) => /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ S(
243
+ Ne,
244
+ {
245
+ accept: "image/x-png,image/gif,image/jpeg",
246
+ fileList: o,
247
+ defaultFileList: o,
248
+ onChange: () => {
249
+ },
250
+ className: (o.length >= C ? " hide-upload " : "") + " mb-0",
251
+ multiple: !1,
252
+ onPreview: m ? void 0 : _,
253
+ onDrop: (c) => (v(c.dataTransfer.files.item(0)), !1),
254
+ listType: b,
255
+ showUploadList: !m,
256
+ onRemove: (c) => {
257
+ const U = o.filter((N) => c.uid !== N.uid);
258
+ u == null || u(c), I(U);
259
+ },
260
+ beforeUpload: async (c) => (v(c), !1),
261
+ maxCount: C,
262
+ children: [
263
+ O && /* @__PURE__ */ t(Oe, {}),
264
+ /* @__PURE__ */ t("div", { className: "d-flex flex-column", children: o.length < C && (b === "picture-circle" ? /* @__PURE__ */ t(ne, {}) : /* @__PURE__ */ t(
265
+ E,
266
+ {
267
+ loading: j,
268
+ tooltip: g ? void 0 : r,
269
+ size: l,
270
+ icon: f,
271
+ type: g ? p : "text",
272
+ children: g ? r : void 0
273
+ }
274
+ )) })
275
+ ]
276
+ },
277
+ o.length
278
+ ) });
279
+ export {
280
+ Ae as UploadComponent,
281
+ We as default
282
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ImagePicker } from './ImagePicker';
2
+ export { ImagePicker };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),t=require("antd"),c=require("react"),d=({button:a,disabled:i,...n})=>{const m=c.useMemo(()=>{const{enum:e,translations:o}=n;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 n.values},[n]),l=a?t.Radio.Button:t.Radio;return s.jsx(t.Form.Item,{...n,children:s.jsx(t.Radio.Group,{disabled:i,children:m.map(({key:e,value:o})=>s.jsx(l,{value:e,children:o},e))})})},R=c.memo(d);module.exports=R;
@@ -0,0 +1,18 @@
1
+ import { FormItemProps } from 'antd';
2
+ interface GeneralProps extends FormItemProps {
3
+ values: {
4
+ key: string | number | undefined;
5
+ value: string | number;
6
+ }[];
7
+ }
8
+ interface EnumProps extends FormItemProps {
9
+ enum: string[];
10
+ translations?: any;
11
+ }
12
+ type Props = (GeneralProps | EnumProps) & {
13
+ onChange?: (evt: boolean) => void;
14
+ disabled?: boolean;
15
+ button?: boolean;
16
+ };
17
+ declare const _default: import('react').NamedExoticComponent<Props>;
18
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { Radio as m, Form as i } from "antd";
3
+ import { memo as p, useMemo as d } from "react";
4
+ const f = ({ button: a, disabled: s, ...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;
12
+ } else
13
+ return n.values;
14
+ }, [n]), c = a ? m.Button : m;
15
+ return /* @__PURE__ */ u(i.Item, { ...n, children: /* @__PURE__ */ u(m.Group, { disabled: s, children: l.map(({ key: e, value: o }) => /* @__PURE__ */ u(c, { value: e, children: o }, e)) }) });
16
+ }, G = p(f);
17
+ export {
18
+ G as default
19
+ };
@@ -0,0 +1,2 @@
1
+ import { default as RadioGroupComponent } from './RadioGroupComponent';
2
+ export { RadioGroupComponent };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("antd"),u=require("react"),f=require("../select/SelectComponent.cjs"),b=({className:a,onSelect:d,label:S,required:p,name:l,mode:c,items:t})=>{const r=o.Form.useFormInstance(),[s,F]=u.useState(!0);return u.useEffect(()=>{if(t&&s){const e=t.filter(i=>i.alreadySelected).map(i=>i.id);r==null||r.setFieldsValue({[l]:c==="multiple"?e:e==null?void 0:e[0]}),F(!1)}},[s,r,t,c,l]),n.jsx(f,{required:p,label:S,mode:c,className:a,name:l,onSelect:d,items:t,itemBuilder:e=>n.jsx(o.Select.Option,{value:e.id,disabled:e.lock,children:e.label},e.id)})};exports.SelectFieldInReport=b;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ export interface ReportSelectFieldItems {
3
+ id: any;
4
+ label: string;
5
+ lock?: boolean;
6
+ alreadySelected?: boolean;
7
+ }
8
+ export declare const SelectFieldInReport: FC<{
9
+ mode?: "multiple" | "tags" | undefined;
10
+ name: string;
11
+ label: string;
12
+ className?: string;
13
+ required?: boolean;
14
+ onSelect?: (val: any) => void;
15
+ items: ReportSelectFieldItems[];
16
+ }>;
@@ -0,0 +1,30 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { Form as f, Select as m } from "antd";
3
+ import { useState as F, useEffect as S } from "react";
4
+ import b from "../select/SelectComponent.js";
5
+ const k = ({ className: n, onSelect: p, label: u, required: a, name: l, mode: o, items: e }) => {
6
+ const r = f.useFormInstance(), [c, d] = F(!0);
7
+ return S(() => {
8
+ if (e && c) {
9
+ const t = e.filter((i) => i.alreadySelected).map((i) => i.id);
10
+ r == null || r.setFieldsValue({
11
+ [l]: o === "multiple" ? t : t == null ? void 0 : t[0]
12
+ }), d(!1);
13
+ }
14
+ }, [c, r, e, o, l]), /* @__PURE__ */ s(
15
+ b,
16
+ {
17
+ required: a,
18
+ label: u,
19
+ mode: o,
20
+ className: n,
21
+ name: l,
22
+ onSelect: p,
23
+ items: e,
24
+ itemBuilder: (t) => /* @__PURE__ */ s(m.Option, { value: t.id, disabled: t.lock, children: t.label }, t.id)
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ k as SelectFieldInReport
30
+ };
@@ -0,0 +1,3 @@
1
+ import { SelectFieldInReport, ReportSelectFieldItems } from './SelectFieldInReport';
2
+ export { SelectFieldInReport };
3
+ export type { ReportSelectFieldItems };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react/jsx-runtime"),s=require("antd"),n=s.List.Item.Meta,r=s.List.Item,o=({title:e,description:i,children:c})=>t.jsxs(r,{className:"",children:[t.jsx("div",{children:t.jsx(n,{title:e,description:i})}),t.jsx("div",{className:"float-right",children:c})]});module.exports=o;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ type CustomSelectOptionProps = {
3
+ title: string;
4
+ description?: string;
5
+ };
6
+ declare const CustomSelectOption: FC<PropsWithChildren<CustomSelectOptionProps>>;
7
+ export default CustomSelectOption;
@@ -0,0 +1,13 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { List as e } from "antd";
3
+ const a = e.Item.Meta, i = e.Item, n = ({
4
+ title: s,
5
+ description: o,
6
+ children: m
7
+ }) => /* @__PURE__ */ r(i, { className: "", children: [
8
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(a, { title: s, description: o }) }),
9
+ /* @__PURE__ */ t("div", { className: "float-right", children: m })
10
+ ] });
11
+ export {
12
+ n as default
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),a=require("antd"),k=require("react"),H=require("react-i18next"),P=require("../../../locale/hooks/translation-constants.cjs"),b=require("../tooltip/TooltipComponent.cjs");function B({label:l,rules:j=[],required:w,placeholder:h,notSearch:q,children:x,readOnly:s,items:o,dropdownRender:L,itemBuilder:T,loading:f,showLoadingInEmptyIndicator:N,nameFieldInArray:m="name",innerRef:_,tooltip:I,filterOption:p,tagRender:A,...n}){const{t:E}=H.useTranslation(P.TRANSLATION_NAMESPACE),M=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[m];return r.jsx("option",{value:t,children:r.jsx("div",{dangerouslySetInnerHTML:{__html:c}})},t)},[m]);return r.jsx(a.ConfigProvider,{renderEmpty:N&&f?()=>r.jsx(a.Spin,{}):void 0,children:r.jsx(b,{title:I,children:r.jsx(a.Form.Item,{label:l,name:n.name,help:n.help,className:n.className,rules:[...j,{required:w,message:`${l??h??""} ${E("err.validation.required")}`}],children:r.jsx(a.Select,{ref:_,loading:f,open:s?!1:void 0,onChange:!s&&n.onChange,allowClear:!s&&n.allowClear,showSearch:!q,className:`max-width ${s?"readOnly":""}`,...n,tagRender:A,placeholder:h??l,filterOption:p??((e,t)=>{var c,C,u,g;try{const i=(u=(C=(c=t==null?void 0:t.children)==null?void 0:c.props)==null?void 0:C.dangerouslySetInnerHTML)==null?void 0:u.__html,O=e.toLowerCase().split(/\s+/),S=(t==null?void 0:t.children)??"",y=typeof S=="string"?S.toLowerCase():typeof i=="string"?i.toLowerCase():"",R=(((g=t==null?void 0:t.value)==null?void 0:g.toString())??"").toLowerCase(),$=y.replace(/\s/g,"");return O.every(d=>y.indexOf(d)>=0||R.indexOf(d)>=0||$.indexOf(d)>=0)}catch(i){return console.log(i),!0}}),dropdownRender:L,children:x===null?void 0:x??(o&&(o==null?void 0:o.map(T??M)))})})})})}module.exports=B;
@@ -0,0 +1,21 @@
1
+ import { FormItemProps, SelectProps } from 'antd';
2
+ import { RefSelectProps } from 'antd/lib/select';
3
+ import { ReactElement } from 'react';
4
+ export type SelectTagRenderProps = SelectProps["tagRender"];
5
+ interface SelectComponentProps<T> extends SelectProps<any>, FormItemProps<any> {
6
+ children?: any[] | null;
7
+ required?: boolean;
8
+ notSearch?: boolean;
9
+ readOnly?: boolean;
10
+ status?: any;
11
+ nameFieldInArray?: string;
12
+ items?: T[];
13
+ showLoadingInEmptyIndicator?: boolean;
14
+ itemBuilder?: (t: T) => ReactElement;
15
+ dropdownRender?: (menu: ReactElement) => ReactElement;
16
+ innerRef?: React.Ref<RefSelectProps>;
17
+ filterOption?: SelectProps["filterOption"];
18
+ tagRender?: SelectTagRenderProps;
19
+ }
20
+ declare function SelectComponent<T = any>({ label, rules, required, placeholder, notSearch, children, readOnly, items, dropdownRender, itemBuilder, loading, showLoadingInEmptyIndicator, nameFieldInArray, innerRef, tooltip, filterOption, tagRender, ...props }: SelectComponentProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ export default SelectComponent;
@@ -0,0 +1,89 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { ConfigProvider as P, Spin as b, Form as j, Select as q } from "antd";
3
+ import { useCallback as B } from "react";
4
+ import { useTranslation as D } from "react-i18next";
5
+ import { TRANSLATION_NAMESPACE as F } from "../../../locale/hooks/translation-constants.js";
6
+ import R from "../tooltip/TooltipComponent.js";
7
+ function Q({
8
+ label: m,
9
+ rules: w = [],
10
+ required: x,
11
+ placeholder: l,
12
+ notSearch: L,
13
+ children: a,
14
+ readOnly: o,
15
+ items: s,
16
+ dropdownRender: T,
17
+ itemBuilder: u,
18
+ loading: d,
19
+ showLoadingInEmptyIndicator: N,
20
+ nameFieldInArray: h = "name",
21
+ innerRef: _,
22
+ tooltip: A,
23
+ filterOption: E,
24
+ tagRender: I,
25
+ ...n
26
+ }) {
27
+ const { t: M } = D(F), O = B(
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("option", { value: r, children: /* @__PURE__ */ t("div", { dangerouslySetInnerHTML: { __html: c } }) }, r);
31
+ },
32
+ [h]
33
+ );
34
+ return /* @__PURE__ */ t(
35
+ P,
36
+ {
37
+ renderEmpty: N && d ? () => /* @__PURE__ */ t(b, {}) : void 0,
38
+ children: /* @__PURE__ */ t(R, { title: A, children: /* @__PURE__ */ t(
39
+ j.Item,
40
+ {
41
+ label: m,
42
+ name: n.name,
43
+ help: n.help,
44
+ className: n.className,
45
+ rules: [
46
+ ...w,
47
+ {
48
+ required: x,
49
+ message: `${m ?? l ?? ""} ${M(
50
+ "err.validation.required"
51
+ )}`
52
+ }
53
+ ],
54
+ children: /* @__PURE__ */ t(
55
+ q,
56
+ {
57
+ ref: _,
58
+ loading: d,
59
+ open: o ? !1 : void 0,
60
+ onChange: !o && n.onChange,
61
+ allowClear: !o && n.allowClear,
62
+ showSearch: !L,
63
+ className: `max-width ${o ? "readOnly" : ""}`,
64
+ ...n,
65
+ tagRender: I,
66
+ placeholder: l ?? m,
67
+ filterOption: E ?? ((e, r) => {
68
+ var c, C, g, S;
69
+ try {
70
+ const i = (g = (C = (c = r == null ? void 0 : r.children) == null ? void 0 : c.props) == null ? void 0 : C.dangerouslySetInnerHTML) == null ? void 0 : g.__html, $ = e.toLowerCase().split(/\s+/), p = (r == null ? void 0 : r.children) ?? "", y = typeof p == "string" ? p.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", k = (((S = r == null ? void 0 : r.value) == null ? void 0 : S.toString()) ?? "").toLowerCase(), H = y.replace(/\s/g, "");
71
+ return $.every(
72
+ (f) => y.indexOf(f) >= 0 || k.indexOf(f) >= 0 || H.indexOf(f) >= 0
73
+ );
74
+ } catch (i) {
75
+ return console.log(i), !0;
76
+ }
77
+ }),
78
+ dropdownRender: T,
79
+ children: a === null ? void 0 : a ?? (s && (s == null ? void 0 : s.map(u ?? O)))
80
+ }
81
+ )
82
+ }
83
+ ) })
84
+ }
85
+ );
86
+ }
87
+ export {
88
+ Q as default
89
+ };
@@ -0,0 +1,3 @@
1
+ import { default as SelectComponent } from './SelectComponent';
2
+ import { default as CustomSelectOption } from './CustomSelectOption';
3
+ export { SelectComponent, CustomSelectOption };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("react-show-more-text");;/* empty css */const e=r=>t.jsx(o,{...r});exports.ShowMore=e;exports.default=e;
@@ -0,0 +1,4 @@
1
+ import { ReactShowMoreTextProps } from 'react-show-more-text';
2
+ export declare const ShowMore: React.FC<ReactShowMoreTextProps>;
3
+ export type { ReactShowMoreTextProps };
4
+ export default ShowMore;
@@ -0,0 +1,8 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import t from "react-show-more-text";
3
+ /* empty css */
4
+ const a = (o) => /* @__PURE__ */ r(t, { ...o });
5
+ export {
6
+ a as ShowMore,
7
+ a as default
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("antd"),g=require("../../../context/WindowDimension.cjs"),i=require("react"),u=require("react-router"),q=require("react-router-dom"),{Content:T}=c.Layout,y=({positionOfRoute:n,initialKey:s="*",tabs:l,className:d="",mode:h="default"})=>{const[b,m]=i.useState(s),o=u.useNavigate(),p=e=>{o(e)},r=q.useLocation();i.useEffect(()=>{const e=r.pathname.split("/")[n];m(e??""),e||o(s,{replace:!0})},[s,r.pathname,o,n]);const{isDesktop:x}=g(),a=h==="side"&&x,f=a?"left":"top",j=a?"d-flex h-100":"";return t.jsxs("div",{className:`${d} ${j}`,children:[t.jsx(c.Tabs,{type:"card",tabPosition:f,activeKey:b,onChange:p,children:l.map(({key:e,label:v})=>t.jsx(c.Tabs.TabPane,{tab:v},e))}),t.jsx(T,{className:`max-height ${a?"overflow-auto":""}`,children:t.jsx(u.Outlet,{})})]})};exports.TabViewWithRoute=y;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface TabViewWithRouteProps {
3
+ initialKey?: string;
4
+ positionOfRoute: number;
5
+ className?: string;
6
+ tabs: {
7
+ label: React.ReactNode;
8
+ key: string;
9
+ }[];
10
+ mode?: 'side' | 'default';
11
+ }
12
+ export declare const TabViewWithRoute: React.FC<TabViewWithRouteProps>;
13
+ export {};