ubk.erp.webpack 1.1.6 → 1.1.7

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 (357) hide show
  1. package/dist/Api/api.d.ts +21 -0
  2. package/dist/Api/apiOption.d.ts +12 -0
  3. package/dist/ErpDashboard.d.ts +2 -0
  4. package/dist/Layout/Academics/Academics.d.ts +2 -0
  5. package/dist/Layout/Academics/AssignByClass/AssignByClass.d.ts +5 -0
  6. package/dist/Layout/Academics/AssignByClass/Pages/AssignByClassPage.d.ts +5 -0
  7. package/dist/Layout/Academics/AssignByClass/Services/assignByClassService.d.ts +8 -0
  8. package/dist/Layout/Academics/AssignByClass/hooks.d.ts +1 -0
  9. package/dist/Layout/Academics/AssignByClass/index.d.ts +1 -0
  10. package/dist/Layout/Academics/AssignSubjects/AssignSubjects.d.ts +5 -0
  11. package/dist/Layout/Academics/AssignSubjects/Pages/AssignSubjectsPage.d.ts +5 -0
  12. package/dist/Layout/Academics/AssignSubjects/Services/assignSubjectsService.d.ts +6 -0
  13. package/dist/Layout/Academics/AssignSubjects/hooks.d.ts +5 -0
  14. package/dist/Layout/Academics/AssignSubjects/index.d.ts +1 -0
  15. package/dist/Layout/Academics/AssignTimeGroup/AssignTimeGroup.d.ts +5 -0
  16. package/dist/Layout/Academics/AssignTimeGroup/Pages/AssignTimeGroupPage.d.ts +5 -0
  17. package/dist/Layout/Academics/AssignTimeGroup/Services/assignTimeGroupService.d.ts +8 -0
  18. package/dist/Layout/Academics/AssignTimeGroup/hooks.d.ts +1 -0
  19. package/dist/Layout/Academics/AssignTimeGroup/index.d.ts +1 -0
  20. package/dist/Layout/Academics/Class/Class.d.ts +5 -0
  21. package/dist/Layout/Academics/Class/Pages/ClassPage.d.ts +5 -0
  22. package/dist/Layout/Academics/Class/Services/classService.d.ts +8 -0
  23. package/dist/Layout/Academics/Class/hooks.d.ts +5 -0
  24. package/dist/Layout/Academics/Class/index.d.ts +1 -0
  25. package/dist/Layout/Academics/CoScholasticArea/CoScholasticArea.d.ts +5 -0
  26. package/dist/Layout/Academics/CoScholasticArea/Pages/CoScholasticAreaPage.d.ts +5 -0
  27. package/dist/Layout/Academics/CoScholasticArea/Services/coScholasticAreaService.d.ts +8 -0
  28. package/dist/Layout/Academics/CoScholasticArea/hooks.d.ts +10 -0
  29. package/dist/Layout/Academics/CoScholasticArea/index.d.ts +1 -0
  30. package/dist/Layout/Academics/Components/SingleUpload.d.ts +7 -0
  31. package/dist/Layout/Academics/Components/index.d.ts +1 -0
  32. package/dist/Layout/Academics/CreateTimeGroup/CreateTimeGroup.d.ts +5 -0
  33. package/dist/Layout/Academics/CreateTimeGroup/Pages/CreateTimeGroupPage.d.ts +5 -0
  34. package/dist/Layout/Academics/CreateTimeGroup/Services/createTimeGroupService.d.ts +8 -0
  35. package/dist/Layout/Academics/CreateTimeGroup/hooks.d.ts +1 -0
  36. package/dist/Layout/Academics/CreateTimeGroup/index.d.ts +1 -0
  37. package/dist/Layout/Academics/Holidays/Holidays.d.ts +5 -0
  38. package/dist/Layout/Academics/Holidays/Pages/HolidaysPage.d.ts +5 -0
  39. package/dist/Layout/Academics/Holidays/Services/holidaysService.d.ts +7 -0
  40. package/dist/Layout/Academics/Holidays/hooks.d.ts +5 -0
  41. package/dist/Layout/Academics/Holidays/index.d.ts +1 -0
  42. package/dist/Layout/Academics/Notes/Notes.d.ts +5 -0
  43. package/dist/Layout/Academics/Notes/Pages/NotesPage.d.ts +5 -0
  44. package/dist/Layout/Academics/Notes/Services/notesService.d.ts +4 -0
  45. package/dist/Layout/Academics/Notes/hooks.d.ts +6 -0
  46. package/dist/Layout/Academics/Notes/index.d.ts +1 -0
  47. package/dist/Layout/Academics/PromoteStudents/Pages/PromoteStudentsPage.d.ts +5 -0
  48. package/dist/Layout/Academics/PromoteStudents/PromoteStudents.d.ts +5 -0
  49. package/dist/Layout/Academics/PromoteStudents/Services/promoteStudentsService.d.ts +5 -0
  50. package/dist/Layout/Academics/PromoteStudents/hooks.d.ts +3 -0
  51. package/dist/Layout/Academics/PromoteStudents/index.d.ts +1 -0
  52. package/dist/Layout/Academics/Sections/Pages/SectionsPage.d.ts +5 -0
  53. package/dist/Layout/Academics/Sections/Sections.d.ts +5 -0
  54. package/dist/Layout/Academics/Sections/Services/sectionsService.d.ts +9 -0
  55. package/dist/Layout/Academics/Sections/hooks.d.ts +5 -0
  56. package/dist/Layout/Academics/Sections/index.d.ts +1 -0
  57. package/dist/Layout/Academics/Services/academicsService.d.ts +147 -0
  58. package/dist/Layout/Academics/Subjects/Pages/SubjectsPage.d.ts +5 -0
  59. package/dist/Layout/Academics/Subjects/Services/subjectsService.d.ts +9 -0
  60. package/dist/Layout/Academics/Subjects/Subjects.d.ts +5 -0
  61. package/dist/Layout/Academics/Subjects/hooks.d.ts +5 -0
  62. package/dist/Layout/Academics/Subjects/index.d.ts +1 -0
  63. package/dist/Layout/Academics/Syllabus/Pages/SyllabusPage.d.ts +5 -0
  64. package/dist/Layout/Academics/Syllabus/Services/syllabusService.d.ts +5 -0
  65. package/dist/Layout/Academics/Syllabus/Syllabus.d.ts +5 -0
  66. package/dist/Layout/Academics/Syllabus/hooks.d.ts +6 -0
  67. package/dist/Layout/Academics/Syllabus/index.d.ts +1 -0
  68. package/dist/Layout/Academics/TimeTable/Components/Routine.d.ts +5 -0
  69. package/dist/Layout/Academics/TimeTable/Components/TeacherTable.d.ts +5 -0
  70. package/dist/Layout/Academics/TimeTable/Pages/TimeTablePage.d.ts +5 -0
  71. package/dist/Layout/Academics/TimeTable/Services/timeTableService.d.ts +6 -0
  72. package/dist/Layout/Academics/TimeTable/Services/timetableEngine.d.ts +5 -0
  73. package/dist/Layout/Academics/TimeTable/Services/validator.d.ts +10 -0
  74. package/dist/Layout/Academics/TimeTable/TimeTable.d.ts +5 -0
  75. package/dist/Layout/Academics/TimeTable/index.d.ts +1 -0
  76. package/dist/Layout/Academics/TransferCertificate/Pages/TransferCertificatePage.d.ts +7 -0
  77. package/dist/Layout/Academics/TransferCertificate/Services/transferCertificateService.d.ts +5 -0
  78. package/dist/Layout/Academics/TransferCertificate/TransferCertificate.d.ts +7 -0
  79. package/dist/Layout/Academics/TransferCertificate/hooks.d.ts +5 -0
  80. package/dist/Layout/Academics/TransferCertificate/index.d.ts +1 -0
  81. package/dist/Layout/Academics/hooks.d.ts +6 -0
  82. package/dist/Layout/Academics/index.d.ts +15 -0
  83. package/dist/Layout/AttendanceDashboard/AttendanceDashboard.d.ts +5 -0
  84. package/dist/Layout/AttendanceDashboard/Charts/index.d.ts +1 -0
  85. package/dist/Layout/AttendanceDashboard/Components/index.d.ts +1 -0
  86. package/dist/Layout/AttendanceDashboard/Components/shared.d.ts +77 -0
  87. package/dist/Layout/AttendanceDashboard/DailyAttendance/DailyAttendance.d.ts +5 -0
  88. package/dist/Layout/AttendanceDashboard/DailyAttendance/Services/dailyAttendanceService.d.ts +8 -0
  89. package/dist/Layout/AttendanceDashboard/DailyAttendance/hooks.d.ts +1 -0
  90. package/dist/Layout/AttendanceDashboard/DailyAttendance/index.d.ts +1 -0
  91. package/dist/Layout/AttendanceDashboard/MonthlyReport/MonthlyReport.d.ts +5 -0
  92. package/dist/Layout/AttendanceDashboard/MonthlyReport/Services/monthlyReportService.d.ts +9 -0
  93. package/dist/Layout/AttendanceDashboard/MonthlyReport/hooks.d.ts +1 -0
  94. package/dist/Layout/AttendanceDashboard/MonthlyReport/index.d.ts +1 -0
  95. package/dist/Layout/AttendanceDashboard/Reports/index.d.ts +1 -0
  96. package/dist/Layout/AttendanceDashboard/Services/attendanceDashboardService.d.ts +35 -0
  97. package/dist/Layout/AttendanceDashboard/StudentAttendance/Services/studentAttendanceService.d.ts +10 -0
  98. package/dist/Layout/AttendanceDashboard/StudentAttendance/StudentAttendance.d.ts +5 -0
  99. package/dist/Layout/AttendanceDashboard/StudentAttendance/hooks.d.ts +1 -0
  100. package/dist/Layout/AttendanceDashboard/StudentAttendance/index.d.ts +1 -0
  101. package/dist/Layout/AttendanceDashboard/YearlyReport/Services/yearlyReportService.d.ts +8 -0
  102. package/dist/Layout/AttendanceDashboard/YearlyReport/YearlyReport.d.ts +5 -0
  103. package/dist/Layout/AttendanceDashboard/YearlyReport/hooks.d.ts +1 -0
  104. package/dist/Layout/AttendanceDashboard/YearlyReport/index.d.ts +1 -0
  105. package/dist/Layout/AttendanceDashboard/hooks.d.ts +34 -0
  106. package/dist/Layout/AttendanceDashboard/index.d.ts +5 -0
  107. package/dist/Layout/Export/BranchHeader.d.ts +2 -0
  108. package/dist/Layout/Export/ExportAttendance.d.ts +6 -0
  109. package/dist/Layout/Export/ExportDataWithHeader.d.ts +2 -0
  110. package/dist/Layout/FontOffice/AdmissionEnquiry.d.ts +5 -0
  111. package/dist/Layout/FontOffice/FontOfficeMenu.d.ts +5 -0
  112. package/dist/Layout/GeneralSetting/About/About.d.ts +5 -0
  113. package/dist/Layout/GeneralSetting/About/Pages/AboutPage.d.ts +5 -0
  114. package/dist/Layout/GeneralSetting/About/Services/aboutService.d.ts +5 -0
  115. package/dist/Layout/GeneralSetting/About/hooks.d.ts +3 -0
  116. package/dist/Layout/GeneralSetting/About/index.d.ts +1 -0
  117. package/dist/Layout/GeneralSetting/AcademicYear/AcademicYear.d.ts +5 -0
  118. package/dist/Layout/GeneralSetting/AcademicYear/Pages/AcademicYearPage.d.ts +5 -0
  119. package/dist/Layout/GeneralSetting/AcademicYear/Services/academicYearService.d.ts +6 -0
  120. package/dist/Layout/GeneralSetting/AcademicYear/hooks.d.ts +5 -0
  121. package/dist/Layout/GeneralSetting/AcademicYear/index.d.ts +1 -0
  122. package/dist/Layout/GeneralSetting/Components/IconActionToolbar.d.ts +5 -0
  123. package/dist/Layout/GeneralSetting/Components/LegalPageEditor.d.ts +10 -0
  124. package/dist/Layout/GeneralSetting/Components/RichTextEditor.d.ts +7 -0
  125. package/dist/Layout/GeneralSetting/Components/SettingsPageLayout.d.ts +8 -0
  126. package/dist/Layout/GeneralSetting/Components/SingleUpload.d.ts +11 -0
  127. package/dist/Layout/GeneralSetting/Components/index.d.ts +5 -0
  128. package/dist/Layout/GeneralSetting/FeeReceiptSetting/FeeReceiptSetting.d.ts +5 -0
  129. package/dist/Layout/GeneralSetting/FeeReceiptSetting/Pages/FeeReceiptSettingPage.d.ts +5 -0
  130. package/dist/Layout/GeneralSetting/FeeReceiptSetting/Services/feeReceiptSettingService.d.ts +4 -0
  131. package/dist/Layout/GeneralSetting/FeeReceiptSetting/hooks.d.ts +3 -0
  132. package/dist/Layout/GeneralSetting/FeeReceiptSetting/index.d.ts +1 -0
  133. package/dist/Layout/GeneralSetting/FeesInfo/FeesInfo.d.ts +5 -0
  134. package/dist/Layout/GeneralSetting/FeesInfo/Pages/FeesInfoPage.d.ts +5 -0
  135. package/dist/Layout/GeneralSetting/FeesInfo/Services/feesInfoService.d.ts +5 -0
  136. package/dist/Layout/GeneralSetting/FeesInfo/hooks.d.ts +6 -0
  137. package/dist/Layout/GeneralSetting/FeesInfo/index.d.ts +1 -0
  138. package/dist/Layout/GeneralSetting/GeneralSetting.d.ts +2 -0
  139. package/dist/Layout/GeneralSetting/MarksheetSetting/MarksheetSetting.d.ts +5 -0
  140. package/dist/Layout/GeneralSetting/MarksheetSetting/Pages/MarksheetSettingPage.d.ts +5 -0
  141. package/dist/Layout/GeneralSetting/MarksheetSetting/Services/marksheetSettingService.d.ts +7 -0
  142. package/dist/Layout/GeneralSetting/MarksheetSetting/hooks.d.ts +9 -0
  143. package/dist/Layout/GeneralSetting/MarksheetSetting/index.d.ts +1 -0
  144. package/dist/Layout/GeneralSetting/Organization/Organization.d.ts +5 -0
  145. package/dist/Layout/GeneralSetting/Organization/Pages/OrganizationPage.d.ts +5 -0
  146. package/dist/Layout/GeneralSetting/Organization/Services/organizationService.d.ts +14 -0
  147. package/dist/Layout/GeneralSetting/Organization/hooks.d.ts +16 -0
  148. package/dist/Layout/GeneralSetting/Organization/index.d.ts +1 -0
  149. package/dist/Layout/GeneralSetting/PaymentGateway/Pages/PaymentGatewayPage.d.ts +5 -0
  150. package/dist/Layout/GeneralSetting/PaymentGateway/PaymentGateway.d.ts +5 -0
  151. package/dist/Layout/GeneralSetting/PaymentGateway/Services/paymentGatewayService.d.ts +4 -0
  152. package/dist/Layout/GeneralSetting/PaymentGateway/hooks.d.ts +3 -0
  153. package/dist/Layout/GeneralSetting/PaymentGateway/index.d.ts +1 -0
  154. package/dist/Layout/GeneralSetting/PayrollSettings/Pages/PayrollSettingsPage.d.ts +5 -0
  155. package/dist/Layout/GeneralSetting/PayrollSettings/PayrollSettings.d.ts +5 -0
  156. package/dist/Layout/GeneralSetting/PayrollSettings/Services/payrollSettingsService.d.ts +7 -0
  157. package/dist/Layout/GeneralSetting/PayrollSettings/hooks.d.ts +5 -0
  158. package/dist/Layout/GeneralSetting/PayrollSettings/index.d.ts +1 -0
  159. package/dist/Layout/GeneralSetting/Privacy/Pages/PrivacyPage.d.ts +5 -0
  160. package/dist/Layout/GeneralSetting/Privacy/Privacy.d.ts +5 -0
  161. package/dist/Layout/GeneralSetting/Privacy/Services/privacyService.d.ts +5 -0
  162. package/dist/Layout/GeneralSetting/Privacy/hooks.d.ts +3 -0
  163. package/dist/Layout/GeneralSetting/Privacy/index.d.ts +1 -0
  164. package/dist/Layout/GeneralSetting/Services/generalSettingService.d.ts +77 -0
  165. package/dist/Layout/GeneralSetting/Terms/Pages/TermsPage.d.ts +5 -0
  166. package/dist/Layout/GeneralSetting/Terms/Services/termsService.d.ts +5 -0
  167. package/dist/Layout/GeneralSetting/Terms/Terms.d.ts +5 -0
  168. package/dist/Layout/GeneralSetting/Terms/hooks.d.ts +3 -0
  169. package/dist/Layout/GeneralSetting/Terms/index.d.ts +1 -0
  170. package/dist/Layout/GeneralSetting/hooks.d.ts +10 -0
  171. package/dist/Layout/GeneralSetting/index.d.ts +11 -0
  172. package/dist/Layout/HumanResource/AddStaff/AddStaff.d.ts +5 -0
  173. package/dist/Layout/HumanResource/AddStaff/Components/Step1.d.ts +1 -0
  174. package/dist/Layout/HumanResource/AddStaff/Components/Step2.d.ts +1 -0
  175. package/dist/Layout/HumanResource/AddStaff/Components/Step3.d.ts +1 -0
  176. package/dist/Layout/HumanResource/AddStaff/Components/index.d.ts +3 -0
  177. package/dist/Layout/HumanResource/AddStaff/Pages/AddStaffPage.d.ts +5 -0
  178. package/dist/Layout/HumanResource/AddStaff/Services/addStaffService.d.ts +22 -0
  179. package/dist/Layout/HumanResource/AddStaff/index.d.ts +1 -0
  180. package/dist/Layout/HumanResource/ApplyLeave/ApplyLeave.d.ts +5 -0
  181. package/dist/Layout/HumanResource/ApplyLeave/Pages/ApplyLeavePage.d.ts +5 -0
  182. package/dist/Layout/HumanResource/ApplyLeave/Services/applyLeaveService.d.ts +7 -0
  183. package/dist/Layout/HumanResource/ApplyLeave/hooks.d.ts +5 -0
  184. package/dist/Layout/HumanResource/ApplyLeave/index.d.ts +1 -0
  185. package/dist/Layout/HumanResource/AprroveLeaveRequest/AprroveLeaveRequest.d.ts +5 -0
  186. package/dist/Layout/HumanResource/AprroveLeaveRequest/Pages/AprroveLeaveRequestPage.d.ts +5 -0
  187. package/dist/Layout/HumanResource/AprroveLeaveRequest/Services/approveLeaveService.d.ts +6 -0
  188. package/dist/Layout/HumanResource/AprroveLeaveRequest/hooks.d.ts +5 -0
  189. package/dist/Layout/HumanResource/AprroveLeaveRequest/index.d.ts +1 -0
  190. package/dist/Layout/HumanResource/Components/SingleUpload.d.ts +7 -0
  191. package/dist/Layout/HumanResource/Components/index.d.ts +1 -0
  192. package/dist/Layout/HumanResource/Department/Department.d.ts +5 -0
  193. package/dist/Layout/HumanResource/Department/Pages/DepartmentPage.d.ts +5 -0
  194. package/dist/Layout/HumanResource/Department/Services/departmentService.d.ts +8 -0
  195. package/dist/Layout/HumanResource/Department/hooks.d.ts +5 -0
  196. package/dist/Layout/HumanResource/Department/index.d.ts +1 -0
  197. package/dist/Layout/HumanResource/Designation/Designation.d.ts +5 -0
  198. package/dist/Layout/HumanResource/Designation/Pages/DesignationPage.d.ts +5 -0
  199. package/dist/Layout/HumanResource/Designation/Services/designationService.d.ts +8 -0
  200. package/dist/Layout/HumanResource/Designation/hooks.d.ts +5 -0
  201. package/dist/Layout/HumanResource/Designation/index.d.ts +1 -0
  202. package/dist/Layout/HumanResource/HumanResource.d.ts +5 -0
  203. package/dist/Layout/HumanResource/HumanResourceDashboard/HumanResourceDashboard.d.ts +5 -0
  204. package/dist/Layout/HumanResource/HumanResourceDashboard/Pages/HumanResourceDashboardPage.d.ts +5 -0
  205. package/dist/Layout/HumanResource/HumanResourceDashboard/index.d.ts +1 -0
  206. package/dist/Layout/HumanResource/LeaveType/LeaveType.d.ts +5 -0
  207. package/dist/Layout/HumanResource/LeaveType/Pages/LeaveTypePage.d.ts +5 -0
  208. package/dist/Layout/HumanResource/LeaveType/Services/leaveTypeService.d.ts +8 -0
  209. package/dist/Layout/HumanResource/LeaveType/hooks.d.ts +5 -0
  210. package/dist/Layout/HumanResource/LeaveType/index.d.ts +1 -0
  211. package/dist/Layout/HumanResource/MonthlyAttendanceReport/MonthlyAttendanceReport.d.ts +5 -0
  212. package/dist/Layout/HumanResource/MonthlyAttendanceReport/Pages/MonthlyAttendanceReportPage.d.ts +5 -0
  213. package/dist/Layout/HumanResource/MonthlyAttendanceReport/index.d.ts +1 -0
  214. package/dist/Layout/HumanResource/Payroll/Pages/PayrollPage.d.ts +7 -0
  215. package/dist/Layout/HumanResource/Payroll/Payroll.d.ts +5 -0
  216. package/dist/Layout/HumanResource/Payroll/Services/payrollService.d.ts +8 -0
  217. package/dist/Layout/HumanResource/Payroll/index.d.ts +1 -0
  218. package/dist/Layout/HumanResource/PayrollReceiptDetails.d.ts +6 -0
  219. package/dist/Layout/HumanResource/PayrollReport/Pages/PayrollReportPage.d.ts +5 -0
  220. package/dist/Layout/HumanResource/PayrollReport/PayrollReport.d.ts +5 -0
  221. package/dist/Layout/HumanResource/PayrollReport/index.d.ts +1 -0
  222. package/dist/Layout/HumanResource/Services/humanResourceService.d.ts +115 -0
  223. package/dist/Layout/HumanResource/Shift/Pages/ShiftPage.d.ts +5 -0
  224. package/dist/Layout/HumanResource/Shift/Services/shiftService.d.ts +8 -0
  225. package/dist/Layout/HumanResource/Shift/Shift.d.ts +5 -0
  226. package/dist/Layout/HumanResource/Shift/hooks.d.ts +5 -0
  227. package/dist/Layout/HumanResource/Shift/index.d.ts +1 -0
  228. package/dist/Layout/HumanResource/StaffAttendance/Components/AttendancePaginationTable.d.ts +13 -0
  229. package/dist/Layout/HumanResource/StaffAttendance/Pages/StaffAttendancePage.d.ts +5 -0
  230. package/dist/Layout/HumanResource/StaffAttendance/Services/staffAttendanceService.d.ts +10 -0
  231. package/dist/Layout/HumanResource/StaffAttendance/StaffAttendance.d.ts +5 -0
  232. package/dist/Layout/HumanResource/StaffAttendance/index.d.ts +1 -0
  233. package/dist/Layout/HumanResource/StaffAttendanceReport/Pages/StaffAttendanceReportPage.d.ts +5 -0
  234. package/dist/Layout/HumanResource/StaffAttendanceReport/Services/staffAttendanceReportService.d.ts +2 -0
  235. package/dist/Layout/HumanResource/StaffAttendanceReport/StaffAttendanceReport.d.ts +5 -0
  236. package/dist/Layout/HumanResource/StaffAttendanceReport/StaffAttendanceReportCopy.d.ts +5 -0
  237. package/dist/Layout/HumanResource/StaffAttendanceReport/index.d.ts +1 -0
  238. package/dist/Layout/HumanResource/StaffDailyAttendance/Components/StaffMultipleShiftAtt.d.ts +5 -0
  239. package/dist/Layout/HumanResource/StaffDailyAttendance/Pages/StaffDailyAttendancePage.d.ts +5 -0
  240. package/dist/Layout/HumanResource/StaffDailyAttendance/Services/staffDailyAttendanceService.d.ts +9 -0
  241. package/dist/Layout/HumanResource/StaffDailyAttendance/StaffDailyAttendance.d.ts +5 -0
  242. package/dist/Layout/HumanResource/StaffDailyAttendance/index.d.ts +1 -0
  243. package/dist/Layout/HumanResource/StaffDirectory/Pages/StaffDirectoryPage.d.ts +5 -0
  244. package/dist/Layout/HumanResource/StaffDirectory/Services/staffDirectoryService.d.ts +19 -0
  245. package/dist/Layout/HumanResource/StaffDirectory/StaffDirectory.d.ts +5 -0
  246. package/dist/Layout/HumanResource/StaffDirectory/index.d.ts +1 -0
  247. package/dist/Layout/HumanResource/StaffDirectoryEdit/Pages/StaffDirectoryEditPage.d.ts +6 -0
  248. package/dist/Layout/HumanResource/StaffDirectoryEdit/StaffDirectoryEdit.d.ts +6 -0
  249. package/dist/Layout/HumanResource/StaffDirectoryEdit/index.d.ts +1 -0
  250. package/dist/Layout/HumanResource/StaffDirectoryEdit/staffEdit/Step1.d.ts +1 -0
  251. package/dist/Layout/HumanResource/StaffDirectoryEdit/staffEdit/Step2.d.ts +1 -0
  252. package/dist/Layout/HumanResource/StaffDirectoryEdit/staffEdit/Step3.d.ts +1 -0
  253. package/dist/Layout/HumanResource/StaffDirectoryEdit/staffEdit/index.d.ts +3 -0
  254. package/dist/Layout/HumanResource/StaffFullInformation/Components/PayrollInformation.d.ts +5 -0
  255. package/dist/Layout/HumanResource/StaffFullInformation/Components/StaffAttendanceByMonth.d.ts +5 -0
  256. package/dist/Layout/HumanResource/StaffFullInformation/Components/StaffBasicInformation.d.ts +5 -0
  257. package/dist/Layout/HumanResource/StaffFullInformation/Components/StaffExperience.d.ts +5 -0
  258. package/dist/Layout/HumanResource/StaffFullInformation/Components/index.d.ts +4 -0
  259. package/dist/Layout/HumanResource/StaffFullInformation/Pages/StaffFullInformationPage.d.ts +6 -0
  260. package/dist/Layout/HumanResource/StaffFullInformation/StaffFullInformation.d.ts +6 -0
  261. package/dist/Layout/HumanResource/StaffFullInformation/index.d.ts +1 -0
  262. package/dist/Layout/HumanResource/StaffWizard/StaffWizard.d.ts +8 -0
  263. package/dist/Layout/HumanResource/StaffWizard/Step1.d.ts +9 -0
  264. package/dist/Layout/HumanResource/StaffWizard/Step2.d.ts +10 -0
  265. package/dist/Layout/HumanResource/StaffWizard/Step3.d.ts +10 -0
  266. package/dist/Layout/HumanResource/StaffWizard/index.d.ts +1 -0
  267. package/dist/Layout/HumanResource/hooks.d.ts +6 -0
  268. package/dist/Layout/HumanResource/index.d.ts +21 -0
  269. package/dist/Layout/HumanResource/innerPage/PayrollReceiptDetails.d.ts +6 -0
  270. package/dist/Layout/HumanResource/innerPage/StaffAttendanceSingle.d.ts +9 -0
  271. package/dist/Layout/HumanResource/innerPage/index.d.ts +2 -0
  272. package/dist/Layout/Library/AddBook.d.ts +5 -0
  273. package/dist/Layout/Library/AddStudent.d.ts +5 -0
  274. package/dist/Layout/Library/BookList.d.ts +5 -0
  275. package/dist/Layout/Library/Category.d.ts +5 -0
  276. package/dist/Layout/Library/IssueReturn.d.ts +5 -0
  277. package/dist/Layout/Library/LibMonthlyReport.d.ts +5 -0
  278. package/dist/Layout/Transport/AddDriver.d.ts +5 -0
  279. package/dist/Layout/Transport/AssignStudentToTransport.d.ts +8 -0
  280. package/dist/Layout/Transport/AssignVehicles.d.ts +5 -0
  281. package/dist/Layout/Transport/Edit/EditAssignStudentToTransport.d.ts +9 -0
  282. package/dist/Layout/Transport/RouteTimeTable.d.ts +5 -0
  283. package/dist/Layout/Transport/Stoppage copy.d.ts +5 -0
  284. package/dist/Layout/Transport/Stoppage.d.ts +5 -0
  285. package/dist/Layout/Transport/TransportRoutes.d.ts +5 -0
  286. package/dist/Layout/Transport/TransportVehicles.d.ts +5 -0
  287. package/dist/Layout/store/BuySellProduct/BuySellProduct.d.ts +5 -0
  288. package/dist/Layout/store/BuySellProduct/Pages/BuySellProductPage.d.ts +5 -0
  289. package/dist/Layout/store/BuySellProduct/Services/buySellService.d.ts +14 -0
  290. package/dist/Layout/store/BuySellProduct/index.d.ts +1 -0
  291. package/dist/Layout/store/Category/Category.d.ts +5 -0
  292. package/dist/Layout/store/Category/Pages/CategoryPage.d.ts +5 -0
  293. package/dist/Layout/store/Category/Services/categoryService.d.ts +7 -0
  294. package/dist/Layout/store/Category/hooks.d.ts +5 -0
  295. package/dist/Layout/store/Category/index.d.ts +1 -0
  296. package/dist/Layout/store/Components/SingleUpload.d.ts +7 -0
  297. package/dist/Layout/store/ManageStock/ManageStock.d.ts +5 -0
  298. package/dist/Layout/store/ManageStock/Pages/ManageStockPage.d.ts +5 -0
  299. package/dist/Layout/store/ManageStock/Services/manageStockService.d.ts +11 -0
  300. package/dist/Layout/store/ManageStock/index.d.ts +1 -0
  301. package/dist/Layout/store/Products/Pages/ProductsPage.d.ts +5 -0
  302. package/dist/Layout/store/Products/Products.d.ts +5 -0
  303. package/dist/Layout/store/Products/Services/productsService.d.ts +15 -0
  304. package/dist/Layout/store/Products/hooks.d.ts +18 -0
  305. package/dist/Layout/store/Products/index.d.ts +1 -0
  306. package/dist/Layout/store/SellReports/Pages/SellReportsPage.d.ts +5 -0
  307. package/dist/Layout/store/SellReports/SellReports.d.ts +5 -0
  308. package/dist/Layout/store/SellReports/Services/sellReportsService.d.ts +4 -0
  309. package/dist/Layout/store/SellReports/index.d.ts +1 -0
  310. package/dist/Layout/store/Services/storeService.d.ts +84 -0
  311. package/dist/Layout/store/StockReport/Pages/StockReportPage.d.ts +5 -0
  312. package/dist/Layout/store/StockReport/Services/stockReportService.d.ts +2 -0
  313. package/dist/Layout/store/StockReport/StockReport.d.ts +5 -0
  314. package/dist/Layout/store/StockReport/index.d.ts +1 -0
  315. package/dist/Layout/store/SubCategory/Pages/SubCategoryPage.d.ts +5 -0
  316. package/dist/Layout/store/SubCategory/Services/subCategoryService.d.ts +8 -0
  317. package/dist/Layout/store/SubCategory/SubCategory.d.ts +5 -0
  318. package/dist/Layout/store/SubCategory/hooks.d.ts +8 -0
  319. package/dist/Layout/store/SubCategory/index.d.ts +1 -0
  320. package/dist/Layout/store/Unit/Pages/UnitPage.d.ts +5 -0
  321. package/dist/Layout/store/Unit/Services/unitService.d.ts +7 -0
  322. package/dist/Layout/store/Unit/Unit.d.ts +5 -0
  323. package/dist/Layout/store/Unit/hooks.d.ts +5 -0
  324. package/dist/Layout/store/Unit/index.d.ts +1 -0
  325. package/dist/Layout/store/Vendor/Pages/VendorPage.d.ts +5 -0
  326. package/dist/Layout/store/Vendor/Services/vendorService.d.ts +7 -0
  327. package/dist/Layout/store/Vendor/Vendor.d.ts +5 -0
  328. package/dist/Layout/store/Vendor/hooks.d.ts +5 -0
  329. package/dist/Layout/store/Vendor/index.d.ts +1 -0
  330. package/dist/Layout/store/hooks.d.ts +6 -0
  331. package/dist/RoutePage.d.ts +5 -0
  332. package/dist/Secondary/CommonFuntion.d.ts +35 -0
  333. package/dist/Secondary/DummyDataGenerator.d.ts +6 -0
  334. package/dist/Secondary/TextChangeGlobal.d.ts +6 -0
  335. package/dist/Secondary/Year.d.ts +2 -0
  336. package/dist/Services/timetableEngine.test.d.ts +1 -0
  337. package/dist/Services/validator.test.d.ts +1 -0
  338. package/dist/UBKDeleteButton/index.d.ts +7 -0
  339. package/dist/components/Cards/MenuCard/Index.d.ts +7 -0
  340. package/dist/components/CommonActionButtons/CommonActionButtons.d.ts +11 -0
  341. package/dist/components/CommonActionButtons/index.d.ts +1 -0
  342. package/dist/components/MDInput/index.d.ts +2 -0
  343. package/dist/components/UBKBox/index.d.ts +13 -0
  344. package/dist/components/UBKDate/index.d.ts +3 -0
  345. package/dist/components/UBKDeleteButton/index.d.ts +7 -0
  346. package/dist/components/UBKSelect/FixRequiredSelect.d.ts +26 -0
  347. package/dist/components/UBKSelect/MySelect.d.ts +2 -0
  348. package/dist/components/UBKSelect/UBKSelectWL.d.ts +2 -0
  349. package/dist/components/UBKSelect/index.d.ts +2 -0
  350. package/dist/components/UBKSubmit/index.d.ts +2 -0
  351. package/dist/components/UBKTable/UBKantdTable.d.ts +4 -0
  352. package/dist/components/UBKTextarea/index.d.ts +7 -0
  353. package/dist/components/UBKTypography/index.d.ts +8 -0
  354. package/dist/index.cjs +2 -2
  355. package/dist/index.d.ts +48 -289
  356. package/dist/index.js +24 -16
  357. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,289 +1,48 @@
