@inceptionbg/main 2.0.182 → 3.0.1
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/dist/index.css +1 -1
- package/dist/index.d.ts +70 -71
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/global.d.ts +1 -8
- package/package.json +18 -17
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.notification-counter{cursor:pointer;position:relative;user-select:none}.notification-counter .bell svg .fa-secondary{fill:#fa3;stroke:#544417;stroke-width:30px;stroke-opacity:.5;opacity:1}.notification-counter .count{align-items:center;background-color:var(--danger);border-radius:50%;color:#fff;display:flex;font-size:10px;height:18px;justify-content:center;min-width:18px;position:absolute;right:0;top:0}.notifications-container{cursor:pointer;display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - var(--header-height) - 150px);overflow:auto;padding:8px}.notification{background-color:var(--primary-o10);border-radius:8px;padding:8px}.notification .header{align-items:flex-start;display:flex;justify-content:space-between}.notification .header .title{color:var(--primary-dark);font-size:14px;font-weight:700}.notification .header .date{color:rgba(0,0,0,.6);font-size:9px;margin:4px 0}.notification .header svg{color:var(--primary-o25);height:13px;padding:4px;width:13px}.notification .desc{color:#000;font-size:12px}.notification .unread-icon svg{color:#ff9500}.notification .disabled{opacity:1}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:#333;font-size:16px;line-height:1.6}.select-org-page .org-page-content{display:grid;gap:32px;grid-template-columns:1fr 1fr;padding:24px 48px}.select-org{display:flex;flex-direction:column;gap:16px;max-width:600px}.select-org .org-list{max-height:50vh;overflow:auto}.select-org .org-item{align-items:center;border-top:1px solid;display:flex;justify-content:space-between;padding:14px 16px}.select-org .org-item:hover{background-color:var(--primary-o10)}.select-org .org-item:last-child{border-bottom:1px solid}.select-org .org-item p{font-size:16px;line-height:25.6px}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IBooleanObject, IAnyObject } from '@inceptionbg/iui';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IBooleanObject, IAnyObject, IPagination } from '@inceptionbg/iui';
|
|
2
|
+
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
4
|
+
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
4
5
|
import { AxiosResponse } from 'axios';
|
|
5
6
|
export { AxiosError } from 'axios';
|
|
6
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
7
7
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
8
8
|
import * as reactQuery from '@tanstack/react-query';
|
|
9
9
|
export { reactQuery as ReactQuery };
|
|
10
10
|
export { keepPreviousData, useMutation, useQuery } from '@tanstack/react-query';
|
|
11
|
+
import * as react from 'react';
|
|
12
|
+
import { Dispatch, SetStateAction, ReactNode, FC } from 'react';
|
|
11
13
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
14
|
|
|
13
15
|
interface IPlace {
|
|
@@ -34,15 +36,16 @@ interface IScanData {
|
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
declare const ModuleIds: readonly ["DASHBOARD", "ADMIN", "EARCHIVE", "ERDS", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "EPROCUREMENT", "EREGISTER", "PAM", "ERP_CASH_REGISTER", "ERP_RIF", "ERP_MAT_ACC", "ERP_SMALL_INVENTORY", "ERP_WMS", "JISUSZ_BACKOFFICE"];
|
|
37
|
-
declare const
|
|
39
|
+
declare const moduleIcon: {
|
|
40
|
+
[id in IModuleId]: IconDefinition;
|
|
41
|
+
};
|
|
38
42
|
|
|
39
43
|
type IModuleId = (typeof ModuleIds)[number];
|
|
40
44
|
type IModule = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
45
|
+
name: string;
|
|
46
|
+
icon: IconDefinition$1;
|
|
47
|
+
url: string;
|
|
48
|
+
disabled?: boolean;
|
|
46
49
|
};
|
|
47
50
|
interface IModuleIdsObj {
|
|
48
51
|
availableModules: IModuleId[];
|
|
@@ -244,6 +247,15 @@ interface IOrganization {
|
|
|
244
247
|
type?: 'BASIC';
|
|
245
248
|
reseller?: 'MTS' | 'PPL';
|
|
246
249
|
}
|
|
250
|
+
interface IOrganizationInvite {
|
|
251
|
+
uuid: string;
|
|
252
|
+
createdAt: string;
|
|
253
|
+
organization?: IOrganization;
|
|
254
|
+
sender?: IPartner;
|
|
255
|
+
receiver?: IPartner;
|
|
256
|
+
roles?: IRole[];
|
|
257
|
+
}
|
|
258
|
+
type IOrganizationInvitesFetchOption = 'SENDER' | 'ORGANIZATION' | 'ROLE';
|
|
247
259
|
interface serviceDoc {
|
|
248
260
|
uuid: string;
|
|
249
261
|
originalFileName: string;
|
|
@@ -1287,13 +1299,6 @@ type IEnvVar = {
|
|
|
1287
1299
|
|
|
1288
1300
|
type IOrganizationSettings = Record<string, any>;
|
|
1289
1301
|
|
|
1290
|
-
interface IRoute {
|
|
1291
|
-
path?: string;
|
|
1292
|
-
element?: ReactElement;
|
|
1293
|
-
fullPage?: boolean;
|
|
1294
|
-
childrenRoutes?: IRoute[];
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1302
|
interface IToken {
|
|
1298
1303
|
sub: string;
|
|
1299
1304
|
userUuid: string;
|
|
@@ -1313,7 +1318,7 @@ type IUseMutationData = {
|
|
|
1313
1318
|
|
|
1314
1319
|
interface ISidebarItem {
|
|
1315
1320
|
label: string;
|
|
1316
|
-
icon?: IconDefinition;
|
|
1321
|
+
icon?: IconDefinition$1;
|
|
1317
1322
|
to?: string;
|
|
1318
1323
|
content?: ISidebarSubItem[];
|
|
1319
1324
|
menu?: {
|
|
@@ -1351,11 +1356,6 @@ declare const getUser: () => Promise<IUser>;
|
|
|
1351
1356
|
|
|
1352
1357
|
declare const decodeToken: (token?: string | null) => IToken | undefined;
|
|
1353
1358
|
|
|
1354
|
-
interface IProps$1 {
|
|
1355
|
-
children: ReactNode;
|
|
1356
|
-
}
|
|
1357
|
-
declare const AxiosTokenHandler: FC<IProps$1>;
|
|
1358
|
-
|
|
1359
1359
|
declare const envVars: IEnvVar;
|
|
1360
1360
|
|
|
1361
1361
|
interface IErrorContext {
|
|
@@ -1396,63 +1396,71 @@ declare const BusinessYearProvider: ({ children }: {
|
|
|
1396
1396
|
declare const useBusinessYearContext: () => IBusinessYearContext;
|
|
1397
1397
|
declare const setBusinessYearContext: (year: string) => void;
|
|
1398
1398
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1399
|
+
declare const useHeaderUserProps: () => {
|
|
1400
|
+
userName: string | null;
|
|
1401
|
+
organizationName: string | undefined;
|
|
1402
|
+
showBadge: boolean;
|
|
1403
|
+
isMenuOpen: boolean;
|
|
1404
|
+
onMenuClose: () => void;
|
|
1405
|
+
menuItems: ({
|
|
1406
|
+
label: any;
|
|
1407
|
+
icon: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
1408
|
+
onClick: () => void;
|
|
1409
|
+
badge?: undefined;
|
|
1410
|
+
hidden?: undefined;
|
|
1411
|
+
} | {
|
|
1412
|
+
label: any;
|
|
1413
|
+
icon: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
1414
|
+
badge: number;
|
|
1415
|
+
onClick: () => void;
|
|
1416
|
+
hidden: boolean;
|
|
1417
|
+
})[];
|
|
1418
|
+
Components: () => react_jsx_runtime.JSX.Element;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
declare const useModuleSelect: (activeModuleId: IModuleId | null) => {
|
|
1422
|
+
activeModule: IModule | null;
|
|
1423
|
+
modules: IModule[];
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
|
|
1427
|
+
enabled: boolean;
|
|
1428
|
+
pagination?: IPagination | undefined;
|
|
1429
|
+
fetchOptions?: IOrganizationInvitesFetchOption[] | undefined;
|
|
1430
|
+
}) => {
|
|
1431
|
+
invites: IOrganizationInvite[];
|
|
1432
|
+
count: number;
|
|
1433
|
+
isLoading: boolean;
|
|
1434
|
+
refetch: () => void;
|
|
1435
|
+
};
|
|
1405
1436
|
|
|
1406
1437
|
declare const LoginPage: FC;
|
|
1407
1438
|
|
|
1408
|
-
interface Props$
|
|
1439
|
+
interface Props$6 {
|
|
1409
1440
|
title?: string;
|
|
1410
1441
|
buttonLabel?: string;
|
|
1411
1442
|
showLogout?: boolean;
|
|
1412
1443
|
}
|
|
1413
|
-
declare const NoAccessInfo: FC<Props$
|
|
1414
|
-
|
|
1415
|
-
declare const NoMatchPage: FC;
|
|
1444
|
+
declare const NoAccessInfo: FC<Props$6>;
|
|
1416
1445
|
|
|
1417
1446
|
declare const SelectOrgPage: FC;
|
|
1418
1447
|
|
|
1419
|
-
interface Props$
|
|
1448
|
+
interface Props$5 {
|
|
1420
1449
|
modulePrivileges: string[];
|
|
1421
1450
|
usePrivileges: () => IAnyObject;
|
|
1422
1451
|
}
|
|
1423
|
-
declare const RolesWithPrivileges: FC<Props$
|
|
1424
|
-
|
|
1425
|
-
interface Props$7 {
|
|
1426
|
-
i18n: any;
|
|
1427
|
-
children: ReactNode;
|
|
1428
|
-
}
|
|
1429
|
-
declare const AppWrapper: FC<Props$7>;
|
|
1430
|
-
|
|
1431
|
-
interface Props$6 {
|
|
1432
|
-
customTitle?: string;
|
|
1433
|
-
hideModules?: boolean;
|
|
1434
|
-
hideNotifications?: boolean;
|
|
1435
|
-
children?: ReactNode;
|
|
1436
|
-
}
|
|
1437
|
-
declare const Header: FC<Props$6>;
|
|
1438
|
-
|
|
1439
|
-
interface Props$5 {
|
|
1440
|
-
sidebarItems: ISidebarItem[][];
|
|
1441
|
-
hideNotifications?: boolean;
|
|
1442
|
-
children: ReactNode;
|
|
1443
|
-
}
|
|
1444
|
-
declare const MainPageWrapper: FC<Props$5>;
|
|
1452
|
+
declare const RolesWithPrivileges: FC<Props$5>;
|
|
1445
1453
|
|
|
1446
1454
|
interface Props$4 {
|
|
1455
|
+
i18n: any;
|
|
1447
1456
|
children: ReactNode;
|
|
1448
1457
|
}
|
|
1449
|
-
declare const
|
|
1458
|
+
declare const AppWrapper: FC<Props$4>;
|
|
1450
1459
|
|
|
1451
1460
|
interface Props$3 {
|
|
1452
|
-
|
|
1453
|
-
UserBox?: ReactElement;
|
|
1461
|
+
children: ReactNode;
|
|
1454
1462
|
}
|
|
1455
|
-
declare const
|
|
1463
|
+
declare const ReactQueryProvider: FC<Props$3>;
|
|
1456
1464
|
|
|
1457
1465
|
interface Props$2 {
|
|
1458
1466
|
searchData: IAnyObject;
|
|
@@ -1506,8 +1514,6 @@ declare const i18nMainLatin: {
|
|
|
1506
1514
|
SendHistory: string;
|
|
1507
1515
|
AccordionView: string;
|
|
1508
1516
|
TabView: string;
|
|
1509
|
-
FooterText: string;
|
|
1510
|
-
PageNotFound: string;
|
|
1511
1517
|
Settings: string;
|
|
1512
1518
|
Roles: string;
|
|
1513
1519
|
Logout: string;
|
|
@@ -1518,8 +1524,6 @@ declare const i18nMainLatin: {
|
|
|
1518
1524
|
SessionExpiredInfo: string;
|
|
1519
1525
|
SetOrgAsDefault: string;
|
|
1520
1526
|
SignInWithDifferentAccount: string;
|
|
1521
|
-
NoAccessTitle: string;
|
|
1522
|
-
ReturnToHomepage: string;
|
|
1523
1527
|
ChangeOrganization: string;
|
|
1524
1528
|
OrganizationInvite: string;
|
|
1525
1529
|
RejectInvite: string;
|
|
@@ -1727,8 +1731,6 @@ declare const i18nMainCyrilic: {
|
|
|
1727
1731
|
SendHistory: string;
|
|
1728
1732
|
AccordionView: string;
|
|
1729
1733
|
TabView: string;
|
|
1730
|
-
FooterText: string;
|
|
1731
|
-
PageNotFound: string;
|
|
1732
1734
|
Settings: string;
|
|
1733
1735
|
Roles: string;
|
|
1734
1736
|
Logout: string;
|
|
@@ -1739,8 +1741,6 @@ declare const i18nMainCyrilic: {
|
|
|
1739
1741
|
SessionExpiredInfo: string;
|
|
1740
1742
|
SetOrgAsDefault: string;
|
|
1741
1743
|
SignInWithDifferentAccount: string;
|
|
1742
|
-
NoAccessTitle: string;
|
|
1743
|
-
ReturnToHomepage: string;
|
|
1744
1744
|
ChangeOrganization: string;
|
|
1745
1745
|
OrganizationInvite: string;
|
|
1746
1746
|
RejectInvite: string;
|
|
@@ -1948,7 +1948,6 @@ declare const i18nMainME_Latin: {
|
|
|
1948
1948
|
AccordionView: string;
|
|
1949
1949
|
TabView: string;
|
|
1950
1950
|
FooterText: string;
|
|
1951
|
-
PageNotFound: string;
|
|
1952
1951
|
Settings: string;
|
|
1953
1952
|
Roles: string;
|
|
1954
1953
|
Logout: string;
|
|
@@ -1959,7 +1958,6 @@ declare const i18nMainME_Latin: {
|
|
|
1959
1958
|
SessionExpiredInfo: string;
|
|
1960
1959
|
SetOrgAsDefault: string;
|
|
1961
1960
|
SignInWithDifferentAccount: string;
|
|
1962
|
-
NoAccessTitle: string;
|
|
1963
1961
|
ReturnToHomepage: string;
|
|
1964
1962
|
ChangeOrganization: string;
|
|
1965
1963
|
OrganizationInvite: string;
|
|
@@ -2151,4 +2149,5 @@ declare const BusinessYearChooser: FC;
|
|
|
2151
2149
|
|
|
2152
2150
|
declare const BusinessYearPage: FC;
|
|
2153
2151
|
|
|
2154
|
-
export { AppWrapper,
|
|
2152
|
+
export { AppWrapper, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemDialog, DeleteItemsDialog, DocumentStatuses, ErrorContext, IndexDataSearch, LoginPage, ModuleIds, NoAccessInfo, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, SelectOrgPage, SubSystems, UserOrgContext, UserOrgProvider, decodeToken, envVars, getUser, i18nMainCyrilic, i18nMainLatin, i18nMainME_Latin, login, logout, moduleIcon, setBusinessYearContext, useBusinessYearContext, useHeaderUserProps, useModuleSelect, useModules, useOrgInvites, useUserAndOrg };
|
|
2153
|
+
export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRole, IRolePrivilege, IServiceApi, ISidebarItem, ISubsystem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption };
|