mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 04:08:57 +02:00
Moved bs-tree to its own repo
This commit is contained in:
parent
c13245fc2d
commit
c5b6068911
9 changed files with 0 additions and 2040 deletions
|
@ -1,7 +0,0 @@
|
|||
import BSTreeViewEventOptions from "./BSTreeViewEventOptions";
|
||||
|
||||
export default class BSTreeSearchOptions extends BSTreeViewEventOptions {
|
||||
ignoreCase: boolean = true;
|
||||
exactMatch: boolean = false;
|
||||
revealResults: boolean = true;
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +0,0 @@
|
|||
import BSTreeViewEventOptions from "./BSTreeViewEventOptions";
|
||||
|
||||
|
||||
export default class BSTreeViewDisableOptions extends BSTreeViewEventOptions
|
||||
{
|
||||
unselecting: boolean;
|
||||
keepState: boolean;
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
export default class BSTreeViewEventOptions {
|
||||
silent: boolean = false;
|
||||
ignoreChildren: boolean = false;
|
||||
|
||||
lazyLoad: boolean = false;
|
||||
|
||||
constructor(options: BSTreeViewEventOptions|object = null) {
|
||||
if(options) {
|
||||
Object.assign(this, options);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
import BSTreeViewEventOptions from "./BSTreeViewEventOptions";
|
||||
|
||||
|
||||
export default class BSTreeViewExpandOptions extends BSTreeViewEventOptions
|
||||
{
|
||||
levels: number = 999;
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
import BSTreeViewNodeState from "./BSTreeViewNodeState";
|
||||
import BSTreeViewOptions from "./BSTreeViewOptions";
|
||||
|
||||
export default class BSTreeViewNode {
|
||||
text: string;
|
||||
icon: string;
|
||||
image: string;
|
||||
selectedIcon: string;
|
||||
color: string;
|
||||
backColor: string;
|
||||
iconColor: string;
|
||||
iconBackground: string;
|
||||
selectable: boolean;
|
||||
checkable: boolean;
|
||||
state: BSTreeViewNodeState;
|
||||
tags: string[];
|
||||
dataAttr: object;
|
||||
id: string;
|
||||
class: string;
|
||||
hideCheckbox: boolean;
|
||||
nodes: BSTreeViewNode[];
|
||||
tooltip: string;
|
||||
href: string;
|
||||
|
||||
lazyLoad: boolean;
|
||||
tagsClass: string;
|
||||
|
||||
|
||||
el: HTMLElement;
|
||||
|
||||
searchResult: boolean;
|
||||
|
||||
|
||||
level: number;
|
||||
index: number;
|
||||
nodeId: string;
|
||||
parentId: string
|
||||
|
||||
constructor(options: BSTreeViewNode|object = null) {
|
||||
if(options) {
|
||||
Object.assign(this, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
export default class BSTreeViewNodeState {
|
||||
checked: boolean|null;
|
||||
disabled: boolean = false;
|
||||
expanded: boolean;
|
||||
selected: boolean;
|
||||
|
||||
visible: boolean;
|
||||
}
|
|
@ -1,78 +0,0 @@
|
|||
import BSTreeViewNode from "./BSTreeViewNode";
|
||||
|
||||
export default class BSTreeViewOptions {
|
||||
injectStyle: boolean = true;
|
||||
|
||||
levels: number = 2;
|
||||
|
||||
data: BSTreeViewNode[]|string = null;
|
||||
ajaxURL: string = null;
|
||||
ajaxConfig: RequestInit = {
|
||||
method: "GET",
|
||||
};
|
||||
|
||||
expandIcon: string = 'glyphicon glyphicon-plus';
|
||||
collapseIcon: string = 'glyphicon glyphicon-minus';
|
||||
loadingIcon: string = 'glyphicon glyphicon-hourglass';
|
||||
emptyIcon: string = 'glyphicon';
|
||||
nodeIcon: string = '';
|
||||
selectedIcon: string = '';
|
||||
checkedIcon: string = 'glyphicon glyphicon-check';
|
||||
partiallyCheckedIcon: string = 'glyphicon glyphicon-expand';
|
||||
uncheckedIcon: string = 'glyphicon glyphicon-unchecked';
|
||||
tagsClass: string = 'badge';
|
||||
|
||||
color: string = undefined;
|
||||
backColor: string = undefined;
|
||||
borderColor: string = undefined;
|
||||
changedNodeColor: string = '#39A5DC';
|
||||
onhoverColor: string = '#F5F5F5';
|
||||
selectedColor: string = '#FFFFFF';
|
||||
selectedBackColor: string = '#428bca';
|
||||
searchResultColor: string = '#D9534F';
|
||||
searchResultBackColor: string = undefined;
|
||||
|
||||
highlightSelected: boolean = true;
|
||||
highlightSearchResults: boolean = true;
|
||||
showBorder: boolean = true;
|
||||
showIcon: boolean = true;
|
||||
showImage: boolean = false;
|
||||
showCheckbox: boolean = false;
|
||||
checkboxFirst: boolean = false;
|
||||
highlightChanges: boolean = false;
|
||||
showTags: boolean = false;
|
||||
multiSelect: boolean = false;
|
||||
preventUnselect: boolean = false;
|
||||
allowReselect: boolean = false;
|
||||
hierarchicalCheck: boolean = false;
|
||||
propagateCheckEvent: boolean = false;
|
||||
wrapNodeText: boolean = false;
|
||||
|
||||
// Event handlers
|
||||
onLoading: (event: Event) => void = undefined;
|
||||
onLoadingFailed: (event: Event) => void = undefined;
|
||||
onInitialized: (event: Event) => void = undefined;
|
||||
onNodeRendered: (event: Event) => void = undefined;
|
||||
onRendered: (event: Event) => void = undefined;
|
||||
onDestroyed: (event: Event) => void = undefined;
|
||||
|
||||
onNodeChecked: (event: Event) => void = undefined;
|
||||
onNodeCollapsed: (event: Event) => void = undefined;
|
||||
onNodeDisabled: (event: Event) => void = undefined;
|
||||
onNodeEnabled: (event: Event) => void = undefined;
|
||||
onNodeExpanded: (event: Event) => void = undefined;
|
||||
onNodeSelected: (event: Event) => void = undefined;
|
||||
onNodeUnchecked: (event: Event) => void = undefined;
|
||||
onNodeUnselected: (event: Event) => void = undefined;
|
||||
|
||||
onSearchComplete: (event: Event) => void = undefined;
|
||||
onSearchCleared: (event: Event) => void = undefined;
|
||||
|
||||
lazyLoad: (node: BSTreeViewNode, renderer: (nodes: BSTreeViewNode[]) => void) => void = undefined;
|
||||
|
||||
constructor(options: BSTreeViewOptions|object = null) {
|
||||
if(options) {
|
||||
Object.assign(this, options);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
import BSTreeViewEventOptions from "./BSTreeViewEventOptions";
|
||||
|
||||
|
||||
export default class BSTreeViewSelectOptions extends BSTreeViewEventOptions
|
||||
{
|
||||
unselecting: boolean;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue