datastake-daf 0.6.100 → 0.6.102

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 (67) hide show
  1. package/dist/components/index.css +1 -1
  2. package/dist/components/index.js +2722 -226
  3. package/package.json +1 -1
  4. package/rollup.config.js +41 -83
  5. package/src/@daf/core/components/Dashboard/Map/helper.js +434 -439
  6. package/src/@daf/core/components/Dashboard/Map/storyConfig1.js +230 -233
  7. package/src/@daf/core/components/EditForm/components/AjaxSubGroup/index.js +0 -2
  8. package/src/@daf/core/components/PdfForm/components/AjaxSubGroup.js +106 -0
  9. package/src/@daf/core/components/PdfForm/components/ajaxSubGroupHandler.js +12 -0
  10. package/src/@daf/core/components/PdfForm/components/dataLinkGroupHandler.js +24 -15
  11. package/src/@daf/core/components/PdfForm/components/dataLinkHandler.js +51 -17
  12. package/src/@daf/core/components/PdfForm/index.js +208 -22
  13. package/src/@daf/core/components/PdfForm/storyConfig.js +464 -163
  14. package/src/@daf/core/components/PdfForm/style.scss +145 -3
  15. package/src/@daf/core/components/PdfForm/utils/fieldData.js +82 -3
  16. package/src/@daf/core/components/PdfForm/utils/fieldRenderer.js +14 -6
  17. package/src/helpers/Map.js +6 -82
  18. package/src/styles/_index.scss +1 -1
  19. package/src/styles/datastake.scss +4454 -1
  20. package/.vscode/settings.json +0 -13
  21. package/dist/style/datastake/_index.css +0 -5
  22. package/dist/style/datastake/datastake.css +0 -5081
  23. package/dist/style/datastake/fonts/Outfit-Black.ttf +0 -0
  24. package/dist/style/datastake/fonts/Outfit-Bold.ttf +0 -0
  25. package/dist/style/datastake/fonts/Outfit-ExtraBold.ttf +0 -0
  26. package/dist/style/datastake/fonts/Outfit-ExtraLight.ttf +0 -0
  27. package/dist/style/datastake/fonts/Outfit-Light.ttf +0 -0
  28. package/dist/style/datastake/fonts/Outfit-Medium.ttf +0 -0
  29. package/dist/style/datastake/fonts/Outfit-Regular.ttf +0 -0
  30. package/dist/style/datastake/fonts/Outfit-SemiBold.ttf +0 -0
  31. package/dist/style/datastake/fonts/Outfit-Thin.ttf +0 -0
  32. package/dist/style/datastake/fonts/outfit.css +0 -62
  33. package/dist/style/datastake/fonts/sf-ui-display-black-58646a6b80d5a.woff +0 -0
  34. package/dist/style/datastake/fonts/sf-ui-display-bold-58646a511e3d9.woff +0 -0
  35. package/dist/style/datastake/fonts/sf-ui-display-heavy-586470160b9e5.woff +0 -0
  36. package/dist/style/datastake/fonts/sf-ui-display-light-58646b33e0551.woff +0 -0
  37. package/dist/style/datastake/fonts/sf-ui-display-medium-58646be638f96.woff +0 -0
  38. package/dist/style/datastake/fonts/sf-ui-display-semibold-58646eddcae92.woff +0 -0
  39. package/dist/style/datastake/fonts/sf-ui-display-thin-58646e9b26e8b.woff +0 -0
  40. package/dist/style/datastake/fonts/sf-ui-display-ultralight-58646b19bf205.woff +0 -0
  41. package/dist/style/datastake/fonts/sfDisplay.css +0 -59
  42. package/dist/style/datastake/leaflet.css +0 -671
  43. package/dist/style/datastake/leaflet.markercluster.css +0 -60
  44. package/dist/style/style.css +0 -1
  45. package/src/styles/datastake/_index.css +0 -5
  46. package/src/styles/datastake/datastake.css +0 -5081
  47. package/src/styles/datastake/fonts/Outfit-Black.ttf +0 -0
  48. package/src/styles/datastake/fonts/Outfit-Bold.ttf +0 -0
  49. package/src/styles/datastake/fonts/Outfit-ExtraBold.ttf +0 -0
  50. package/src/styles/datastake/fonts/Outfit-ExtraLight.ttf +0 -0
  51. package/src/styles/datastake/fonts/Outfit-Light.ttf +0 -0
  52. package/src/styles/datastake/fonts/Outfit-Medium.ttf +0 -0
  53. package/src/styles/datastake/fonts/Outfit-Regular.ttf +0 -0
  54. package/src/styles/datastake/fonts/Outfit-SemiBold.ttf +0 -0
  55. package/src/styles/datastake/fonts/Outfit-Thin.ttf +0 -0
  56. package/src/styles/datastake/fonts/outfit.css +0 -62
  57. package/src/styles/datastake/fonts/sf-ui-display-black-58646a6b80d5a.woff +0 -0
  58. package/src/styles/datastake/fonts/sf-ui-display-bold-58646a511e3d9.woff +0 -0
  59. package/src/styles/datastake/fonts/sf-ui-display-heavy-586470160b9e5.woff +0 -0
  60. package/src/styles/datastake/fonts/sf-ui-display-light-58646b33e0551.woff +0 -0
  61. package/src/styles/datastake/fonts/sf-ui-display-medium-58646be638f96.woff +0 -0
  62. package/src/styles/datastake/fonts/sf-ui-display-semibold-58646eddcae92.woff +0 -0
  63. package/src/styles/datastake/fonts/sf-ui-display-thin-58646e9b26e8b.woff +0 -0
  64. package/src/styles/datastake/fonts/sf-ui-display-ultralight-58646b19bf205.woff +0 -0
  65. package/src/styles/datastake/fonts/sfDisplay.css +0 -59
  66. package/src/styles/datastake/leaflet.css +0 -671
  67. package/src/styles/datastake/leaflet.markercluster.css +0 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.100",
