@inceptionbg/main 4.0.13 → 4.0.15

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.d.ts CHANGED
@@ -2,17 +2,38 @@ import * as axios from 'axios';
2
2
  import { AxiosResponse } from 'axios';
3
3
  export { AxiosError } from 'axios';
4
4
  import * as _inceptionbg_iui from '@inceptionbg/iui';
5
- import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IPagination, IReportTemplate, ToastContainerProps, IHeaderUserMenuDialogsProps, IAnyObject, INotificationsProps, IHeaderUserMenuProps, IReportTemplateData, ITableTemplateData, ITableItemDeleteData, IRoute } from '@inceptionbg/iui';
5
+ import { WidgetSpan, IWidgetDraftItem, ISimpleObjectWithCode, ISimpleObject, ISelectData, IPagination, IOrganizationLayout, IWidgetLayoutItem, IReportTemplate, IUserWidgetLayout, ToastContainerProps, IHeaderUserMenuDialogsProps, IAnyObject, INotificationsProps, IHeaderUserMenuProps, IReportTemplateData, ITableTemplateData, ITableItemDeleteData, IRoute } from '@inceptionbg/iui';
6
+ import { FC, ComponentType, ReactNode, Dispatch, SetStateAction } from 'react';
6
7
  import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
7
8
  import { IconDefinition } from '@fortawesome/fontawesome-common-types';
8
9
  import * as _tanstack_react_query from '@tanstack/react-query';
9
10
  import { UseMutationResult, QueryClient } from '@tanstack/react-query';
10
- import { FC, ReactNode, Dispatch, SetStateAction } from 'react';
11
11
  import * as react_jsx_runtime from 'react/jsx-runtime';
12
12
  import * as _tanstack_query_core from '@tanstack/query-core';
13
13
  import * as zustand from 'zustand';
14
14
 
15
- declare const moduleIds: readonly ["DASHBOARD", "ADMIN", "EARCHIVE", "ERDS", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "EPROCUREMENT", "EREGISTER", "PAM", "DISPATCH_ADVICE", "TELEGRAM_MNGMNT", "VAT_EVIDENCE", "VEOSP", "QC_REGISTRATION", "ERP_CASH_REGISTER", "ERP_FIXED_ASSETS", "ERP_RIF", "ERP_MAT_ACC", "ERP_SMALL_INVENTORY", "ERP_WMS", "ERP_HR", "JISUSZ_BACKOFFICE", "MONITORING"];
15
+ type WidgetContentProps = {
16
+ span?: WidgetSpan;
17
+ };
18
+ type WidgetContentRegistry = Record<string, ComponentType<WidgetContentProps>>;
19
+ interface Props$9 {
20
+ subsystem: string;
21
+ widgets: WidgetContentRegistry;
22
+ hasCompanyAccessR?: boolean;
23
+ hasCompanyAccessW?: boolean;
24
+ hasUserAccessR?: boolean;
25
+ hasUserAccessW?: boolean;
26
+ renderWidget?: (item: IWidgetDraftItem) => ReactNode;
27
+ header?: ReactNode;
28
+ className?: string;
29
+ fallback?: (info: {
30
+ code: string;
31
+ }) => ReactNode;
32
+ onCustomize?: () => void;
33
+ }
34
+ declare const Homepage: FC<Props$9>;
35
+
36
+ declare const moduleIds: readonly ["DASHBOARD", "ADMIN", "EARCHIVE", "ERDS", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "EPROCUREMENT", "EREGISTER", "PAM", "DISPATCH_ADVICE", "TELEGRAM_MNGMNT", "VAT_EVIDENCE", "VEOSP", "ERP_CASH_REGISTER", "ERP_FIXED_ASSETS", "ERP_RIF", "ERP_MAT_ACC", "ERP_SMALL_INVENTORY", "ERP_WMS", "ERP_HR", "JISUSZ_BACKOFFICE", "MONITORING"];
16
37
  declare const moduleIcon: {
17
38
  [id in IModuleId]: IconDefinition;
18
39
  };
