@lm_fe/env 0.1.201

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 (65) hide show
  1. package/README.md +31 -0
  2. package/dist/HK-MO-TW-a8290c42.js +35 -0
  3. package/dist/HK-MO-TW-a8290c42.js.map +1 -0
  4. package/dist/MAINLAND-dbab9013.js +408 -0
  5. package/dist/MAINLAND-dbab9013.js.map +1 -0
  6. package/dist/OVERSEA-aee11a7a.js +5 -0
  7. package/dist/OVERSEA-aee11a7a.js.map +1 -0
  8. package/dist/STREETS-a799058d.js +210 -0
  9. package/dist/STREETS-a799058d.js.map +1 -0
  10. package/dist/constant/APP_CONFIG.d.ts +30 -0
  11. package/dist/constant/index.d.ts +18 -0
  12. package/dist/constant/modal_template_types.d.ts +11 -0
  13. package/dist/env/MchcEnv.d.ts +60 -0
  14. package/dist/env/index.d.ts +8 -0
  15. package/dist/env/type copy.d.ts +12 -0
  16. package/dist/env/type.d.ts +8 -0
  17. package/dist/event/MchcDriver.d.ts +17 -0
  18. package/dist/event/index.d.ts +26 -0
  19. package/dist/event/types/common.d.ts +5 -0
  20. package/dist/event/types/components/BaseList.d.ts +7 -0
  21. package/dist/event/types/mchc_driver.d.ts +38 -0
  22. package/dist/event/types/my_form.d.ts +46 -0
  23. package/dist/event/types/outpatient.d.ts +17 -0
  24. package/dist/event/types/service_info.d.ts +11 -0
  25. package/dist/event/types/ws.d.ts +82 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +3573 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/logger/index.d.ts +2 -0
  30. package/dist/macro/index.d.ts +25 -0
  31. package/dist/select_options/address/HK-MO-TW.d.ts +34 -0
  32. package/dist/select_options/address/MAINLAND.d.ts +6 -0
  33. package/dist/select_options/address/OVERSEA.d.ts +4 -0
  34. package/dist/select_options/address/STREETS.d.ts +209 -0
  35. package/dist/select_options/address/index.d.ts +247 -0
  36. package/dist/select_options/checkbox_options.d.ts +6 -0
  37. package/dist/select_options/country.d.ts +1 -0
  38. package/dist/select_options/funcs.d.ts +19 -0
  39. package/dist/select_options/index.d.ts +4 -0
  40. package/dist/select_options/other_options.d.ts +172 -0
  41. package/dist/select_options/preset_options.d.ts +127 -0
  42. package/dist/select_options/types.d.ts +15 -0
  43. package/dist/state/actionType.d.ts +52 -0
  44. package/dist/state/actions/dictionaries.d.ts +2 -0
  45. package/dist/state/actions/health-mission.d.ts +10 -0
  46. package/dist/state/actions/prenatal-diagnosis.d.ts +5 -0
  47. package/dist/state/actions/prenatal-visit.d.ts +40 -0
  48. package/dist/state/actions/system.d.ts +8 -0
  49. package/dist/state/actions/tabs.d.ts +6 -0
  50. package/dist/state/actions/temp-ids.d.ts +2 -0
  51. package/dist/state/index.d.ts +43 -0
  52. package/dist/state/types.d.ts +148 -0
  53. package/dist/storage/index.d.ts +18 -0
  54. package/dist/utils/MchcRouterContainer.d.ts +14 -0
  55. package/dist/utils/checkIdNO.d.ts +40 -0
  56. package/dist/utils/dictionary.d.ts +40 -0
  57. package/dist/utils/dynamicScriptCtx.d.ts +3 -0
  58. package/dist/utils/func.d.ts +14 -0
  59. package/dist/utils/history.d.ts +8 -0
  60. package/dist/utils/index.d.ts +68 -0
  61. package/dist/utils/medical_examination.d.ts +21 -0
  62. package/dist/utils/runtime_ctx.d.ts +34 -0
  63. package/dist/utils/state.d.ts +10 -0
  64. package/dist/utils/user_data.d.ts +23 -0
  65. package/package.json +33 -0
