cob-cli 2.6.3 → 2.7.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/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* Overall good practive - not column related but specialy relevant inside columns */
|
|
2
|
+
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(1) {
|
|
3
|
+
min-width: 70px;
|
|
4
|
+
}
|
|
5
|
+
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(2) {
|
|
6
|
+
min-width: 160px;
|
|
7
|
+
}
|
|
8
|
+
li.custom-dualColumn ol.fields li > table > tbody > tr > td:nth-child(3),
|
|
9
|
+
li.custom-dualColumn ol.fields li > table > tbody > tr > td:nth-child(3) * {
|
|
10
|
+
max-width: 230px !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* $style[dualColumn] */
|
|
14
|
+
li.custom-dualColumn > ol.fields{
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
li.custom-dualColumn > ol.fields > li {
|
|
19
|
+
flex-basis:49%;
|
|
20
|
+
}
|
|
21
|
+
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(3) {
|
|
22
|
+
width: unset;
|
|
23
|
+
}
|
|
24
|
+
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(4) {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* $style[singleColumn] */
|
|
29
|
+
li.custom-dualColumn > ol.fields > li.custom-singleColumn {
|
|
30
|
+
flex-basis:100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* $style[column] */
|
|
34
|
+
li.custom-column > table {
|
|
35
|
+
display: none
|
|
36
|
+
}
|
|
37
|
+
.cob-app .instance-detail-container div.instance-container li.custom-column > ol.fields {
|
|
38
|
+
border:none;
|
|
39
|
+
background-color: unset;
|
|
40
|
+
margin:unset;
|
|
41
|
+
}
|
|
42
|
+
.cob-app .instance-detail-container .instance-container .fields-container li.custom-column.field-group {
|
|
43
|
+
margin:unset;
|
|
44
|
+
padding: unset;
|
|
45
|
+
}
|
|
@@ -5,7 +5,7 @@ cob.custom.customize.push(function (core, utils, ui) {
|
|
|
5
5
|
let userFPs = presenter.findFieldPs( fp => /[$]audit\.(creator|updater)\.(username|uri|time)/.exec(fp.field.fieldDefinition.description) )
|
|
6
6
|
userFPs.forEach( fp => {
|
|
7
7
|
fp.disable()
|
|
8
|
-
if(!instance.isNew() || presenter.isGroupEdit()) return //
|
|
8
|
+
if(fp.getValue() && (!instance.isNew() || presenter.isGroupEdit())) return //Don't do nothing if field is not empty AND it's an update interface (updates will only be changed by the backend)
|
|
9
9
|
if(/[$]audit\.(creator|updater)\.username/.exec(fp.field.fieldDefinition.description)) {
|
|
10
10
|
fp.setValue(core.getCurrentLoggedInUser())
|
|
11
11
|
}
|