@wbg-mde/model
Version:
Metadata Editor Model Definitions
51 lines (50 loc) • 1.82 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class DatasetsSummary {
constructor(name, type, varQnty, caseQnty, filePath, ID) {
this.name = name;
this.type = type;
this.varQnty = varQnty;
this.caseQnty = caseQnty;
this.filePath = filePath;
this.ID = ID;
}
}
exports.DatasetsSummary = DatasetsSummary;
class SummaryFrequency {
constructor(value, label = " ", count, percentage) {
this.value = value;
this.label = label;
this.count = count;
this.percentage = percentage;
}
}
exports.SummaryFrequency = SummaryFrequency;
class StatisticsControls {
constructor(includeFrequencies, includeListMissingAtEnd, includeValid, includeMin, includeMax, includeMean, includeStdDev) {
this.includeFrequencies = includeFrequencies;
this.includeListMissingAtEnd = includeListMissingAtEnd;
this.includeValid = includeValid;
this.includeMin = includeMin;
this.includeMax = includeMax;
this.includeMean = includeMean;
this.includeStdDev = includeStdDev;
}
}
exports.StatisticsControls = StatisticsControls;
var TreeNodeTypes;
(function (TreeNodeTypes) {
TreeNodeTypes[TreeNodeTypes["allDataset"] = 1] = "allDataset";
TreeNodeTypes[TreeNodeTypes["singleDataset"] = 2] = "singleDataset";
})(TreeNodeTypes = exports.TreeNodeTypes || (exports.TreeNodeTypes = {}));
class DatalistButtons {
constructor(state) {
this.import = state.import;
this.export = state.export;
this.delete = state.delete;
this.exportDict = state.exportDict;
this.showInfo = state.showInfo;
this.attatch = state.attatch;
}
}
exports.DatalistButtons = DatalistButtons;