@csnext/cs-core
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -9,2 +9,3 @@ export declare class ThemeColors { | ||
warning: string; | ||
menu: string; | ||
} |
@@ -12,2 +12,3 @@ "use strict"; | ||
this.warning = '#FFC107'; | ||
this.menu = '#000'; | ||
} | ||
@@ -14,0 +15,0 @@ return ThemeColors; |
import { IMessageBusService } from './../utils/message-bus/message-bus-service'; | ||
import { IMenu } from './menu'; | ||
import { EditorSchema } from './editor-schema'; | ||
import { IDashboard } from '../index'; | ||
import { IWidgetOptions } from './widget-options'; | ||
export declare enum WidgetType { | ||
@@ -9,18 +9,2 @@ component = 0, | ||
} | ||
export interface IWidgetOptions { | ||
datasource?: string; | ||
card?: boolean; | ||
class?: string; | ||
width?: number; | ||
height?: number; | ||
margin?: number; | ||
x?: number; | ||
y?: number; | ||
background?: boolean; | ||
canRemove?: boolean; | ||
canEdit?: boolean; | ||
menus?: IMenu[]; | ||
columns?: number; | ||
rows?: number; | ||
} | ||
export interface IWidget { | ||
@@ -27,0 +11,0 @@ id?: string; |
@@ -5,2 +5,3 @@ export * from './classes/project'; | ||
export * from './classes/dashboard'; | ||
export * from './classes/grid-dashboard-options'; | ||
export * from './classes/page'; | ||
@@ -19,1 +20,3 @@ export * from './classes/widget'; | ||
export * from './utils/message-bus/message-bus-service'; | ||
export * from './classes/grid-widget-options'; | ||
export * from './classes/widget-options'; |
{ | ||
"name": "@csnext/cs-core", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "cscore", | ||
@@ -13,3 +13,4 @@ "main": "./dist/index.js", | ||
"dev": "tsc -w", | ||
"clean": "del-cli dist" | ||
"clean": "del-cli dist", | ||
"build": "tsc" | ||
}, | ||
@@ -16,0 +17,0 @@ "publishConfig": { |
@@ -7,5 +7,1 @@ export interface IDashboardOptions { | ||
export interface IGridDashboardOptions extends IDashboardOptions { | ||
gap?: number; | ||
} |
export class ThemeColors { | ||
public primary = '#1976D2'; | ||
public secondary = '#424242'; | ||
public accent = '#82B1FF'; | ||
public error = '#FF5252'; | ||
public info = '#2196F3'; | ||
public success = '#4CAF50'; | ||
public warning = '#FFC107'; | ||
public primary: string = '#1976D2'; | ||
public secondary: string = '#424242'; | ||
public accent: string = '#82B1FF'; | ||
public error: string = '#FF5252'; | ||
public info: string = '#2196F3'; | ||
public success: string = '#4CAF50'; | ||
public warning: string = '#FFC107'; | ||
public menu: string = '#000'; | ||
} |
@@ -1,6 +0,6 @@ | ||
import { IWidgetOptions } from "./../../dist/classes/widget.d"; | ||
import { IMessageBusService } from "./../utils/message-bus/message-bus-service"; | ||
import { IMenu } from "./menu"; | ||
import { EditorSchema } from "./editor-schema"; | ||
import { IDashboard } from "../index"; | ||
import { IMessageBusService } from './../utils/message-bus/message-bus-service'; | ||
import { IMenu } from './menu'; | ||
import { EditorSchema } from './editor-schema'; | ||
import { IDashboard } from '../index'; | ||
import { IWidgetOptions } from './widget-options'; | ||
@@ -11,26 +11,2 @@ export enum WidgetType { | ||
} | ||
export interface IWidgetOptions { | ||
datasource?: string; | ||
card?: boolean; | ||
class?: string; | ||
width?: number; | ||
height?: number; | ||
margin?: number; | ||
x?: number; | ||
y?: number; | ||
background?: boolean; | ||
canRemove?: boolean; | ||
canEdit?: boolean; | ||
menus?: IMenu[]; | ||
} | ||
export interface IGridWidgetOptions extends IWidgetOptions { | ||
columnStart?: number; | ||
columnEnd?: number; | ||
rowStart?: number; | ||
rowEnd?: number; | ||
} | ||
export interface IWidget { | ||
@@ -37,0 +13,0 @@ id?: string; |
@@ -5,2 +5,3 @@ export * from './classes/project'; | ||
export * from './classes/dashboard'; | ||
export * from './classes/grid-dashboard-options'; | ||
export * from './classes/page'; | ||
@@ -19,3 +20,5 @@ export * from './classes/widget'; | ||
export * from './utils/message-bus/message-bus-service'; | ||
export * from './classes/grid-widget-options'; | ||
export * from './classes/widget-options'; | ||
// export * from './classes/plugin'; |
@@ -13,7 +13,13 @@ { | ||
], | ||
"outDir": "./dist", | ||
"outDir": "./dist", | ||
"declaration": true, | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true | ||
} | ||
}, | ||
"include": [ | ||
"./src" | ||
], | ||
"exclude": [ | ||
"./dist/**/*" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42057
101
1049