@sapui5/sap.zen.commons 1.84.32 → 1.84.46

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.
Files changed (96) hide show
  1. package/package.json +1 -1
  2. package/src/sap/zen/commons/.library +19 -10
  3. package/src/sap/zen/commons/AlertLevel.js +71 -0
  4. package/src/sap/zen/commons/BackgroundDesign.js +69 -0
  5. package/src/sap/zen/commons/Cell.js +111 -0
  6. package/src/sap/zen/commons/CellType.js +80 -0
  7. package/src/sap/zen/commons/Format.js +45 -0
  8. package/src/sap/zen/commons/Grid.js +362 -0
  9. package/src/sap/zen/commons/GridRenderer.js +259 -0
  10. package/src/sap/zen/commons/HAlign.js +58 -0
  11. package/src/sap/zen/commons/Padding.js +66 -0
  12. package/src/sap/zen/commons/SemanticStyle.js +55 -0
  13. package/src/sap/zen/commons/Separation.js +71 -0
  14. package/src/sap/zen/commons/SpreadSheet/CXpDataCellValueType.js +21 -0
  15. package/src/sap/zen/commons/SpreadSheet/CXpStyle.js +19 -0
  16. package/src/sap/zen/commons/SpreadSheet/CellInfo.js +109 -0
  17. package/src/sap/zen/commons/SpreadSheet/Workbook.js +304 -0
  18. package/src/sap/zen/commons/VAlign.js +42 -0
  19. package/src/sap/zen/commons/i18n/i18n.properties +11 -0
  20. package/src/sap/zen/commons/i18n/i18n_ar.properties +8 -0
  21. package/src/sap/zen/commons/i18n/i18n_bg.properties +8 -0
  22. package/src/sap/zen/commons/i18n/i18n_ca.properties +8 -0
  23. package/src/sap/zen/commons/i18n/i18n_cs.properties +8 -0
  24. package/src/sap/zen/commons/i18n/i18n_cy.properties +8 -0
  25. package/src/sap/zen/commons/i18n/i18n_da.properties +8 -0
  26. package/src/sap/zen/commons/i18n/i18n_de.properties +8 -0
  27. package/src/sap/zen/commons/i18n/i18n_el.properties +8 -0
  28. package/src/sap/zen/commons/i18n/i18n_en.properties +8 -0
  29. package/src/sap/zen/commons/i18n/i18n_en_GB.properties +8 -0
  30. package/src/sap/zen/commons/i18n/i18n_en_US_sappsd.properties +8 -0
  31. package/src/sap/zen/commons/i18n/i18n_en_US_saprigi.properties +8 -0
  32. package/src/sap/zen/commons/i18n/i18n_en_US_saptrc.properties +8 -0
  33. package/src/sap/zen/commons/i18n/i18n_es.properties +8 -0
  34. package/src/sap/zen/commons/i18n/i18n_es_MX.properties +8 -0
  35. package/src/sap/zen/commons/i18n/i18n_et.properties +8 -0
  36. package/src/sap/zen/commons/i18n/i18n_fi.properties +8 -0
  37. package/src/sap/zen/commons/i18n/i18n_fr.properties +8 -0
  38. package/src/sap/zen/commons/i18n/i18n_fr_CA.properties +8 -0
  39. package/src/sap/zen/commons/i18n/i18n_hi.properties +8 -0
  40. package/src/sap/zen/commons/i18n/i18n_hr.properties +8 -0
  41. package/src/sap/zen/commons/i18n/i18n_hu.properties +8 -0
  42. package/src/sap/zen/commons/i18n/i18n_id.properties +8 -0
  43. package/src/sap/zen/commons/i18n/i18n_it.properties +8 -0
  44. package/src/sap/zen/commons/i18n/i18n_iw.properties +8 -0
  45. package/src/sap/zen/commons/i18n/i18n_ja.properties +8 -0
  46. package/src/sap/zen/commons/i18n/i18n_kk.properties +8 -0
  47. package/src/sap/zen/commons/i18n/i18n_ko.properties +8 -0
  48. package/src/sap/zen/commons/i18n/i18n_lt.properties +8 -0
  49. package/src/sap/zen/commons/i18n/i18n_lv.properties +8 -0
  50. package/src/sap/zen/commons/i18n/i18n_mk.properties +8 -0
  51. package/src/sap/zen/commons/i18n/i18n_ms.properties +8 -0
  52. package/src/sap/zen/commons/i18n/i18n_nl.properties +8 -0
  53. package/src/sap/zen/commons/i18n/i18n_no.properties +8 -0
  54. package/src/sap/zen/commons/i18n/i18n_pl.properties +8 -0
  55. package/src/sap/zen/commons/i18n/i18n_pt.properties +8 -0
  56. package/src/sap/zen/commons/i18n/i18n_pt_PT.properties +8 -0
  57. package/src/sap/zen/commons/i18n/i18n_ro.properties +8 -0
  58. package/src/sap/zen/commons/i18n/i18n_ru.properties +8 -0
  59. package/src/sap/zen/commons/i18n/i18n_sh.properties +8 -0
  60. package/src/sap/zen/commons/i18n/i18n_sk.properties +8 -0
  61. package/src/sap/zen/commons/i18n/i18n_sl.properties +8 -0
  62. package/src/sap/zen/commons/i18n/i18n_sr.properties +8 -0
  63. package/src/sap/zen/commons/i18n/i18n_sv.properties +8 -0
  64. package/src/sap/zen/commons/i18n/i18n_th.properties +8 -0
  65. package/src/sap/zen/commons/i18n/i18n_tr.properties +8 -0
  66. package/src/sap/zen/commons/i18n/i18n_uk.properties +8 -0
  67. package/src/sap/zen/commons/i18n/i18n_vi.properties +8 -0
  68. package/src/sap/zen/commons/i18n/i18n_zh_CN.properties +8 -0
  69. package/src/sap/zen/commons/i18n/i18n_zh_TW.properties +8 -0
  70. package/src/sap/zen/commons/layout/AbsoluteLayout.js +463 -531
  71. package/src/sap/zen/commons/layout/AbsoluteLayoutRenderer.js +169 -198
  72. package/src/sap/zen/commons/layout/MatrixLayout.js +156 -171
  73. package/src/sap/zen/commons/layout/MatrixLayoutCell.js +153 -173
  74. package/src/sap/zen/commons/layout/MatrixLayoutRenderer.js +570 -666
  75. package/src/sap/zen/commons/layout/MatrixLayoutRow.js +115 -129
  76. package/src/sap/zen/commons/layout/PositionContainer.js +374 -446
  77. package/src/sap/zen/commons/library.js +83 -339
  78. package/src/sap/zen/commons/themes/base/jq.less +171 -0
  79. package/src/sap/zen/commons/themes/base/library.source.less +4 -2
  80. package/src/sap/zen/commons/themes/base/shared.less +16 -0
  81. package/src/sap/zen/commons/themes/sap_belize_hcb/library-parameter.json +6 -0
  82. package/src/sap/zen/commons/themes/sap_belize_hcw/library-parameter.json +6 -0
  83. package/src/sap/zen/commons/themes/sap_fiori_3/library.source.less +7 -0
  84. package/src/sap/zen/commons/themes/sap_fiori_3_dark/library-parameter.json +6 -0
  85. package/src/sap/zen/commons/themes/sap_fiori_3_dark/library.source.less +7 -0
  86. package/src/sap/zen/commons/themes/sap_fiori_3_hcb/library-parameter.json +6 -0
  87. package/src/sap/zen/commons/themes/sap_fiori_3_hcb/library.source.less +7 -0
  88. package/src/sap/zen/commons/themes/sap_fiori_3_hcw/library.source.less +7 -0
  89. package/src/sap/zen/commons/thirdparty/lodash.js +17238 -0
  90. package/src/sap/zen/commons/thirdparty/xlsx-protobi.js +11638 -0
  91. package/src/sap/zen/commons/utils/GridUtils.js +1293 -0
  92. package/src/sap/zen/commons/utils/ResourceBundle.js +14 -0
  93. package/src/sap/zen/commons/utils/ResourceModel.js +16 -0
  94. package/src/sap/zen/commons/utils/Utilities.js +81 -0
  95. package/src/sap/zen/commons/utils/jQuery.js +30 -0
  96. package/ui5.yaml +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.zen.commons",
