import { Writable , writable } from 'svelte/store' ; import { PiNamedElement } from "@projectit/core" ; export const versionNumber = "0.1.1" ; export let unitTypes = writable < string [ ] > ( [ ] ) ; export let fileExtensions = writable < string [ ] > ( [ ] ) ; export let languageName = writable < string > ( "" ) ; export let projectionNames = writable < string [ ] > ( [ ] ) ; export let initializing = writable < boolean > ( true ) ; export let noUnitAvailable = writable < boolean > ( true ) ; export let currentModelName = writable < string > ( '' ) ; export let currentUnitName = writable < string > ( '' ) ; export let modelNames = writable < string [ ] > ( [ ] ) ; export let unitNames = writable < string [ ] > ( [ ] ) ; export let units = writable < Array < PiNamedElement [ ] > > ( null ) ; export let toBeDeleted = writable < PiNamedElement > ( null ) ; export let errorMessage = writable < string > ( '' ) ; export let showError = writable < boolean > ( false ) ; export enum severityType { info = 0 , hint = 1 , warning = 2 , error = 3 } export let severity = writable < number > ( severityType . error ) ; export let miniWindow = writable < boolean > ( false ) ; export let leftPanelVisible = writable < boolean > ( false ) ; export let rightPanelVisible = writable < boolean > ( false ) ; export let openModelDialogVisible = writable < boolean > ( false ) ; export let newUnitDialogVisible = writable < boolean > ( false ) ; export let deleteUnitDialogVisible = writable < boolean > ( false ) ; export let deleteModelDialogVisible = writable < boolean > ( false ) ;