@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
109 lines • 4.5 kB
JavaScript
import { __extends } from "tslib";
import { EShapeDataValueExtensions, EShapeDataValueOrder, EShapeDataValueRangeType, EShapeDataValueScope, EShapeDataValueType } from "@wcardinal/wcardinal-ui";
import { EThemeDefaultDialogDataValue } from "./e-theme-default-dialog-data-value";
var EThemeDefaultEnUsDialogDataValue = /** @class */ (function (_super) {
__extends(EThemeDefaultEnUsDialogDataValue, _super);
function EThemeDefaultEnUsDialogDataValue() {
return _super !== null && _super.apply(this, arguments) || this;
}
EThemeDefaultEnUsDialogDataValue.prototype.getInputIdLabel = function () {
return "ID";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputAsLabel = function () {
return "As";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectTypeLabel = function () {
return "Type";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectTypeValueLabel = function (type) {
switch (type) {
case EShapeDataValueType.BOOLEAN:
return "Boolean";
case EShapeDataValueType.BOOLEAN_ARRAY:
return "Boolean Array";
case EShapeDataValueType.NUMBER:
return "Number";
case EShapeDataValueType.NUMBER_ARRAY:
return "Number Array";
case EShapeDataValueType.STRING:
return "String";
case EShapeDataValueType.STRING_ARRAY:
return "String Array";
case EShapeDataValueType.OBJECT:
return "Object";
case EShapeDataValueType.OBJECT_ARRAY:
return "Object Array";
case EShapeDataValueType.TICKER:
return "Ticker";
default:
var extension = EShapeDataValueExtensions.get(type);
if (extension) {
return extension.label;
}
return "Unknown";
}
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectScopeLabel = function () {
return "Scope";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectScopeValueLabel = function (type) {
switch (type) {
case EShapeDataValueScope.PUBLIC:
return "Public";
case EShapeDataValueScope.PROTECTED:
return "Protected";
case EShapeDataValueScope.PRIVATE:
return "Private";
}
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputInitialLabel = function () {
return "Initial";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputIntervalLabel = function () {
return "Interval";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputIntervalUnitLabel = function () {
return "ms";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputFormatLabel = function () {
return "Format";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectRangeTypeLabel = function () {
return "Range";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectRangeTypeValueLabel = function (type) {
switch (type) {
case EShapeDataValueRangeType.FROM:
return "Lower Limit";
case EShapeDataValueRangeType.TO:
return "Upper Limit";
case EShapeDataValueRangeType.FROM_TO:
return "Upper and Lower Limit";
default:
return "No Range";
}
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputRangeFromLabel = function () {
return "Lower Limit";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputRangeToLabel = function () {
return "Upper Limit";
};
EThemeDefaultEnUsDialogDataValue.prototype.getInputCapacityLabel = function () {
return "Capacity";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectOrderLabel = function () {
return "Order";
};
EThemeDefaultEnUsDialogDataValue.prototype.getSelectOrderValueLabel = function (order) {
switch (order) {
case EShapeDataValueOrder.ASCENDING:
return "Ascending Order";
case EShapeDataValueOrder.DESCENDING:
return "Descending Order";
}
};
return EThemeDefaultEnUsDialogDataValue;
}(EThemeDefaultDialogDataValue));
export { EThemeDefaultEnUsDialogDataValue };
//# sourceMappingURL=e-theme-default-en-us-dialog-data-value.js.map