3
- "version": "1.84.32",
3
+ "version": "1.84.46",
4
4
  "description": "SAPUI5 Library sap.zen.commons",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -3,11 +3,10 @@
3
3
 
4
4
  <name>sap.zen.commons</name>
5
5
  <vendor>SAP SE</vendor>
6
- <copyright>(c) Copyright 2010-2019 SAP SE or an SAP affiliate company.</copyright>
7
- <version>1.84.32</version>
8
-
6
+ <copyright>SAPUI5
7
+ (c) Copyright 2009-2020 SAP SE. All rights reserved</copyright>
8
+ <version>1.84.46</version>
9
9
  <documentation>Layout components used by Design Studio. NOT INTENDED FOR STANDALONE USAGE.</documentation>
10
-
11
10
  <dependencies>
12
11
  <dependency>
13
12
  <libraryName>sap.ui.core</libraryName>
@@ -15,15 +14,25 @@
15
14
  <dependency>
16
15
  <libraryName>sap.ui.layout</libraryName>
17
16
  </dependency>
17
+ <dependency>
18
+ <libraryName>sap.m</libraryName>
19
+ </dependency>
18
20
  </dependencies>
19
-
20
21
  <appData>
21
- <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
22
- <exclude name="sap.zen.commons." />
23
- </jsdoc>
22
+ <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
23
+ <exclude name="sap/zen/commons/thirdparty" />
24
+ </jsdoc>
25
+ <documentation
26
+ xmlns="http://www.sap.com/ui5/buildext/documentation"
27
+ indexUrl="../../../../test-resources/sap/zen/commons/demokit/docuindex.json"
28
+ resolve="lib" />
24
29
  <ownership xmlns="http://www.sap.com/ui5/buildext/ownership">
