@gudhub/core 1.1.3 → 1.1.6
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.
|
@@ -155,11 +155,6 @@ export default function generateModulesList(async_modules_path, file_server_url)
|
|
|
155
155
|
url: file_server_url + '/' + async_modules_path + "calculator_data.js",
|
|
156
156
|
type: 'angular'
|
|
157
157
|
},
|
|
158
|
-
{
|
|
159
|
-
name: "calendar",
|
|
160
|
-
url: file_server_url + '/' + async_modules_path + "calendar_data.js",
|
|
161
|
-
type: 'angular'
|
|
162
|
-
},
|
|
163
158
|
{
|
|
164
159
|
name: "string_join",
|
|
165
160
|
url: file_server_url + '/' + async_modules_path + "string_joiner_data.js",
|
|
@@ -519,10 +514,22 @@ export default function generateModulesList(async_modules_path, file_server_url)
|
|
|
519
514
|
css: "https://gudhub.com/modules/Nested-List/dist/style.css",
|
|
520
515
|
type: 'class'
|
|
521
516
|
},
|
|
517
|
+
{
|
|
518
|
+
name: 'calendar',
|
|
519
|
+
js: 'https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js',
|
|
520
|
+
css: 'https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css',
|
|
521
|
+
type: 'class'
|
|
522
|
+
},
|
|
522
523
|
{
|
|
523
524
|
name: "countertop_smart_quote",
|
|
524
525
|
url: file_server_url + '/' + async_modules_path + "countertop_smart_quote_data.js",
|
|
525
526
|
type: 'angular'
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
name: "markdown_viewer_web_component",
|
|
530
|
+
js: "https://gudhub.com/modules/markdown-it-gh-element/dist/main.js",
|
|
531
|
+
css: "https://gudhub.com/modules/markdown-it-gh-element/dist/style.css",
|
|
532
|
+
type: "class"
|
|
526
533
|
}
|
|
527
534
|
]
|
|
528
535
|
}
|
|
@@ -362,7 +362,7 @@ export default class AppsTemplateService {
|
|
|
362
362
|
properties.forEach(prop => {
|
|
363
363
|
let propertyValue = object[prop];
|
|
364
364
|
|
|
365
|
-
if (propertyValue && typeof object != 'string') {
|
|
365
|
+
if (typeof propertyValue !== 'undefined' && typeof object != 'string') {
|
|
366
366
|
action(prop, propertyValue, object);
|
|
367
367
|
self.crawling(propertyValue, action);
|
|
368
368
|
}
|
|
@@ -387,7 +387,7 @@ export default class AppsTemplateService {
|
|
|
387
387
|
appsConnectingMap.apps.forEach(appMap => {
|
|
388
388
|
if (app.view_init === appMap.new_view_init) {
|
|
389
389
|
appsConnectingMap.views.forEach(view => {
|
|
390
|
-
if (appMap.old_view_init === view.
|
|
390
|
+
if (appMap.old_view_init === view.old_view_id) {
|
|
391
391
|
app.view_init = view.new_view_id;
|
|
392
392
|
}
|
|
393
393
|
})
|
|
@@ -83,6 +83,16 @@ export function compiler(scheme, item, util, variables) {
|
|
|
83
83
|
case "field_id":
|
|
84
84
|
return scheme.field_id;
|
|
85
85
|
|
|
86
|
+
case "function":
|
|
87
|
+
if(typeof scheme.function === 'function') {
|
|
88
|
+
let result = scheme.function(item, app, ...scheme.args);
|
|
89
|
+
return result;
|
|
90
|
+
} else {
|
|
91
|
+
const func = new Function('item, app', 'return (async ' + scheme.function + ')(item, app)');
|
|
92
|
+
let result = await func(item, app);
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
|
|
86
96
|
case "field_value":
|
|
87
97
|
default:
|
|
88
98
|
if (Boolean(Number(scheme.interpretation))) {
|