@csnext/cs-core
Advanced tools
Comparing version 0.0.132-beta.259 to 0.0.132-beta.443
@@ -6,2 +6,3 @@ import { IWidget, IDashboard } from './..'; | ||
dashboardLoaded?: () => void; | ||
data?: any; | ||
contentLoaded?: (d: any) => void; | ||
@@ -8,0 +9,0 @@ editDashboard?: (dashboard: IDashboard) => void; |
@@ -13,2 +13,5 @@ import { IDashboard } from './dashboard'; | ||
_dashboard?: IDashboard; | ||
sidebarWidth?: number | string; | ||
sidebarTemporary?: boolean; | ||
sidebarExpanded?: boolean; | ||
info?: InfoOptions | string; | ||
@@ -15,0 +18,0 @@ shortcut?: KeyboardShortcut; |
@@ -9,2 +9,3 @@ export declare class ToolbarOptions { | ||
prominent?: boolean; | ||
outlined?: boolean; | ||
collapse?: boolean; | ||
@@ -11,0 +12,0 @@ absolute?: boolean; |
@@ -30,2 +30,6 @@ import { __decorate, __metadata } from "tslib"; | ||
__decorate([ | ||
FormField({ title: 'Outlined', type: 'checkbox' }), | ||
__metadata("design:type", Boolean) | ||
], ToolbarOptions.prototype, "outlined", void 0); | ||
__decorate([ | ||
FormField({ title: 'Collapse', type: 'checkbox' }), | ||
@@ -32,0 +36,0 @@ __metadata("design:type", Boolean) |
@@ -10,2 +10,5 @@ import 'reflect-metadata'; | ||
toolbarClass?: string; | ||
showPanels?: boolean; | ||
icon?: string; | ||
verbose?: boolean; | ||
isPanelOpen?: boolean; | ||
@@ -42,3 +45,3 @@ optionalSupport?: boolean; | ||
export interface IFormFieldOptions extends IFormFieldBaseOptions { | ||
type?: 'string' | 'textarea' | 'number' | 'slider' | 'chips' | 'colorpicker' | 'combobox' | 'combobox-objects' | 'checkboxes-horizontal' | 'checkbox' | 'object' | 'selection' | 'array' | 'keyvalue' | 'form' | 'union' | 'keysobject' | 'datetimepicker' | 'epochdatetimepicker' | 'datepicker' | 'button-trigger' | 'rating' | 'component' | 'imagelist'; | ||
type?: 'string' | 'textarea' | 'number' | 'slider' | 'chips' | 'colorpicker' | 'combobox' | 'combobox-objects' | 'checkboxes-horizontal' | 'checkbox' | 'object' | 'selection' | 'keyvalue' | 'switch' | 'form' | 'union' | 'keysobject' | 'datetimepicker' | 'url' | 'group-buttons' | 'epochdatetimepicker' | 'datepicker' | 'button-trigger' | 'rating' | 'component' | 'imagelist'; | ||
defaultValue?: any; | ||
@@ -49,2 +52,3 @@ description?: string; | ||
section?: string; | ||
array?: boolean; | ||
min?: number; | ||
@@ -68,2 +72,3 @@ max?: number; | ||
keyText?: string; | ||
urlTemplate?: string; | ||
keyValue?: string; | ||
@@ -73,2 +78,3 @@ icon?: string; | ||
component?: any; | ||
selectedText?: string; | ||
hint?: string; | ||
@@ -75,0 +81,0 @@ persistentHint?: boolean; |
@@ -0,1 +1,2 @@ | ||
import { IWidget } from '..'; | ||
import { IDashboard } from '../dashboard/dashboard'; | ||
@@ -24,5 +25,8 @@ export interface IMenu { | ||
component?: any; | ||
plugin?: any; | ||
widget?: IWidget; | ||
closeOnContentClick?: boolean; | ||
data?: any; | ||
location?: 'sidebar' | 'header' | 'footer' | 'floating'; | ||
_dashboard?: IDashboard; | ||
} |
@@ -1,4 +0,4 @@ | ||
export declare function guidGenerator(length?: number): string; | ||
export declare function guidGenerator(): string; | ||
export declare function idGenerator(): string; | ||
export declare function numberGenerator(): number; | ||
export declare function generateHash(text: string): number; |
@@ -1,6 +0,17 @@ | ||
export function guidGenerator(length = 10) { | ||
export function guidGenerator() { | ||
const S4 = () => { | ||
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | ||
}; | ||
return (S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4()); | ||
return (S4() + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
S4() + | ||
S4()); | ||
} | ||
@@ -11,3 +22,3 @@ export function idGenerator() { | ||
}; | ||
return (S4() + S4()); | ||
return S4() + S4(); | ||
} | ||
@@ -23,3 +34,3 @@ export function numberGenerator() { | ||
chr = text.charCodeAt(i); | ||
hash = ((hash << 5) - hash) + chr; | ||
hash = (hash << 5) - hash + chr; | ||
hash |= 0; | ||
@@ -26,0 +37,0 @@ } |
export declare class Info { | ||
title?: string; | ||
markdownUrl?: string; | ||
mdContent?: string; | ||
tabs?: Info[]; | ||
} |
@@ -32,2 +32,3 @@ import { IMenu, ToolbarOptions } from './../'; | ||
area?: string; | ||
sync?: 'widget' | 'dashboard' | 'manager' | 'datasource' | 'global'; | ||
} |
{ | ||
"name": "@csnext/cs-core", | ||
"version": "0.0.132-beta.259+013b954d", | ||
"version": "0.0.132-beta.443+05b06dc1", | ||
"description": "cscore", | ||
@@ -15,2 +15,3 @@ "exports": { | ||
"scripts": { | ||
"fixrouter": "del-cli node_modules/@csnext", | ||
"link": "yarn link", | ||
@@ -28,10 +29,8 @@ "build:pack": "yarn pack --filename ../../dist/cs-core.tgz", | ||
"dependencies": { | ||
"nanoid": "3.1.30", | ||
"typescript-collections": "^1.3.3" | ||
}, | ||
"devDependencies": { | ||
"@types/nanoid": "3.0.0", | ||
"@types/socket.io-client": "^1.4.36" | ||
}, | ||
"gitHead": "013b954df22e58168a5406f176562e158efeb10f" | ||
"gitHead": "05b06dc193a2738a36717da282b0f8db4e1a99de" | ||
} |
@@ -7,2 +7,3 @@ import { IWidget, IDashboard } from './..'; | ||
dashboardLoaded?: () => void; | ||
data?: any; | ||
contentLoaded?: (d: any) => void; | ||
@@ -9,0 +10,0 @@ editDashboard?: (dashboard: IDashboard) => void; |
@@ -16,2 +16,6 @@ import { IDashboard } from './dashboard'; | ||
_dashboard?: IDashboard; | ||
// width of sidebar if this dashboard is hosted in a sidebar | ||
sidebarWidth?: number | string; | ||
sidebarTemporary?: boolean; | ||
sidebarExpanded?: boolean; | ||
info?: InfoOptions | string; | ||
@@ -18,0 +22,0 @@ // trigger dashboard using keyboard short cut |
@@ -17,2 +17,4 @@ import { FormField, Form } from '../form/form-decorators'; | ||
public prominent?: boolean; | ||
@FormField({ title: 'Outlined', type: 'checkbox' }) | ||
public outlined?: boolean; | ||
@FormField({ title: 'Collapse', type: 'checkbox' }) | ||
@@ -19,0 +21,0 @@ public collapse?: boolean; |
@@ -11,2 +11,5 @@ import 'reflect-metadata'; | ||
toolbarClass?: string; | ||
showPanels?: boolean; | ||
icon?: string; | ||
verbose?: boolean; | ||
isPanelOpen?: boolean; | ||
@@ -57,5 +60,5 @@ optionalSupport?: boolean; | ||
| 'object' | ||
| 'selection' | ||
| 'array' | ||
| 'selection' | ||
| 'keyvalue' | ||
| 'switch' | ||
| 'form' | ||
@@ -65,2 +68,4 @@ | 'union' | ||
| 'datetimepicker' | ||
| 'url' | ||
| 'group-buttons' | ||
| 'epochdatetimepicker' | ||
@@ -77,2 +82,3 @@ | 'datepicker' | ||
section?: string; | ||
array?: boolean; | ||
min?: number; | ||
@@ -96,2 +102,3 @@ max?: number; | ||
keyText?: string; | ||
urlTemplate?: string; | ||
keyValue?: string; | ||
@@ -101,2 +108,3 @@ icon?: string; | ||
component?: any; | ||
selectedText?: string; | ||
hint?: string; | ||
@@ -103,0 +111,0 @@ persistentHint?: boolean; |
@@ -0,1 +1,2 @@ | ||
import { IWidget } from '..'; | ||
import { IDashboard } from '../dashboard/dashboard'; | ||
@@ -25,5 +26,8 @@ | ||
component?: any; | ||
plugin?: any; | ||
widget?: IWidget; | ||
closeOnContentClick?: boolean; | ||
data?: any; | ||
location?: 'sidebar' | 'header' | 'footer' | 'floating'; | ||
_dashboard?: IDashboard; | ||
} |
@@ -1,4 +0,2 @@ | ||
import { customAlphabet } from 'nanoid/non-secure'; | ||
export function guidGenerator(length = 10) : string { | ||
// return customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', length).toString(); | ||
export function guidGenerator(): string { | ||
const S4 = () => { | ||
@@ -8,3 +6,16 @@ // tslint:disable-next-line:no-bitwise | ||
}; | ||
return (S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4()); | ||
return ( | ||
S4() + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
"-" + | ||
S4() + | ||
S4() + | ||
S4() | ||
); | ||
} | ||
@@ -17,3 +28,3 @@ | ||
}; | ||
return (S4() + S4()); | ||
return S4() + S4(); | ||
} | ||
@@ -26,10 +37,12 @@ | ||
export function generateHash(text: string) { | ||
var hash = 0, i, chr; | ||
var hash = 0, | ||
i, | ||
chr; | ||
if (text.length === 0) return hash; | ||
for (i = 0; i < text.length; i++) { | ||
chr = text.charCodeAt(i); | ||
hash = ((hash << 5) - hash) + chr; | ||
hash |= 0; // Convert to 32bit integer | ||
chr = text.charCodeAt(i); | ||
hash = (hash << 5) - hash + chr; | ||
hash |= 0; // Convert to 32bit integer | ||
} | ||
return hash; | ||
} |
@@ -6,3 +6,4 @@ | ||
markdownUrl?: string; | ||
mdContent?: string; | ||
tabs?: Info[]; | ||
} |
@@ -53,2 +53,3 @@ import { IMenu, ToolbarOptions } from './../'; | ||
public area?: string; | ||
public sync?: 'widget' | 'dashboard' | 'manager' | 'datasource' | 'global'; | ||
} |
@@ -8,5 +8,6 @@ { | ||
"rootDir": "./src/", | ||
"module": "ES6" | ||
"module": "ES6", | ||
"checkJs": false | ||
}, | ||
"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
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
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2575705
1
1
9560
- Removednanoid@3.1.30
- Removednanoid@3.1.30(transitive)