datastake-daf 0.6.99 → 0.6.100

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 (56) hide show
  1. package/.vscode/settings.json +13 -0
  2. package/dist/components/index.js +114 -54
  3. package/dist/style/datastake/_index.css +5 -0
  4. package/dist/style/datastake/datastake.css +5081 -0
  5. package/dist/style/datastake/fonts/Outfit-Black.ttf +0 -0
  6. package/dist/style/datastake/fonts/Outfit-Bold.ttf +0 -0
  7. package/dist/style/datastake/fonts/Outfit-ExtraBold.ttf +0 -0
  8. package/dist/style/datastake/fonts/Outfit-ExtraLight.ttf +0 -0
  9. package/dist/style/datastake/fonts/Outfit-Light.ttf +0 -0
  10. package/dist/style/datastake/fonts/Outfit-Medium.ttf +0 -0
  11. package/dist/style/datastake/fonts/Outfit-Regular.ttf +0 -0
  12. package/dist/style/datastake/fonts/Outfit-SemiBold.ttf +0 -0
  13. package/dist/style/datastake/fonts/Outfit-Thin.ttf +0 -0
  14. package/dist/style/datastake/fonts/outfit.css +62 -0
  15. package/dist/style/datastake/fonts/sf-ui-display-black-58646a6b80d5a.woff +0 -0
  16. package/dist/style/datastake/fonts/sf-ui-display-bold-58646a511e3d9.woff +0 -0
  17. package/dist/style/datastake/fonts/sf-ui-display-heavy-586470160b9e5.woff +0 -0
  18. package/dist/style/datastake/fonts/sf-ui-display-light-58646b33e0551.woff +0 -0
  19. package/dist/style/datastake/fonts/sf-ui-display-medium-58646be638f96.woff +0 -0
  20. package/dist/style/datastake/fonts/sf-ui-display-semibold-58646eddcae92.woff +0 -0
  21. package/dist/style/datastake/fonts/sf-ui-display-thin-58646e9b26e8b.woff +0 -0
  22. package/dist/style/datastake/fonts/sf-ui-display-ultralight-58646b19bf205.woff +0 -0
  23. package/dist/style/datastake/fonts/sfDisplay.css +59 -0
  24. package/dist/style/datastake/leaflet.css +671 -0
  25. package/dist/style/datastake/leaflet.markercluster.css +60 -0
  26. package/dist/style/style.css +1 -0
  27. package/package.json +1 -1
  28. package/rollup.config.js +83 -41
  29. package/src/@daf/core/components/Dashboard/Map/helper.js +439 -434
  30. package/src/@daf/core/components/Dashboard/Map/storyConfig1.js +233 -230
  31. package/src/helpers/Map.js +82 -6
  32. package/src/styles/_index.scss +1 -1
  33. package/src/styles/datastake/_index.css +5 -0
  34. package/src/styles/datastake/datastake.css +5081 -0
  35. package/src/styles/datastake/fonts/Outfit-Black.ttf +0 -0
  36. package/src/styles/datastake/fonts/Outfit-Bold.ttf +0 -0
  37. package/src/styles/datastake/fonts/Outfit-ExtraBold.ttf +0 -0
  38. package/src/styles/datastake/fonts/Outfit-ExtraLight.ttf +0 -0
  39. package/src/styles/datastake/fonts/Outfit-Light.ttf +0 -0
  40. package/src/styles/datastake/fonts/Outfit-Medium.ttf +0 -0
  41. package/src/styles/datastake/fonts/Outfit-Regular.ttf +0 -0
  42. package/src/styles/datastake/fonts/Outfit-SemiBold.ttf +0 -0
  43. package/src/styles/datastake/fonts/Outfit-Thin.ttf +0 -0
  44. package/src/styles/datastake/fonts/outfit.css +62 -0
  45. package/src/styles/datastake/fonts/sf-ui-display-black-58646a6b80d5a.woff +0 -0
  46. package/src/styles/datastake/fonts/sf-ui-display-bold-58646a511e3d9.woff +0 -0
  47. package/src/styles/datastake/fonts/sf-ui-display-heavy-586470160b9e5.woff +0 -0
  48. package/src/styles/datastake/fonts/sf-ui-display-light-58646b33e0551.woff +0 -0
  49. package/src/styles/datastake/fonts/sf-ui-display-medium-58646be638f96.woff +0 -0
  50. package/src/styles/datastake/fonts/sf-ui-display-semibold-58646eddcae92.woff +0 -0
  51. package/src/styles/datastake/fonts/sf-ui-display-thin-58646e9b26e8b.woff +0 -0
  52. package/src/styles/datastake/fonts/sf-ui-display-ultralight-58646b19bf205.woff +0 -0
  53. package/src/styles/datastake/fonts/sfDisplay.css +59 -0
  54. package/src/styles/datastake/leaflet.css +671 -0
  55. package/src/styles/datastake/leaflet.markercluster.css +60 -0
  56. package/src/styles/datastake.scss +1 -4454
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.99",
3
+ "version": "0.6.100",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
package/rollup.config.js CHANGED
@@ -1,103 +1,145 @@
1
- import babel from 'rollup-plugin-babel';
2
- import commonjs from 'rollup-plugin-commonjs';
3
- import resolve from 'rollup-plugin-node-resolve';
4
- import peerDep from 'rollup-plugin-peer-deps-external';
5
- import nodePolyfills from 'rollup-plugin-node-polyfills';
6
- import postcss from 'rollup-plugin-postcss'; // Add this plugin
7
-
1
+ import babel from "rollup-plugin-babel";
2
+ import commonjs from "rollup-plugin-commonjs";
3
+ import resolve from "rollup-plugin-node-resolve";
4
+ import peerDep from "rollup-plugin-peer-deps-external";
5
+ import nodePolyfills from "rollup-plugin-node-polyfills";
6
+ import postcss from "rollup-plugin-postcss"; // Add this plugin
7
+ import copy from "rollup-plugin-copy";
8
8
 
