tryton-sao 8.0.0 → 8.0.2

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/CHANGELOG CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ Version 8.0.2 - 2026-05-02
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 8.0.1 - 2026-04-22
8
+ --------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
11
+
2
12
  Version 8.0.0 - 2026-04-20
3
13
  --------------------------
4
14
  * Bug fixes (see mercurial logs for details)
@@ -9724,12 +9724,10 @@ html.accesskey *[accesskey]:after {
9724
9724
  padding: 0 2px;
9725
9725
  position: absolute;
9726
9726
  text-transform: uppercase;
9727
- margin: 0 -1em;
9727
+ left: -1em;
9728
+ right: 0;
9728
9729
  z-index: 5;
9729
9730
  }
9730
- html.accesskey input[accesskey][type="checkbox"]:after {
9731
- background-color: initial;
9732
- }
9733
9731
  html.accesskey *[accesskey] ~ span[data-accesskey] {
9734
9732
  float: right;
9735
9733
  position: relative;
@@ -9740,10 +9738,13 @@ html.accesskey *[accesskey] ~ span[data-accesskey]:after {
9740
9738
  html.accesskey *[accesskey]:after {
9741
9739
  content: attr(accesskey);
9742
9740
  }
9743
- html.accesskey input[accesskey][type="checkbox"] ~ span[data-accesskey],
9744
- html.accesskey input[accesskey][type="checkbox"] ~ span[data-accesskey],
9745
- html.accesskey select[accesskey] ~ span[data-accesskey] {
9746
- bottom: 1em;
9741
+ html.accesskey[dir="rtl"] *[accesskey] ~ span[data-accesskey]:after,
9742
+ html.accesskey[dir="rtl"] *[accesskey]:after {
9743
+ left: 0;
9744
+ right: -1em;
9745
+ }
9746
+ html.accesskey[dir="rtl"] *[accesskey] ~ span[data-accesskey] {
9747
+ float: left;
9747
9748
  }
9748
9749
  .tab-form,
9749
9750
  .tab-board {
@@ -9974,6 +9975,9 @@ img.icon {
9974
9975
  display: flex;
9975
9976
  overflow: hidden;
9976
9977
  }
9978
+ .treeview > table.tree > thead > tr > th > div.dropdown {
9979
+ overflow: visible;
9980
+ }
9977
9981
  .treeview > table.tree > thead > tr > th > div > label {
9978
9982
  margin: 0;
9979
9983
  overflow: hidden;
@@ -10893,6 +10897,18 @@ input.column-boolean {
10893
10897
  .form .form-hcontainer,
10894
10898
  .form .form-vcontainer {
10895
10899
  display: block;
10900
+ margin-left: 0;
10901
+ }
10902
+ .form .form-container > *,
10903
+ .form .form-hcontainer > *,
10904
+ .form .form-vcontainer > * {
10905
+ padding-left: 0;
10906
+ }
10907
+ .form .form-container > * + *,
10908
+ .form .form-hcontainer > * + *,
10909
+ .form .form-vcontainer > * + * {
10910
+ margin-top: 0;
10911
+ margin-left: 0;
10896
10912
  }
10897
10913
  .form .form-container .form-item,
10898
10914
  .form .form-hcontainer .form-item,
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '8.0.0',
6
+ __version__: '8.0.2',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -17452,11 +17452,13 @@ function eval_pyson(value){
17452
17452
  this.el = jQuery('<div/>', {
17453
17453
  'class': this.class_
17454
17454
  });
17455
+ this.group = jQuery('<div/>', {
17456
+ 'class': 'input-group input-group-sm'
17457
+ }).css('width', '100%').appendTo(this.el);
17455
17458
  this.select = this.labelled = jQuery('<select/>', {
17456
17459
  'class': 'form-control input-sm mousetrap',
17457
17460
  'name': attributes.name,
17458
- });
17459
- this.el.append(this.select);
17461
+ }).appendTo(this.group);
17460
17462
  this.select.change(this.focus_out.bind(this));
17461
17463
  Sao.common.selection_mixin.init.call(this);
17462
17464
  this.init_selection();
@@ -17557,11 +17559,14 @@ function eval_pyson(value){
17557
17559
  this.el = jQuery('<div/>', {
17558
17560
  'class': this.class_
17559
17561
  });
17562
+ this.group = jQuery('<div/>', {
17563
+ 'class': 'input-group input-group-sm'
17564
+ }).css('width', '100%').appendTo(this.el);
17560
17565
  this.input = this.labelled = jQuery('<input/>', {
17561
17566
  'type': 'checkbox',
17562
17567
  'class': 'form-control input-sm mousetrap',
17563
17568
  'name': attributes.name,
17564
- }).appendTo(this.el);
17569
+ }).appendTo(this.group);
17565
17570
  this.input.change(this.focus_out.bind(this));
17566
17571
  this.input.click(function() {
17567
17572
  // Dont trigger click if field is readonly as readonly has no
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "8.0.0",
5
+ "version": "8.0.2",
6
6
  "homepage": "https://www.tryton.org/",
7
7
  "author": {
8
8
  "name": "Tryton"
package/src/sao.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '8.0.0',
6
+ __version__: '8.0.2',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
package/src/sao.less CHANGED
@@ -631,14 +631,11 @@ html.accesskey {
631
631
  padding: 0 2px;
632
632
  position: absolute;
633
633
  text-transform: uppercase;
634
- margin: 0 -1em;
634
+ left: -1em;
635
+ right: 0;
635
636
  z-index: 5;
636
637
  }
637
638
 
638
- input[accesskey][type="checkbox"]:after {
639
- background-color: initial;
640
- }
641
-
642
639
  *[accesskey] ~ span[data-accesskey] {
643
640
  float: right;
644
641
  position: relative;
@@ -652,11 +649,15 @@ html.accesskey {
652
649
  content: attr(accesskey);
653
650
  }
654
651
 
655
- input[accesskey][type="checkbox"],
656
- input[accesskey][type="checkbox"],
657
- select[accesskey] {
658
- & ~ span[data-accesskey] {
659
- bottom: 1em;
652
+ &[dir="rtl"] {
653
+ *[accesskey] ~ span[data-accesskey]:after,
654
+ *[accesskey]:after {
655
+ left: 0;
656
+ right: -1em;
657
+ }
658
+
659
+ *[accesskey] ~ span[data-accesskey] {
660
+ float: left;
660
661
  }
661
662
  }
662
663
  }
@@ -923,6 +924,10 @@ img.icon {
923
924
  display: flex;
924
925
  overflow: hidden;
925
926
 
927
+ &.dropdown {
928
+ overflow: visible;
929
+ }
930
+
926
931
  > label {
927
932
  margin: 0;
928
933
  overflow: hidden;
@@ -1608,6 +1613,16 @@ input.column-boolean {
1608
1613
  .form-container, .form-hcontainer, .form-vcontainer {
1609
1614
  display: block;
1610
1615
 
1616
+ // remove fake gap
1617
+ margin-left: 0;
1618
+ > * {
1619
+ padding-left: 0;
1620
+ }
1621
+ > * + * {
1622
+ margin-top: 0;
1623
+ margin-left: 0;
1624
+ }
1625
+
1611
1626
  .form-item {
1612
1627
  padding: 2px 0;
1613
1628
  }
package/src/view/form.js CHANGED
@@ -2256,11 +2256,13 @@ function eval_pyson(value){
2256
2256
  this.el = jQuery('<div/>', {
2257
2257
  'class': this.class_
2258
2258
  });
2259
+ this.group = jQuery('<div/>', {
2260
+ 'class': 'input-group input-group-sm'
2261
+ }).css('width', '100%').appendTo(this.el);
2259
2262
  this.select = this.labelled = jQuery('<select/>', {
2260
2263
  'class': 'form-control input-sm mousetrap',
2261
2264
  'name': attributes.name,
2262
- });
2263
- this.el.append(this.select);
2265
+ }).appendTo(this.group);
2264
2266
  this.select.change(this.focus_out.bind(this));
2265
2267
  Sao.common.selection_mixin.init.call(this);
2266
2268
  this.init_selection();
@@ -2361,11 +2363,14 @@ function eval_pyson(value){
2361
2363
  this.el = jQuery('<div/>', {
2362
2364
  'class': this.class_
2363
2365
  });
2366
+ this.group = jQuery('<div/>', {
2367
+ 'class': 'input-group input-group-sm'
2368
+ }).css('width', '100%').appendTo(this.el);
2364
2369
  this.input = this.labelled = jQuery('<input/>', {
2365
2370
  'type': 'checkbox',
2366
2371
  'class': 'form-control input-sm mousetrap',
2367
2372
  'name': attributes.name,
2368
- }).appendTo(this.el);
2373
+ }).appendTo(this.group);
2369
2374
  this.input.change(this.focus_out.bind(this));
2370
2375
  this.input.click(function() {
2371
2376
  // Dont trigger click if field is readonly as readonly has no