@bexis2/bexis2-rpm-ui
Version:
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
57 lines (56 loc) • 1.32 kB
JavaScript
class VariableModel {
id;
name;
description;
systemType;
dataType;
unit;
missingValues;
meanings;
constraints;
approved;
inUse;
constructor() {
this.id = 0;
this.name = '';
this.description = '';
this.systemType = '';
this.dataType = undefined; //{id:0,text:"",group:""}
this.unit = undefined;
this.missingValues = [];
this.meanings = [];
this.constraints = [];
this.approved = false;
this.inUse = false;
}
}
export class VariableTemplateModel extends VariableModel {
constructor() {
super();
this.meanings = [];
this.constraints = [];
this.missingValues = [];
}
}
export class VariableInstanceModel extends VariableModel {
template;
isKey;
isOptional;
displayPattern;
possibleUnits;
possibleTemplates;
possibleDisplayPattern;
constructor() {
super();
this.meanings = [];
this.constraints = [];
this.missingValues = [];
this.isOptional = false;
this.template = undefined;
this.isKey = false;
this.displayPattern = undefined;
this.possibleUnits = [];
this.possibleTemplates = [];
this.possibleDisplayPattern = [];
}
}