@apexcura/core 0.0.17-Beta152 → 0.0.17-Beta1521

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,58 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.17-Beta152",
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-Beta1521",
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.16-Beta42",
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/highcharts": "^0.0.0-Beta317",
31
+ "@apexcura/ui-components": "^0.0.16-Beta1176",
32
+ "antd": "^5.19.2",
33
+ "axios": "^1.7.2",
34
+ "react-draggable": "^4.4.6"
50
35
  },
51
- "engines": {
52
- "node": ">=18.0.0"
36
+ "devDependencies": {
37
+ "@types/highcharts": "^7.0.0",
38
+ "@types/react": "^18.3.3",
39
+ "@types/react-dom": "^18.3.0",
40
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
41
+ "@typescript-eslint/parser": "^7.15.0",
42
+ "clean-webpack-plugin": "^4.0.0",
43
+ "eslint": "^8.57.0",
44
+ "eslint-config-prettier": "^9.1.0",
45
+ "eslint-plugin-prettier": "^5.1.3",
46
+ "eslint-plugin-react": "^7.34.3",
47
+ "eslint-webpack-plugin": "^4.2.0",
48
+ "husky": "^9.0.11",
49
+ "lint-staged": "^15.2.7",
50
+ "prettier": "^3.3.2",
51
+ "source-map-loader": "^5.0.0",
52
+ "ts-loader": "^9.5.1",
53
+ "typescript": "^5.5.3",
54
+ "webpack": "^5.92.1",
55
+ "webpack-bundle-analyzer": "^4.10.2",
56
+ "webpack-cli": "^5.1.4"
53
57
  }
54
58
  }
package/dist/index.d.mts DELETED
@@ -1,182 +0,0 @@
1
- import React from 'react';
2
- import { UploadFile } from 'antd';
3
-
4
- type styling = {
5
- horizontalGutter?: number;
6
- verticalGutter?: number;
7
- };
8
- type pagenationType = {
9
- page?: number;
10
- pageSize?: number;
11
- };
12
- type SchemaField = {
13
- name?: string;
14
- label?: string;
15
- source?: string;
16
- visible?: boolean;
17
- element?: string;
18
- className?: string;
19
- action?: string;
20
- order?: number;
21
- colCount?: number;
22
- disabled?: boolean;
23
- activeClassName?: string;
24
- listClassName?: string;
25
- listItemClassName?: string;
26
- buttonClassName?: string;
27
- icon?: string;
28
- placement?: string;
29
- firstPlaceholder?: string;
30
- secondPlaceholder?: string;
31
- enabled_dates?: string;
32
- profileImageClassName?: string;
33
- value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | pagenationType;
34
- message?: string;
35
- description?: string;
36
- notificationType?: "error" | "warning" | "success" | "info" | undefined;
37
- showProgress?: boolean;
38
- picker?: "date" | "week" | "month" | "quarter" | "year";
39
- weekrange?: boolean;
40
- img?: string;
41
- primaryText?: string;
42
- secondaryText?: string;
43
- count?: number;
44
- profileImage?: string;
45
- profileSubClassName?: string;
46
- containerClassName?: string;
47
- subContainerClassName?: string;
48
- secondTextClassName?: string;
49
- iconsClassName?: string;
50
- labelClassName?: string;
51
- view?: boolean;
52
- isSVGStylesOverride?: boolean;
53
- rowSelection?: boolean;
54
- length?: number;
55
- loading?: boolean;
56
- fillText1?: string;
57
- fillText2?: string;
58
- pagination?: boolean;
59
- is_detail?: boolean;
60
- dateTime?: string;
61
- minRows?: number;
62
- maxRows?: number;
63
- mode?: string;
64
- checkedChildren?: string;
65
- unCheckedChildren?: string;
66
- items?: {
67
- icon?: React.JSX.Element | string;
68
- label?: string;
69
- active?: boolean;
70
- text?: string;
71
- time?: string;
72
- name?: string;
73
- y?: number;
74
- color?: string;
75
- }[];
76
- options?: {
77
- key?: string | number;
78
- label?: string;
79
- value?: string;
80
- }[];
81
- firstOptions?: {
82
- key?: string | number;
83
- label?: string;
84
- value?: string;
85
- }[];
86
- secondOptions?: {
87
- key?: string | number;
88
- label?: string;
89
- value?: string | string[];
90
- }[];
91
- selectBefore?: {
92
- label?: string;
93
- value?: string;
94
- }[];
95
- selectAfter?: {
96
- label?: string;
97
- value?: string;
98
- }[];
99
- dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
100
- required?: boolean;
101
- prefix?: React.ReactNode;
102
- suffix?: React.ReactNode;
103
- addonBefore?: React.ReactNode;
104
- defaultValue?: string;
105
- status?: "error" | "warning";
106
- style?: React.CSSProperties;
107
- fieldClassName?: string;
108
- elementClassName?: string;
109
- variant?: string;
110
- thead?: {
111
- id?: number;
112
- name?: string;
113
- label?: string;
114
- visible?: boolean;
115
- required?: boolean;
116
- key?: string | number;
117
- render?: (text: string) => React.JSX.Element;
118
- ellipsis?: boolean;
119
- }[];
120
- tbody?: {
121
- id?: number;
122
- name?: string;
123
- label?: string;
124
- element?: string;
125
- type?: string;
126
- variable_data?: {
127
- id: {
128
- id?: number;
129
- };
130
- Route?: {
131
- label: string;
132
- element: string;
133
- type: string;
134
- };
135
- Dose?: {
136
- label: string;
137
- element: string;
138
- type: string;
139
- };
140
- Frequency?: {
141
- label: string;
142
- element: string;
143
- type: string;
144
- };
145
- When?: {
146
- label: string;
147
- element: string;
148
- type: string;
149
- };
150
- Duration?: {
151
- label: string;
152
- element: string;
153
- type: string;
154
- };
155
- Instructions?: {
156
- label: string;
157
- element: string;
158
- type: string;
159
- };
160
- SubRows?: {
161
- label: string;
162
- };
163
- }[];
164
- }[];
165
- payload_keys?: string[];
166
- api_endpoint?: string;
167
- next_id?: string;
168
- fields?: SchemaField[];
169
- };
170
- type Schema = {
171
- className?: string;
172
- schema: SchemaField[];
173
- };
174
- type FormExecutorProps = {
175
- data: Schema;
176
- setData?: (schema: Schema) => void;
177
- selectedRecord?: (field: SchemaField) => void;
178
- };
179
- type ElementExecutorProps = FormExecutorProps & styling;
180
- declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
181
-
182
- export { ElementExecutor };