@eclipse-scout/chart 22.0.1 → 22.0.11

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/dist/file-list CHANGED
@@ -1,6 +1,13 @@
1
+ eclipse-scout-chart-fe715d8a9514a9a96afc.min.js
2
+ eclipse-scout-chart-fe715d8a9514a9a96afc.min.js.LICENSE.txt
3
+ eclipse-scout-chart-fe715d8a9514a9a96afc.min.js.map
4
+ eclipse-scout-chart-theme-4801a2aff3179586b17c.min.css
5
+ eclipse-scout-chart-theme-dark-7429dc23c823152027f3.min.css
1
6
  eclipse-scout-chart-theme-dark.css
2
7
  eclipse-scout-chart-theme-dark.css.map
3
8
  eclipse-scout-chart-theme.css
4
9
  eclipse-scout-chart-theme.css.map
5
10
  eclipse-scout-chart.js
6
11
  eclipse-scout-chart.js.map
12
+ file-list
13
+ texts.json
@@ -0,0 +1,70 @@
1
+ {
2
+ "default": {
3
+ "ui.Bio": "Tri.",
4
+ "ui.Brd": "quad",
5
+ "ui.Chart": "Chart",
6
+ "ui.Mio": "Mio.",
7
+ "ui.Mrd": "Bio.",
8
+ "ui.TooMuchData": "Too much data",
9
+ "ui.Trd": "Sex.",
10
+ "ui.Tri": "Qui.",
11
+ "ui.Value": "Value",
12
+ "ui.bar": "Bar",
13
+ "ui.groupedByDate": "grouped by date",
14
+ "ui.groupedByMonth": "grouped by month",
15
+ "ui.groupedByWeekday": "grouped by weekday",
16
+ "ui.groupedByYear": "grouped by year",
17
+ "ui.line": "Line"
18
+ },
19
+ "fr": {
20
+ "ui.Bio": "Bio.",
21
+ "ui.Brd": "Brd.",
22
+ "ui.Chart": "Diagramme",
23
+ "ui.Mio": "Mio.",
24
+ "ui.Mrd": "Mrd.",
25
+ "ui.TooMuchData": "Trop de données",
26
+ "ui.Trd": "Trd.",
27
+ "ui.Tri": "Tri.",
28
+ "ui.Value": "Valeur",
29
+ "ui.bar": "barre",
30
+ "ui.groupedByDate": "groupé par date",
31
+ "ui.groupedByMonth": "groupé par mois",
32
+ "ui.groupedByWeekday": "groupé par jour de la semaine",
33
+ "ui.groupedByYear": "groupé par an",
34
+ "ui.line": "Ligne"
35
+ },
36
+ "it": {
37
+ "ui.Bio": "Bio",
38
+ "ui.Brd": "Brd",
39
+ "ui.Chart": "Diagramma",
40
+ "ui.Mio": "Mio",
41
+ "ui.Mrd": "Mrd",
42
+ "ui.TooMuchData": "Troppi dati",
43
+ "ui.Trd": "Trd",
44
+ "ui.Tri": "Tri",
45
+ "ui.Value": "Valore",
46
+ "ui.bar": "barra",
47
+ "ui.groupedByDate": "raggruppato per data",
48
+ "ui.groupedByMonth": "raggruppato per mese",
49
+ "ui.groupedByWeekday": "raggruppato per giorno della settimana",
50
+ "ui.groupedByYear": "raggruppato per anno",
51
+ "ui.line": "Linea"
52
+ },
53
+ "de": {
54
+ "ui.Bio": "Bio.",
55
+ "ui.Brd": "Brd.",
56
+ "ui.Chart": "Diagramm",
57
+ "ui.Mio": "Mio.",
58
+ "ui.Mrd": "Mrd.",
59
+ "ui.TooMuchData": "Zu viele Daten",
60
+ "ui.Trd": "Trd.",
61
+ "ui.Tri": "Tri.",
62
+ "ui.Value": "Wert",
63
+ "ui.bar": "Balken",
64
+ "ui.groupedByDate": "gruppiert nach Datum",
65
+ "ui.groupedByMonth": "gruppiert nach Monat",
66
+ "ui.groupedByWeekday": "gruppiert nach Wochentag",
67
+ "ui.groupedByYear": "gruppiert nach Jahr",
68
+ "ui.line": "Linie"
69
+ }
70
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-scout/chart",
3
- "version": "22.0.1",
3
+ "version": "22.0.11",
4
4
  "description": "Eclipse Scout chart",
5
5
  "author": "BSI Business Systems Integration AG",
6
6
  "homepage": "https://www.eclipse.org/scout",
@@ -25,13 +25,13 @@
25
25
  "src"
26
26
  ],