1
- import { default as default_2 } from 'react';
2
- import { JSX } from 'react';
3
-
4
- export declare function About({ token }: {
5
- token: any;
6
- }): default_2.JSX.Element;
7
-
8
- export declare function Academics(): null;
9
-
10
- export declare function AcademicYear({ token }: {
11
- token: any;
12
- }): default_2.JSX.Element;
13
-
14
- export declare function AddBook({ token: tokenProp }: {
15
- token: any;
16
- }): default_2.JSX.Element;
17
-
18
- export declare function AddDriver({ token }: {
19
- token: any;
20
- }): default_2.JSX.Element;
21
-
22
- export declare function AddStaff({ token }: {
23
- token: any;
24
- }): default_2.JSX.Element;
25
-
26
- export declare function AdmissionEnquiry({ token, type }: {
27
- token: any;
28
- type: any;
29
- }): JSX.Element;
30
-
31
- export declare function ApplyLeave({ token }: {
32
- token: any;
33
- }): default_2.JSX.Element;
34
-
35
- export declare function AprroveLeaveRequest({ token }: {
36
- token: any;
37
- }): default_2.JSX.Element;
38
-
39
- export declare function AssignByClass({ token }: {
40
- token: any;
41
- }): default_2.JSX.Element;
42
-
43
- export declare function AssignStudentToTransport({ token, editType, onNavigate, editPagePath, }: {
44
- token: any;
45
- editType: any;
46
- onNavigate: any;
47
- editPagePath: any;
48
- }): default_2.JSX.Element;
49
-
50
- export declare function AssignSubjects({ token }: {
51
- token: any;
52
- }): default_2.JSX.Element;
53
-
54
- export declare function AssignTimeGroup({ token }: {
55
- token: any;
56
- }): default_2.JSX.Element;
57
-
58
- export declare function AssignVehicles({ token }: {
59
- token: any;
60
- }): default_2.JSX.Element;
61
-
62
- export declare function AttendanceDashboard({ token }: {
63
- token: any;
64
- }): default_2.JSX.Element;
65
-
66
- export declare function BookList({ token: tokenProp }: {
67
- token: any;
68
- }): default_2.JSX.Element;
69
-
70
- export declare function BuySellProduct({ token }: {
71
- token: any;
72
- }): default_2.JSX.Element;
73
-
74
- export declare function Category({ token }: {
75
- token: any;
76
- }): default_2.JSX.Element;
77
-
78
- export declare function Class({ token }: {
79
- token: any;
80
- }): default_2.JSX.Element;
81
-
82
- export declare function CoScholasticArea({ token }: {
83
- token: any;
84
- }): default_2.JSX.Element;
85
-
86
- export declare function CreateTimeGroup({ token }: {
87
- token: any;
88
- }): default_2.JSX.Element;
89
-
90
- export declare function DailyAttendance({ token }: {
91
- token: any;
92
- }): default_2.JSX.Element;
93
-
94
- export declare function Department({ token }: {
95
- token: any;
96
- }): default_2.JSX.Element;
97
-
98
- export declare function Designation({ token }: {
99
- token: any;
100
- }): default_2.JSX.Element;
101
-
102
- export declare function ErpDashboard(): JSX.Element;
103
-
104
- export declare function FeeReceiptSetting({ token }: {
105
- token: any;
106
- }): default_2.JSX.Element;
107
-
108
- export declare function FeesInfo({ token }: {
109
- token: any;
110
- }): default_2.JSX.Element;
111
-
112
- export declare function GeneralSetting(): null;
113
-
114
- export declare function Holidays({ token }: {
115
- token: any;
116
- }): default_2.JSX.Element;
117
-
118
- export declare function IssueReturn({ token: tokenProp }: {
119
- token: any;
120
- }): default_2.JSX.Element;
121
-
122
- export declare function LeaveType({ token }: {
123
- token: any;
124
- }): default_2.JSX.Element;
125
-
126
- export declare function LibraryAssignStudent({ token: tokenProp }: {
127
- token: any;
128
- }): default_2.JSX.Element;
129
-
130
- export declare function LibraryCategory({ token: tokenProp }: {
131
- token: any;
132
- }): default_2.JSX.Element;
133
-
134
- export declare function LibraryReport({ token }: {
135
- token: any;
136
- }): default_2.JSX.Element;
137
-
138
- export declare function ManageStock({ token }: {
139
- token: any;
140
- }): default_2.JSX.Element;
141
-
142
- export declare function MarksheetSetting({ token }: {
143
- token: any;
144
- }): default_2.JSX.Element;
145
-
146
- export declare function MenuSubmenu({ token, menu }: {
147
- token: any;
148
- menu: any;
149
- }): JSX.Element;
150
-
151
- export declare function MonthlyReport({ token }: {
152
- token: any;
153
- }): default_2.JSX.Element;
154
-
155
- export declare function Notes({ token }: {
156
- token: any;
157
- }): default_2.JSX.Element;
158
-
159
- export declare function Organization({ token }: {
160
- token: any;
161
- }): default_2.JSX.Element;
162
-
163
- export declare function PaymentGateway({ token }: {
164
- token: any;
165
- }): default_2.JSX.Element;
166
-
167
- export declare function Payroll({ token }: {
168
- token: any;
169
- }): default_2.JSX.Element;
170
-
171
- export declare function PayrollReceiptDetails({ token, staffId }: {
172
- token: any;
173
- staffId: any;
174
- }): default_2.JSX.Element;
175
-
176
- export declare function PayrollSettings({ token }: {
177
- token: any;
178
- }): default_2.JSX.Element;
179
-
180
- export declare function Privacy({ token }: {
181
- token: any;
182
- }): default_2.JSX.Element;
183
-
184
- export declare function Products({ token }: {
185
- token: any;
186
- }): default_2.JSX.Element;
187
-
188
- export declare function PromoteStudents({ token }: {
189
- token: any;
190
- }): default_2.JSX.Element;
191
-
192
- export declare function RoutePage({ routes, onNavigate }: {
193
- routes?: never[] | undefined;
194
- onNavigate: any;
195
- }): JSX.Element;
196
-
197
- export declare function RouteTimeTable({ token }: {
198
- token: any;
199
- }): default_2.JSX.Element;
200
-
201
- export declare function Sections({ token }: {
202
- token: any;
203
- }): default_2.JSX.Element;
204
-
205
- export declare function SellReports({ token }: {
206
- token: any;
207
- }): default_2.JSX.Element;
208
-
209
- export declare function setBaseUrl(url: any): void;
210
-
211
- export declare function Shift({ token }: {
212
- token: any;
213
- }): default_2.JSX.Element;
214
-
215
- export declare function StaffAttendance({ token }: {
216
- token: any;
217
- }): default_2.JSX.Element;
218
-
219
- export declare function StaffAttendanceReport({ token }: {
220
- token: any;
221
- }): default_2.JSX.Element;
222
-
223
- export declare function StaffDailyAttendance({ token }: {
224
- token: any;
225
- }): default_2.JSX.Element;
226
-
227
- export declare function StaffDirectory({ token }: {
228
- token: any;
229
- }): default_2.JSX.Element;
230
-
231
- export declare function StockReport({ token }: {
232
- token: any;
233
- }): default_2.JSX.Element;
234
-
235
- export declare function Stoppage({ token }: {
236
- token: any;
237
- }): default_2.JSX.Element;
238
-
239
- export declare function StudentAttendance({ token }: {
240
- token: any;
241
- }): default_2.JSX.Element;
242
-
243
- export declare function SubCategory({ token }: {
244
- token: any;
245
- }): default_2.JSX.Element;
246
-
247
- export declare function Subjects({ token }: {
248
- token: any;
249
- }): default_2.JSX.Element;
250
-
251
- export declare function Syllabus({ token }: {
252
- token: any;
253
- }): default_2.JSX.Element;
254
-
255
- export declare function Terms({ token }: {
256
- token: any;
257
- }): default_2.JSX.Element;
258
-
259
- export declare function TimeTable({ token }: {
260
- token: any;
261
- }): default_2.JSX.Element;
262
-
263
- export declare function TransferCertificate({ token, transferCertificateViewPath, onOpenTransferCertificateView }: {
264
- token: any;
265
- transferCertificateViewPath: any;
266
- onOpenTransferCertificateView: any;
267
- }): default_2.JSX.Element;
268
-
269
- export declare function TransportRoutes({ token }: {
270
- token: any;
271
- }): default_2.JSX.Element;
272
-
273
- export declare function TransportVehicles({ token }: {
274
- token: any;
275
- }): default_2.JSX.Element;
276
-
277
- export declare function Unit({ token }: {
278
- token: any;
279
- }): default_2.JSX.Element;
280
-
281
- export declare function Vendor({ token }: {
282
- token: any;
283
- }): default_2.JSX.Element;
284
-
285
- export declare function YearlyReport({ token }: {
286
- token: any;
287
- }): default_2.JSX.Element;
288
-
289
- export { }
1
+ export { default as ErpDashboard } from './ErpDashboard';
2
+ export { default as MenuSubmenu } from './Layout/FontOffice/FontOfficeMenu';
3
+ export { default as AdmissionEnquiry } from './Layout/FontOffice/AdmissionEnquiry';
4
+ export { default as TransportRoutes } from './Layout/Transport/TransportRoutes';
5
+ export { default as TransportVehicles } from './Layout/Transport/TransportVehicles';
6
+ export { default as AssignVehicles } from './Layout/Transport/AssignVehicles';
7
+ export { default as AssignStudentToTransport } from './Layout/Transport/AssignStudentToTransport';
8
+ export { default as AddDriver } from './Layout/Transport/AddDriver';
9
+ export { default as RouteTimeTable } from './Layout/Transport/RouteTimeTable';
10
+ export { default as Stoppage } from './Layout/Transport/Stoppage';
11
+ export { default as AddBook } from './Layout/Library/AddBook';
12
+ export { default as BookList } from './Layout/Library/BookList';
13
+ export { default as IssueReturn } from './Layout/Library/IssueReturn';
14
+ export { default as LibraryAssignStudent } from './Layout/Library/AddStudent';
15
+ export { default as LibraryCategory } from './Layout/Library/Category';
16
+ export { default as LibraryReport } from './Layout/Library/LibMonthlyReport';
17
+ export { default as Vendor } from './Layout/store/Vendor';
18
+ export { default as Products } from './Layout/store/Products';
19
+ export { default as Category } from './Layout/store/Category';
20
+ export { default as SubCategory } from './Layout/store/SubCategory';
21
+ export { default as BuySellProduct } from './Layout/store/BuySellProduct';
22
+ export { default as Unit } from './Layout/store/Unit';
23
+ export { default as SellReports } from './Layout/store/SellReports';
24
+ export { default as ManageStock } from './Layout/store/ManageStock';
25
+ export { default as StockReport } from './Layout/store/StockReport';
26
+ export { default as AddStaff } from './Layout/HumanResource/AddStaff';
27
+ export { default as StaffDirectory } from './Layout/HumanResource/StaffDirectory';
28
+ export { default as StaffAttendance } from './Layout/HumanResource/StaffAttendance';
29
+ export { default as StaffAttendanceReport } from './Layout/HumanResource/StaffAttendanceReport';
30
+ export { default as Payroll } from './Layout/HumanResource/Payroll';
31
+ export { default as AprroveLeaveRequest } from './Layout/HumanResource/AprroveLeaveRequest';
32
+ export { default as ApplyLeave } from './Layout/HumanResource/ApplyLeave';
33
+ export { default as LeaveType } from './Layout/HumanResource/LeaveType';
34
+ export { default as Department } from './Layout/HumanResource/Department';
35
+ export { default as Designation } from './Layout/HumanResource/Designation';
36
+ export { default as Shift } from './Layout/HumanResource/Shift';
37
+ export { default as StaffDailyAttendance } from './Layout/HumanResource/StaffDailyAttendance';
38
+ export { default as PayrollReceiptDetails } from './Layout/HumanResource/PayrollReceiptDetails';
39
+ export { default as AttendanceDashboard } from './Layout/AttendanceDashboard/AttendanceDashboard';
40
+ export { default as StudentAttendance } from './Layout/AttendanceDashboard/StudentAttendance';
41
+ export { default as DailyAttendance } from './Layout/AttendanceDashboard/DailyAttendance';
42
+ export { default as MonthlyReport } from './Layout/AttendanceDashboard/MonthlyReport';
43
+ export { default as YearlyReport } from './Layout/AttendanceDashboard/YearlyReport';
44
+ export * from './Layout/Academics';
45
+ export * from './Layout/GeneralSetting';
46
+ export { default as AssignTimeGroup } from './Layout/Academics/AssignTimeGroup';
47
+ export { default as RoutePage } from './RoutePage';
48
+ export { setBaseUrl } from './Api/api';
package/dist/index.js CHANGED
@@ -2088,7 +2088,7 @@ const ih = (e) => {
2088
2088
  Authorization: a
2089
2089
  }
