@limetech/lime-web-components 5.0.0 → 5.1.0
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 +9 -2
- package/dist/application/decorators/application.d.ts +5 -2
- package/dist/application/decorators/application.d.ts.map +1 -0
- package/dist/application/decorators/application.js +4 -2
- package/dist/application/decorators/index.d.ts +1 -0
- package/dist/application/decorators/index.d.ts.map +1 -0
- package/dist/application/decorators/session.d.ts +5 -2
- package/dist/application/decorators/session.d.ts.map +1 -0
- package/dist/application/decorators/session.js +4 -2
- package/dist/application/decorators/user.d.ts +5 -2
- package/dist/application/decorators/user.d.ts.map +1 -0
- package/dist/application/decorators/user.js +4 -2
- package/dist/application/index.d.ts +1 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/session.d.ts +5 -0
- package/dist/application/session.d.ts.map +1 -0
- package/dist/application/types.d.ts +1 -0
- package/dist/application/types.d.ts.map +1 -0
- package/dist/application/user.d.ts +14 -2
- package/dist/application/user.d.ts.map +1 -0
- package/dist/commandbus/commandbus.d.ts +66 -22
- package/dist/commandbus/commandbus.d.ts.map +1 -0
- package/dist/commandbus/commandbus.js +13 -8
- package/dist/commandbus/index.d.ts +1 -0
- package/dist/commandbus/index.d.ts.map +1 -0
- package/dist/commandbus/types.d.ts +2 -1
- package/dist/commandbus/types.d.ts.map +1 -0
- package/dist/config/decorator.d.ts +7 -2
- package/dist/config/decorator.d.ts.map +1 -0
- package/dist/config/decorator.js +4 -2
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/repository.d.ts +7 -2
- package/dist/config/repository.d.ts.map +1 -0
- package/dist/config/types.d.ts +2 -1
- package/dist/config/types.d.ts.map +1 -0
- package/dist/core/context.d.ts +3 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/decorators/factory.d.ts +12 -6
- package/dist/core/decorators/factory.d.ts.map +1 -0
- package/dist/core/decorators/factory.js +33 -32
- package/dist/core/decorators/factory.spec.d.ts +1 -0
- package/dist/core/decorators/factory.spec.d.ts.map +1 -0
- package/dist/core/decorators/index.d.ts +1 -0
- package/dist/core/decorators/index.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/lime-web-component.d.ts +3 -0
- package/dist/core/lime-web-component.d.ts.map +1 -0
- package/dist/core/platform.d.ts +14 -5
- package/dist/core/platform.d.ts.map +1 -0
- package/dist/core/platform.js +2 -0
- package/dist/core/plugin-loader.d.ts +3 -0
- package/dist/core/plugin-loader.d.ts.map +1 -0
- package/dist/core/state.d.ts +12 -3
- package/dist/core/state.d.ts.map +1 -0
- package/dist/device/decorator.d.ts +7 -4
- package/dist/device/decorator.d.ts.map +1 -0
- package/dist/device/decorator.js +4 -2
- package/dist/device/device.d.ts +8 -3
- package/dist/device/device.d.ts.map +1 -0
- package/dist/device/index.d.ts +1 -0
- package/dist/device/index.d.ts.map +1 -0
- package/dist/device/types.d.ts +2 -1
- package/dist/device/types.d.ts.map +1 -0
- package/dist/dialog/dialog.d.ts +20 -7
- package/dist/dialog/dialog.d.ts.map +1 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.d.ts.map +1 -0
- package/dist/dialog/types.d.ts +1 -0
- package/dist/dialog/types.d.ts.map +1 -0
- package/dist/eventdispatcher/eventdispatcher.d.ts +9 -6
- package/dist/eventdispatcher/eventdispatcher.d.ts.map +1 -0
- package/dist/eventdispatcher/index.d.ts +1 -0
- package/dist/eventdispatcher/index.d.ts.map +1 -0
- package/dist/eventdispatcher/types.d.ts +2 -1
- package/dist/eventdispatcher/types.d.ts.map +1 -0
- package/dist/filter/decorator.d.ts +7 -2
- package/dist/filter/decorator.d.ts.map +1 -0
- package/dist/filter/decorator.js +4 -2
- package/dist/filter/index.d.ts +1 -0
- package/dist/filter/index.d.ts.map +1 -0
- package/dist/filter/repository.d.ts +9 -4
- package/dist/filter/repository.d.ts.map +1 -0
- package/dist/filter/types.d.ts +2 -1
- package/dist/filter/types.d.ts.map +1 -0
- package/dist/http/http.d.ts +38 -18
- package/dist/http/http.d.ts.map +1 -0
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/types.d.ts +1 -0
- package/dist/http/types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/keybindings/index.d.ts +1 -0
- package/dist/keybindings/index.d.ts.map +1 -0
- package/dist/keybindings/registry.d.ts +15 -9
- package/dist/keybindings/registry.d.ts.map +1 -0
- package/dist/keybindings/types.d.ts +3 -2
- package/dist/keybindings/types.d.ts.map +1 -0
- package/dist/limeobject/commands/bulk-create-dialog.d.ts +3 -0
- package/dist/limeobject/commands/bulk-create-dialog.d.ts.map +1 -0
- package/dist/limeobject/commands/bulk-create-dialog.js +2 -0
- package/dist/limeobject/commands/create-dialog.d.ts +3 -0
- package/dist/limeobject/commands/create-dialog.d.ts.map +1 -0
- package/dist/limeobject/commands/create-dialog.js +2 -0
- package/dist/limeobject/commands/delete-object.d.ts +3 -0
- package/dist/limeobject/commands/delete-object.d.ts.map +1 -0
- package/dist/limeobject/commands/delete-object.js +2 -0
- package/dist/limeobject/commands/index.d.ts +1 -0
- package/dist/limeobject/commands/index.d.ts.map +1 -0
- package/dist/limeobject/commands/object-access.d.ts +3 -0
- package/dist/limeobject/commands/object-access.d.ts.map +1 -0
- package/dist/limeobject/commands/object-access.js +2 -0
- package/dist/limeobject/commands/save-object.d.ts +3 -0
- package/dist/limeobject/commands/save-object.d.ts.map +1 -0
- package/dist/limeobject/commands/save-object.js +2 -0
- package/dist/limeobject/decorator.d.ts +11 -4
- package/dist/limeobject/decorator.d.ts.map +1 -0
- package/dist/limeobject/decorator.js +8 -4
- package/dist/limeobject/error.d.ts +35 -0
- package/dist/limeobject/error.d.ts.map +1 -0
- package/dist/limeobject/index.d.ts +1 -0
- package/dist/limeobject/index.d.ts.map +1 -0
- package/dist/limeobject/limeobject.d.ts +6 -3
- package/dist/limeobject/limeobject.d.ts.map +1 -0
- package/dist/limeobject/repository.d.ts +38 -13
- package/dist/limeobject/repository.d.ts.map +1 -0
- package/dist/limeobject/types.d.ts +2 -1
- package/dist/limeobject/types.d.ts.map +1 -0
- package/dist/limetype/acl.d.ts +5 -0
- package/dist/limetype/acl.d.ts.map +1 -0
- package/dist/limetype/decorator.d.ts +11 -4
- package/dist/limetype/decorator.d.ts.map +1 -0
- package/dist/limetype/decorator.js +8 -4
- package/dist/limetype/index.d.ts +1 -0
- package/dist/limetype/index.d.ts.map +1 -0
- package/dist/limetype/limetype.d.ts +9 -2
- package/dist/limetype/limetype.d.ts.map +1 -0
- package/dist/limetype/property.d.ts +33 -0
- package/dist/limetype/property.d.ts.map +1 -0
- package/dist/limetype/property.js +20 -0
- package/dist/limetype/types.d.ts +1 -0
- package/dist/limetype/types.d.ts.map +1 -0
- package/dist/navigator/command.d.ts +3 -12
- package/dist/navigator/command.d.ts.map +1 -0
- package/dist/navigator/command.js +2 -0
- package/dist/navigator/decorator.d.ts +7 -3
- package/dist/navigator/decorator.d.ts.map +1 -0
- package/dist/navigator/decorator.js +4 -3
- package/dist/navigator/index.d.ts +1 -0
- package/dist/navigator/index.d.ts.map +1 -0
- package/dist/navigator/navigator.d.ts +42 -14
- package/dist/navigator/navigator.d.ts.map +1 -0
- package/dist/navigator/types.d.ts +3 -2
- package/dist/navigator/types.d.ts.map +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/notifications.d.ts +25 -14
- package/dist/notifications/notifications.d.ts.map +1 -0
- package/dist/notifications/types.d.ts +1 -0
- package/dist/notifications/types.d.ts.map +1 -0
- package/dist/query/index.d.ts +1 -0
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/query.d.ts +21 -0
- package/dist/query/query.d.ts.map +1 -0
- package/dist/query/query.js +4 -0
- package/dist/query/service.d.ts +4 -1
- package/dist/query/service.d.ts.map +1 -0
- package/dist/query/types.d.ts +1 -0
- package/dist/query/types.d.ts.map +1 -0
- package/dist/routeregistry/index.d.ts +1 -0
- package/dist/routeregistry/index.d.ts.map +1 -0
- package/dist/routeregistry/registry.d.ts +19 -6
- package/dist/routeregistry/registry.d.ts.map +1 -0
- package/dist/routeregistry/types.d.ts +3 -2
- package/dist/routeregistry/types.d.ts.map +1 -0
- package/dist/task/index.d.ts +1 -0
- package/dist/task/index.d.ts.map +1 -0
- package/dist/task/repository.d.ts +34 -8
- package/dist/task/repository.d.ts.map +1 -0
- package/dist/task/repository.js +9 -5
- package/dist/task/types.d.ts +2 -1
- package/dist/task/types.d.ts.map +1 -0
- package/dist/testing/component-testing.d.ts +22 -9
- package/dist/testing/component-testing.d.ts.map +1 -0
- package/dist/testing/component-testing.js +31 -28
- package/dist/testing/component-testing.spec.d.ts +1 -0
- package/dist/testing/component-testing.spec.d.ts.map +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/limeobjects/company.d.ts +1 -0
- package/dist/testing/limeobjects/company.d.ts.map +1 -0
- package/dist/testing/limeobjects/coworker.d.ts +1 -0
- package/dist/testing/limeobjects/coworker.d.ts.map +1 -0
- package/dist/testing/limeobjects/deal.d.ts +1 -0
- package/dist/testing/limeobjects/deal.d.ts.map +1 -0
- package/dist/testing/limeobjects/document.d.ts +1 -0
- package/dist/testing/limeobjects/document.d.ts.map +1 -0
- package/dist/testing/limeobjects/index.d.ts +1 -0
- package/dist/testing/limeobjects/index.d.ts.map +1 -0
- package/dist/testing/limeobjects/person.d.ts +1 -0
- package/dist/testing/limeobjects/person.d.ts.map +1 -0
- package/dist/testing/limetypes/campaign.d.ts +1 -0
- package/dist/testing/limetypes/campaign.d.ts.map +1 -0
- package/dist/testing/limetypes/company.d.ts +1 -0
- package/dist/testing/limetypes/company.d.ts.map +1 -0
- package/dist/testing/limetypes/consent.d.ts +1 -0
- package/dist/testing/limetypes/consent.d.ts.map +1 -0
- package/dist/testing/limetypes/consenttype.d.ts +1 -0
- package/dist/testing/limetypes/consenttype.d.ts.map +1 -0
- package/dist/testing/limetypes/coworker.d.ts +1 -0
- package/dist/testing/limetypes/coworker.d.ts.map +1 -0
- package/dist/testing/limetypes/deal.d.ts +1 -0
- package/dist/testing/limetypes/deal.d.ts.map +1 -0
- package/dist/testing/limetypes/document.d.ts +1 -0
- package/dist/testing/limetypes/document.d.ts.map +1 -0
- package/dist/testing/limetypes/helpdesk.d.ts +1 -0
- package/dist/testing/limetypes/helpdesk.d.ts.map +1 -0
- package/dist/testing/limetypes/helpdesktype.d.ts +1 -0
- package/dist/testing/limetypes/helpdesktype.d.ts.map +1 -0
- package/dist/testing/limetypes/history.d.ts +1 -0
- package/dist/testing/limetypes/history.d.ts.map +1 -0
- package/dist/testing/limetypes/index.d.ts +1 -0
- package/dist/testing/limetypes/index.d.ts.map +1 -0
- package/dist/testing/limetypes/infotiles.d.ts +1 -0
- package/dist/testing/limetypes/infotiles.d.ts.map +1 -0
- package/dist/testing/limetypes/localize.d.ts +1 -0
- package/dist/testing/limetypes/localize.d.ts.map +1 -0
- package/dist/testing/limetypes/mailing.d.ts +1 -0
- package/dist/testing/limetypes/mailing.d.ts.map +1 -0
- package/dist/testing/limetypes/office.d.ts +1 -0
- package/dist/testing/limetypes/office.d.ts.map +1 -0
- package/dist/testing/limetypes/participant.d.ts +1 -0
- package/dist/testing/limetypes/participant.d.ts.map +1 -0
- package/dist/testing/limetypes/person.d.ts +1 -0
- package/dist/testing/limetypes/person.d.ts.map +1 -0
- package/dist/testing/limetypes/recipient.d.ts +1 -0
- package/dist/testing/limetypes/recipient.d.ts.map +1 -0
- package/dist/testing/limetypes/solutionimprovement.d.ts +1 -0
- package/dist/testing/limetypes/solutionimprovement.d.ts.map +1 -0
- package/dist/testing/limetypes/successplan.d.ts +1 -0
- package/dist/testing/limetypes/successplan.d.ts.map +1 -0
- package/dist/testing/limetypes/target.d.ts +1 -0
- package/dist/testing/limetypes/target.d.ts.map +1 -0
- package/dist/testing/limetypes/todo.d.ts +1 -0
- package/dist/testing/limetypes/todo.d.ts.map +1 -0
- package/dist/testing/platform/index.d.ts +2 -1
- package/dist/testing/platform/index.d.ts.map +1 -0
- package/dist/testing/platform/index.js +3 -3
- package/dist/testing/platform/platform.spec.d.ts +1 -0
- package/dist/testing/platform/platform.spec.d.ts.map +1 -0
- package/dist/translator/index.d.ts +1 -0
- package/dist/translator/index.d.ts.map +1 -0
- package/dist/translator/translator.d.ts +6 -3
- package/dist/translator/translator.d.ts.map +1 -0
- package/dist/translator/types.d.ts +1 -0
- package/dist/translator/types.d.ts.map +1 -0
- package/dist/userdata/decorator.d.ts +7 -2
- package/dist/userdata/decorator.d.ts.map +1 -0
- package/dist/userdata/decorator.js +4 -2
- package/dist/userdata/index.d.ts +1 -0
- package/dist/userdata/index.d.ts.map +1 -0
- package/dist/userdata/repository.d.ts +7 -5
- package/dist/userdata/repository.d.ts.map +1 -0
- package/dist/userdata/types.d.ts +1 -0
- package/dist/userdata/types.d.ts.map +1 -0
- package/package.json +18 -18
|
@@ -1,45 +1,53 @@
|
|
|
1
1
|
import { Expression } from '../query';
|
|
2
2
|
import { StateRepository } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @group Lime objects
|
|
6
|
+
*/
|
|
3
7
|
export interface LimeObjectRepository extends StateRepository {
|
|
4
8
|
/**
|
|
5
9
|
* Load the specified limeobject into the state
|
|
6
10
|
*
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
11
|
+
* @param limetype -
|
|
12
|
+
* @param id -
|
|
9
13
|
*/
|
|
10
14
|
loadObject(limetype: string, id: number): void;
|
|
11
15
|
/**
|
|
12
16
|
* Load objects of the specified limetype into the state
|
|
13
17
|
*
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @returns
|
|
18
|
+
* @param limetype - name of the limetype
|
|
19
|
+
* @param options - options about the objects to load
|
|
20
|
+
* @returns list of objects together with total count of objects
|
|
17
21
|
*/
|
|
18
22
|
loadObjects(limetype: string, options?: LoadOptions): Promise<ObjectResponse>;
|
|
19
23
|
/**
|
|
20
24
|
* Load related objects into the state
|
|
21
25
|
*
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
* @returns
|
|
26
|
+
* @param limetype - name of the limetype of the owning limeobject
|
|
27
|
+
* @param id - the id of the owning limeobject
|
|
28
|
+
* @param property - name of the property that contain the relations
|
|
29
|
+
* @param options - options about the objects to load
|
|
30
|
+
* @returns list of related objects together with total count of objects
|
|
27
31
|
*/
|
|
28
32
|
loadRelations(limetype: string, id: number, property: string, options?: LoadOptions): Promise<ObjectResponse>;
|
|
29
33
|
/**
|
|
30
34
|
* Loads a schema for the limetype.
|
|
31
35
|
*
|
|
32
|
-
* @param
|
|
36
|
+
* @param limetype - name of the limetype of the owning limeobject
|
|
33
37
|
*/
|
|
34
38
|
loadSchema(limetype: string): Promise<object>;
|
|
35
39
|
/**
|
|
36
40
|
* Delete the specified limeobject
|
|
37
41
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
42
|
+
* @param limetype - name of the limetype of the limeobject
|
|
43
|
+
* @param id - the id of the limeobject
|
|
40
44
|
*/
|
|
41
45
|
deleteObject(limetype: string, id: number): Promise<void>;
|
|
42
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @group Lime objects
|
|
50
|
+
*/
|
|
43
51
|
export interface LoadOptions {
|
|
44
52
|
/**
|
|
45
53
|
* Maximum number of objects to load
|
|
@@ -58,6 +66,10 @@ export interface LoadOptions {
|
|
|
58
66
|
*/
|
|
59
67
|
order?: PropertyOrder[];
|
|
60
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* @group Lime objects
|
|
72
|
+
*/
|
|
61
73
|
export interface PropertyOrder {
|
|
62
74
|
/**
|
|
63
75
|
* Name of the property to sort on
|
|
@@ -68,6 +80,10 @@ export interface PropertyOrder {
|
|
|
68
80
|
*/
|
|
69
81
|
direction: 'ASC' | 'DESC';
|
|
70
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @group Lime objects
|
|
86
|
+
*/
|
|
71
87
|
export interface ObjectResponse {
|
|
72
88
|
/**
|
|
73
89
|
* The objects that matched the query
|
|
@@ -86,15 +102,24 @@ export interface ObjectResponse {
|
|
|
86
102
|
*/
|
|
87
103
|
aggregates?: AggregationGroups;
|
|
88
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
* @group Lime objects
|
|
108
|
+
*/
|
|
89
109
|
export interface AggregationGroups {
|
|
90
110
|
/**
|
|
91
111
|
* Name of the aggregation group along with a list of aggregations
|
|
92
112
|
*/
|
|
93
113
|
[name: string]: ObjectAggregation[];
|
|
94
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
* @group Lime objects
|
|
118
|
+
*/
|
|
95
119
|
export interface ObjectAggregation {
|
|
96
120
|
/**
|
|
97
121
|
* Name of the property being aggregated along with its aggregated value
|
|
98
122
|
*/
|
|
99
123
|
[property: string]: number | string;
|
|
100
124
|
}
|
|
125
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/limeobject/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IACzD;;;;;OAKG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;;;;;OAMG;IACH,WAAW,CACP,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,WAAW,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;;;;;;;OAQG;IACH,aAAa,CACT,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,WAAW,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACvC"}
|
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "state.limeobjects";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service LimeObjectRepository}
|
|
6
|
+
* @see {@link Service | LimeObjectRepository}
|
|
7
7
|
*/
|
|
8
8
|
LimeObjectRepository: typeof SERVICE_NAME;
|
|
9
9
|
}
|
|
@@ -12,3 +12,4 @@ declare module '../core/platform' {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/limeobject/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAG/D,QAAA,MAAM,YAAY,sBAAsB,CAAC;AAIzC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,oBAAoB,EAAE,OAAO,YAAY,CAAC;KAC7C;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC;KACvE;CACJ"}
|
package/dist/limetype/acl.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acl.d.ts","sourceRoot":"","sources":["../../src/limetype/acl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StateOptions, ContextAwareStateOptions } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* Config for the {@link SelectLimeTypes} state decorator
|
|
4
|
+
* @public
|
|
5
|
+
* @group Lime types
|
|
4
6
|
*/
|
|
5
7
|
export interface SelectLimeTypesOptions extends StateOptions {
|
|
6
8
|
name?: string;
|
|
@@ -8,14 +10,19 @@ export interface SelectLimeTypesOptions extends StateOptions {
|
|
|
8
10
|
/**
|
|
9
11
|
* Gets an object with all limetypes where name is used as key
|
|
10
12
|
*
|
|
11
|
-
* @param
|
|
12
|
-
* @returns
|
|
13
|
+
* @param options - state decorator options
|
|
14
|
+
* @returns state decorator
|
|
15
|
+
* @public
|
|
16
|
+
* @group Lime types
|
|
13
17
|
*/
|
|
14
18
|
export declare function SelectLimeTypes(options?: SelectLimeTypesOptions): PropertyDecorator;
|
|
15
19
|
/**
|
|
16
20
|
* Get the limetype for the current context
|
|
17
21
|
*
|
|
18
|
-
* @param
|
|
19
|
-
* @returns
|
|
22
|
+
* @param options - state decorator options
|
|
23
|
+
* @returns state decorator
|
|
24
|
+
* @public
|
|
25
|
+
* @group Lime types
|
|
20
26
|
*/
|
|
21
27
|
export declare function SelectCurrentLimeType(options?: ContextAwareStateOptions): PropertyDecorator;
|
|
28
|
+
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/limetype/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEZ,wBAAwB,EAC3B,MAAM,SAAS,CAAC;AAGjB;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC3B,OAAO,GAAE,sBAA2B,GACrC,iBAAiB,CAMnB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,OAAO,GAAE,wBAA6B,GACvC,iBAAiB,CAQnB"}
|
|
@@ -3,8 +3,10 @@ import { createStateDecorator } from '../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Gets an object with all limetypes where name is used as key
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param options - state decorator options
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @public
|
|
9
|
+
* @group Lime types
|
|
8
10
|
*/
|
|
9
11
|
export function SelectLimeTypes(options = {}) {
|
|
10
12
|
const config = {
|
|
@@ -15,8 +17,10 @@ export function SelectLimeTypes(options = {}) {
|
|
|
15
17
|
/**
|
|
16
18
|
* Get the limetype for the current context
|
|
17
19
|
*
|
|
18
|
-
* @param
|
|
19
|
-
* @returns
|
|
20
|
+
* @param options - state decorator options
|
|
21
|
+
* @returns state decorator
|
|
22
|
+
* @public
|
|
23
|
+
* @group Lime types
|
|
20
24
|
*/
|
|
21
25
|
export function SelectCurrentLimeType(options = {}) {
|
|
22
26
|
const config = {
|
package/dist/limetype/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/limetype/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Acl } from './acl';
|
|
2
2
|
import { LimeProperty } from './property';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @group Lime types
|
|
6
|
+
*/
|
|
3
7
|
export interface LimeType {
|
|
4
8
|
name: string;
|
|
5
9
|
label: string;
|
|
@@ -12,14 +16,17 @@ export interface LimeType {
|
|
|
12
16
|
/**
|
|
13
17
|
* Get a property by name
|
|
14
18
|
*
|
|
15
|
-
* @param
|
|
19
|
+
* @param name - name of property to get. Allows a path to be
|
|
16
20
|
* specified using dot notation to get properties of relations
|
|
17
21
|
*
|
|
18
22
|
* @throws Will throw an error containing the name of the missing property
|
|
19
|
-
* @returns
|
|
23
|
+
* @returns the property specified by the name argument
|
|
20
24
|
*
|
|
21
25
|
* @example
|
|
26
|
+
* ```
|
|
22
27
|
* const phoneProperty = dealLimetype.getProperty('company.phone')
|
|
28
|
+
* ```
|
|
23
29
|
*/
|
|
24
30
|
getProperty(name: string): LimeProperty;
|
|
25
31
|
}
|
|
32
|
+
//# sourceMappingURL=limetype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limetype.d.ts","sourceRoot":"","sources":["../../src/limetype/limetype.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,GAAG,CAAC;IACT,SAAS,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEzC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Acl } from './acl';
|
|
2
2
|
import { LimeType } from './limetype';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @group Lime types
|
|
6
|
+
*/
|
|
3
7
|
export interface LimeProperty {
|
|
4
8
|
acl: Acl;
|
|
5
9
|
defaultvalue: any;
|
|
@@ -17,6 +21,10 @@ export interface LimeProperty {
|
|
|
17
21
|
getBackreference: () => LimeProperty;
|
|
18
22
|
};
|
|
19
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @group Lime types
|
|
27
|
+
*/
|
|
20
28
|
export interface Option {
|
|
21
29
|
key: string;
|
|
22
30
|
inactive: boolean;
|
|
@@ -24,9 +32,34 @@ export interface Option {
|
|
|
24
32
|
order?: number;
|
|
25
33
|
id?: number;
|
|
26
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @group Lime types
|
|
38
|
+
*/
|
|
27
39
|
export declare type PropertyType = 'string' | 'text' | 'phone' | 'integer' | 'decimal' | 'percent' | 'time' | 'timeofday' | 'date' | 'year' | 'quarter' | 'month' | 'yesno' | 'link' | 'user' | 'xml' | 'option' | 'set' | 'file' | 'hasone' | 'hasmany' | 'belongsto' | 'hasandbelongstomany' | 'system';
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @group Lime types
|
|
43
|
+
*/
|
|
28
44
|
export declare function isRelation(property: LimeProperty): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @group Lime types
|
|
48
|
+
*/
|
|
29
49
|
export declare function isSingleRelation(property: LimeProperty): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* @group Lime types
|
|
53
|
+
*/
|
|
30
54
|
export declare function isDate(property: LimeProperty): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @group Lime types
|
|
58
|
+
*/
|
|
31
59
|
export declare function isString(property: LimeProperty): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
* @group Lime types
|
|
63
|
+
*/
|
|
32
64
|
export declare function isFloat(property: LimeProperty): boolean;
|
|
65
|
+
//# sourceMappingURL=property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/limetype/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE;QACP,WAAW,EAAE,MAAM,QAAQ,CAAC;QAC5B,gBAAgB,EAAE,MAAM,YAAY,CAAC;KACxC,CAAC;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,oBAAY,YAAY,GAClB,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,MAAM,GACN,WAAW,GACX,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,QAAQ,GACR,KAAK,GACL,MAAM,GACN,QAAQ,GACR,SAAS,GACT,WAAW,GACX,qBAAqB,GACrB,QAAQ,CAAC;AAEf;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,WAShD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,WAItD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,YAAY,WAW5C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,YAAY,WAI9C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,YAAY,WAI7C"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @group Lime types
|
|
4
|
+
*/
|
|
1
5
|
export function isRelation(property) {
|
|
2
6
|
const propTypes = [
|
|
3
7
|
'belongsto',
|
|
@@ -7,10 +11,18 @@ export function isRelation(property) {
|
|
|
7
11
|
];
|
|
8
12
|
return property && propTypes.includes(property.type);
|
|
9
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @group Lime types
|
|
17
|
+
*/
|
|
10
18
|
export function isSingleRelation(property) {
|
|
11
19
|
const propTypes = ['belongsto', 'hasone'];
|
|
12
20
|
return property && propTypes.includes(property.type);
|
|
13
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
* @group Lime types
|
|
25
|
+
*/
|
|
14
26
|
export function isDate(property) {
|
|
15
27
|
const propTypes = [
|
|
16
28
|
'time',
|
|
@@ -22,10 +34,18 @@ export function isDate(property) {
|
|
|
22
34
|
];
|
|
23
35
|
return property && propTypes.includes(property.type);
|
|
24
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @group Lime types
|
|
40
|
+
*/
|
|
25
41
|
export function isString(property) {
|
|
26
42
|
const propTypes = ['string', 'text', 'phone', 'link'];
|
|
27
43
|
return property && propTypes.includes(property.type);
|
|
28
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @group Lime types
|
|
48
|
+
*/
|
|
29
49
|
export function isFloat(property) {
|
|
30
50
|
const propTypes = ['decimal', 'percent'];
|
|
31
51
|
return property && propTypes.includes(property.type);
|
package/dist/limetype/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/limetype/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,QAAA,MAAM,YAAY,oBAAoB,CAAC;AAIvC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,kBAAkB,EAAE,OAAO,YAAY,CAAC;KAC3C;IAED,UAAU,wBAAwB;QAC9B,GAAG,CACC,IAAI,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,GACpD,eAAe,CAAC;KACtB;CACJ"}
|
|
@@ -3,22 +3,13 @@ import { Location } from './navigator';
|
|
|
3
3
|
* Navigates to a new location
|
|
4
4
|
*
|
|
5
5
|
* @id `navigator.navigate`
|
|
6
|
+
* @beta
|
|
7
|
+
* @group Navigation
|
|
6
8
|
*/
|
|
7
9
|
export declare class NavigateCommand implements Partial<Location> {
|
|
8
|
-
/**
|
|
9
|
-
* @inheritdoc
|
|
10
|
-
*/
|
|
11
10
|
path?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritdoc
|
|
14
|
-
*/
|
|
15
11
|
query?: Record<string, unknown>;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritdoc
|
|
18
|
-
*/
|
|
19
12
|
hash?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritdoc
|
|
22
|
-
*/
|
|
23
13
|
state?: unknown;
|
|
24
14
|
}
|
|
15
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/navigator/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;GAMG;AACH,qBAGa,eAAgB,YAAW,OAAO,CAAC,QAAQ,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ContextAwareStateOptions } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* Config for the {@link SelectQueryParam} decorator
|
|
4
|
+
* @beta
|
|
5
|
+
* @group Navigation
|
|
4
6
|
*/
|
|
5
7
|
export interface SelectQueryParamOptions extends ContextAwareStateOptions {
|
|
6
8
|
/**
|
|
@@ -11,8 +13,10 @@ export interface SelectQueryParamOptions extends ContextAwareStateOptions {
|
|
|
11
13
|
/**
|
|
12
14
|
* Gets a named query param from the location
|
|
13
15
|
*
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
16
|
+
* @param options - state decorator options
|
|
17
|
+
* @returns state decorator
|
|
18
|
+
* @beta
|
|
19
|
+
* @group Navigation
|
|
17
20
|
*/
|
|
18
21
|
export declare function SelectQueryParam(options: SelectQueryParamOptions): PropertyDecorator;
|
|
22
|
+
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/navigator/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAuB,MAAM,SAAS,CAAC;AAMxE;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACrE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,uBAAuB,GACjC,iBAAiB,CAMnB"}
|
|
@@ -3,9 +3,10 @@ import { createStateDecorator, } from '../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Gets a named query param from the location
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
7
|
-
* @
|
|
8
|
-
* @
|
|
6
|
+
* @param options - state decorator options
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @beta
|
|
9
|
+
* @group Navigation
|
|
9
10
|
*/
|
|
10
11
|
export function SelectQueryParam(options) {
|
|
11
12
|
const config = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigator/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* New locations can be registered using the {@link RouteRegistry} service
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
+
* ```
|
|
13
14
|
* // Listen on navigation events
|
|
14
15
|
* eventDispatcher.addListener('navigate', onNavigate);
|
|
15
16
|
* navigator.navigate('/object/deal/1001');
|
|
@@ -17,8 +18,10 @@
|
|
|
17
18
|
* function onNavigate(event: NavigationEvent) {
|
|
18
19
|
* console.log(event.detail);
|
|
19
20
|
* }
|
|
21
|
+
* ```
|
|
20
22
|
*
|
|
21
|
-
* @
|
|
23
|
+
* @beta
|
|
24
|
+
* @group Navigation
|
|
22
25
|
*/
|
|
23
26
|
export interface Navigator {
|
|
24
27
|
/**
|
|
@@ -27,8 +30,8 @@ export interface Navigator {
|
|
|
27
30
|
* @emits navigate - When the location has been changed the
|
|
28
31
|
* {@link EventDispatcher} will emit a {@link NavigationEvent}
|
|
29
32
|
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param query query string parameters to append to the URL
|
|
33
|
+
* @param path - path to the location
|
|
34
|
+
* @param query - query string parameters to append to the URL
|
|
32
35
|
*/
|
|
33
36
|
navigate(path: string, query?: Location['query']): void;
|
|
34
37
|
/**
|
|
@@ -45,15 +48,15 @@ export interface Navigator {
|
|
|
45
48
|
* When replacing, state will only be changed if a new value is provided.
|
|
46
49
|
*
|
|
47
50
|
* @emits navigate - When the location has been changed the
|
|
48
|
-
* {@link
|
|
51
|
+
* {@link EventDispatcher} will emit a {@link NavigationEvent}
|
|
49
52
|
*
|
|
50
|
-
* @param location a new location or parts of the location to replace
|
|
53
|
+
* @param location - a new location or parts of the location to replace
|
|
51
54
|
*/
|
|
52
55
|
navigate(location: LocationChange): void;
|
|
53
56
|
/**
|
|
54
57
|
* Get the current location
|
|
55
58
|
*
|
|
56
|
-
* @
|
|
59
|
+
* @returns
|
|
57
60
|
*/
|
|
58
61
|
getLocation(): Location;
|
|
59
62
|
/**
|
|
@@ -71,6 +74,7 @@ export interface Navigator {
|
|
|
71
74
|
* of them returns true.
|
|
72
75
|
*
|
|
73
76
|
* @example
|
|
77
|
+
* ```
|
|
74
78
|
* navigator.addBlocker(myBlocker);
|
|
75
79
|
*
|
|
76
80
|
* function myBlocker(transition) {
|
|
@@ -82,26 +86,31 @@ export interface Navigator {
|
|
|
82
86
|
* });
|
|
83
87
|
* return true;
|
|
84
88
|
* }
|
|
89
|
+
* ```
|
|
85
90
|
*
|
|
86
|
-
* @param
|
|
91
|
+
* @param blocker - function to be called before navigation
|
|
87
92
|
*/
|
|
88
93
|
addBlocker(blocker: Blocker): void;
|
|
89
94
|
/**
|
|
90
95
|
* Removes a previously configured blocker.
|
|
91
96
|
*
|
|
92
|
-
* @param
|
|
97
|
+
* @param blocker - previously added blocker function
|
|
93
98
|
*/
|
|
94
99
|
removeBlocker(blocker: Blocker): void;
|
|
95
100
|
/**
|
|
96
101
|
* Create a URL for the given location
|
|
97
102
|
*
|
|
98
|
-
* @param
|
|
103
|
+
* @param location - the location to create a URL for.
|
|
99
104
|
* Any `state` of the location will be ignored.
|
|
100
105
|
*
|
|
101
|
-
* @
|
|
106
|
+
* @returns the URL to the location
|
|
102
107
|
*/
|
|
103
108
|
createUrl(location: Partial<Location>): URL;
|
|
104
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @beta
|
|
112
|
+
* @group Navigation
|
|
113
|
+
*/
|
|
105
114
|
export declare type Location = {
|
|
106
115
|
/**
|
|
107
116
|
* The path to the location
|
|
@@ -120,6 +129,10 @@ export declare type Location = {
|
|
|
120
129
|
*/
|
|
121
130
|
state: unknown;
|
|
122
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* @beta
|
|
134
|
+
* @group Navigation
|
|
135
|
+
*/
|
|
123
136
|
export declare type LocationChange = Partial<Location> & {
|
|
124
137
|
/**
|
|
125
138
|
* Specifies whether to push a new entry or replace the current entry in
|
|
@@ -130,29 +143,44 @@ export declare type LocationChange = Partial<Location> & {
|
|
|
130
143
|
/**
|
|
131
144
|
* @event navigate - Emitted when a new location is navigated to or the current
|
|
132
145
|
* location is updated
|
|
146
|
+
* @beta
|
|
147
|
+
* @group Navigation
|
|
133
148
|
*/
|
|
134
149
|
export declare type NavigationEvent = CustomEvent<Location>;
|
|
135
150
|
/**
|
|
136
151
|
* Function to retry navigation
|
|
152
|
+
* @beta
|
|
153
|
+
* @group Navigation
|
|
137
154
|
*/
|
|
138
155
|
export declare type Retry = () => void;
|
|
139
156
|
/**
|
|
140
157
|
* {@link Transition} describes the transition when navigating from a
|
|
141
158
|
* {@link Location} to another {@link Location}.
|
|
142
159
|
*
|
|
143
|
-
* @
|
|
144
|
-
* @
|
|
145
|
-
* @param {Retry} retry function to retry navigation
|
|
160
|
+
* @beta
|
|
161
|
+
* @group Navigation
|
|
146
162
|
*/
|
|
147
163
|
export declare type Transition = {
|
|
164
|
+
/**
|
|
165
|
+
* Location to navigate to
|
|
166
|
+
*/
|
|
148
167
|
to: Location;
|
|
168
|
+
/**
|
|
169
|
+
* Current location before navigation
|
|
170
|
+
*/
|
|
149
171
|
from: Location;
|
|
172
|
+
/**
|
|
173
|
+
* Function to retry navigation
|
|
174
|
+
*/
|
|
150
175
|
retry: Retry;
|
|
151
176
|
};
|
|
152
177
|
/**
|
|
153
178
|
* Function to determine if navigation should be blocked or not.
|
|
154
179
|
*
|
|
155
|
-
* @param
|
|
180
|
+
* @param transition - the transition to evaluate
|
|
156
181
|
* @returns true if navigation should be blocked
|
|
182
|
+
* @beta
|
|
183
|
+
* @group Navigation
|
|
157
184
|
*/
|
|
158
185
|
export declare type Blocker = (transition: Transition) => boolean;
|
|
186
|
+
//# sourceMappingURL=navigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigator.d.ts","sourceRoot":"","sources":["../../src/navigator/navigator.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,SAAS;IACtB;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAExD;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAEzC;;;;OAIG;IACH,WAAW,IAAI,QAAQ,CAAC;IAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtC;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;CAC/C;AAED;;;GAGG;AACH,oBAAY,QAAQ,GAAG;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,oBAAY,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG;IAC7C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF;;;;;GAKG;AACH,oBAAY,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;AAEpD;;;;GAIG;AACH,oBAAY,KAAK,GAAG,MAAM,IAAI,CAAC;AAE/B;;;;;;GAMG;AACH,oBAAY,UAAU,GAAG;IACrB;;OAEG;IACH,EAAE,EAAE,QAAQ,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,oBAAY,OAAO,GAAG,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC"}
|
|
@@ -3,10 +3,10 @@ declare const SERVICE_NAME = "navigator";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service Navigator}
|
|
6
|
+
* @see {@link Service | Navigator}
|
|
7
7
|
*
|
|
8
8
|
* @note Work in progress, do not use!
|
|
9
|
-
* @
|
|
9
|
+
* @beta
|
|
10
10
|
*/
|
|
11
11
|
Navigator: typeof SERVICE_NAME;
|
|
12
12
|
}
|
|
@@ -15,3 +15,4 @@ declare module '../core/platform' {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/navigator/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAGnD,QAAA,MAAM,YAAY,cAAc,CAAC;AAIjC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;;;;WAKG;QACH,SAAS,EAAE,OAAO,YAAY,CAAC;KAClC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;KAC5D;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|