@axdspub/axiom-charts 0.0.3

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 (78) hide show
  1. package/.dockerignore +4 -0
  2. package/.eslintrc.json +24 -0
  3. package/.gitlab-ci.yml +140 -0
  4. package/.yalc/@axdspub/axiom-ui-data-services/.dockerignore +4 -0
  5. package/.yalc/@axdspub/axiom-ui-data-services/.eslintrc.json +28 -0
  6. package/.yalc/@axdspub/axiom-ui-data-services/.gitlab-ci.yml +140 -0
  7. package/.yalc/@axdspub/axiom-ui-data-services/Dockerfile.storybook +33 -0
  8. package/.yalc/@axdspub/axiom-ui-data-services/craco.config.cjs +36 -0
  9. package/.yalc/@axdspub/axiom-ui-data-services/docker/nginx/conf.d/default.conf +46 -0
  10. package/.yalc/@axdspub/axiom-ui-data-services/docker-compose.yml +18 -0
  11. package/.yalc/@axdspub/axiom-ui-data-services/library/axiom-ui-data-services.d.ts +313 -0
  12. package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js +18498 -0
  13. package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js.map +1 -0
  14. package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js +18493 -0
  15. package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js.map +1 -0
  16. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts +4 -0
  17. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts.map +1 -0
  18. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts +8 -0
  19. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts.map +1 -0
  20. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts +34 -0
  21. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts.map +1 -0
  22. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts +23 -0
  23. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts.map +1 -0
  24. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts +27 -0
  25. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts.map +1 -0
  26. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts +19 -0
  27. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts.map +1 -0
  28. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts +245 -0
  29. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts.map +1 -0
  30. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts +12 -0
  31. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts.map +1 -0
  32. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts +9 -0
  33. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts.map +1 -0
  34. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts +2 -0
  35. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts.map +1 -0
  36. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts +6 -0
  37. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts.map +1 -0
  38. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts +1 -0
  39. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts.map +1 -0
  40. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts +13 -0
  41. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts.map +1 -0
  42. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts +4 -0
  43. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts.map +1 -0
  44. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts +11 -0
  45. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts.map +1 -0
  46. package/.yalc/@axdspub/axiom-ui-data-services/library/index.js +18488 -0
  47. package/.yalc/@axdspub/axiom-ui-data-services/library/index.js.map +1 -0
  48. package/.yalc/@axdspub/axiom-ui-data-services/package.json +72 -0
  49. package/.yalc/@axdspub/axiom-ui-data-services/rollup.config.mjs +54 -0
  50. package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.json +45 -0
  51. package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.paths.json +11 -0
  52. package/.yalc/@axdspub/axiom-ui-data-services/yalc.sig +1 -0
  53. package/Dockerfile.storybook +33 -0
  54. package/README.md +46 -0
  55. package/craco.config.js +36 -0
  56. package/docker/nginx/conf.d/default.conf +46 -0
  57. package/docker-compose.yml +18 -0
  58. package/library/Libraries/axiom/assets/browser-ff7df1e3.css +19 -0
  59. package/library/Libraries/axiom/assets/cjs-ff7df1e3.css +19 -0
  60. package/library/Libraries/axiom/assets/index-ff7df1e3.css +19 -0
  61. package/library/Libraries/axiom/browser.js +41130 -0
  62. package/library/Libraries/axiom/browser.js.map +1 -0
  63. package/library/Libraries/axiom/cjs.js +41129 -0
  64. package/library/Libraries/axiom/cjs.js.map +1 -0
  65. package/library/Libraries/axiom/index.js +41127 -0
  66. package/library/Libraries/axiom/index.js.map +1 -0
  67. package/library/axiom-charts.d.ts +195 -0
  68. package/library/browser.js +36339 -0
  69. package/library/browser.js.map +1 -0
  70. package/library/cjs.js +36337 -0
  71. package/library/cjs.js.map +1 -0
  72. package/library/index.js +36334 -0
  73. package/library/index.js.map +1 -0
  74. package/package.json +112 -0
  75. package/rollup.config.mjs +141 -0
  76. package/tsconfig.json +29 -0
  77. package/tsconfig.paths.json +11 -0
  78. package/yalc.lock +10 -0
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@axdspub/axiom-ui-data-services",
3
+ "version": "0.0.3",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "./library/index.js",
7
+ "typings": "./library/axiom-ui-data-services.d.ts",
8
+ "dependencies": {
9
+ "@observablehq/plot": "^0.6.6",
10
+ "@rollup/plugin-alias": "^5.0.0",
11
+ "@testing-library/jest-dom": "^5.16.5",
12
+ "@testing-library/react": "^13.4.0",
13
+ "@testing-library/user-event": "^13.5.0",
14
+ "@types/jest": "^27.5.2",
15
+ "@types/node": "^16.18.38",
16
+ "@types/react": "^18.2.15",
17
+ "@types/react-dom": "^18.2.7",
18
+ "d3": "^7.8.4",
19
+ "d3-dsv": "^3.0.1",
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0",
22
+ "react-scripts": "5.0.1",
23
+ "typescript": "^4.9.5",
24
+ "vanilla-jsoneditor": "^0.17.8",
25
+ "web-vitals": "^2.1.4"
26
+ },
27
+ "scripts": {
28
+ "start": "set PORT=3063 && craco start ",
29
+ "build": "craco build",
30
+ "prepublishOnly": "npm run clean && rollup -c",
31
+ "clean": "rimraf library",
32
+ "test": "craco test",
33
+ "eject": "react-scripts eject",
34
+ "storybook": "storybook dev -p 6010",
35
+ "build-storybook": "storybook build",
36
+ "rollup": "rollup -c",
37
+ "build:ts:definitions": "tsc src/Types.ts --declaration"
38
+ },
39
+ "eslintConfig": {
40
+ "extends": [
41
+ "react-app",
42
+ "react-app/jest"
43
+ ],
44
+ "overrides": [
45
+ {
46
+ "files": [
47
+ "**/*.stories.*"
48
+ ],
49
+ "rules": {
50
+ "import/no-anonymous-default-export": "off"
51
+ }
52
+ }
53
+ ]
54
+ },
55
+ "browserslist": {
56
+ "production": [
57
+ ">0.2%",
58
+ "not dead",
59
+ "not op_mini all",
60
+ "not safari < 10",
61
+ "not chrome < 51",
62
+ "not android < 5",
63
+ "not ie < 12"
64
+ ],
65
+ "development": [
66
+ "last 1 chrome version",
67
+ "last 1 firefox version",
68
+ "last 1 safari version"
69
+ ]
70
+ },
71
+ "yalcSig": "742074c38d14ee45bcfd3f7c2de32eea"
72
+ }
@@ -0,0 +1,54 @@
1
+ import resolve from '@rollup/plugin-node-resolve'
2
+ import commonjs from '@rollup/plugin-commonjs'
3
+ import typescript from '@rollup/plugin-typescript'
4
+ import dts from 'rollup-plugin-dts'
5
+ import alias from '@rollup/plugin-alias'
6
+ // import packageJson from './package.json'
7
+
8
+ const config = [
9
+ {
10
+ input: 'src/library.ts',
11
+ output: [
12
+ {
13
+ file: 'library/cjs.js',
14
+ format: 'cjs',
15
+ sourcemap: true
16
+ },
17
+ {
18
+ file: 'library/index.js',
19
+ format: 'esm',
20
+ sourcemap: true
21
+ },
22
+ {
23
+ file: 'library/browser.js',
24
+ format: 'iife',
25
+ name: 'AxiomUIDataServices',
26
+ sourcemap: true
27
+ }
28
+ ],
29
+ plugins: [
30
+ resolve(),
31
+ commonjs(),
32
+ typescript({ tsconfig: './tsconfig.json' }),
33
+ alias({
34
+ entries: {
35
+ '@/*': './src'
36
+ }
37
+ })
38
+ ]
39
+ },
40
+ {
41
+ input: './library/dist/esm/types/library.d.ts',
42
+ output: [{ file: 'library/axiom-ui-data-services.d.ts', format: 'esm' }],
43
+ plugins: [
44
+ dts(),
45
+ alias({
46
+ entries: {
47
+ '@/*': './library/dist/esm/types/'
48
+ }
49
+ })
50
+ ]
51
+ }
52
+ ]
53
+
54
+ export default config
@@ -0,0 +1,45 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "jsx": "react-jsx",
21
+
22
+
23
+
24
+ "declaration": true,
25
+ "declarationDir": "dist/esm/types",
26
+ "sourceMap": true,
27
+ "outDir": "dist",
28
+ "emitDeclarationOnly": true,
29
+ "declarationMap": true,
30
+
31
+
32
+ "baseUrl": ".",
33
+ "paths": {
34
+ "@/*": [
35
+ "./src/*"
36
+ ],
37
+ "*": [ "./src/@custom_types/*"]
38
+ }
39
+ },
40
+ "include": [
41
+ "src"
42
+ ],
43
+ "allowSyntheticDefaultImports": true,
44
+ "extends": "./tsconfig.paths.json"
45
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "@/*": [
6
+ "./src/*"
7
+ ],
8
+ "*": [ "./src/@custom_types/*"]
9
+ }
10
+ }
11
+ }
@@ -0,0 +1 @@
1
+ 742074c38d14ee45bcfd3f7c2de32eea
@@ -0,0 +1,33 @@
1
+ # Install dependencies only when needed
2
+ FROM node:18-alpine AS deps
3
+ WORKDIR /app
4
+ COPY package.json package-lock.json ./
5
+ # TODO: Maybe revisit this, as we probably shouldn't be relying on
6
+ # legacy-peer-deps
7
+ COPY .npmrc ./
8
+ RUN npm ci
9
+
10
+ # Rebuild the source code only when needed
11
+ FROM node:18-alpine AS builder
12
+
13
+ # RUN apk --no-cache add curl
14
+ WORKDIR /app
15
+ COPY package.json package-lock.json ./
16
+ COPY .storybook .storybook
17
+ COPY public public
18
+ COPY src src
19
+ COPY .eslintrc.json craco.config.js tsconfig.json tsconfig.paths.json ./
20
+ COPY --from=deps /app/node_modules ./node_modules
21
+ RUN npm run build-storybook
22
+
23
+ # Production image, copy all the files and run craco
24
+ FROM nginx:1.25.1 AS nginx
25
+ WORKDIR /app
26
+
27
+ ENV NODE_ENV production
28
+
29
+ COPY --from=builder /app/storybook-static /usr/share/nginx/html
30
+
31
+ COPY ./docker/nginx/conf.d/* /etc/nginx/conf.d/
32
+
33
+ EXPOSE 80
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
+
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
+
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
@@ -0,0 +1,36 @@
1
+ const path = require('path')
2
+ // someday, clean up the the FOUR! repeated declarations of aliases (others are is in tsconfig.paths.json => tsconfig.json and .storybook/main.ts)
3
+ // https://stackoverflow.com/a/71892901
4
+ console.log(path.resolve(__dirname, './src/'))
5
+
6
+ module.exports = {
7
+ webpack: {
8
+ eslint: {
9
+ enable: false
10
+ },
11
+ typescript: {
12
+ enableTypeChecking: true
13
+ },
14
+ alias: {
15
+ '@': path.resolve(__dirname, './src/')
16
+ },
17
+ configure: {
18
+ ignoreWarnings: [/Failed to parse source map/],
19
+ resolve: {
20
+ fallback: {
21
+ https: false,
22
+ http: false,
23
+ path: false,
24
+ zlib: false
25
+ }
26
+ }
27
+ }
28
+ },
29
+ jest: {
30
+ configure: {
31
+ verbose: true,
32
+ moduleNameMapper: {}
33
+ }
34
+ },
35
+ plugins: []
36
+ }
@@ -0,0 +1,46 @@
1
+ server {
2
+ listen 80;
3
+ listen [::]:80;
4
+ server_name localhost;
5
+
6
+ #access_log /var/log/nginx/host.access.log main;
7
+
8
+ location / {
9
+ root /usr/share/nginx/html;
10
+ index index.html index.htm;
11
+
12
+ try_files $uri /index.html;
13
+ }
14
+
15
+ #error_page 404 /404.html;
16
+
17
+ # redirect server error pages to the static page /50x.html
18
+ #
19
+ error_page 500 502 503 504 /50x.html;
20
+ location = /50x.html {
21
+ root /usr/share/nginx/html;
22
+ }
23
+
24
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
25
+ #
26
+ #location ~ \.php$ {
27
+ # proxy_pass http://127.0.0.1;
28
+ #}
29
+
30
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
31
+ #
32
+ #location ~ \.php$ {
33
+ # root html;
34
+ # fastcgi_pass 127.0.0.1:9000;
35
+ # fastcgi_index index.php;
36
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
37
+ # include fastcgi_params;
38
+ #}
39
+
40
+ # deny access to .htaccess files, if Apache's document root
41
+ # concurs with nginx's one
42
+ #
43
+ #location ~ /\.ht {
44
+ # deny all;
45
+ #}
46
+ }
@@ -0,0 +1,18 @@
1
+ services:
2
+ app:
3
+ image: axiom-charts:latest
4
+ build:
5
+ context: .
6
+ dockerfile: Dockerfile
7
+ ports:
8
+ - "8787:80"
9
+ # profiles:
10
+ # - app
11
+
12
+ storybook:
13
+ image: axiom-charts-storybook:latest
14
+ build:
15
+ context: .
16
+ dockerfile: Dockerfile.storybook
17
+ ports:
18
+ - "8888:80"
@@ -0,0 +1,19 @@
1
+ .chart .axis .tick text{
2
+ fill:#333;
3
+ font-size:12px;
4
+ }
5
+
6
+ .chart .y-axis .radial-axis .tick text{
7
+ stroke:#FFF;
8
+ stroke-width:5px;
9
+ paint-order: stroke;
10
+ font-size:14px;
11
+ fill:#000;
12
+
13
+ }
14
+
15
+ .chart .axis .tick line,
16
+ .chart .axis .tick circle{
17
+ stroke:#CCC;
18
+ stroke-width:.5px;
19
+ }
@@ -0,0 +1,19 @@
1
+ .chart .axis .tick text{
2
+ fill:#333;
3
+ font-size:12px;
4
+ }
5
+
6
+ .chart .y-axis .radial-axis .tick text{
7
+ stroke:#FFF;
8
+ stroke-width:5px;
9
+ paint-order: stroke;
10
+ font-size:14px;
11
+ fill:#000;
12
+
13
+ }
14
+
15
+ .chart .axis .tick line,
16
+ .chart .axis .tick circle{
17
+ stroke:#CCC;
18
+ stroke-width:.5px;
19
+ }
@@ -0,0 +1,19 @@
1
+ .chart .axis .tick text{
2
+ fill:#333;
3
+ font-size:12px;
4
+ }
5
+
6
+ .chart .y-axis .radial-axis .tick text{
7
+ stroke:#FFF;
8
+ stroke-width:5px;
9
+ paint-order: stroke;
10
+ font-size:14px;
11
+ fill:#000;
12
+
13
+ }
14
+
15
+ .chart .axis .tick line,
16
+ .chart .axis .tick circle{
17
+ stroke:#CCC;
18
+ stroke-width:.5px;
19
+ }