ados-rcm 1.0.230 → 1.0.232

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.
@@ -22,6 +22,10 @@ export interface IAIconProps extends IASVGProps {
22
22
  * <AIcon icon="Alert"/>
23
23
  */
24
24
  export declare const AIcon: (props: IAIconProps) => import("react/jsx-runtime").JSX.Element;
25
+ interface IAIconHOCProps<T extends string> extends Omit<IAIconProps, 'icon'> {
26
+ icon: T | TIcons;
27
+ }
28
+ export declare const AIconHOC: <T extends string>(customIcons: Record<T, (props?: IASVGProps) => JSX.Element>) => (props: IAIconHOCProps<T>) => import("react/jsx-runtime").JSX.Element;
25
29
  declare const Icons: Readonly<{
26
30
  ArrowDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
27
31
  ArrowUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IItem } from '../../AUtils/objF';
5
+ import { IABaseProps } from '../ABase/ABase';
5
6
  import { Resources } from '../AResource/AResource';
6
7
  import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
7
8
  export interface IATableTHProps<T extends IItem> {
@@ -387,11 +388,11 @@ export interface IATableProps<T extends IItem> {
387
388
  */
388
389
  defaultDef?: IATableDef<T>;
389
390
  /**
390
- * rProps? : TCanCallback<IATableTRProps<T>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>>
391
+ * rProps? : TCanCallback<IATableTRProps<T>, IABaseProps>
391
392
  *
392
393
  * Description : rProps of ATable
393
394
  */
394
- rProps?: TCanCallback<IATableTRProps<T>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>>;
395
+ rProps?: TCanCallback<IATableTRProps<T>, IABaseProps>;
395
396
  /**
396
397
  * useSelect? : TUseValues<T[]>
397
398
  *
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  import { TCanCallback } from '../../AUtils/cbF';
4
3
  import { IItem } from '../../AUtils/objF';
4
+ import { IABaseProps } from '../ABase/ABase';
5
5
  import { IATablePagination, IATableSortation, IATableTRProps, TATableDefs, TATableFilteration } from './ATable';
6
6
  import { Resources } from '../AResource/AResource';
7
7
  interface IATableBodyProps<T extends IItem> {
8
8
  defs: TATableDefs<T>;
9
9
  isEqual: (a: T, b: T) => boolean;
10
- rProps?: TCanCallback<IATableTRProps<T>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>>;
10
+ rProps?: TCanCallback<IATableTRProps<T>, IABaseProps>;
11
11
  useSelect?: TUseValues<T[]>;
12
12
  isTableDisabled?: boolean;
13
13
  isSelectMulti?: boolean;
@@ -10,6 +10,9 @@ type TExcludeFunction<R> = R extends (...args: any[]) => any ? never : R;
10
10
  export type TCallback<P, R> = (props: P) => R;
11
11
  export type TCanCallback<P, R> = TExcludeFunction<R> | TCallback<P, TExcludeFunction<R>>;
12
12
  declare function getContent<P, R>(F: TCanCallback<P, R>, props: P): TExcludeFunction<R>;
13
+ /**
14
+ * cbF : Callback Functions
15
+ */
13
16
  export declare const cbF: {
14
17
  getContent: typeof getContent;
15
18
  };
@@ -12,6 +12,9 @@ declare function l(d1: Date, d2: Date): boolean;
12
12
  declare function le(d1: Date, d2: Date): boolean;
13
13
  declare function b(s: Date, d: Date, e: Date): boolean;
14
14
  declare function be(s: Date, d: Date, e: Date): boolean;
15
+ /**
16
+ * dateF : date functions
17
+ */
15
18
  export declare const dateF: {
16
19
  toString: typeof toString;
17
20
  toDate: typeof toDate;
@@ -1,4 +1,7 @@
1
1
  declare function toBase64(file: File): Promise<string | undefined>;
2
+ /**
3
+ * fileF : File Functions
4
+ */
2
5
  export declare const fileF: {
3
6
  toBase64: typeof toBase64;
4
7
  };
@@ -5,6 +5,9 @@ export interface IObject {
5
5
  }
6
6
  export interface IItem extends IObject {
7
7
  }
8
+ /**
9
+ * objF : object functions
10
+ */
8
11
  export declare const objF: {
9
12
  equal: <T extends IObject>(a: T, b: T) => boolean;
10
13
  parse: <T_1>(value: string) => T_1 | undefined;
@@ -3,8 +3,15 @@ type CSSModuleClasses = {
3
3
  };
4
4
  declare function clsx(...args: any[]): string;
5
5
  declare function sclsx(styles: CSSModuleClasses, ...args: any[]): string;
6
- export declare const classF: {
6
+ /**
7
+ * sF : Style Functions
8
+ */
9
+ export declare const sF: {
7
10
  clsx: typeof clsx;
8
11
  sclsx: typeof sclsx;
12
+ classes: {
13
+ NoSelect: any;
14
+ IsClickable: string;
15
+ };
9
16
  };
10
17
  export {};
@@ -1,3 +1,6 @@
1
+ /**
2
+ * strF : string functions
3
+ */
1
4
  export declare const strF: {
2
5
  SecondToTime: (seconds: number) => string;
3
6
  };
@@ -4,6 +4,9 @@ type TDefaultPredicate = {
4
4
  [key in TATableFilterType]: IATableFilter<any>[key]['predicate'];
5
5
  };
6
6
  export declare const defaultPredicate: TDefaultPredicate;
7
+ /**
8
+ * tableF : table functions
9
+ */
7
10
  export declare const tableF: {
8
11
  applyFilteration: <T extends IItem>(items: T[], defs: TATableDefs<T>, filteration: TATableFilteration<T>) => T[];
9
12
  applySortation: <T_1 extends IItem>(items: T_1[], defs: TATableDefs<T_1>, sortation: IATableSortation<T_1>) => T_1[];
@@ -7,6 +7,9 @@ declare function every<T extends IATreeItem<T>>(items: T[] | T, predicate: (item
7
7
  declare function filter<T extends IATreeItem<T>>(items: T[] | T, predicate: (item: T, idx?: TIdx) => boolean): T[];
8
8
  declare function length<T extends IATreeItem<T>>(items: T[] | T): number;
9
9
  declare function replace<T extends IATreeItem<T>>(items: T[] | T, srcItem: T, dstItem: T, isEqual: (a: T, b: T) => boolean): T[] | null;
10
+ /**
11
+ * treeF : tree functions
12
+ */
10
13
  export declare const treeF: {
11
14
  find: typeof find;
12
15
  forEach: typeof forEach;