@noah-libjs/components 0.0.3 → 0.0.4

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.
Files changed (93) hide show
  1. package/dist/ArrayInput/DispalyInner.d.ts +4 -0
  2. package/dist/ArrayInput/Inner.d.ts +4 -0
  3. package/dist/ArrayInput/components.d.ts +41 -0
  4. package/dist/ArrayInput/index.d.ts +4 -0
  5. package/dist/ArrayInput/types.d.ts +76 -0
  6. package/dist/ArrayInput/utils.d.ts +3 -0
  7. package/dist/LazyAntd/AutoComplete/index.d.ts +6 -1
  8. package/dist/LazyAntd/Checkbox/index.d.ts +1 -1
  9. package/dist/LazyAntd/ColorPicker/index.d.ts +1 -1
  10. package/dist/LazyAntd/DatePicker/DatePicker.d.ts +1 -1
  11. package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +1 -1
  12. package/dist/LazyAntd/DatePicker/TimePicker.d.ts +1 -1
  13. package/dist/LazyAntd/Select/OptionInner.d.ts +1 -2
  14. package/dist/LazyAntd/Select/index.d.ts +4 -5
  15. package/dist/LazyAntd/Tree/index.d.ts +6 -5
  16. package/dist/MyAutoComplete/Inner.d.ts +3 -0
  17. package/dist/MyAutoComplete/index.d.ts +5 -0
  18. package/dist/MyAutoComplete/types.d.ts +22 -0
  19. package/dist/MyAutoComplete/useConfig.d.ts +11 -0
  20. package/dist/MyCheckbox/Display.d.ts +6 -0
  21. package/dist/MyCheckbox/Inner.d.ts +5 -0
  22. package/dist/MyCheckbox/components.d.ts +41 -0
  23. package/dist/MyCheckbox/index.d.ts +6 -0
  24. package/dist/MyCheckbox/types.d.ts +62 -0
  25. package/dist/MyCheckbox/utils.d.ts +3 -0
  26. package/dist/MyColor/index.d.ts +4 -6
  27. package/dist/MyColor/types.d.ts +6 -0
  28. package/dist/MyDatePicker/Display.d.ts +3 -0
  29. package/dist/MyDatePicker/Inner.d.ts +5 -0
  30. package/dist/MyDatePicker/index.d.ts +8 -0
  31. package/dist/MyDatePicker/utils.d.ts +26 -0
  32. package/dist/MyInput/index.d.ts +3 -3
  33. package/dist/MyInputNumber/index.d.ts +5 -0
  34. package/dist/MyInputNumber/types.d.ts +9 -0
  35. package/dist/MyRangeDate/Display.d.ts +2 -0
  36. package/dist/MyRangeDate/Inner.d.ts +7 -0
  37. package/dist/MyRangeDate/index.d.ts +8 -0
  38. package/dist/MyRangeDate/utils.d.ts +403 -0
  39. package/dist/MySelect/Display.d.ts +3 -0
  40. package/dist/MySelect/Inner.d.ts +4 -0
  41. package/dist/MySelect/components.d.ts +41 -0
  42. package/dist/MySelect/index.d.ts +8 -0
  43. package/dist/MySelect/types.d.ts +27 -0
  44. package/dist/MySelect/utils.d.ts +1 -0
  45. package/dist/MySwitch/index.d.ts +4 -0
  46. package/dist/MySwitch/types.d.ts +7 -0
  47. package/dist/a_chunks/components.js +7 -0
  48. package/dist/a_chunks/index.js +1010 -0
  49. package/dist/a_chunks/index.module.js +33 -0
  50. package/dist/a_chunks/{Monaco.Inner.js → root..js} +0 -1
  51. package/dist/a_chunks/root.17.js +166 -0
  52. package/dist/a_chunks/root.18.js +238 -0
  53. package/dist/a_chunks/root.19.js +18 -0
  54. package/dist/a_chunks/root.20.js +129 -0
  55. package/dist/a_chunks/root.21.js +78 -0
  56. package/dist/a_chunks/root.22.js +208 -0
  57. package/dist/a_chunks/root.23.js +109 -0
  58. package/dist/index.d.ts +2 -1
  59. package/dist/index.js +7 -572
  60. package/dist/packs.d.ts +48 -0
  61. package/dist/util-types/comp.d.ts +12 -0
  62. package/dist/util-types/fd/FormItemLayout.d.ts +5 -0
  63. package/dist/util-types/fd/InputType.d.ts +1 -0
  64. package/dist/util-types/fd/Rules.d.ts +4 -0
  65. package/dist/util-types/fd/SpecialConfig.d.ts +33 -0
  66. package/dist/util-types/fd/TranferRules.d.ts +9 -0
  67. package/dist/util-types/fd/index.d.ts +200 -0
  68. package/dist/util-types/index.d.ts +2 -0
  69. package/dist/utils/getInputStyle.d.ts +2 -0
  70. package/dist/utils/index.d.ts +2 -0
  71. package/dist/utils/msmc.d.ts +41 -0
  72. package/dist/utils/new.d.ts +6 -0
  73. package/package.json +5 -3
  74. package/dist/a_chunks/AutoComplete.Inner.js +0 -9
  75. package/dist/a_chunks/Select.OptionInner.js +0 -9
  76. package/dist/pack_components.d.ts +0 -10
  77. /package/dist/a_chunks/{Modal.Inner.js → root.10.js} +0 -0
  78. /package/dist/a_chunks/{Pagination.Inner.js → root.11.js} +0 -0
  79. /package/dist/a_chunks/{Select.Inner.js → root.12.js} +0 -0
  80. /package/dist/a_chunks/{TreeSelect.Inner.js → root.13.js} +0 -0
  81. /package/dist/a_chunks/{Checkbox.Inner.js → root.14.js} +0 -0
  82. /package/dist/a_chunks/{Checkbox.GroupInner.js → root.15.js} +0 -0
  83. /package/dist/a_chunks/{QRCode.Inner.js → root.16.js} +0 -0
  84. /package/dist/a_chunks/{ColorPicker.Inner.js → root.2.js} +0 -0
  85. /package/dist/a_chunks/{Base.DatePicker.js → root.24.js} +0 -0
  86. /package/dist/a_chunks/{Base.Calendar.js → root.25.js} +0 -0
  87. /package/dist/a_chunks/{Form.Inner.js → root.3.js} +0 -0
  88. /package/dist/a_chunks/{Form.FormItemInner.js → root.4.js} +0 -0
  89. /package/dist/a_chunks/{Dropdown.Inner.js → root.5.js} +0 -0
  90. /package/dist/a_chunks/{Dropdown.Button.js → root.6.js} +0 -0
  91. /package/dist/a_chunks/{Table.Inner.js → root.7.js} +0 -0
  92. /package/dist/a_chunks/{Tree.Inner.js → root.8.js} +0 -0
  93. /package/dist/a_chunks/{Tree.DirectoryTreeInner.js → root.9.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import { TCommonComponentDisplay } from '../util-types';
2
+ import { IArrayInputProps } from './types';
3
+ declare const DisplayFC: TCommonComponentDisplay<IArrayInputProps, string>;
4
+ export default DisplayFC;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IArrayInputProps } from './types';
3
+ declare function ArrayInputInner(props: IArrayInputProps): React.JSX.Element;
4
+ export default ArrayInputInner;
@@ -0,0 +1,41 @@
1
+ export declare const componentMap: {
2
+ MI: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
3
+ input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
4
+ Input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
5
+ MyInput: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
6
+ MyInputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
7
+ InputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
8
+ input_number: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
9
+ MyDatePicker: import("src/packs").TMyDatePicker;
10
+ DatePicker: import("src/packs").TMyDatePicker;
11
+ DP: import("src/packs").TMyDatePicker;
12
+ single_date_picker: import("src/packs").TMyDatePicker;
13
+ CusDatePicker: import("src/packs").TMyDatePicker;
14
+ date: import("src/packs").TMyDatePicker;
15
+ MyColor: import("..").TCommonComponent<import("../MyColor/types").IMyColorProps>;
16
+ MySwitch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
17
+ switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
18
+ Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
19
+ ArrayInput: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
20
+ MArr: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
21
+ MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
22
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
23
+ };
24
+ MS: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
25
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
26
+ };
27
+ Select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
28
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
29
+ };
30
+ select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
31
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
32
+ };
33
+ MyCheckbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
34
+ Checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
35
+ MC: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
36
+ checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
37
+ MyAutoComplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
38
+ MA: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
39
+ AutoComplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
40
+ autocomplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
41
+ };
@@ -0,0 +1,4 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IArrayInputProps } from './types';
3
+ export declare const ArrayInput: TCommonComponent<IArrayInputProps, string>;
4
+ export * from './types';
@@ -0,0 +1,76 @@
1
+ import { InputNumberProps } from 'antd';
2
+ import { CheckboxGroupProps } from 'antd/lib/checkbox';
3
+ import { MyAutoCompleteProps } from '../MyAutoComplete';
4
+ import { ICommonOption } from '@noah-libjs/utils';
5
+ import { FocusEventHandler } from 'react';
6
+ import { IMyDatePickerProps } from 'src/MyDatePicker/utils';
7
+ import { IMyInputProps } from 'src/MyInput';
8
+ import { IMySelectProps } from '../MySelect';
9
+ import { IMyCheckboxProps } from 'src/MyCheckbox';
10
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
11
+ export type TOption = {
12
+ inputType: 'MyAutoComplete';
13
+ props?: MyAutoCompleteProps;
14
+ } | {
15
+ inputType: 'MA';
16
+ props?: MyAutoCompleteProps;
17
+ } | {
18
+ inputType: 'MySelect';
19
+ props?: IMySelectProps;
20
+ } | {
21
+ inputType: 'MS';
22
+ props?: IMySelectProps;
23
+ } | {
24
+ inputType: 'CusDatePicker';
25
+ props?: IMyDatePickerProps;
26
+ } | {
27
+ inputType: 'DatePicker';
28
+ props?: IMyDatePickerProps;
29
+ } | {
30
+ inputType: 'MyInput';
31
+ props?: IMyInputProps;
32
+ } | {
33
+ inputType: 'Input';
34
+ props?: IMyInputProps;
35
+ } | {
36
+ inputType: 'input';
37
+ props?: IMyInputProps;
38
+ } | {
39
+ inputType: 'CheckboxGroup';
40
+ props?: CheckboxGroupProps;
41
+ } | {
42
+ inputType: 'InputNumber';
43
+ props?: InputNumberProps;
44
+ } | {
45
+ inputType: 'input_number';
46
+ props?: InputNumberProps;
47
+ } | {
48
+ inputType: 'MyInputNumber';
49
+ props?: InputNumberProps;
50
+ } | {
51
+ inputType: 'CheckboxWithInput';
52
+ props?: IMyCheckboxProps;
53
+ } | {
54
+ inputType: 'MyCheckbox';
55
+ props?: IMyCheckboxProps;
56
+ } | {
57
+ inputType: 'MC';
58
+ props?: IMyCheckboxProps;
59
+ } | {
60
+ inputType: 'Checkbox';
61
+ props?: IMyCheckboxProps;
62
+ };
63
+ export interface IArrayInputProps {
64
+ size?: SizeType;
65
+ autoFocus?: boolean;
66
+ disabled?: boolean;
67
+ inputWidth?: number;
68
+ value?: string;
69
+ optionKey?: string;
70
+ onChange?(v: string | any[]): void;
71
+ separator?: string;
72
+ marshal?: number;
73
+ onBlur?: FocusEventHandler<any>;
74
+ options?: (TOption & ICommonOption)[];
75
+ sp?: (TOption & ICommonOption)[];
76
+ }
@@ -0,0 +1,3 @@
1
+ import { ICommonOption } from '@noah-libjs/utils';
2
+ import { IArrayInputProps } from "./types";
3
+ export declare function getOption(props: IArrayInputProps): ICommonOption[];
@@ -1,4 +1,9 @@
1
1
  import { AutoCompleteProps } from 'antd/es/auto-complete';
2
2
  import * as React from 'react';
3
- declare const AutoComplete_L: React.ForwardRefExoticComponent<AutoCompleteProps<any, import("antd/es/select").DefaultOptionType> & React.RefAttributes<any>>;
3
+ import { SelectOption_L } from '../Select';
4
+ declare const AutoComplete_: React.ForwardRefExoticComponent<AutoCompleteProps<any, import("rc-select/lib/Select").DefaultOptionType> & React.RefAttributes<any>>;
5
+ type AutoCompleteType = typeof AutoComplete_ & {
6
+ Option: typeof SelectOption_L;
7
+ };
8
+ declare const AutoComplete_L: AutoCompleteType;
4
9
  export { AutoComplete_L, AutoCompleteProps };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  declare const GroupInner: React.LazyExoticComponent<typeof import("./GroupInner").default>;
4
4
  declare function Checkbox_<T extends Object = any>(props: SelectProps<T>): React.JSX.Element;
5
5
  type CheckboxType = typeof Checkbox_ & {
6
- Option: typeof GroupInner;
6
+ Group: typeof GroupInner;
7
7
  };
8
8
  export declare const Checkbox_L: CheckboxType;
9
9
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ColorPickerProps } from 'antd';
2
2
  import * as React from 'react';
3
3
  export type { ColorPickerProps as RcColorPickerProps } from '@rc-component/color-picker';
4
- declare const ColorPicker_L: React.ForwardRefExoticComponent<Omit<import("@rc-component/color-picker").ColorPickerProps, "value" | "onChange" | "defaultValue" | "components" | "panelRender" | "disabledAlpha" | "onChangeComplete"> & {
4
+ declare const ColorPicker_L: React.ForwardRefExoticComponent<Omit<import("@rc-component/color-picker").ColorPickerProps, "onChange" | "value" | "defaultValue" | "components" | "panelRender" | "disabledAlpha" | "onChangeComplete"> & {
5
5
  [key: `data-${string}`]: string;
6
6
  mode?: import("antd/es/color-picker/interface").ModeType | import("antd/es/color-picker/interface").ModeType[];
7
7
  value?: import("antd/es/color-picker/interface").ColorValueType;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { DatePickerProps } from './Base';
3
3
  import { Dayjs } from 'dayjs';
4
- declare const DatePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
4
+ declare const DatePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "onChange" | "value" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
5
5
  defaultValue?: unknown;
6
6
  value?: unknown;
7
7
  onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { MonthPickerProps } from './Base';
3
- declare const MonthPicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
3
+ declare const MonthPicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, "onChange" | "value" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
4
4
  defaultValue?: unknown;
5
5
  value?: unknown;
6
6
  onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TimePickerProps } from './Base';
3
3
  import { Dayjs } from 'dayjs';
4
- declare const TimePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Dayjs>, "picker">, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
4
+ declare const TimePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Dayjs>, "picker">, "onChange" | "value" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
5
5
  defaultValue?: unknown;
6
6
  value?: unknown;
7
7
  onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function LazyInner(props: any): React.JSX.Element;
1
+ export declare const SelectOption_L: import("rc-select/lib/Option").OptionFC;
@@ -1,10 +1,9 @@
1
1
  import { SelectProps } from 'antd';
2
- import { OptionProps } from 'antd/lib/select';
3
2
  import React from 'react';
3
+ import { SelectOption_L } from './OptionInner';
4
4
  declare function Select_<T extends Object = any>(props: SelectProps<T>): React.JSX.Element;
5
- declare function SelectOption(props: OptionProps): React.JSX.Element;
6
5
  type SelectType = typeof Select_ & {
7
- Option: typeof SelectOption;
6
+ Option: typeof SelectOption_L;
8
7
  };
9
- export declare const Select_L: SelectType;
10
- export {};
8
+ declare const Select_L: SelectType;
9
+ export { Select_L, SelectOption_L };
@@ -1,12 +1,13 @@
1
1
  import { TreeProps } from 'antd';
2
2
  import { DirectoryTreeProps } from 'antd/lib/tree';
3
- import TreeNode from 'rc-tree/es/TreeNode';
4
- import React from 'react';
3
+ import React, { FC } from 'react';
4
+ import { TreeNodeProps, DataNode } from 'rc-tree/es/interface';
5
5
  declare function Tree_<T extends Object = any>(props: TreeProps<T>): React.JSX.Element;
6
6
  declare function DirectoryTree(props: DirectoryTreeProps): React.JSX.Element;
7
7
  type TreeType = typeof Tree_ & {
8
- TreeNode: typeof TreeNode;
8
+ TreeNode: FC<TreeNodeProps<DataNode>>;
9
9
  DirectoryTree: typeof DirectoryTree;
10
10
  };
11
- export declare const Tree_L: TreeType;
12
- export {};
11
+ declare const Tree_L: TreeType;
12
+ export { Tree_L, DirectoryTreeProps, TreeProps, TreeNodeProps, DataNode };
13
+ export declare function aa(): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IMyAutoCompleteProps } from './types';
3
+ export default function MyAutoCompleteInner(props: IMyAutoCompleteProps): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { IMyAutoCompleteProps } from './types';
2
+ import { TCommonComponent } from '../util-types';
3
+ declare const MyAutoComplete: TCommonComponent<IMyAutoCompleteProps>;
4
+ export { IMyAutoCompleteProps as MyAutoCompleteProps } from './types';
5
+ export { MyAutoComplete };
@@ -0,0 +1,22 @@
1
+ import { AutoCompleteProps } from 'antd';
2
+ import { TOptions } from '../util-types';
3
+ export interface IMemoriseItem {
4
+ "id": 6591;
5
+ "key": "vitaminSignature";
6
+ "name": "vitamin签名";
7
+ "value": "钟财玉谢谢";
8
+ "sort": null;
9
+ }
10
+ export type IMyAutoCompleteProps = Omit<AutoCompleteProps, 'options' | 'onChange'> & {
11
+ onChange?(str?: string): void;
12
+ optionKey?: string;
13
+ uniqueKey?: string;
14
+ memorieskey?: string;
15
+ memoriesname?: string;
16
+ memorable?: boolean;
17
+ name?: string;
18
+ formName?: string;
19
+ searchKey?: string;
20
+ width?: any;
21
+ options?: TOptions | (() => TOptions);
22
+ };
@@ -0,0 +1,11 @@
1
+ import { ICommonOption } from '@noah-libjs/utils';
2
+ import React from 'react';
3
+ import { IMyAutoCompleteProps } from './types';
4
+ export declare function useConfig_MyAutoComplete(props: IMyAutoCompleteProps): {
5
+ safeOnChange: (str?: string) => void;
6
+ onBlur: (e: React.FocusEvent<HTMLElement>) => void;
7
+ init: () => void;
8
+ options: ICommonOption[];
9
+ remove: (item: ICommonOption) => void;
10
+ init_value: string | undefined;
11
+ };
@@ -0,0 +1,6 @@
1
+ import { ICommonOption } from '@noah-libjs/utils';
2
+ import { TCommonComponentDisplay } from '../util-types';
3
+ import { IMyCheckboxProps } from './types';
4
+ export * from './types';
5
+ declare const MyCheckbox_DisplayFC: TCommonComponentDisplay<IMyCheckboxProps, string | number | ICommonOption[]>;
6
+ export default MyCheckbox_DisplayFC;
@@ -0,0 +1,5 @@
1
+ import { ICommonOption } from '@noah-libjs/utils';
2
+ import { TCommonComponent } from '../util-types';
3
+ import { IMyCheckboxProps } from './types';
4
+ declare const MyCheckbox: TCommonComponent<IMyCheckboxProps, string | number | ICommonOption[]>;
5
+ export default MyCheckbox;
@@ -0,0 +1,41 @@
1
+ export declare const components: {
2
+ MI: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
3
+ input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
4
+ Input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
5
+ MyInput: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
6
+ MyInputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
7
+ InputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
8
+ input_number: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
9
+ MyDatePicker: import("src/packs").TMyDatePicker;
10
+ DatePicker: import("src/packs").TMyDatePicker;
11
+ DP: import("src/packs").TMyDatePicker;
12
+ single_date_picker: import("src/packs").TMyDatePicker;
13
+ CusDatePicker: import("src/packs").TMyDatePicker;
14
+ date: import("src/packs").TMyDatePicker;
15
+ MyColor: import("..").TCommonComponent<import("../MyColor/types").IMyColorProps>;
16
+ MySwitch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
17
+ switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
18
+ Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
19
+ ArrayInput: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
20
+ MArr: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
21
+ MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
22
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
23
+ };
24
+ MS: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
25
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
26
+ };
27
+ Select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
28
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
29
+ };
30
+ select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
31
+ DisplayFC: typeof import("../MySelect/Display").DisplayFC;
32
+ };
33
+ MyCheckbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
34
+ Checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
35
+ MC: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
36
+ checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
37
+ MyAutoComplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
38
+ MA: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
39
+ AutoComplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
40
+ autocomplete: import("..").TCommonComponent<import("../MyAutoComplete").MyAutoCompleteProps>;
41
+ };
@@ -0,0 +1,6 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IMyCheckboxProps } from './types';
3
+ export * from './types';
4
+ declare const MyCheckbox: TCommonComponent<IMyCheckboxProps>;
5
+ declare const MyCheckbox_Display: import("react").LazyExoticComponent<import("../util-types").TCommonComponentDisplay<IMyCheckboxProps, string | number | import("@noah-libjs/utils").ICommonOption[]>>;
6
+ export { MyCheckbox_Display, MyCheckbox };
@@ -0,0 +1,62 @@
1
+ import { ICommonOption } from "@noah-libjs/utils";
2
+ import { AutoCompleteProps } from "antd";
3
+ import React from "react";
4
+ import { IArrayInputProps } from "../ArrayInput";
5
+ import { IMyDatePickerProps } from "../MyDatePicker/utils";
6
+ import { IMyInputProps } from "../MyInput";
7
+ import { TMarshal, TMode } from "../utils";
8
+ import { TOptions } from "../util-types";
9
+ export interface ICompatibleProps {
10
+ marshal?: any;
11
+ optionKey?: string;
12
+ useString?: boolean;
13
+ options?: any;
14
+ sp?: any[];
15
+ config?: any;
16
+ type?: any;
17
+ startIndex?: any;
18
+ value?: any;
19
+ uniqueKey?: string;
20
+ }
21
+ export interface IMyCheckboxProps {
22
+ value?: string | number | ICommonOption[];
23
+ options?: TOptions | (() => TOptions);
24
+ onChange?(v?: any): void;
25
+ type?: TMode;
26
+ disabled?: boolean;
27
+ inputWidth?: number;
28
+ optionKey?: string;
29
+ config?: {
30
+ inputType?: string;
31
+ };
32
+ uniqueKey?: string;
33
+ marshal?: TMarshal;
34
+ sp?: ICommonOption[];
35
+ vertical?: boolean;
36
+ startIndex?: number;
37
+ onBlur?(e: any): void;
38
+ style?: React.CSSProperties;
39
+ }
40
+ type INil = Exclude<ICommonOption, 'props' | 'inputType'>;
41
+ interface IMyInput extends ICommonOption {
42
+ inputType: 'MyInput';
43
+ props?: IMyInputProps;
44
+ }
45
+ interface IAutoComplete extends ICommonOption {
46
+ inputType: 'AutoComplete';
47
+ props?: AutoCompleteProps;
48
+ }
49
+ interface ISelf extends ICommonOption {
50
+ inputType: 'CheckboxWithInput' | 'MyCheckbox';
51
+ props?: IMyCheckboxProps;
52
+ }
53
+ interface IArrayInput extends ICommonOption {
54
+ inputType: 'ArrayInput';
55
+ props?: IArrayInputProps;
56
+ }
57
+ interface ISingle_date_picker extends ICommonOption {
58
+ inputType: 'DatePicker';
59
+ props?: IMyDatePickerProps;
60
+ }
61
+ export type ICheckboxWithInputOption = IAutoComplete | IMyInput | ISelf | ISingle_date_picker | IArrayInput | INil;
62
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ICommonOption } from '@noah-libjs/utils';
2
+ import { TMode } from '../utils';
3
+ export declare function parseValue(value?: string | number | ICommonOption[], marshal?: number, type?: TMode): ICommonOption[];
@@ -1,6 +1,4 @@
1
- import React from "react";
2
- import { ColorPickerProps } from "src/LazyAntd";
3
- export declare function MyColor(props: Omit<ColorPickerProps, 'value' | 'onChange'> & {
4
- value?: string | null;
5
- onChange?(v: string | null): void;
6
- }): React.JSX.Element;
1
+ import { TCommonComponent } from "../util-types";
2
+ import { IMyColorProps } from "./types";
3
+ declare const MyColor: TCommonComponent<IMyColorProps>;
4
+ export { MyColor };
@@ -0,0 +1,6 @@
1
+ import { ColorPickerProps } from "src/LazyAntd";
2
+ export type IMyColorProps = Omit<ColorPickerProps, 'value' | 'onChange'> & {
3
+ value?: string | null;
4
+ onChange?(v: string | null): void;
5
+ allowClear?: boolean;
6
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IMyDatePickerProps } from './utils';
3
+ export declare const DisplayFC: (_props: IMyDatePickerProps) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IMyDatePickerProps } from './utils';
3
+ export { IMyDatePickerProps as ICusDatePickerProps, UNKNOWN_TIME_SYMBOL } from './utils';
4
+ declare const MyDatePickerInner: TCommonComponent<IMyDatePickerProps, string>;
5
+ export default MyDatePickerInner;
@@ -0,0 +1,8 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IMyDatePickerProps } from './utils';
3
+ export { formatDatePickerProps } from './utils';
4
+ export { IMyDatePickerProps as ICusDatePickerProps, UNKNOWN_TIME_SYMBOL } from './utils';
5
+ export { TMyDatePicker };
6
+ type TMyDatePicker = TCommonComponent<IMyDatePickerProps, string>;
7
+ declare const MyDatePicker: TMyDatePicker;
8
+ export default MyDatePicker;
@@ -0,0 +1,26 @@
1
+ import { DatePickerProps } from 'src/LazyAntd';
2
+ export declare const defaultGetPopupContainer: () => HTMLElement;
3
+ export declare function areEqual(prevProps: any, nextProps: any): boolean;
4
+ export declare const UNKNOWN_TIME_SYMBOL = "1970-01-01 00:00:00";
5
+ export type IMyDatePickerProps = {
6
+ time_only?: boolean;
7
+ value?: any;
8
+ onChange?: any;
9
+ valueType?: any;
10
+ minDate?: any;
11
+ maxDate?: any;
12
+ validDate?: any;
13
+ getPopupContainer?: any;
14
+ format?: any;
15
+ showUnknown?: boolean;
16
+ unknown?: boolean;
17
+ } & Omit<DatePickerProps, 'value'>;
18
+ export type ICommonProps = {
19
+ format?: any;
20
+ time_only?: boolean;
21
+ showTime?: any;
22
+ getPopupContainer?: any;
23
+ };
24
+ export declare function formatDatePickerProps<T extends ICommonProps>(props: T): T;
25
+ export declare function getIsUnknown(props: IMyDatePickerProps): boolean | undefined;
26
+ export declare const handleChangeValue: ({ valueType, format }: IMyDatePickerProps, date?: any) => any;
@@ -1,5 +1,5 @@
1
- import { InputRef } from 'antd';
2
- import React from 'react';
3
1
  import { IMyInputProps } from './types';
2
+ import { TCommonComponent } from '../util-types';
4
3
  export * from './types';
5
- export declare const MyInput: React.ForwardRefExoticComponent<IMyInputProps & React.RefAttributes<InputRef>>;
4
+ declare const MyInput: TCommonComponent<IMyInputProps, string>;
5
+ export { MyInput };
@@ -0,0 +1,5 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IMyInputNumberProps } from './types';
3
+ export * from './types';
4
+ declare const MyInputNumber: TCommonComponent<IMyInputNumberProps>;
5
+ export { MyInputNumber };
@@ -0,0 +1,9 @@
1
+ import { InputNumberProps } from 'antd';
2
+ export type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
3
+ export type * from '@rc-component/mini-decimal/es/interface';
4
+ export type IMyInputNumberProps = Omit<InputNumberProps, 'onChange' | 'value'> & {
5
+ unknown?: boolean;
6
+ warning?: boolean;
7
+ value?: any;
8
+ onChange?: (v: any) => void;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { IMyRangePickerProps } from './utils';
2
+ export declare const DisplayFC: (_props: IMyRangePickerProps) => string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TCommonComponent } from '../util-types';
3
+ import { IMyRangePickerProps } from './utils';
4
+ export { IMyRangePickerProps, } from './utils';
5
+ export declare function MyRangeDate(props: IMyRangePickerProps): React.JSX.Element;
6
+ export declare function MyRangeDateTime(props: IMyRangePickerProps): React.JSX.Element;
7
+ export declare const MyRangePicker: TCommonComponent<IMyRangePickerProps, string>;
@@ -0,0 +1,8 @@
1
+ import { TCommonComponent } from '../util-types';
2
+ import { IMyDatePickerProps } from './utils';
3
+ export { formatDatePickerProps } from './utils';
4
+ export { IMyDatePickerProps as ICusDatePickerProps, UNKNOWN_TIME_SYMBOL } from './utils';
5
+ export { TMyDatePicker };
6
+ type TMyDatePicker = TCommonComponent<IMyDatePickerProps, string>;
7
+ declare const MyDatePicker: TMyDatePicker;
8
+ export default MyDatePicker;