finance-shared 0.0.7 → 0.0.8

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
@@ -67,10 +67,10 @@ declare interface CommonStatusChangeDialogProps {
67
67
  title: string;
68
68
  id: string;
69
69
  existingStatus?: string;
70
- isDialogOpen: boolean;
71
- isLoading: boolean;
72
- onClose: () => void;
73
- onSubmit: (data: any) => void;
70
+ isDialogOpen?: boolean;
71
+ isLoading?: boolean;
72
+ onClose?: () => void;
73
+ onSubmit?: (data: any) => void;
74
74
  }
75
75
 
76
76
  export declare const CommonTextField: default_2.FC<CommonTextFieldProps>;
@@ -79,7 +79,7 @@ export declare interface CommonTextFieldProps extends Omit<TextFieldProps, 'onCh
79
79
  label?: string;
80
80
  onChange: (value: string) => void;
81
81
  variant?: "standard" | "filled" | "outlined";
82
- error?: FieldError | null;
82
+ error?: FieldError | null | boolean;
83
83
  isTextUpperCase?: boolean;
84
84
  }
85
85
 
@@ -210,7 +210,7 @@ declare interface DocumentSigningDialogProps {
210
210
  }
211
211
 
212
212
  export declare interface FieldError {
213
- message: string;
213
+ message?: string;
214
214
  }
215
215
 
216
216
  export declare const FinanceApplicationAutocomplete: ({ value, onChange, label, error, required, pagination, isTenantInvoiceGenerated, status, style, tenantId, onFetchData, isParentLoading, }: FinanceApplicationAutocompleteProps) => JSX.Element;
@@ -244,12 +244,11 @@ export declare interface FinanceApplicationAutocompleteProps {
244
244
  }>>;
245
245
  }
246
246
 
247
- export declare function FormatAmount(num: number | string, showCurrency?: boolean): string;
247
+ export declare function formatAmount({ num, showCurrency }: FormatAmountProps): string;
248
248
 
249
- export declare function formatAmount(num: number, showCurrency?: boolean): string;
250
-
251
- export declare interface FormatAmountProps {
252
- num: number | string;
249
+ declare interface FormatAmountProps {
250
+ num: any;
251
+ showCurrency?: boolean;
253
252
  }
254
253
 
255
254
  export declare const FuseMessage: MemoExoticComponent<typeof FuseMessage_2>;
@@ -337,7 +336,7 @@ export declare const ImageUpload: default_2.FC<ImageUploadProps>;
337
336
  export declare interface ImageUploadProps {
338
337
  name: string;
339
338
  existingImage?: string;
340
- onChange: (value: any) => void;
339
+ onChange?: (value: any) => void;
341
340
  uploadFile?: (value: any) => void;
342
341
  supportedFormats?: string;
343
342
  className?: string;
@@ -384,7 +383,7 @@ export declare interface MediaDialogProps {
384
383
  onClose?: () => void;
385
384
  }
386
385
 
387
- export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, tenantId }: MemberAutoCompleteProps) => JSX.Element;
386
+ export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, tenantId, initialSearchTerm }: MemberAutoCompleteProps) => JSX.Element;
388
387
 
389
388
  declare type MemberAutoCompleteProps = {
390
389
  label: string;
@@ -398,6 +397,7 @@ declare type MemberAutoCompleteProps = {
398
397
  variant?: TextFieldVariants;
399
398
  dataTestId?: string;
400
399
  tenantId?: string;
400
+ initialSearchTerm?: string;
401
401
  };
402
402
 
403
403
  export declare const MultiSelectAutoComplete: ({ options, selectedValues, onChange, label, placeholder, maxVisibleChips, }: MultiSelectAutocompleteProps) => JSX.Element;
@@ -456,7 +456,7 @@ declare interface RemarkListRequestData {
456
456
  SectionName: string;
457
457
  }
458
458
 
459
- export declare function RemarksDialog({ sectionName, financeApplicationId, tenantId, permissions, isApplicationRejected, ReassignStaffFormComponent, staffRoleIds, dataTestId, themesConfig, }: RemarksDialogProps): JSX.Element;
459
+ export declare function RemarksDialog({ sectionName, financeApplicationId, tenantId, permissions, isApplicationRejected, ReassignStaffFormComponent, staffRoleIds, dataTestId, themesConfig, remarksCount, }: RemarksDialogProps): JSX.Element;
460
460
 
461
461
  export declare interface RemarksDialogProps {
462
462
  sectionName: string;
@@ -477,6 +477,7 @@ export declare interface RemarksDialogProps {
477
477
  internalChipBg?: string;
478
478
  externalChipBg?: string;
479
479
  };
480
+ remarksCount?: number;
480
481
  }
481
482
 
482
483
  export declare interface RemarkType {
@@ -504,7 +505,7 @@ declare interface RemarkType_2 {
504
505
  financeApplicationId?: string;
505
506
  }
506
507
 
507
- export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, }: SearchableAutocompleteProps) => JSX.Element>;
508
+ export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, initialSearchTerm, }: SearchableAutocompleteProps) => JSX.Element>;
508
509
 
509
510
  declare type SearchableAutocompleteProps = {
510
511
  label: string;
@@ -526,6 +527,7 @@ declare type SearchableAutocompleteProps = {
526
527
  totalCount: number;
527
528
  };
528
529
  ref?: React.Ref<HTMLElement>;
530
+ initialSearchTerm?: string;
529
531
  };
530
532
 
531
533
  export declare const setActiveFinanceDetail: ActionCreatorWithPayload<any, "dialogs/setActiveFinanceDetail">;
@@ -569,11 +571,12 @@ export declare const showMessage: ActionCreatorWithPayload<Partial<{
569
571
  style?: React.CSSProperties;
570
572
  }>, "fuseMessage/showMessage">;
571
573
 
572
- export declare const TenantAutocomplete: ({ value, onChange, error, required, status, style, disableClearable, autoSelectFirst, }: TenantAutocompleteProps) => JSX.Element;
574
+ export declare const TenantAutocomplete: ({ value, onChange, label, error, required, status, style, disableClearable, autoSelectFirst, }: TenantAutocompleteProps) => JSX.Element;
573
575
 
574
576
  declare interface TenantAutocompleteProps {
575
577
  value: string;
576
578
  onChange: (value: any, isAutoSelection?: boolean) => void;
579
+ label?: string;
577
580
  error?: string;
578
581
  required?: boolean;
579
582
  status?: string | string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finance-shared",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"