@pisell/charts-materials 1.0.13 → 1.0.15

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.
@@ -5,4 +5,3 @@ export interface AreaProps extends React.ComponentProps<AntAreaProps> {
5
5
  }
6
6
  declare const Area: (props: AreaProps) => JSX.Element;
7
7
  export default Area;
8
- //# sourceMappingURL=index.d.ts.map
package/es/bar/index.d.ts CHANGED
@@ -5,4 +5,3 @@ export interface BarProps extends React.ComponentProps<AntBarProps> {
5
5
  }
6
6
  declare const Bar: (props: BarProps) => JSX.Element;
7
7
  export default Bar;
8
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ export interface ColumnProps extends React.ComponentProps<AntColumnProps> {
5
5
  }
6
6
  declare const Column: (props: ColumnProps) => JSX.Element;
7
7
  export default Column;
8
- //# sourceMappingURL=index.d.ts.map
package/es/index.d.ts CHANGED
@@ -4,4 +4,3 @@ import Bar from "./bar";
4
4
  import Area from "./area";
5
5
  import Column from "./column";
6
6
  export { Line, Pie, Bar, Area, Column };
7
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Line as AntLine } from "@ant-design/plots";
3
+ declare type AntLineProps = typeof AntLine;
4
+ export interface LineProps extends React.ComponentProps<AntLineProps> {
5
+ others: any;
6
+ }
7
+ declare const Line: (props: LineProps) => JSX.Element;
8
+ export default Line;
package/es/pie/index.d.ts CHANGED
@@ -5,4 +5,3 @@ export interface PieProps extends React.ComponentProps<AntPieProps> {
5
5
  }
6
6
  declare const Pie: (props: PieProps) => JSX.Element;
7
7
  export default Pie;
8
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ export interface AreaProps extends React.ComponentProps<AntAreaProps> {
5
5
  }
6
6
  declare const Area: (props: AreaProps) => JSX.Element;
7
7
  export default Area;
8
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ export interface BarProps extends React.ComponentProps<AntBarProps> {
5
5
  }
6
6
  declare const Bar: (props: BarProps) => JSX.Element;
7
7
  export default Bar;
8
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ export interface ColumnProps extends React.ComponentProps<AntColumnProps> {
5
5
  }
6
6
  declare const Column: (props: ColumnProps) => JSX.Element;
7
7
  export default Column;
8
- //# sourceMappingURL=index.d.ts.map
package/lib/index.d.ts CHANGED
@@ -4,4 +4,3 @@ import Bar from "./bar";
4
4
  import Area from "./area";
5
5
  import Column from "./column";
6
6
  export { Line, Pie, Bar, Area, Column };
7
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Line as AntLine } from "@ant-design/plots";
3
+ declare type AntLineProps = typeof AntLine;
4
+ export interface LineProps extends React.ComponentProps<AntLineProps> {
5
+ others: any;
6
+ }
7
+ declare const Line: (props: LineProps) => JSX.Element;
8
+ export default Line;
@@ -5,4 +5,3 @@ export interface PieProps extends React.ComponentProps<AntPieProps> {
5
5
  }
6
6
  declare const Pie: (props: PieProps) => JSX.Element;
7
7
  export default Pie;
8
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/charts-materials",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -51,8 +51,8 @@
51
51
  "react-resizable": "^3.0.5",
52
52
  "styled-components": "^6.0.0-rc.3",
53
53
  "ahooks": "^3.7.6",