9
9
  // When you add a new package and you have problems publishing, you can add it here and try publishing again
10
10
  const external = [
11
- 'react', 'react-dom', 'react-dom/client', 'antd', 'prop-types', 'dayjs',
12
- 'dayjs', 'moment', 'leaflet', 'react-is', 'countries-list',
13
- 'react/jsx-runtime', 'lodash', 'lodash.camelcase',
14
- '@antv/g2', 'dot-object', 'react-collapsed', 'leaflet-geosearch',
15
- 'react-html-parser', 'styled-component', '@ant-design/icons',
16
- 'deepmerge', 'leaflet.heat', 'leaflet.markercluster', 'react-flow-renderer',
17
- 'country-city-location', '@antv/g2plot', '@xyflow/react', 'leaflet-editable',
18
- '@xyflow/react', 'zustand/shallow', '@elfalem/leaflet-curve'
11
+ "react",
12
+ "react-dom",
13
+ "react-dom/client",
14
+ "antd",
15
+ "prop-types",
16
+ "dayjs",
17
+ "dayjs",
18
+ "moment",
19
+ "leaflet",
20
+ "react-is",
21
+ "countries-list",
22
+ "react/jsx-runtime",
23
+ "lodash",
24
+ "lodash.camelcase",
25
+ "@antv/g2",
26
+ "dot-object",
27
+ "react-collapsed",
28
+ "leaflet-geosearch",
29
+ "react-html-parser",
30
+ "styled-component",
31
+ "@ant-design/icons",
32
+ "deepmerge",
33
+ "leaflet.heat",
34
+ "leaflet.markercluster",
35
+ "react-flow-renderer",
36
+ "country-city-location",
37
+ "@antv/g2plot",
38
+ "@xyflow/react",
39
+ "leaflet-editable",
40
+ "@xyflow/react",
41
+ "zustand/shallow",
42
+ "@elfalem/leaflet-curve",
19
43
  ];
20
44
 
