@inceptionbg/main 1.0.56 → 1.0.58
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 +48 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pdf-sign-container{box-shadow:0 0 5px hsla(0,2%,70%,.5);cursor:crosshair;left:50%;margin:auto;max-height:calc(100% - 20px);overflow:auto;position:absolute;top:10px;transform:translateX(-50%);z-index:2000}.pdf-sign-footer,.pdf-sign-header{align-items:center;background:#ddd;cursor:default;display:flex;height:40px;justify-content:center;width:100%}.pdf-sign-footer{gap:8px;height:45px}.react-pdf__Document{max-height:calc(100vh - 105px);overflow:auto;position:relative}.signature-box{border:2px dashed red;box-sizing:border-box;color:red;padding:4px;position:absolute}.signature-box.others{border-style:solid}.file-sign-iframe iframe{background-color:hsla(0,0%,100%,.95);height:calc(100% - 70px);left:0;position:fixed;top:0;width:100%;z-index:10000}.file-sign-iframe .btn-container{align-items:center;background:#ccc;bottom:0;box-shadow:0 0 5px hsla(0,2%,70%,.5);display:flex;height:70px;justify-content:center;position:fixed;width:100%;z-index:10001}.loading-empty{height:100px;width:200px}.dropzone-container{border:2px dotted #626262;border-radius:25px}.dropzone-container :hover{cursor:pointer}.dropzone-container .dropzone{color:rgba(0,0,0,.38);padding:20px;text-align:center}.dropzone-container .dropzone p{font-weight:500;letter-spacing:.4px}.iui-header{align-items:center;background-color:var(--primary);box-sizing:border-box;color:#fff;display:flex;height:var(--header-height);justify-content:space-between;padding:0 32px 0 8px;width:100%;z-index:100}.iui-header .header-button{border-radius:50%;height:24px;padding:8px;width:24px}.iui-header .header-button:hover{background-color:rgba(0,0,0,.15)}.module-name{align-items:center;border-radius:24px;display:flex;gap:8px;padding:8px;user-select:none}.module-name:hover{background-color:rgba(0,0,0,.15)}.module-icon{align-items:center;background:#fff;border-radius:50%;color:var(--primary);display:flex;height:30px;justify-content:center;width:30px}.module-icon svg{height:16px;width:16px}.user-box{align-items:center;display:flex;height:var(--header-height)}.user-info{max-width:150px;white-space:nowrap}.user-info,.user-info p{overflow:hidden;text-overflow:ellipsis}.user-info p{font-size:12px;line-height:1.5}.iui-sidebar{border-right:1px solid var(--gray);box-sizing:border-box;color:#333;display:flex;flex-direction:column;height:calc(100vh - var(--header-height));justify-content:space-between;position:relative;transition:width .3s cubic-bezier(.7,.1,.5,1);width:
|
|
1
|
+
.pdf-sign-container{box-shadow:0 0 5px hsla(0,2%,70%,.5);cursor:crosshair;left:50%;margin:auto;max-height:calc(100% - 20px);overflow:auto;position:absolute;top:10px;transform:translateX(-50%);z-index:2000}.pdf-sign-footer,.pdf-sign-header{align-items:center;background:#ddd;cursor:default;display:flex;height:40px;justify-content:center;width:100%}.pdf-sign-footer{gap:8px;height:45px}.react-pdf__Document{max-height:calc(100vh - 105px);overflow:auto;position:relative}.signature-box{border:2px dashed red;box-sizing:border-box;color:red;padding:4px;position:absolute}.signature-box.others{border-style:solid}.file-sign-iframe iframe{background-color:hsla(0,0%,100%,.95);height:calc(100% - 70px);left:0;position:fixed;top:0;width:100%;z-index:10000}.file-sign-iframe .btn-container{align-items:center;background:#ccc;bottom:0;box-shadow:0 0 5px hsla(0,2%,70%,.5);display:flex;height:70px;justify-content:center;position:fixed;width:100%;z-index:10001}.loading-empty{height:100px;width:200px}.dropzone-container{border:2px dotted #626262;border-radius:25px}.dropzone-container :hover{cursor:pointer}.dropzone-container .dropzone{color:rgba(0,0,0,.38);padding:20px;text-align:center}.dropzone-container .dropzone p{font-weight:500;letter-spacing:.4px}.iui-header{align-items:center;background-color:var(--primary);box-sizing:border-box;color:#fff;display:flex;height:var(--header-height);justify-content:space-between;padding:0 32px 0 8px;width:100%;z-index:100}.iui-header .header-button{border-radius:50%;height:24px;padding:8px;width:24px}.iui-header .header-button:hover{background-color:rgba(0,0,0,.15)}.module-name{align-items:center;border-radius:24px;display:flex;gap:8px;padding:8px;user-select:none}.module-name:hover{background-color:rgba(0,0,0,.15)}.module-icon{align-items:center;background:#fff;border-radius:50%;color:var(--primary);display:flex;height:30px;justify-content:center;width:30px}.module-icon svg{height:16px;width:16px}.user-box{align-items:center;display:flex;height:var(--header-height)}.user-info{max-width:150px;white-space:nowrap}.user-info,.user-info p{overflow:hidden;text-overflow:ellipsis}.user-info p{font-size:12px;line-height:1.5}.iui-sidebar{border-right:1px solid var(--gray);box-sizing:border-box;color:#333;display:flex;flex-direction:column;height:calc(100vh - var(--header-height));justify-content:space-between;position:relative;transition:width .3s cubic-bezier(.7,.1,.5,1);width:var(--sidebar-width);z-index:100}.iui-sidebar hr{color:var(--gray)}.iui-sidebar svg{color:#333}@media screen and (min-width:1024px){.iui-sidebar.iui-sidebar.collapsed{width:var(--sidebar-collapsed-width)}.iui-sidebar.iui-sidebar.collapsed:not(:hover) .content-hidden{display:none}.iui-sidebar.iui-sidebar.collapsed:not(:hover) .sidebar-logo{transform:scale(.5)}.iui-sidebar.sidebar-hover:hover{width:var(--sidebar-width)}}@media screen and (max-width:1023px){.iui-sidebar.iui-sidebar.collapsed{width:var(--sidebar-collapsed-width)}.iui-sidebar.iui-sidebar.collapsed:not(:hover) .content-hidden{display:none}.iui-sidebar.iui-sidebar.collapsed:not(:hover) .sidebar-logo{transform:scale(.5)}.iui-sidebar .sidebar-colapse{display:none}.iui-sidebar.sidebar-hover:hover{width:var(--sidebar-width)}.iui-sidebar.iui-sidebar:not(.collapsed):not(:hover){width:var(--sidebar-collapsed-width)!important}.iui-sidebar.iui-sidebar:not(.collapsed):not(:hover) .content-hidden{display:none}.iui-sidebar.iui-sidebar:not(.collapsed):not(:hover) .sidebar-logo{transform:scale(.5)}}.iui-sidebar-content{display:flex;flex:1;flex-direction:column;overflow-x:hidden;overflow-y:auto;overscroll-behavior:none;padding-top:12px}.iui-sidebar-content::-webkit-scrollbar{width:5px}.iui-sidebar-content .iui-sidebar-items{flex:1;width:var(--sidebar-width)}.iui-sidebar-item,.iui-sidebar-sub-item{align-items:center;box-sizing:border-box;display:flex;font-size:13px;justify-content:space-between;user-select:none;white-space:nowrap}.iui-sidebar-item.active,.iui-sidebar-item.clickable:hover:not(:disabled):not(.disabled),.iui-sidebar-sub-item.active,.iui-sidebar-sub-item.clickable:hover:not(:disabled):not(.disabled){border-right:3px solid var(--primary);color:var(--primary)}.iui-sidebar-item.active svg,.iui-sidebar-item.clickable:hover:not(:disabled):not(.disabled) svg,.iui-sidebar-sub-item.active svg,.iui-sidebar-sub-item.clickable:hover:not(:disabled):not(.disabled) svg{color:var(--primary)}.iui-sidebar-item:hover .add-button,.iui-sidebar-sub-item:hover .add-button{display:unset}.iui-sidebar-item{font-weight:700;height:45px;padding:8px 16px}.iui-sidebar-sub-item{height:32px;padding:0 20px 0 56px}.iui-sidebar-sub-item.primary{font-weight:700}.iui-sidebar-sub-item .add-button{display:none;padding:0}.iui-sidebar-sub-item .add-button svg{height:24px;padding:0!important;width:24px}.iui-sidebar-sub-item .add-button:hover .fa-secondary{opacity:.8}.iui-sidebar-sub-item .add-button .fa-secondary{fill:var(--secondary-light);opacity:.4}.sidebar-icon{color:var(--primary);height:24px;margin-right:15px;width:24px}.sidebar-expand-icon{height:16px;opacity:.6;transition:transform .2s;width:16px}.sidebar-expand-icon.rotate{opacity:.9;transform:rotate(180deg)}.sidebar-logo{margin:20px 0;transition:transform .3s ease-in-out;width:70px}.sidebar-colapse{align-items:center;background-color:#fff;border:1px solid var(--primary);border-radius:50%;box-sizing:border-box;display:flex;height:32px;justify-content:center;opacity:0;position:absolute;right:-16px;top:40px;transition:opacity .15s ease-in-out;width:32px}.sidebar-colapse:active{transform:translateY(2px)}.sidebar-colapse svg{color:var(--primary)}.iui-sidebar:hover .sidebar-colapse{opacity:1}.select-org{padding:48px;width:50%!important}.select-org .org-list{max-height:50vh;overflow:auto;padding:8px 16px}.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
|
@@ -267,6 +267,12 @@ interface IApproval {
|
|
|
267
267
|
startApprovalByConditionsOnApprovalEnd?: boolean;
|
|
268
268
|
issueDateChange?: boolean;
|
|
269
269
|
}
|
|
270
|
+
type DocumentApprovalFetchOption = 'STEPS_WITH_VOTES' | 'APPROVAL' | 'READY_TO_VOTE' | 'DIRECTLY_PROCESS_COMPLETION_USER';
|
|
271
|
+
interface IApprovalSearch {
|
|
272
|
+
organizationUuid?: string;
|
|
273
|
+
active?: boolean;
|
|
274
|
+
orunUuid?: string;
|
|
275
|
+
}
|
|
270
276
|
declare const Constraints: readonly ["TAX_ALLOCATION_NOT_EMPTY", "TAX_ALLOCATION_BALANCE", "COST_CENTER_EXPENSES_NOT_EMPTY", "ACCOUNTS_NOT_EMPTY", "ACCOUNTS_BALANCE", "ORGANIZATIONAL_UNIT_NOT_EMPTY", "PAYMENT_NOT_EMPTY", "SUGGESTED_PAYMENT_ORDER_NOT_EMPTY", "INDEX_DATA", "ACCOUNTS_SUM_LESS_THAN_INVOICE_TOTAL_PRICE", "VAT_EVIDENCE_TYPE_NOT_EMPTY", "PAYMENT_PLANNED_DATE_NOT_EMPTY"];
|
|
271
277
|
type IConstraint = (typeof Constraints)[number];
|
|
272
278
|
interface IApprovalStep {
|
|
@@ -289,6 +295,9 @@ interface IApprovalStep {
|
|
|
289
295
|
constraints?: IConstraint[];
|
|
290
296
|
indexDataConstraints?: IIndexData[];
|
|
291
297
|
}
|
|
298
|
+
interface IApprovalStepSearch {
|
|
299
|
+
approvalStepGroupUuid?: string;
|
|
300
|
+
}
|
|
292
301
|
interface ILatestApprovalProcess {
|
|
293
302
|
uuid?: string;
|
|
294
303
|
createdAt?: string;
|
|
@@ -330,6 +339,23 @@ interface IDocumentApprovalVote {
|
|
|
330
339
|
returnedStep?: boolean;
|
|
331
340
|
adHocVote?: boolean;
|
|
332
341
|
}
|
|
342
|
+
interface IVoteSearch {
|
|
343
|
+
voted?: boolean;
|
|
344
|
+
documentNumber?: string;
|
|
345
|
+
documentTypeUuid?: string;
|
|
346
|
+
issuerOrReceiverUuid?: string;
|
|
347
|
+
dateFrom?: string;
|
|
348
|
+
dateTo?: string;
|
|
349
|
+
voteTimeFrom?: string;
|
|
350
|
+
voteTimeTo?: string;
|
|
351
|
+
userApprovalStatus?: string;
|
|
352
|
+
currentApprovalStatus?: string;
|
|
353
|
+
active?: boolean;
|
|
354
|
+
myVotes?: boolean;
|
|
355
|
+
sort?: 'PRIORITY_DESC' | 'ID_DESC';
|
|
356
|
+
employee?: IEmployee;
|
|
357
|
+
employeeUuid?: string;
|
|
358
|
+
}
|
|
333
359
|
interface IPhaseGroup {
|
|
334
360
|
uuid?: string;
|
|
335
361
|
name?: string;
|
|
@@ -340,6 +366,25 @@ interface IPhaseGroup {
|
|
|
340
366
|
};
|
|
341
367
|
internalCode?: 'PIO_RECEIPT_AND_SCANNING_DOCUMENT' | 'PIO_DETERMINING_LEGAL_BASIS_AND_COMPLETING_DOCUMENTATION' | 'PIO_DOCUMENTATION_CORRECTNESS_CHECK' | 'PIO_SUPPLIER_OBLIGATION_RECORDING' | 'PIO_PAYMENT_APPROVAL' | 'PIO_PAYMENT_READY' | 'PIO_PAYMENT_DONE' | 'PIO_DOCUMENTATION_VERIFICATION';
|
|
342
368
|
}
|
|
369
|
+
interface IPhaseGroupSearch {
|
|
370
|
+
nameLike?: string;
|
|
371
|
+
}
|
|
372
|
+
interface ICondition {
|
|
373
|
+
uuid?: string;
|
|
374
|
+
approval?: IApproval;
|
|
375
|
+
amountFrom?: number | string;
|
|
376
|
+
amountTo?: number | string;
|
|
377
|
+
orun?: IOrganizationalUnitUpdate;
|
|
378
|
+
partner?: IPartner;
|
|
379
|
+
documentType?: IDocumentType;
|
|
380
|
+
indexDatas?: IConditionIndexData[];
|
|
381
|
+
}
|
|
382
|
+
interface IConditionIndexData {
|
|
383
|
+
uuid?: string;
|
|
384
|
+
approvalCondition?: ICondition;
|
|
385
|
+
indexData?: IIndexData;
|
|
386
|
+
value?: string;
|
|
387
|
+
}
|
|
343
388
|
|
|
344
389
|
interface IShipment extends IDocument {
|
|
345
390
|
conversationView?: {
|
|
@@ -1320,6 +1365,8 @@ interface IUserPrivileges {
|
|
|
1320
1365
|
PRESERVATION_W?: boolean;
|
|
1321
1366
|
SHIPMENT_D?: boolean;
|
|
1322
1367
|
ORGANIZATION_INVITE?: boolean;
|
|
1368
|
+
OFFICE_DOCUMENT_SEND_W?: boolean;
|
|
1369
|
+
OFFICE_DOCUMENT_SEND_R?: boolean;
|
|
1323
1370
|
}
|
|
1324
1371
|
interface IOrganizationPrivileges {
|
|
1325
1372
|
sefApiKey?: string;
|
|
@@ -1515,4 +1562,4 @@ interface Props {
|
|
|
1515
1562
|
}
|
|
1516
1563
|
declare const IndexDataSearch: FC<Props>;
|
|
1517
1564
|
|
|
1518
|
-
export { AxiosTokenHandler, DocumentFetchOption, DocumentFileFetchOptions, DocumentFileSignDialog, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FileSignAppPortal, FilesDropzone, Header, IBankAccount, IBankAccountSearch, IBusinessActivity, IContactPerson, ICountry, ICurrency, IDocument, IDocumentAny, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPlace, ISidebarItem, IToken, IUploadDocumentType, IUser, IUserPreferences, IUserPrivileges, IndexDataSearch, LoginPage, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, logout };
|
|
1565
|
+
export { ApprovalStatus, AxiosTokenHandler, Constraints, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentFileSignDialog, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FileSignAppPortal, FilesDropzone, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, IBusinessActivity, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, ICurrency, 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, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, ISidebarItem, IToken, IUploadDocumentType, IUser, IUserPreferences, IUserPrivileges, IVoteSearch, IndexDataSearch, LoginPage, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, logout };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inceptionbg/main",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
4
4
|
"description": "Main app wrapper for Inception ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tslib": "^2.6.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@inceptionbg/iui": "^1.0.
|
|
45
|
+
"@inceptionbg/iui": "^1.0.75",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0",
|
|
48
48
|
"react-i18next": "^13.0.1",
|