@operato/scene-table 10.0.0-beta.2 → 10.0.0-beta.65
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.
package/README.md
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @operato/scene-table
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Things Scene Table Component.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Components
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
- `Table`
|
|
10
|
+
- `TableCell`
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Install
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
```bash
|
|
15
|
+
yarn add @operato/scene-table
|
|
16
|
+
```
|
|
16
17
|
|
|
17
|
-
##
|
|
18
|
+
## Usage
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
```ts
|
|
21
|
+
import { Table, TableCell } from '@operato/scene-table'
|
|
22
|
+
```
|
|
20
23
|
|
|
21
|
-
##
|
|
24
|
+
## Build
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
```bash
|
|
27
|
+
yarn build
|
|
28
|
+
```
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
| ---- | ------------------------ | -------------- | ------ |
|
|
27
|
-
| UMD | things-scene-table.js | modern browser | 0 |
|
|
28
|
-
| UMD | things-scene-table-ie.js | ie 11 | 0 |
|
|
29
|
-
| ESM | things-scene-table.mjs | modern browser | 0 |
|
|
30
|
+
Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
_Version: 10.0.0-beta.2_
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
<!-- AUTOGEN_END -->
|
|
@@ -49,7 +49,7 @@ declare const DataCell_base: (new (...args: any[]) => {
|
|
|
49
49
|
get disposed(): boolean;
|
|
50
50
|
isLayer(): boolean;
|
|
51
51
|
isGroup(): boolean;
|
|
52
|
-
isContainer(): this is import("@hatiolab/things-scene
|
|
52
|
+
isContainer(): this is import("@hatiolab/things-scene").Container;
|
|
53
53
|
isLine(): boolean;
|
|
54
54
|
isRoot(): boolean;
|
|
55
55
|
isRootModel(): boolean;
|
|
@@ -65,9 +65,10 @@ declare const DataCell_base: (new (...args: any[]) => {
|
|
|
65
65
|
get(property: any): any;
|
|
66
66
|
set(props: any, propval?: any): any;
|
|
67
67
|
getState(property: any): any;
|
|
68
|
-
setState(props:
|
|
68
|
+
setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
|
|
69
69
|
get model(): any;
|
|
70
|
-
get state():
|
|
70
|
+
get state(): import("@hatiolab/things-scene").State;
|
|
71
|
+
get refid(): any;
|
|
71
72
|
get hierarchy(): any;
|
|
72
73
|
get volatile(): never[];
|
|
73
74
|
_applyProps(target: any, props: any, options: any): any;
|
|
@@ -158,7 +159,7 @@ declare const DataCell_base: (new (...args: any[]) => {
|
|
|
158
159
|
findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
|
|
159
160
|
capture(x: number, y: number, except?: (c: Component) => boolean): any;
|
|
160
161
|
findAnchor(name: string): any;
|
|
161
|
-
isDescendible(container: Component): boolean;
|
|
162
|
+
isDescendible(container: Component | any): boolean;
|
|
162
163
|
getContext(component?: unknown): any;
|
|
163
164
|
get root(): Component;
|
|
164
165
|
get rootModel(): Component;
|
|
@@ -202,9 +203,13 @@ declare const DataCell_base: (new (...args: any[]) => {
|
|
|
202
203
|
toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
203
204
|
toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
204
205
|
toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
206
|
+
on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
205
207
|
on(name: string | object, callback: Function, context?: any): any;
|
|
208
|
+
off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
|
|
206
209
|
off(name?: string | object, callback?: Function, context?: any): any;
|
|
210
|
+
once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
207
211
|
once(name: string | object, callback: Function, context?: any): any;
|
|
212
|
+
trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
|
|
208
213
|
trigger(name: string, ...args: any[]): any;
|
|
209
214
|
delegate_on(delegator: any): any;
|
|
210
215
|
delegate_off(delegator: any): any;
|
package/dist/table-cell.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ declare const TableCell_base: (new (...args: any[]) => {
|
|
|
52
52
|
get disposed(): boolean;
|
|
53
53
|
isLayer(): boolean;
|
|
54
54
|
isGroup(): boolean;
|
|
55
|
-
isContainer(): this is import("@hatiolab/things-scene
|
|
55
|
+
isContainer(): this is import("@hatiolab/things-scene").Container;
|
|
56
56
|
isLine(): boolean;
|
|
57
57
|
isRoot(): boolean;
|
|
58
58
|
isRootModel(): boolean;
|
|
@@ -68,9 +68,10 @@ declare const TableCell_base: (new (...args: any[]) => {
|
|
|
68
68
|
get(property: any): any;
|
|
69
69
|
set(props: any, propval?: any): any;
|
|
70
70
|
getState(property: any): any;
|
|
71
|
-
setState(props:
|
|
71
|
+
setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
|
|
72
72
|
get model(): any;
|
|
73
|
-
get state():
|
|
73
|
+
get state(): import("@hatiolab/things-scene").State;
|
|
74
|
+
get refid(): any;
|
|
74
75
|
get hierarchy(): any;
|
|
75
76
|
get volatile(): never[];
|
|
76
77
|
_applyProps(target: any, props: any, options: any): any;
|
|
@@ -161,7 +162,7 @@ declare const TableCell_base: (new (...args: any[]) => {
|
|
|
161
162
|
findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
|
|
162
163
|
capture(x: number, y: number, except?: (c: Component) => boolean): any;
|
|
163
164
|
findAnchor(name: string): any;
|
|
164
|
-
isDescendible(container: Component): boolean;
|
|
165
|
+
isDescendible(container: Component | any): boolean;
|
|
165
166
|
getContext(component?: unknown): any;
|
|
166
167
|
get root(): Component;
|
|
167
168
|
get rootModel(): Component;
|
|
@@ -205,9 +206,13 @@ declare const TableCell_base: (new (...args: any[]) => {
|
|
|
205
206
|
toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
206
207
|
toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
207
208
|
toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
209
|
+
on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
208
210
|
on(name: string | object, callback: Function, context?: any): any;
|
|
211
|
+
off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
|
|
209
212
|
off(name?: string | object, callback?: Function, context?: any): any;
|
|
213
|
+
once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
210
214
|
once(name: string | object, callback: Function, context?: any): any;
|
|
215
|
+
trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
|
|
211
216
|
trigger(name: string, ...args: any[]): any;
|
|
212
217
|
delegate_on(delegator: any): any;
|
|
213
218
|
delegate_off(delegator: any): any;
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'data-list',
|
|
4
4
|
description: 'data list',
|
|
5
5
|
group: 'table',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'data-list',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-list.js","sourceRoot":"","sources":["../../src/templates/data-list.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,OAAO;IACd,
|
|
1
|
+
{"version":3,"file":"data-list.js","sourceRoot":"","sources":["../../src/templates/data-list.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,OAAO;IACd,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;KACX;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-data-list.png', import.meta.url).href\n\nexport default {\n type: 'data-list',\n description: 'data list',\n group: 'table',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'data-list',\n top: 100,\n left: 100,\n width: 500,\n height: 200,\n strokeStyle: '#999',\n fillStyle: 'white',\n lineWidth: 2,\n columns: 5\n }\n}\n"]}
|
package/dist/templates/table.js
CHANGED
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'table',
|
|
4
4
|
description: 'table',
|
|
5
5
|
group: 'table',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'table',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/templates/table.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAExE,eAAe;IACb,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO;IACpB,KAAK,EAAE,OAAO;IACd,
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/templates/table.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAExE,eAAe;IACb,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO;IACpB,KAAK,EAAE,OAAO;IACd,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,IAAI,EAAE;YACJ,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;YACjC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACf,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;SACnB;KACF;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-table.png', import.meta.url).href\n\nexport default {\n type: 'table',\n description: 'table',\n group: 'table',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'table',\n top: 100,\n left: 100,\n width: 500,\n height: 200,\n strokeStyle: '#999',\n fillStyle: 'white',\n lineWidth: 2,\n rows: 5,\n columns: 5,\n data: [\n ['header1', 'header2', 'header3'],\n [100, 200, 300],\n [1000, 2000, 3000]\n ]\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/scene-table",
|
|
3
3
|
"description": "Things Scene Table Component.",
|
|
4
|
-
"version": "10.0.0-beta.
|
|
4
|
+
"version": "10.0.0-beta.65",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "heartyoh",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
35
|
-
"@things-factory/builder": "^10.0.0-
|
|
36
|
-
"@things-factory/operato-board": "^10.0.0-
|
|
35
|
+
"@things-factory/builder": "^10.0.0-zeta.1",
|
|
36
|
+
"@things-factory/operato-board": "^10.0.0-zeta.1",
|
|
37
37
|
"@types/chart.js": "2.9.34",
|
|
38
38
|
"@types/lodash-es": "^4.17.5",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"prettier --write"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "99733bf39e2d279630d68844f19d9687272a4992"
|
|
64
64
|
}
|