25
- <component>BI-RA-AD-EA</component><!-- default component for library, embedded text as a shortcut for <name>text</name> -->
30
+ <component>BI-RA-AD-EA</component><!-- default component for library, embedded text as a shortcut for <name>text</name> -->
26
31
  </ownership>
32
+ <packaging xmlns="http://www.sap.com/ui5/buildext/packaging" version="2.0" >
33
+ <all-in-one>
34
+ <exclude name="sap/zen/commons/thirdparty/wasabi/"/>
35
+ </all-in-one>
36
+ </packaging>
27
37
  </appData>
28
-
29
38
  </library>
@@ -0,0 +1,71 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2024 SAP SE. All rights reserved.
4
+ */
5
+ /*global sap*/
6
+ sap.ui.define(
7
+ "sap/zen/commons/AlertLevel",
8
+ [],
9
+ function () {
10
+ "use strict";
11
+ /**
12
+ * Alert Level.
13
+ *
14
+ * @enum {string}
15
+ * @alias sap.zen.commons.AlertLevel
16
+ * @public
17
+ */
18
+ var AlertLevel = {
19
+ /**
20
+ * Normal
21
+ * @public
22
+ */
23
+ NORMAL: "0",
24
+ /**
25
+ * Good 1
26
+ * @public
27
+ */
28
+ GOOD_1: "1",
29
+ /**
30
+ * Good 2
31
+ * @public
32
+ */
33
+ GOOD_2: "2",
34
+ /**
35
+ * Good 3
36
+ * @public
37
+ */
38
+ GOOD_3: "3",
39
+ /**
40
+ * Critical 1
41
+ * @public
42
+ */
43
+ CRITICAL_1: "4",
44
+ /**
45
+ * Critical 2
46
+ * @public
47
+ */
48
+ CRITICAL_2: "5",
49
+ /**
50
+ * Critical 3
51
+ * @public
52
+ */
53
+ CRITICAL_3: "6",
54
+ /**
55
+ * Bad 1
56
+ * @public
57
+ */
58
+ BAD_1: "7",
59
+ /**
60
+ * Bad 2
61
+ * @public
62
+ */
63
+ BAD_2: "8",
64
+ /**
65
+ * Bad 3
66
+ * @public
67
+ */
68
+ BAD_3: "9"
69
+ };
70
+ return AlertLevel;
71
+ });
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2024 SAP SE. All rights reserved.
4
+ */
5
+ /*global sap*/
6
+ sap.ui.define(
7
+ "sap/zen/commons/BackgroundDesign", [],
8
+ function () {
9
+ "use strict";
10
+ /**
11
+ * Background design (i.e. color), e.g. of a layout cell.
12
+ *
13
+ * @enum {string}
14
+ * @public
15
+ */
16
+ var BackgroundDesign = {
17
+ /**
18
+ *
19
+ * A background design suitable for borders.
20
+ *
21
+ * @public
22
+ */
23
+ Border: "Border",
24
+ /**
25
+ *
26
+ * An opaque background design that looks dark filled.
27
+ *
28
+ * @public
29
+ */
30
+ Fill1: "Fill1",
31
+ /**
32
+ *
33
+ * An opaque background design that looks medium filled.
34
+ *
35
+ * @public
36
+ */
37
+ Fill2: "Fill2",
38
+ /**
39
+ *
40
+ * An opaque background design that looks light filled.
41
+ *
42
+ * @public
43
+ */
44
+ Fill3: "Fill3",
45
+ /**
46
+ *
47
+ * A background design suitable for headers.
48
+ *
49
+ * @public
50
+ */
51
+ Header: "Header",
52
+ /**
53
+ *
54
+ * A plain but opaque background design.
55
+ *
56
+ * @public
57
+ */
58
+ Plain: "Plain",
59
+ /**
60
+ *
61
+ * A transparent background.
62
+ *
63
+ * @public
64
+ */
65
+ Transparent: "Transparent"
66
+ };
67
+ return BackgroundDesign;
68
+ }
69
+ );
@@ -0,0 +1,111 @@
1
+ /*
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2024 SAP SE. All rights reserved.
4
+ */
5
+ /*global sap*/
6
+ sap.ui.define(
7
+ "sap/zen/commons/Cell",
8
+ [
9
+ "sap/ui/core/Element",
10
+ "sap/zen/commons/CellType"
11
+ ],
12
+ function (
13
+ Element, CellType
14
+ ) {
15
+ "use strict";
16
+ /** Creates and initializes a new Cell.
17
+ * settings.
18
+ * @public
19
+ *
20
+ * @class Cell of a Grid.
21
+ * @extends sap.ui.core.Element
22
+ * @param {string} [sId] ID for the new control, generated automatically if no ID is given
23
+ * @param {object} [mSettings] Initial settings for the new element
24
+ * @abstract
25
+ * @author SAP SE
26
+ * @version 1.84.46
27
+ * @experimental
28
+ * @alias sap.zen.commons.Cell
29
+ * @since 1.0.0
30
+ */
31
+ var oCell = Element.extend(
32
+ "sap.zen.commons.Cell", {
33
+ metadata: {
34
+ library: "sap.zen.commons",
35
+ properties: {
36
+ /**
37
+ * The value that is displayed in the cell
38
+ */
39
+ displayValue: {
40
+ type: "string"
41
+ },
42
+ /**
43
+ * The celltype of the cell. (HEADER, TITLE, RESULT, ...)
44
+ */
45
+ cellType: {
46
+ type: "sap.zen.commons.CellType",
47
+ defaultValue: CellType.STANDARD
48
+ },
49
+ /**
50
+ * The Column of the <code>Cell</code>
51
+ */
52
+ column: {
53
+ type: "int",
54
+ defaultValue: 0
55
+ },
56
+ /**
57
+ * The Icon to be displayed in the <code>Cell</code>
58
+ */
59
+ icon: {
60
+ type: "string"
61
+ },
62
+ /**
63
+ * The Help Id of the <code>Cell</code>. Intended to be used by WebAssist/Enable Now.
64
+ */
65
+ helpId: {
66
+ type: "string"
67
+ },
68
+ /**
69
+ * The value state of the <code>Cell</code>. This property is used for entry ready cells.
70
+ */
71
+ valueState: {
72
+ type: "sap.ui.core.ValueState"
73
+ },
74
+ /**
75
+ * The row of the <code>Cell</code>.
76
+ */
77
+ row: {
78
+ type: "int",
79
+ defaultValue: 0
80
+ },
81
+ /**
82
+ * The indent level of the <code>Cell</code>.
83
+ */
84
+ displayLevel: {
85
+ type: "int"
86
+ },
87
+ /**
88
+ * Indicates whether the <code>Cell</code> is input enabled.
89
+ */
90
+ inputEnabled: {
91
+ type: "boolean"
92
+ },
93
+ /**
94
+ * The semantic class of the Cell. The css class associated to the class is put into the cells td.
95
+ */
96
+ semanticClass: {
97
+ "type": "string"
98
+ },
99
+ /**
100
+ * The Alert Level of the cell for exeptional reporting
101
+ */
102
+ alertLevel: {
103
+ type: "sap.zen.commons.AlertLevel"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ );
109
+ return oCell;
110
+ }
111
+ );
@@ -0,0 +1,80 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2024 SAP SE. All rights reserved.
4
+ */
5
+ /*global sap*/
6
+ sap.ui.define(
7
+ "sap/zen/commons/CellType", [],
8
+ function () {
9
+ "use strict";
10
+ /**
11
+ * Types of a grid cell.
12
+ *
13
+ * @enum {string}
14
+ * @alias sap.zen.commons.CellType
15
+ * @public
16
+ */
17
+ var CellType = {
18
+ /**
19
+ * A header cell, representing a member of a (virtual) dimension
20
+ * @public
21
+ */
22
+ HEADER: "Header",
23
+ /**
24
+ * A title cell, representing a dimension
25
+ * @public
26
+ **/
27
+ TITLE: "Title",
28
+ /**
29
+ * A result cell, representing an aggregated value
30
+ * @public
31
+ **/
32
+ RESULT: "Result",
33
+ /**
34
+ * A result cell, representing an aggregated value with a positive flavour
35
+ * @public
36
+ **/
37
+ RESULT_POSITIVE: "ResultPositive",
38
+ /**
39
+ * A virtual member of a dimension indicating an aggregation of members
40
+ * @public
41
+ **/
42
+ RESULT_HEADER: "ResultHeader",
43
+ /**
44
+ * A result cell, representing an aggregated value with a negative flavour
45
+ * @public
46
+ **/
47
+ RESULT_NEGATIVE: "ResultNegative",
48
+ /**
49
+ * A result cell, representing an aggregated value with a critical flavour
50
+ * @public
51
+ **/
52
+ RESULT_CRITICAL: "ResultCritical",
53
+ /**
54
+ * A data cell, representing value with a positive flavour
55
+ * @public
56
+ **/
57
+ POSITIVE: "Positive",
58
+ /**
59
+ * A data cell, representing value with a negative flavour
60
+ * @public
61
+ **/
62
+ NEGATIVE: "Negative",
63
+ /**
64
+ * A data cell, representing value with a critical flavour
65
+ * @public
66
+ **/
67
+ CRITICAL: "Critical",
68
+ /**
69
+ * A data cell, representing value
70
+ * @public
71
+ **/
72
+ STANDARD: "Standard",
73
+ /**
74
+ * An empty data cell
75
+ * @public
76
+ **/
77
+ EMPTY: "Empty"
78
+ };
79
+ return CellType;
80
+ });
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2024 SAP SE. All rights reserved.
4
+ */
5
+ /*global sap*/
6
+ sap.ui.define(
7
+ "sap/zen/commons/Format", [],
8
+ function () {
9
+ "use strict";
10
+ /**
11
+ * Format to be applied to a <code>Grid</code>
12
+ *
13
+ * @enum {string}
14
+ * @alias sap.zen.commons.Format
15
+ * @public
16
+ */
17
+ var Format = {
18
+ /**
19
+ * Basic grid format
20
+ * @public
21
+ **/
22
+ Basic: "Basic",
23
+ /**
24
+ * mimicking spreadsheet
25
+ * @public
26
+ **/
27
+ ExcelStyle: "ExcelStyle",
28
+ /**
29
+ * business style
30
+ * @public
31
+ **/
32
+ BusinessStyle: "BusinessStyle",
33
+ /**
34
+ * busines formular style
35
+ * @public
36
+ **/
37
+ BusinessStyleFormular: "BusinessStyleFormular",
38
+ /**
39
+ * custom style
40
+ * @public
41
+ **/
42
+ CustomStyle: "CustomStyle"
43
+ };
44
+ return Format;
45
+ });