finance-shared 0.0.11 → 0.0.13

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
@@ -60,6 +60,7 @@ declare type CommonAutocompleteProps = {
60
60
  ref?: React_2.Ref<HTMLElement>;
61
61
  disableClearable?: boolean;
62
62
  value?: string | number | null;
63
+ optionTestId?: string;
63
64
  };
64
65
 
65
66
  export declare const CommonStatusChangeDialog: default_2.FC<CommonStatusChangeDialogProps>;
@@ -129,6 +130,12 @@ export declare interface CustomDatePickerProps {
129
130
  locale?: Locale_2;
130
131
  dataTestId?: string;
131
132
  iconColor?: string;
133
+ open?: boolean;
134
+ anchorEl?: HTMLElement | null;
135
+ onClose?: () => void;
136
+ hideTextField?: boolean;
137
+ applyCustomStyling?: boolean;
138
+ style?: default_2.CSSProperties | object;
132
139
  }
133
140
 
134
141
  export declare function CustomDialog({ open, onClose, content, size, maxWidth, hideCloseIcon }: CustomDialogProps): JSX.Element;
@@ -321,29 +328,29 @@ export declare const getApplicationDetailById: (id: string) => (dispatch: any) =
321
328
 
322
329
  export declare const getDocumentSignJPDF: (state: any) => any;
323
330
 
324
- export declare const getDocumentSignJPDFLoading: (state: any) => any;
331
+ export declare const getDocumentSignJPDFLoading: (state: any) => boolean;
325
332
 
326
333
  export declare const getImagePath: (state: any) => any;
327
334
 
328
- export declare const getIsAddRemarkFormLoading: (state: any) => any;
335
+ export declare const getIsAddRemarkFormLoading: (state: any) => boolean;
329
336
 
330
- export declare const getIsChangeDetectDialogOpen: (state: any) => any;
337
+ export declare const getIsChangeDetectDialogOpen: (state: any) => boolean;
331
338
 
332
- export declare const getIsChangePasswordDialogOpen: (state: any) => any;
339
+ export declare const getIsChangePasswordDialogOpen: (state: any) => boolean;
333
340
 
334
- export declare const getIsChangeStatusDialogOpen: (state: any) => any;
341
+ export declare const getIsChangeStatusDialogOpen: (state: any) => boolean;
335
342
 
336
- export declare const getIsDeleteUserDialogOpen: (state: any) => any;
343
+ export declare const getIsDeleteUserDialogOpen: (state: any) => boolean;
337
344
 
338
- export declare const getIsDocumentSignatureDialogOpen: (state: any) => any;
345
+ export declare const getIsDocumentSignatureDialogOpen: (state: any) => boolean;
339
346
 
340
- export declare const getIsPdfDialogOpen: (state: any) => any;
347
+ export declare const getIsPdfDialogOpen: (state: any) => boolean;
341
348
 
342
- export declare const getIsPopoverOpen: (state: any) => any;
349
+ export declare const getIsPopoverOpen: (state: any) => boolean;
343
350
 
344
- export declare const getIsProcessSignatureLoading: (state: any) => any;
351
+ export declare const getIsProcessSignatureLoading: (state: any) => boolean;
345
352
 
346
- export declare const getIsUserChangeStatusFormLoading: (state: any) => any;
353
+ export declare const getIsUserChangeStatusFormLoading: (state: any) => boolean;
347
354
 
348
355
  export declare const getRemarkListByFinanceApplicationId: (requestData: RemarkListRequestData) => (dispatch: any) => Promise<void>;
349
356
 
@@ -367,7 +374,7 @@ export declare interface ImageUploadProps {
367
374
  t?: (key: string) => string;
368
375
  }
369
376
 
370
- export declare function InfoDialog({ open, onClose, title, message, buttonText, onButtonClick, icon: Icon, color, isLoading, t, discardText, }: InfoDialogProps): JSX.Element;
377
+ export declare function InfoDialog({ open, onClose, title, message, buttonText, onButtonClick, icon: Icon, color, isLoading, t, discardText, buttonDataTestId, }: InfoDialogProps): JSX.Element;
371
378
 
372
379
  export declare interface InfoDialogProps {
373
380
  open: boolean;
@@ -381,6 +388,7 @@ export declare interface InfoDialogProps {
381
388
  isLoading?: boolean;
382
389
  t?: (key: string) => string;
383
390
  discardText?: string;
391
+ buttonDataTestId?: string;
384
392
  }
385
393
 
386
394
  /**
@@ -416,7 +424,7 @@ export declare interface MediaDialogProps {
416
424
  onClose?: () => void;
417
425
  }
418
426
 
419
- export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, tenantId, initialSearchTerm }: MemberAutoCompleteProps) => JSX.Element;
427
+ export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, optionTestId, tenantId, initialSearchTerm }: MemberAutoCompleteProps) => JSX.Element;
420
428
 
421
429
  declare type MemberAutoCompleteProps = {
422
430
  label: string;
@@ -429,6 +437,7 @@ declare type MemberAutoCompleteProps = {
429
437
  isTooltipShow?: boolean;
430
438
  variant?: TextFieldVariants;
431
439
  dataTestId?: string;
440
+ optionTestId?: string;
432
441
  tenantId?: string;
433
442
  initialSearchTerm?: string;
434
443
  };
@@ -552,7 +561,19 @@ declare interface RemarkType_2 {
552
561
  financeApplicationId?: string;
553
562
  }
554
563
 
555
- export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, initialSearchTerm, }: SearchableAutocompleteProps) => JSX.Element>;
564
+ export declare const SaveButton: default_2.FC<SaveButtonProps>;
565
+
566
+ export declare interface SaveButtonProps {
567
+ variant: 'text' | 'outlined' | 'contained';
568
+ onClick?: () => void;
569
+ disabled?: boolean;
570
+ isLoading: boolean;
571
+ text: string;
572
+ size?: 'small' | 'medium' | 'large';
573
+ dataTestId?: string;
574
+ }
575
+
576
+ export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, optionTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, initialSearchTerm, }: SearchableAutocompleteProps) => JSX.Element>;
556
577
 
557
578
  declare type SearchableAutocompleteProps = {
558
579
  label: string;
@@ -568,6 +589,7 @@ declare type SearchableAutocompleteProps = {
568
589
  isSmall?: boolean;
569
590
  style?: React.CSSProperties;
570
591
  dataTestId?: string;
592
+ optionTestId?: string;
571
593
  pagination?: {
572
594
  pageIndex: number;
573
595
  pageSize: number;
@@ -612,7 +634,7 @@ export declare const showMessage: ActionCreatorWithPayload<Partial<{
612
634
  style?: React.CSSProperties;
613
635
  }>, "fuseMessage/showMessage">;
614
636
 
615
- export declare const TenantAutocomplete: ({ value, onChange, label, error, required, status, style, disableClearable, autoSelectFirst, }: TenantAutocompleteProps) => JSX.Element;
637
+ export declare const TenantAutocomplete: ({ value, onChange, label, error, required, status, style, disableClearable, autoSelectFirst, pageSize, }: TenantAutocompleteProps) => JSX.Element;
616
638
 
617
639
  declare interface TenantAutocompleteProps {
618
640
  value: string;
@@ -624,6 +646,7 @@ declare interface TenantAutocompleteProps {
624
646
  style?: default_2.CSSProperties;
625
647
  disableClearable?: boolean;
626
648
  autoSelectFirst?: boolean;
649
+ pageSize?: number;
627
650
  }
628
651
 
629
652
  export declare interface TokenConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finance-shared",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"