@apexcura/core 0.0.17-Beta52 → 0.0.17-Beta521

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