54
- "@pisell/icon": "0.0.8",
55
- "@pisell/utils": "1.0.13"
54
+ "@pisell/utils": "1.0.15",
55
+ "@pisell/icon": "0.0.8"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "^18.0.0",
@@ -1,85 +0,0 @@
1
- {
2
- "packages": [
3
- {
4
- "package": "dayjs",
5
- "version": "1.11.7",
6
- "urls": "https://g.alicdn.com/code/lib/dayjs/1.11.7/dayjs.min.js",
7
- "library": "dayjs"
8
- },
9
- {
10
- "package": "iconfont-icons",
11
- "urls": "//at.alicdn.com/t/font_2369445_ukrtsovd92r.js"
12
- },
13
- {
14
- "package": "@ant-design/icons",
15
- "version": "4.7.0",
16
- "urls": [
17
- "//g.alicdn.com/code/npm/@ali/ant-design-icons-cdn/4.5.0/index.umd.min.js"
18
- ],
19
- "library": "icons"
20
- },
21
- {
22
- "package": "@pisell/charts-materials",
23
- "version": "1.0.5",
24
- "library": "ChartsMaterials",
25
- "urls": [
26
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.js",
27
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.css"
28
- ],
29
- "editUrls": [
30
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/view.js",
31
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/view.css"
32
- ],
33
- "advancedUrls": {
34
- "default": [
35
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.js",
36
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.css"
37
- ]
38
- },
39
- "advancedEditUrls": {}
40
- }
41
- ],
42
- "components": [
43
- {
44
- "exportName": "PisellChartsMaterialsMeta",
45
- "npm": {
46
- "package": "@pisell/charts-materials",
47
- "version": "1.0.5"
48
- },
49
- "url": "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js",
50
- "urls": {
51
- "default": "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js"
52
- },
53
- "advancedUrls": {
54
- "default": [
55
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js"
56
- ]
57
- }
58
- }
59
- ],
60
- "sort": {
61
- "groupList": [
62
- "精选组件",
63
- "原子组件"
64
- ],
65
- "categoryList": [
66
- "基础元素",
67
- "布局容器类",
68
- "表格类",
69
- "表单详情类",
70
- "帮助类",
71
- "对话框类",
72
- "业务类",
73
- "通用",
74
- "引导",
75
- "信息输入",
76
- "信息展示",
77
- "信息反馈"
78
- ]
79
- },
80
- "groupList": [
81
- "精选组件",
82
- "原子组件"
83
- ],
84
- "ignoreComponents": {}
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "packages": [
3
- {
4
- "package": "dayjs",
5
- "version": "1.11.7",
6
- "urls": "https://g.alicdn.com/code/lib/dayjs/1.11.7/dayjs.min.js",
7
- "library": "dayjs"
8
- },
9
- {
10
- "package": "iconfont-icons",
11
- "urls": "//at.alicdn.com/t/font_2369445_ukrtsovd92r.js"
12
- },
13
- {
14
- "package": "@ant-design/icons",
15
- "version": "4.7.0",
16
- "urls": [
17
- "//g.alicdn.com/code/npm/@ali/ant-design-icons-cdn/4.5.0/index.umd.min.js"
18
- ],
19
- "library": "icons"
20
- },
21
- {
22
- "package": "@pisell/charts-materials",
23
- "version": "1.0.5",
24
- "library": "ChartsMaterials",
25
- "urls": [
26
- "./render/default/view.js",
27
- "./render/default/view.css"
28
- ],
29
- "editUrls": [
30
- "./view.js",
31
- "./view.css"
32
- ],
33
- "advancedUrls": {
34
- "default": [
35
- "./render/default/view.js",
36
- "./render/default/view.css"
37
- ]
38
- },
39
- "advancedEditUrls": {}
40
- }
41
- ],
42
- "components": [
43
- {
44
- "exportName": "PisellChartsMaterialsMeta",
45
- "npm": {
46
- "package": "@pisell/charts-materials",
47
- "version": "1.0.5"
48
- },
49
- "url": "./meta.js",
50
- "urls": {
51
- "default": "./meta.js"
52
- },
53
- "advancedUrls": {
54
- "default": [
55
- "./meta.js"
56
- ]
57
- }
58
- }
59
- ],
60
- "sort": {
61
- "groupList": [
62
- "精选组件",
63
- "原子组件"
64
- ],
65
- "categoryList": [
66
- "基础元素",
67
- "布局容器类",
68
- "表格类",
69
- "表单详情类",
70
- "帮助类",
71
- "对话框类",
72
- "业务类",
73
- "通用",
74
- "引导",
75
- "信息输入",
76
- "信息展示",
77
- "信息反馈"
78
- ]
79
- },
80
- "groupList": [
81
- "精选组件",
82
- "原子组件"
83
- ],
84
- "ignoreComponents": {}
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "packages": [
3
- {
4
- "package": "dayjs",
5
- "version": "1.11.7",
6
- "urls": "https://g.alicdn.com/code/lib/dayjs/1.11.7/dayjs.min.js",
7
- "library": "dayjs"
8
- },
9
- {
10
- "package": "iconfont-icons",
11
- "urls": "//at.alicdn.com/t/font_2369445_ukrtsovd92r.js"
12
- },
13
- {
14
- "package": "@ant-design/icons",
15
- "version": "4.7.0",
16
- "urls": [
17
- "//g.alicdn.com/code/npm/@ali/ant-design-icons-cdn/4.5.0/index.umd.min.js"
18
- ],
19
- "library": "icons"
20
- },
21
- {
22
- "package": "@pisell/charts-materials",
23
- "version": "1.0.5",
24
- "library": "ChartsMaterials",
25
- "urls": [
26
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.js",
27
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.css"
28
- ],
29
- "editUrls": [
30
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/view.js",
31
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/view.css"
32
- ],
33
- "advancedUrls": {
34
- "default": [
35
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.js",
36
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/render/default/view.css"
37
- ]
38
- },
39
- "advancedEditUrls": {}
40
- }
41
- ],
42
- "components": [
43
- {
44
- "exportName": "PisellChartsMaterialsMeta",
45
- "npm": {
46
- "package": "@pisell/charts-materials",
47
- "version": "1.0.5"
48
- },
49
- "url": "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js",
50
- "urls": {
51
- "default": "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js"
52
- },
53
- "advancedUrls": {
54
- "default": [
55
- "https://unpkg.com/@pisell/charts-materials@1.0.5/build/lowcode/meta.js"
56
- ]
57
- }
58
- }
59
- ],
60
- "sort": {
61
- "groupList": [
62
- "精选组件",
63
- "原子组件"
64
- ],
65
- "categoryList": [
66
- "基础元素",
67
- "布局容器类",
68
- "表格类",
69
- "表单详情类",
70
- "帮助类",
71
- "对话框类",
72
- "业务类",
73
- "通用",
74
- "引导",
75
- "信息输入",
76
- "信息展示",
77
- "信息反馈"
78
- ]
79
- },
80
- "groupList": [
81
- "精选组件",
82
- "原子组件"
83
- ],
84
- "ignoreComponents": {}
85
- }
@@ -1,303 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
- <title>DEMO 预览</title>
8
- <style>
9
- body {
10
- font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial,
11
- PingFang SC-Light, Microsoft YaHei;
12
- font-size: 12px;
13
-
14
- * {
15
- box-sizing: border-box;
16
- }
17
- }
18
-
19
- body,
20
- #lce-container {
21
- position: fixed;
22
- left: 0;
23
- right: 0;
24
- bottom: 0;
25
- top: 0;
26
- box-sizing: border-box;
27
- padding: 0;
28
- margin: 0;
29
- overflow: hidden;
30
- text-rendering: optimizeLegibility;
31
- -webkit-user-select: none;
32
- -webkit-user-drag: none;
33
- -webkit-text-size-adjust: none;
34
- -webkit-touch-callout: none;
35
- -webkit-font-smoothing: antialiased;
36
- }
37
-
38
- html {
39
- min-width: 1024px;
40
- }
41
- </style>
42
- </head>
43
-
44
- <body>
45
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/css/engine-core.css" />
46
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/css/engine-ext.css" />
47
- <link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.css" />
48
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
49
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
50
- <div id="lce-container"></div>
51
- <script src="https://g.alicdn.com/code/lib/rax/1.1.0/rax.umd.min.js"></script>
52
- <script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
53
- <script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
54
- <script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
55
- <script>
56
- React.PropTypes = PropTypes;
57
- </script>
58
- <script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
59
- <script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
60
- <script src="https://g.alicdn.com/code/lib/dayjs/1.11.7/dayjs.min.js"></script>
61
- <script src="https://g.alicdn.com/code/lib/alifd__next/1.23.20/next-with-locales.min.js"></script>
62
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/js/engine-core.js"></script>
63
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/js/engine-ext.js"></script>
64
- <script>
65
- if (!window.AliLowCodeEngine.common) {
66
- window.AliLowCodeEngine.common = {
67
- designerCabin: window.AliLowCodeEngine.designerCabin,
68
- editorCabin: window.AliLowCodeEngine.editorCabin,
69
- skeletonCabin: window.AliLowCodeEngine.skeletonCabin,
70
- utils: window.AliLowCodeEngine.utils,
71
- };
72
- }
73
- </script>
74
- <script src="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.js"></script>
75
- <script type="text/javascript" charset="utf-8" src="./index.js"></script>
76
- <script>
77
- (function (factory) {
78
- if (typeof define === 'function' && define.amd) {
79
- define([], factory);
80
- } else if (typeof module === 'object' && module.exports) {
81
- module.exports = factory();
82
- } else {
83
- window.idleCallbackShim = factory();
84
- }
85
- })(function () {
86
- 'use strict';
87
- var scheduleStart, throttleDelay, lazytimer, lazyraf;
88
- var root =
89
- typeof window != 'undefined' ? window : typeof global != undefined ? global : this || {};
90
- var requestAnimationFrame =
91
- (root.cancelRequestAnimationFrame && root.requestAnimationFrame) || setTimeout;
92
- var cancelRequestAnimationFrame = root.cancelRequestAnimationFrame || clearTimeout;
93
- var tasks = [];
94
- var runAttempts = 0;
95
- var isRunning = false;
96
- var remainingTime = 7;
97
- var minThrottle = 35;
98
- var throttle = 125;
99
- var index = 0;
100
- var taskStart = 0;
101
- var tasklength = 0;
102
- var IdleDeadline = {
103
- get didTimeout() {
104
- return false;
105
- },
106
- timeRemaining: function () {
107
- var timeRemaining = remainingTime - (Date.now() - taskStart);
108
- return Math.max(0, timeRemaining);
109
- },
110
- };
111
- var setInactive = debounce(function () {
112
- remainingTime = 22;
113
- throttle = 66;
114
- minThrottle = 0;
115
- });
116
-
117
- function debounce(fn) {
118
- var id, timestamp;
119
- var wait = 99;
120
- var check = function () {
121
- var last = Date.now() - timestamp;
122
-
123
- if (last < wait) {
124
- id = setTimeout(check, wait - last);
125
- } else {
126
- id = null;
127
- fn();
128
- }
129
- };
130
- return function () {
131
- timestamp = Date.now();
132
- if (!id) {
133
- id = setTimeout(check, wait);
134
- }
135
- };
136
- }
137
-
138
- function abortRunning() {
139
- if (isRunning) {
140
- if (lazyraf) {
141
- cancelRequestAnimationFrame(lazyraf);
142
- }
143
- if (lazytimer) {
144
- clearTimeout(lazytimer);
145
- }
146
- isRunning = false;
147
- }
148
- }
149
-
150
- function onInputorMutation() {
151
- if (throttle != 125) {
152
- remainingTime = 7;
153
- throttle = 125;
154
- minThrottle = 35;
155
-
156
- if (isRunning) {
157
- abortRunning();
158
- scheduleLazy();
159
- }
160
- }
161
- setInactive();
162
- }
163
-
164
- function scheduleAfterRaf() {
165
- lazyraf = null;
166
- lazytimer = setTimeout(runTasks, 0);
167
- }
168
-
169
- function scheduleRaf() {
170
- lazytimer = null;
171
- requestAnimationFrame(scheduleAfterRaf);
172
- }
173
-
174
- function scheduleLazy() {
175
- if (isRunning) {
176
- return;
177
- }
178
- throttleDelay = throttle - (Date.now() - taskStart);
179
-
180
- scheduleStart = Date.now();
181
-
182
- isRunning = true;
183
-
184
- if (minThrottle && throttleDelay < minThrottle) {
185
- throttleDelay = minThrottle;
186
- }
187
-
188
- if (throttleDelay > 9) {
189
- lazytimer = setTimeout(scheduleRaf, throttleDelay);
190
- } else {
191
- throttleDelay = 0;
192
- scheduleRaf();
193
- }
194
- }
195
-
196
- function runTasks() {
197
- var task, i, len;
198
- var timeThreshold = remainingTime > 9 ? 9 : 1;
199
- taskStart = Date.now();
200
- isRunning = false;
201
-
202
- lazytimer = null;
203
-
204
- if (runAttempts > 2 || taskStart - throttleDelay - 50 < scheduleStart) {
205
- for (
206
- i = 0, len = tasks.length;
207
- i < len && IdleDeadline.timeRemaining() > timeThreshold;
208
- i++
209
- ) {
210
- task = tasks.shift();
211
- tasklength++;
212
- if (task) {
213
- task(IdleDeadline);
214
- }
215
- }
216
- }
217
-
218
- if (tasks.length) {
219
- scheduleLazy();
220
- } else {
221
- runAttempts = 0;
222
- }
223
- }
224
-
225
- function requestIdleCallbackShim(task) {
226
- index++;
227
- tasks.push(task);
228
- scheduleLazy();
229
- return index;
230
- }
231
-
232
- function cancelIdleCallbackShim(id) {
233
- var index = id - 1 - tasklength;
234
- if (tasks[index]) {
235
- tasks[index] = null;
236
- }
237
- }
238
-
239
- if (!root.requestIdleCallback || !root.cancelIdleCallback) {
240
- root.requestIdleCallback = requestIdleCallbackShim;
241
- root.cancelIdleCallback = cancelIdleCallbackShim;
242
-
243
- if (root.document && document.addEventListener) {
244
- root.addEventListener('scroll', onInputorMutation, true);
245
- root.addEventListener('resize', onInputorMutation);
246
-
247
- document.addEventListener('focus', onInputorMutation, true);
248
- document.addEventListener('mouseover', onInputorMutation, true);
249
- ['click', 'keypress', 'touchstart', 'mousedown'].forEach(function (name) {
250
- document.addEventListener(name, onInputorMutation, { capture: true, passive: true });
251
- });
252
-
253
- if (root.MutationObserver) {
254
- new MutationObserver(onInputorMutation).observe(document.documentElement, {
255
- childList: true,
256
- subtree: true,
257
- attributes: true,
258
- });
259
- }
260
- }
261
- } else {
262
- try {
263
- root.requestIdleCallback(function () {}, { timeout: 0 });
264
- } catch (e) {
265
- (function (rIC) {
266
- var timeRemainingProto, timeRemaining;
267
- root.requestIdleCallback = function (fn, timeout) {
268
- if (timeout && typeof timeout.timeout == 'number') {
269
- return rIC(fn, timeout.timeout);
270
- }
271
- return rIC(fn);
272
- };
273
- if (
274
- root.IdleCallbackDeadline &&
275
- (timeRemainingProto = IdleCallbackDeadline.prototype)
276
- ) {
277
- timeRemaining = Object.getOwnPropertyDescriptor(
278
- timeRemainingProto,
279
- 'timeRemaining',
280
- );
281
- if (!timeRemaining || !timeRemaining.configurable || !timeRemaining.get) {
282
- return;
283
- }
284
- Object.defineProperty(timeRemainingProto, 'timeRemaining', {
285
- value: function () {
286
- return timeRemaining.get.call(this);
287
- },
288
- enumerable: true,
289
- configurable: true,
290
- });
291
- }
292
- })(root.requestIdleCallback);
293
- }
294
- }
295
-
296
- return {
297
- request: requestIdleCallbackShim,
298
- cancel: cancelIdleCallbackShim,
299
- };
300
- });
301
- </script>
302
- </body>
303
- </html>