@apexcura/core 0.0.17-Beta21 → 0.0.17-Beta211

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.
@@ -0,0 +1,8 @@
1
+ interface ResponseData {
2
+ [x: string]: string | boolean | undefined;
3
+ status: boolean;
4
+ token?: string;
5
+ IS_MAINTENANCE_MODE?: boolean;
6
+ }
7
+ export default function postService(url: string, method: string, data: string): Promise<false | ResponseData>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ type StorageProps = {
2
+ key: string;
3
+ data?: object;
4
+ };
5
+ declare class Storage {
6
+ store({ key, data }: StorageProps): void;
7
+ getJson({ key }: StorageProps): any;
8
+ get({ key }: StorageProps): string | null;
9
+ remove({ key }: StorageProps): void;
10
+ clearAll(): void;
11
+ }
12
+ declare const _default: Storage;
13
+ export default _default;
package/package.json CHANGED
@@ -1,54 +1,56 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.17-Beta21",
4
- "description": "Apex cura React components library",
5
- "keywords": [
6
- "apex cura",
7
- "input",
8
- "ui",
9
- "react",
10
- "react-component"
11
- ],
12
- "homepage": "https://www.apexcura.com/",
13
- "bugs": {
14
- "url": "https://github.com/apexcura/core/issues"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/apexcura/core.git",
19
- "directory": "packages/core"
3
+ "version": "0.0.17-Beta211",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "scripts": {
7
+ "build": "webpack --config webpack.config.js",
8
+ "lint": "eslint src",
9
+ "format": "prettier --write src",
10
+ "prepare": "npm run build"
20
11
  },
21
- "author": "Apex Cura <hello@apexcura.com>",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "keywords": [],
16
+ "author": "",
22
17
  "license": "ISC",
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.mjs",
25
- "types": "./dist/index.d.ts",
26
- "scripts": {
27
- "test": "jest",
28
- "build": "tsup"
18
+ "description": "",
19
+ "lint-staged": {
20
+ "src/**/*.{ts,tsx}": [
21
+ "eslint --fix",
22
+ "prettier --write"
23
+ ]
29
24
  },
30
- "dependencies": {
31
- "@apexcura/ui-components": "^0.0.15-Beta22",
32
- "@testing-library/jest-dom": "^6.4.2",
33
- "@testing-library/react": "^15.0.6",
34
- "@types/react-global-configuration": "^1.3.3",
35
- "antd": "^5.16.5",
36
- "axios": "^1.6.8",
37
- "moment": "^2.30.1",
25
+ "peerDependencies": {
38
26
  "react": "^18.3.1",
39
- "react-dom": "^18.3.1",
40
- "tsup": "^8.0.2"
27
+ "react-dom": "^18.3.1"
41
28
  },
42
- "devDependencies": {
43
- "@types/jest": "^29.5.12",
44
- "@types/react": "^18.3.1",
45
- "@types/testing-library__react": "^10.2.0",
46
- "jest": "^29.7.0",
47
- "jest-environment-jsdom": "^29.7.0",
48
- "ts-jest": "^29.1.2",
49
- "typescript": "^5.4.5"
29
+ "dependencies": {
30
+ "@apexcura/ui-components": "^0.0.16-Beta110",
31
+ "antd": "^5.19.2",
32
+ "axios": "^1.7.2"
50
33
  },
51
- "engines": {
52
- "node": ">=18.0.0"
34
+ "devDependencies": {
35
+ "@types/highcharts": "^7.0.0",
36
+ "@types/react": "^18.3.3",
37
+ "@types/react-dom": "^18.3.0",
38
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
39
+ "@typescript-eslint/parser": "^7.15.0",
40
+ "clean-webpack-plugin": "^4.0.0",
41
+ "eslint": "^8.57.0",
42
+ "eslint-config-prettier": "^9.1.0",
43
+ "eslint-plugin-prettier": "^5.1.3",
44
+ "eslint-plugin-react": "^7.34.3",
45
+ "eslint-webpack-plugin": "^4.2.0",
46
+ "husky": "^9.0.11",
47
+ "lint-staged": "^15.2.7",
48
+ "prettier": "^3.3.2",
49
+ "source-map-loader": "^5.0.0",
50
+ "ts-loader": "^9.5.1",
51
+ "typescript": "^5.5.3",
52
+ "webpack": "^5.92.1",
53
+ "webpack-bundle-analyzer": "^4.10.2",
54
+ "webpack-cli": "^5.1.4"
53
55
  }
54
56
  }
package/dist/index.d.mts DELETED
@@ -1,184 +0,0 @@
1
- import React from 'react';
2
-
3
- type styling = {
4
- horizontalGutter?: number;
5
- verticalGutter?: number;
6
- };
7
- type FormExecutorProps = {
8
- data: {
9
- className: string;
10
- schema?: {
11
- name?: string;
12
- label?: string;
13
- source?: string;
14
- visible?: boolean;
15
- element?: string;
16
- className?: string;
17
- action?: string;
18
- order?: number;
19
- size?: string;
20
- colCount?: number;
21
- disabled?: boolean;
22
- activeClassName?: string;
23
- listClassName?: string;
24
- listItemClassName?: string;
25
- buttonClassName?: string;
26
- icon?: string;
27
- placement?: string;
28
- profileImageClassName?: string;
29
- value?: string | number | boolean | any[] | null | object;
30
- picker?: "date" | "week" | "month" | "quarter" | "year";
31
- weekrange?: boolean;
32
- img?: string;
33
- primaryText?: string;
34
- secondaryText?: string;
35
- count?: number;
36
- profileImage?: string;
37
- profileSubClassName?: string;
38
- containerClassName?: string;
39
- subContainerClassName?: string;
40
- secondTextClassName?: string;
41
- iconsClassName?: string;
42
- labelClassName?: string;
43
- view?: boolean;
44
- isSVGStylesOverride?: boolean;
45
- rowSelection?: boolean;
46
- length?: number;
47
- loading?: boolean;
48
- fillText1?: string;
49
- fillText2?: string;
50
- labels?: any[];
51
- data?: any[];
52
- pagination?: boolean;
53
- is_detail?: boolean;
54
- dateTime?: string;
55
- minRows?: number;
56
- maxRows?: number;
57
- mode?: "multiple" | "tags" | undefined;
58
- modalContent?: {
59
- name?: string;
60
- className?: string;
61
- fields?: any[];
62
- };
63
- items?: {
64
- icon?: React.JSX.Element | string;
65
- label?: string;
66
- active?: boolean;
67
- text?: string;
68
- time?: string;
69
- name?: string;
70
- y?: number;
71
- color?: string;
72
- }[];
73
- fields?: {
74
- name?: string;
75
- label?: string;
76
- placeholder?: string;
77
- element?: string;
78
- type?: string;
79
- value?: string | number | boolean | any[] | null | object;
80
- options?: {
81
- key?: number;
82
- label: string;
83
- value: string;
84
- }[];
85
- firstOptions?: {
86
- key?: number;
87
- label: string;
88
- value: string;
89
- }[];
90
- secondOptions?: {
91
- key?: number;
92
- label: string;
93
- value: string;
94
- }[];
95
- selectBefore?: {
96
- label: string;
97
- value: string;
98
- }[];
99
- selectAfter?: {
100
- label: string;
101
- value: string;
102
- }[];
103
- dropDownOptions?: any[];
104
- visible?: boolean;
105
- disabled?: boolean;
106
- required?: boolean;
107
- prefix?: React.ReactNode;
108
- suffix?: React.ReactNode;
109
- addonBefore?: React.ReactNode;
110
- defaultValue?: string;
111
- status?: "error" | "warning";
112
- styles?: React.CSSProperties;
113
- fieldClassName?: string;
114
- elementClassName?: string;
115
- variant?: string;
116
- thead?: {
117
- id: number;
118
- name?: string;
119
- label?: string;
120
- visible?: boolean;
121
- required?: boolean;
122
- key?: string;
123
- render?: () => void;
124
- ellipsis: boolean;
125
- }[];
126
- tbody?: {
127
- id?: number;
128
- name?: string;
129
- label?: string;
130
- element?: string;
131
- type?: string;
132
- variable_data?: {
133
- id: {
134
- id?: number;
135
- };
136
- Route?: {
137
- label: string;
138
- element: string;
139
- type: string;
140
- };
141
- Dose?: {
142
- label: string;
143
- element: string;
144
- type: string;
145
- };
146
- Frequency?: {
147
- label: string;
148
- element: string;
149
- type: string;
150
- };
151
- When?: {
152
- label: string;
153
- element: string;
154
- type: string;
155
- };
156
- Duration?: {
157
- label: string;
158
- element: string;
159
- type: string;
160
- };
161
- Instructions?: {
162
- label: string;
163
- element: string;
164
- type: string;
165
- };
166
- SubRows?: {
167
- label: string;
168
- };
169
- }[];
170
- }[];
171
- payload_keys?: string[];
172
- api_endpoint?: string;
173
- next_id?: string;
174
- action?: string;
175
- }[];
176
- }[];
177
- };
178
- setData?: Function;
179
- selectedRecord?: Function;
180
- };
181
- type ElementExecutorProps = FormExecutorProps & styling;
182
- declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
183
-
184
- export { ElementExecutor };