cob-cli 2.21.0 → 2.23.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.
@@ -2,7 +2,6 @@ exports.option = {
2
2
  name: 'FormatCurrency - Make $style[currency] available on definitions',
3
3
  short: "Simple",
4
4
  questions: [
5
- require("../lib/task_lists/customize_questions").definitionNameQuestion
6
5
  ],
7
6
  customization: async function (answers) {
8
7
  console.log("\nApplying FormatCurrency frontend customizations ...")
@@ -10,8 +9,7 @@ exports.option = {
10
9
  const { mergeFiles } = require("../lib/task_lists/customize_mergeFiles");
11
10
 
12
11
  const target = "./recordm/customUI/"
13
- let substitutions = {"__DEFINITION__": answers.name}
14
- await copy("../../templates/frontend/formatList/currency/",target, substitutions)
15
- await mergeFiles("frontend.formatList.currency.js: " + answers.name )
12
+ await copy("../../templates/frontend/formatList/currency/",target)
13
+ await mergeFiles("frontend.formatList.currency.js")
16
14
  }
17
15
  }
@@ -22,6 +22,7 @@ module.exports = env => {
22
22
  },
23
23
  liveReload: true,
24
24
  port: 8040,
25
+ host: "0.0.0.0",
25
26
  stats: {
26
27
  maxModules: 0 // Set the maximum number of modules to be shown
27
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {
@@ -11,4 +11,9 @@
11
11
  .cob-app .instance-detail-container div.instance-container ol.fields li > table > tbody > tr > td:nth-child(3) input {
12
12
  max-width: 230px;
13
13
  width: -webkit-fill-available;
14
- } */
14
+ } */
15
+
16
+ .cob-app .nav > li > a.js-menu-rm-importer-stats,
17
+ .cob-app .nav > li > a.js-menu-reports {
18
+ display:none
19
+ }
@@ -1,7 +1,5 @@
1
- const DEFINITION = "__DEFINITION__";
2
-
3
1
  cob.custom.customize.push(function (core, utils, ui) {
4
- core.customizeAllColumns(DEFINITION, (node, esDoc, colDef) => {
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.__DEFINITION__.js");
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) node.classList.add(styleClass.trim())
14
+ if( styleValue.trim() == fieldValue
15
+ || styleValue.trim() == "" && fieldValue == undefined
16
+ ) {
17
+ node.classList.add(styleClass.trim())
18
+ }
15
19
  }
16
20
  }
17
21
  }),
@@ -1,7 +0,0 @@
1
- .cob-app #header .nav > li > a.js-menu-40795 {
2
- visibility: hidden;
3
- }
4
- .cob-app #header .nav > li > a.js-menu-40795:after {
5
- content: "Dashboard";
6
- visibility: visible;
7
- }