ados-rcm 1.1.309 → 1.1.311
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/ABase/ABase.d.ts +0 -1
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +0 -1
- package/dist/AModule/AComponents/AChip/AChip.d.ts +1 -1
- package/dist/AModule/AComponents/AClock/AClock.d.ts +1 -1
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +0 -1
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +1 -1
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +0 -1
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +1 -2
- package/dist/AModule/AComponents/AFrame/AFrame.d.ts +1 -1
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +0 -1
- package/dist/AModule/AComponents/AInput/AInput.d.ts +1 -1
- package/dist/AModule/AComponents/AListView/AListView.d.ts +1 -12
- package/dist/AModule/AComponents/ARadioSelect/ARadioSelect.d.ts +1 -2
- package/dist/AModule/AComponents/AResource/AResource.d.ts +1 -1
- package/dist/AModule/AComponents/ASelect/AMultiSelect.d.ts +1 -1
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +1 -1
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +0 -1
- package/dist/AModule/AComponents/ATab/ATab.d.ts +0 -1
- package/dist/AModule/AComponents/ATable/ATable.d.ts +1 -1
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +1 -1
- package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +0 -1
- package/dist/AModule/AComponents/AText/AText.d.ts +1 -1
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +1 -1
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +1 -1
- package/dist/AModule/AComponents/ATree/ATree.d.ts +1 -1
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +1 -1
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +0 -1
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +1 -1
- package/dist/AModule/AHooks/useValues.d.ts +1 -2
- package/dist/AModule/ANetwork/APIContext.d.ts +1 -1
- package/dist/AModule/AUtils/objF.d.ts +10 -10
- package/dist/AModule/AUtils/sF.d.ts +1 -1
- package/dist/AModule/AUtils/tableF.d.ts +5 -5
- package/dist/index.cjs.js +27 -29
- package/dist/index.es.js +5553 -5683
- package/package.json +5 -4
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TCanCallback } from '../../AUtils/cbF';
|
3
2
|
import { IABaseProps } from '../ABase/ABase';
|
4
3
|
import { EDir12, IOffset, TActionRef } from '../ATypes/ATypes';
|
@@ -124,4 +123,4 @@ export interface IAFloatMenuProps<T> {
|
|
124
123
|
* <div ref={anchorRef}>I am anchor</div>
|
125
124
|
* <AFloatMenu defs={defs} defaultDef={defaultDef} anchorRef={anchorRef}/>
|
126
125
|
*/
|
127
|
-
export declare const AFloatMenu: <T>(props: IAFloatMenuProps<T>) => import(
|
126
|
+
export declare const AFloatMenu: <T>(props: IAFloatMenuProps<T>) => import('react').ReactPortal | null;
|
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
* AListView
|
3
|
-
*
|
4
|
-
* Notice 1 : Defs Explanation
|
5
|
-
* - Keys of defs are used as each row.
|
6
|
-
* - defaultDef is used as default for each row, and will not be rendered.
|
7
|
-
* - def is calculated as {...defaultDef, ...def}.
|
8
|
-
*
|
9
|
-
* Todo 1 : Defs is declared as type. it would be better to declare as interface, but I couldn't find the way.
|
10
|
-
*
|
11
|
-
*/
|
12
|
-
import React from 'react';
|
1
|
+
import { default as React } from 'react';
|
13
2
|
import { TCanCallback } from '../../AUtils/cbF';
|
14
3
|
import { IObject } from '../../AUtils/objF';
|
15
4
|
import { IABaseProps } from '../ABase/ABase';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TUseValues } from '../../AHooks/useValues';
|
3
2
|
export interface IRadioSelectProps<T> {
|
4
3
|
options: T[] | readonly T[];
|
@@ -14,5 +13,5 @@ export declare const ARadioSelect: <T>(props: IRadioSelectProps<T>) => import("r
|
|
14
13
|
interface IRadioSelectOptionRendererProps<T> {
|
15
14
|
option: T;
|
16
15
|
}
|
17
|
-
export declare const DefaultOptionRenderer: <T>({ option }: IRadioSelectOptionRendererProps<T>) =>
|
16
|
+
export declare const DefaultOptionRenderer: <T>({ option }: IRadioSelectOptionRendererProps<T>) => T;
|
18
17
|
export {};
|
@@ -57,4 +57,4 @@ export declare const Resources: {
|
|
57
57
|
};
|
58
58
|
export type TResource = typeof Resources;
|
59
59
|
export type TResourceType = keyof TResource;
|
60
|
-
export declare const SetResources: <K extends
|
60
|
+
export declare const SetResources: <K extends TResourceType>(resourceType: K, resources: TResource[K]) => void;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
/**
|
3
2
|
* useValues
|
4
3
|
* Notice 1 : useValues uses conditional hook. YOU SHOULD NEVER change the conditions. or it will boom
|
@@ -10,4 +9,4 @@
|
|
10
9
|
*
|
11
10
|
*/
|
12
11
|
export type TUseValues<T, K = T> = [T] | [T, ((newState: K) => void) | undefined];
|
13
|
-
export declare function useValues<T, K = T>(use: TUseValues<T, K> | undefined, defaultValue: T): [T, ((newState: K) => void) | undefined] | [T, import(
|
12
|
+
export declare function useValues<T, K = T>(use: TUseValues<T, K> | undefined, defaultValue: T): [T, ((newState: K) => void) | undefined] | [T, import('react').Dispatch<import('react').SetStateAction<T>>];
|
@@ -5,7 +5,7 @@ export declare const ApiContext: {
|
|
5
5
|
po?: PO | undefined;
|
6
6
|
onStream?: IOnStream<RO> | undefined;
|
7
7
|
onStreamEnd?: IOnStream<RO> | undefined;
|
8
|
-
noDefaultHandle?:
|
8
|
+
noDefaultHandle?: number[] | boolean;
|
9
9
|
} | undefined) => Promise<{
|
10
10
|
errorCode: number;
|
11
11
|
message: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import { default as React } from 'react';
|
2
2
|
import { TIdx } from '../AComponents/ATypes/ATypes';
|
3
3
|
export interface IObject {
|
4
4
|
[key: TIdx]: any;
|
@@ -10,15 +10,15 @@ export interface IItem extends IObject {
|
|
10
10
|
*/
|
11
11
|
export declare const objF: {
|
12
12
|
equal: <T extends IObject>(a: T, b: T) => boolean;
|
13
|
-
parse: <
|
13
|
+
parse: <T>(value: string) => T | undefined;
|
14
14
|
stringify: (value: any, indent?: number | string) => string;
|
15
|
-
keys: <
|
16
|
-
values: <
|
17
|
-
entries: <
|
18
|
-
forEach: <
|
19
|
-
hasKey: <
|
20
|
-
map: <
|
21
|
-
some: <
|
22
|
-
find: <
|
15
|
+
keys: <T extends IObject>(obj: T) => (keyof T)[];
|
16
|
+
values: <T extends IObject>(obj: T) => T[keyof T][];
|
17
|
+
entries: <T extends IObject>(obj: T) => [keyof T, T[keyof T]][];
|
18
|
+
forEach: <T extends IObject, P extends keyof T>(obj: T, fn: (key: P, value: T[P]) => any) => void;
|
19
|
+
hasKey: <T extends IObject>(obj: T, key: string | number | symbol) => key is keyof T;
|
20
|
+
map: <T extends IObject, U>(obj: T, fn: (keyValue: [keyof T, T[keyof T]], idx: number) => U) => U[];
|
21
|
+
some: <T extends IObject>(obj: T, fn: (key: keyof T, value: T[keyof T]) => any) => boolean;
|
22
|
+
find: <T extends IObject>(obj: T, fn: (key: keyof T, value: T[keyof T]) => any) => [string, any] | undefined;
|
23
23
|
isReactNode: (value: any) => value is React.ReactNode;
|
24
24
|
};
|
@@ -10,7 +10,7 @@ declare global {
|
|
10
10
|
type CSSModuleClasses = {
|
11
11
|
readonly [key: string]: string;
|
12
12
|
};
|
13
|
-
type TSDC = 'Title-large' | 'Title-normal' | 'Button-label' | '
|
13
|
+
type TSDC = 'Title-large' | 'Title-normal' | 'Button-label' | 'Body' | 'Body-reading' | 'Caption' | 'Caption-reading';
|
14
14
|
declare const keys: {
|
15
15
|
Display1: any;
|
16
16
|
Display2: any;
|
@@ -9,15 +9,15 @@ export declare const defaultPredicate: TDefaultPredicate;
|
|
9
9
|
*/
|
10
10
|
export declare const tableF: {
|
11
11
|
applyFilteration: <T extends IItem>(items: T[], defs: TATableDefs<T>, filteration: TATableFilteration<T>) => T[];
|
12
|
-
applySortation: <
|
13
|
-
applyPagination: <
|
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
14
|
getPages: (totalCount: number, pageSize: number) => number[];
|
15
15
|
getRangedPages: (page: number, totalCount: number, pageSize: number, pageRange: number) => {
|
16
16
|
pages: number[];
|
17
17
|
rangedPages: number[];
|
18
18
|
};
|
19
|
-
downloadCsv: <
|
20
|
-
getSingleFilterValue: <
|
21
|
-
getMultiFilterValues: <
|
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
22
|
};
|
23
23
|
export {};
|