ptechcore_ui 1.0.66 → 1.0.68
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 +6155 -3008
- package/dist/index.d.cts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +6589 -3436
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
|
+
import { TReaderDocument } from '@usewaypoint/email-builder';
|
|
4
5
|
|
|
5
6
|
interface PrimaryButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
7
|
variant?: 'full' | 'outline' | 'text' | 'ghost';
|
|
@@ -1058,6 +1059,8 @@ interface SelectAccountProps extends SelectProps$1 {
|
|
|
1058
1059
|
label?: string;
|
|
1059
1060
|
}
|
|
1060
1061
|
declare const SelectAccount: React.FC<SelectAccountProps>;
|
|
1062
|
+
declare const SelectCountry: React.FC<SelectProps$1>;
|
|
1063
|
+
declare const SelectLegalForm: React.FC<SelectProps$1>;
|
|
1061
1064
|
declare const SelectClient: React.FC<SelectProps$1>;
|
|
1062
1065
|
|
|
1063
1066
|
interface SelectProps {
|
|
@@ -2312,7 +2315,7 @@ interface PurchaseRequest {
|
|
|
2312
2315
|
approval_date?: string | null;
|
|
2313
2316
|
approved_by?: string | number | null;
|
|
2314
2317
|
vendor?: number | null;
|
|
2315
|
-
|
|
2318
|
+
suggered_vendors?: number[];
|
|
2316
2319
|
vendor_info?: Vendor | null;
|
|
2317
2320
|
created_at?: string;
|
|
2318
2321
|
updated_at?: string;
|
|
@@ -3454,4 +3457,39 @@ declare const PriceScheduleServices: {
|
|
|
3454
3457
|
bulkCreate: (items: CreatePriceScheduleItemPayload[]) => Promise<PriceScheduleItem[]>;
|
|
3455
3458
|
};
|
|
3456
3459
|
|
|
3457
|
-
|
|
3460
|
+
type TEditorConfiguration = TReaderDocument;
|
|
3461
|
+
interface TemplateVariable {
|
|
3462
|
+
key: string;
|
|
3463
|
+
label: string;
|
|
3464
|
+
tag: string;
|
|
3465
|
+
}
|
|
3466
|
+
interface VariableCategory {
|
|
3467
|
+
name: string;
|
|
3468
|
+
variables: TemplateVariable[];
|
|
3469
|
+
}
|
|
3470
|
+
interface EmailTemplateEditorProps {
|
|
3471
|
+
initialDocument?: TEditorConfiguration;
|
|
3472
|
+
onSave?: (document: TEditorConfiguration, html: string) => void;
|
|
3473
|
+
onCancel?: () => void;
|
|
3474
|
+
variables?: VariableCategory[];
|
|
3475
|
+
title?: string;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
declare function EmailTemplateEditor({ initialDocument, onSave, onCancel, variables, title, }: EmailTemplateEditorProps): react_jsx_runtime.JSX.Element;
|
|
3479
|
+
|
|
3480
|
+
interface TemplatePreviewProps {
|
|
3481
|
+
document?: TEditorConfiguration;
|
|
3482
|
+
}
|
|
3483
|
+
declare function TemplatePreview({ document: externalDoc }: TemplatePreviewProps): react_jsx_runtime.JSX.Element;
|
|
3484
|
+
|
|
3485
|
+
declare function exportToHtml(document: TEditorConfiguration): string;
|
|
3486
|
+
declare function HtmlExportPanel(): react_jsx_runtime.JSX.Element;
|
|
3487
|
+
|
|
3488
|
+
interface VariablePanelProps {
|
|
3489
|
+
categories: VariableCategory[];
|
|
3490
|
+
}
|
|
3491
|
+
declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_runtime.JSX.Element;
|
|
3492
|
+
|
|
3493
|
+
declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
|
|
3494
|
+
|
|
3495
|
+
export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDepartment, SelectInput, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
|
+
import { TReaderDocument } from '@usewaypoint/email-builder';
|
|
4
5
|
|
|
5
6
|
interface PrimaryButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
7
|
variant?: 'full' | 'outline' | 'text' | 'ghost';
|
|
@@ -1058,6 +1059,8 @@ interface SelectAccountProps extends SelectProps$1 {
|
|
|
1058
1059
|
label?: string;
|
|
1059
1060
|
}
|
|
1060
1061
|
declare const SelectAccount: React.FC<SelectAccountProps>;
|
|
1062
|
+
declare const SelectCountry: React.FC<SelectProps$1>;
|
|
1063
|
+
declare const SelectLegalForm: React.FC<SelectProps$1>;
|
|
1061
1064
|
declare const SelectClient: React.FC<SelectProps$1>;
|
|
1062
1065
|
|
|
1063
1066
|
interface SelectProps {
|
|
@@ -2312,7 +2315,7 @@ interface PurchaseRequest {
|
|
|
2312
2315
|
approval_date?: string | null;
|
|
2313
2316
|
approved_by?: string | number | null;
|
|
2314
2317
|
vendor?: number | null;
|
|
2315
|
-
|
|
2318
|
+
suggered_vendors?: number[];
|
|
2316
2319
|
vendor_info?: Vendor | null;
|
|
2317
2320
|
created_at?: string;
|
|
2318
2321
|
updated_at?: string;
|
|
@@ -3454,4 +3457,39 @@ declare const PriceScheduleServices: {
|
|
|
3454
3457
|
bulkCreate: (items: CreatePriceScheduleItemPayload[]) => Promise<PriceScheduleItem[]>;
|
|
3455
3458
|
};
|
|
3456
3459
|
|
|
3457
|
-
|
|
3460
|
+
type TEditorConfiguration = TReaderDocument;
|
|
3461
|
+
interface TemplateVariable {
|
|
3462
|
+
key: string;
|
|
3463
|
+
label: string;
|
|
3464
|
+
tag: string;
|
|
3465
|
+
}
|
|
3466
|
+
interface VariableCategory {
|
|
3467
|
+
name: string;
|
|
3468
|
+
variables: TemplateVariable[];
|
|
3469
|
+
}
|
|
3470
|
+
interface EmailTemplateEditorProps {
|
|
3471
|
+
initialDocument?: TEditorConfiguration;
|
|
3472
|
+
onSave?: (document: TEditorConfiguration, html: string) => void;
|
|
3473
|
+
onCancel?: () => void;
|
|
3474
|
+
variables?: VariableCategory[];
|
|
3475
|
+
title?: string;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
declare function EmailTemplateEditor({ initialDocument, onSave, onCancel, variables, title, }: EmailTemplateEditorProps): react_jsx_runtime.JSX.Element;
|
|
3479
|
+
|
|
3480
|
+
interface TemplatePreviewProps {
|
|
3481
|
+
document?: TEditorConfiguration;
|
|
3482
|
+
}
|
|
3483
|
+
declare function TemplatePreview({ document: externalDoc }: TemplatePreviewProps): react_jsx_runtime.JSX.Element;
|
|
3484
|
+
|
|
3485
|
+
declare function exportToHtml(document: TEditorConfiguration): string;
|
|
3486
|
+
declare function HtmlExportPanel(): react_jsx_runtime.JSX.Element;
|
|
3487
|
+
|
|
3488
|
+
interface VariablePanelProps {
|
|
3489
|
+
categories: VariableCategory[];
|
|
3490
|
+
}
|
|
3491
|
+
declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_runtime.JSX.Element;
|
|
3492
|
+
|
|
3493
|
+
declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
|
|
3494
|
+
|
|
3495
|
+
export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDepartment, SelectInput, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };
|