@noah-libjs/components 0.0.8 → 0.0.9

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 (40) hide show
  1. package/dist/ArrayInput/components.d.ts +26 -649
  2. package/dist/ArrayInput/types.d.ts +2 -1
  3. package/dist/ArraySingle/DispalyInner.d.ts +4 -0
  4. package/dist/ArraySingle/Inner.d.ts +4 -0
  5. package/dist/ArraySingle/index.d.ts +4 -0
  6. package/dist/ArraySingle/types.d.ts +16 -0
  7. package/dist/MyCheckbox/components.d.ts +26 -649
  8. package/dist/MyCheckbox/types.d.ts +3 -2
  9. package/dist/MyIconSelect/MyIcon.d.ts +2 -0
  10. package/dist/MyIconSelect/MyIconSelect.d.ts +5 -0
  11. package/dist/MyIconSelect/index.d.ts +2 -3
  12. package/dist/MyIconSelect/utils.d.ts +7 -0
  13. package/dist/MyInput/index.d.ts +3 -3
  14. package/dist/MyRangeDate/Inner.d.ts +2 -1
  15. package/dist/MyRangeDate/utils.d.ts +11 -376
  16. package/dist/MySelect/components.d.ts +26 -649
  17. package/dist/MySelect/types.d.ts +2 -0
  18. package/dist/a_chunks/index.js +111 -188
  19. package/dist/a_chunks/root.17.js +10 -4
  20. package/dist/a_chunks/root.18.js +0 -1
  21. package/dist/a_chunks/root.19.js +0 -1
  22. package/dist/a_chunks/root.20.js +0 -1
  23. package/dist/a_chunks/root.21.js +0 -1
  24. package/dist/a_chunks/root.22.js +155 -55
  25. package/dist/a_chunks/root.23.js +14 -211
  26. package/dist/a_chunks/root.24.js +23 -75
  27. package/dist/a_chunks/root.25.js +8 -5
  28. package/dist/a_chunks/root.26.js +68 -4
  29. package/dist/a_chunks/root.27.js +212 -0
  30. package/dist/a_chunks/root.28.js +117 -0
  31. package/dist/a_chunks/root.29.js +5 -0
  32. package/dist/a_chunks/root.30.js +4 -0
  33. package/dist/a_chunks/utils.js +59 -0
  34. package/dist/index.js +1 -2
  35. package/dist/packs.d.ts +28 -649
  36. package/dist/util-types/fd/InputType.d.ts +1 -1
  37. package/dist/util-types/fd/index.d.ts +9 -2
  38. package/dist/utils/msmc.d.ts +6 -3
  39. package/dist/utils/use_array_marshal.d.ts +5 -0
  40. package/package.json +4 -4
@@ -1 +1 @@
1
- export type IMchc_FormDescriptions_InputType = "single_date_picker" | 'PatientAutoComplete' | 'FormTabs' | 'PatientSelect' | 'rangeDate' | "MyButton" | "MyEditTable" | "MyRangeDate" | "MyRangeDateTime" | "MyInput" | "IdNOButton" | "Input" | "MySelect" | "MS" | "MSW" | "MyCheckbox" | "straw" | "ArrayInput" | "search_select" | "TemplateTextarea" | "MyTemplateTextarea" | "MC" | "UploadFile" | "upload_file" | "component" | "node" | "textareaWithResult" | "ArrayPanel" | "MyFormList_必须搭配Form使用" | "checkbox_group" | "MyPressure" | "title" | "normal_select" | "normal_checkbox_with_input" | "input" | "id" | "multiple_input_with_label" | "fetus_appendages" | "input_with_label" | "apgar_score_input" | "select_with_input" | "input_number" | "InputNumber" | "address" | "MyAddress" | "MyColor" | "MySwitch" | "Switch" | "switch" | "radio" | "month_picker" | "single_time_picker" | "select_with_options" | "pregnant_radio" | "noenate_record" | "date" | "array-custom" | "table" | "checkbox" | "country_select" | "checkbox_with_input" | "text_area" | "DateTimeInput" | "TextArea" | "MyMonaco" | "radio_group" | "checkbox_with_single_input" | "select_with_option" | "dictionary_select" | "id_number_input" | "input_with_range" | "pure_checkbox" | "checkbox_group_object" | "pregnancy_history_v2" | "has_pregnancy" | "fetal_count" | "custom" | "select" | "addressCascader" | "button" | "text-input" | "picker" | "date-picker" | "DatePicker" | "MyDatePicker" | "address-item" | "stepper-item" | "radio-item" | "checkbox-item" | "multiple-picker" | "group-picker" | "fetus" | "bloodPressureInput" | "MyAutoComplete" | "MA" | "MI" | "MArr" | "textareaWithTemplate" | "blank" | "highrisk_sign" | "age_select" | "edit_in_table" | "diagnosis" | "template_textarea" | "input_with_range_tip" | "blood_pressure" | "blood_and_thalassemia" | "middle_ultsounds_single" | "select_with_options_or_input" | "fetal_nt_check" | "middle_ultsounds" | "procedure_records" | "surgical_before_operator_select" | "surgical_before_nurse_select" | "procedure_intrauterine_records" | "procedure_cystocentesis_records" | "pressure" | "select_tag_with_options" | "tree_select_v2" | "normalButton" | "textarea-input" | "referral_register" | "ToggleForm" | "referral_organization_select" | "record_state" | "patient_auto_complete" | "image_editor" | "post_partumFetal" | "calculate-score-table" | "inspection_report" | "nursing_fetus" | "HourMinuteInput" | "checkbox_with_inputv2" | "appgar" | "nurse_children" | "radio_input" | "pressure-v2" | "fetal_ultrasound" | "inspection_result_textarea" | "ultrosound_result_textarea" | "diagnosis_list" | "labor_process" | "label" | "textareaWithBtn" | "pregnancyHistoryTable" | "bregma_group" | "multiple_input_group" | "multi_selector" | "result_textarea" | "single_selector" | "check_invert_button" | "async_autoComplete" | "checkbox-with-extra" | "oxytocin_table" | "range_date_picker" | "caesarean_children" | "retained_fetus" | "template_textareav2" | "auto_complete_with_red" | "diagnosis_list_v2" | "normal_nursing_table" | "blood_sugar_nursing_Table" | "past_delivery_nursing_table" | "special_nursing_table" | "nursing_table" | "lmp-info" | "induced_fetus" | "temperature_nursing_Table" | "blank_part" | "vagina_struments_record_form" | "divider" | "template_textareav3";
1
+ export type IMchc_FormDescriptions_InputType = "single_date_picker" | 'PatientAutoComplete' | 'FormTabs' | 'PatientSelect' | 'rangeDate' | "MyButton" | "MyEditTable" | "MyRangeDate" | "MyRangeDateTime" | "MyInput" | "IdNOButton" | "Input" | "MySelect" | "MS" | "MSW" | "MyCheckbox" | "straw" | "ArrayInput" | "ArraySingle" | "search_select" | "TemplateTextarea" | "MyTemplateTextarea" | "MC" | "UploadFile" | "upload_file" | "component" | "node" | "textareaWithResult" | "ArrayPanel" | "MyFormList_必须搭配Form使用" | "checkbox_group" | "MyPressure" | "title" | "normal_select" | "normal_checkbox_with_input" | "input" | "id" | "multiple_input_with_label" | "fetus_appendages" | "input_with_label" | "apgar_score_input" | "select_with_input" | "input_number" | "InputNumber" | "address" | "MyAddress" | "MyColor" | "MySwitch" | "Switch" | "switch" | "radio" | "month_picker" | "single_time_picker" | "select_with_options" | "pregnant_radio" | "noenate_record" | "date" | "array-custom" | "table" | "checkbox" | "country_select" | "checkbox_with_input" | "text_area" | "DateTimeInput" | "TextArea" | "MyMonaco" | "radio_group" | "checkbox_with_single_input" | "select_with_option" | "dictionary_select" | "id_number_input" | "input_with_range" | "pure_checkbox" | "checkbox_group_object" | "pregnancy_history_v2" | "has_pregnancy" | "fetal_count" | "custom" | "select" | "addressCascader" | "button" | "text-input" | "picker" | "date-picker" | "DatePicker" | "MyDatePicker" | "address-item" | "stepper-item" | "radio-item" | "checkbox-item" | "multiple-picker" | "group-picker" | "fetus" | "bloodPressureInput" | "MyAutoComplete" | "MA" | "MI" | "MArr" | "textareaWithTemplate" | "blank" | "highrisk_sign" | "age_select" | "edit_in_table" | "diagnosis" | "template_textarea" | "input_with_range_tip" | "blood_pressure" | "blood_and_thalassemia" | "middle_ultsounds_single" | "select_with_options_or_input" | "fetal_nt_check" | "middle_ultsounds" | "procedure_records" | "surgical_before_operator_select" | "surgical_before_nurse_select" | "procedure_intrauterine_records" | "procedure_cystocentesis_records" | "pressure" | "select_tag_with_options" | "tree_select_v2" | "normalButton" | "textarea-input" | "referral_register" | "ToggleForm" | "referral_organization_select" | "record_state" | "patient_auto_complete" | "image_editor" | "post_partumFetal" | "calculate-score-table" | "inspection_report" | "nursing_fetus" | "HourMinuteInput" | "checkbox_with_inputv2" | "appgar" | "nurse_children" | "radio_input" | "pressure-v2" | "fetal_ultrasound" | "inspection_result_textarea" | "ultrosound_result_textarea" | "diagnosis_list" | "labor_process" | "label" | "textareaWithBtn" | "pregnancyHistoryTable" | "bregma_group" | "multiple_input_group" | "multi_selector" | "result_textarea" | "single_selector" | "check_invert_button" | "async_autoComplete" | "checkbox-with-extra" | "oxytocin_table" | "range_date_picker" | "caesarean_children" | "retained_fetus" | "template_textareav2" | "auto_complete_with_red" | "diagnosis_list_v2" | "normal_nursing_table" | "blood_sugar_nursing_Table" | "past_delivery_nursing_table" | "special_nursing_table" | "nursing_table" | "lmp-info" | "induced_fetus" | "temperature_nursing_Table" | "blank_part" | "vagina_struments_record_form" | "Divider" | "template_textareav3";
@@ -12,6 +12,7 @@ import { InputStatus } from "antd/es/_util/statusUtils";
12
12
  import { UploadListType } from "antd/es/upload/interface";
