@sapui5/sap.rules.ui 1.101.0 → 1.102.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.rules.ui",
3
- "version": "1.101.0",
3
+ "version": "1.102.0",
4
4
  "description": "SAPUI5 Library sap.rules.ui",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2016 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.101.0</version>
10
+ <version>1.102.0</version>
11
11
 
12
12
  <documentation>UI5 library: sap.rules.ui</documentation>
13
13
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends ManagedObject
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.101.0
28
+ * @version 1.102.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @extends Control
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.101.0
60
+ * @version 1.102.0
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.101.0
37
+ * @version 1.102.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.rules.ui.AstExpressionBasic
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.101.0
29
+ * @version 1.102.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.rules.ui.ExpressionAdvanced
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.101.0
29
+ * @version 1.102.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.rules.ui.ExpressionBasic
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.101.0
28
+ * @version 1.102.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.101.0
27
+ * @version 1.102.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @extends Control
44
44
  *
45
45
  * @author SAP SE
46
- * @version 1.101.0
46
+ * @version 1.102.0
47
47
  *
48
48
  * @constructor
49
49
  * @private
@@ -984,7 +984,22 @@ sap.ui.define([
984
984
  }).setBindingContext(oContext);
985
985
  this._setExpressionRelevantOperators(displayExpression.relString, oContext.getProperty("Condition/Id"), oContext.getProperty(
986
986
  "Condition/ValueOnly"), astExpressionBasic);
987
- astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpression");
987
+ if(document.getElementById("content")&& document.getElementById("content").classList &&
988
+ document.getElementById("content").classList.length>0 &&
989
+ isCompactClassPresent(document.getElementById("content").classList)){
990
+ astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpressionCompactSize");
991
+ } else {
992
+ astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpressionCozySize");
993
+ }
994
+ function isCompactClassPresent(List){
995
+ for(var i=0;i< List.length;i++) {
996
+ if (List[i] === "sapUiSizeCompact") {
997
+ return true;
998
+ }
999
+ }
1000
+ return false;
1001
+ };
1002
+ //astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpression");
988
1003
  return astExpressionBasic;
989
1004
  };
990
1005
 
@@ -1882,10 +1897,6 @@ sap.ui.define([
1882
1897
  var type = oContext.getProperty("Type");
1883
1898
  var fixedOperator = oContext.getProperty("Condition/FixedOperator");
1884
1899
  var sOperator = this.getAstExpressionLanguage() ? this.astUtil._getCapitalOperatorName(fixedOperator) : fixedOperator;
1885
- var styleClass ="";
1886
- if (this.getAstExpressionLanguage()) {
1887
- styleClass = "sapRULDecisionTableSettingsTableContent";
1888
- }
1889
1900
 
1890
1901
  return new sap.m.ColumnListItem({
1891
1902
  visible: type === sap.rules.ui.DecisionTableColumn.Condition,
@@ -1903,7 +1914,7 @@ sap.ui.define([
1903
1914
  model.setProperty(oContext.getPath() + "/Label", labelValue);
1904
1915
  this._changeColumnStatusToUpdate(oContext);
1905
1916
  }.bind(this)
1906
- }).addStyleClass(styleClass),
1917
+ }),
1907
1918
 
1908
1919
  // gets the vocab col
1909
1920
  new sap.m.Select({
@@ -1928,7 +1939,7 @@ sap.ui.define([
1928
1939
  //Mark column as "Updated"
1929
1940
  this._changeColumnStatusToUpdate(oContext);
1930
1941
  }.bind(this)
1931
- }).addStyleClass(styleClass),
1942
+ }),
1932
1943
 
1933
1944
  // text or guided selection- this will not be supported