3
+ "version": "0.6.102",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
package/rollup.config.js CHANGED
@@ -1,145 +1,103 @@
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";
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
+
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",
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",
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'
43
19
  ];
44
20
 
45
- // Four builds, components, utils, hooks, context
21
+ // Four builds, components, utils, hooks and context
46
22
  export default [
47
23
  {
48
- input: "src/index.js",
24
+ input: 'src/index.js',
49
25
  output: [
50
26
  {
51
- file: "dist/components/index.js",
52
- format: "cjs",
27
+ file: 'dist/components/index.js',
28
+ format: 'cjs',
53
29
  },
54
30
  ],
55
31
  external,
56
32
  plugins: [
57
33
  nodePolyfills(),
58
34
  resolve({ browser: true }),
59
- babel({ exclude: "node_modules/**", babelrc: true }),
35
+ babel({ exclude: 'node_modules/**', babelrc: true }),
60
36
  peerDep(),
61
37
  commonjs({
62
38
  include: /node_modules/,
63
- requireReturnsDefault: "auto",
39
+ requireReturnsDefault: 'auto',
64
40
  }),
65
- postcss({
66
- extract: true,
67
- minimize: true,
68
- modules: true,
41
+ postcss({
42
+ extract: true,
43
+ minimize: true,
44
+ modules: true,
69
45
  }),
70
46
  ],
71
47
  },
72
48
  {
73
- input: "src/utils.js",
49
+ input: 'src/utils.js',
74
50
  output: [
75
51
  {
76
- file: "dist/utils/index.js",
77
- format: "cjs",
52
+ file: 'dist/utils/index.js',
53
+ format: 'cjs',
78
54
  },
79
55
  ],
80
56
  external,
81
57
  plugins: [
82
58
  nodePolyfills(),
83
59
  resolve({ browser: true }),
84
- babel({ exclude: "node_modules/**", babelrc: true }),
60
+ babel({ exclude: 'node_modules/**', babelrc: true }),
85
61
  peerDep(),
86
62
  commonjs({
87
63
  include: /node_modules/,
88
- requireReturnsDefault: "auto",
64
+ requireReturnsDefault: 'auto',
89
65
  }),
90
66
  ],
91
67
  },
92
68
  {
93
- input: "src/hooks.js",
69
+ input: 'src/hooks.js',
94
70
  output: [
95
71
  {
96
- file: "dist/hooks/index.js",
97
- format: "cjs",
72
+ file: 'dist/hooks/index.js',
73
+ format: 'cjs',
98
74
  },
99
75
  ],
100
76
  external,
101
77
  plugins: [
102
78
  nodePolyfills(),
103
79
  resolve({ browser: true }),
104
- babel({ exclude: "node_modules/**", babelrc: true }),
80
+ babel({ exclude: 'node_modules/**', babelrc: true }),
105
81
  peerDep(),
106
82
  commonjs({
107
83
  include: /node_modules/,
108
- requireReturnsDefault: "auto",
84
+ requireReturnsDefault: 'auto',
109
85
  }),
110
86
  ],
111
87
  },
112
88
  {
113
- input: "src/context.js",
89
+ input: 'src/context.js',
114
90
  output: [
115
91
  {
116
- file: "dist/context/index.js",
117
- format: "cjs",
92
+ file: 'dist/context/index.js',
93
+ format: 'cjs',
118
94
  },
119
95
  ],
120
96
  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
- ],
130
97
  plugins: [
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
- }),
98
+ resolve(),
99
+ babel({ exclude: 'node_modules/**' }),
100
+ peerDep(),
143
101
  ],
144
102
  },
145
103
  ];