ados-rcm 1.0.230 → 1.0.231
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/AModule/AComponents/AIcon/AIcon.d.ts +4 -0
- package/dist/AModule/AComponents/ATable/ATable.d.ts +2 -1
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +2 -2
- package/dist/AModule/AUtils/cbF.d.ts +3 -0
- package/dist/AModule/AUtils/dateF.d.ts +3 -0
- package/dist/AModule/AUtils/fileF.d.ts +3 -0
- package/dist/AModule/AUtils/objF.d.ts +3 -0
- package/dist/AModule/AUtils/{classF.d.ts → sF.d.ts} +8 -1
- package/dist/AModule/AUtils/strF.d.ts +3 -0
- package/dist/AModule/AUtils/tableF.d.ts +3 -0
- package/dist/AModule/AUtils/treeF.d.ts +3 -0
- package/dist/index.cjs.js +23 -23
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +3386 -3371
- package/package.json +1 -1
|
@@ -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> {
|
|
@@ -391,7 +392,7 @@ export interface IATableProps<T extends IItem> {
|
|
|
391
392
|
*
|
|
392
393
|
* Description : rProps of ATable
|
|
393
394
|
*/
|
|
394
|
-
rProps?: TCanCallback<IATableTRProps<T>,
|
|
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>,
|
|
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;
|
|
@@ -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
|
-
|
|
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 {};
|
|
@@ -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;
|