ubk.erp.webpack 1.4.7 → 1.4.8
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.
- package/README.md +25 -2
- package/dist/Api/api.d.ts +11 -9
- package/dist/Api/apiOption.d.ts +9 -7
- package/dist/Api/lenientJson.d.ts +9 -0
- package/dist/Api/lenientJson.test.d.ts +1 -0
- package/dist/Layout/Exam/Components/AddAssessmentForm.d.ts +14 -0
- package/dist/Layout/Exam/Pages/SingleResultPage.d.ts +11 -0
- package/dist/Layout/Exam/ResultTemplate/Template1.d.ts +12 -0
- package/dist/Layout/Exam/ResultTemplate/Template10.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template11.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template12.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template13.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template14.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template15.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template2.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template3.d.ts +12 -0
- package/dist/Layout/Exam/ResultTemplate/Template4.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template5.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template6.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template7.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template8.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/Template9.d.ts +18 -0
- package/dist/Layout/Exam/ResultTemplate/compat.d.ts +50 -0
- package/dist/Layout/Exam/ResultTemplate/images/index.d.ts +1 -0
- package/dist/Layout/Exam/ResultTemplate/index.d.ts +43 -0
- package/dist/Layout/Exam/Services/examsService.d.ts +8 -4
- package/dist/Layout/Exam/SingleResult.d.ts +8 -0
- package/dist/Layout/Exam/index.d.ts +1 -0
- package/dist/Layout/FontOffice/AdmissionEnquiry.d.ts +10 -4
- package/dist/Layout/FontOffice/AdmissionEnquiryEdit.d.ts +6 -0
- package/dist/Layout/FontOffice/AdmissionEnquiryForm.d.ts +14 -0
- package/dist/Layout/FontOffice/PhoneCallLogEdit.d.ts +1 -0
- package/dist/Layout/FontOffice/VisitorBook.d.ts +9 -2
- package/dist/Layout/FontOffice/VisitorEdit.d.ts +1 -0
- package/dist/Layout/FontOffice/admissionEnquiryService.d.ts +12 -0
- package/dist/Layout/FontOffice/frontOfficeUpload.d.ts +19 -0
- package/dist/Layout/HumanResource/StaffAttendance/Components/AttendancePaginationTable.d.ts +2 -1
- package/dist/Layout/HumanResource/innerPage/StaffAttendanceSingle.d.ts +3 -1
- package/dist/Layout/StudentInformation/HealthReport/HealthReport.d.ts +9 -0
- package/dist/Layout/StudentInformation/HealthReport/index.d.ts +1 -0
- package/dist/Layout/StudentInformation/index.d.ts +1 -0
- package/dist/Layout/store/BuySellProduct/Services/buySellService.d.ts +1 -0
- package/dist/Layout/store/ManageStock/Services/manageStockService.d.ts +1 -0
- package/dist/Layout/store/Products/Services/productsService.d.ts +1 -0
- package/dist/Layout/store/Services/storeService.d.ts +1 -0
- package/dist/components/ImageServerUpload/imageServer.d.ts +21 -0
- package/dist/components/ImageServerUpload/index.d.ts +23 -0
- package/dist/components/UBKBox/index.d.ts +14 -1
- package/dist/components/UBKTypography/index.d.ts +7 -1
- package/dist/components/print/reactToPrintCompat.d.ts +10 -0
- package/dist/components/theme/ubkTheme.d.ts +16 -0
- package/dist/components/theme/ubkTheme.test.d.ts +1 -0
- package/dist/index.cjs +42 -14
- package/dist/index.d.ts +2 -0
- package/dist/index.js +32153 -17848
- package/package.json +2 -2
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default VisitorBook;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} props.token
|
|
6
|
+
* @param {React.CSSProperties} [props.style] Style for the section header bars (Add Visitor, Visitor List).
|
|
7
|
+
* Its `color` also sets the header text colour.
|
|
8
|
+
*/
|
|
9
|
+
declare function VisitorBook({ token, style }: {
|
|
10
|
+
token: string;
|
|
11
|
+
style?: React.CSSProperties | undefined;
|
|
5
12
|
}): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export namespace admissionEnquiryEndpoints {
|
|
2
|
+
let list: any;
|
|
3
|
+
let search: any;
|
|
4
|
+
let add: any;
|
|
5
|
+
let edit: any;
|
|
6
|
+
let remove: any;
|
|
7
|
+
let show: any;
|
|
8
|
+
let sourceDropdown: any;
|
|
9
|
+
let referenceDropdown: any;
|
|
10
|
+
}
|
|
11
|
+
export function toOptions(raw: any): any;
|
|
12
|
+
export function withPaging(url: any, page: any, perPage: any): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getBranchId, getUploadError, getUploadedFileName } from '../../components/ImageServerUpload/imageServer';
|
|
2
|
+
export const FRONT_OFFICE_IMAGE_ACCEPT: ".jpg,.jpeg,.png,.gif,.webp,image/jpeg,image/png,image/gif,image/webp";
|
|
3
|
+
export const FRONT_OFFICE_IMAGE_TYPE_ERROR: "Only JPG, JPEG, PNG, GIF and WEBP images are allowed";
|
|
4
|
+
export const checkFrontOfficeImage: (file: any) => "Only JPG, JPEG, PNG, GIF and WEBP images are allowed" | null;
|
|
5
|
+
export const getFrontOfficeUploadUrl: () => any;
|
|
6
|
+
export function getFrontOfficeFilePath(token: any): string;
|
|
7
|
+
export function getFrontOfficeFileUrl(fileName: any, token: any): string;
|
|
8
|
+
export function frontOfficeUploadProps(token: any): {
|
|
9
|
+
action: any;
|
|
10
|
+
name: string;
|
|
11
|
+
data: {
|
|
12
|
+
filepath: string;
|
|
13
|
+
};
|
|
14
|
+
headers: {
|
|
15
|
+
Authorization: any;
|
|
16
|
+
} | undefined;
|
|
17
|
+
maxCount: number;
|
|
18
|
+
};
|
|
19
|
+
export { getBranchId, getUploadError, getUploadedFileName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default AttendancePaginationTable;
|
|
3
|
-
declare function AttendancePaginationTable({ token, url, columns, reload, setReload, saveBtnRef, setSaveBtnDisabled, date, type, }: {
|
|
3
|
+
declare function AttendancePaginationTable({ token, url, columns, reload, setReload, saveBtnRef, setSaveBtnDisabled, date, type, giveAttendanceHandler, }: {
|
|
4
4
|
token: any;
|
|
5
5
|
url: any;
|
|
6
6
|
columns: any;
|
|
@@ -10,4 +10,5 @@ declare function AttendancePaginationTable({ token, url, columns, reload, setRel
|
|
|
10
10
|
setSaveBtnDisabled: any;
|
|
11
11
|
date: any;
|
|
12
12
|
type?: string | undefined;
|
|
13
|
+
giveAttendanceHandler: any;
|
|
13
14
|
}): React.JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default StaffAttendanceSingle;
|
|
3
|
-
declare function StaffAttendanceSingle({ token, open, onClose, roleId, onSaved }: {
|
|
3
|
+
declare function StaffAttendanceSingle({ token, open, onClose, roleId, staffId, attendanceDate, onSaved }: {
|
|
4
4
|
token: any;
|
|
5
5
|
open: any;
|
|
6
6
|
onClose: any;
|
|
7
7
|
roleId: any;
|
|
8
|
+
staffId: any;
|
|
9
|
+
attendanceDate: any;
|
|
8
10
|
onSaved: any;
|
|
9
11
|
}): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export default HealthReport;
|
|
3
|
+
/**
|
|
4
|
+
* Health Report — medicines given to students over a date range, filterable by class, section
|
|
5
|
+
* and student. Opens with today's records, like the old ERP report.
|
|
6
|
+
*/
|
|
7
|
+
declare function HealthReport({ token }: {
|
|
8
|
+
token: any;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './HealthReport';
|
|
@@ -2,3 +2,4 @@ export { default as StudentLoginCredential } from './StudentLoginCredential';
|
|
|
2
2
|
export { default as MedicalReport } from './MedicalReport';
|
|
3
3
|
export { default as AssignStudentSubject } from './AssignStudentSubject';
|
|
4
4
|
export { default as BulkUpload } from './BulkUpload';
|
|
5
|
+
export { default as HealthReport } from './HealthReport';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function getImageServerUrl(): any;
|
|
2
|
+
export function getBranchId(token: any): any;
|
|
3
|
+
export function getImageUploadUrl(): any;
|
|
4
|
+
export function getUploadFilePath(token: any, folder: any): string;
|
|
5
|
+
export function getUploadedFileUrl(fileName: any, token: any, folder: any): string;
|
|
6
|
+
export function getUploadError(response: any): any;
|
|
7
|
+
export function getUploadedFileName(response: any): string;
|
|
8
|
+
export function imageServerUploadProps(token: any, folder: any): {
|
|
9
|
+
action: any;
|
|
10
|
+
name: string;
|
|
11
|
+
data: {
|
|
12
|
+
filepath: string;
|
|
13
|
+
};
|
|
14
|
+
headers: {
|
|
15
|
+
Authorization: any;
|
|
16
|
+
} | undefined;
|
|
17
|
+
maxCount: number;
|
|
18
|
+
};
|
|
19
|
+
export const IMAGE_ACCEPT: ".jpg,.jpeg,.png,.gif,.webp,image/jpeg,image/png,image/gif,image/webp";
|
|
20
|
+
export const IMAGE_TYPE_ERROR: "Only JPG, JPEG, PNG, GIF and WEBP images are allowed";
|
|
21
|
+
export function checkImageFile(file: any): "Only JPG, JPEG, PNG, GIF and WEBP images are allowed" | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export default ImageServerUpload;
|
|
3
|
+
export * from './imageServer';
|
|
4
|
+
/**
|
|
5
|
+
* Single-file upload into uploads/school_{branch}/{folder}.
|
|
6
|
+
* Images go to the image server (uploadfile.php). PDFs are only accepted when `pdfUpload` is given —
|
|
7
|
+
* uploadfile.php rejects them — and are sent to `pdfUpload.action` with `filepath: pdfUpload.filePath`.
|
|
8
|
+
* `value` is the stored file name; `onChange(fileName)` fires on success ("" when removed).
|
|
9
|
+
*
|
|
10
|
+
* @param {{ token: string, folder: string, value?: string, onChange?: (name: string) => void, preview?: boolean,
|
|
11
|
+
* pdfUpload?: { action: string, filePath: string } }} props
|
|
12
|
+
*/
|
|
13
|
+
declare function ImageServerUpload({ token, folder, value, onChange, preview, pdfUpload }: {
|
|
14
|
+
token: string;
|
|
15
|
+
folder: string;
|
|
16
|
+
value?: string;
|
|
17
|
+
onChange?: (name: string) => void;
|
|
18
|
+
preview?: boolean;
|
|
19
|
+
pdfUpload?: {
|
|
20
|
+
action: string;
|
|
21
|
+
filePath: string;
|
|
22
|
+
};
|
|
23
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export default UBKBox;
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Layout box.
|
|
4
|
+
* - `variant="gradient"` + `bgColor="info"` → themed gradient; `bgColor` alone → solid colour.
|
|
5
|
+
* Theme names: primary, secondary, info, success, warning, error, light, dark (or any CSS colour).
|
|
6
|
+
* - `color`, `borderRadius` ("sm" | "md" | "lg" | "xl" | number), `coloredShadow` (theme name).
|
|
7
|
+
* - Spacing: m, mt, mb, ml, mr, mx, my, p, pt, pb, pl, pr, px, py.
|
|
8
|
+
* `style` always wins over the props above.
|
|
9
|
+
*/
|
|
10
|
+
declare function UBKBox({ width, height, display, justifyContent, alignItems, flexDirection, gap, variant, bgColor, color, borderRadius, coloredShadow, style, children, ...rest }: {
|
|
3
11
|
[x: string]: any;
|
|
4
12
|
width: any;
|
|
5
13
|
height: any;
|
|
@@ -8,6 +16,11 @@ declare function UBKBox({ width, height, display, justifyContent, alignItems, fl
|
|
|
8
16
|
alignItems: any;
|
|
9
17
|
flexDirection: any;
|
|
10
18
|
gap: any;
|
|
19
|
+
variant: any;
|
|
20
|
+
bgColor: any;
|
|
21
|
+
color: any;
|
|
22
|
+
borderRadius: any;
|
|
23
|
+
coloredShadow: any;
|
|
11
24
|
style: any;
|
|
12
25
|
children: any;
|
|
13
26
|
}): import("react").JSX.Element;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export default UBKTypography;
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Text / heading. `variant`: h1–h6 (h6 = a compact level-5 title with no margin, used in
|
|
4
|
+
* section headers), anything else renders body text. `color`: a theme name ("info", "white", …)
|
|
5
|
+
* or any CSS colour.
|
|
6
|
+
*/
|
|
7
|
+
declare function UBKTypography({ variant, fontWeight, color, style, children, ...rest }: {
|
|
3
8
|
[x: string]: any;
|
|
4
9
|
variant: any;
|
|
5
10
|
fontWeight: any;
|
|
11
|
+
color: any;
|
|
6
12
|
style: any;
|
|
7
13
|
children: any;
|
|
8
14
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/** v2-style hook on either version: useReactToPrint({ content: () => ref.current, ...options }) → print() */
|
|
3
|
+
export function useReactToPrint({ content, ...options }?: {}): () => void;
|
|
4
|
+
/** v2-style component: <ReactToPrint trigger={() => <button/>} content={() => ref.current} /> */
|
|
5
|
+
export function ReactToPrint({ trigger, content, ...options }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
trigger: any;
|
|
8
|
+
content: any;
|
|
9
|
+
}): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export default ReactToPrint;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const THEME_COLOR_NAMES: string[];
|
|
2
|
+
export function themeColor(name: any): any;
|
|
3
|
+
export function themeGradient(name: any, angle?: number): any;
|
|
4
|
+
export function themeShadow(name: any): string | undefined;
|
|
5
|
+
export function themeRadius(value: any): any;
|
|
6
|
+
export function themeSpacing(value: any): any;
|
|
7
|
+
export function setUbkTheme(overrides?: {
|
|
8
|
+
[color: string]: {
|
|
9
|
+
start?: string;
|
|
10
|
+
end?: string;
|
|
11
|
+
} | string;
|
|
12
|
+
radius?: {
|
|
13
|
+
[size: string]: number;
|
|
14
|
+
};
|
|
15
|
+
}): void;
|
|
16
|
+
export function resetUbkTheme(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|