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 +5 -0
- package/dist/tryton-sao.css +3 -0
- package/dist/tryton-sao.js +9 -8
- package/package.json +1 -1
- package/src/sao.js +1 -1
- package/src/sao.less +3 -0
- package/src/view/form.js +8 -7
package/CHANGELOG
CHANGED
package/dist/tryton-sao.css
CHANGED
|
@@ -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
|
}
|
package/dist/tryton-sao.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-redeclare */
|
|
5
5
|
var Sao = {
|
|
6
|
-
__version__: '7.4.
|
|
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
|
|
20543
|
-
'class': '
|
|
20544
|
-
|
|
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
|
-
}).
|
|
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
|
|
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
package/src/sao.js
CHANGED
package/src/sao.less
CHANGED
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
|
|
5656
|
-
'class': '
|
|
5657
|
-
|
|
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
|
-
}).
|
|
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
|
|
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 = '';
|