Commit f7c5fdde authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

example

parent e8714023
......@@ -10,5 +10,6 @@ declare namespace STWkit{
export var getParamValue: any;
export var LocationCard: any;
export var PeriodCard: any;
export var AccordionCard: any;
}
\ No newline at end of file
......@@ -26,18 +26,19 @@ var ITLocation = (function (_super) {
options['afterDiv'] = true;
options['initials'] = initials;
_this = _super.call(this, id, 'Specify location', parentDiv, lang, langData, map, forcing, options) || this;
var fieldset = L.DomUtil.create('fieldset', 'uk-margin-top', _this.locationForm);
var depthRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#" + initials + "-depth' target='_blank'>here</a>");
var depthDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
_this.depthInput = L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
_this.depthInput.type = 'number';
_this.depthInput.value = '0';
_this.depthInput.min = '0';
_this.depthInput.onchange = function () {
//validate();
};
return _this;
// var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
// var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
// super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
// var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
// this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
// this.depthInput.type = 'number';
// this.depthInput.value = '0';
// this.depthInput.step = '10';
// this.depthInput.min = '0';
// this.depthInput.onchange = function () {
// //validate();
// };
}
ITLocation.prototype.show = function () {
_super.prototype.show.call(this);
......@@ -56,14 +57,14 @@ var ITLocation = (function (_super) {
};
return ITLocation;
}(STWkit.LocationCard));
var ITAmount = (function (_super) {
__extends(ITAmount, _super);
function ITAmount(id, title, parentDiv, lang, map) {
var ITDistribution = (function (_super) {
__extends(ITDistribution, _super);
function ITDistribution(id, title, parentDiv, lang, map) {
var _this = this;
var amountDiv = L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
_this = _super.call(this, id, title, parentDiv, amountDiv) || this;
var distributionDiv = L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
_this = _super.call(this, id, title, parentDiv, distributionDiv) || this;
var self = _this;
var form = L.DomUtil.create('form', 'uk-form uk-form-stacked', amountDiv);
var form = L.DomUtil.create('form', 'uk-form uk-form-stacked', distributionDiv);
form.onsubmit = function (e) {
e.preventDefault();
e.stopPropagation();
......@@ -75,16 +76,39 @@ var ITAmount = (function (_super) {
option.textContent = txt;
}
var fieldset = L.DomUtil.create('fieldset', '', form);
var depthRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#-depth' target='_blank'>here</a>");
var depthDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
_this.depthInput = L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
_this.depthInput.type = 'number';
_this.depthInput.value = '0';
_this.depthInput.step = '10';
_this.depthInput.min = '0';
var distributionRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
distributionRowDiv.id = 'guideos8';
distributionRowDiv.guideFn = function () {
};
_super.prototype.addLabelDiv.call(_this, distributionRowDiv, "Outlet distribution", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var distributionDiv = L.DomUtil.create('div', '', distributionRowDiv);
distributionDiv.setAttribute('data-uk-button-radio', '');
var distributionButtonGrid = L.DomUtil.create('div', 'uk-grid uk-grid-small', distributionDiv);
var distributionbuttonsDiv = L.DomUtil.create('div', 'uk-width-1-2', distributionButtonGrid);
distributionButtonGrid.id = 'guidefo5';
var distributionButtonGroup = L.DomUtil.create('div', 'uk-button-group', distributionbuttonsDiv);
self.distribution2DButton = L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution2DButton.textContent = 'Surface';
self.distribution3DButton = L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution3DButton.textContent = 'Volume';
var amountRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
amountRowDiv.id = 'guideos8';
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
};
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Outlet amount", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
var amountValueDiv = L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
self.amountInput.step = '100';
self.amountInput.step = '10';
self.amountInput.min = '0';
var amountUnitDiv = L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', amountValueDiv);
amountUnitDiv.setAttribute('data-uk-form-select', '');
......@@ -92,35 +116,25 @@ var ITAmount = (function (_super) {
self.amountSelect = L.DomUtil.create('select', '', amountUnitDiv);
addOption(self.amountSelect, 'm3', '');
addOption(self.amountSelect, 'tonnes', 'tonnes');
addOption(self.amountSelect, 'm3/hour', 'm³ / hour');
addOption(self.amountSelect, 'tonnes/hour', 'tonnes / hour');
addOption(self.amountSelect, 'm3/day', 'm³ / day');
addOption(self.amountSelect, 'tonnes/day', 'tonnes / day');
var durationRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
durationRowDiv.id = 'guideos9';
durationRowDiv.guideFn = function () {
self.durationInput.value = '6';
validate();
};
_super.prototype.addLabelDiv.call(_this, durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var durationDiv = L.DomUtil.create('div', '', durationRowDiv);
durationDiv.id = 'guideos7';
self.durationInput = L.DomUtil.create('input', 'uk-width-1-4', durationDiv);
self.durationInput.type = 'number';
self.durationInput.step = '1';
self.durationInput.min = '0';
var durationUnitDiv = L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', durationDiv);
durationUnitDiv.setAttribute('data-uk-form-select', '');
var selectedDurationUnit = L.DomUtil.create('span', '', durationUnitDiv);
self.durationSelect = L.DomUtil.create('select', '', durationUnitDiv);
addOption(self.durationSelect, 'hours', 'hours');
addOption(self.durationSelect, 'days', 'days');
self.amountInput.onchange = function () {
validate();
};
self.durationInput.onchange = function () {
var spreadingRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
spreadingRowDiv.id = 'guideos9';
spreadingRowDiv.guideFn = function () {
validate();
};
_super.prototype.addLabelDiv.call(_this, spreadingRowDiv, "Spreading method", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var spreadingDiv = L.DomUtil.create('div', 'uk-margin-bottom', spreadingRowDiv);
spreadingDiv.setAttribute('data-uk-button-radio', '');
var spreadingButtonGrid = L.DomUtil.create('div', 'uk-grid uk-grid-small', spreadingDiv);
var spreadingbuttonsDiv = L.DomUtil.create('div', 'uk-width-1-2', spreadingButtonGrid);
spreadingButtonGrid.id = 'guidefo5';
var spreadingButtonGroup = L.DomUtil.create('div', 'uk-button-group', spreadingbuttonsDiv);
self.spreading2DButton = L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading2DButton.textContent = 'Horizontal';
self.spreading3DButton = L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading3DButton.textContent = 'Three-dimensional';
function validate() {
var amountValue = parseInt(self.amountInput.value);
var amountOk = false;
......@@ -128,20 +142,14 @@ var ITAmount = (function (_super) {
self.amountInput.value = "0";
if (amountValue > 0)
amountOk = true;
var durationValue = parseInt(self.durationInput.value);
var durationOk = false;
if (durationValue < 0)
self.durationInput.value = "0";
if (durationValue > 0)
durationOk = true;
if (amountOk && durationOk) {
if (amountOk) {
self.status = true;
STWkit.AccordionCard.enableNext(self.nextButton, true);
(self.oncallback && self.oncallback());
}
}
;
var clearDiv = L.DomUtil.create('div', 'uk-clearfix', amountDiv);
var clearDiv = L.DomUtil.create('div', 'uk-clearfix', fieldset);
var clearButton = L.DomUtil.create('button', 'uk-button uk-margin-top uk-align-left', clearDiv);
clearButton.textContent = 'Clear';
clearButton.onclick = function () {
......@@ -166,10 +174,10 @@ var ITAmount = (function (_super) {
});
return _this;
}
ITAmount.prototype.defaults = function () {
ITDistribution.prototype.defaults = function () {
var self = this;
};
ITAmount.prototype.populateCard = function (geojson) {
ITDistribution.prototype.populateCard = function (geojson) {
var self = this;
var simulation = geojson.features[0].properties.simulation;
self.amountInput.value = simulation.amount;
......@@ -177,28 +185,28 @@ var ITAmount = (function (_super) {
amountevt.initEvent("change", true, true);
self.amountInput.dispatchEvent(amountevt);
self.amountSelect.value = simulation.amountUnit;
self.durationInput.value = simulation.duration;
self.spreadingInput.value = simulation.duration;
var durationevt = document.createEvent('Event');
durationevt.initEvent("change", true, true);
self.durationInput.dispatchEvent(durationevt);
self.spreadingInput.dispatchEvent(durationevt);
self.durationSelect.value = simulation.durationUnit;
};
ITAmount.prototype.populateData = function (geojson) {
ITDistribution.prototype.populateData = function (geojson) {
var self = this;
geojson.features[0].properties["simulation"]["amount"] = self.amountInput.value;
geojson.features[0].properties["simulation"]["amountUnit"] = self.amountSelect.options[self.amountSelect.selectedIndex].value;
geojson.features[0].properties["simulation"]["duration"] = self.durationInput.value;
geojson.features[0].properties["simulation"]["duration"] = self.spreadingInput.value;
geojson.features[0].properties["simulation"]["durationUnit"] = self.durationSelect.options[self.durationSelect.selectedIndex].value;
};
ITAmount.prototype.clear = function () {
ITDistribution.prototype.clear = function () {
var self = this;
_super.prototype.clear.call(this);
self.amountInput.value = '';
self.durationInput.value = '';
self.spreadingInput.value = '';
STWkit.AccordionCard.enableNext(self.nextButton, false);
self.status = false;
(self.oncallback && self.oncallback());
};
return ITAmount;
return ITDistribution;
}(STWkit.AccordionCard));
//# sourceMappingURL=leaflet-itracer-cards.js.map
\ No newline at end of file
{"version":3,"file":"leaflet-itracer-cards.js","sourceRoot":"","sources":["leaflet-itracer-cards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,wCAAwC;AACxC,0DAA0D;AAC1D,yCAAyC;;;;;;;;;;;AAGzC;IAAyB,8BAAmB;IAMxC,oBAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO;QAAvD,iBAyBC;QAxBG,IAAI,OAAO,GAAO,EAAE,CAAC;QACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;QAC/B,QAAA,kBAAM,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,SAAC;QAEhF,IAAI,QAAQ,GAAwB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,EAAE,KAAI,CAAC,YAAY,CAAC,CAAC;QACrG,IAAI,WAAW,GAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;QACnF,iBAAM,WAAW,aAAC,WAAW,EAAE,qBAAqB,EAAE,qEAAqE,GAAC,QAAQ,GAA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22,19 @@ class ITLocation extends STWkit.LocationCard {
options['initials'] = initials;
super(id, 'Specify location', parentDiv, lang, langData, map, forcing, options);
var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
this.depthInput.type = 'number';
this.depthInput.value = '0';
this.depthInput.min = '0';
// var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', 'uk-margin-top', this.locationForm);
// var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
// super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+initials+"-depth' target='_blank'>here</a>");
// var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
// this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
// this.depthInput.type = 'number';
// this.depthInput.value = '0';
// this.depthInput.step = '10';
// this.depthInput.min = '0';
this.depthInput.onchange = function () {
//validate();
};
// this.depthInput.onchange = function () {
// //validate();
// };
}
......@@ -62,19 +63,23 @@ class ITLocation extends STWkit.LocationCard {
}
class ITAmount extends STWkit.AccordionCard {
class ITDistribution extends STWkit.AccordionCard {
public oncallback: Function;
public amountInput: HTMLInputElement;
public durationInput: HTMLInputElement;
public amountSelect: HTMLSelectElement;
public durationSelect: HTMLSelectElement;
public spreading2DButton: HTMLButtonElement;
public spreading3DButton: HTMLButtonElement;
public distribution2DButton: HTMLButtonElement;
public distribution3DButton: HTMLButtonElement;
public nextButton: any;
public status: boolean;
constructor(id, title, parentDiv, lang, map) {
var amountDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
super(id, title, parentDiv, amountDiv);
var distributionDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
super(id, title, parentDiv, distributionDiv);
var self = this;
var form = <HTMLFormElement>L.DomUtil.create('form', 'uk-form uk-form-stacked', amountDiv);
var form = <HTMLFormElement>L.DomUtil.create('form', 'uk-form uk-form-stacked', distributionDiv);
form.onsubmit = function (e) {
e.preventDefault();
e.stopPropagation();
......@@ -89,17 +94,48 @@ class ITAmount extends STWkit.AccordionCard {
var fieldset = <HTMLFieldSetElement>L.DomUtil.create('fieldset', '', form);
var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
super.addLabelDiv(depthRowDiv, "Outlet at depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#-depth' target='_blank'>here</a>");
var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
this.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
this.depthInput.type = 'number';
this.depthInput.value = '0';
this.depthInput.step = '10';
this.depthInput.min = '0';
var distributionRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
distributionRowDiv.id = 'guideos8';
distributionRowDiv.guideFn = function () {
}
super.addLabelDiv(distributionRowDiv, "Outlet distribution", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var distributionDiv = <HTMLDivElement>L.DomUtil.create('div', '', distributionRowDiv);
distributionDiv.setAttribute('data-uk-button-radio', '');
var distributionButtonGrid = <HTMLDivElement>L.DomUtil.create('div', 'uk-grid uk-grid-small', distributionDiv);
var distributionbuttonsDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2', distributionButtonGrid);
distributionButtonGrid.id = 'guidefo5';
var distributionButtonGroup = <HTMLDivElement>L.DomUtil.create('div', 'uk-button-group', distributionbuttonsDiv);
self.distribution2DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution2DButton.textContent = 'Surface';
self.distribution3DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', distributionButtonGroup);
self.distribution3DButton.textContent = 'Volume';
var amountRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
amountRowDiv.id = 'guideos8';
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
}
super.addLabelDiv(amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
super.addLabelDiv(amountRowDiv, "Outlet amount", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-totalamount' target='_blank'>here</a>");
var amountValueDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
self.amountInput.step = '100';
self.amountInput.step = '10';
self.amountInput.min = '0';
var amountUnitDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', amountValueDiv);
amountUnitDiv.setAttribute('data-uk-form-select', '');
......@@ -107,49 +143,35 @@ class ITAmount extends STWkit.AccordionCard {
self.amountSelect = <HTMLSelectElement>L.DomUtil.create('select', '', amountUnitDiv);
addOption(self.amountSelect, 'm3', '');
addOption(self.amountSelect, 'tonnes', 'tonnes');
addOption(self.amountSelect, 'm3/hour', 'm³ / hour');
addOption(self.amountSelect, 'tonnes/hour', 'tonnes / hour');
addOption(self.amountSelect, 'm3/day', 'm³ / day');
addOption(self.amountSelect, 'tonnes/day', 'tonnes / day');
var durationRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
durationRowDiv.id = 'guideos9';
durationRowDiv.guideFn = function () {
self.durationInput.value = '6';
validate();
}
super.addLabelDiv(durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var durationDiv = <HTMLDivElement>L.DomUtil.create('div', '', durationRowDiv);
durationDiv.id = 'guideos7';
self.durationInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', durationDiv);
self.durationInput.type = 'number';
self.durationInput.step = '1';
self.durationInput.min = '0';
var durationUnitDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2 uk-form-select select', durationDiv);
durationUnitDiv.setAttribute('data-uk-form-select', '');
var selectedDurationUnit = <HTMLSpanElement>L.DomUtil.create('span', '', durationUnitDiv);
self.durationSelect = <HTMLSelectElement>L.DomUtil.create('select', '', durationUnitDiv);
addOption(self.durationSelect, 'hours', 'hours');
addOption(self.durationSelect, 'days', 'days');
self.amountInput.onchange = function () {
validate();
};
self.durationInput.onchange = function () {
var spreadingRowDiv: any = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
spreadingRowDiv.id = 'guideos9';
spreadingRowDiv.guideFn = function () {
validate();
};
}
super.addLabelDiv(spreadingRowDiv, "Spreading method", "See more information <a style='color:#faa732;' href='help/classic/#oil-os-amount-duration' target='_blank'>here</a>");
var spreadingDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-margin-bottom', spreadingRowDiv);
spreadingDiv.setAttribute('data-uk-button-radio', '');
var spreadingButtonGrid = <HTMLDivElement>L.DomUtil.create('div', 'uk-grid uk-grid-small', spreadingDiv);
var spreadingbuttonsDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-2', spreadingButtonGrid);
spreadingButtonGrid.id = 'guidefo5';
var spreadingButtonGroup = <HTMLDivElement>L.DomUtil.create('div', 'uk-button-group', spreadingbuttonsDiv);
self.spreading2DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading2DButton.textContent = 'Horizontal';
self.spreading3DButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', spreadingButtonGroup);
self.spreading3DButton.textContent = 'Three-dimensional';
function validate() {
var amountValue = parseInt(self.amountInput.value);
var amountOk = false;
if (amountValue < 0) self.amountInput.value = "0";
if (amountValue > 0) amountOk = true;
var durationValue = parseInt(self.durationInput.value);
var durationOk = false;
if (durationValue < 0) self.durationInput.value = "0";
if (durationValue > 0) durationOk = true;
if (amountOk && durationOk) {
if (amountOk) {
self.status = true;
STWkit.AccordionCard.enableNext(self.nextButton, true);
(self.oncallback && self.oncallback());
......@@ -157,7 +179,7 @@ class ITAmount extends STWkit.AccordionCard {
};
var clearDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-clearfix', amountDiv);
var clearDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-clearfix', fieldset);
var clearButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-margin-top uk-align-left', clearDiv);
clearButton.textContent = 'Clear';
clearButton.onclick = function () {
......@@ -199,10 +221,10 @@ class ITAmount extends STWkit.AccordionCard {
self.amountInput.dispatchEvent(amountevt);
self.amountSelect.value = simulation.amountUnit;
self.durationInput.value = simulation.duration;
self.spreadingInput.value = simulation.duration;
var durationevt = document.createEvent('Event');
durationevt.initEvent("change", true, true);
self.durationInput.dispatchEvent(durationevt);
self.spreadingInput.dispatchEvent(durationevt);
self.durationSelect.value = simulation.durationUnit;
}
......@@ -210,7 +232,7 @@ class ITAmount extends STWkit.AccordionCard {
var self = this;
geojson.features[0].properties["simulation"]["amount"] = self.amountInput.value;
geojson.features[0].properties["simulation"]["amountUnit"] = self.amountSelect.options[self.amountSelect.selectedIndex].value;
geojson.features[0].properties["simulation"]["duration"] = self.durationInput.value;
geojson.features[0].properties["simulation"]["duration"] = self.spreadingInput.value;
geojson.features[0].properties["simulation"]["durationUnit"] = self.durationSelect.options[self.durationSelect.selectedIndex].value;
}
......@@ -219,7 +241,7 @@ class ITAmount extends STWkit.AccordionCard {
var self = this;
super.clear();
self.amountInput.value = '';
self.durationInput.value = '';
self.spreadingInput.value = '';
STWkit.AccordionCard.enableNext(self.nextButton, false);
self.status = false;
(self.oncallback && self.oncallback());
......
......@@ -39,21 +39,21 @@ var L;
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel);
var amountid = self.initials + 'amountCard';
self.cardMap[amountid] = new ITAmount(amountid, 'Amount', this.accordionDiv, self.lang, map);
var distributionid = self.initials + 'distributionCard';
self.cardMap[distributionid] = new ITDistribution(distributionid, 'Distribution and spreading', this.accordionDiv, self.lang, map);
_super.prototype.setup.call(this, map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = amountid;
chain[amountid] = '';
chain[periodid] = distributionid;
chain[distributionid] = '';
self.cardMap[locationid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, locationid, gonext);
};
self.cardMap[periodid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, periodid, gonext);
};
self.cardMap[amountid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, amountid, gonext);
self.cardMap[distributionid].oncallback = function (gonext) {
_super.prototype.callback.call(_this, chain, distributionid, gonext);
};
};
InstantTracer.prototype.ready = function (name) {
......
{"version":3,"file":"leaflet-itracer-control.js","sourceRoot":"","sources":["leaflet-itracer-control.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,yCAAyC;AACzC,wCAAwC;AACxC,wCAAwC;AACxC,yCAAyC;AACzC,iDAAiD;;;;;;;;;;;AAIjD,IAAO,CAAC,CAmEP;AAnED,WAAO,CAAC;IAAC,IAAA,OAAO,CAmEf;IAnEQ,WAAA,OAAO;QACZ;YAAmC,iCAAkB;YAejD,uBAAY,OAAO;gBAAnB,YACI,kBAAM,OAAO,CAAC,SAMjB;gBALG,KAAI,CAAC,IAAI,GAAG,OAAO,CAAC;gBACpB,KAAI,CAAC,OAAO,G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AAC,CAAC;YAEN,CAAC;YAEM,6BAAK,GAAZ,UAAa,IAAI;gBACb,iBAAM,KAAK,YAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YAEO,6BAAK,GAAb;gBACI,iBAAM,KAAK,WAAE,CAAC;YAClB,CAAC;YACO,4BAAI,GAAZ;YACA,CAAC;YACO,4BAAI,GAAZ;gBACI,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,CAAC;YAEL,oBAAC;QAAD,CAAC,AAjED,CAAmC,MAAM,CAAC,WAAW,GAiEpD;QAjEY,qBAAa,gBAiEzB,CAAA;IACL,CAAC,EAnEQ,OAAO,GAAP,SAAO,KAAP,SAAO,QAmEf;AAAD,CAAC,EAnEM,CAAC,KAAD,CAAC,QAmEP"}
\ No newline at end of file
......@@ -42,21 +42,21 @@ module L.Control {
self.cardMap[locationid].show();
var periodid = self.initials+'periodCard';
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel);
var amountid = self.initials+'amountCard';
self.cardMap[amountid] = new ITAmount(amountid, 'Amount', this.accordionDiv, self.lang, map);
var distributionid = self.initials+'distributionCard';
self.cardMap[distributionid] = new ITDistribution(distributionid, 'Distribution and spreading', this.accordionDiv, self.lang, map);
super.setup(map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = amountid;
chain[amountid] = '';
chain[periodid] = distributionid;
chain[distributionid] = '';
self.cardMap[locationid].oncallback = (gonext) => {
super.callback(chain, locationid, gonext);
};
self.cardMap[periodid].oncallback = (gonext) => {
super.callback(chain, periodid, gonext);
};
self.cardMap[amountid].oncallback = (gonext) => {
super.callback(chain, amountid, gonext);
self.cardMap[distributionid].oncallback = (gonext) => {
super.callback(chain, distributionid, gonext);
};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment