@kingteza/crud-component 1.0.23 → 1.0.24

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 (203) hide show
  1. package/package.json +19 -19
  2. package/dist/App.d.ts +0 -2
  3. package/dist/components/common/DatePicker/DatePicker.cjs +0 -1
  4. package/dist/components/common/DatePicker/DatePicker.d.ts +0 -37
  5. package/dist/components/common/DatePicker/DatePicker.js +0 -88
  6. package/dist/components/common/DatePicker/TimePicker.cjs +0 -1
  7. package/dist/components/common/DatePicker/TimePicker.d.ts +0 -34
  8. package/dist/components/common/DatePicker/TimePicker.js +0 -78
  9. package/dist/components/common/DatePicker/index.d.ts +0 -3
  10. package/dist/components/common/appearance/Hider.cjs +0 -1
  11. package/dist/components/common/appearance/Hider.d.ts +0 -6
  12. package/dist/components/common/appearance/Hider.js +0 -5
  13. package/dist/components/common/appearance/index.d.ts +0 -0
  14. package/dist/components/common/button/Button.cjs +0 -1
  15. package/dist/components/common/button/Button.d.ts +0 -12
  16. package/dist/components/common/button/Button.js +0 -79
  17. package/dist/components/common/button/CloneButtonTable.cjs +0 -1
  18. package/dist/components/common/button/CloneButtonTable.d.ts +0 -6
  19. package/dist/components/common/button/CloneButtonTable.js +0 -20
  20. package/dist/components/common/button/DeleteButtonTable.cjs +0 -1
  21. package/dist/components/common/button/DeleteButtonTable.d.ts +0 -13
  22. package/dist/components/common/button/DeleteButtonTable.js +0 -68
  23. package/dist/components/common/button/ExportButton.cjs +0 -1
  24. package/dist/components/common/button/ExportButton.d.ts +0 -4
  25. package/dist/components/common/button/ExportButton.js +0 -27
  26. package/dist/components/common/button/HideButtonTable.cjs +0 -1
  27. package/dist/components/common/button/HideButtonTable.d.ts +0 -13
  28. package/dist/components/common/button/HideButtonTable.js +0 -68
  29. package/dist/components/common/button/ImportButton.cjs +0 -1
  30. package/dist/components/common/button/ImportButton.d.ts +0 -9
  31. package/dist/components/common/button/ImportButton.js +0 -56
  32. package/dist/components/common/button/NewButton.cjs +0 -1
  33. package/dist/components/common/button/NewButton.d.ts +0 -12
  34. package/dist/components/common/button/NewButton.js +0 -24
  35. package/dist/components/common/button/PrintButton.cjs +0 -1
  36. package/dist/components/common/button/PrintButton.d.ts +0 -12
  37. package/dist/components/common/button/PrintButton.js +0 -26
  38. package/dist/components/common/button/RefreshButton.cjs +0 -1
  39. package/dist/components/common/button/RefreshButton.d.ts +0 -11
  40. package/dist/components/common/button/RefreshButton.js +0 -24
  41. package/dist/components/common/button/UnHideButton.cjs +0 -1
  42. package/dist/components/common/button/UnHideButton.d.ts +0 -14
  43. package/dist/components/common/button/UnHideButton.js +0 -70
  44. package/dist/components/common/button/UpdateButtonTable.cjs +0 -1
  45. package/dist/components/common/button/UpdateButtonTable.d.ts +0 -6
  46. package/dist/components/common/button/UpdateButtonTable.js +0 -20
  47. package/dist/components/common/button/ViewButtonTable.cjs +0 -1
  48. package/dist/components/common/button/ViewButtonTable.d.ts +0 -6
  49. package/dist/components/common/button/ViewButtonTable.js +0 -20
  50. package/dist/components/common/button/index.d.ts +0 -14
  51. package/dist/components/common/check-box/CheckBox.cjs +0 -1
  52. package/dist/components/common/check-box/CheckBox.d.ts +0 -9
  53. package/dist/components/common/check-box/CheckBox.js +0 -40
  54. package/dist/components/common/check-box/index.d.ts +0 -2
  55. package/dist/components/common/description/DescList.cjs +0 -1
  56. package/dist/components/common/description/DescList.d.ts +0 -18
  57. package/dist/components/common/description/DescList.js +0 -16
  58. package/dist/components/common/description/DescriptionComponent.d.ts +0 -7
  59. package/dist/components/common/description/index.d.ts +0 -3
  60. package/dist/components/common/index.d.ts +0 -22
  61. package/dist/components/common/layout/VerticalSpace.cjs +0 -1
  62. package/dist/components/common/layout/VerticalSpace.d.ts +0 -5
  63. package/dist/components/common/layout/VerticalSpace.js +0 -6
  64. package/dist/components/common/layout/index.d.ts +0 -2
  65. package/dist/components/common/loading/LoadingIndicator.cjs +0 -1
  66. package/dist/components/common/loading/LoadingIndicator.d.ts +0 -6
  67. package/dist/components/common/loading/LoadingIndicator.js +0 -24
  68. package/dist/components/common/loading/index.d.ts +0 -2
  69. package/dist/components/common/picker/ImagePicker.cjs +0 -1
  70. package/dist/components/common/picker/ImagePicker.d.ts +0 -56
  71. package/dist/components/common/picker/ImagePicker.js +0 -282
  72. package/dist/components/common/picker/index.d.ts +0 -2
  73. package/dist/components/common/radio/RadioGroupComponent.cjs +0 -1
  74. package/dist/components/common/radio/RadioGroupComponent.d.ts +0 -18
  75. package/dist/components/common/radio/RadioGroupComponent.js +0 -19
  76. package/dist/components/common/radio/index.d.ts +0 -2
  77. package/dist/components/common/report/SelectFieldInReport.cjs +0 -1
  78. package/dist/components/common/report/SelectFieldInReport.d.ts +0 -16
  79. package/dist/components/common/report/SelectFieldInReport.js +0 -30
  80. package/dist/components/common/report/index.d.ts +0 -3
  81. package/dist/components/common/select/CustomSelectOption.cjs +0 -1
  82. package/dist/components/common/select/CustomSelectOption.d.ts +0 -7
  83. package/dist/components/common/select/CustomSelectOption.js +0 -13
  84. package/dist/components/common/select/SelectComponent.cjs +0 -1
  85. package/dist/components/common/select/SelectComponent.d.ts +0 -21
  86. package/dist/components/common/select/SelectComponent.js +0 -89
  87. package/dist/components/common/select/index.d.ts +0 -3
  88. package/dist/components/common/show-more/index.cjs +0 -1
  89. package/dist/components/common/show-more/index.d.ts +0 -4
  90. package/dist/components/common/show-more/index.js +0 -8
  91. package/dist/components/common/tab/TabViewWithRoute.cjs +0 -1
  92. package/dist/components/common/tab/TabViewWithRoute.d.ts +0 -13
  93. package/dist/components/common/tab/TabViewWithRoute.js +0 -38
  94. package/dist/components/common/tab/index.d.ts +0 -2
  95. package/dist/components/common/table/index.d.ts +0 -3
  96. package/dist/components/common/table/table.cjs +0 -1
  97. package/dist/components/common/table/table.d.ts +0 -19
  98. package/dist/components/common/table/table.js +0 -40
  99. package/dist/components/common/tag/StatusTag.cjs +0 -1
  100. package/dist/components/common/tag/StatusTag.d.ts +0 -14
  101. package/dist/components/common/tag/StatusTag.js +0 -30
  102. package/dist/components/common/tag/index.d.ts +0 -2
  103. package/dist/components/common/text/index.cjs +0 -1
  104. package/dist/components/common/text/index.d.ts +0 -3
  105. package/dist/components/common/text/index.js +0 -5
  106. package/dist/components/common/text/title/TitleWithHeadTitle.d.ts +0 -7
  107. package/dist/components/common/text/title/index.cjs +0 -1
  108. package/dist/components/common/text/title/index.d.ts +0 -1
  109. package/dist/components/common/text/title/index.js +0 -5
  110. package/dist/components/common/text-field/NumberField.cjs +0 -1
  111. package/dist/components/common/text-field/NumberField.d.ts +0 -13
  112. package/dist/components/common/text-field/NumberField.js +0 -83
  113. package/dist/components/common/text-field/PhoneNumberField.cjs +0 -1
  114. package/dist/components/common/text-field/PhoneNumberField.d.ts +0 -4
  115. package/dist/components/common/text-field/PhoneNumberField.js +0 -18
  116. package/dist/components/common/text-field/TextArea.cjs +0 -1
  117. package/dist/components/common/text-field/TextArea.d.ts +0 -17
  118. package/dist/components/common/text-field/TextArea.js +0 -47
  119. package/dist/components/common/text-field/TextField.cjs +0 -1
  120. package/dist/components/common/text-field/TextField.d.ts +0 -27
  121. package/dist/components/common/text-field/TextField.js +0 -73
  122. package/dist/components/common/text-field/index.d.ts +0 -5
  123. package/dist/components/common/tooltip/TooltipComponent.cjs +0 -1
  124. package/dist/components/common/tooltip/TooltipComponent.d.ts +0 -5
  125. package/dist/components/common/tooltip/TooltipComponent.js +0 -9
  126. package/dist/components/common/tooltip/index.d.ts +0 -2
  127. package/dist/components/common/wizard/WizardResult.cjs +0 -1
  128. package/dist/components/common/wizard/WizardResult.d.ts +0 -16
  129. package/dist/components/common/wizard/WizardResult.js +0 -60
  130. package/dist/components/common/wizard/WizardViewForm.cjs +0 -1
  131. package/dist/components/common/wizard/WizardViewForm.d.ts +0 -24
  132. package/dist/components/common/wizard/WizardViewForm.js +0 -74
  133. package/dist/components/common/wizard/index.d.ts +0 -3
  134. package/dist/components/crud/CrudComponent.cjs +0 -1
  135. package/dist/components/crud/CrudComponent.d.ts +0 -237
  136. package/dist/components/crud/CrudComponent.js +0 -210
  137. package/dist/components/crud/CrudField.cjs +0 -1
  138. package/dist/components/crud/CrudField.d.ts +0 -4
  139. package/dist/components/crud/CrudField.js +0 -459
  140. package/dist/components/crud/CrudForm.cjs +0 -1
  141. package/dist/components/crud/CrudForm.d.ts +0 -14
  142. package/dist/components/crud/CrudForm.js +0 -91
  143. package/dist/components/crud/CrudFormWizard.cjs +0 -1
  144. package/dist/components/crud/CrudFormWizard.d.ts +0 -14
  145. package/dist/components/crud/CrudFormWizard.js +0 -140
  146. package/dist/components/crud/CrudReportComponent.cjs +0 -4
  147. package/dist/components/crud/CrudReportComponent.d.ts +0 -44
  148. package/dist/components/crud/CrudReportComponent.js +0 -255
  149. package/dist/components/crud/CrudSearchComponent.cjs +0 -1
  150. package/dist/components/crud/CrudSearchComponent.d.ts +0 -21
  151. package/dist/components/crud/CrudSearchComponent.js +0 -95
  152. package/dist/components/crud/FileCrudField.cjs +0 -1
  153. package/dist/components/crud/FileCrudField.d.ts +0 -25
  154. package/dist/components/crud/FileCrudField.js +0 -220
  155. package/dist/components/crud/ImageCrudField.cjs +0 -1
  156. package/dist/components/crud/ImageCrudField.d.ts +0 -38
  157. package/dist/components/crud/ImageCrudField.js +0 -113
  158. package/dist/components/crud/import/CrudImportButton.cjs +0 -1
  159. package/dist/components/crud/import/CrudImportButton.d.ts +0 -3
  160. package/dist/components/crud/import/CrudImportButton.js +0 -31
  161. package/dist/components/crud/import/CrudImportComponent.cjs +0 -2
  162. package/dist/components/crud/import/CrudImportComponent.d.ts +0 -14
  163. package/dist/components/crud/import/CrudImportComponent.js +0 -223
  164. package/dist/components/crud/index.d.ts +0 -15
  165. package/dist/components/crud/view/CrudDecListView.cjs +0 -1
  166. package/dist/components/crud/view/CrudDecListView.d.ts +0 -14
  167. package/dist/components/crud/view/CrudDecListView.js +0 -42
  168. package/dist/components/crud/view/CrudViewer.cjs +0 -1
  169. package/dist/components/crud/view/CrudViewer.d.ts +0 -43
  170. package/dist/components/crud/view/CrudViewer.js +0 -217
  171. package/dist/components/crud/view/CrudViewerUtil.cjs +0 -1
  172. package/dist/components/crud/view/CrudViewerUtil.d.ts +0 -2
  173. package/dist/components/crud/view/CrudViewerUtil.js +0 -57
  174. package/dist/components/crud/view/index.d.ts +0 -5
  175. package/dist/index.cjs +0 -1
  176. package/dist/index.d.ts +0 -4
  177. package/dist/index.js +0 -32
  178. package/dist/locale/hooks/translation-constants.cjs +0 -1
  179. package/dist/locale/hooks/translation-constants.d.ts +0 -1
  180. package/dist/locale/hooks/translation-constants.js +0 -4
  181. package/dist/locale/index.cjs +0 -1
  182. package/dist/locale/index.d.ts +0 -74
  183. package/dist/locale/index.js +0 -37
  184. package/dist/locale/translations/en.cjs +0 -1
  185. package/dist/locale/translations/en.d.ts +0 -58
  186. package/dist/locale/translations/en.js +0 -60
  187. package/dist/main.d.ts +0 -0
  188. package/dist/util/DateUtil.cjs +0 -1
  189. package/dist/util/DateUtil.d.ts +0 -7
  190. package/dist/util/DateUtil.js +0 -6
  191. package/dist/util/ImageUtil.cjs +0 -1
  192. package/dist/util/ImageUtil.d.ts +0 -14
  193. package/dist/util/ImageUtil.js +0 -63
  194. package/dist/util/NumberUtil.cjs +0 -1
  195. package/dist/util/NumberUtil.d.ts +0 -17
  196. package/dist/util/NumberUtil.js +0 -60
  197. package/dist/util/ValidationUtil.cjs +0 -1
  198. package/dist/util/ValidationUtil.d.ts +0 -14
  199. package/dist/util/ValidationUtil.js +0 -60
  200. package/dist/util/index.cjs +0 -1
  201. package/dist/util/index.d.ts +0 -4
  202. package/dist/util/index.js +0 -10
  203. package/dist/vite-env.d.ts +0 -1
@@ -1 +0,0 @@
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;
@@ -1,56 +0,0 @@
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;
@@ -1,282 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import { default as ImagePicker } from './ImagePicker';
2
- export { ImagePicker };
@@ -1 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,19 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import { default as RadioGroupComponent } from './RadioGroupComponent';
2
- export { RadioGroupComponent };
@@ -1 +0,0 @@
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;
@@ -1,16 +0,0 @@
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
- }>;
@@ -1,30 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { SelectFieldInReport, ReportSelectFieldItems } from './SelectFieldInReport';
2
- export { SelectFieldInReport };
3
- export type { ReportSelectFieldItems };
@@ -1 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,13 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,21 +0,0 @@
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;
@@ -1,89 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { default as SelectComponent } from './SelectComponent';
2
- import { default as CustomSelectOption } from './CustomSelectOption';
3
- export { SelectComponent, CustomSelectOption };
@@ -1 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import { ReactShowMoreTextProps } from 'react-show-more-text';
2
- export declare const ShowMore: React.FC<ReactShowMoreTextProps>;
3
- export type { ReactShowMoreTextProps };
4
- export default ShowMore;
@@ -1,8 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,13 +0,0 @@
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 {};