ptechcore_ui 1.0.34 → 1.0.36
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.cjs +4348 -3870
- package/dist/index.d.cts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +4247 -3775
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -229,6 +229,7 @@ interface Vendor {
|
|
|
229
229
|
activity_sector?: string | null;
|
|
230
230
|
description?: string | null;
|
|
231
231
|
accounting_account_number?: string | null;
|
|
232
|
+
account?: number | null;
|
|
232
233
|
capital?: number | null;
|
|
233
234
|
annual_turnover?: number | null;
|
|
234
235
|
payment_delay?: number | null;
|
|
@@ -645,6 +646,7 @@ interface Client extends TrackableModel, BusinessEntityAbstract {
|
|
|
645
646
|
city?: string | null;
|
|
646
647
|
address?: string | null;
|
|
647
648
|
accounting_account_number?: string | null;
|
|
649
|
+
account?: number | null;
|
|
648
650
|
capital?: number | null;
|
|
649
651
|
annual_turnover?: number | null;
|
|
650
652
|
payment_delay?: number;
|
|
@@ -697,6 +699,52 @@ declare const ClientServices: {
|
|
|
697
699
|
delete: (id: number) => Promise<unknown>;
|
|
698
700
|
};
|
|
699
701
|
|
|
702
|
+
type AccountType = 'E' | 'V' | 'C' | 'TO' | 'D' | 'OR' | 'SC' | 'NSC' | 'FI' | 'FE' | 'NOI' | 'NOE' | 'B' | 'CC' | 'T' | 'TI' | 'R';
|
|
703
|
+
type BalanceType = '(Cr)' | 'Dr' | '(Cr) - Dr' | 'Cr';
|
|
704
|
+
interface Account {
|
|
705
|
+
id?: number;
|
|
706
|
+
account_number: string;
|
|
707
|
+
alias_account_number?: string;
|
|
708
|
+
external_account_number?: string;
|
|
709
|
+
name: string;
|
|
710
|
+
french_description?: string;
|
|
711
|
+
english_description?: string;
|
|
712
|
+
level: number;
|
|
713
|
+
parent?: number | null;
|
|
714
|
+
balance: BalanceType;
|
|
715
|
+
account_type: AccountType;
|
|
716
|
+
is_active: boolean;
|
|
717
|
+
business_entity?: number;
|
|
718
|
+
created_at?: string;
|
|
719
|
+
updated_at?: string;
|
|
720
|
+
children?: Account[];
|
|
721
|
+
}
|
|
722
|
+
declare const ACCOUNT_TYPE_LABELS: Record<AccountType, string>;
|
|
723
|
+
declare const BALANCE_TYPE_LABELS: Record<BalanceType, string>;
|
|
724
|
+
declare const SYSCOHADA_CLASSES: {
|
|
725
|
+
code: string;
|
|
726
|
+
name: string;
|
|
727
|
+
color: string;
|
|
728
|
+
}[];
|
|
729
|
+
|
|
730
|
+
interface AccountListResponse {
|
|
731
|
+
data: Account[];
|
|
732
|
+
paginate: {
|
|
733
|
+
total_pages: number;
|
|
734
|
+
current_page: number;
|
|
735
|
+
count: number;
|
|
736
|
+
next: string | null;
|
|
737
|
+
previous: string | null;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
declare const AccountServices: {
|
|
741
|
+
create: (data: Partial<Account>) => Promise<Account>;
|
|
742
|
+
get: (id: number) => Promise<Account>;
|
|
743
|
+
list: (params?: Record<string, any>) => Promise<AccountListResponse>;
|
|
744
|
+
update: (id: number, data: Partial<Account>) => Promise<Account>;
|
|
745
|
+
delete: (id: number) => Promise<unknown>;
|
|
746
|
+
};
|
|
747
|
+
|
|
700
748
|
type ImportField = {
|
|
701
749
|
value: string;
|
|
702
750
|
label: string;
|
|
@@ -838,6 +886,14 @@ declare const SelectUser: React.FC<SelectProps$1>;
|
|
|
838
886
|
declare const SelectDepartment: React.FC<SelectProps$1>;
|
|
839
887
|
declare const SelectCostCenter: React.FC<SelectProps$1>;
|
|
840
888
|
declare const SelectUnit: React.FC<SelectProps$1>;
|
|
889
|
+
interface SelectAccountProps extends SelectProps$1 {
|
|
890
|
+
filterClass?: string;
|
|
891
|
+
filterType?: string;
|
|
892
|
+
showInactive?: boolean;
|
|
893
|
+
label?: string;
|
|
894
|
+
}
|
|
895
|
+
declare const SelectAccount: React.FC<SelectAccountProps>;
|
|
896
|
+
declare const SelectClient: React.FC<SelectProps$1>;
|
|
841
897
|
|
|
842
898
|
interface SelectProps {
|
|
843
899
|
value?: any;
|
|
@@ -1607,4 +1663,4 @@ declare const formatDateFR: (date: Date | string, format?: "short" | "long") =>
|
|
|
1607
1663
|
*/
|
|
1608
1664
|
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
1609
1665
|
|
|
1610
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
|
1666
|
+
export { ACCOUNT_TYPE_LABELS, type Account, type AccountListResponse, AccountServices, type AccountType, Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, type BalanceType, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SYSCOHADA_CLASSES, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -229,6 +229,7 @@ interface Vendor {
|
|
|
229
229
|
activity_sector?: string | null;
|
|
230
230
|
description?: string | null;
|
|
231
231
|
accounting_account_number?: string | null;
|
|
232
|
+
account?: number | null;
|
|
232
233
|
capital?: number | null;
|
|
233
234
|
annual_turnover?: number | null;
|
|
234
235
|
payment_delay?: number | null;
|
|
@@ -645,6 +646,7 @@ interface Client extends TrackableModel, BusinessEntityAbstract {
|
|
|
645
646
|
city?: string | null;
|
|
646
647
|
address?: string | null;
|
|
647
648
|
accounting_account_number?: string | null;
|
|
649
|
+
account?: number | null;
|
|
648
650
|
capital?: number | null;
|
|
649
651
|
annual_turnover?: number | null;
|
|
650
652
|
payment_delay?: number;
|
|
@@ -697,6 +699,52 @@ declare const ClientServices: {
|
|
|
697
699
|
delete: (id: number) => Promise<unknown>;
|
|
698
700
|
};
|
|
699
701
|
|
|
702
|
+
type AccountType = 'E' | 'V' | 'C' | 'TO' | 'D' | 'OR' | 'SC' | 'NSC' | 'FI' | 'FE' | 'NOI' | 'NOE' | 'B' | 'CC' | 'T' | 'TI' | 'R';
|
|
703
|
+
type BalanceType = '(Cr)' | 'Dr' | '(Cr) - Dr' | 'Cr';
|
|
704
|
+
interface Account {
|
|
705
|
+
id?: number;
|
|
706
|
+
account_number: string;
|
|
707
|
+
alias_account_number?: string;
|
|
708
|
+
external_account_number?: string;
|
|
709
|
+
name: string;
|
|
710
|
+
french_description?: string;
|
|
711
|
+
english_description?: string;
|
|
712
|
+
level: number;
|
|
713
|
+
parent?: number | null;
|
|
714
|
+
balance: BalanceType;
|
|
715
|
+
account_type: AccountType;
|
|
716
|
+
is_active: boolean;
|
|
717
|
+
business_entity?: number;
|
|
718
|
+
created_at?: string;
|
|
719
|
+
updated_at?: string;
|
|
720
|
+
children?: Account[];
|
|
721
|
+
}
|
|
722
|
+
declare const ACCOUNT_TYPE_LABELS: Record<AccountType, string>;
|
|
723
|
+
declare const BALANCE_TYPE_LABELS: Record<BalanceType, string>;
|
|
724
|
+
declare const SYSCOHADA_CLASSES: {
|
|
725
|
+
code: string;
|
|
726
|
+
name: string;
|
|
727
|
+
color: string;
|
|
728
|
+
}[];
|
|
729
|
+
|
|
730
|
+
interface AccountListResponse {
|
|
731
|
+
data: Account[];
|
|
732
|
+
paginate: {
|
|
733
|
+
total_pages: number;
|
|
734
|
+
current_page: number;
|
|
735
|
+
count: number;
|
|
736
|
+
next: string | null;
|
|
737
|
+
previous: string | null;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
declare const AccountServices: {
|
|
741
|
+
create: (data: Partial<Account>) => Promise<Account>;
|
|
742
|
+
get: (id: number) => Promise<Account>;
|
|
743
|
+
list: (params?: Record<string, any>) => Promise<AccountListResponse>;
|
|
744
|
+
update: (id: number, data: Partial<Account>) => Promise<Account>;
|
|
745
|
+
delete: (id: number) => Promise<unknown>;
|
|
746
|
+
};
|
|
747
|
+
|
|
700
748
|
type ImportField = {
|
|
701
749
|
value: string;
|
|
702
750
|
label: string;
|
|
@@ -838,6 +886,14 @@ declare const SelectUser: React.FC<SelectProps$1>;
|
|
|
838
886
|
declare const SelectDepartment: React.FC<SelectProps$1>;
|
|
839
887
|
declare const SelectCostCenter: React.FC<SelectProps$1>;
|
|
840
888
|
declare const SelectUnit: React.FC<SelectProps$1>;
|
|
889
|
+
interface SelectAccountProps extends SelectProps$1 {
|
|
890
|
+
filterClass?: string;
|
|
891
|
+
filterType?: string;
|
|
892
|
+
showInactive?: boolean;
|
|
893
|
+
label?: string;
|
|
894
|
+
}
|
|
895
|
+
declare const SelectAccount: React.FC<SelectAccountProps>;
|
|
896
|
+
declare const SelectClient: React.FC<SelectProps$1>;
|
|
841
897
|
|
|
842
898
|
interface SelectProps {
|
|
843
899
|
value?: any;
|
|
@@ -1607,4 +1663,4 @@ declare const formatDateFR: (date: Date | string, format?: "short" | "long") =>
|
|
|
1607
1663
|
*/
|
|
1608
1664
|
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
1609
1665
|
|
|
1610
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
|
1666
|
+
export { ACCOUNT_TYPE_LABELS, type Account, type AccountListResponse, AccountServices, type AccountType, Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, type BalanceType, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SYSCOHADA_CLASSES, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|