@@ -0,0 +1,40 @@
1
+ export declare function checkIdNo(card: string): {
2
+ province: undefined;
3
+ birth: undefined;
4
+ gender: undefined;
5
+ age: undefined;
6
+ nationality: undefined;
7
+ status: boolean;
8
+ message: string;
9
+ } | {
10
+ province: string | undefined;
11
+ birth: string | undefined;
12
+ gender: string;
13
+ age: number | undefined;
14
+ nationality: string;
15
+ status: boolean;
16
+ message: string;
17
+ };
18
+ export declare function checkIdNo_new(card?: string, idType?: number): {
19
+ province: undefined;
20
+ birth: undefined;
21
+ gender: undefined;
22
+ age: undefined;
23
+ nationality: undefined;
24
+ status: boolean;
25
+ message: string;
26
+ } | {
27
+ province: string | undefined;
28
+ birth: string | undefined;
29
+ gender: string;
30
+ age: number | undefined;
31
+ nationality: string;
32
+ status: boolean;
33
+ message: string;
34
+ } | null;
35
+ /**
36
+ * 取身份证前两位,校验省份
37
+ * @param {string} card 证件号码
38
+ */
39
+ export declare function checkProvince(card: string): string | undefined;
40
+ export declare function checkAge(card: string): number | undefined;
@@ -0,0 +1,40 @@
1
+ interface IDictionary {
2
+ id: number;
3
+ module: string;
4
+ type: number;
5
+ key: string;
6
+ name: string;
7
+ note: string;
8
+ enumerations: IEnumeration[];
9
+ }
10
+ interface IEnumeration {
11
+ id: number;
12
+ label: string;
13
+ note: string;
14
+ value: number;
15
+ }
16
+ type Fuck_Dic = {
17
+ [x: string]: IDictionary;
18
+ } & {
19
+ initDictionaries: IDictionary[];
20
+ };
21
+ export declare function getDictionaries(): Fuck_Dic;
22
+ /**
23
+ *
24
+ * @param value 枚举值value
25
+ * @param type string 字典类型
26
+ */
27
+ export declare function getDictionariesEnumerations(type: string): IEnumeration[];
28
+ /**
29
+ *
30
+ * @param value 枚举值value
31
+ * @param type string 字典类型
32
+ */
33
+ export declare function getDictionaryLabel(type: string, value: string | number): string | null;
34
+ /**
35
+ *
36
+ * @param label 枚举值value
37
+ * @param type string 字典类型
38
+ */
39
+ export declare function getDictionaryValue(type: string, label: string): number | null;
40
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IRTCtx } from "./runtime_ctx";
2
+ export declare function dynamicScriptExecute(cb: (ctx: IRTCtx) => void, props?: any): boolean;
3
+ export declare function getSymbolFromDynamicScript<T = any>(str: any, props?: any, default_v?: T): T | undefined;
@@ -0,0 +1,14 @@
1
+ import { ACTION_TYPE } from "src/state/actionType";
2
+ export declare function getDoctorEndId(props?: any): any;
3
+ export declare function getActionType(key: keyof typeof ACTION_TYPE): string;
4
+ type TNoteType<T extends string | number> = `${T}Note`;
5
+ type TOptionType<T extends string | number> = `${T}__`;
6
+ export declare function noteToCommonOption<D extends {
7
+ [x in N | O]: any;
8
+ }, T extends Exclude<keyof D, symbol>, N extends TNoteType<T>, O extends TOptionType<T>>(data: D, key: T, marshal?: boolean): D;
9
+ export declare function commonOptionToNote<D extends {
10
+ [x in N | O]: any;
11
+ }, T extends Exclude<keyof D, symbol>, N extends TNoteType<T>, O extends TOptionType<T>>(data: D, key: T): D;
12
+ export declare function autoCommonOptionToNote<T = any>(data: T): T;
13
+ export declare function autoNoteToCommonOption<T = any>(data: T): T;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare function getHistory(props?: {
2
+ history?: {
3
+ push(p: string): void;
4
+ };
5
+ }): {
6
+ push(p: string): void;
7
+ } | undefined;
8
+ export declare function historyPush(url: string, props?: any): void;
@@ -0,0 +1,68 @@
1
+ import { checkBloodPressure, checkPulse, checkTemperature } from './medical_examination';
2
+ import { getDictionaries, getDictionariesEnumerations, getDictionaryLabel, getDictionaryValue } from './dictionary';
3
+ import { getUserData } from './user_data';
4
+ export * from './dynamicScriptCtx';
5
+ export * from './MchcRouterContainer';
6
+ export * from './history';
7
+ export * from './runtime_ctx';
8
+ export declare const mchcUtils: {
9
+ getGlobalState(): import("..").IState;
10
+ setGlobalState(getter: () => any): void;
11
+ getGlobalDispatch(): import("redux").Dispatch<import("redux").AnyAction>;
12
+ setGlobalDispatch(getter: () => any): void;
13
+ getGlobalHistory(): {
14
+ push(k: any, state?: any): void;
15
+ replace(k: any, state?: any): void;
16
+ };
17
+ setGlobalHistory(getter: () => any): void;
18
+ getDoctorEndId(props?: any): any;
19
+ getActionType(key: keyof typeof import("../state/actionType").ACTION_TYPE): string;
20
+ noteToCommonOption<D extends { [x in N | O]: any; }, T extends Exclude<keyof D, symbol>, N extends `${T}Note`, O extends `${T}__`>(data: D, key: T, marshal?: boolean): D;
21
+ commonOptionToNote<D extends { [x in N | O]: any; }, T extends Exclude<keyof D, symbol>, N extends `${T}Note`, O extends `${T}__`>(data: D, key: T): D;
22
+ autoCommonOptionToNote<T = any>(data: T): T;
23
+ autoNoteToCommonOption<T = any>(data: T): T;
24
+ checkIdNo(card: string): {
25
+ province: undefined;
26
+ birth: undefined;
27
+ gender: undefined;
28
+ age: undefined;
29
+ nationality: undefined;
30
+ status: boolean;
31
+ message: string;
32
+ } | {
33
+ province: string | undefined;
34
+ birth: string | undefined;
35
+ gender: string;
36
+ age: number | undefined;
37
+ nationality: string;
38
+ status: boolean;
39
+ message: string;
40
+ };
41
+ checkIdNo_new(card?: string, idType?: number): {
42
+ province: undefined;
43
+ birth: undefined;
44
+ gender: undefined;
45
+ age: undefined;
46
+ nationality: undefined;
47
+ status: boolean;
48
+ message: string;
49
+ } | {
50
+ province: string | undefined;
51
+ birth: string | undefined;
52
+ gender: string;
53
+ age: number | undefined;
54
+ nationality: string;
55
+ status: boolean;
56
+ message: string;
57
+ } | null;
58
+ checkProvince(card: string): string | undefined;
59
+ checkAge(card: string): number | undefined;
60
+ checkBloodPressure: typeof checkBloodPressure;
61
+ checkSphygmus: typeof checkPulse;
62
+ checkTemperature: typeof checkTemperature;
63
+ getDictionariesEnumerations: typeof getDictionariesEnumerations;
64
+ getDictionaryLabel: typeof getDictionaryLabel;
65
+ getDictionaryValue: typeof getDictionaryValue;
66
+ getDictionaries: typeof getDictionaries;
67
+ getUserData: typeof getUserData;
68
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 判断血压是否异常
3
+ * @param systolic 收缩
4
+ * @param diastolic 舒张
5
+ */
6
+ export declare function checkBloodPressure(systolic: number, diastolic: number): boolean;
7
+ /**
8
+ * 判断体温是否异常
9
+ * @param value
10
+ */
11
+ export declare function checkTemperature(value: number): boolean;
12
+ /**
13
+ * 判断脉搏是否异常
14
+ * @param value
15
+ */
16
+ export declare function checkPulse(value: number): boolean;
17
+ /**
18
+ * 判断产后出血是否异常
19
+ * @param value
20
+ */
21
+ export declare function checkPostpartumBleeding(value: number): boolean;
@@ -0,0 +1,34 @@
1
+ import { AnyObject, format_gp, formatDate, formatDateTime, formatDateTimeNoSecond, getSearchParamsAll, request, transmit_happy_pre } from "@lm_fe/utils";
2
+ import { Button, message, Space, Tag, Switch } from "antd";
3
+ import React from 'react';
4
+ import { mchcEnv } from "../env";
5
+ declare function Array_(arr: string[], isTag?: boolean): React.JSX.Element | null;
6
+ export interface IRTCtx {
7
+ type: string;
8
+ props?: any;
9
+ required: true;
10
+ message: typeof message;
11
+ request: typeof request;
12
+ mchcEnv: typeof mchcEnv;
13
+ React: typeof React;
14
+ goTo(url: string): void;
15
+ safeTo(url_conf: string, params?: AnyObject): void;
16
+ ui: {
17
+ Button: typeof Button;
18
+ Space: typeof Space;
19
+ Tag: typeof Tag;
20
+ Switch: typeof Switch;
21
+ render_arr: typeof Array_;
22
+ };
23
+ utils: {
24
+ formatDateTime: typeof formatDateTime;
25
+ formatDateTimeNoSecond: typeof formatDateTimeNoSecond;
26
+ formatDate: typeof formatDate;
27
+ getSearchParamsAll: typeof getSearchParamsAll;
28
+ format_gp: typeof format_gp;
29
+ transmit_happy_pre: typeof transmit_happy_pre;
30
+ };
31
+ }
32
+ export declare function gen_rt_ctx(type: string, ctx_props?: any): IRTCtx;
33
+ export declare const rt_ctx: IRTCtx;
34
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Dispatch } from "redux";
2
+ export declare function getGlobalState(): import("src/state").IState;
3
+ export declare function setGlobalState(getter: () => any): void;
4
+ export declare function getGlobalDispatch(): Dispatch<import("redux").AnyAction>;
5
+ export declare function setGlobalDispatch(getter: () => any): void;
6
+ export declare function getGlobalHistory(): {
7
+ push(k: any, state?: any): void;
8
+ replace(k: any, state?: any): void;
9
+ };
10
+ export declare function setGlobalHistory(getter: () => any): void;
@@ -0,0 +1,23 @@
1
+ interface IMchc_User {
2
+ activated: true;
3
+ authorities: null;
4
+ config: null;
5
+ createdBy: string;
6
+ createdDate: string;
7
+ email: string;
8
+ firstName: string;
9
+ groups: any[];
10
+ id: number;
11
+ imageUrl: null;
12
+ langKey: string;
13
+ lastModifiedBy: string;
14
+ lastModifiedDate: string;
15
+ lastName: null;
16
+ login: string;
17
+ overdueDate: string;
18
+ password: null;
19
+ userType: null;
20
+ wards: null;
21
+ }
22
+ export declare function getUserData(): IMchc_User | undefined;
23
+ export {};
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@lm_fe/env",
3
+ "version": "0.1.201",
4
+ "description": "",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "build": "rollup -c rollup.config.js",
8
+ "build:watch": "rollup -c rollup.config.js --watch",
9
+ "clean": "rimraf dist",
10
+ "prebuild": "pnpm clean"
11
+ },
12
+ "main": "dist/index.js",
13
+ "directories": {
14
+ "lib": "dist"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "keywords": [],
23
+ "author": "",
24
+ "license": "MIT",
25
+ "dependencies": {
26
+ "@lm_fe/static": "*",
27
+ "@lm_fe/utils": "^0.1.201"
28
+ },
29
+ "devDependencies": {
30
+ "rollup": "^2.70.2"
31
+ },
32
+ "gitHead": "ec1dcf6e3b2d06782779a21f536300bb2536ea6b"
33
+ }