@asaleh37/ui-base 1.2.21 → 1.2.23
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/.env +0 -4
- package/dist/index.d.ts +56 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/administration/admin/PersonGrid.tsx +1 -2
- package/src/components/common/Home.tsx +10 -2
- package/src/components/templates/index.ts +7 -0
- package/src/main.tsx +1 -1
package/package.json
CHANGED
|
@@ -163,8 +163,7 @@ const PersonGrid: React.FC = () => {
|
|
|
163
163
|
<OrganizationMemberGrid selectedPerson={selectedPerson} />
|
|
164
164
|
</OrganizationMembersWindow>
|
|
165
165
|
<TemplateGrid
|
|
166
|
-
attachment={{ attachmentCode: "
|
|
167
|
-
workFlowDocumentCode="DOC"
|
|
166
|
+
attachment={{ attachmentCode: "EMPLOYEE_PHOTOS" }}
|
|
168
167
|
apiActions={apiActions}
|
|
169
168
|
data={data}
|
|
170
169
|
setData={setData}
|
|
@@ -5,8 +5,11 @@ import ReportViewer from "../templates/report/ReportViewer";
|
|
|
5
5
|
import WorkflowDocumentPanel from "../templates/workflow/WorkflowDocumentPanel";
|
|
6
6
|
import DashboardViewer from "../templates/visuals/DashboardViewer";
|
|
7
7
|
import AttachmentPanel from "../templates/attachment/AttachmentPanel";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
8
9
|
|
|
9
10
|
const Home: React.FC = () => {
|
|
11
|
+
const AppInfo = useSelector((state: any) => state.AppInfo.value);
|
|
12
|
+
console.log("AppInfo", AppInfo);
|
|
10
13
|
return (
|
|
11
14
|
<Box
|
|
12
15
|
sx={{
|
|
@@ -19,8 +22,13 @@ const Home: React.FC = () => {
|
|
|
19
22
|
fontWeight: "bold",
|
|
20
23
|
}}
|
|
21
24
|
>
|
|
22
|
-
<img
|
|
23
|
-
|
|
25
|
+
<img
|
|
26
|
+
src={AppInfo.appLogo}
|
|
27
|
+
style={{ margin: 5, height: 200, width: 200 }}
|
|
28
|
+
/>
|
|
29
|
+
<div>
|
|
30
|
+
Welcome to {AppInfo.appName} v.{AppInfo.appVersion}
|
|
31
|
+
</div>
|
|
24
32
|
<div style={{ fontSize: 16 }}>
|
|
25
33
|
Use side menu [
|
|
26
34
|
<FontAwesomeIcon
|
|
@@ -12,6 +12,13 @@ export { default as DatetimeField } from "./DataEntryTemplates/TemplateDataForm/
|
|
|
12
12
|
export { default as TemplateTextField } from "./DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField";
|
|
13
13
|
export { default as TemplateForm } from "./DataEntryTemplates/TemplateDataForm/TemplateForm";
|
|
14
14
|
export { default as TemplateGrid } from "./DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
15
|
+
export { default as AttachmentCard } from "./attachment/AttachmentCard";
|
|
16
|
+
export { default as AttachmentImageViewer } from "./attachment/AttachmentImageViewer";
|
|
17
|
+
export { default as AttachmentPanel } from "./attachment/AttachmentPanel";
|
|
18
|
+
export { default as WorkflowDocumentPanel } from "./workflow/WorkflowDocumentPanel";
|
|
19
|
+
export { default as WorkflowDocumentTimeLine } from "./workflow/WorkflowDocumentTimeLine";
|
|
20
|
+
export { default as WorkflowRouteComponent } from "./workflow/WorkflowRouteComponent";
|
|
21
|
+
|
|
15
22
|
|
|
16
23
|
export type * from "./DataEntryTemplates/DataEntryTypes";
|
|
17
24
|
export type { TransferListProps } from "./TransferList";
|
package/src/main.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { BaseApp } from "./components";
|
|
|
5
5
|
|
|
6
6
|
createRoot(document.getElementById("root")!).render(
|
|
7
7
|
<BaseApp
|
|
8
|
-
apiBaseUrl="http://localhost:8080/
|
|
8
|
+
apiBaseUrl="http://localhost:8080/demo"
|
|
9
9
|
appLogo={"/public/logo.png"}
|
|
10
10
|
appName="UI Base Library"
|
|
11
11
|
appVersion="0.0"
|