1934
1945
  /*new sap.m.Select({
@@ -1971,7 +1982,7 @@ sap.ui.define([
1971
1982
  //Remove coulmn from JSON model
1972
1983
  this._removeColumnFromJsonModel(sequence, status);
1973
1984
  }.bind(this)
1974
- }).setTooltip(this.oBundle.getText("removeColumn")).addStyleClass(styleClass),
1985
+ }).setTooltip(this.oBundle.getText("removeColumn")),
1975
1986
  new sap.m.Button({
1976
1987
  type: sap.m.ButtonType.Transparent,
1977
1988
  icon: sap.ui.core.IconPool.getIconURI("add"),
@@ -1979,11 +1990,11 @@ sap.ui.define([
1979
1990
  //Add coulmn from JSON model
1980
1991
  this._addColumnToJsonModel(sequence);
1981
1992
  }.bind(this)
1982
- }).setTooltip(this.oBundle.getText("addColumn")).addStyleClass(styleClass)
1993
+ }).setTooltip(this.oBundle.getText("addColumn"))
1983
1994
  ]
1984
1995
  })
1985
1996
  ]
1986
- });
1997
+ }).addStyleClass("sapRULDecisionTableSettingsConditionRow");
1987
1998
  };
1988
1999
 
1989
2000
  sap.rules.ui.DecisionTableSettings.prototype._updateDecisionTableHeader = function () {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.101.0
40
+ * @version 1.102.0
41
41
  *
42
42
  * @constructor
43
43
  * @private
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Control
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.101.0
25
+ * @version 1.102.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends Control
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.101.0
28
+ * @version 1.102.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.101.0
27
+ * @version 1.102.0
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.core.Control
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.101.0
36
+ * @version 1.102.0
37
37
  *
38
38
  * @constructor
39
39
  * @public
@@ -46,7 +46,7 @@ sap.ui.define(["sap/base/Log","sap/ui/thirdparty/jquery",
46
46
  * @extends Control
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.101.0
49
+ * @version 1.102.0
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.101.0
27
+ * @version 1.102.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @extends Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.101.0
47
+ * @version 1.102.0
48
48
  *
49
49
  * @constructor
50
50
  * @private
@@ -64,7 +64,7 @@ sap.ui.define([
64
64
  "sap.rules.ui.services.AstExpressionLanguage"
65
65
  ],
66
66
  noLibraryCSS: false,
67
- version: "1.101.0"
67
+ version: "1.102.0"
68
68
  });
69
69
 
70
70
  // sap.rules.ui library contants
@@ -205,7 +205,6 @@
205
205
 
206
206
  .sapAstAutoCompleteSuggestionContentRenderer .sapMDLILabel {
207
207
  font-size: 12px;
208
- height: 28px;
209
208
  }
210
209
 
211
210
  .sapAstAutoCompleteSuggestionContentRenderer .sapUiSizeCompact .sapMDLI {
@@ -49,16 +49,19 @@
49
49
  padding-right: 0.25rem;
50
50
  }
51
51
 
52
- .sapRULDecisionTableSettingsTableContent{
53
- margin-top:0px !important;
54
- margin-bottom:7px !important;
55
- height:1.6rem !important;
52
+ .sapRULDecisionTableSettingsConditionRow {
53
+
54
+ }
55
+ .sapRULDecisionTableSettingsConditionRow .sapAstExpressionPreSpaceMargin {
56
+ margin: 0.1875rem 0 !important;
56
57
  }
57
58
 
58
- .sapRULDecisionTableSettingsAstExpression {
59
+ .sapRULDecisionTableSettingsAstExpressionCompactSize {
59
60
  min-height: 1.6rem !important;
60
61
  line-height:1.5rem !important;
61
62
  }
62
63
 
63
-
64
-
64
+ .sapRULDecisionTableSettingsAstExpressionCozySize {
65
+ min-height: 1.6rem !important;
66
+ line-height:2.125rem !important;
67
+ }
@@ -18,7 +18,7 @@ sap.ui.define(["jquery.sap.global"], function(jQuery) {
18
18
  * @extends sap.ui.model.CompositeType
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.101.0
21
+ * @version 1.102.0
22
22
  *
23
23
  * @constructor
24
24
  * @private