x4js 1.4.40 → 1.4.43

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/README.md CHANGED
@@ -2,4 +2,18 @@
2
2
 
3
3
  This is the x4 framework repository.
4
4
 
5
- You will find the documentation & tutorials [Here](https://x4js.org)
5
+ X4 is a full typescript framework to develop Web or Desktop applications.
6
+ Included more than 50 controls like grids, charts, etc. Everything needed to push the limits of your creativity.
7
+ If these components are not enough, you can create your in few lines.
8
+
9
+ ## Home page
10
+ see [home](https://x4js.org)
11
+
12
+
13
+ ## Documentation
14
+ see [documentation](https://x4js.org/doc/)
15
+
16
+ ## API
17
+ see [API](https://x4js.org/api/)
18
+
19
+
package/lib/cardview.js CHANGED
@@ -99,6 +99,9 @@ class CardView extends component_1.Component {
99
99
  if (!page.dom) {
100
100
  this._preparePage(page);
101
101
  }
102
+ if (this.m_cpage.selector) {
103
+ this.m_cpage.selector.addClass('@active');
104
+ }
102
105
  }
103
106
  this.emit('change', (0, x4events_1.EvChange)(this.m_cpage.name));
104
107
  }
package/lib/gridview.js CHANGED
@@ -398,12 +398,14 @@ class GridView extends layout_1.VLayout {
398
398
  _col.width = width;
399
399
  if (_col.flex) {
400
400
  _col.$hdr.removeClass('@flex');
401
+ _col.$ftr?.removeClass('@flex');
401
402
  _col.flex = undefined;
402
403
  updateFlex = true;
403
404
  }
404
405
  }
405
406
  else if (width < 0 && !_col.flex) {
406
407
  _col.$hdr.addClass('@flex');
408
+ _col.$ftr?.addClass('@flex');
407
409
  _col.flex = 1;
408
410
  updateFlex = true;
409
411
  }
package/lib/x4.css CHANGED
@@ -27,7 +27,7 @@
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
29
  :root {
30
- --x4-font: "Inter";
30
+ --x4-font: "Helvetica, Arial, Sans-Serif";
31
31
  --x4-font-size: 13px;
32
32
  --x4-base-color: #266888;
33
33
  --x4-selection-color: #2458B3;
@@ -61,7 +61,7 @@
61
61
  --x4-icon-angle-down: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="currentColor"><path d="M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"/></svg>';
62
62
  --x4-icon-calendar-days: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M160 32V64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V160H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32zM0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM192 304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208C199.2 256 192 263.2 192 272V304zM336 256C327.2 256 320 263.2 320 272V304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336zM64 432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80C71.16 384 64 391.2 64 400V432zM208 384C199.2 384 192 391.2 192 400V432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208zM320 432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336C327.2 384 320 391.2 320 400V432z"/></svg>';
63
63
  --x4-icon-tip: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM296 336h-16V248C280 234.8 269.3 224 256 224H224C210.8 224 200 234.8 200 248S210.8 272 224 272h8v64h-16C202.8 336 192 346.8 192 360S202.8 384 216 384h80c13.25 0 24-10.75 24-24S309.3 336 296 336zM256 192c17.67 0 32-14.33 32-32c0-17.67-14.33-32-32-32S224 142.3 224 160C224 177.7 238.3 192 256 192z"/></svg>';
64
- --x4-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"/></svg>';
64
+ --x4-icon-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"/></svg>';
65
65
  }
66
66
  /* source: https://tailwindcss.com/docs/customizing-colors/#default-color-palette */
67
67
  :root {
@@ -703,8 +703,8 @@ textarea::selection {
703
703
  padding: 4px;
704
704
  }
705
705
  .x-menu-item:hover {
706
- background-color: #c6d3d9;
707
- color: var(--gray-900);
706
+ background-color: var(--x4-hover-color);
707
+ color: var(--x4-hover-text);
708
708
  }
709
709
  .x-menu-item:hover .x-icon {
710
710
  color: var(--gray-900);
@@ -1168,10 +1168,12 @@ textarea::selection {
1168
1168
  .x-spreadsheet .x-cell.center,
1169
1169
  .x-grid-view .x-cell.center {
1170
1170
  text-align: center;
1171
+ justify-content: center;
1171
1172
  }
1172
1173
  .x-spreadsheet .x-cell.right,
1173
1174
  .x-grid-view .x-cell.right {
1174
1175
  text-align: right;
1176
+ justify-content: right;
1175
1177
  }
1176
1178
  .x-spreadsheet:focus,
1177
1179
  .x-grid-view:focus {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "1.4.40",
3
+ "version": "1.4.43",
4
4
  "description": "X4js core files",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "keywords": [
13
13
  "typescript",
14
- "framework"
14
+ "framework",
15
+ "sap", "web", "desktop", "application"
15
16
  ],
16
17
  "scripts": {
17
18
  "build": "tsc && lessc src/x4.less >lib/x4.css",
package/src/cardview.ts CHANGED
@@ -137,13 +137,16 @@ export class CardView<P extends CardViewProps = CardViewProps, E extends CardVie
137
137
  }
138
138
 
139
139
  let page = this.m_cpage.page as Component;
140
-
141
140
  page.addClass('@active');
142
141
  page.removeClass('@hidden');
143
142
 
144
143
  if (!page.dom) {
145
144
  this._preparePage(page);
146
145
  }
146
+
147
+ if (this.m_cpage.selector) {
148
+ this.m_cpage.selector.addClass('@active');
149
+ }
147
150
  }
148
151
 
149
152
  this.emit('change', EvChange(this.m_cpage.name));
package/src/gridview.ts CHANGED
@@ -555,12 +555,14 @@ export class GridView extends VLayout<GridViewProps, GridViewEventMap> {
555
555
  _col.width = width;
556
556
  if( _col.flex ) {
557
557
  _col.$hdr.removeClass( '@flex' );
558
+ _col.$ftr?.removeClass( '@flex' );
558
559
  _col.flex = undefined;
559
560
  updateFlex = true;
560
561
  }
561
562
  }
562
563
  else if( width<0 && !_col.flex ) {
563
564
  _col.$hdr.addClass( '@flex' );
565
+ _col.$ftr?.addClass( '@flex' );
564
566
  _col.flex = 1;
565
567
  updateFlex = true;
566
568
  }
package/src/x4.less CHANGED
@@ -30,7 +30,7 @@
30
30
  **/
31
31
 
32
32
  :root {
33
- --x4-font: "Inter";
33
+ --x4-font: "Helvetica, Arial, Sans-Serif";
34
34
  --x4-font-size: 13px;
35
35
 
36
36
  --x4-base-color: #266888;
@@ -75,7 +75,7 @@
75
75
  --x4-icon-angle-down: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="currentColor"><path d="M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"/></svg>';
76
76
  --x4-icon-calendar-days: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M160 32V64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V160H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32zM0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM192 304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208C199.2 256 192 263.2 192 272V304zM336 256C327.2 256 320 263.2 320 272V304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336zM64 432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80C71.16 384 64 391.2 64 400V432zM208 384C199.2 384 192 391.2 192 400V432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208zM320 432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336C327.2 384 320 391.2 320 400V432z"/></svg>';
77
77
  --x4-icon-tip: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM296 336h-16V248C280 234.8 269.3 224 256 224H224C210.8 224 200 234.8 200 248S210.8 272 224 272h8v64h-16C202.8 336 192 346.8 192 360S202.8 384 216 384h80c13.25 0 24-10.75 24-24S309.3 336 296 336zM256 192c17.67 0 32-14.33 32-32c0-17.67-14.33-32-32-32S224 142.3 224 160C224 177.7 238.3 192 256 192z"/></svg>';
78
- --x4-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"/></svg>';
78
+ --x4-icon-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"/></svg>';
79
79
  }
80
80
 
81
81
  @BLACK10: rgba(0,0,0,0.1);
@@ -878,8 +878,9 @@ textarea {
878
878
  }
879
879
 
880
880
  &:hover {
881
- background-color: #c6d3d9;
882
- color: var( --gray-900 );
881
+ background-color: var( --x4-hover-color);
882
+ color: var(--x4-hover-text);
883
+
883
884
  .x-icon {
884
885
  color: var( --gray-900 );
885
886
  }
@@ -1415,10 +1416,12 @@ textarea {
1415
1416
 
1416
1417
  &.center {
1417
1418
  text-align: center;
1419
+ justify-content: center;
1418
1420
  }
1419
1421
 
1420
1422
  &.right {
1421
1423
  text-align: right;
1424
+ justify-content: right;
1422
1425
  }
1423
1426
  }
1424
1427