@base-framework/base 3.0.112 → 3.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +560 -8
- package/dist/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/main/data-tracker/tracker-types.d.ts +9 -23
- package/dist/types/modules/layout/html-to-string.d.ts +16 -2
- package/dist/types/shared/strings.d.ts +1 -1
- package/dist/types/shared/types.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function add(type: string, callBack: Function): void;
|
|
11
|
-
/**
|
|
12
|
-
* This will get a type or return false.
|
|
13
|
-
* @param {string} type
|
|
14
|
-
* @returns {(Function|false)} The callBack or false.
|
|
15
|
-
*/
|
|
16
|
-
function get(type: string): false | Function;
|
|
17
|
-
/**
|
|
18
|
-
* This will remove a type.
|
|
19
|
-
* @param {string} type
|
|
20
|
-
* @returns {void}
|
|
21
|
-
*/
|
|
22
|
-
function remove(type: string): void;
|
|
23
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* TrackerTypes
|
|
3
|
+
*
|
|
4
|
+
* This will add and remove tracker types to the data tracker.
|
|
5
|
+
*
|
|
6
|
+
* @type {object} TrackerTypes
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export const TrackerTypes: object;
|
|
@@ -10,11 +10,25 @@ export class HtmlToString {
|
|
|
10
10
|
* This will create a node string.
|
|
11
11
|
*
|
|
12
12
|
* @param {string} tag
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {array} attrs
|
|
14
14
|
* @param {string} children
|
|
15
15
|
* @returns {string}
|
|
16
16
|
*/
|
|
17
|
-
static create(tag: string, attrs?:
|
|
17
|
+
static create(tag: string, attrs?: any[], children?: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* This will get the inner content.
|
|
20
|
+
*
|
|
21
|
+
* @param {object} attrs
|
|
22
|
+
* @returns {string}
|
|
23
|
+
*/
|
|
24
|
+
static getInnerContent(attrs: object): string;
|
|
25
|
+
/**
|
|
26
|
+
* This will get the inner html.
|
|
27
|
+
*
|
|
28
|
+
* @param {object} attrs
|
|
29
|
+
* @returns {string}
|
|
30
|
+
*/
|
|
31
|
+
static getInnerHtml(attrs: object): string;
|
|
18
32
|
/**
|
|
19
33
|
* This will create a text node.
|
|
20
34
|
*
|
|
@@ -24,24 +24,24 @@ export class Types {
|
|
|
24
24
|
/**
|
|
25
25
|
* This will check if the request is an object.
|
|
26
26
|
*
|
|
27
|
-
* @param {
|
|
27
|
+
* @param {*} data
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
static isObject(
|
|
30
|
+
static isObject(data: any): boolean;
|
|
31
31
|
/**
|
|
32
|
-
* This will check if the request is
|
|
32
|
+
* This will check if the request is a function.
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {*} data
|
|
35
35
|
* @returns {boolean}
|
|
36
36
|
*/
|
|
37
|
-
static isFunction(
|
|
37
|
+
static isFunction(data: any): boolean;
|
|
38
38
|
/**
|
|
39
|
-
* This will check if the request is
|
|
39
|
+
* This will check if the request is a string.
|
|
40
40
|
*
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {*} data
|
|
42
42
|
* @returns {boolean}
|
|
43
43
|
*/
|
|
44
|
-
static isString(
|
|
44
|
+
static isString(data: any): boolean;
|
|
45
45
|
/**
|
|
46
46
|
* This will check if the data is an array.
|
|
47
47
|
*
|