@things-factory/lite-menu 4.1.28 → 5.0.0-alpha.3
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.
|
@@ -311,10 +311,10 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
|
|
|
311
311
|
header: i18next.t('field.type'),
|
|
312
312
|
record: {
|
|
313
313
|
editable: true,
|
|
314
|
-
options: ['', 'group', 'page', 'board']
|
|
314
|
+
options: ['', 'group', 'page', 'board', 'interactive-board']
|
|
315
315
|
},
|
|
316
316
|
filter: {
|
|
317
|
-
options: ['', 'group', 'page', 'board'],
|
|
317
|
+
options: ['', 'group', 'page', 'board', 'interactive-board'],
|
|
318
318
|
multiple: false,
|
|
319
319
|
operator: 'eq'
|
|
320
320
|
},
|
|
@@ -327,11 +327,11 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
|
|
|
327
327
|
record: {
|
|
328
328
|
editable: true,
|
|
329
329
|
editor: function (value, column, record, rowIndex, field) {
|
|
330
|
-
var type = record.type !== 'board' ? 'string' :
|
|
330
|
+
var type = record.type !== 'board' && record.type !== 'interactive-board' ? 'string' : 'board'
|
|
331
331
|
return getEditor(type)(value, column, record, rowIndex, field)
|
|
332
332
|
},
|
|
333
333
|
renderer: function (value, column, record, rowIndex, field) {
|
|
334
|
-
var type = record.type !== 'board' ? 'string' :
|
|
334
|
+
var type = record.type !== 'board' && record.type !== 'interactive-board' ? 'string' : 'board'
|
|
335
335
|
return getRenderer(type)(value, column, record, rowIndex, field)
|
|
336
336
|
}
|
|
337
337
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import cloneDeep from 'lodash-es/cloneDeep'
|
|
2
2
|
|
|
3
3
|
const INITIAL_STATE = {
|
|
4
4
|
template: [],
|
|
@@ -7,7 +7,7 @@ const INITIAL_STATE = {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function buildMenus(template, addon) {
|
|
10
|
-
var menus =
|
|
10
|
+
var menus = cloneDeep(template || [])
|
|
11
11
|
addon = addon || []
|
|
12
12
|
|
|
13
13
|
/* make group by parent */
|
|
@@ -40,8 +40,15 @@ function buildMenus(template, addon) {
|
|
|
40
40
|
children.push({
|
|
41
41
|
name,
|
|
42
42
|
type,
|
|
43
|
-
path:
|
|
44
|
-
|
|
43
|
+
path:
|
|
44
|
+
type === 'page'
|
|
45
|
+
? value
|
|
46
|
+
: type === 'board'
|
|
47
|
+
? `board-viewer/${value}?title=${name}`
|
|
48
|
+
: type === 'interactive-board'
|
|
49
|
+
? `board-viewer/${value}?interactive=true&title=${name}`
|
|
50
|
+
: '',
|
|
51
|
+
icon: icon || (type === 'page' ? 'menu' : type === 'board' || type === 'interactive-board' ? 'dashboard' : '')
|
|
45
52
|
})
|
|
46
53
|
})
|
|
47
54
|
})
|
package/dist-server/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist-server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yBAAyB;AACzB,wDAAqC;AAErC,mCAAmC;AACnC,2CAA0F;AAE7E,QAAA,QAAQ,GAAG;IACtB,cAAc;IACf,GAAG,oBAAgB;CACnB,CAAA;AAGY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACxB,GAAG,qBAAiB;KACnB;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/lite-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.3",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@operato/data-grist": "^0.3
|
|
28
|
-
"@operato/graphql": "^0.3
|
|
29
|
-
"@operato/i18n": "^0.3
|
|
30
|
-
"@operato/input": "^0.3
|
|
31
|
-
"@operato/layout": "^0.3
|
|
32
|
-
"@operato/popup": "^0.3
|
|
33
|
-
"@operato/shell": "^0.3
|
|
34
|
-
"@operato/styles": "^0.3
|
|
35
|
-
"@operato/utils": "^0.3
|
|
36
|
-
"@things-factory/apptool-base": "^
|
|
37
|
-
"@things-factory/auth-base": "^
|
|
38
|
-
"@things-factory/board-service": "^
|
|
39
|
-
"@things-factory/board-ui": "^
|
|
40
|
-
"@things-factory/grist-ui": "^
|
|
41
|
-
"@things-factory/more-base": "^
|
|
42
|
-
"@things-factory/setting-base": "^
|
|
43
|
-
"@things-factory/utils": "^
|
|
27
|
+
"@operato/data-grist": "^0.4.3",
|
|
28
|
+
"@operato/graphql": "^0.4.3",
|
|
29
|
+
"@operato/i18n": "^0.4.3",
|
|
30
|
+
"@operato/input": "^0.4.3",
|
|
31
|
+
"@operato/layout": "^0.4.3",
|
|
32
|
+
"@operato/popup": "^0.4.3",
|
|
33
|
+
"@operato/shell": "^0.4.3",
|
|
34
|
+
"@operato/styles": "^0.4.3",
|
|
35
|
+
"@operato/utils": "^0.4.3",
|
|
36
|
+
"@things-factory/apptool-base": "^5.0.0-alpha.3",
|
|
37
|
+
"@things-factory/auth-base": "^5.0.0-alpha.3",
|
|
38
|
+
"@things-factory/board-service": "^5.0.0-alpha.3",
|
|
39
|
+
"@things-factory/board-ui": "^5.0.0-alpha.3",
|
|
40
|
+
"@things-factory/grist-ui": "^5.0.0-alpha.3",
|
|
41
|
+
"@things-factory/more-base": "^5.0.0-alpha.3",
|
|
42
|
+
"@things-factory/setting-base": "^5.0.0-alpha.3",
|
|
43
|
+
"@things-factory/utils": "^5.0.0-alpha.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0584a36ba889ff0b426cc87c0d9c8f14ffa2f677"
|
|
46
46
|
}
|