@steedos-widgets/devextreme 3.6.2-beta.9

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,2 @@
1
+ export * from './components';
2
+ import 'devextreme/dist/css/dx.light.css';
package/dist/meta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ componentList: {
3
+ title: string;
4
+ icon: string;
5
+ children: any[];
6
+ }[];
7
+ components: any[];
8
+ };
9
+ export default _default;
package/dist/meta.js ADDED
@@ -0,0 +1,178 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BuilderDevExtremeMeta = factory());
5
+ })(this, (function () { 'use strict';
6
+
7
+ /******************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
22
+ var __assign = function() {
23
+ __assign = Object.assign || function __assign(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
31
+ };
32
+
33
+ var config = {
34
+ group: "DevExtreme",
35
+ componentName: "AmisDataGrid",
36
+ title: "DataGrid",
37
+ docUrl: "",
38
+ screenshot: "",
39
+ npm: {
40
+ package: "@steedos-widgets/devextreme",
41
+ version: "{{version}}",
42
+ exportName: "AmisDataGrid",
43
+ main: "",
44
+ destructuring: true,
45
+ subName: ""
46
+ },
47
+ props: [],
48
+ preview: {},
49
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
50
+ engines: ["amis"],
51
+ // settings for amis.
52
+ amis: {
53
+ name: 'steedos-devextreme',
54
+ icon: "fa-fw fa fa-list-alt"
55
+ }
56
+ };
57
+ var DevExtreme = __assign(__assign({}, config), { snippets: [
58
+ {
59
+ title: config.title,
60
+ screenshot: "",
61
+ schema: {
62
+ componentName: config.componentName,
63
+ props: config.preview
64
+ }
65
+ }
66
+ ], amis: {
67
+ render: {
68
+ type: config.amis.name,
69
+ usage: "renderer",
70
+ weight: 1,
71
+ framework: "react"
72
+ },
73
+ plugin: {
74
+ rendererName: config.amis.name,
75
+ $schema: '/schemas/UnkownSchema.json',
76
+ name: config.title,
77
+ description: config.title,
78
+ tags: [config.group],
79
+ order: -9999,
80
+ icon: config.amis.icon,
81
+ scaffold: {
82
+ type: config.amis.name,
83
+ className: "",
84
+ config: {
85
+ // Row Data: The data to be displayed.
86
+ dataSource: [
87
+ { id: "Tesla", model: "Model Y", price: 64950, electric: true },
88
+ { id: "Ford", model: "F-Series", price: 33850, electric: false },
89
+ { id: "Toyota", model: "Corolla", price: 29600, electric: false },
90
+ ],
91
+ keyExpr: "id",
92
+ // Column Definitions: Defines & controls grid columns.
93
+ columns: [
94
+ { dataField: "id", caption: "ID" },
95
+ { dataField: "model" },
96
+ { dataField: "price" },
97
+ { dataField: "electric" }
98
+ ]
99
+ },
100
+ },
101
+ previewSchema: {
102
+ type: config.amis.name,
103
+ config: {
104
+ // Row Data: The data to be displayed.
105
+ dataSource: [
106
+ { id: "Tesla", model: "Model Y", price: 64950, electric: true },
107
+ { id: "Ford", model: "F-Series", price: 33850, electric: false },
108
+ { id: "Toyota", model: "Corolla", price: 29600, electric: false },
109
+ ],
110
+ keyExpr: "id",
111
+ // Column Definitions: Defines & controls grid columns.
112
+ columns: [
113
+ { dataField: "id", caption: "ID" },
114
+ { dataField: "model" },
115
+ { dataField: "price" },
116
+ { dataField: "electric" }
117
+ ]
118
+ },
119
+ },
120
+ panelTitle: "设置",
121
+ panelControls: [
122
+ {
123
+ type: "text",
124
+ name: "className",
125
+ label: "CSS类名",
126
+ value: "bg-gray-100 border-b sm:rounded sm:border border-gray-300 p-4 mb-4"
127
+ },
128
+ {
129
+ type: "editor",
130
+ "language": "json",
131
+ name: "config",
132
+ label: "DevExtreme 配置",
133
+ pipeOut: function (value) {
134
+ try {
135
+ return value ? JSON.parse(value) : null;
136
+ }
137
+ catch (e) {
138
+ }
139
+ return value;
140
+ }
141
+ },
142
+ {
143
+ type: "editor",
144
+ "language": "javascript",
145
+ name: "dataFilter",
146
+ label: "数据加工",
147
+ description: "如果后端没有直接返回 DevExtreme 配置,可以自己写一段函数来包装。\
148
+ 签名:(config, DevExtreme, data) => config \
149
+ "
150
+ },
151
+ ],
152
+ events: [{}],
153
+ },
154
+ } });
155
+
156
+ /*
157
+ * @Author: baozhoutao@steedos.com
158
+ * @Date: 2022-08-31 16:32:35
159
+ * @LastEditors: baozhoutao@steedos.com
160
+ * @LastEditTime: 2022-09-01 18:46:29
161
+ * @Description:
162
+ */
163
+ var components = [DevExtreme];
164
+ var componentList = [
165
+ {
166
+ title: "DevExtreme",
167
+ icon: "",
168
+ children: [DevExtreme]
169
+ }
170
+ ];
171
+ var meta = {
172
+ componentList: componentList,
173
+ components: components
174
+ };
175
+
176
+ return meta;
177
+
178
+ }));
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const AmisDataGrid: ({ config, className, ...props }: {
3
+ [x: string]: any;
4
+ config: any;
5
+ className: any;
6
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DataGrid';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ import 'devextreme/dist/css/dx.light.css';
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ componentList: {
3
+ title: string;
4
+ icon: string;
5
+ children: any[];
6
+ }[];
7
+ components: any[];
8
+ };
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@steedos-widgets/devextreme",
3
+ "private": false,
4
+ "version": "3.6.2-beta.9",
5
+ "main": "dist/devextreme.cjs.js",
6
+ "module": "dist/devextreme.esm.js",
7
+ "unpkg": "dist/devextreme.umd.js",
8
+ "typings": "dist/devextreme.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "prebuild": "rimraf dist",
14
+ "http": "npx http-server ../ --port 8080 --cors -c -1",
15
+ "build": "yarn build-types && yarn build-rollup",
16
+ "build-types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
17
+ "build-rollup": "rollup -c rollup.config.ts"
18
+ },
19
+ "license": "MIT",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "devDependencies": {
24
+ "@rollup/plugin-babel": "^5.3.1",
25
+ "@rollup/plugin-commonjs": "^22.0.0",
26
+ "@rollup/plugin-node-resolve": "^13.1.3",
27
+ "@rollup/plugin-typescript": "^8.4.0",
28
+ "@types/react": "^18.0.8",
29
+ "@types/react-dom": "^18.0.6",
30
+ "react": "18.2.0",
31
+ "react-dom": "18.2.0",
32
+ "rollup": "^2.70.1",
33
+ "rollup-plugin-alias": "^2.2.0",
34
+ "rollup-plugin-external-globals": "^0.6.1",
35
+ "rollup-plugin-json": "^4.0.0",
36
+ "rollup-plugin-node-builtins": "^2.1.2",
37
+ "rollup-plugin-node-globals": "^1.4.0",
38
+ "rollup-plugin-node-resolve": "^5.2.0",
39
+ "rollup-plugin-polyfill-node": "^0.8.0",
40
+ "rollup-plugin-postcss": "^4.0.2",
41
+ "rollup-plugin-postcss-webpack-alias-less-loader": "^1.0.0",
42
+ "rollup-plugin-re": "^1.0.7",
43
+ "rollup-plugin-replace": "^2.0.0",
44
+ "rollup-plugin-sourcemaps": "^0.6.3",
45
+ "rollup-plugin-svg": "^2.0.0",
46
+ "rollup-plugin-terser": "^7.0.2",
47
+ "rollup-plugin-tslib-resolve-id": "^0.0.0",
48
+ "rollup-plugin-visualizer": "^5.8.0"
49
+ },
50
+ "dependencies": {
51
+ "@rollup/plugin-replace": "^5.0.2",
52
+ "@steedos-widgets/amis-lib": "3.6.2-beta.9",
53
+ "devextreme": "^23.2.3",
54
+ "devextreme-react": "^23.2.3"
55
+ },
56
+ "gitHead": "9acd287dd121c0c2c31d65b8fc5bec7279809b9d"
57
+ }