27
27
  "devDependencies": {
28
- "@eclipse-scout/cli": "22.0.1",
28
+ "@eclipse-scout/cli": "22.0.11",
29
29
  "@eclipse-scout/releng": "^22.0.0",
30
30
  "jasmine-core": "3.10.1",
31
31
  "karma": "6.3.9"
32
32
  },
33
33
  "dependencies": {
34
- "@eclipse-scout/core": "22.0.1",
34
+ "@eclipse-scout/core": "22.0.11",
35
35
  "jquery": "3.6.0",
36
36
  "chart.js": "3.7.0",
37
37
  "chartjs-plugin-datalabels": "2.0.0"
@@ -980,9 +980,11 @@ export default class ChartJsRenderer extends AbstractChartRenderer {
980
980
  this._tooltip.$container
981
981
  .css('pointer-events', 'none');
982
982
 
983
+ let reposition = false;
983
984
  if ((tooltipOptions.titleFont || {}).family) {
984
985
  this._tooltip.$container
985
986
  .css('--chart-tooltip-font-family', tooltipOptions.titleFont.family);
987
+ reposition = true;
986
988
  }
987
989
 
988
990
  let maxLabelPrefSize = 0;
@@ -992,6 +994,10 @@ export default class ChartJsRenderer extends AbstractChartRenderer {
992
994
  if (maxLabelPrefSize > 0) {
993
995
  this._tooltip.$container
994
996
  .css('--chart-tooltip-label-width', Math.min(maxLabelPrefSize, 120) + 'px');
997
+ reposition = true;
998
+ }
999
+ if (reposition) {
1000
+ this._tooltip.position();
995
1001
  }
996
1002
  }
997
1003
 
@@ -115,14 +115,13 @@
115
115
  .select-axis, .select-data {
116
116
  position: relative;
117
117
  height: 30px;
118
- width: calc(100% - 8px);
119
- margin: 0 4px 2px;
118
+ width: calc(100% - 6px);
119
+ margin: 0 3px 2px;
120
120
  padding-left: 8px;
121
121
  padding-right: 20px;
122
+ padding-top: @text-margin-top;
122
123
  border-radius: @border-radius;
123
-
124
124
  cursor: pointer;
125
-
126
125
  line-height: 30px;
127
126
  #scout.overflow-ellipsis();
128
127
 
@@ -166,13 +165,14 @@
166
165
  font-size: 16px;
167
166
  line-height: 16px;
168
167
  right: 8px;
169
- top: 6px;
168
+ top: 7px;
170
169
  #scout.font-icon();
171
170
  }
172
171
 
173
172
  &.data-count.selected::before {
174
173
  content: @icon-count;
175
174
  font-size: 20px;
175
+ top: 6px;
176
176
  right: 5px;
177
177
  }
178
178
 
@@ -182,8 +182,6 @@
182
182
 
183
183
  &.data-avg.selected::before {
184
184
  content: @icon-avg;
185
- top: 2px;
186
- font-size: 30px;
187
185
  }
188
186
  }
189
187
 
@@ -295,4 +293,4 @@
295
293
 
296
294
  @keyframes hide-axis-select {
297
295
  .keyframes-hide-axis-select();
298
- }
296
+ }
package/LICENSE DELETED
@@ -1,210 +0,0 @@
1
- Eclipse Public License - v 1.0
2
-
3
- THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
4
- LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
5
- CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
6
-
7
- 1. DEFINITIONS
8
-
9
- "Contribution" means:
10
-
11
- a) in the case of the initial Contributor, the initial code and documentation
12
- distributed under this Agreement, and
13
-
14
- b) in the case of each subsequent Contributor:
15
-
16
- i) changes to the Program, and
17
-
18
- ii) additions to the Program;
19
-
20
- where such changes and/or additions to the Program originate from and are
21
- distributed by that particular Contributor. A Contribution 'originates' from
22
- a Contributor if it was added to the Program by such Contributor itself or
23
- anyone acting on such Contributor's behalf. Contributions do not include additions
24
- to the Program which: (i) are separate modules of software distributed in
25
- conjunction with the Program under their own license agreement, and (ii) are
26
- not derivative works of the Program.
27
-
28
- "Contributor" means any person or entity that distributes the Program.
29
-
30
- "Licensed Patents" mean patent claims licensable by a Contributor which are
31
- necessarily infringed by the use or sale of its Contribution alone or when
32
- combined with the Program.
33
-
34
- "Program" means the Contributions distributed in accordance with this Agreement.
35
-
36
- "Recipient" means anyone who receives the Program under this Agreement, including
37
- all Contributors.
38
-
39
- 2. GRANT OF RIGHTS
40
-
41
- a) Subject to the terms of this Agreement, each Contributor hereby grants
42
- Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce,
43
- prepare derivative works of, publicly display, publicly perform, distribute
44
- and sublicense the Contribution of such Contributor, if any, and such derivative
45
- works, in source code and object code form.
46
-
47
- b) Subject to the terms of this Agreement, each Contributor hereby grants
48
- Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed
49
- Patents to make, use, sell, offer to sell, import and otherwise transfer the
50
- Contribution of such Contributor, if any, in source code and object code form.
51
- This patent license shall apply to the combination of the Contribution and
52
- the Program if, at the time the Contribution is added by the Contributor,
53
- such addition of the Contribution causes such combination to be covered by
54
- the Licensed Patents. The patent license shall not apply to any other combinations
55
- which include the Contribution. No hardware per se is licensed hereunder.
56
-
57
- c) Recipient understands that although each Contributor grants the licenses
58
- to its Contributions set forth herein, no assurances are provided by any Contributor
59
- that the Program does not infringe the patent or other intellectual property
60
- rights of any other entity. Each Contributor disclaims any liability to Recipient
61
- for claims brought by any other entity based on infringement of intellectual
62
- property rights or otherwise. As a condition to exercising the rights and
63
- licenses granted hereunder, each Recipient hereby assumes sole responsibility
64
- to secure any other intellectual property rights needed, if any. For example,
65
- if a third party patent license is required to allow Recipient to distribute
66
- the Program, it is Recipient's responsibility to acquire that license before
67
- distributing the Program.
68
-
69
- d) Each Contributor represents that to its knowledge it has sufficient copyright
70
- rights in its Contribution, if any, to grant the copyright license set forth
71
- in this Agreement.
72
-
73
- 3. REQUIREMENTS
74
-
75
- A Contributor may choose to distribute the Program in object code form under
76
- its own license agreement, provided that:
77
-
78
- a) it complies with the terms and conditions of this Agreement; and
79
-
80
- b) its license agreement:
81
-
82
- i) effectively disclaims on behalf of all Contributors all warranties and
83
- conditions, express and implied, including warranties or conditions of title
84
- and non-infringement, and implied warranties or conditions of merchantability
85
- and fitness for a particular purpose;
86
-
87
- ii) effectively excludes on behalf of all Contributors all liability for damages,
88
- including direct, indirect, special, incidental and consequential damages,
89
- such as lost profits;
90
-
91
- iii) states that any provisions which differ from this Agreement are offered
92
- by that Contributor alone and not by any other party; and
93
-
94
- iv) states that source code for the Program is available from such Contributor,
95
- and informs licensees how to obtain it in a reasonable manner on or through
96
- a medium customarily used for software exchange.
97
-
98
- When the Program is made available in source code form:
99
-
100
- a) it must be made available under this Agreement; and
101
-
102
- b) a copy of this Agreement must be included with each copy of the Program.
103
-
104
- Contributors may not remove or alter any copyright notices contained within
105
- the Program.
106
-
107
- Each Contributor must identify itself as the originator of its Contribution,
108
- if any, in a manner that reasonably allows subsequent Recipients to identify
109
- the originator of the Contribution.
110
-
111
- 4. COMMERCIAL DISTRIBUTION
112
-
113
- Commercial distributors of software may accept certain responsibilities with
114
- respect to end users, business partners and the like. While this license is
115
- intended to facilitate the commercial use of the Program, the Contributor
116
- who includes the Program in a commercial product offering should do so in
117
- a manner which does not create potential liability for other Contributors.
118
- Therefore, if a Contributor includes the Program in a commercial product offering,
119
- such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
120
- every other Contributor ("Indemnified Contributor") against any losses, damages
121
- and costs (collectively "Losses") arising from claims, lawsuits and other
122
- legal actions brought by a third party against the Indemnified Contributor
123
- to the extent caused by the acts or omissions of such Commercial Contributor
124
- in connection with its distribution of the Program in a commercial product
125
- offering. The obligations in this section do not apply to any claims or Losses
126
- relating to any actual or alleged intellectual property infringement. In order
127
- to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
128
- Contributor in writing of such claim, and b) allow the Commercial Contributor
129
- to control, and cooperate with the Commercial Contributor in, the defense
130
- and any related settlement negotiations. The Indemnified Contributor may participate
131
- in any such claim at its own expense.
132
-
133
- For example, a Contributor might include the Program in a commercial product
134
- offering, Product X. That Contributor is then a Commercial Contributor. If
135
- that Commercial Contributor then makes performance claims, or offers warranties
136
- related to Product X, those performance claims and warranties are such Commercial
137
- Contributor's responsibility alone. Under this section, the Commercial Contributor
138
- would have to defend claims against the other Contributors related to those
139
- performance claims and warranties, and if a court requires any other Contributor
140
- to pay any damages as a result, the Commercial Contributor must pay those
141
- damages.
142
-
143
- 5. NO WARRANTY
144
-
145
- EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON
146
- AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS
147
- OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
148
- TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
149
- Each Recipient is solely responsible for determining the appropriateness of
150
- using and distributing the Program and assumes all risks associated with its
151
- exercise of rights under this Agreement, including but not limited to the
152
- risks and costs of program errors, compliance with applicable laws, damage
153
- to or loss of data, programs or equipment, and unavailability or interruption
154
- of operations.
155
-
156
- 6. DISCLAIMER OF LIABILITY
157
-
158
- EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
159
- CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
160
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION
161
- LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
162
- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
163
- WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
164
- GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
165
-
166
- 7. GENERAL
167
-
168
- If any provision of this Agreement is invalid or unenforceable under applicable
169
- law, it shall not affect the validity or enforceability of the remainder of
170
- the terms of this Agreement, and without further action by the parties hereto,
171
- such provision shall be reformed to the minimum extent necessary to make such
172
- provision valid and enforceable.
173
-
174
- If Recipient institutes patent litigation against any entity (including a
175
- cross-claim or counterclaim in a lawsuit) alleging that the Program itself
176
- (excluding combinations of the Program with other software or hardware) infringes
177
- such Recipient's patent(s), then such Recipient's rights granted under Section
178
- 2(b) shall terminate as of the date such litigation is filed.
179
-
180
- All Recipient's rights under this Agreement shall terminate if it fails to
181
- comply with any of the material terms or conditions of this Agreement and
182
- does not cure such failure in a reasonable period of time after becoming aware
183
- of such noncompliance. If all Recipient's rights under this Agreement terminate,
184
- Recipient agrees to cease use and distribution of the Program as soon as reasonably
185
- practicable. However, Recipient's obligations under this Agreement and any
186
- licenses granted by Recipient relating to the Program shall continue and survive.
187
-
188
- Everyone is permitted to copy and distribute copies of this Agreement, but
189
- in order to avoid inconsistency the Agreement is copyrighted and may only
190
- be modified in the following manner. The Agreement Steward reserves the right
191
- to publish new versions (including revisions) of this Agreement from time
192
- to time. No one other than the Agreement Steward has the right to modify this
193
- Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse
194
- Foundation may assign the responsibility to serve as the Agreement Steward
195
- to a suitable separate entity. Each new version of the Agreement will be given
196
- a distinguishing version number. The Program (including Contributions) may
197
- always be distributed subject to the version of the Agreement under which
198
- it was received. In addition, after a new version of the Agreement is published,
199
- Contributor may elect to distribute the Program (including its Contributions)
200
- under the new version. Except as expressly stated in Sections 2(a) and 2(b)
201
- above, Recipient receives no rights or licenses to the intellectual property
202
- of any Contributor under this Agreement, whether expressly, by implication,
203
- estoppel or otherwise. All rights in the Program not expressly granted under
204
- this Agreement are reserved.
205
-
206
- This Agreement is governed by the laws of the State of New York and the intellectual
207
- property laws of the United States of America. No party to this Agreement
208
- will bring a legal action under this Agreement more than one year after the
209
- cause of action arose. Each party waives its rights to a jury trial in any
210
- resulting litigation.