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.
Files changed (36) hide show
  1. package/dist/AModule/AComponents/ABase/ABase.d.ts +0 -1
  2. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +0 -1
  3. package/dist/AModule/AComponents/AChip/AChip.d.ts +1 -1
  4. package/dist/AModule/AComponents/AClock/AClock.d.ts +1 -1
  5. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +0 -1
  6. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +1 -1
  7. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +0 -1
  8. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +1 -2
  9. package/dist/AModule/AComponents/AFrame/AFrame.d.ts +1 -1
  10. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +0 -1
  11. package/dist/AModule/AComponents/AInput/AInput.d.ts +1 -1
  12. package/dist/AModule/AComponents/AListView/AListView.d.ts +1 -12
  13. package/dist/AModule/AComponents/ARadioSelect/ARadioSelect.d.ts +1 -2
  14. package/dist/AModule/AComponents/AResource/AResource.d.ts +1 -1
  15. package/dist/AModule/AComponents/ASelect/AMultiSelect.d.ts +1 -1
  16. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +1 -1
  17. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +0 -1
  18. package/dist/AModule/AComponents/ATab/ATab.d.ts +0 -1
  19. package/dist/AModule/AComponents/ATable/ATable.d.ts +1 -1
  20. package/dist/AModule/AComponents/ATable/ATableBody.d.ts +1 -1
  21. package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +0 -1
  22. package/dist/AModule/AComponents/AText/AText.d.ts +1 -1
  23. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +1 -1
  24. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +1 -1
  25. package/dist/AModule/AComponents/ATree/ATree.d.ts +1 -1
  26. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +1 -1
  27. package/dist/AModule/AComponents/ATypes/ATypes.d.ts +0 -1
  28. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +1 -1
  29. package/dist/AModule/AHooks/useValues.d.ts +1 -2
  30. package/dist/AModule/ANetwork/APIContext.d.ts +1 -1
  31. package/dist/AModule/AUtils/objF.d.ts +10 -10
  32. package/dist/AModule/AUtils/sF.d.ts +1 -1
  33. package/dist/AModule/AUtils/tableF.d.ts +5 -5
  34. package/dist/index.cjs.js +27 -29
  35. package/dist/index.es.js +5553 -5683
  36. package/package.json +5 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EDir4 } from '../ATypes/ATypes';
3
2
  export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IABaseProps } from '../ABase/ABase';
3
2
  import { TIconSize, TIcons } from '../AIcon/AIcon';
4
3
  export declare const AIconButtonTypes: readonly ["Primary", "Secondary", "Raw"];
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IABaseProps } from '../ABase/ABase';
@@ -1,5 +1,5 @@
1
1
  import { IAWrapProps } from '../AWrap/AWrap';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  import { TActionRef } from '../ATypes/ATypes';
