New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@csnext/cs-core

Package Overview
Dependencies
Maintainers
3
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csnext/cs-core - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

dist/classes/app-theme.d.ts

1

dist/classes/apptheme.js

@@ -11,1 +11,2 @@ "use strict";

exports.AppTheme = AppTheme;
//# sourceMappingURL=apptheme.js.map

6

dist/classes/dashboard-manager-config.d.ts

@@ -1,2 +0,2 @@

import { Dashboard } from '../index';
import { IDashboard } from '../';
export interface IDashboardManagerConfig {

@@ -8,5 +8,5 @@ id: string;

export interface IDashboardManager {
start: (dashboard: Dashboard) => any;
stop: (dashboard: Dashboard) => any;
start: (dashboard: IDashboard) => any;
stop: (dashboard: IDashboard) => any;
dataLoaded?: (d: any) => void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=dashboard-manager-config.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=dashboard-options.js.map

@@ -1,5 +0,3 @@

import { ISidebarOptions } from './sidebar-options';
import { IWidget, IWidgetOptions } from './widget';
import { IDashboardManager } from '../index';
export declare class Dashboard {
import { IDashboardManager, IWidget, IWidgetOptions, ISidebarOptions } from '../';
export interface IDashboard {
id?: string;

@@ -21,5 +19,5 @@ path?: string;

leftSidebar?: ISidebarOptions;
dashboards?: Dashboard[];
parent?: Dashboard;
dashboards?: IDashboard[];
parent?: IDashboard;
isMain?: boolean;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Dashboard {
constructor() {
// list of widgets
this.widgets = [];
// allow left & right swipe gestures to switch between dashboards
this.touchGesturesEnabled = false;
// options for left sidebar
this.leftSidebar = {};
}
}
exports.Dashboard = Dashboard;
//# sourceMappingURL=dashboard.js.map

@@ -16,1 +16,2 @@ "use strict";

exports.DatasourceProcessorBase = DatasourceProcessorBase;
//# sourceMappingURL=datasource.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=footer-options.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=header-options.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=layout-manager-config.js.map
export declare class NavigationOptions {
style?: string;
style?: 'left' | 'tabs';
hideTitle?: boolean;

@@ -4,0 +4,0 @@ hideMenuToggle?: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class NavigationOptions {
constructor() {
this.style = 'right';
}
}
exports.NavigationOptions = NavigationOptions;
//# sourceMappingURL=navigation-options.js.map

@@ -6,1 +6,2 @@ "use strict";

exports.Page = Page;
//# sourceMappingURL=page.js.map

@@ -1,7 +0,3 @@

import { IFooterOptions } from './footer-options';
import { IDatasource, Dashboard } from '../index';
import { NavigationOptions } from './..';
import { ISidebarOptions } from './..';
import { AppTheme } from './apptheme';
import { IHeaderOptions } from './header-options';
import { AppTheme, IHeaderOptions, IFooterOptions, IDatasource, IDashboard, ISidebarOptions, NavigationOptions } from './..';
/** project definition */
export interface IProject {

@@ -16,3 +12,3 @@ id?: string;

};
dashboards?: Dashboard[];
dashboards?: IDashboard[];
leftSidebar?: ISidebarOptions;

@@ -22,3 +18,28 @@ rightSidebar?: ISidebarOptions;

header?: IHeaderOptions;
notifications?: INotificationOptions;
}
/** notification object */
export interface INotification {
id?: string;
type?: string;
title?: string;
text?: string;
remember?: boolean;
created?: Date;
priority?: number;
isRead?: boolean;
actionTitle?: string;
_visible?: boolean;
timeout?: number;
icon?: string;
clickCallback?: () => {};
}
/** options for notifications in project */
export interface INotificationOptions {
/** show/hide notifictions */
enabled?: boolean;
/** list of existing notifications */
items?: INotification[];
listStyle?: 'popup' | 'right-sidebar';
}
export declare class Project implements IProject {

@@ -31,3 +52,3 @@ id?: string;

};
dashboards?: Dashboard[];
dashboards?: IDashboard[];
leftSidebar?: ISidebarOptions;

@@ -37,2 +58,3 @@ rightSidebar?: ISidebarOptions;

header?: IHeaderOptions;
notifications?: INotificationOptions;
}

@@ -14,1 +14,2 @@ "use strict";

exports.Project = Project;
//# sourceMappingURL=project.js.map

@@ -1,2 +0,2 @@

import { Dashboard } from './dashboard';
import { IWidget, IDashboard } from './../index';
export interface ISidebarOptions {

@@ -12,4 +12,5 @@ open?: boolean;

clipped?: boolean;
canpin?: boolean;
dashboard?: Dashboard;
canPin?: boolean;
dashboard?: IDashboard;
widget?: IWidget;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=sidebar-options.js.map

@@ -15,1 +15,2 @@ "use strict";

exports.ThemeColors = ThemeColors;
//# sourceMappingURL=theme-colors.js.map

@@ -1,2 +0,3 @@

import { Dashboard } from '../index';
import { EditorSchema } from './editor-schema';
import { IDashboard } from '../index';
export declare enum WidgetType {

@@ -26,5 +27,6 @@ component = 0,

options?: IWidgetOptions;
_dashboard?: Dashboard;
Schema?: EditorSchema;
_dashboard?: IDashboard;
_initalized?: boolean;
_style?: any;
}

@@ -8,1 +8,2 @@ "use strict";

})(WidgetType = exports.WidgetType || (exports.WidgetType = {}));
//# sourceMappingURL=widget.js.map

@@ -9,6 +9,9 @@ export * from './classes/project';

export * from './classes/dashboard-manager-config';
export * from './classes/apptheme';
export * from './classes/app-theme';
export * from './classes/theme-colors';
export * from './classes/footer-options';
export * from './classes/header-options';
export * from './classes/navigation-options';
export * from './classes/sidebar-options';
export * from './classes/editor-schema';
export * from './utils/message-bus/message-bus-service';

@@ -7,9 +7,11 @@ "use strict";

__export(require("./classes/project"));
__export(require("./classes/dashboard"));
__export(require("./classes/page"));
__export(require("./classes/widget"));
__export(require("./classes/datasource"));
__export(require("./classes/apptheme"));
__export(require("./classes/app-theme"));
__export(require("./classes/theme-colors"));
__export(require("./classes/navigation-options"));
__export(require("./classes/editor-schema"));
__export(require("./utils/message-bus/message-bus-service"));
// export * from './classes/plugin';
//# sourceMappingURL=index.js.map
{
"name": "@csnext/cs-core",
"version": "0.0.7",
"version": "0.0.8",
"description": "cscore",

@@ -11,5 +11,2 @@ "main": "./dist/index.js",

"scripts": {
"patch-release": "npm version patch && npm publish && git push --follow-tags",
"minor-release": "npm version minor && npm publish && git push --follow-tags",
"major-release": "npm version major && npm publish && git push --follow-tags",
"link": "yarn link",

@@ -25,4 +22,4 @@ "dev": "tsc -w"

"devDependencies": {
"typescript": "^2.6.2"
"typescript": "^2.7.1"
}
}

@@ -1,2 +0,2 @@

import { Dashboard } from '../index';
import { IDashboard } from '../';

@@ -10,5 +10,5 @@ export interface IDashboardManagerConfig {

export interface IDashboardManager {
start: (dashboard: Dashboard) => any;
stop: (dashboard: Dashboard) => any;
start: (dashboard: IDashboard) => any;
stop: (dashboard: IDashboard) => any;
dataLoaded?: (d: any) => void;
}
export interface IDashboardOptions {
fullscreen?: boolean;
background?: string;
fullscreen?: boolean;
background?: string;
}

@@ -1,61 +0,57 @@

import { IDashboardOptions } from './dashboard-options';
import { ISidebarOptions } from './sidebar-options';
import { IWidget, IWidgetOptions } from './widget';
import { Page } from './page';
import { IDashboardManager } from '../index';
import { IDashboardManager, Page, IWidget, IWidgetOptions, ISidebarOptions, IDashboardOptions } from '../';
export class Dashboard {
export interface IDashboard {
// dashboard id
public id?: string;
id?: string;
// router path
public path?: string;
path?: string;
// dashboard title
public title?: string;
title?: string;
// manager that is responsible for layout
public layout?: string;
layout?: string;
// manager id that is responsible for managing dashboard
public manager?: string;
manager?: string;
// active dashboard manager (if set in manager)
// tslint:disable-next-line:variable-name
public _manager?: IDashboardManager;
_manager?: IDashboardManager;
public options?: any; // IDashboardOptions;
options?: any; // IDashboardOptions;
// list of widgets
public widgets?: IWidget[] = [];
public active?: boolean;
widgets?: IWidget[];
active?: boolean;
public icon?: string;
icon?: string;
// allow left & right swipe gestures to switch between dashboards
public touchGesturesEnabled?: boolean = false;
touchGesturesEnabled?: boolean;
// id of default datasource
public datasource?: string;
datasource?: string;
// if datasource is set, result will be available in content
public content?: any;
content?: any;
// generic data field for passing dashboard data
public data?: any;
data?: any;
public defaultWidgetOptions?: IWidgetOptions;
defaultWidgetOptions?: IWidgetOptions;
// options for left sidebar
public leftSidebar?: ISidebarOptions = {};
leftSidebar?: ISidebarOptions;
// optional list of sub dashboards
public dashboards?: Dashboard[];
dashboards?: IDashboard[];
// parent dashboard, if this is a child dashboard
public parent?: Dashboard;
parent?: IDashboard;
// enabled for main dashboard, disabled if dashboards are used for left/right panels
public isMain?: boolean;
isMain?: boolean;
}
export interface ILayoutManagerConfig {
id: string;
name: string;
component: any;
id: string;
name: string;
component: any;
}
export class NavigationOptions {
public style? = 'right';
public style?: 'left' | 'tabs';
public hideTitle?: boolean;

@@ -4,0 +4,0 @@ public hideMenuToggle?: boolean;

@@ -1,6 +0,4 @@

import { IWidget } from './widget';
export class Page {
public id: string;
public title: string;
public id: string;
public title: string;
}

@@ -1,8 +0,4 @@

import { IFooterOptions } from './footer-options';
import { IDatasource, Dashboard } from '../index';
import { NavigationOptions } from './..';
import { ISidebarOptions } from './..';
import { AppTheme } from './apptheme';
import { IHeaderOptions } from './header-options';
import { AppTheme, IHeaderOptions, IFooterOptions, IDatasource, IDashboard, ISidebarOptions, NavigationOptions } from './..';
/** project definition */
export interface IProject {

@@ -15,3 +11,3 @@ id?: string;

datasources?: { [id: string]: IDatasource };
dashboards?: Dashboard[];
dashboards?: IDashboard[];
leftSidebar?: ISidebarOptions;

@@ -21,4 +17,32 @@ rightSidebar?: ISidebarOptions;

header?: IHeaderOptions;
notifications?: INotificationOptions;
}
/** notification object */
export interface INotification {
id?: string;
type?: string;
title?: string;
text?: string;
remember?: boolean;
created?: Date;
priority?: number;
isRead?: boolean;
actionTitle?: string;
// tslint:disable-next-line:variable-name
_visible?: boolean;
timeout?: number;
icon?: string;
clickCallback?: () => {};
}
/** options for notifications in project */
export interface INotificationOptions {
/** show/hide notifictions */
enabled?: boolean;
/** list of existing notifications */
items?: INotification[];
listStyle?: 'popup' | 'right-sidebar';
}
export class Project implements IProject {

@@ -29,3 +53,3 @@ public id?: string;

public datasources?: { [id: string]: IDatasource } = {};
public dashboards?: Dashboard[] = [];
public dashboards?: IDashboard[] = [];
public leftSidebar?: ISidebarOptions = {};

@@ -35,2 +59,3 @@ public rightSidebar?: ISidebarOptions = {};

public header?: IHeaderOptions;
public notifications?: INotificationOptions;
}

@@ -1,2 +0,3 @@

import { Dashboard } from './dashboard';
import { IWidget, IDashboard } from './../index';
export interface ISidebarOptions {

@@ -12,4 +13,5 @@ open?: boolean;

clipped?: boolean;
canpin?: boolean;
dashboard?: Dashboard;
canPin?: boolean;
dashboard?: IDashboard;
widget?: IWidget;
}

@@ -1,2 +0,3 @@

import { Dashboard } from '../index';
import { EditorSchema } from './editor-schema';
import { IDashboard } from '../index';

@@ -29,6 +30,6 @@ export enum WidgetType {

options?: IWidgetOptions;
_dashboard?: Dashboard;
Schema?: EditorSchema;
_dashboard?: IDashboard;
_initalized?: boolean;
_style?: any;
}

@@ -9,8 +9,11 @@ export * from './classes/project';

export * from './classes/dashboard-manager-config';
export * from './classes/apptheme';
export * from './classes/app-theme';
export * from './classes/theme-colors';
export * from './classes/footer-options';
export * from './classes/header-options';
export * from './classes/navigation-options';
export * from './classes/sidebar-options';
export * from './classes/editor-schema';
export * from './utils/message-bus/message-bus-service';
// export * from './classes/plugin';

@@ -6,3 +6,3 @@ {

"noImplicitAny": false,
"sourceMap": false,
"sourceMap": true,
"outDir": "./dist",

@@ -13,2 +13,2 @@ "declaration": true,

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc