@noah-libjs/components 0.0.23 → 0.0.43
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/README.md +1 -1
- package/dist/ArrayInput/DispalyInner.d.ts +4 -0
- package/dist/ArrayInput/Inner.d.ts +4 -0
- package/dist/ArrayInput/components.d.ts +201 -0
- package/dist/ArrayInput/index.d.ts +4 -0
- package/dist/ArrayInput/types.d.ts +77 -0
- package/dist/ArrayInput/utils.d.ts +3 -0
- package/dist/ArraySingle/DispalyInner.d.ts +4 -0
- package/dist/ArraySingle/Inner.d.ts +4 -0
- package/dist/ArraySingle/index.d.ts +4 -0
- package/dist/ArraySingle/types.d.ts +16 -0
- package/dist/ContainerDimensions/index.d.ts +9 -0
- package/dist/GlobalModal/index.d.ts +8 -0
- package/dist/GlobalModal/utils.d.ts +65 -0
- package/dist/LazyAntd/AutoComplete/Inner.d.ts +3 -0
- package/dist/LazyAntd/AutoComplete/index.d.ts +9 -0
- package/dist/LazyAntd/Checkbox/GroupInner.d.ts +3 -0
- package/dist/LazyAntd/Checkbox/Inner.d.ts +2 -0
- package/dist/LazyAntd/Checkbox/index.d.ts +9 -0
- package/dist/LazyAntd/ColorPicker/Inner.d.ts +3 -0
- package/dist/LazyAntd/ColorPicker/index.d.ts +42 -0
- package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +3 -0
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +37 -0
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +62 -0
- package/dist/LazyAntd/DatePicker/Calendar.d.ts +5 -0
- package/dist/LazyAntd/DatePicker/DatePicker.d.ts +12 -0
- package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +11 -0
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +19 -0
- package/dist/LazyAntd/DatePicker/TimePicker.d.ts +12 -0
- package/dist/LazyAntd/DatePicker/index.d.ts +5 -0
- package/dist/LazyAntd/Dropdown/Button.d.ts +2 -0
- package/dist/LazyAntd/Dropdown/Inner.d.ts +2 -0
- package/dist/LazyAntd/Dropdown/index.d.ts +10 -0
- package/dist/LazyAntd/Form/FormItemInner.d.ts +2 -0
- package/dist/LazyAntd/Form/Inner.d.ts +2 -0
- package/dist/LazyAntd/Form/index.d.ts +9 -0
- package/dist/LazyAntd/Modal/Inner.d.ts +3 -0
- package/dist/LazyAntd/Modal/index.d.ts +3 -0
- package/dist/LazyAntd/Pagination/Inner.d.ts +2 -0
- package/dist/LazyAntd/Pagination/index.d.ts +3 -0
- package/dist/LazyAntd/QRCode/Inner.d.ts +3 -0
- package/dist/LazyAntd/QRCode/index.d.ts +2 -0
- package/dist/LazyAntd/Select/Inner.d.ts +2 -0
- package/dist/LazyAntd/Select/OptionInner.d.ts +1 -0
- package/dist/LazyAntd/Select/index.d.ts +9 -0
- package/dist/LazyAntd/Switch/index.d.ts +1 -0
- package/dist/LazyAntd/Table/Inner.d.ts +2 -0
- package/dist/LazyAntd/Table/index.d.ts +3 -0
- package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +2 -0
- package/dist/LazyAntd/Tree/Inner.d.ts +3 -0
- package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +3 -0
- package/dist/LazyAntd/Tree/index.d.ts +14 -0
- package/dist/LazyAntd/TreeSelect/Inner.d.ts +2 -0
- package/dist/LazyAntd/TreeSelect/index.d.ts +3 -0
- package/dist/LazyAntd/index.d.ts +14 -0
- package/dist/Monaco/Inner.d.ts +4 -0
- package/dist/Monaco/index.d.ts +6 -0
- package/dist/Monaco/types.d.ts +9 -0
- package/dist/MyAutoComplete/Inner.d.ts +3 -0
- package/dist/MyAutoComplete/index.d.ts +5 -0
- package/dist/MyAutoComplete/types.d.ts +25 -0
- package/dist/MyAutoComplete/useConfig.d.ts +11 -0
- package/dist/MyButton/index.d.ts +10 -0
- package/dist/MyCheckbox/Display.d.ts +6 -0
- package/dist/MyCheckbox/Inner.d.ts +5 -0
- package/dist/MyCheckbox/components.d.ts +201 -0
- package/dist/MyCheckbox/index.d.ts +6 -0
- package/dist/MyCheckbox/types.d.ts +65 -0
- package/dist/MyCheckbox/utils.d.ts +3 -0
- package/dist/MyColor/index.d.ts +4 -0
- package/dist/MyColor/types.d.ts +6 -0
- package/dist/MyDatePicker/Display.d.ts +3 -0
- package/dist/MyDatePicker/Inner.d.ts +5 -0
- package/dist/MyDatePicker/index.d.ts +8 -0
- package/dist/MyDatePicker/utils.d.ts +26 -0
- package/dist/MyIconSelect/MyIcon.d.ts +2 -0
- package/dist/MyIconSelect/MyIconSelect.d.ts +5 -0
- package/dist/MyIconSelect/index.d.ts +6 -0
- package/dist/MyIconSelect/types.d.ts +16 -0
- package/dist/MyIconSelect/utils.d.ts +7 -0
- package/dist/MyInput/index.d.ts +5 -0
- package/dist/MyInput/types.d.ts +7 -0
- package/dist/MyInputNumber/index.d.ts +5 -0
- package/dist/MyInputNumber/types.d.ts +9 -0
- package/dist/MyLazyComponent/index.d.ts +6 -0
- package/dist/MyRangeDate/Display.d.ts +2 -0
- package/dist/MyRangeDate/Inner.d.ts +6 -0
- package/dist/MyRangeDate/index.d.ts +7 -0
- package/dist/MyRangeDate/utils.d.ts +40 -0
- package/dist/MySelect/Display.d.ts +3 -0
- package/dist/MySelect/Inner.d.ts +4 -0
- package/dist/MySelect/components.d.ts +201 -0
- package/dist/MySelect/index.d.ts +8 -0
- package/dist/MySelect/types.d.ts +29 -0
- package/dist/MySelect/utils.d.ts +1 -0
- package/dist/MySwitch/index.d.ts +4 -0
- package/dist/MySwitch/types.d.ts +10 -0
- package/dist/a_chunks/ArrayInput.DispalyInner.js +78 -0
- package/dist/a_chunks/ArrayInput.Inner.js +129 -0
- package/dist/a_chunks/ArraySingle.DispalyInner.js +15 -0
- package/dist/a_chunks/ArraySingle.Inner.js +166 -0
- package/dist/a_chunks/Base.Calendar.js +4 -0
- package/dist/a_chunks/Base.DatePicker.js +5 -0
- package/dist/a_chunks/Checkbox.GroupInner.js +9 -0
- package/dist/a_chunks/Checkbox.Inner.js +9 -0
- package/dist/a_chunks/ColorPicker.Inner.js +9 -0
- package/dist/a_chunks/Dropdown.Button.js +9 -0
- package/dist/a_chunks/Dropdown.Inner.js +9 -0
- package/dist/a_chunks/Form.FormItemInner.js +9 -0
- package/dist/a_chunks/Form.Inner.js +9 -0
- package/dist/a_chunks/Modal.Inner.js +9 -0
- package/dist/a_chunks/Monaco.Inner.js +37 -0
- package/dist/a_chunks/MyAutoComplete.Inner.js +212 -0
- package/dist/a_chunks/MyCheckbox.Display.js +18 -0
- package/dist/a_chunks/MyCheckbox.Inner.js +245 -0
- package/dist/a_chunks/MyDatePicker.Inner.js +117 -0
- package/dist/a_chunks/MyIconSelect.MyIcon.js +8 -0
- package/dist/a_chunks/MyIconSelect.MyIconSelect.js +68 -0
- package/dist/a_chunks/MyRangeDate.Inner.js +66 -0
- package/dist/a_chunks/MySelect.Inner.js +172 -0
- package/dist/a_chunks/Pagination.Inner.js +19 -0
- package/dist/a_chunks/QRCode.Inner.js +9 -0
- package/dist/a_chunks/Select.Inner.js +9 -0
- package/dist/a_chunks/Table.Inner.js +9 -0
- package/dist/a_chunks/Tree.DirectoryTreeInner.js +9 -0
- package/dist/a_chunks/Tree.Inner.js +11 -0
- package/dist/a_chunks/TreeSelect.Inner.js +9 -0
- package/dist/a_chunks/components.js +7 -0
- package/dist/a_chunks/index.js +1414 -0
- package/dist/a_chunks/index.module.js +10 -0
- package/dist/a_chunks/utils.js +59 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/packs.d.ts +215 -0
- package/dist/util-types/comp.d.ts +12 -0
- package/dist/util-types/fd/FormItemLayout.d.ts +5 -0
- package/dist/util-types/fd/InputType.d.ts +1 -0
- package/dist/util-types/fd/Rules.d.ts +4 -0
- package/dist/util-types/fd/SpecialConfig.d.ts +33 -0
- package/dist/util-types/fd/TranferRules.d.ts +9 -0
- package/dist/util-types/fd/index.d.ts +230 -0
- package/dist/util-types/index.d.ts +2 -0
- package/dist/utils/getInputStyle.d.ts +14 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/msmc.d.ts +50 -0
- package/dist/utils/new.d.ts +18 -0
- package/dist/utils/other.d.ts +4 -0
- package/dist/utils/use_array_marshal.d.ts +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { T_FETCH_OPTIONS } from "@noah-libjs/request";
|
|
2
|
+
import { ICommonOption } from "@noah-libjs/utils";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { IMchc_FormDescriptions_Field_Nullable, IMchc_FormDescriptions_InputProps, TOptions } from "../util-types";
|
|
5
|
+
import { FormInstance } from "antd";
|
|
6
|
+
export type TMarshal = IMchc_FormDescriptions_InputProps['marshal'];
|
|
7
|
+
export type TMode = 'multiple' | 'tags';
|
|
8
|
+
interface ICompatibleProps {
|
|
9
|
+
form?: FormInstance;
|
|
10
|
+
value?: string | number | ICommonOption[];
|
|
11
|
+
uniqueKey?: string;
|
|
12
|
+
optionKey?: string;
|
|
13
|
+
marshal?: TMarshal;
|
|
14
|
+
mode?: TMode;
|
|
15
|
+
type?: TMode;
|
|
16
|
+
options?: TOptions | (() => TOptions);
|
|
17
|
+
fetch_options?: T_FETCH_OPTIONS;
|
|
18
|
+
frugal?: boolean;
|
|
19
|
+
useString?: boolean;
|
|
20
|
+
useDefault?: boolean;
|
|
21
|
+
sp?: any[];
|
|
22
|
+
config?: any;
|
|
23
|
+
startIndex?: any;
|
|
24
|
+
display_linker?: string;
|
|
25
|
+
linker?: string;
|
|
26
|
+
fetch_options_on_open?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function get_check_invert_values(configs: IMchc_FormDescriptions_Field_Nullable[]): {
|
|
29
|
+
[x: string]: any[];
|
|
30
|
+
};
|
|
31
|
+
export declare function getMarshal(props?: ICompatibleProps): number;
|
|
32
|
+
export declare function parse_MC_value(props: ICompatibleProps, changedValue: ICommonOption[]): any;
|
|
33
|
+
export declare function check_multiple(props: ICompatibleProps): boolean;
|
|
34
|
+
export declare function get_mode(props: ICompatibleProps): TMode | undefined;
|
|
35
|
+
export declare function use_options(props: ICompatibleProps): {
|
|
36
|
+
loading: boolean;
|
|
37
|
+
options: ICommonOption[];
|
|
38
|
+
data: ICommonOption[];
|
|
39
|
+
setData: React.Dispatch<React.SetStateAction<ICommonOption[]>>;
|
|
40
|
+
display_node: React.JSX.Element;
|
|
41
|
+
process_options: () => void;
|
|
42
|
+
};
|
|
43
|
+
export declare function parse_MC_option(props: ICompatibleProps): ICommonOption[];
|
|
44
|
+
export declare function parse_MC_dict_options(props?: ICompatibleProps): ICommonOption[] | undefined;
|
|
45
|
+
export declare function displayValue(_opt: ICommonOption[], value: ICommonOption[], l?: string): string;
|
|
46
|
+
export declare function get_unknown_conf(props: {
|
|
47
|
+
showUnknown?: boolean;
|
|
48
|
+
unknown?: boolean;
|
|
49
|
+
}): boolean | undefined;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnyObject } from "@noah-libjs/utils";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
|
+
export declare function handle_form_error(error: any, form?: FormInstance): {
|
|
4
|
+
text: string | null;
|
|
5
|
+
errors: string[];
|
|
6
|
+
name: string[];
|
|
7
|
+
} | null;
|
|
8
|
+
export declare function form_validate<T = AnyObject>(form?: FormInstance | null): Promise<T>;
|
|
9
|
+
type EFocus = React.FocusEvent<HTMLDivElement, Element>;
|
|
10
|
+
export declare function fuck_focus(props: {
|
|
11
|
+
onBlur?(e: EFocus): void;
|
|
12
|
+
}): {
|
|
13
|
+
child_blur: (index?: number) => void;
|
|
14
|
+
child_focus: (index?: number) => void;
|
|
15
|
+
parent_blur: (e: EFocus, index?: number) => void;
|
|
16
|
+
parent_focus: (index?: number) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function isUrl(string: string): boolean;
|
|
2
|
+
export declare const getArray: (arr: any[], defaultValue?: never[]) => any[];
|
|
3
|
+
export declare function getFormat(format: string): string;
|
|
4
|
+
export declare function getParamByName(name: string, url?: string): string | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function use_array_marshal<T = any>(marshal?: 0 | 1 | 2, _value?: any, _onChange?: (v: any) => void, linker?: string): {
|
|
2
|
+
safe_value: T[];
|
|
3
|
+
set_safe_value: import("react").Dispatch<import("react").SetStateAction<T[]>>;
|
|
4
|
+
onChangeSafeValue: (_v: any[]) => void;
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noah-libjs/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"rollup-plugin-postcss": "^4.0.2"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@noah-libjs/request": "^0.0.
|
|
42
|
-
"@noah-libjs/utils": "^0.0.
|
|
41
|
+
"@noah-libjs/request": "^0.0.43",
|
|
42
|
+
"@noah-libjs/utils": "^0.0.43"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5dced859dd68c336e8837474c80a39eacb4456dd"
|
|
49
49
|
}
|