13
13
  export type TOptions = string | ICommonOption[] | string[];
14
14
  export interface IMchc_FormDescriptions_InputProps {
15
+ inputType?: IMchc_FormDescriptions_InputType;
15
16
  language?: 'json' | 'javascript' | 'rust' | 'java';
16
17
  showTime?: boolean;
17
18
  showEdit?: boolean;
@@ -19,6 +20,8 @@ export interface IMchc_FormDescriptions_InputProps {
19
20
  status?: InputStatus;
20
21
  addonBefore?: string;
21
22
  addonAfter?: string;
23
+ suffix?: string;
24
+ prefix?: string;
22
25
  dependency?: {
23
26
  show?: {
24
27
  key: string;
@@ -40,7 +43,6 @@ export interface IMchc_FormDescriptions_InputProps {
40
43
  listType?: UploadListType;
41
44
  linker?: string;
42
45
  action?: string;
43
- unit?: string;
44
46
  tip?: string;
45
47
  span?: number;
46
48
  min?: number;
@@ -56,6 +58,7 @@ export interface IMchc_FormDescriptions_InputProps {
56
58
  targetLabelCol?: number;
57
59
  options?: TOptions | (() => TOptions);
58
60
  fetch_options?: T_FETCH_OPTIONS;
61
+ fetch_options_on_open?: boolean;
59
62
  optionKey?: string;
60
63
  switch_type?: 'switch' | 'checkbox';
61
64
  unchecked_text?: string;
@@ -74,7 +77,7 @@ export interface IMchc_FormDescriptions_InputProps {
74
77
  pressure_key1?: string;
75
78
  pressure_key2?: string;
76
79
  style?: CSSProperties;
77
- marshal?: 0 | 1 | 2;
80
+ marshal?: 0 | 1 | 2 | 3;
78
81
  TemplateTextarea_type?: {
79
82
  url?: string;
80
83
  method?: 'post' | 'get';
@@ -96,6 +99,8 @@ export interface IMchc_FormDescriptions_InputProps {
96
99
  startIndex?: number;
97
100
  inputWidth?: number;
98
101
  size?: SizeType;
102
+ useDefault?: boolean;
103
+ useString?: boolean;
99
104
  memorable?: boolean;
100
105
  memorieskey?: string;
101
106
  memoriesname?: string;
@@ -118,6 +123,7 @@ export interface IMchc_FormDescriptions_InputProps {
118
123
  on_row_value_change?(data: any[], index: number, changed?: AnyObject, form?: FormInstance): void;
119
124
  onFocus?: React.FocusEventHandler<HTMLInputElement>;
120
125
  onBlur?: React.FocusEventHandler<HTMLInputElement>;
126
+ component_map?: AnyObject<FC<any>>;
121
127
  }
122
128
  type IMchc_FormDescriptions_FilterTypeRaw = 'in' | 'equals' | 'contains' | 'greaterOrEqualThan' | 'lessOrEqualThan';
123
129
  export type IMchc_FormDescriptions_FilterType = IMchc_FormDescriptions_FilterTypeRaw | `${IMchc_FormDescriptions_FilterTypeRaw},${IMchc_FormDescriptions_FilterTypeRaw}`;
@@ -154,6 +160,7 @@ export type IMchc_FormDescriptions_Field<RAW = false> = {
154
160
  sort?: number;
155
161
  align?: 'center';
156
162
  fixed?: 'left' | 'right';
163
+ unit?: string;
157
164
  required?: boolean | (() => boolean);
158
165
  ellipsis?: {
159
166
  showTitle?: boolean;
@@ -1,9 +1,9 @@
1
1
  import { T_FETCH_OPTIONS } from "@noah-libjs/request";
2
2
  import { ICommonOption } from "@noah-libjs/utils";
3
3
  import React from "react";
4
- import { IMchc_FormDescriptions_Field_Nullable, TOptions } from "../util-types";
4
+ import { IMchc_FormDescriptions_Field_Nullable, IMchc_FormDescriptions_InputProps, TOptions } from "../util-types";
5
5
  import { FormInstance } from "antd";
6
- export type TMarshal = 0 | 1 | 2;
6
+ export type TMarshal = IMchc_FormDescriptions_InputProps['marshal'];
7
7
  export type TMode = 'multiple' | 'tags';
8
8
  interface ICompatibleProps {
9
9
  form?: FormInstance;
@@ -17,11 +17,13 @@ interface ICompatibleProps {
17
17
  fetch_options?: T_FETCH_OPTIONS;
18
18
  frugal?: boolean;
19
19
  useString?: boolean;
20
+ useDefault?: boolean;
20
21
  sp?: any[];
21
22
  config?: any;
22
23
  startIndex?: any;
23
24
  display_linker?: string;
24
25
  linker?: string;
26
+ fetch_options_on_open?: boolean;
25
27
  }
26
28
  export declare function get_check_invert_values(configs: IMchc_FormDescriptions_Field_Nullable[]): {
27
29
  [x: string]: any[];
@@ -36,10 +38,11 @@ export declare function use_options(props: ICompatibleProps): {
36
38
  data: ICommonOption[];
37
39
  setData: React.Dispatch<React.SetStateAction<ICommonOption[]>>;
38
40
  display_node: React.JSX.Element;
41
+ process_options: () => void;
39
42
  };
40
43
  export declare function parse_MC_option(props: ICompatibleProps): ICommonOption[];
41
44
  export declare function parse_MC_dict_options(props?: ICompatibleProps): ICommonOption[] | undefined;
42
- export declare function displayValue(_options: ICommonOption[], value: ICommonOption[], l?: string): string;
45
+ export declare function displayValue(_opt: ICommonOption[], value: ICommonOption[], l?: string): string;
43
46
  export declare function get_unknown_conf(props: {
44
47
  showUnknown?: boolean;
45
48
  unknown?: boolean;
@@ -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.8",
3
+ "version": "0.0.9",
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.8",
42
- "@noah-libjs/utils": "0.0.8"
41
+ "@noah-libjs/request": "0.0.9",
42
+ "@noah-libjs/utils": "0.0.9"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
47
  "license": "MIT",
48
- "gitHead": "a50958bb900a9e145a8a722b69c639cac93d2094"
48
+ "gitHead": "bb49d078600e65d77b842887c63be3b254faf999"
49
49
  }