2090
2090
  }))?.data;
2091
- }, xc = "/branchapi/GeneralSettings/getsetting_allowances_dedectionBranch", bi = async (e, n, a) => {
2091
+ }, xc = "api/branchapi/GeneralSettings/getsetting_allowances_dedectionBranch", bi = async (e, n, a) => {
2092
2092
  const r = n?.arg, i = e.includes("?") ? "&" : "?";
2093
2093
  return (await Wt.get(e + i, {
2094
2094
  params: r,
@@ -10781,25 +10781,36 @@ function sp({ token: e, mode: n, staffId: a, initialRows: r, onSubmitted: i, onB
10781
10781
  ] })
10782
10782
  ] }) });
10783
10783
  }
10784
- const Lo = (e) => {
10785
- const n = e?.data ?? e ?? [];
10786
- return Array.isArray(n) ? n : Array.isArray(n?.data) ? n.data : n ?? [];
10784
+ const Lo = (e, n = []) => {
10785
+ if (Array.isArray(e)) return e;
10786
+ if (e && typeof e == "object") {
10787
+ const a = n.length ? n : ["allowances", "Allowances", "dedection", "Dedection", "deductions", "Deductions"], r = [e];
10788
+ e?.data && typeof e.data == "object" && r.push(e.data);
10789
+ for (const o of r)
10790
+ for (const s of a) {
10791
+ const d = o?.[s] ?? o?.[s.toLowerCase()] ?? o?.[s.toUpperCase()];
10792
+ if (Array.isArray(d) && d.length > 0) return d;
10793
+ }
10794
+ const i = e?.data;
10795
+ if (Array.isArray(i) && i.length > 0) return i;
10796
+ }
10797
+ return [];
10787
10798
  }, ta = [
10788
10799
  { label: "Per Hour", value: "Hourly" },
10789
10800
  { label: "Per Lecture", value: "lecture_wise" }
10790
10801
  ];
10791
10802
  function lp({ token: e, mode: n, staffId: a, initialValues: r, onSubmitted: i, onBack: o }) {
10792
- const [s, d] = u(r?.type ?? "Permanent"), [b, m] = u(r?.salary_type ?? ta[0]?.value), [c, S] = u(Number(r?.amount ?? 0)), [w, C] = u(Number(r?.basic_pay ?? 0)), [p, y] = u(r?.declarationPERyear ?? ""), { data: h } = Q(
10803
+ const [s, d] = u(r?.type ?? "Permanent"), [b, m] = u(r?.salary_type ?? ta[0]?.value), [c, S] = u(Number(r?.amount ?? 0)), [w, C] = u(Number(r?.basic_pay)), [p, y] = u(r?.declarationPERyear ?? ""), { data: h } = Q(
10793
10804
  e ? [xc, e] : null,
10794
10805
  ([f, v]) => ee(f, v),
10795
10806
  { revalidateOnFocus: !1 }
10796
- ), R = E(() => Lo(h?.Allowances), [h]), T = E(() => Lo(h?.Dedection), [h]), D = E(() => {
10807
+ ), R = E(() => Lo(h, ["allowances", "Allowances"]), [h]), T = E(() => Lo(h, ["dedection", "Dedection", "deductions", "Deductions"]), [h]), D = E(() => {
10797
10808
  const f = Number(w || 0), v = (Array.isArray(R) ? R : []).map((_) => {
10798
- const F = _?.amount_type ?? _?.amountType ?? _?.type, $ = Number(_?.Amount ?? _?.amount ?? 0), U = String(F).toLowerCase() === "flat" ? $ : Number(f) / 100 * Number($ || 0);
10799
- return { ..._, value: Number.isFinite(U) ? U : 0 };
10809
+ const F = _?.amount_type ?? _?.amountType ?? _?.type ?? "", $ = Number(_?.Amount ?? _?.amount ?? 0), N = String(F).trim().toLowerCase() === "flat" ? $ : Number(f) / 100 * Number($ || 0);
10810
+ return { ..._, value: Number.isFinite(N) ? N : 0 };
10800
10811
  }), A = (Array.isArray(T) ? T : []).map((_) => {
10801
- const F = _?.amount_type ?? _?.amountType ?? _?.type, $ = Number(_?.Amount ?? _?.amount ?? 0), U = String(F).toLowerCase() === "flat" ? $ : Number(f) / 100 * Number($ || 0);
10802
- return { ..._, value: Number.isFinite(U) ? U : 0 };
10812
+ const F = _?.amount_type ?? _?.amountType ?? _?.type ?? "", $ = Number(_?.Amount ?? _?.amount ?? 0), N = String(F).trim().toLowerCase() === "flat" ? $ : Number(f) / 100 * Number($ || 0);
10813
+ return { ..._, value: Number.isFinite(N) ? N : 0 };
10803
10814
  }), k = v.reduce((_, F) => _ + Number(F?.value || 0), 0), q = A.reduce((_, F) => _ + Number(F?.value || 0), 0), M = Math.max(0, Number(f) + k - q);
10804
10815
  return { allowances: v, deductions: A, netAmount: M };
10805
10816
  }, [R, T, w]), x = async (f) => {
@@ -10811,7 +10822,7 @@ function lp({ token: e, mode: n, staffId: a, initialValues: r, onSubmitted: i, o
10811
10822
  v.append("staff_id", String(a)), v.append("type", s), s === "Nonpermanent" ? (v.append("salary_type", b ?? ""), v.append("amount", String(c || "")), v.append("Allowances", JSON.stringify([])), v.append("Dedection", JSON.stringify([]))) : (v.append("basic_pay", String(w || "")), v.append("declarationPERyear", String(p ?? "")), v.append("Allowances", JSON.stringify(D.allowances || [])), v.append("Dedection", JSON.stringify(D.deductions || [])), v.append("amount", String(D.netAmount || 0)));
10812
10823
  try {
10813
10824
  const A = n === "edit", k = A ? wn.editPayroll : wn.addPayroll, q = A ? await un(k, v, e) : await Ht(k, v, e);
10814
- P.success("Success!", { duration: 1e3 }), i?.({ payroll: { staffType: s, salaryType: b, amount: c, basicPay: w, declaration: p }, result: q });
10825
+ i?.({ payroll: { staffType: s, salaryType: b, amount: c, basicPay: w, declaration: p }, result: q });
10815
10826
  } catch (A) {
10816
10827
  P.error(A?.response?.data?.msg ?? A?.message ?? "Failed.", { duration: 1e3 });
10817
10828
  }
@@ -10911,10 +10922,7 @@ function lp({ token: e, mode: n, staffId: a, initialValues: r, onSubmitted: i, o
10911
10922
  }
10912
10923
  ) })
10913
10924
  ] }),
10914
- /* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: [
10915
- /* @__PURE__ */ t(Button, { onClick: o, children: "Back" }),
10916
- /* @__PURE__ */ t(pe, { type: "submit", value: "Finish", color: "primary" })
10917
- ] })
10925
+ /* @__PURE__ */ t("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: /* @__PURE__ */ t(pe, { type: "submit", value: "Finish", color: "primary" }) })
10918
10926
  ] }) });
10919
10927
  }
10920
10928
  const dp = (e) => {
@@ -11006,7 +11014,7 @@ function cp({ token: e, mode: n = "add", staffId: a, onFinished: r }) {
11006
11014
  initialValues: v,
11007
11015
  onBack: () => o(1),
11008
11016
  onSubmitted: () => {
11009
- P.success("Completed.", { duration: 1e3 }), r?.({ staffId: p ?? s });
11017
+ P.success("Completed.", { duration: 1e3 }), r?.({ staffId: p ?? s }), o(0), n !== "edit" && (d(null), m(null), S(null), C(null));
11010
11018
  }
11011
11019
  }
11012
11020
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ubk.erp.webpack",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",