Fixes
gitea/hedera-web/pipeline/head This commit looks good
Details
gitea/hedera-web/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e635807cb9
commit
7669dc0db0
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.407.77) stable; urgency=low
|
hedera-web (1.407.78) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,7 @@ module.exports = new Class({
|
||||||
_disabled: false,
|
_disabled: false,
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var bar = this.createRoot('div');
|
var node = this.createRoot('div');
|
||||||
bar.className = 'htk-assistant-bar';
|
|
||||||
|
|
||||||
var previousButton = new Htk.Button({
|
var previousButton = new Htk.Button({
|
||||||
icon: 'arrow_back_ios',
|
icon: 'arrow_back_ios',
|
||||||
|
@ -47,11 +46,11 @@ module.exports = new Class({
|
||||||
}).node;
|
}).node;
|
||||||
previousButton.classList.add('previous');
|
previousButton.classList.add('previous');
|
||||||
previousButton.addEventListener('click', this.movePrevious.bind(this));
|
previousButton.addEventListener('click', this.movePrevious.bind(this));
|
||||||
bar.appendChild(previousButton);
|
node.appendChild(previousButton);
|
||||||
|
|
||||||
var steps = this.createElement('div');
|
var steps = this.createElement('div');
|
||||||
steps.className = 'steps';
|
steps.className = 'steps';
|
||||||
bar.appendChild(steps);
|
node.appendChild(steps);
|
||||||
|
|
||||||
var nextButton = new Htk.Button({
|
var nextButton = new Htk.Button({
|
||||||
icon: 'arrow_forward_ios',
|
icon: 'arrow_forward_ios',
|
||||||
|
@ -59,7 +58,7 @@ module.exports = new Class({
|
||||||
}).node;
|
}).node;
|
||||||
nextButton.classList.add('next');
|
nextButton.classList.add('next');
|
||||||
nextButton.addEventListener('click', this.moveNext.bind(this));
|
nextButton.addEventListener('click', this.moveNext.bind(this));
|
||||||
bar.appendChild(nextButton);
|
node.appendChild(nextButton);
|
||||||
|
|
||||||
var endButton = new Htk.Button({
|
var endButton = new Htk.Button({
|
||||||
icon: 'done',
|
icon: 'done',
|
||||||
|
@ -67,7 +66,7 @@ module.exports = new Class({
|
||||||
}).node;
|
}).node;
|
||||||
endButton.classList.add('end');
|
endButton.classList.add('end');
|
||||||
endButton.addEventListener('click', this.end.bind(this));
|
endButton.addEventListener('click', this.end.bind(this));
|
||||||
bar.appendChild(endButton);
|
node.appendChild(endButton);
|
||||||
|
|
||||||
this._steps = steps;
|
this._steps = steps;
|
||||||
this._previousButton = previousButton;
|
this._previousButton = previousButton;
|
||||||
|
|
|
@ -81,9 +81,8 @@ module.exports = new Class({
|
||||||
steps: {},
|
steps: {},
|
||||||
|
|
||||||
initialize: function(props) {
|
initialize: function(props) {
|
||||||
var node = this.createRoot('div');
|
|
||||||
node.className = 'htk-assistant';
|
|
||||||
Component.prototype.initialize.call(this, props);
|
Component.prototype.initialize.call(this, props);
|
||||||
|
this.createRoot('div');
|
||||||
},
|
},
|
||||||
|
|
||||||
appendChild: function(step) {
|
appendChild: function(step) {
|
||||||
|
|
|
@ -42,7 +42,6 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var node = this.createRoot('button');
|
var node = this.createRoot('button');
|
||||||
node.className = 'htk-button';
|
|
||||||
|
|
||||||
this.iconNode = new Htk.Icon();
|
this.iconNode = new Htk.Icon();
|
||||||
node.appendChild(this.iconNode.node);
|
node.appendChild(this.iconNode.node);
|
||||||
|
|
|
@ -24,7 +24,6 @@ module.exports = new Class({
|
||||||
var len = Vn.Date.WDays.length;
|
var len = Vn.Date.WDays.length;
|
||||||
|
|
||||||
var node = this.createRoot('div');
|
var node = this.createRoot('div');
|
||||||
node.className = 'htk-calendar';
|
|
||||||
|
|
||||||
var table = this.createElement('table');
|
var table = this.createElement('table');
|
||||||
this.node.appendChild(table);
|
this.node.appendChild(table);
|
||||||
|
|
|
@ -11,7 +11,7 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
const node = this.createRoot('button');
|
const node = this.createRoot('button');
|
||||||
node.className = 'htk-date-chooser input';
|
node.classList.add('input');
|
||||||
node.addEventListener('click', this._onClick.bind(this));
|
node.addEventListener('click', this._onClick.bind(this));
|
||||||
|
|
||||||
this.label = this.createElement('span');
|
this.label = this.createElement('span');
|
||||||
|
|
|
@ -65,7 +65,6 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var table = this.createRoot('table');
|
var table = this.createRoot('table');
|
||||||
table.className = 'htk-grid';
|
|
||||||
|
|
||||||
var thead = this.createElement('thead');
|
var thead = this.createElement('thead');
|
||||||
table.appendChild(thead);
|
table.appendChild(thead);
|
||||||
|
|
|
@ -42,7 +42,7 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
const node = this.createRoot('span');
|
const node = this.createRoot('span');
|
||||||
node.className = 'htk-icon material-symbols-rounded';
|
node.classList.add('material-symbols-rounded');
|
||||||
}
|
}
|
||||||
|
|
||||||
,_setIcon: function() {
|
,_setIcon: function() {
|
||||||
|
|
|
@ -76,7 +76,6 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var node = this.createRoot('div');
|
var node = this.createRoot('div');
|
||||||
node.className = 'htk-image';
|
|
||||||
|
|
||||||
var img = this.img = this.createElement('img');
|
var img = this.img = this.createElement('img');
|
||||||
img.addEventListener('error', this._onImageError.bind(this));
|
img.addEventListener('error', this._onImageError.bind(this));
|
||||||
|
|
|
@ -17,9 +17,9 @@ module.exports = new Class({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
,initialize: function() {
|
,initialize: function(props) {
|
||||||
var node = this.createRoot('div');
|
Component.prototype.initialize.call(this, props);
|
||||||
node.className = 'htk-loader';
|
this.createRoot('div');
|
||||||
|
|
||||||
var div = this.createElement('div');
|
var div = this.createElement('div');
|
||||||
div.className = 'spinner';
|
div.className = 'spinner';
|
||||||
|
|
|
@ -59,8 +59,7 @@ module.exports = new Class({
|
||||||
}
|
}
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var div = this.createRoot('div');
|
this.createRoot('div');
|
||||||
div.className = 'htk-popup';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
,_setChildNode: function(childNode) {
|
,_setChildNode: function(childNode) {
|
||||||
|
|
|
@ -112,7 +112,7 @@ module.exports = new Class({
|
||||||
,render: function() {
|
,render: function() {
|
||||||
const button = this.createRoot('button');
|
const button = this.createRoot('button');
|
||||||
button.type = 'button';
|
button.type = 'button';
|
||||||
button.className = 'htk-select input';
|
button.classList.add('input');
|
||||||
button.addEventListener('mousedown',
|
button.addEventListener('mousedown',
|
||||||
e => this._onButtonMouseDown(e));
|
e => this._onButtonMouseDown(e));
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import "../style/variables";
|
@import "../style/variables";
|
||||||
|
|
||||||
.htk-select {
|
.htk-combo {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
|
@ -5,7 +5,6 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var input = this.createRoot('input');
|
var input = this.createRoot('input');
|
||||||
//setInputTypeNumber (input);
|
|
||||||
this.node.type = 'number';
|
this.node.type = 'number';
|
||||||
input.addEventListener('change', this._onChange.bind(this));
|
input.addEventListener('change', this._onChange.bind(this));
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ module.exports = new Class({
|
||||||
|
|
||||||
,render: function() {
|
,render: function() {
|
||||||
var loader = this.createRoot('div');
|
var loader = this.createRoot('div');
|
||||||
loader.className = 'htk-spinner';
|
|
||||||
|
|
||||||
var spin = this.spin = this.createElement('div');
|
var spin = this.spin = this.createElement('div');
|
||||||
loader.appendChild(spin);
|
loader.appendChild(spin);
|
||||||
|
|
|
@ -20,9 +20,8 @@ module.exports = new Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(props) {
|
initialize: function(props) {
|
||||||
var node = this.createRoot('div');
|
|
||||||
node.className = 'htk-step';
|
|
||||||
Component.prototype.initialize.call(this, props);
|
Component.prototype.initialize.call(this, props);
|
||||||
|
this.createRoot('div');
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
|
|
||||||
module.exports = new Class
|
module.exports = new Class({
|
||||||
({
|
|
||||||
Extends: Htk.Field
|
Extends: Htk.Field
|
||||||
,Tag: 'htk-textarea'
|
,Tag: 'htk-textarea'
|
||||||
|
|
||||||
,render: function ()
|
,render: function() {
|
||||||
{
|
var node = this.createRoot('textarea');
|
||||||
var node = this.createRoot ('textarea');
|
node.addEventListener('change', this.changed.bind(this));
|
||||||
node.addEventListener ('change', this.changed.bind (this));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
,changed: function (event)
|
,changed: function() {
|
||||||
{
|
|
||||||
var value;
|
var value;
|
||||||
|
|
||||||
if (this.node.value == '')
|
if (this.node.value == '')
|
||||||
|
@ -19,16 +16,14 @@ module.exports = new Class
|
||||||
else
|
else
|
||||||
value = this.node.value;
|
value = this.node.value;
|
||||||
|
|
||||||
this.valueChanged (value);
|
this.valueChanged(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
,setEditable: function (editable)
|
,setEditable: function(editable) {
|
||||||
{
|
|
||||||
this.node.readOnly = !editable;
|
this.node.readOnly = !editable;
|
||||||
}
|
}
|
||||||
|
|
||||||
,putValue: function (value)
|
,putValue: function(value) {
|
||||||
{
|
|
||||||
if (!value)
|
if (!value)
|
||||||
this.node.value = '';
|
this.node.value = '';
|
||||||
else
|
else
|
||||||
|
|
|
@ -518,7 +518,7 @@ module.exports = new Class({
|
||||||
if (context.nodeId && object instanceof Component) {
|
if (context.nodeId && object instanceof Component) {
|
||||||
var id = context.nodeId;
|
var id = context.nodeId;
|
||||||
object.htmlId = scope.getHtmlId(id);
|
object.htmlId = scope.getHtmlId(id);
|
||||||
object.className = '_'+ id +' '+ object.className;
|
object.className = '_'+ id +' '+ (object.className || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
|
|
|
@ -131,7 +131,7 @@ const ComponentClass = {
|
||||||
|
|
||||||
,_refreshClass: function() {
|
,_refreshClass: function() {
|
||||||
if (this._node && this._className)
|
if (this._node && this._className)
|
||||||
this._node.className = this._className +' '+ this._node.className;
|
this._node.className = this._className +' '+ (this._node.className || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
,remove: function() {
|
,remove: function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.407.77",
|
"version": "1.407.78",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in New Issue