21
- // Four builds, components, utils, hooks and context
45
+ // Four builds, components, utils, hooks, context
22
46
  export default [
23
47
  {
24
- input: 'src/index.js',
48
+ input: "src/index.js",
25
49
  output: [
26
50
  {
27
- file: 'dist/components/index.js',
28
- format: 'cjs',
51
+ file: "dist/components/index.js",
52
+ format: "cjs",
29
53
  },
30
54
  ],
31
55
  external,
32
56
  plugins: [
33
57
  nodePolyfills(),
34
58
  resolve({ browser: true }),
35
- babel({ exclude: 'node_modules/**', babelrc: true }),
59
+ babel({ exclude: "node_modules/**", babelrc: true }),
36
60
  peerDep(),
37
61
  commonjs({
38
62
  include: /node_modules/,
39
- requireReturnsDefault: 'auto',
63
+ requireReturnsDefault: "auto",
40
64
  }),
41
- postcss({
42
- extract: true,
43
- minimize: true,
44
- modules: true,
65
+ postcss({
66
+ extract: true,
67
+ minimize: true,
68
+ modules: true,
45
69
  }),
46
70
  ],
47
71
  },
48
72
  {
49
- input: 'src/utils.js',
73
+ input: "src/utils.js",
50
74
  output: [
51
75
  {
52
- file: 'dist/utils/index.js',
53
- format: 'cjs',
76
+ file: "dist/utils/index.js",
77
+ format: "cjs",
54
78
  },
55
79
  ],
56
80
  external,
57
81
  plugins: [
58
82
  nodePolyfills(),
59
83
  resolve({ browser: true }),
60
- babel({ exclude: 'node_modules/**', babelrc: true }),
84
+ babel({ exclude: "node_modules/**", babelrc: true }),
61
85
  peerDep(),
62
86
  commonjs({
63
87
  include: /node_modules/,
64
- requireReturnsDefault: 'auto',
88
+ requireReturnsDefault: "auto",
65
89
  }),
66
90
  ],
67
91
  },
68
92
  {
69
- input: 'src/hooks.js',
93
+ input: "src/hooks.js",
70
94
  output: [
71
95
  {
72
- file: 'dist/hooks/index.js',
73
- format: 'cjs',
96
+ file: "dist/hooks/index.js",
97
+ format: "cjs",
74
98
  },
75
99
  ],
76
100
  external,
77
101
  plugins: [
78
102
  nodePolyfills(),
79
103
  resolve({ browser: true }),
80
- babel({ exclude: 'node_modules/**', babelrc: true }),
104
+ babel({ exclude: "node_modules/**", babelrc: true }),
81
105
  peerDep(),
82
106
  commonjs({
83
107
  include: /node_modules/,
84
- requireReturnsDefault: 'auto',
108
+ requireReturnsDefault: "auto",
85
109
  }),
86
110
  ],
87
111
  },
88
112
  {
89
- input: 'src/context.js',
113
+ input: "src/context.js",
90
114
  output: [
91
115
  {
92
- file: 'dist/context/index.js',
93
- format: 'cjs',
116
+ file: "dist/context/index.js",
117
+ format: "cjs",
94
118
  },
95
119
  ],
96
120
  external,
121
+ plugins: [resolve(), babel({ exclude: "node_modules/**" }), peerDep()],
122
+ },
123
+ {
124
+ input: "src/styles/datastake.scss",
125
+ output: [
126
+ {
127
+ file: "dist/style/style.css",
128
+ },
129
+ ],
97
130
  plugins: [
98
- resolve(),
99
- babel({ exclude: 'node_modules/**' }),
100
- peerDep(),
131
+ postcss({
132
+ extract: "style.css",
133
+ minimize: true,
134
+ sourceMap: false,
135
+ extensions: [".scss"],
136
+ use: [["sass", { javascriptEnabled: true }]],
137
+ }),
138
+ copy({
139
+ targets: [
140
+ { src: "src/styles/datastake/*", dest: "dist/style/datastake" },
141
+ ],
142
+ }),
101
143
  ],
102
144
  },
103
145
  ];