ados-rcm 1.1.540 → 1.1.541

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.
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TIcons } from '../AIcon/AIcon';
3
+ import { IItem } from '../../AUtils/objF';
3
4
  export declare const AWrapTypes: readonly ["Default", "Error"];
4
5
  export type TAWrapTypes = (typeof AWrapTypes)[number];
5
6
  export interface IAWrapLabelProps {
@@ -59,6 +60,12 @@ export interface IAWrapProps {
59
60
  * Description : props for the label
60
61
  */
61
62
  labelProps?: IAWrapLabelProps;
63
+ /**
64
+ * wrapId? : string
65
+ *
66
+ * Description : id of SWrap
67
+ */
68
+ wrapId?: string;
62
69
  /**
63
70
  * wrapProps? : React.HTMLAttributes<HTMLDivElement>
64
71
  *
@@ -72,6 +79,10 @@ export interface IAWrapProps {
72
79
  */
73
80
  wrapType?: TAWrapTypes;
74
81
  }
82
+ type TAWrapProps = Partial<Omit<IAWrapProps, 'children'>>;
83
+ type TAWrapPropsKeys = keyof TAWrapProps;
84
+ type TRestProps<T> = Omit<T, TAWrapPropsKeys>;
85
+ export declare const AWrapPropsExtract: <T extends IItem>(props: T & Partial<TAWrapProps>) => [Partial<TAWrapProps>, TRestProps<T>];
75
86
  /**
76
87
  * AComponent : AWrap
77
88
  *
@@ -85,3 +96,4 @@ export interface IAWrapProps {
85
96
  * </AWrap>
86
97
  */
87
98
  export declare const AWrap: (props: IAWrapProps) => React.ReactNode;
99
+ export {};
@@ -1,4 +1,21 @@
1
1
  import { ExtendedFile } from '../AComponents/AFileUploder/AFileUploader';
2
+ /**
3
+ *
4
+ */
5
+ declare function toBase64(file: File): Promise<string | undefined>;
6
+ /**
7
+ * toFile : Convert Base64 to File
8
+ *
9
+ * Description: Convert Base64 to File
10
+ */
11
+ declare function toFile(base64Data: string, filename: string): File;
12
+ export declare const getFileKey: (file: ExtendedFile) => string;
13
+ /**
14
+ * fileF : File Functions
15
+ */
2
16
  export declare const fileF: {
17
+ toBase64: typeof toBase64;
18
+ toFile: typeof toFile;
3
19
  getFileKey: (file: ExtendedFile) => string;
4
20
  };
21
+ export {};
@@ -1,4 +1,30 @@
1
- import { ExtendedFile } from '../AComponents/AFileUploder/AFileUploader';
1
+ import { IATableFilter, IATableSortation, TATableDefs, TATableFilterType, TATableFilteration } from '../AComponents/ATable/ATable';
2
+ import { IItem } from './objF';
3
+ type TDefaultPredicate = {
4
+ [key in TATableFilterType]: IATableFilter<any>[key]['predicate'];
5
+ };
6
+ export declare const defaultPredicate: TDefaultPredicate;
7
+ /**
8
+ * tableF : table functions
9
+ */
2
10
  export declare const tableF: {
3
- downloadCsv: (files: ExtendedFile[], filename?: string) => void;
11
+ applyFilteration: <T extends IItem>(items: T[], defs: TATableDefs<T>, filteration: TATableFilteration<T>) => T[];
12
+ applySortation: <T extends IItem>(items: T[], defs: TATableDefs<T>, sortation?: IATableSortation<T>) => T[];
13
+ applyPagination: <T extends IItem>(items: T[], page: number, pageSize: number) => T[];
14
+ getPages: (totalCount: number, pageSize: number) => number[];
15
+ getRangedPages: (page: number, totalCount: number, pageSize: number, pageRange: number) => {
16
+ pages: number[];
17
+ rangedPages: number[];
18
+ };
19
+ downloadCsv: <T extends IItem>(name: string, items: T[], defs: TATableDefs<T>) => void;
20
+ getSingleFilterValue: <T extends IItem>(filteration: TATableFilteration<T>) => string | undefined;
21
+ getMultiFilterValues: <T extends IItem, K extends IItem = any>(filteration: TATableFilteration<T, K>) => Partial<K>;
22
+ getSelectFilterValue: <T extends IItem>(filteration: TATableFilteration<T>) => {
23
+ selectedKey: string | number | keyof T;
24
+ value: undefined;
25
+ } | {
26
+ selectedKey: string | number | keyof T;
27
+ value: string | number | Date | import('../..').IDateRange;
28
+ } | undefined;
4
29
  };
30
+ export {};