5
5
  export interface IAClockActions {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  import { IABaseProps } from '../ABase/ABase';
4
3
  import { Resources } from '../AResource/AResource';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { Resources } from '../AResource/AResource';
4
4
  import { IAEvent, TPromisable } from '../ATypes/ATypes';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  import { IABaseProps } from '../ABase/ABase';
4
3
  import { Resources } from '../AResource/AResource';
@@ -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("react").ReactPortal | null;
126
+ export declare const AFloatMenu: <T>(props: IAFloatMenuProps<T>) => import('react').ReactPortal | null;
@@ -1,4 +1,4 @@
1
- import React, { DetailedHTMLProps } from 'react';
1
+ import { default as React, DetailedHTMLProps } from 'react';
2
2
  import { IABaseProps } from '../ABase/ABase';
3
3
  /**
4
4
  * AComponent : AFrame : ARowFrame
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IASVGProps extends React.SVGProps<SVGSVGElement> {
3
2
  svgRef?: React.Ref<SVGSVGElement>;
4
3
  primaryColor?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  import { IAWrapProps } from '../AWrap/AWrap';
@@ -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>) => import("react/jsx-runtime").JSX.Element;
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 "ADialog" | "ATree" | "ADatePicker" | "ADateRangePicker" | "AFileBox" | "ATable" | "ASelect" | "AMultiSelect">(resourceType: K, resources: TResource[K]) => void;
60
+ export declare const SetResources: <K extends TResourceType>(resourceType: K, resources: TResource[K]) => void;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  interface IOptionRendererProps<T> {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  interface IOptionRendererProps<T> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  interface IStepRendererProps<T> {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  export interface IATabOptionRendererProps<T> {
4
3
  /**
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IItem } from '../../AUtils/objF';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IItem } from '../../AUtils/objF';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TUseValues } from '../../AHooks/useValues';
3
2
  import { IItem } from '../../AUtils/objF';
4
3
  import { Resources } from '../AResource/AResource';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  interface IATextProps {
3
3
  /**
4
4
  * text? : string
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { IAWrapProps } from '../AWrap/AWrap';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  import { TUseValues } from '../../AHooks/useValues';
@@ -50,5 +50,5 @@ interface IATooltipProps {
50
50
  *
51
51
  *
52
52
  */
53
- export declare const ATooltip: (props: IATooltipProps) => import("react").ReactPortal | null;
53
+ export declare const ATooltip: (props: IATooltipProps) => import('react').ReactPortal | null;
54
54
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IItem } from '../../AUtils/objF';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { TIcons } from '../AIcon/AIcon';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type TPromisable<T> = T | Promise<T>;
3
2
  /**
4
3
  * getDir12Style
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export declare const AWrapTypes: readonly ["Default", "Error"];
3
3
  export type TAWrapTypes = (typeof AWrapTypes)[number];
4
4
  export interface IAWrapProps {
@@ -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("react").Dispatch<import("react").SetStateAction<T>>];
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?: boolean | number[] | undefined;
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: <T_1>(value: string) => T_1 | undefined;
13
+ parse: <T>(value: string) => T | undefined;
14
14
  stringify: (value: any, indent?: number | string) => string;
15
- keys: <T_2 extends IObject>(obj: T_2) => (keyof T_2)[];
16
- values: <T_3 extends IObject>(obj: T_3) => T_3[keyof T_3][];
17
- entries: <T_4 extends IObject>(obj: T_4) => [keyof T_4, T_4[keyof T_4]][];
18
- forEach: <T_5 extends IObject, P extends keyof T_5>(obj: T_5, fn: (key: P, value: T_5[P]) => any) => void;
19
- hasKey: <T_6 extends IObject>(obj: T_6, key: string | number | symbol) => key is keyof T_6;
20
- map: <T_7 extends IObject, U>(obj: T_7, fn: (keyValue: [keyof T_7, T_7[keyof T_7]], idx: number) => U) => U[];
21
- some: <T_8 extends IObject>(obj: T_8, fn: (key: keyof T_8, value: T_8[keyof T_8]) => any) => boolean;
22
- find: <T_9 extends IObject>(obj: T_9, fn: (key: keyof T_9, value: T_9[keyof T_9]) => any) => [string, any] | undefined;
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' | 'Normal' | 'Semi-normal' | 'Neutral' | 'Caption';
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: <T_1 extends IItem>(items: T_1[], defs: TATableDefs<T_1>, sortation?: IATableSortation<T_1> | undefined) => T_1[];
13
- applyPagination: <T_2 extends IItem>(items: T_2[], page: number, pageSize: number) => T_2[];
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: <T_3 extends IItem>(name: string, items: T_3[], defs: TATableDefs<T_3>) => void;
20
- getSingleFilterValue: <T_4 extends IItem>(filteration: TATableFilteration<T_4>) => string | undefined;
21
- getMultiFilterValues: <T_5 extends IItem, K extends IItem = any>(filteration: TATableFilteration<T_5, K>) => Partial<K>;
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 {};