@base-framework/base 3.5.48 → 3.5.50
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/dist/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/main/base.d.ts +10 -11
- package/dist/types/main/data-tracker/data-tracker.d.ts +2 -2
- package/dist/types/main/data-tracker/tracker.d.ts +1 -1
- package/dist/types/main/events/event-methods.d.ts +1 -1
- package/dist/types/main/events/events.d.ts +9 -9
- package/dist/types/modules/ajax/ajax.d.ts +2 -2
- package/dist/types/modules/ajax/xhr-default-settings.d.ts +7 -9
- package/dist/types/modules/ajax/xhr-request.d.ts +4 -4
- package/dist/types/modules/animation/animation.d.ts +3 -3
- package/dist/types/modules/animations/animation-controller.d.ts +4 -1
- package/dist/types/modules/animations/attr-movement.d.ts +0 -14
- package/dist/types/modules/animations/css-movement.d.ts +11 -1
- package/dist/types/modules/animations/movement.d.ts +79 -14
- package/dist/types/modules/animations/value.d.ts +113 -25
- package/dist/types/modules/component/cloak.d.ts +1 -1
- package/dist/types/modules/component/component.d.ts +12 -13
- package/dist/types/modules/component/event-helper.d.ts +4 -4
- package/dist/types/modules/component/parse-args.d.ts +1 -1
- package/dist/types/modules/component/pod.d.ts +1 -1
- package/dist/types/modules/component/prop-utils.d.ts +2 -2
- package/dist/types/modules/component/state-helper.d.ts +13 -13
- package/dist/types/modules/component/unit.d.ts +27 -25
- package/dist/types/modules/data/types/basic-data.d.ts +6 -6
- package/dist/types/modules/data/types/deep-data/data-utils.d.ts +2 -2
- package/dist/types/modules/data/types/deep-data/deep-data.d.ts +2 -2
- package/dist/types/modules/data/types/deep-data/publisher.d.ts +2 -2
- package/dist/types/modules/data/types/model/model-service.d.ts +28 -28
- package/dist/types/modules/data-binder/connection-tracker/connection-tracker.d.ts +2 -2
- package/dist/types/modules/data-binder/connection-tracker/connections/one-way-connection.d.ts +2 -3
- package/dist/types/modules/data-binder/connection-tracker/connections/two-way-connection.d.ts +8 -10
- package/dist/types/modules/data-binder/data-binder.d.ts +17 -16
- package/dist/types/modules/data-binder/data-pub-sub.d.ts +1 -1
- package/dist/types/modules/data-binder/sources/data-source.d.ts +3 -3
- package/dist/types/modules/data-binder/sources/element-source.d.ts +4 -4
- package/dist/types/modules/data-binder/sources/source.d.ts +4 -4
- package/dist/types/modules/data-binder/sources/two-way-source.d.ts +2 -2
- package/dist/types/modules/date/date-time.d.ts +4 -4
- package/dist/types/modules/html/html.d.ts +2 -2
- package/dist/types/modules/import/group.d.ts +4 -4
- package/dist/types/modules/import/import-wrapper.d.ts +2 -2
- package/dist/types/modules/layout/builder.d.ts +2 -2
- package/dist/types/modules/layout/directives/core/parent/parent-directives.d.ts +1 -1
- package/dist/types/modules/layout/directives/core/reactive/data-set.d.ts +2 -2
- package/dist/types/modules/layout/directives/core/reactive/map.d.ts +1 -1
- package/dist/types/modules/layout/directives/core/reactive/on-set.d.ts +1 -1
- package/dist/types/modules/layout/directives/core/reactive/on-state.d.ts +1 -1
- package/dist/types/modules/layout/directives/core/switch.d.ts +1 -1
- package/dist/types/modules/layout/directives/directives.d.ts +4 -4
- package/dist/types/modules/layout/element/element.d.ts +1 -1
- package/dist/types/modules/layout/element/parser.d.ts +6 -6
- package/dist/types/modules/layout/html-helper.d.ts +4 -4
- package/dist/types/modules/layout/html-to-string.d.ts +4 -4
- package/dist/types/modules/layout/render/render.d.ts +2 -2
- package/dist/types/modules/router/history/browser-history.d.ts +6 -6
- package/dist/types/modules/router/history/hash-history.d.ts +6 -0
- package/dist/types/modules/router/history/history.d.ts +2 -2
- package/dist/types/modules/router/nav-link.d.ts +2 -2
- package/dist/types/modules/router/router.d.ts +37 -28
- package/dist/types/modules/router/routes/component-helper.d.ts +0 -5
- package/dist/types/modules/router/routes/param-pattern.d.ts +2 -2
- package/dist/types/modules/router/routes/route.d.ts +1 -1
- package/dist/types/modules/router/utils.d.ts +9 -9
- package/dist/types/modules/state/state-tracker.d.ts +1 -1
- package/dist/types/shared/arrays.d.ts +4 -4
- package/dist/types/shared/dom.d.ts +2 -2
- package/dist/types/shared/encode/encode.d.ts +4 -9
- package/package.json +1 -1
- package/dist/types/modules/atom/atoms.d.ts +0 -343
- package/dist/types/modules/data/attrs.d.ts +0 -1
- package/dist/types/modules/data/basic-data.d.ts +0 -259
- package/dist/types/modules/data/data-utils.d.ts +0 -17
- package/dist/types/modules/data/deep-data.d.ts +0 -162
- package/dist/types/modules/data/model-service.d.ts +0 -280
- package/dist/types/modules/data/model.d.ts +0 -33
- package/dist/types/modules/data/simple-data.d.ts +0 -12
- package/dist/types/modules/router/routes/cloak.d.ts +0 -12
|
@@ -14,19 +14,19 @@ export class Group {
|
|
|
14
14
|
*/
|
|
15
15
|
constructor(callBack: Function);
|
|
16
16
|
/**
|
|
17
|
-
* @
|
|
17
|
+
* @type {number} percent
|
|
18
18
|
*/
|
|
19
19
|
percent: number;
|
|
20
20
|
/**
|
|
21
|
-
* @
|
|
21
|
+
* @type {number} loaded
|
|
22
22
|
*/
|
|
23
23
|
loaded: number;
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
25
|
+
* @type {number} total
|
|
26
26
|
*/
|
|
27
27
|
total: number;
|
|
28
28
|
/**
|
|
29
|
-
* @
|
|
29
|
+
* @type {function} callBack
|
|
30
30
|
*/
|
|
31
31
|
callBack: Function;
|
|
32
32
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* will wrap the comment atom to pass route to the
|
|
6
6
|
* imported layout.
|
|
7
7
|
*
|
|
8
|
-
* @type {typeof Component}
|
|
8
|
+
* @type {typeof Component | null}
|
|
9
9
|
*/
|
|
10
|
-
export const ImportWrapper: typeof Component;
|
|
10
|
+
export const ImportWrapper: typeof Component | null;
|
|
11
11
|
import { Component } from "../component/component.js";
|
|
@@ -37,11 +37,11 @@ export class Builder {
|
|
|
37
37
|
* This will add the element directives.
|
|
38
38
|
*
|
|
39
39
|
* @param {object} ele
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {Array<any>} directives
|
|
41
41
|
* @param {object} parent
|
|
42
42
|
* @returns {void}
|
|
43
43
|
*/
|
|
44
|
-
static setDirectives(ele: object, directives: any
|
|
44
|
+
static setDirectives(ele: object, directives: Array<any>, parent: object): void;
|
|
45
45
|
/**
|
|
46
46
|
* This will create a node.
|
|
47
47
|
*
|
|
@@ -4,4 +4,4 @@ export function getId(ele: object, name: string, parent: object): void;
|
|
|
4
4
|
export function useData(ele: object, callBack: Function, parent: object): void;
|
|
5
5
|
export function useState(ele: object, callBack: Function, parent: object): void;
|
|
6
6
|
export function addState(ele: object, callBack: Function, parent: object): void;
|
|
7
|
-
export function addEvent(ele: object, event: any
|
|
7
|
+
export function addEvent(ele: object, event: Array<any>, parent: object): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function addDataSet(ele: object, attribute: any
|
|
2
|
-
export function addDataStateSet(ele: object, attribute: any
|
|
1
|
+
export function addDataSet(ele: object, attribute: Array<any>, parent: object): void;
|
|
2
|
+
export function addDataStateSet(ele: object, attribute: Array<any>, parent: object): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function map(ele: object, settings: any
|
|
1
|
+
export function map(ele: object, settings: Array<any>, parent: object): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function onSet(ele: object, onSet: any
|
|
1
|
+
export function onSet(ele: object, onSet: Array<any>, parent: object): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function onState(ele: object, onState: any
|
|
1
|
+
export function onState(ele: object, onState: Array<any>, parent: object): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function addSwitch(ele: object, group: any
|
|
1
|
+
export function addSwitch(ele: object, group: Array<any>, parent: object): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export namespace Directives {
|
|
2
|
-
let keys: any
|
|
3
|
-
let items:
|
|
2
|
+
let keys: Array<any>;
|
|
3
|
+
let items: object;
|
|
4
4
|
/**
|
|
5
5
|
* This will add a directive.
|
|
6
6
|
*
|
|
@@ -19,7 +19,7 @@ export namespace Directives {
|
|
|
19
19
|
/**
|
|
20
20
|
* This will get all directive names.
|
|
21
21
|
*
|
|
22
|
-
* @returns {
|
|
22
|
+
* @returns {Array<any>}
|
|
23
23
|
*/
|
|
24
|
-
function all(): any
|
|
24
|
+
function all(): Array<any>;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function Element(tag: string, attr: any
|
|
1
|
+
export function Element(tag: string, attr: Array<any>, directives: Array<any>, children: Array<any>): object;
|
|
@@ -28,17 +28,17 @@ export class Parser {
|
|
|
28
28
|
*
|
|
29
29
|
* @param {string} key
|
|
30
30
|
* @param {*} value
|
|
31
|
-
* @param {
|
|
32
|
-
* @param {
|
|
31
|
+
* @param {Array<any>} attr
|
|
32
|
+
* @param {Array<any>} children
|
|
33
33
|
* @returns {boolean}
|
|
34
34
|
*/
|
|
35
|
-
static setElementContent(key: string, value: any, attr: any
|
|
35
|
+
static setElementContent(key: string, value: any, attr: Array<any>, children: Array<any>): boolean;
|
|
36
36
|
/**
|
|
37
37
|
* This will set the text as a watcher.
|
|
38
38
|
*
|
|
39
39
|
* @private
|
|
40
40
|
* @static
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {Array<any>} directives
|
|
42
42
|
* @param {string} key
|
|
43
43
|
* @param {string} value
|
|
44
44
|
* @returns {void}
|
|
@@ -50,9 +50,9 @@ export class Parser {
|
|
|
50
50
|
* @static
|
|
51
51
|
* @param {string} tag
|
|
52
52
|
* @param {object} obj
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {Array<any>} attr
|
|
54
54
|
*/
|
|
55
|
-
static setButtonType(tag: string, obj: object, attr: any
|
|
55
|
+
static setButtonType(tag: string, obj: object, attr: Array<any>): void;
|
|
56
56
|
/**
|
|
57
57
|
* This will parse a layout element.
|
|
58
58
|
*
|
|
@@ -12,22 +12,22 @@ export class HtmlHelper extends Html {
|
|
|
12
12
|
*
|
|
13
13
|
* @override
|
|
14
14
|
* @param {string} nodeName The node name.
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {Array<any>} attrs The node attributes.
|
|
16
16
|
* @param {object} container The node container.
|
|
17
17
|
* @param {object} parent
|
|
18
18
|
* @returns {object} The new element.
|
|
19
19
|
*/
|
|
20
|
-
static override create(nodeName: string, attrs: any
|
|
20
|
+
static override create(nodeName: string, attrs: Array<any>, container: object, parent: object): object;
|
|
21
21
|
/**
|
|
22
22
|
* This will add the element attributes.
|
|
23
23
|
*
|
|
24
24
|
* @overload
|
|
25
25
|
* @param {object} ele
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {Array<any>} attrs
|
|
27
27
|
* @param {object} parent
|
|
28
28
|
* @returns {void}
|
|
29
29
|
*/
|
|
30
|
-
static addAttributes(ele: object, attrs: any
|
|
30
|
+
static addAttributes(ele: object, attrs: Array<any>, parent: object): void;
|
|
31
31
|
/**
|
|
32
32
|
* This will add an element attribute.
|
|
33
33
|
*
|
|
@@ -10,11 +10,11 @@ export class HtmlToString {
|
|
|
10
10
|
* This will create a node string.
|
|
11
11
|
*
|
|
12
12
|
* @param {string} tag
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {Array<any>} attrs
|
|
14
14
|
* @param {string} children
|
|
15
15
|
* @returns {string}
|
|
16
16
|
*/
|
|
17
|
-
static create(tag: string, attrs?: any
|
|
17
|
+
static create(tag: string, attrs?: Array<any>, children?: string): string;
|
|
18
18
|
/**
|
|
19
19
|
* This will get the inner content.
|
|
20
20
|
*
|
|
@@ -32,10 +32,10 @@ export class HtmlToString {
|
|
|
32
32
|
/**
|
|
33
33
|
* This will create a text node.
|
|
34
34
|
*
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {Array<any>} attrs
|
|
36
36
|
* @returns {string}
|
|
37
37
|
*/
|
|
38
|
-
static createAttributes(attrs?: any
|
|
38
|
+
static createAttributes(attrs?: Array<any>): string;
|
|
39
39
|
/**
|
|
40
40
|
* This will create a text node.
|
|
41
41
|
*
|
|
@@ -46,11 +46,11 @@ export class Render {
|
|
|
46
46
|
* This will add the element directives.
|
|
47
47
|
*
|
|
48
48
|
* @param {object} ele
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {Array<any>} directives
|
|
50
50
|
* @param {object} parent
|
|
51
51
|
* @returns {void}
|
|
52
52
|
*/
|
|
53
|
-
setDirectives(ele: object, directives: any
|
|
53
|
+
setDirectives(ele: object, directives: Array<any>, parent: object): void;
|
|
54
54
|
/**
|
|
55
55
|
* This will remove a node.
|
|
56
56
|
*
|
|
@@ -15,25 +15,25 @@ export class BrowserHistory extends History {
|
|
|
15
15
|
/**
|
|
16
16
|
* This will check to activate the router.
|
|
17
17
|
*
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {PointerEvent} evt
|
|
19
19
|
*/
|
|
20
|
-
check(evt:
|
|
20
|
+
check(evt: PointerEvent): boolean;
|
|
21
21
|
/**
|
|
22
22
|
* This will create a state object.
|
|
23
23
|
*
|
|
24
24
|
* @param {string} uri
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {object|null} data
|
|
26
26
|
* @returns {object}
|
|
27
27
|
*/
|
|
28
|
-
createState(uri: string, data?:
|
|
28
|
+
createState(uri: string, data?: object | null): object;
|
|
29
29
|
/**
|
|
30
30
|
* This will add a state to the history.
|
|
31
31
|
*
|
|
32
32
|
* @param {string} uri
|
|
33
|
-
* @param {object} data
|
|
33
|
+
* @param {object|null} data
|
|
34
34
|
* @param {boolean} replace
|
|
35
35
|
* @returns {object} a reference to the object.
|
|
36
36
|
*/
|
|
37
|
-
addState(uri: string, data: object, replace?: boolean): object;
|
|
37
|
+
addState(uri: string, data: object | null, replace?: boolean): object;
|
|
38
38
|
}
|
|
39
39
|
import { History } from "./history.js";
|
|
@@ -12,6 +12,12 @@ export class HashHistory extends History {
|
|
|
12
12
|
* @returns {object} a reference to the object.
|
|
13
13
|
*/
|
|
14
14
|
removeEvent(): object;
|
|
15
|
+
/**
|
|
16
|
+
* This will check to activate the router.
|
|
17
|
+
*
|
|
18
|
+
* @param {object} evt
|
|
19
|
+
*/
|
|
20
|
+
check(evt: object): void;
|
|
15
21
|
/**
|
|
16
22
|
* This will add a state to the history.
|
|
17
23
|
*
|
|
@@ -23,9 +23,9 @@ export class History {
|
|
|
23
23
|
/**
|
|
24
24
|
* This will check to activate the router.
|
|
25
25
|
*
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {PointerEvent} evt
|
|
27
27
|
*/
|
|
28
|
-
check(evt:
|
|
28
|
+
check(evt: PointerEvent): void;
|
|
29
29
|
/**
|
|
30
30
|
* This will get the current scroll position.
|
|
31
31
|
*
|
|
@@ -36,9 +36,9 @@ export class NavLink extends Component {
|
|
|
36
36
|
* @protected
|
|
37
37
|
* @param {string} href
|
|
38
38
|
* @param {string} text
|
|
39
|
-
* @returns {
|
|
39
|
+
* @returns {Array<any>}
|
|
40
40
|
*/
|
|
41
|
-
protected setupWatchers(href: string, text: string): any
|
|
41
|
+
protected setupWatchers(href: string, text: string): Array<any>;
|
|
42
42
|
/**
|
|
43
43
|
* This will update the class on the element.
|
|
44
44
|
*
|
|
@@ -8,7 +8,7 @@ export { NavLink } from "./nav-link.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Router {
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
11
|
+
* @type {string} version
|
|
12
12
|
*/
|
|
13
13
|
version: string;
|
|
14
14
|
/**
|
|
@@ -23,18 +23,22 @@ export class Router {
|
|
|
23
23
|
* This will be used to access our history object.
|
|
24
24
|
*/
|
|
25
25
|
history: any;
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* @type {function|null} callBackLink
|
|
28
|
+
*/
|
|
29
|
+
callBackLink: Function | null;
|
|
27
30
|
location: any;
|
|
28
31
|
/**
|
|
29
32
|
* This will store each route added to the router.
|
|
33
|
+
* @type {Array<object>} routes
|
|
30
34
|
*/
|
|
31
|
-
routes:
|
|
35
|
+
routes: Array<object>;
|
|
32
36
|
switches: Map<any, any>;
|
|
33
37
|
switchCount: number;
|
|
34
38
|
/**
|
|
35
|
-
* @
|
|
39
|
+
* @type {object} data
|
|
36
40
|
*/
|
|
37
|
-
data:
|
|
41
|
+
data: object;
|
|
38
42
|
/**
|
|
39
43
|
* This will setup our history object.
|
|
40
44
|
*
|
|
@@ -92,16 +96,16 @@ export class Router {
|
|
|
92
96
|
* This will get a route by uri.
|
|
93
97
|
*
|
|
94
98
|
* @param {string} uri
|
|
95
|
-
* @returns {
|
|
99
|
+
* @returns {object|null}
|
|
96
100
|
*/
|
|
97
|
-
getRoute(uri: string):
|
|
101
|
+
getRoute(uri: string): object | null;
|
|
98
102
|
/**
|
|
99
103
|
* This will get a route by id.
|
|
100
104
|
*
|
|
101
105
|
* @param {string} id
|
|
102
|
-
* @returns {
|
|
106
|
+
* @returns {object|boolean}
|
|
103
107
|
*/
|
|
104
|
-
getRouteById(id: string):
|
|
108
|
+
getRouteById(id: string): object | boolean;
|
|
105
109
|
/**
|
|
106
110
|
* This will remove a route.
|
|
107
111
|
*
|
|
@@ -111,32 +115,32 @@ export class Router {
|
|
|
111
115
|
/**
|
|
112
116
|
* This will add a switch.
|
|
113
117
|
*
|
|
114
|
-
* @param {
|
|
118
|
+
* @param {Array<object>} group
|
|
115
119
|
* @returns {number} the switch id.
|
|
116
120
|
*/
|
|
117
|
-
addSwitch(group:
|
|
121
|
+
addSwitch(group: Array<object>): number;
|
|
118
122
|
/**
|
|
119
123
|
* This will resume a switch.
|
|
120
124
|
*
|
|
121
|
-
* @param {object} group
|
|
125
|
+
* @param {Array<object>} group
|
|
122
126
|
* @param {object} container
|
|
123
127
|
* @returns {number} the switch id.
|
|
124
128
|
*/
|
|
125
|
-
resumeSwitch(group: object
|
|
129
|
+
resumeSwitch(group: Array<object>, container: object): number;
|
|
126
130
|
/**
|
|
127
131
|
* This will get a switch group by id.
|
|
128
132
|
*
|
|
129
133
|
* @param {number} id
|
|
130
|
-
* @returns {
|
|
134
|
+
* @returns {Array<object>}
|
|
131
135
|
*/
|
|
132
|
-
getSwitchGroup(id: number):
|
|
136
|
+
getSwitchGroup(id: number): Array<object>;
|
|
133
137
|
/**
|
|
134
138
|
* This will remove a switch by id.
|
|
135
139
|
*
|
|
136
|
-
* @param {
|
|
140
|
+
* @param {number} id
|
|
137
141
|
* @returns {void}
|
|
138
142
|
*/
|
|
139
|
-
removeSwitch(id:
|
|
143
|
+
removeSwitch(id: number): void;
|
|
140
144
|
/**
|
|
141
145
|
* This will remove a route by uri.
|
|
142
146
|
*
|
|
@@ -152,21 +156,27 @@ export class Router {
|
|
|
152
156
|
* @returns {object} a reference to the router object.
|
|
153
157
|
*/
|
|
154
158
|
setup(baseURI?: string, title?: string): object;
|
|
155
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Update the base tag href to the base URI for correct relative URL resolution.
|
|
161
|
+
*
|
|
162
|
+
* @param {string} url
|
|
163
|
+
* @return {void}
|
|
164
|
+
*/
|
|
165
|
+
updateBaseTag(url: string): void;
|
|
156
166
|
/**
|
|
157
167
|
* This will get the parent element link.
|
|
158
168
|
*
|
|
159
|
-
* @param {
|
|
160
|
-
* @returns {
|
|
169
|
+
* @param {HTMLElement} ele
|
|
170
|
+
* @returns {HTMLElement|boolean}
|
|
161
171
|
*/
|
|
162
|
-
getParentLink(ele:
|
|
172
|
+
getParentLink(ele: HTMLElement): HTMLElement | boolean;
|
|
163
173
|
/**
|
|
164
174
|
* This will check if a link was routed.
|
|
165
175
|
*
|
|
166
176
|
* @protected
|
|
167
|
-
* @param {
|
|
177
|
+
* @param {PointerEvent} evt
|
|
168
178
|
*/
|
|
169
|
-
protected checkLink(evt:
|
|
179
|
+
protected checkLink(evt: PointerEvent): boolean;
|
|
170
180
|
/**
|
|
171
181
|
* This will reset the router.
|
|
172
182
|
*
|
|
@@ -183,11 +193,11 @@ export class Router {
|
|
|
183
193
|
* This will navigate the router.
|
|
184
194
|
*
|
|
185
195
|
* @param {string} uri
|
|
186
|
-
* @param {object} [data]
|
|
196
|
+
* @param {object|null} [data]
|
|
187
197
|
* @param {boolean} [replace]
|
|
188
198
|
* @returns {object} a reference to the router object.
|
|
189
199
|
*/
|
|
190
|
-
navigate(uri: string, data?: object, replace?: boolean): object;
|
|
200
|
+
navigate(uri: string, data?: object | null, replace?: boolean): object;
|
|
191
201
|
/**
|
|
192
202
|
* This will update the data path.
|
|
193
203
|
* @protected
|
|
@@ -212,10 +222,10 @@ export class Router {
|
|
|
212
222
|
* Activates the first matching route or falls back to the first route in the group if none match.
|
|
213
223
|
*
|
|
214
224
|
* @protected
|
|
215
|
-
* @param {string}
|
|
225
|
+
* @param {string} path
|
|
216
226
|
* @returns {void}
|
|
217
227
|
*/
|
|
218
|
-
protected checkSwitches(path
|
|
228
|
+
protected checkSwitches(path: string): void;
|
|
219
229
|
/**
|
|
220
230
|
* Checks a single group of routes against the path.
|
|
221
231
|
* Selects the first matching route if any; otherwise selects the first route.
|
|
@@ -294,4 +304,3 @@ export class Router {
|
|
|
294
304
|
* @type {Router}
|
|
295
305
|
*/
|
|
296
306
|
export const router: Router;
|
|
297
|
-
import { Data } from '../data/data.js';
|
|
@@ -66,11 +66,6 @@ export class ComponentHelper {
|
|
|
66
66
|
* @returns {void}
|
|
67
67
|
*/
|
|
68
68
|
protected create(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Store the rendered component so we can properly destroy it later.
|
|
71
|
-
* Builder.render returns the component instance after it's been rendered.
|
|
72
|
-
*/
|
|
73
|
-
renderedComponent: any;
|
|
74
69
|
/**
|
|
75
70
|
* This will remove the component.
|
|
76
71
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function getParamDefaults(params:
|
|
2
|
-
export function paramPattern(uri: string):
|
|
1
|
+
export function getParamDefaults(params: Array<string>): object | null;
|
|
2
|
+
export function paramPattern(uri: string): Array<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export namespace Utils {
|
|
2
|
+
/**
|
|
3
|
+
* This will remove the begining and ending slashes from a url.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} uri
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
function removeSlashes(uri: string): string;
|
|
9
|
+
}
|
|
@@ -11,16 +11,16 @@ export class Arrays {
|
|
|
11
11
|
* This will convert an object or collection into an array.
|
|
12
12
|
*
|
|
13
13
|
* @param {object} list
|
|
14
|
-
* @returns {
|
|
14
|
+
* @returns {Array<any>}
|
|
15
15
|
*/
|
|
16
|
-
static toArray(list: object): any
|
|
16
|
+
static toArray(list: object): Array<any>;
|
|
17
17
|
/**
|
|
18
18
|
* This will check if a value is found in an array.
|
|
19
19
|
*
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {Array<any>} array
|
|
21
21
|
* @param {string} element
|
|
22
22
|
* @param {number} [fromIndex]
|
|
23
23
|
* @returns {number} This will return -1 if not found.
|
|
24
24
|
*/
|
|
25
|
-
static inArray(array: any
|
|
25
|
+
static inArray(array: Array<any>, element: string, fromIndex?: number): number;
|
|
26
26
|
}
|
|
@@ -145,9 +145,9 @@ export class Dom {
|
|
|
145
145
|
*
|
|
146
146
|
* @param {object} obj
|
|
147
147
|
* @param {string} queryString
|
|
148
|
-
* @returns {
|
|
148
|
+
* @returns {Array<any>}
|
|
149
149
|
*/
|
|
150
|
-
static find(obj: object, queryString: string): any
|
|
150
|
+
static find(obj: object, queryString: string): Array<any>;
|
|
151
151
|
/**
|
|
152
152
|
* This will display an element.
|
|
153
153
|
*
|
|
@@ -14,18 +14,15 @@ export class Encode {
|
|
|
14
14
|
*
|
|
15
15
|
* @param {object} obj
|
|
16
16
|
* @param {boolean} [removeNewLines]
|
|
17
|
-
* @returns {string}
|
|
17
|
+
* @returns {?string}
|
|
18
18
|
*/
|
|
19
|
-
static prepareJsonUrl(obj: object, removeNewLines?: boolean): string;
|
|
19
|
+
static prepareJsonUrl(obj: object, removeNewLines?: boolean): string | null;
|
|
20
20
|
/**
|
|
21
21
|
* This will encode and decode json data.
|
|
22
22
|
*
|
|
23
|
-
* @
|
|
23
|
+
* @type {object} json
|
|
24
24
|
*/
|
|
25
|
-
static json:
|
|
26
|
-
encode: typeof encode;
|
|
27
|
-
decode: typeof decode;
|
|
28
|
-
};
|
|
25
|
+
static json: object;
|
|
29
26
|
/**
|
|
30
27
|
* This will parse xml data.
|
|
31
28
|
*
|
|
@@ -34,5 +31,3 @@ export class Encode {
|
|
|
34
31
|
*/
|
|
35
32
|
static xmlParse(data: string): object;
|
|
36
33
|
}
|
|
37
|
-
import { encode } from "./json.js";
|
|
38
|
-
import { decode } from "./json.js";
|