Updated AdminLTE to 3.04 assets, added search to side bar, added company select drop down on sidebar. removed extra delete under edit contact
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
import { Position } from '../types/interfaces';
|
||||
import FilterizrOptions from '../FilterizrOptions';
|
||||
import FilterizrElement from '../FilterizrElement';
|
||||
import StyledFilterItem from './StyledFilterItem';
|
||||
/**
|
||||
* Resembles an item in the grid of Filterizr.
|
||||
*/
|
||||
export default class FilterItem extends FilterizrElement {
|
||||
protected styledNode: StyledFilterItem;
|
||||
private filteredOut;
|
||||
private lastPosition;
|
||||
private sortData;
|
||||
constructor(node: Element, index: number, options: FilterizrOptions);
|
||||
readonly styles: StyledFilterItem;
|
||||
/**
|
||||
* Destroys the FilterItem instance
|
||||
*/
|
||||
destroy(): void;
|
||||
/**
|
||||
* Filters in a specific FilterItem out of the grid.
|
||||
*/
|
||||
filterIn(targetPosition: Position): void;
|
||||
/**
|
||||
* Filters out a specific FilterItem out of the grid.
|
||||
*/
|
||||
filterOut(): void;
|
||||
/**
|
||||
* Returns true if the text contents of the FilterItem match the search term
|
||||
* @param searchTerm to look up
|
||||
*/
|
||||
contentsMatchSearch(searchTerm: string): boolean;
|
||||
/**
|
||||
* Returns all categories of the grid items data-category attribute
|
||||
* with a regexp regarding all whitespace.
|
||||
*/
|
||||
getCategories(): string[];
|
||||
/**
|
||||
* Returns the value of the sort attribute
|
||||
* @param sortAttribute "index", "sortData" or custom user data-attribute by which to sort
|
||||
*/
|
||||
getSortAttribute(sortAttribute: string): string | number;
|
||||
protected bindEvents(): void;
|
||||
protected unbindEvents(): void;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Position } from './../types/interfaces';
|
||||
import StyledFilterizrElement from '../StyledFilterizrElement';
|
||||
import FilterizrOptions from '../FilterizrOptions';
|
||||
export default class StyledFilterItem extends StyledFilterizrElement {
|
||||
private _index;
|
||||
constructor(node: HTMLElement, index: number, options: FilterizrOptions);
|
||||
initialize(): void;
|
||||
setFilteredStyles(position: Position, cssOptions: object): void;
|
||||
updateTransitionStyle(): void;
|
||||
updateWidth(): void;
|
||||
/**
|
||||
* Sets the transition css property as an inline style on the FilterItem.
|
||||
*
|
||||
* The idea here is that during the very first render items should assume
|
||||
* their positions directly.
|
||||
*
|
||||
* Following renders should actually trigger the transitions, which is why
|
||||
* we need to delay setting the transition property.
|
||||
*
|
||||
* Unfortunately, JavaScript code executes on the same thread as the
|
||||
* browser's rendering. Everything that needs to be drawn waits for
|
||||
* JavaScript execution to complete. Thus, we need to use a setTimeout
|
||||
* here to defer setting the transition style at the first rendering cycle.
|
||||
*/
|
||||
enableTransitions(): Promise<void>;
|
||||
disableTransitions(): void;
|
||||
setZIndex(zIndex: number): void;
|
||||
removeZIndex(): void;
|
||||
removeWidth(): void;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from './FilterItem';
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import FilterizrOptions from '../FilterizrOptions';
|
||||
import { Dictionary, Position } from '../types/interfaces';
|
||||
export declare const makeInitialStyles: (options: FilterizrOptions) => object;
|
||||
export declare const makeFilteringStyles: (targetPosition: Position, cssOptions: Dictionary) => object;
|
||||
export declare const makeTransitionStyles: (index: number, options: FilterizrOptions) => object;
|
||||
Reference in New Issue
Block a user