@limetech/lime-web-components 5.0.1 → 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,23 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Service for displaying different notification messages
|
|
3
|
+
* @public
|
|
4
|
+
* @group Notifications
|
|
3
5
|
*/
|
|
4
6
|
export interface Notifications {
|
|
5
7
|
/**
|
|
6
8
|
* Display a blocking alert dialog
|
|
7
9
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @returns
|
|
10
|
+
* @param title - title of the dialog
|
|
11
|
+
* @param message - message to display in the dialog
|
|
12
|
+
* @param options -
|
|
13
|
+
* @returns a promise that will be resolved when the dialog is closed
|
|
12
14
|
*/
|
|
13
15
|
alert(title: string, message: string, options?: AlertOptions): Promise<void>;
|
|
14
16
|
/**
|
|
15
17
|
* Display a blocking confirm dialog
|
|
16
18
|
*
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
20
|
-
* @returns
|
|
19
|
+
* @param title - title of the dialog
|
|
20
|
+
* @param message - message to display in the dialog
|
|
21
|
+
* @param options -
|
|
22
|
+
* @returns a promise that will be resolved to true when the dialog is closed.
|
|
21
23
|
* If the accepting button was pressed, the promise will resolve to true.
|
|
22
24
|
* Otherwise, the promise will resolve to false.
|
|
23
25
|
*/
|
|
@@ -25,9 +27,9 @@ export interface Notifications {
|
|
|
25
27
|
/**
|
|
26
28
|
* Display a non-blocking notification
|
|
27
29
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @returns
|
|
30
|
+
* @param message - message to display in the notification
|
|
31
|
+
* @param options -
|
|
32
|
+
* @returns a promise that will be resolved when the notification is closed.
|
|
31
33
|
* If the notification has an action button and it was pressed, the promise will resolve to true.
|
|
32
34
|
* Otherwise, the promise will resolve to false.
|
|
33
35
|
*/
|
|
@@ -35,9 +37,9 @@ export interface Notifications {
|
|
|
35
37
|
/**
|
|
36
38
|
* Display a non-blocking and non-transient message
|
|
37
39
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @returns
|
|
40
|
+
* @param message - message to display in the banner
|
|
41
|
+
* @param options -
|
|
42
|
+
* @returns a promise that will be resolved when the notification is closed.
|
|
41
43
|
* If the notification has an action button and it was pressed, the promise will resolve to true.
|
|
42
44
|
* Otherwise, the promise will resolve to false.
|
|
43
45
|
*/
|
|
@@ -45,6 +47,8 @@ export interface Notifications {
|
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Options for the confirmation dialog
|
|
50
|
+
* @public
|
|
51
|
+
* @group Notifications
|
|
48
52
|
*/
|
|
49
53
|
export interface AlertOptions {
|
|
50
54
|
/**
|
|
@@ -54,6 +58,8 @@ export interface AlertOptions {
|
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
56
60
|
* Options for the confirmation dialog
|
|
61
|
+
* @public
|
|
62
|
+
* @group Notifications
|
|
57
63
|
*/
|
|
58
64
|
export interface ConfirmOptions {
|
|
59
65
|
/**
|
|
@@ -67,6 +73,8 @@ export interface ConfirmOptions {
|
|
|
67
73
|
}
|
|
68
74
|
/**
|
|
69
75
|
* Options for notifications
|
|
76
|
+
* @public
|
|
77
|
+
* @group Notifications
|
|
70
78
|
*/
|
|
71
79
|
export interface NotificationOptions {
|
|
72
80
|
/**
|
|
@@ -88,6 +96,8 @@ export interface NotificationOptions {
|
|
|
88
96
|
}
|
|
89
97
|
/**
|
|
90
98
|
* Options for reports
|
|
99
|
+
* @public
|
|
100
|
+
* @group Notifications
|
|
91
101
|
*/
|
|
92
102
|
export interface ReportOptions {
|
|
93
103
|
/**
|
|
@@ -99,3 +109,4 @@ export interface ReportOptions {
|
|
|
99
109
|
*/
|
|
100
110
|
icon?: string;
|
|
101
111
|
}
|
|
112
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;;OAOG;IACH,KAAK,CACD,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;;OASG;IACH,OAAO,CACH,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzE;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtE;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/notifications/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,YAAY,EAAE,OAAO,YAAY,CAAC;KACrC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC;KACrE;CACJ"}
|
package/dist/query/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
package/dist/query/query.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @group Query
|
|
4
|
+
*/
|
|
1
5
|
export interface Query {
|
|
2
6
|
limetype: string;
|
|
3
7
|
limit?: number;
|
|
@@ -9,16 +13,28 @@ export interface Query {
|
|
|
9
13
|
aggregates?: object;
|
|
10
14
|
};
|
|
11
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
* @group Query
|
|
19
|
+
*/
|
|
12
20
|
export interface QueryResponse {
|
|
13
21
|
objects: any[];
|
|
14
22
|
aggregates: any;
|
|
15
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @group Query
|
|
27
|
+
*/
|
|
16
28
|
export interface Expression {
|
|
17
29
|
key?: string;
|
|
18
30
|
op: Operator;
|
|
19
31
|
exp: any;
|
|
20
32
|
type?: 'filter';
|
|
21
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
* @group Query
|
|
37
|
+
*/
|
|
22
38
|
export declare enum Operator {
|
|
23
39
|
AND = "AND",
|
|
24
40
|
OR = "OR",
|
|
@@ -34,6 +50,10 @@ export declare enum Operator {
|
|
|
34
50
|
GREATER_OR_EQUAL = ">=",
|
|
35
51
|
ENDS = "=$"
|
|
36
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
* @group Query
|
|
56
|
+
*/
|
|
37
57
|
export interface Filter {
|
|
38
58
|
id: string;
|
|
39
59
|
limetype: string;
|
|
@@ -46,3 +66,4 @@ export interface Filter {
|
|
|
46
66
|
};
|
|
47
67
|
iduser?: number;
|
|
48
68
|
}
|
|
69
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,KAAK;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,EAAE;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,UAAU,EAAE,GAAG,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;GAGG;AACH,oBAAY,QAAQ;IAChB,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,UAAU,OAAO;IACjB,OAAO,MAAM;IACb,IAAI,MAAM;IACV,EAAE,OAAO;IACT,MAAM,OAAO;IACb,IAAI,MAAM;IACV,aAAa,OAAO;IACpB,gBAAgB,OAAO;IACvB,IAAI,OAAO;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE;QACF,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE;QACV,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/query/query.js
CHANGED
package/dist/query/service.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Query, QueryResponse } from '../query';
|
|
2
2
|
/**
|
|
3
3
|
* Service for executing queries using the query objects API
|
|
4
|
+
* @public
|
|
5
|
+
* @group Query
|
|
4
6
|
*/
|
|
5
7
|
export interface QueryService {
|
|
6
8
|
/**
|
|
7
9
|
* Execute a query
|
|
8
10
|
*
|
|
9
|
-
* @param query
|
|
11
|
+
* @param query -
|
|
10
12
|
*/
|
|
11
13
|
execute(query: Query): Promise<QueryResponse>;
|
|
12
14
|
}
|
|
15
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/query/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACjD"}
|
package/dist/query/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/query/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,QAAA,MAAM,YAAY,UAAU,CAAC;AAI7B,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,KAAK,EAAE,OAAO,YAAY,CAAC;KAC9B;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;KAC7D;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routeregistry/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -25,41 +25,52 @@ import { LimeWebComponent } from '../core';
|
|
|
25
25
|
* - `state`
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
+
* ```
|
|
28
29
|
* // Registering a simple route
|
|
29
30
|
* routeRegistry.registerRoute('/foo', 'foo-component');
|
|
31
|
+
* ```
|
|
30
32
|
*
|
|
31
33
|
* @example
|
|
34
|
+
* ```
|
|
32
35
|
* // Registering a route with parameters
|
|
33
36
|
* // `name` will be used as a prop on the component when it renders
|
|
34
37
|
* routeRegistry.registerRoute('/foo/:name', 'foo-component');
|
|
38
|
+
* ```
|
|
35
39
|
*
|
|
36
40
|
* @example
|
|
41
|
+
* ```
|
|
37
42
|
* // Registering a route with a context
|
|
38
43
|
* // The `context` prop of the component will have the values of the
|
|
39
44
|
* // `limetype` and `id` parameters
|
|
40
45
|
* routeRegistry.registerRoute('/foo/:limetype/:id', 'foo-component');
|
|
46
|
+
* ```
|
|
41
47
|
*
|
|
42
|
-
* @
|
|
48
|
+
* @beta
|
|
49
|
+
* @group Registering routes
|
|
43
50
|
*/
|
|
44
51
|
export interface RouteRegistry {
|
|
45
52
|
/**
|
|
46
53
|
* Register a route for a component.
|
|
47
54
|
*
|
|
48
|
-
* @param
|
|
55
|
+
* @param pathPattern - path pattern used to match a component.
|
|
49
56
|
* For more information about URL patterns read [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API).
|
|
50
|
-
* @param
|
|
57
|
+
* @param component - Name of the component to register for the
|
|
51
58
|
* specified pattern
|
|
52
59
|
*/
|
|
53
60
|
registerRoute(pathPattern: string, component: string): void;
|
|
54
61
|
/**
|
|
55
62
|
* Find the component for a given path.
|
|
56
63
|
*
|
|
57
|
-
* @param
|
|
58
|
-
* @
|
|
64
|
+
* @param path - The path to match against.
|
|
65
|
+
* @returns the matched component along with
|
|
59
66
|
* path parameters, or `undefined` if no component could be found.
|
|
60
67
|
*/
|
|
61
68
|
findComponent(path: string): MatchedComponent | undefined;
|
|
62
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @beta
|
|
72
|
+
* @group Registering routes
|
|
73
|
+
*/
|
|
63
74
|
export declare type MatchedComponent = {
|
|
64
75
|
/**
|
|
65
76
|
* The name of the component.
|
|
@@ -74,7 +85,8 @@ export declare type MatchedComponent = {
|
|
|
74
85
|
* Interface for components that are routed to and are registered with the
|
|
75
86
|
* {@link RouteRegistry} service.
|
|
76
87
|
*
|
|
77
|
-
* @
|
|
88
|
+
* @beta
|
|
89
|
+
* @group Registering routes
|
|
78
90
|
*/
|
|
79
91
|
export interface RouteComponent extends LimeWebComponent {
|
|
80
92
|
/**
|
|
@@ -90,3 +102,4 @@ export interface RouteComponent extends LimeWebComponent {
|
|
|
90
102
|
*/
|
|
91
103
|
state?: unknown;
|
|
92
104
|
}
|
|
105
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/routeregistry/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;;OAOG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;;;;OAMG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAAC;CAC7D;AAED;;;GAGG;AACH,oBAAY,gBAAgB,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -3,10 +3,10 @@ declare const SERVICE_NAME = "routeRegistry";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service RouteRegistry}
|
|
6
|
+
* @see {@link Service | RouteRegistry}
|
|
7
7
|
*
|
|
8
8
|
* @note Work in progress, do not use!
|
|
9
|
-
* @
|
|
9
|
+
* @beta
|
|
10
10
|
*/
|
|
11
11
|
RouteRegistry: 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/routeregistry/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAGtD,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;;;;WAKG;QACH,aAAa,EAAE,OAAO,YAAY,CAAC;KACtC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC;KAChE;CACJ"}
|
package/dist/task/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/task/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import { StateRepository } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* Service for creating background tasks
|
|
4
|
+
* @public
|
|
5
|
+
* @group Tasks
|
|
4
6
|
*/
|
|
5
7
|
export interface TaskRepository extends StateRepository {
|
|
6
8
|
/**
|
|
7
9
|
* Create a new background task
|
|
8
10
|
*
|
|
9
|
-
* @param url url to the resource that will create the task
|
|
10
|
-
* @param data task specific data
|
|
11
|
-
* @param cancelAction true to allow task creation to be cancelled
|
|
12
|
-
* @param message notification message to display before the task is created instead of the default one
|
|
11
|
+
* @param url - url to the resource that will create the task
|
|
12
|
+
* @param data - task specific data
|
|
13
|
+
* @param cancelAction - true to allow task creation to be cancelled
|
|
14
|
+
* @param message - notification message to display before the task is created instead of the default one
|
|
13
15
|
* @returns a promise that resolves to the id of the task if it was created successfully
|
|
14
16
|
*/
|
|
15
17
|
create(url: string, data: any, cancelAction?: boolean, message?: string): Promise<string | void>;
|
|
16
18
|
/**
|
|
17
19
|
* Get status about specific tasks
|
|
18
20
|
*
|
|
19
|
-
* @param ids the ids of the tasks to check
|
|
21
|
+
* @param ids - the ids of the tasks to check
|
|
20
22
|
* @returns a promise that resolves to the status about the tasks
|
|
21
23
|
*/
|
|
22
24
|
getStatus(ids: string[]): Promise<TaskStatus[]>;
|
|
23
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @group Tasks
|
|
29
|
+
*/
|
|
24
30
|
export declare enum TaskState {
|
|
25
31
|
/**
|
|
26
32
|
* Task state is unknown
|
|
@@ -43,6 +49,10 @@ export declare enum TaskState {
|
|
|
43
49
|
*/
|
|
44
50
|
Failure = "FAILURE"
|
|
45
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* @group Tasks
|
|
55
|
+
*/
|
|
46
56
|
export interface TaskStatus {
|
|
47
57
|
/**
|
|
48
58
|
* ID of the task
|
|
@@ -59,24 +69,40 @@ export interface TaskStatus {
|
|
|
59
69
|
}
|
|
60
70
|
/**
|
|
61
71
|
* Events dispatched by the task service
|
|
72
|
+
* @public
|
|
73
|
+
* @group Tasks
|
|
62
74
|
*/
|
|
63
75
|
export declare enum TaskEventType {
|
|
64
76
|
/**
|
|
65
77
|
* Dispatched when a task has been created.
|
|
66
78
|
*
|
|
67
|
-
* @
|
|
79
|
+
* @see {@link TaskEvent}
|
|
68
80
|
*/
|
|
69
81
|
Created = "task.created",
|
|
70
82
|
/**
|
|
71
83
|
* Dispatched when the task has successfully been completed
|
|
72
84
|
*
|
|
73
|
-
* @
|
|
85
|
+
* @see {@link TaskEvent}
|
|
74
86
|
*/
|
|
75
87
|
Success = "task.success",
|
|
76
88
|
/**
|
|
77
89
|
* Dispatched if an error occured while running the task
|
|
78
90
|
*
|
|
79
|
-
* @
|
|
91
|
+
* @see {@link TaskEvent}
|
|
80
92
|
*/
|
|
81
93
|
Failed = "task.failed"
|
|
82
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @group Tasks
|
|
98
|
+
*/
|
|
99
|
+
export declare type TaskEventDetail = {
|
|
100
|
+
task: TaskStatus;
|
|
101
|
+
error?: unknown;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* @group Tasks
|
|
106
|
+
*/
|
|
107
|
+
export declare type TaskEvent = CustomEvent<TaskEventDetail>;
|
|
108
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/task/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACnD;;;;;;;;OAQG;IACH,MAAM,CACF,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,YAAY,CAAC,EAAE,OAAO,EACtB,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE1B;;;;;OAKG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH,oBAAY,SAAS;IACjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,OAAO,YAAY;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACrB;;;;OAIG;IACH,OAAO,iBAAiB;IAExB;;;;OAIG;IACH,OAAO,iBAAiB;IAExB;;;;OAIG;IACH,MAAM,gBAAgB;CACzB;AAED;;;GAGG;AACH,oBAAY,eAAe,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,oBAAY,SAAS,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC"}
|
package/dist/task/repository.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @group Tasks
|
|
4
|
+
*/
|
|
2
5
|
export var TaskState;
|
|
3
6
|
(function (TaskState) {
|
|
4
7
|
/**
|
|
@@ -24,26 +27,27 @@ export var TaskState;
|
|
|
24
27
|
})(TaskState || (TaskState = {}));
|
|
25
28
|
/**
|
|
26
29
|
* Events dispatched by the task service
|
|
30
|
+
* @public
|
|
31
|
+
* @group Tasks
|
|
27
32
|
*/
|
|
28
|
-
// eslint-disable-next-line no-shadow
|
|
29
33
|
export var TaskEventType;
|
|
30
34
|
(function (TaskEventType) {
|
|
31
35
|
/**
|
|
32
36
|
* Dispatched when a task has been created.
|
|
33
37
|
*
|
|
34
|
-
* @
|
|
38
|
+
* @see {@link TaskEvent}
|
|
35
39
|
*/
|
|
36
40
|
TaskEventType["Created"] = "task.created";
|
|
37
41
|
/**
|
|
38
42
|
* Dispatched when the task has successfully been completed
|
|
39
43
|
*
|
|
40
|
-
* @
|
|
44
|
+
* @see {@link TaskEvent}
|
|
41
45
|
*/
|
|
42
46
|
TaskEventType["Success"] = "task.success";
|
|
43
47
|
/**
|
|
44
48
|
* Dispatched if an error occured while running the task
|
|
45
49
|
*
|
|
46
|
-
* @
|
|
50
|
+
* @see {@link TaskEvent}
|
|
47
51
|
*/
|
|
48
52
|
TaskEventType["Failed"] = "task.failed";
|
|
49
53
|
})(TaskEventType || (TaskEventType = {}));
|
package/dist/task/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "state.tasks";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service TaskRepository}
|
|
6
|
+
* @see {@link Service | TaskRepository}
|
|
7
7
|
*/
|
|
8
8
|
TaskRepository: 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/task/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAGzD,QAAA,MAAM,YAAY,gBAAgB,CAAC;AAInC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,cAAc,EAAE,OAAO,YAAY,CAAC;KACvC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC;KACjE;CACJ"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { SpecPage } from '@stencil/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface ComponentProps {
|
|
3
6
|
[name: string]: any;
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
export interface ComponentListeners {
|
|
6
12
|
[name: string]: (event: CustomEvent<any>) => void;
|
|
7
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
8
17
|
export interface ComponentConfig {
|
|
9
18
|
/**
|
|
10
19
|
* Tag name of the component
|
|
@@ -30,24 +39,28 @@ export interface ComponentConfig {
|
|
|
30
39
|
/**
|
|
31
40
|
* Create a new component
|
|
32
41
|
*
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @returns
|
|
42
|
+
* @param component - the component class
|
|
43
|
+
* @param page - the page to create the component on
|
|
44
|
+
* @param config - component configuration
|
|
45
|
+
* @returns the component
|
|
46
|
+
* @public
|
|
37
47
|
*/
|
|
38
48
|
export declare function createComponent(component: any, page: SpecPage, config: ComponentConfig): HTMLElement;
|
|
39
49
|
/**
|
|
40
50
|
* Destroy a component that was created by the `createComponent` function
|
|
41
51
|
*
|
|
42
|
-
* @param
|
|
43
|
-
* @returns
|
|
52
|
+
* @param component - the component to destroy
|
|
53
|
+
* @returns
|
|
54
|
+
* @public
|
|
44
55
|
*/
|
|
45
56
|
export declare function destroyComponent(component: HTMLElement): void;
|
|
46
57
|
/**
|
|
47
58
|
* Set a state variable on the component
|
|
48
59
|
*
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
51
|
-
* @returns
|
|
60
|
+
* @param component - the component
|
|
61
|
+
* @param state - the state variables to set along with their values
|
|
62
|
+
* @returns
|
|
63
|
+
* @public
|
|
52
64
|
*/
|
|
53
65
|
export declare function setState(component: HTMLElement, state: object): void;
|
|
66
|
+
//# sourceMappingURL=component-testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-testing.d.ts","sourceRoot":"","sources":["../../src/testing/component-testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC5B;AAgBD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,GAAG,EACd,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,eAAe,GACxB,WAAW,CA4Bb;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAW7D;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,QAG7D"}
|