tryton-sao 7.4.7 → 7.4.8

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,9 @@
1
1
 
2
+ Version 7.4.8 - 2025-04-02
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.4.7 - 2025-03-15
3
8
  --------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -10547,6 +10547,9 @@ input.column-boolean {
10547
10547
  float: none;
10548
10548
  }
10549
10549
  @media screen and (max-width: 767px) {
10550
+ .form-dict-container {
10551
+ grid-template-columns: 100%;
10552
+ }
10550
10553
  .dict-row {
10551
10554
  grid-column: 1;
10552
10555
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.4.7',
6
+ __version__: '7.4.8',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -20518,7 +20518,6 @@ function eval_pyson(value){
20518
20518
  _parse: Sao.common.parse_date,
20519
20519
  create_widget: function() {
20520
20520
  Sao.View.Form.Dict.Date._super.create_widget.call(this);
20521
- var group = this.input.parent().find('.input-group-btn');
20522
20521
  this.input_date = jQuery('<input/>', {
20523
20522
  'type': this._input,
20524
20523
  'role': 'button',
@@ -20539,12 +20538,15 @@ function eval_pyson(value){
20539
20538
  }
20540
20539
  });
20541
20540
  if (this.input_date[0].type == this._input) {
20542
- var icon = jQuery('<button/>', {
20543
- 'class': 'btn btn-default',
20544
- 'type': 'button',
20541
+ var group = jQuery('<div/>', {
20542
+ 'class': 'input-icon input-icon-secondary',
20543
+ }).prependTo(this.input.parent());
20544
+ this.input.appendTo(group);
20545
+ var icon = jQuery('<div/>', {
20546
+ 'class': 'icon-input icon-secondary',
20545
20547
  'aria-label': Sao.i18n.gettext("Open the calendar"),
20546
20548
  'title': Sao.i18n.gettext("Open the calendar"),
20547
- }).prependTo(group);
20549
+ }).appendTo(group);
20548
20550
  this.input_date.appendTo(icon);
20549
20551
  Sao.common.ICONFACTORY.get_icon_img('tryton-date')
20550
20552
  .appendTo(icon);
@@ -20574,8 +20576,7 @@ function eval_pyson(value){
20574
20576
  return this._parse(this.format, this.input.val());
20575
20577
  },
20576
20578
  set_value: function(value) {
20577
- if ((value instanceof Sao.DateTime) ||
20578
- (value instanceof Sao.Date)) {
20579
+ if (value && (value.isDate || value.isDateTime)) {
20579
20580
  value = this._format(this.format, value);
20580
20581
  } else {
20581
20582
  value = '';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "7.4.7",
5
+ "version": "7.4.8",
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__: '7.4.7',
6
+ __version__: '7.4.8',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
package/src/sao.less CHANGED
@@ -1194,6 +1194,9 @@ input.column-boolean {
1194
1194
  }
1195
1195
 
1196
1196
  @media screen and (max-width: @screen-xs-max) {
1197
+ .form-dict-container {
1198
+ grid-template-columns: 100%;
1199
+ }
1197
1200
  .dict-row {
1198
1201
  grid-column: 1;
1199
1202
  }
package/src/view/form.js CHANGED
@@ -5631,7 +5631,6 @@ function eval_pyson(value){
5631
5631
  _parse: Sao.common.parse_date,
5632
5632
  create_widget: function() {
5633
5633
  Sao.View.Form.Dict.Date._super.create_widget.call(this);
5634
- var group = this.input.parent().find('.input-group-btn');
5635
5634
  this.input_date = jQuery('<input/>', {
5636
5635
  'type': this._input,
5637
5636
  'role': 'button',
@@ -5652,12 +5651,15 @@ function eval_pyson(value){
5652
5651
  }
5653
5652
  });
5654
5653
  if (this.input_date[0].type == this._input) {
5655
- var icon = jQuery('<button/>', {
5656
- 'class': 'btn btn-default',
5657
- 'type': 'button',
5654
+ var group = jQuery('<div/>', {
5655
+ 'class': 'input-icon input-icon-secondary',
5656
+ }).prependTo(this.input.parent());
5657
+ this.input.appendTo(group);
5658
+ var icon = jQuery('<div/>', {
5659
+ 'class': 'icon-input icon-secondary',
5658
5660
  'aria-label': Sao.i18n.gettext("Open the calendar"),
5659
5661
  'title': Sao.i18n.gettext("Open the calendar"),
5660
- }).prependTo(group);
5662
+ }).appendTo(group);
5661
5663
  this.input_date.appendTo(icon);
5662
5664
  Sao.common.ICONFACTORY.get_icon_img('tryton-date')
5663
5665
  .appendTo(icon);
@@ -5687,8 +5689,7 @@ function eval_pyson(value){
5687
5689
  return this._parse(this.format, this.input.val());
5688
5690
  },
5689
5691
  set_value: function(value) {
5690
- if ((value instanceof Sao.DateTime) ||
5691
- (value instanceof Sao.Date)) {
5692
+ if (value && (value.isDate || value.isDateTime)) {
5692
5693
  value = this._format(this.format, value);
5693
5694
  } else {
5694
5695
  value = '';