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:
1
plugins/filterizr/utils/allStringsOfArray1InArray2.d.ts
vendored
Normal file
1
plugins/filterizr/utils/allStringsOfArray1InArray2.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const allStringsOfArray1InArray2: (arr1: string[], arr2: string[]) => boolean;
|
||||
9
plugins/filterizr/utils/checkOptionForErrors.d.ts
vendored
Normal file
9
plugins/filterizr/utils/checkOptionForErrors.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Error checking method to restrict a prop to some allowed values
|
||||
* @param {String} name of the option key in the options object
|
||||
* @param {String|Number|Object|Function|Array|Boolean} value of the option
|
||||
* @param {String} type of the property
|
||||
* @param {Array} allowed accepted values for option
|
||||
* @param {String} furtherHelpLink a link to docs for further help
|
||||
*/
|
||||
export declare const checkOptionForErrors: (name: string, value: string | number | boolean | object | Function | any[], type?: string, allowed?: RegExp | any[], furtherHelpLink?: string) => void;
|
||||
4
plugins/filterizr/utils/debounce.d.ts
vendored
Normal file
4
plugins/filterizr/utils/debounce.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Debounce of Underscore.js
|
||||
*/
|
||||
export declare const debounce: (func: Function, wait: number, immediate: boolean) => Function;
|
||||
9
plugins/filterizr/utils/filterItemArraysHaveSameSorting.d.ts
vendored
Normal file
9
plugins/filterizr/utils/filterItemArraysHaveSameSorting.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import FilterItem from '../FilterItem';
|
||||
/**
|
||||
* Simple method to check if two arrays of FilterItems
|
||||
* are sorted in the same manner or not.
|
||||
* @param {Array} arr1 the first array of FilterItems
|
||||
* @param {Array} arr2 the second array of FilterItems
|
||||
* @return {Boolean} equality
|
||||
*/
|
||||
export declare const filterItemArraysHaveSameSorting: (filterItemsA: FilterItem[], filterItemsB: FilterItem[]) => boolean;
|
||||
2
plugins/filterizr/utils/getDataAttributesOfHTMLNode.d.ts
vendored
Normal file
2
plugins/filterizr/utils/getDataAttributesOfHTMLNode.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Dictionary } from '../types/interfaces/Dictionary';
|
||||
export declare function getDataAttributesOfHTMLNode(node: Element): Dictionary;
|
||||
6
plugins/filterizr/utils/getHTMLElement.d.ts
vendored
Normal file
6
plugins/filterizr/utils/getHTMLElement.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Wrapper around document.querySelector, will function as
|
||||
* an identity function if an HTML element is passed in
|
||||
* @param {HTMLElement|string} nodeOrSelector
|
||||
*/
|
||||
export declare const getHTMLElement: (selectorOrNode: string | HTMLElement) => HTMLElement;
|
||||
12
plugins/filterizr/utils/index.d.ts
vendored
Normal file
12
plugins/filterizr/utils/index.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export { allStringsOfArray1InArray2 } from './allStringsOfArray1InArray2';
|
||||
export { checkOptionForErrors } from './checkOptionForErrors';
|
||||
export { debounce } from './debounce';
|
||||
export { filterItemArraysHaveSameSorting, } from './filterItemArraysHaveSameSorting';
|
||||
export { getDataAttributesOfHTMLNode } from './getDataAttributesOfHTMLNode';
|
||||
export { getHTMLElement } from './getHTMLElement';
|
||||
export { intersection } from './intersection';
|
||||
export { merge } from './merge';
|
||||
export { noop } from './noop';
|
||||
export { setStyles } from './setStyles';
|
||||
export { shuffle } from './shuffle';
|
||||
export { sortBy } from './sortBy';
|
||||
4
plugins/filterizr/utils/intersection.d.ts
vendored
Normal file
4
plugins/filterizr/utils/intersection.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* A function get the intersection of two arrays. IE9+.
|
||||
*/
|
||||
export declare const intersection: (arr1: any[], arr2: any[]) => any[];
|
||||
5
plugins/filterizr/utils/merge.d.ts
vendored
Normal file
5
plugins/filterizr/utils/merge.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Dictionary } from '../types/interfaces/Dictionary';
|
||||
/**
|
||||
* Deep merge two objects.
|
||||
*/
|
||||
export declare function merge(target: Dictionary, ...sources: Dictionary[]): Dictionary;
|
||||
4
plugins/filterizr/utils/noop.d.ts
vendored
Normal file
4
plugins/filterizr/utils/noop.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* A no-operation function
|
||||
*/
|
||||
export declare const noop: () => void;
|
||||
7
plugins/filterizr/utils/setStyles.d.ts
vendored
Normal file
7
plugins/filterizr/utils/setStyles.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Set inline styles on an HTML node
|
||||
* @param {HTMLElement} node - HTML node
|
||||
* @param {Object} styles - object with styles
|
||||
* @returns {undefined}
|
||||
*/
|
||||
export declare function setStyles(node: Element, styles: any): void;
|
||||
6
plugins/filterizr/utils/shuffle.d.ts
vendored
Normal file
6
plugins/filterizr/utils/shuffle.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Fisher-Yates shuffle ES6 non-mutating implementation.
|
||||
* @param {Array} array the array to shuffle
|
||||
* @return {Array} shuffled array without mutating the initial array.
|
||||
*/
|
||||
export declare const shuffle: (array: any[]) => any[];
|
||||
7
plugins/filterizr/utils/sortBy.d.ts
vendored
Normal file
7
plugins/filterizr/utils/sortBy.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Simple non-mutating sorting function for arrays of objects by a property
|
||||
* @param {Array} array to sort
|
||||
* @param {Function} propFn fetches the property by which to sort
|
||||
* @return {Array} a new sorted array
|
||||
*/
|
||||
export declare const sortBy: (array: any[], propFn: Function) => any[];
|
||||
Reference in New Issue
Block a user