cob-cli 2.20.1 → 2.22.0
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/customizations/frontend.formatList.currency.js +2 -4
- package/package.json +1 -1
- package/templates/dashboards/dash/dist/css/app.7b16c01a.css +11 -0
- package/templates/dashboards/dash/dist/dashboard.html +4 -4
- package/templates/dashboards/dash/dist/js/{app.8befbbc1.js → app.13b950c8.js} +3 -3
- package/templates/dashboards/dash/dist/js/app.13b950c8.js.map +1 -0
- package/templates/dashboards/dash/src/App.vue +47 -55
- package/templates/dashboards/dash/src/components/Menu.vue +1 -1
- package/templates/dashboards/dash/src/output.css +44803 -38
- package/templates/dashboards/dash/tailwind.config.js +1 -1
- package/templates/frontend/common/js/cob/_group_references.js +15 -12
- package/templates/frontend/formatList/currency/js/cob/{_format_currency.__DEFINITION__.js → _format_currency.js} +1 -3
- package/templates/frontend/formatList/currency/js/customizations2.__MERGE__.js +1 -1
- package/templates/keywords/styleResults/frontend/js/cob/_styleResults.js +5 -1
- package/templates/dashboards/dash/dist/css/app.40fc4e43.css +0 -11
- package/templates/dashboards/dash/dist/js/app.8befbbc1.js.map +0 -1
- package/templates/frontend/common/css/_dashboard.css +0 -7
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
// Use $style[use-reference-count] on the containing $group that you want to have the result
|
|
3
3
|
cob.custom.customize.push(function (core, utils, ui) {
|
|
4
4
|
core.customizeAllInstances(function(instance, presenter) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
const update = (div) => {
|
|
6
|
+
let group = $(div).parentsUntil(".field-group.custom-use-reference-count").parent().find(".group-name")
|
|
7
|
+
let groupName = (group[0].children.length ? group[0].children[0].innerHTML : group[0].innerHTML).trim()
|
|
8
|
+
let labelHTML = $(div).parent()[0].innerHTML
|
|
9
|
+
let labelWithCount = labelHTML.substring(0,labelHTML.indexOf("<div"))
|
|
10
|
+
//Apenas muda o texto se o nome do $group for o mesmo que o do campo $references
|
|
11
|
+
//isto permite escolher qual o references a mostrar
|
|
12
|
+
if(labelWithCount.indexOf(" <span>"+groupName+"</span>") == 0) {
|
|
13
|
+
group[0].innerHTML = labelWithCount
|
|
14
|
+
$(m.target).parent().parent().hide()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
var mo = new MutationObserver( (mutations) => mutations.forEach( m => update(m.target)) );
|
|
13
18
|
|
|
14
|
-
let references = $('.field-group.custom-use-reference-count > ol > li > div > div.references-legend').toArray()
|
|
15
|
-
references.forEach( reference => {
|
|
16
|
-
mo.observe(reference, { childList: true, subtree: true });
|
|
17
|
-
})
|
|
19
|
+
let references = $('.field-group.custom-use-reference-count > ol > li:not(.hidden) > div > div.references-legend').toArray()
|
|
20
|
+
references.forEach( reference => mo.observe(reference.children[1], { childList: true }) );
|
|
18
21
|
})
|
|
19
22
|
})
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
const DEFINITION = "__DEFINITION__";
|
|
2
|
-
|
|
3
1
|
cob.custom.customize.push(function (core, utils, ui) {
|
|
4
|
-
core.customizeAllColumns(
|
|
2
|
+
core.customizeAllColumns("*", (node, esDoc, colDef) => {
|
|
5
3
|
// Test $style[currency], by it self or with other styles
|
|
6
4
|
if(/\$style\[([^,]+,)*currency(,[^,]+)*\]/.exec(colDef.fieldDefDescription) != null) {
|
|
7
5
|
let value = esDoc[colDef.field] ? esDoc[colDef.field][0] : null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import("./cob/_format_currency.
|
|
1
|
+
import("./cob/_format_currency.js");
|
|
@@ -11,7 +11,11 @@ cob.custom.customize.push(function (core, utils, ui) {
|
|
|
11
11
|
|
|
12
12
|
for(let mapping of relevantMapping) {
|
|
13
13
|
let [styleValue, styleClass] = mapping.split(":")
|
|
14
|
-
if(styleValue.trim() == fieldValue
|
|
14
|
+
if( styleValue.trim() == fieldValue
|
|
15
|
+
|| styleValue.trim() == "" && fieldValue == undefined
|
|
16
|
+
) {
|
|
17
|
+
node.classList.add(styleClass.trim())
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
}),
|