@@ -1180,7 +1201,7 @@ interface IConditionIndexData {
1180
1201
 
1181
1202
  type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG' | 'TEST_MSP' | 'PROD_MSP' | 'TEST_LOCAL_MSP' | 'TEST_PTT' | 'PROD_PTT';
1182
1203
  type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
1183
- type IOptionalServiceApi = 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'reportTemplates' | 'approvalProcess' | 'procurement' | 'archive' | 'invoice' | 'delivery' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article' | 'approval' | 'messenger' | 'veosp' | 'fixedAssets' | 'dispatchAdvice' | 'tasks' | 'nbs' | 'organization';
1204
+ type IOptionalServiceApi = 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'reportTemplates' | 'approvalProcess' | 'procurement' | 'archive' | 'invoice' | 'delivery' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article' | 'approval' | 'messenger' | 'veosp' | 'fixedAssets' | 'dispatchAdvice' | 'tasks' | 'nbs' | 'organization' | 'widgets';
1184
1205
  type IServiceApi = IRequiredServiceApi | IOptionalServiceApi;
1185
1206
  type IEnvVar = {
1186
1207
  [env in IEnv]: {
@@ -1205,7 +1226,7 @@ type IOrganizationSettings = Record<string, any> & {
1205
1226
  language?: IOrganizationLanguage | string;
1206
1227
  closedFiscalYears?: IClosedFiscalYearEntry[];
1207
1228
  };
1208
- type IUserSettingsDefKeys = 'language' | 'activeOrgUuid' | 'defaultOrgUuid' | 'tableLimit';
1229
+ type IUserSettingsDefKeys = 'language' | 'activeOrgUuid' | 'defaultOrgUuid' | 'tableLimit' | 'theme';
1209
1230
  type IUserSettings<T extends string = string> = {
1210
1231
  [K in IUserSettingsDefKeys | T]?: any;
1211
1232
  };
@@ -1263,6 +1284,15 @@ declare const usePatchFiscalYear: ({ onSuccess }?: {
1263
1284
  action: FiscalYearAction;
1264
1285
  }, unknown>;
1265
1286
 
1287
+ declare const useGetOrganizationLayout: (uuid?: string, enabled?: boolean) => _tanstack_react_query.UseQueryResult<IOrganizationLayout, Error>;
1288
+ declare const useSaveOrganizationLayout: ({ onSuccess, }?: {
1289
+ onSuccess?: () => void;
1290
+ }) => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, any, {}>, Error, {
1291
+ uuid?: string;
1292
+ subsystem: string;
1293
+ items: IWidgetLayoutItem[];
1294
+ }, unknown>;
1295
+
1266
1296
  type IReportTemplatesFetchOption = 'SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION' | 'OPTIONS';
1267
1297
  type IReportTemplatesProps = {
1268
1298
  pagination: IPagination;
@@ -1277,27 +1307,7 @@ declare const useGetReportTemplates: (params: IReportTemplatesProps, enabled: bo
1277
1307
  templates: IReportTemplate[];
1278
1308
  totalRows: number;
1279
1309
  }, Error>;
1280
- declare const useCreateReportTemplate: () => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, {
1281
- organization: {
1282
- uuid: any;
1283
- };
1284
- subsystem: "DASHBOARD" | "ADMIN" | "EARCHIVE" | "ERDS" | "EINVOICE" | "EFORMS" | "EDMS" | "ESIGN" | "EVALIDATION" | "EPROCUREMENT" | "EREGISTER" | "PAM" | "DISPATCH_ADVICE" | "TELEGRAM_MNGMNT" | "VAT_EVIDENCE" | "VEOSP" | "QC_REGISTRATION" | "ERP_CASH_REGISTER" | "ERP_FIXED_ASSETS" | "ERP_RIF" | "ERP_MAT_ACC" | "ERP_SMALL_INVENTORY" | "ERP_WMS" | "ERP_HR" | "JISUSZ_BACKOFFICE" | "MONITORING" | null;
1285
- uuid?: string | undefined;
1286
- name?: string | undefined;
1287
- identifier?: string | undefined;
1288
- filterValues?: _inceptionbg_iui.IReportTemplateFilterValue[] | undefined;
1289
- options?: {
1290
- key: string;
1291
- value?: any;
1292
- }[] | undefined;
1293
- columns?: string[] | undefined;
1294
- sorts?: string[] | undefined;
1295
- isPublic?: boolean | undefined;
1296
- isDefault?: boolean | undefined;
1297
- order?: number | undefined;
1298
- createdAt?: string | undefined;
1299
- createdBy?: _inceptionbg_iui.ISimpleObject | undefined;
1300
- }, {}, any>, Error, Partial<IReportTemplate>, unknown>;
1310
+ declare const useCreateReportTemplate: () => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, any, {}>, Error, Partial<IReportTemplate>, unknown>;
1301
1311
  declare const useDeleteReportTemplates: IDeleteItemMutation;
1302
1312
 
1303
1313
  interface IUserSettingsUpdateOptions {
@@ -1312,12 +1322,26 @@ declare const useGetUserSettingsItem: (filters: {
1312
1322
  organizationUuidOrNull?: string;
1313
1323
  }) => _tanstack_react_query.UseQueryResult<IUserSettingsItem, Error>;
1314
1324
 
1315
- interface Props$7 {
1325
+ declare const useGetActiveUserWidgetLayout: (filters?: {
1326
+ subsystem?: string;
1327
+ hasPosition?: boolean;
1328
+ enabled?: boolean;
1329
+ }) => _tanstack_react_query.UseQueryResult<IUserWidgetLayout | null, Error>;
1330
+ declare const useSaveUserWidgetLayout: ({ onSuccess, }?: {
1331
+ onSuccess?: () => void;
1332
+ }) => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, any, {}>, Error, {
1333
+ uuid?: string;
1334
+ subsystem: string;
1335
+ userWidgetLayoutItems: IWidgetLayoutItem[];
1336
+ noToast?: boolean;
1337
+ }, unknown>;
1338
+
1339
+ interface Props$8 {
1316
1340
  toastProps?: ToastContainerProps;
1317
1341
  basename?: string;
1318
1342
  children: ReactNode;
1319
1343
  }
1320
- declare const AppWrapper: FC<Props$7>;
1344
+ declare const AppWrapper: FC<Props$8>;
1321
1345
 
1322
1346
  interface IError {
1323
1347
  errorMessage?: string;
@@ -1331,35 +1355,24 @@ interface IErrorContext {
1331
1355
  }
1332
1356
  declare const useErrorContext: () => IErrorContext;
1333
1357
 
1334
- interface Props$6 {
1358
+ interface Props$7 {
1335
1359
  children: ReactNode;
1336
1360
  }
1337
1361
  declare const queryClient: QueryClient;
1338
- declare const ReactQueryProvider: FC<Props$6>;
1362
+ declare const ReactQueryProvider: FC<Props$7>;
1339
1363
 
1340
1364
  declare const ArticlesPage: FC;
1341
1365
 
1342
- interface Props$5 {
1366
+ interface Props$6 {
1343
1367
  span?: 2 | 3 | 4;
1344
1368
  onClick?: () => void;
1345
1369
  }
1346
- declare const LastArticlesWidget: FC<Props$5>;
1370
+ declare const LastArticlesWidget: FC<Props$6>;
1347
1371
 
1348
1372
  declare const BusinessYearChooser: FC<{
1349
1373
  canChange?: boolean;
1350
1374
  }>;
1351
1375
 
1352
- interface BusinessYearSidebarIndicatorProps {
1353
- settingsPath?: string;
1354
- }
1355
- declare const BusinessYearSidebarIndicator: FC<BusinessYearSidebarIndicatorProps>;
1356
-
1357
- interface FiscalYearLockManagerProps {
1358
- canClose?: boolean;
1359
- canReopen?: boolean;
1360
- }
1361
- declare const FiscalYearLockManager: FC<FiscalYearLockManagerProps>;
1362
-
1363
1376
  type FiscalYearAuditUserLoader = (search: string, loadedOptions: [], offset?: {
1364
1377
  page: number;
1365
1378
  }) => Promise<void | {
@@ -1387,18 +1400,29 @@ interface BusinessYearPageProps {
1387
1400
  }
1388
1401
  declare const BusinessYearPage: FC<BusinessYearPageProps>;
1389
1402
 
1390
- interface Props$4 {
1403
+ interface BusinessYearSidebarIndicatorProps {
1404
+ settingsPath?: string;
1405
+ }
1406
+ declare const BusinessYearSidebarIndicator: FC<BusinessYearSidebarIndicatorProps>;
1407
+
1408
+ interface FiscalYearLockManagerProps {
1409
+ canClose?: boolean;
1410
+ canReopen?: boolean;
1411
+ }
1412
+ declare const FiscalYearLockManager: FC<FiscalYearLockManagerProps>;
1413
+
1414
+ interface Props$5 {
1391
1415
  textId?: string;
1392
1416
  itemUuids: string[];
1393
1417
  setItemUuids: Dispatch<SetStateAction<string[]>>;
1394
1418
  onSuccess?: () => void;
1395
1419
  useDeleteItemsMutation: IDeleteItemMutation;
1396
1420
  }
1397
- declare const DeleteItemsDialog: FC<Props$4>;
1421
+ declare const DeleteItemsDialog: FC<Props$5>;
1398
1422
 
1399
1423
  declare const HeaderUserMenuDialogs: FC<IHeaderUserMenuDialogsProps>;
1400
1424
 
1401
- interface Props$3 {
1425
+ interface Props$4 {
1402
1426
  searchData: IAnyObject;
1403
1427
  setSearchData: Dispatch<SetStateAction<IAnyObject>>;
1404
1428
  indexesSearch: Partial<IIndexData>[];
@@ -1406,7 +1430,19 @@ interface Props$3 {
1406
1430
  documentTypeUuid?: string;
1407
1431
  type?: 'document' | 'case' | 'contract';
1408
1432
  }
1409
- declare const IndexDataSearch: FC<Props$3>;
1433
+ declare const IndexDataSearch: FC<Props$4>;
1434
+
1435
+ interface EditorProps {
1436
+ subsystem: string;
1437
+ widgets: WidgetContentRegistry;
1438
+ }
1439
+ interface Props$3 extends EditorProps {
1440
+ hasCompanyAccessR?: boolean;
1441
+ hasCompanyAccessW?: boolean;
1442
+ hasUserAccessR?: boolean;
1443
+ hasUserAccessW?: boolean;
1444
+ }
1445
+ declare const HomepageSettings: FC<Props$3>;
1410
1446
 
1411
1447
  interface IBusinessYearContext {
1412
1448
  businessYear: string;
@@ -1431,11 +1467,6 @@ declare const useModuleSelect: (activeModuleId: IModuleId | null, { showBusiness
1431
1467
 
1432
1468
  declare const useNotificationsProps: () => INotificationsProps;
1433
1469
 
1434
- declare const useFiscalYearStatus: () => {
1435
- isClosed: boolean;
1436
- year: number;
1437
- };
1438
-
1439
1470
  interface IUseUserMenuPropsOptions {
1440
1471
  myAccount?: {
1441
1472
  hidden?: boolean;
@@ -1444,8 +1475,11 @@ interface IUseUserMenuPropsOptions {
1444
1475
  changeOrganization?: {
1445
1476
  hidden?: boolean;
1446
1477
  };
1478
+ theme?: {
1479
+ hidden?: boolean;
1480
+ };
1447
1481
  }
1448
- declare const useUserMenuProps: ({ myAccount, changeOrganization, }?: IUseUserMenuPropsOptions) => IHeaderUserMenuProps;
1482
+ declare const useUserMenuProps: ({ myAccount, changeOrganization, theme, }?: IUseUserMenuPropsOptions) => IHeaderUserMenuProps;
1449
1483
 
1450
1484
  declare const useDefaultTemplate: (identifier: string) => {
1451
1485
  defaultTemplate: _inceptionbg_iui.IReportTemplate | undefined;
@@ -1471,6 +1505,11 @@ interface Props$1 {
1471
1505
  }
1472
1506
  declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation, onSuccess, }: Props$1) => ITableItemDeleteData;
1473
1507
 
1508
+ declare const useFiscalYearStatus: () => {
1509
+ isClosed: boolean;
1510
+ year: number;
1511
+ };
1512
+
1474
1513
  declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
1475
1514
  enabled: boolean;
1476
1515
  pagination?: IPagination;
@@ -1593,7 +1632,6 @@ declare const i18nMainCyrilic: {
1593
1632
  TELEGRAM_MNGMNT: string;
1594
1633
  VAT_EVIDENCE: string;
1595
1634
  VEOSP: string;
1596
- QC_REGISTRATION: string;
1597
1635
  ERP_CASH_REGISTER: string;
1598
1636
  ERP_FIXED_ASSETS: string;
1599
1637
  ERP_RIF: string;
@@ -1837,6 +1875,28 @@ declare const i18nMainCyrilic: {
1837
1875
  AuditLogFiscalYearstatus: string;
1838
1876
  FiscalYearLocked: string;
1839
1877
  FiscalYearUnlocked: string;
1878
+ HomeSettings: string;
1879
+ ModuleWidgetsGridTitle: string;
1880
+ ModuleWidgetsGridHint: string;
1881
+ ModuleWidgetsSaveTitle: string;
1882
+ ModuleWidgetsSaveConfirm: string;
1883
+ ModuleWidgetsDeleteLayout: string;
1884
+ ModuleWidgetsDeleteTitle: string;
1885
+ ModuleWidgetsDeleteConfirm: string;
1886
+ WidgetLockingNotSupported: string;
1887
+ WidgetDuplicateUuid: string;
1888
+ WidgetMandatoryFixed: string;
1889
+ WidgetUnavailableOffGrid: string;
1890
+ WidgetGridCollision: string;
1891
+ UserHomepageEditorTitle: string;
1892
+ UserHomepageEditorHint: string;
1893
+ UserHomepagePaletteHint: string;
1894
+ UserHomepageResetToAdmin: string;
1895
+ Dismiss: string;
1896
+ HomepageAdminChangedText: string;
1897
+ HomepageAcceptAdminLayout: string;
1898
+ HomepageCustomizeLayout: string;
1899
+ HomepageNoWidgets: string;
1840
1900
  ErrorDEFAULT: string;
1841
1901
  TryAgain: string;
1842
1902
  };
@@ -1857,7 +1917,6 @@ declare const i18nMainLatin: {
1857
1917
  TELEGRAM_MNGMNT: string;
1858
1918
  VAT_EVIDENCE: string;
1859
1919
  VEOSP: string;
1860
- QC_REGISTRATION: string;
1861
1920
  ERP_CASH_REGISTER: string;
1862
1921
  ERP_FIXED_ASSETS: string;
1863
1922
  ERP_RIF: string;
@@ -2105,6 +2164,30 @@ declare const i18nMainLatin: {
2105
2164
  AuditLogFiscalYearstatus: string;
2106
2165
  FiscalYearLocked: string;
2107
2166
  FiscalYearUnlocked: string;
2167
+ HomeSettings: string;
2168
+ ModuleWidgetsGridTitle: string;
2169
+ ModuleWidgetsGridHint: string;
2170
+ ModuleWidgetsSaveTitle: string;
2171
+ ModuleWidgetsSaveConfirm: string;
2172
+ ModuleWidgetsDeleteLayout: string;
2173
+ ModuleWidgetsDeleteTitle: string;
2174
+ ModuleWidgetsDeleteConfirm: string;
2175
+ WidgetLockingNotSupported: string;
2176
+ WidgetDuplicateUuid: string;
2177
+ WidgetMandatoryFixed: string;
2178
+ WidgetUnavailableOffGrid: string;
2179
+ WidgetGridCollision: string;
2180
+ UserHomepageEditorTitle: string;
2181
+ UserHomepageEditorHint: string;
2182
+ UserHomepagePaletteHint: string;
2183
+ UserHomepageResetToAdmin: string;
2184
+ Dismiss: string;
2185
+ HomepageAdminSetupText: string;
2186
+ HomepageAdminSetupButton: string;
2187
+ HomepageAdminChangedText: string;
2188
+ HomepageAcceptAdminLayout: string;
2189
+ HomepageCustomizeLayout: string;
2190
+ HomepageNoWidgets: string;
2108
2191
  ErrorDEFAULT: string;
2109
2192
  TryAgain: string;
2110
2193
  };
@@ -2125,7 +2208,6 @@ declare const i18nMainME: {
2125
2208
  TELEGRAM_MNGMNT: string;
2126
2209
  VAT_EVIDENCE: string;
2127
2210
  VEOSP: string;
2128
- QC_REGISTRATION: string;
2129
2211
  ERP_CASH_REGISTER: string;
2130
2212
  ERP_FIXED_ASSETS: string;
2131
2213
  ERP_RIF: string;
@@ -2373,6 +2455,28 @@ declare const i18nMainME: {
2373
2455
  AuditLogFiscalYearstatus: string;
2374
2456
  FiscalYearLocked: string;
2375
2457
  FiscalYearUnlocked: string;
2458
+ HomeSettings: string;
2459
+ ModuleWidgetsGridTitle: string;
2460
+ ModuleWidgetsGridHint: string;
2461
+ ModuleWidgetsSaveTitle: string;
2462
+ ModuleWidgetsSaveConfirm: string;
2463
+ ModuleWidgetsDeleteLayout: string;
2464
+ ModuleWidgetsDeleteTitle: string;
2465
+ ModuleWidgetsDeleteConfirm: string;
2466
+ WidgetLockingNotSupported: string;
2467
+ WidgetDuplicateUuid: string;
2468
+ WidgetMandatoryFixed: string;
2469
+ WidgetUnavailableOffGrid: string;
2470
+ WidgetGridCollision: string;
2471
+ UserHomepageEditorTitle: string;
2472
+ UserHomepageEditorHint: string;
2473
+ UserHomepagePaletteHint: string;
2474
+ UserHomepageResetToAdmin: string;
2475
+ Dismiss: string;
2476
+ HomepageAdminChangedText: string;
2477
+ HomepageAcceptAdminLayout: string;
2478
+ HomepageCustomizeLayout: string;
2479
+ HomepageNoWidgets: string;
2376
2480
  ErrorDEFAULT: string;
2377
2481
  TryAgain: string;
2378
2482
  };
@@ -2384,5 +2488,5 @@ declare const ssGet: (key: LocalStorageItem) => string | null;
2384
2488
  declare const ssSet: (key: LocalStorageItem, value: string) => void;
2385
2489
  declare const ssRemove: (key: LocalStorageItem) => void;
2386
2490
 
2387
- export { AppWrapper, ArticlesPage, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, BusinessYearSidebarIndicator, Constraints, DeleteItemsDialog, DocumentStatuses, FiscalYearActions, FiscalYearLockManager, HeaderUserMenuDialogs, IndexDataSearch, LastArticlesWidget, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, changeOrganization, checkToken, clearActiveOrg, debugLog, decodeToken, envVars, getActiveOrgUuid, getToken, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, mainFullScreenRoutes, moduleIcon, moduleIds, queryClient, setBusinessYearContext, ssGet, ssRemove, ssSet, useActiveOrgUuid, useBusinessYearContext, useCreateReportTemplate, useDefaultTemplate, useDeleteReportTemplates, useErrorContext, useFiscalYearStatus, useGetMyOrganizations, useGetReportTemplates, useGetUserSettings, useGetUserSettingsItem, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganizationStore, usePatchFiscalYear, useReportTemplates, useTableItemsDelete, useUserMenuProps, useUserSettings, useUserStore, useUserMenuProps as userMenuProps };
2388
- export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, FiscalYearAction, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, IDeleteItemMutation, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMutationSuccess, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IRole, IRolePrivilege, IServiceApi, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption };
2491
+ export { AppWrapper, ArticlesPage, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, BusinessYearSidebarIndicator, Constraints, DeleteItemsDialog, DocumentStatuses, FiscalYearActions, FiscalYearLockManager, HeaderUserMenuDialogs, Homepage, HomepageSettings, IndexDataSearch, LastArticlesWidget, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, changeOrganization, checkToken, clearActiveOrg, debugLog, decodeToken, envVars, getActiveOrgUuid, getToken, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, mainFullScreenRoutes, moduleIcon, moduleIds, queryClient, setBusinessYearContext, ssGet, ssRemove, ssSet, useActiveOrgUuid, useBusinessYearContext, useCreateReportTemplate, useDefaultTemplate, useDeleteReportTemplates, useErrorContext, useFiscalYearStatus, useGetActiveUserWidgetLayout, useGetMyOrganizations, useGetOrganizationLayout, useGetReportTemplates, useGetUserSettings, useGetUserSettingsItem, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganizationStore, usePatchFiscalYear, useReportTemplates, useSaveOrganizationLayout, useSaveUserWidgetLayout, useTableItemsDelete, useUserMenuProps, useUserSettings, useUserStore, useUserMenuProps as userMenuProps };
2492
+ export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, FiscalYearAction, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, IDeleteItemMutation, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMutationSuccess, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IRole, IRolePrivilege, IServiceApi, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption, WidgetContentProps, WidgetContentRegistry };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{A as AppWrapper,e as ArticlesPage,B as BusinessYearChooser,f as BusinessYearPage,g as BusinessYearProvider,h as BusinessYearSidebarIndicator,D as DeleteItemsDialog,F as FiscalYearLockManager,H as HeaderUserMenuDialogs,I as IndexDataSearch,L as LastArticlesWidget,R as ReactQueryProvider,i as RolesWithPrivileges,c as changeOrganization,j as checkToken,k as clearActiveOrg,m as debugLog,n as decodeToken,o as envVars,p as getActiveOrgUuid,q as getToken,r as i18nMainCyrilic,s as i18nMainLatin,t as i18nMainME,v as login,l as logout,w as mainFullScreenRoutes,x as moduleIcon,y as moduleIds,z as queryClient,C as setBusinessYearContext,E as ssGet,G as ssRemove,J as ssSet,d as useActiveOrgUuid,K as useBusinessYearContext,M as useCreateReportTemplate,N as useDefaultTemplate,P as useDeleteReportTemplates,Q as useErrorContext,S as useFiscalYearStatus,b as useGetMyOrganizations,T as useGetReportTemplates,U as useGetUserSettings,V as useGetUserSettingsItem,W as useModuleSelect,X as useModules,Y as useNotificationsProps,a as useOrgInvites,Z as useOrganizationStore,_ as usePatchFiscalYear,$ as useReportTemplates,a0 as useTableItemsDelete,a1 as useUserMenuProps,a2 as useUserSettings,u as useUserStore,a1 as userMenuProps}from"./index-BWBpuu7r.js";import"@inceptionbg/iui";import"@tanstack/react-query";import"zustand";import"zustand/middleware";import"react-router";import"react/jsx-runtime";import"axios";import"react";import"crypto-js";import"jwt-decode";import"react-i18next";import"@inceptionbg/icons";import"@inceptionbg/icons/regular";
1
+ export{A as AppWrapper,e as ArticlesPage,B as BusinessYearChooser,f as BusinessYearPage,g as BusinessYearProvider,h as BusinessYearSidebarIndicator,D as DeleteItemsDialog,F as FiscalYearLockManager,H as HeaderUserMenuDialogs,i as Homepage,j as HomepageSettings,I as IndexDataSearch,L as LastArticlesWidget,R as ReactQueryProvider,k as RolesWithPrivileges,c as changeOrganization,m as checkToken,n as clearActiveOrg,o as debugLog,p as decodeToken,q as envVars,r as getActiveOrgUuid,s as getToken,t as i18nMainCyrilic,v as i18nMainLatin,w as i18nMainME,x as login,l as logout,y as mainFullScreenRoutes,z as moduleIcon,C as moduleIds,E as queryClient,G as setBusinessYearContext,J as ssGet,K as ssRemove,M as ssSet,d as useActiveOrgUuid,N as useBusinessYearContext,P as useCreateReportTemplate,Q as useDefaultTemplate,S as useDeleteReportTemplates,T as useErrorContext,U as useFiscalYearStatus,V as useGetActiveUserWidgetLayout,b as useGetMyOrganizations,W as useGetOrganizationLayout,X as useGetReportTemplates,Y as useGetUserSettings,Z as useGetUserSettingsItem,_ as useModuleSelect,$ as useModules,a0 as useNotificationsProps,a as useOrgInvites,a1 as useOrganizationStore,a2 as usePatchFiscalYear,a3 as useReportTemplates,a4 as useSaveOrganizationLayout,a5 as useSaveUserWidgetLayout,a6 as useTableItemsDelete,a7 as useUserMenuProps,a8 as useUserSettings,u as useUserStore,a7 as userMenuProps}from"./index-tLL4wtDQ.js";import"@inceptionbg/iui";import"@tanstack/react-query";import"zustand";import"zustand/middleware";import"react-router";import"react/jsx-runtime";import"axios";import"react";import"crypto-js";import"jwt-decode";import"react-i18next";import"@inceptionbg/icons";import"@inceptionbg/icons/regular";
2
2
  //# sourceMappingURL=index.js.map
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- .article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-tag{gap:4px;padding-right:4px}.article-tag,.article-tag-remove{align-items:center;display:inline-flex}.article-tag-remove{background:transparent;border:0;border-radius:50%;color:inherit;cursor:pointer;font-size:13px;height:14px;justify-content:center;line-height:1;margin:0;padding:0;width:14px}.article-tag-remove:hover:not(:disabled){background:var(--neutral-200);color:var(--danger-600)}.article-tag-remove:disabled{cursor:default;opacity:.5}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.fiscal-year-container{padding:16px}.fiscal-year-yearInfo{margin-bottom:16px}.fiscal-year-statusBadge{border-radius:4px;margin-top:8px;padding:8px}.fiscal-year-statusBadge.locked{background-color:#fee;color:#c33}.fiscal-year-statusBadge.open{background-color:#efe;color:#3c3}.fiscal-year-helpText{color:#666;font-size:14px;margin-top:8px}.business-year-sidebar{align-items:center;background-color:var(--neutral-100,#f5f5f5);border:1px solid var(--neutral-200,#e5e5e5);border-radius:var(--radius-control,8px);color:var(--neutral-800,#333);display:flex;gap:10px;padding:10px 12px;text-decoration:none}.business-year-sidebar.locked{background-color:#fee;border-color:#fcc;color:#933}.business-year-sidebar.locked .business-year-sidebar-icon{color:#c33}.business-year-sidebar .business-year-sidebar-icon{color:var(--primary-500,#2563eb);flex:none;font-size:14px}.business-year-sidebar .business-year-sidebar-label{font-size:13px;font-weight:600;line-height:1.3;margin:0}.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 .iui-list{max-height:50vh}
1
+ .article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-tag{gap:4px;padding-right:4px}.article-tag,.article-tag-remove{align-items:center;display:inline-flex}.article-tag-remove{background:transparent;border:0;border-radius:50%;color:inherit;cursor:pointer;font-size:13px;height:14px;justify-content:center;line-height:1;margin:0;padding:0;width:14px}.article-tag-remove:hover:not(:disabled){background:var(--neutral-200);color:var(--danger-600)}.article-tag-remove:disabled{cursor:default;opacity:.5}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.fiscal-year-container{padding:16px}.fiscal-year-yearInfo{margin-bottom:16px}.fiscal-year-statusBadge{border-radius:4px;margin-top:8px;padding:8px}.fiscal-year-statusBadge.locked{background-color:var(--color-status-danger-bg);color:var(--color-status-danger-text)}.fiscal-year-statusBadge.open{background-color:var(--color-status-success-bg);color:var(--color-status-success-text)}.fiscal-year-helpText{color:var(--color-text-secondary);font-size:14px;margin-top:8px}.business-year-sidebar{align-items:center;background-color:var(--color-sidebar-year-bg);border:1px solid var(--color-sidebar-border);border-radius:var(--radius-control,8px);color:var(--color-sidebar-text-strong);display:flex;gap:10px;padding:10px 12px;text-decoration:none;transition:background-color .15s}.business-year-sidebar:hover{background-color:color-mix(in srgb,var(--color-sidebar-year-bg),var(--color-sidebar-text-strong) 8%)}.business-year-sidebar.locked{background-color:var(--color-status-danger-bg);border-color:var(--color-status-danger-border)}.business-year-sidebar.locked,.business-year-sidebar.locked .business-year-sidebar-icon{color:var(--color-status-danger-text)}.business-year-sidebar .business-year-sidebar-icon{color:var(--color-sidebar-text);flex:none;font-size:14px}.business-year-sidebar .business-year-sidebar-label{font-size:13px;font-weight:600;line-height:1.3;margin:0}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:var(--color-text);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 .iui-list{max-height:50vh}