@fmsim/layout-view 2.0.0-beta.16 → 2.0.0-beta.19
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/dist-client/board-provider.js +2 -1
- package/dist-client/board-provider.js.map +1 -1
- package/dist-client/data-grist/animation-map-editor.js +63 -18
- package/dist-client/data-grist/animation-map-editor.js.map +1 -1
- package/dist-client/data-grist/ox-input-animation-config.d.ts +1 -0
- package/dist-client/data-grist/ox-input-animation-config.js +42 -37
- package/dist-client/data-grist/ox-input-animation-config.js.map +1 -1
- package/dist-client/data-grist/ox-input-animation-map.d.ts +12 -5
- package/dist-client/data-grist/ox-input-animation-map.js +75 -27
- package/dist-client/data-grist/ox-input-animation-map.js.map +1 -1
- package/dist-client/pages/theme/theme-list-page.js +1 -4
- package/dist-client/pages/theme/theme-list-page.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist-client/pages/theme/theme-editors.d.ts +0 -5
- package/dist-client/pages/theme/theme-editors.js +0 -61
- package/dist-client/pages/theme/theme-editors.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fmsim/layout-view",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"file-saver": "^2.0.2",
|
|
39
39
|
"sortablejs": "^1.10.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "29a0fc9444f6eec0961401d979fd21fdfd34e041"
|
|
42
42
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function buildThemeValueRecordConfig(): {
|
|
2
|
-
editor: (value: any, column: any, record: any, rowIndex: any, field: any) => import("@operato/data-grist").OxGristEditor;
|
|
3
|
-
renderer: (value: any, column: any, record: any, rowIndex: any, field: any) => string | void | import("lit-html").TemplateResult | import("@operato/data-grist").OxGristRenderer;
|
|
4
|
-
editable: boolean;
|
|
5
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { getEditor, getRenderer } from '@operato/data-grist';
|
|
2
|
-
export function buildThemeValueRecordConfig() {
|
|
3
|
-
return {
|
|
4
|
-
editor: function (value, column, record, rowIndex, field) {
|
|
5
|
-
return getEditor(record.type || 'text')(value, column, record, rowIndex, field);
|
|
6
|
-
},
|
|
7
|
-
renderer: function (value, column, record, rowIndex, field) {
|
|
8
|
-
return getRenderer(record.type || 'text')(value, column, record, rowIndex, field);
|
|
9
|
-
},
|
|
10
|
-
editable: true
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function getEditorType(themeType) {
|
|
14
|
-
switch (themeType) {
|
|
15
|
-
case 'legend':
|
|
16
|
-
case 'color-map':
|
|
17
|
-
return 'value-map';
|
|
18
|
-
case 'color-ranges':
|
|
19
|
-
return 'value-ranges';
|
|
20
|
-
case 'animation-map':
|
|
21
|
-
return 'value-map';
|
|
22
|
-
case 'color':
|
|
23
|
-
return 'color';
|
|
24
|
-
default:
|
|
25
|
-
return 'text';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function getRendererType(themeType) {
|
|
29
|
-
switch (themeType) {
|
|
30
|
-
case 'legend':
|
|
31
|
-
case 'color-map':
|
|
32
|
-
case 'color-ranges':
|
|
33
|
-
case 'animation-map':
|
|
34
|
-
return 'json5';
|
|
35
|
-
case 'color':
|
|
36
|
-
return 'color';
|
|
37
|
-
default:
|
|
38
|
-
return 'text';
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function getOptions(themeType, name) {
|
|
42
|
-
switch (themeType) {
|
|
43
|
-
case 'color-map':
|
|
44
|
-
case 'color-ranges':
|
|
45
|
-
return {
|
|
46
|
-
name: `${themeType.toUpperCase()} : ${name}`,
|
|
47
|
-
valuetype: 'color'
|
|
48
|
-
};
|
|
49
|
-
case 'animation-map':
|
|
50
|
-
return {
|
|
51
|
-
name: `${themeType.toUpperCase()} : ${name}`,
|
|
52
|
-
valuetype: 'code'
|
|
53
|
-
};
|
|
54
|
-
case 'color':
|
|
55
|
-
default:
|
|
56
|
-
return {
|
|
57
|
-
name: `${(themeType === null || themeType === void 0 ? void 0 : themeType.toUpperCase()) || ''} : ${name}`
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=theme-editors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-editors.js","sourceRoot":"","sources":["../../../client/pages/theme/theme-editors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE5D,MAAM,UAAU,2BAA2B;IACzC,OAAO;QACL,MAAM,EAAE,UAAU,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK;YACtD,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;QACjF,CAAC;QACD,QAAQ,EAAE,UAAU,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK;YACxD,OAAO,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;QACnF,CAAC;QACD,QAAQ,EAAE,IAAI;KACf,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CAAC,SAAiB;IACtC,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,QAAQ,CAAC;QACd,KAAK,WAAW;YACd,OAAO,WAAW,CAAA;QACpB,KAAK,cAAc;YACjB,OAAO,cAAc,CAAA;QACvB,KAAK,eAAe;YAClB,OAAO,WAAW,CAAA;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,CAAA;QAChB;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,SAAiB;IACxC,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,QAAQ,CAAC;QACd,KAAK,WAAW,CAAC;QACjB,KAAK,cAAc,CAAC;QACpB,KAAK,eAAe;YAClB,OAAO,OAAO,CAAA;QAChB,KAAK,OAAO;YACV,OAAO,OAAO,CAAA;QAChB;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,SAAiB,EAAE,IAAY;IACjD,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,WAAW,CAAC;QACjB,KAAK,cAAc;YACjB,OAAO;gBACL,IAAI,EAAE,GAAG,SAAS,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE;gBAC5C,SAAS,EAAE,OAAO;aACnB,CAAA;QACH,KAAK,eAAe;YAClB,OAAO;gBACL,IAAI,EAAE,GAAG,SAAS,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE;gBAC5C,SAAS,EAAE,MAAM;aAClB,CAAA;QACH,KAAK,OAAO,CAAC;QACb;YACE,OAAO;gBACL,IAAI,EAAE,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,EAAE,KAAI,EAAE,MAAM,IAAI,EAAE;aACpD,CAAA;IACL,CAAC;AACH,CAAC","sourcesContent":["import { getEditor, getRenderer } from '@operato/data-grist'\n\nexport function buildThemeValueRecordConfig() {\n return {\n editor: function (value, column, record, rowIndex, field) {\n return getEditor(record.type || 'text')(value, column, record, rowIndex, field)\n },\n renderer: function (value, column, record, rowIndex, field) {\n return getRenderer(record.type || 'text')(value, column, record, rowIndex, field)\n },\n editable: true\n }\n}\n\nfunction getEditorType(themeType: string): string {\n switch (themeType) {\n case 'legend':\n case 'color-map':\n return 'value-map'\n case 'color-ranges':\n return 'value-ranges'\n case 'animation-map':\n return 'value-map'\n case 'color':\n return 'color'\n default:\n return 'text'\n }\n}\n\nfunction getRendererType(themeType: string): string {\n switch (themeType) {\n case 'legend':\n case 'color-map':\n case 'color-ranges':\n case 'animation-map':\n return 'json5'\n case 'color':\n return 'color'\n default:\n return 'text'\n }\n}\n\nfunction getOptions(themeType: string, name: string): any {\n switch (themeType) {\n case 'color-map':\n case 'color-ranges':\n return {\n name: `${themeType.toUpperCase()} : ${name}`,\n valuetype: 'color'\n }\n case 'animation-map':\n return {\n name: `${themeType.toUpperCase()} : ${name}`,\n valuetype: 'code'\n }\n case 'color':\n default:\n return {\n name: `${themeType?.toUpperCase() || ''} : ${name}`\n }\n }\n}\n"]}
|