@limetech/lime-web-components 5.0.1 → 5.2.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 +69 -25
- 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 +13 -7
- 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 +8 -5
- 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 +23 -10
- 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/es5/index.js +1 -0
- package/dist/es5/userpreferences/index.js +5 -0
- package/dist/es5/userpreferences/repository.js +2 -0
- package/dist/es5/userpreferences/types.js +5 -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 +39 -19
- 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 +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -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 +34 -1
- 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 +48 -20
- 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 +20 -7
- 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/dist/userpreferences/index.d.ts +3 -0
- package/dist/userpreferences/index.d.ts.map +1 -0
- package/dist/userpreferences/index.js +2 -0
- package/dist/userpreferences/repository.d.ts +27 -0
- package/dist/userpreferences/repository.d.ts.map +1 -0
- package/dist/userpreferences/repository.js +1 -0
- package/dist/userpreferences/types.d.ts +15 -0
- package/dist/userpreferences/types.d.ts.map +1 -0
- package/dist/userpreferences/types.js +3 -0
- package/package.json +25 -25
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { LimeWebComponent, StateOptions } from '..';
|
|
2
|
-
|
|
2
|
+
type OptionFactory = (options: StateOptions, component: LimeWebComponent) => StateOptions;
|
|
3
|
+
/**
|
|
4
|
+
* @group Core
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
3
7
|
export interface StateDecoratorConfig {
|
|
4
8
|
/**
|
|
5
9
|
* Name of the state service to use in the platform
|
|
@@ -12,18 +16,20 @@ export interface StateDecoratorConfig {
|
|
|
12
16
|
/**
|
|
13
17
|
* Factory for creating options dynamically
|
|
14
18
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @returns
|
|
19
|
+
* @param options - decorator options
|
|
20
|
+
* @param component - the web component
|
|
21
|
+
* @returns state options
|
|
18
22
|
*/
|
|
19
23
|
optionFactory?: OptionFactory;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* Create a new state decorator
|
|
23
27
|
*
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
* @returns
|
|
28
|
+
* @param options - decorator options
|
|
29
|
+
* @param config - decorator configuration
|
|
30
|
+
* @returns state decorator
|
|
31
|
+
* @public
|
|
27
32
|
*/
|
|
28
33
|
export declare function createStateDecorator(options: StateOptions, config: StateDecoratorConfig): PropertyDecorator;
|
|
29
34
|
export {};
|
|
35
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/core/decorators/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAGhB,YAAY,EACf,MAAM,IAAI,CAAC;AAIZ,KAAK,aAAa,GAAG,CACjB,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,gBAAgB,KAC1B,YAAY,CAAC;AAElB;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAwBD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,oBAAoB,GAC7B,iBAAiB,CAanB"}
|
|
@@ -6,9 +6,10 @@ function defaultOptionFactory(options) {
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a new state decorator
|
|
8
8
|
*
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @returns
|
|
9
|
+
* @param options - decorator options
|
|
10
|
+
* @param config - decorator configuration
|
|
11
|
+
* @returns state decorator
|
|
12
|
+
* @public
|
|
12
13
|
*/
|
|
13
14
|
export function createStateDecorator(options, config) {
|
|
14
15
|
return (target, property) => {
|
|
@@ -24,11 +25,11 @@ const connectedComponents = new WeakMap();
|
|
|
24
25
|
/**
|
|
25
26
|
* Get properties data for a component
|
|
26
27
|
*
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* @returns
|
|
28
|
+
* @param component - the component class containing the decorator
|
|
29
|
+
* @param property - name of the property
|
|
30
|
+
* @param options - decorator options
|
|
31
|
+
* @param config - decorator configuration
|
|
32
|
+
* @returns properties data for the component
|
|
32
33
|
*/
|
|
33
34
|
function getComponentProperties(component, property, options, config) {
|
|
34
35
|
let properties = componentProperties.get(component);
|
|
@@ -50,9 +51,9 @@ function getComponentProperties(component, property, options, config) {
|
|
|
50
51
|
/**
|
|
51
52
|
* Extend the lifecycle methods on the component
|
|
52
53
|
*
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @returns
|
|
54
|
+
* @param component - the component to extend
|
|
55
|
+
* @param properties - the properties with which to extend the component
|
|
56
|
+
* @returns
|
|
56
57
|
*/
|
|
57
58
|
function extendLifecycleMethods(component, properties) {
|
|
58
59
|
// `componentWillLoad` and `componentDidUnload` is included for backwards
|
|
@@ -111,8 +112,8 @@ function createDisconnectedCallback(original) {
|
|
|
111
112
|
/**
|
|
112
113
|
* Check if the options are context aware
|
|
113
114
|
*
|
|
114
|
-
* @param
|
|
115
|
-
* @returns
|
|
115
|
+
* @param options - state decorator options
|
|
116
|
+
* @returns true if the options are context aware
|
|
116
117
|
*/
|
|
117
118
|
function isContextAware(options) {
|
|
118
119
|
return 'context' in options;
|
|
@@ -120,8 +121,8 @@ function isContextAware(options) {
|
|
|
120
121
|
/**
|
|
121
122
|
* Make sure that all required lime properties are set on the web component
|
|
122
123
|
*
|
|
123
|
-
* @param
|
|
124
|
-
* @returns
|
|
124
|
+
* @param target - the web component
|
|
125
|
+
* @returns a promise that resolves when all properties are defined
|
|
125
126
|
*/
|
|
126
127
|
function ensureLimeProps(target) {
|
|
127
128
|
const promises = [];
|
|
@@ -139,9 +140,9 @@ function ensureLimeProps(target) {
|
|
|
139
140
|
/**
|
|
140
141
|
* Wait for a property to be defined on an object
|
|
141
142
|
*
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
* @returns
|
|
143
|
+
* @param target - the web component
|
|
144
|
+
* @param property - the name of the property to watch
|
|
145
|
+
* @returns a promise that will resolve when the property is set on the object
|
|
145
146
|
*/
|
|
146
147
|
function waitForProp(target, property) {
|
|
147
148
|
const element = getElement(target);
|
|
@@ -171,9 +172,9 @@ function watchProp(target, property, observer) {
|
|
|
171
172
|
/**
|
|
172
173
|
* Subscribe to changes from the state
|
|
173
174
|
*
|
|
174
|
-
* @param
|
|
175
|
-
* @param
|
|
176
|
-
* @returns
|
|
175
|
+
* @param component - the component instance
|
|
176
|
+
* @param property - property to update when subscription triggers
|
|
177
|
+
* @returns
|
|
177
178
|
*/
|
|
178
179
|
function subscribe(component, property) {
|
|
179
180
|
const subscription = createSubscription(component, property);
|
|
@@ -183,8 +184,8 @@ function subscribe(component, property) {
|
|
|
183
184
|
/**
|
|
184
185
|
* Unsubscribe to changes from the state
|
|
185
186
|
*
|
|
186
|
-
* @param
|
|
187
|
-
* @returns
|
|
187
|
+
* @param component - the instance of the component
|
|
188
|
+
* @returns
|
|
188
189
|
*/
|
|
189
190
|
function unsubscribeAll(component) {
|
|
190
191
|
const subscriptions = componentSubscriptions.get(component);
|
|
@@ -195,9 +196,9 @@ function unsubscribeAll(component) {
|
|
|
195
196
|
* Get a function that accepts a state, and updates the given property
|
|
196
197
|
* on the given component with that state
|
|
197
198
|
*
|
|
198
|
-
* @param
|
|
199
|
-
* @param
|
|
200
|
-
* @returns
|
|
199
|
+
* @param instance - the component to augment
|
|
200
|
+
* @param property - name of the property on the component
|
|
201
|
+
* @returns updates the state
|
|
201
202
|
*/
|
|
202
203
|
function mapState(instance, property) {
|
|
203
204
|
return (state) => {
|
|
@@ -207,9 +208,9 @@ function mapState(instance, property) {
|
|
|
207
208
|
/**
|
|
208
209
|
* Create a state subscription
|
|
209
210
|
*
|
|
210
|
-
* @param
|
|
211
|
-
* @param
|
|
212
|
-
* @returns
|
|
211
|
+
* @param component - the component instance
|
|
212
|
+
* @param property - the property on the component
|
|
213
|
+
* @returns unsubscribe function
|
|
213
214
|
*/
|
|
214
215
|
function createSubscription(component, property) {
|
|
215
216
|
const myOptions = Object.assign({}, property.options);
|
|
@@ -225,9 +226,9 @@ function createSubscription(component, property) {
|
|
|
225
226
|
/**
|
|
226
227
|
* Bind connect functions to the current scope
|
|
227
228
|
*
|
|
228
|
-
* @param
|
|
229
|
-
* @param
|
|
230
|
-
* @returns
|
|
229
|
+
* @param options - options for the selector
|
|
230
|
+
* @param scope - the current scope to bind to
|
|
231
|
+
* @returns
|
|
231
232
|
*/
|
|
232
233
|
function bindFunctions(options, scope) {
|
|
233
234
|
if (options.filter) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.spec.d.ts","sourceRoot":"","sources":["../../../src/core/decorators/factory.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { LimeWebComponentContext } from './context';
|
|
|
2
2
|
import { LimeWebComponentPlatform } from './platform';
|
|
3
3
|
/**
|
|
4
4
|
* Interface that Lime Web Components must implement
|
|
5
|
+
* @public
|
|
6
|
+
* @group Core
|
|
5
7
|
*/
|
|
6
8
|
export interface LimeWebComponent {
|
|
7
9
|
/**
|
|
@@ -13,3 +15,4 @@ export interface LimeWebComponent {
|
|
|
13
15
|
*/
|
|
14
16
|
context: LimeWebComponentContext;
|
|
15
17
|
}
|
|
18
|
+
//# sourceMappingURL=lime-web-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lime-web-component.d.ts","sourceRoot":"","sources":["../../src/core/lime-web-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,QAAQ,EAAE,wBAAwB,CAAC;IAEnC;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC;CACpC"}
|
package/dist/core/platform.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Service container for the Lime CRM platform
|
|
3
|
+
* @public
|
|
4
|
+
* @group Core
|
|
3
5
|
*/
|
|
4
6
|
export interface LimeWebComponentPlatform {
|
|
5
7
|
type: 'LimeCRMWebClient' | 'LimeCRMDesktopClient';
|
|
6
8
|
/**
|
|
7
9
|
* Get a service
|
|
8
10
|
*
|
|
9
|
-
* @param name the name of the service
|
|
11
|
+
* @param name - the name of the service
|
|
10
12
|
*/
|
|
11
13
|
get(name: string): any;
|
|
12
14
|
/**
|
|
13
15
|
* Check if a service is currently registered on the platform
|
|
14
16
|
*
|
|
15
|
-
* @param name the name of the service
|
|
17
|
+
* @param name - the name of the service
|
|
16
18
|
*/
|
|
17
19
|
has(name: string): boolean;
|
|
18
20
|
/**
|
|
@@ -21,18 +23,25 @@ export interface LimeWebComponentPlatform {
|
|
|
21
23
|
* Core platform service names are defined by the enum `PlatformServiceName`. Third parties that wants to register
|
|
22
24
|
* a service should add a prefix to the service name, e.g. the plugin name.
|
|
23
25
|
*
|
|
24
|
-
* @param name the name of the service
|
|
25
|
-
* @param service the service
|
|
26
|
+
* @param name - the name of the service
|
|
27
|
+
* @param service - the service
|
|
26
28
|
*/
|
|
27
29
|
register(name: string, service: any): void;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Core platform service names
|
|
33
|
+
* @public
|
|
34
|
+
* @group Core
|
|
31
35
|
*/
|
|
32
36
|
export declare const PlatformServiceName: PlatformServiceNameType;
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @group Core
|
|
40
|
+
*/
|
|
33
41
|
export interface PlatformServiceNameType {
|
|
34
42
|
/**
|
|
35
|
-
* @deprecated use the new {@link
|
|
43
|
+
* @deprecated use the new {@link Navigator} instead
|
|
36
44
|
*/
|
|
37
45
|
Route: 'route';
|
|
38
46
|
}
|
|
47
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/core/platform.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,kBAAkB,GAAG,sBAAsB,CAAC;IAElD;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;IAEvB;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9C;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,uBAE1B,CAAC;AAET;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAClB"}
|
package/dist/core/platform.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LimeWebComponent } from './lime-web-component';
|
|
2
2
|
/**
|
|
3
3
|
* Interface for the loader component that is loaded when the app starts
|
|
4
|
+
* @public
|
|
5
|
+
* @group Core
|
|
4
6
|
*/
|
|
5
7
|
export interface LimePluginLoader extends LimeWebComponent {
|
|
6
8
|
/**
|
|
@@ -26,3 +28,4 @@ export interface LimePluginLoader extends LimeWebComponent {
|
|
|
26
28
|
*/
|
|
27
29
|
disconnectedCallback(): any;
|
|
28
30
|
}
|
|
31
|
+
//# sourceMappingURL=plugin-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-loader.d.ts","sourceRoot":"","sources":["../../src/core/plugin-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACtD;;;;OAIG;IACH,iBAAiB,QAAG;IAEpB;;OAEG;IACH,iBAAiB,QAAG;IAEpB;;;OAGG;IACH,mBAAmB,QAAG;IAEtB;;;;;OAKG;IACH,oBAAoB,QAAG;CAC1B"}
|
package/dist/core/state.d.ts
CHANGED
|
@@ -2,19 +2,23 @@ import { Subscribable } from 'rxjs';
|
|
|
2
2
|
import { LimeWebComponentContext } from './context';
|
|
3
3
|
/**
|
|
4
4
|
* Base service for letting a Lime web component subscribe to state changes
|
|
5
|
+
* @public
|
|
6
|
+
* @group Core
|
|
5
7
|
*/
|
|
6
8
|
export interface StateRepository {
|
|
7
9
|
/**
|
|
8
10
|
* Subscribe to state changes
|
|
9
11
|
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @returns
|
|
12
|
+
* @param callback - function to call when subscription updates
|
|
13
|
+
* @param options - options for the state selector
|
|
14
|
+
* @returns unsubscribe callback
|
|
13
15
|
*/
|
|
14
16
|
subscribe(callback: () => void, options?: StateOptions): () => void;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* Options for the state selector
|
|
20
|
+
* @public
|
|
21
|
+
* @group Core
|
|
18
22
|
*/
|
|
19
23
|
export interface StateOptions {
|
|
20
24
|
/**
|
|
@@ -28,6 +32,10 @@ export interface StateOptions {
|
|
|
28
32
|
*/
|
|
29
33
|
filter?: Array<(state: any) => boolean>;
|
|
30
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @group Core
|
|
38
|
+
*/
|
|
31
39
|
export interface ContextAwareStateOptions extends StateOptions {
|
|
32
40
|
/**
|
|
33
41
|
* An observable that emits a new value when the context of the component
|
|
@@ -37,3 +45,4 @@ export interface ContextAwareStateOptions extends StateOptions {
|
|
|
37
45
|
*/
|
|
38
46
|
context?: Subscribable<LimeWebComponentContext> | null;
|
|
39
47
|
}
|
|
48
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/core/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,IAAI,CAAC;CACvE;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC1D;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;CAC1D"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { StateOptions } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* DeviceType
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
4
|
+
* @public
|
|
5
|
+
* @group Device
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type DeviceType = 'desktop' | 'tablet' | 'phone';
|
|
8
8
|
/**
|
|
9
9
|
* Get the current device type
|
|
10
10
|
*
|
|
11
11
|
* The device will only indicate roughly how big the viewport is, not what actual device is being used
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
14
|
-
* @returns
|
|
13
|
+
* @param options - state decorator options
|
|
14
|
+
* @returns state decorator
|
|
15
|
+
* @public
|
|
16
|
+
* @group Device
|
|
15
17
|
*/
|
|
16
18
|
export declare function SelectDevice(options?: StateOptions): PropertyDecorator;
|
|
19
|
+
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/device/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEf,MAAM,SAAS,CAAC;AAGjB;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,YAAiB,GAAG,iBAAiB,CAM1E"}
|
package/dist/device/decorator.js
CHANGED
|
@@ -5,8 +5,10 @@ import { createStateDecorator } from '../core/decorators/factory';
|
|
|
5
5
|
*
|
|
6
6
|
* The device will only indicate roughly how big the viewport is, not what actual device is being used
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @returns
|
|
8
|
+
* @param options - state decorator options
|
|
9
|
+
* @returns state decorator
|
|
10
|
+
* @public
|
|
11
|
+
* @group Device
|
|
10
12
|
*/
|
|
11
13
|
export function SelectDevice(options = {}) {
|
|
12
14
|
const config = {
|
package/dist/device/device.d.ts
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { StateRepository } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
* @group Device
|
|
5
|
+
*/
|
|
2
6
|
export interface Device extends StateRepository {
|
|
3
7
|
/**
|
|
4
8
|
* Check if the device type is 'desktop'
|
|
5
9
|
*
|
|
6
|
-
* @returns
|
|
10
|
+
* @returns true/false
|
|
7
11
|
*/
|
|
8
12
|
isDesktopSize(): boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Check if the device type is 'tablet'
|
|
11
15
|
*
|
|
12
|
-
* @returns
|
|
16
|
+
* @returns true/false
|
|
13
17
|
*/
|
|
14
18
|
isTabletSize(): boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Check if the device type is 'phone'
|
|
17
21
|
*
|
|
18
|
-
* @returns
|
|
22
|
+
* @returns true/false
|
|
19
23
|
*/
|
|
20
24
|
isPhoneSize(): boolean;
|
|
21
25
|
}
|
|
26
|
+
//# sourceMappingURL=device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/device/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,MAAO,SAAQ,eAAe;IAC3C;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC;IAEzB;;;;OAIG;IACH,YAAY,IAAI,OAAO,CAAC;IAExB;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC;CAC1B"}
|
package/dist/device/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/device/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/device/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "state.device";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service Device}
|
|
6
|
+
* @see {@link Service | Device}
|
|
7
7
|
*/
|
|
8
8
|
Device: 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/device/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAG7C,QAAA,MAAM,YAAY,iBAAiB,CAAC;AAIpC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,MAAM,EAAE,OAAO,YAAY,CAAC;KAC/B;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC;KACzD;CACJ"}
|
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -5,37 +5,50 @@
|
|
|
5
5
|
* e.g. by closing a popup window (depending on platform), a
|
|
6
6
|
* {@link DialogDestroyedEvent} will be emitted using
|
|
7
7
|
* {@link EventDispatcher}
|
|
8
|
+
* @public
|
|
9
|
+
* @group Dialog
|
|
8
10
|
*/
|
|
9
11
|
export interface DialogRenderer {
|
|
10
12
|
/**
|
|
11
13
|
* Create a new dialog and render its contents. Depending on what kind of
|
|
12
14
|
* platform the service is used on, the dialog might be rendered in the
|
|
13
|
-
* current
|
|
15
|
+
* current `Document` or opened in a new popup window.
|
|
14
16
|
*
|
|
15
|
-
* @param name the name of the web component representing the dialog
|
|
16
|
-
* @param properties any properties to send to the dialog
|
|
17
|
-
* @param listeners any event listeners to register on the dialog
|
|
17
|
+
* @param name - the name of the web component representing the dialog
|
|
18
|
+
* @param properties - any properties to send to the dialog
|
|
19
|
+
* @param listeners - any event listeners to register on the dialog
|
|
18
20
|
* @returns id representing the dialog
|
|
19
21
|
*/
|
|
20
22
|
create(name: string, properties?: DialogProperties, listeners?: DialogListeners): number;
|
|
21
23
|
/**
|
|
22
24
|
* Update an existing dialog with new properties
|
|
23
25
|
*
|
|
24
|
-
* @param id the dialog identifier
|
|
25
|
-
* @param properties any properties to send to the dialog
|
|
26
|
+
* @param id - the dialog identifier
|
|
27
|
+
* @param properties - any properties to send to the dialog
|
|
26
28
|
*/
|
|
27
29
|
update(id: number, properties?: DialogProperties): void;
|
|
28
30
|
/**
|
|
29
31
|
* Destroy a dialog
|
|
30
32
|
*
|
|
31
|
-
* @param id id representing the dialog
|
|
33
|
+
* @param id - id representing the dialog
|
|
32
34
|
*/
|
|
33
35
|
destroy(id: number): void;
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @group Dialog
|
|
40
|
+
*/
|
|
41
|
+
export type DialogProperties = Record<string, any>;
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @group Dialog
|
|
45
|
+
*/
|
|
46
|
+
export type DialogListeners = Record<string, (event?: CustomEvent<any>) => void>;
|
|
37
47
|
/**
|
|
38
48
|
* @event dialog.destroyed - Emitted when a dialog is externally destroyed, e.g.
|
|
39
49
|
* by closing a popup window
|
|
50
|
+
* @public
|
|
51
|
+
* @group Dialog
|
|
40
52
|
*/
|
|
41
|
-
export
|
|
53
|
+
export type DialogDestroyedEvent = CustomEvent<number>;
|
|
54
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/dialog/dialog.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;;;;;OASG;IACH,MAAM,CACF,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,gBAAgB,EAC7B,SAAS,CAAC,EAAE,eAAe,GAC5B,MAAM,CAAC;IAEV;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAExD;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAChC,MAAM,EACN,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,KAAK,IAAI,CACrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/dialog/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/dist/dialog/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,YAAY,WAAW,CAAC;AAI9B,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,MAAM,EAAE,OAAO,YAAY,CAAC;KAC/B;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC;KAChE;CACJ"}
|
package/dist/es5/index.js
CHANGED
|
@@ -20,3 +20,4 @@ tslib_1.__exportStar(require("./device"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./filter"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./userdata"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./application"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./userpreferences"), exports);
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Service for handling application level events
|
|
3
|
+
* @public
|
|
4
|
+
* @group Event dispatching
|
|
3
5
|
*/
|
|
4
6
|
export interface EventDispatcher {
|
|
5
7
|
/**
|
|
6
8
|
* Dispatch a new event
|
|
7
9
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
+
* @param eventName - name of the event to dispatch
|
|
11
|
+
* @param data - data attached to the event
|
|
10
12
|
*/
|
|
11
13
|
dispatch<T>(eventName: string, data: T): CustomEvent<T>;
|
|
12
14
|
/**
|
|
13
15
|
* Add a new listener for a specific event
|
|
14
16
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
+
* @param eventName - name of the event to listen to
|
|
18
|
+
* @param listener - listener to invoke when the event is dispatched
|
|
17
19
|
*/
|
|
18
20
|
addListener<T>(eventName: string, listener: (event: CustomEvent<T>) => void): void;
|
|
19
21
|
/**
|
|
20
22
|
* Stop listening for a specific event
|
|
21
23
|
*
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
+
* @param eventName - name of the event to stop listening to
|
|
25
|
+
* @param listener - listener to remove from the dispatcher
|
|
24
26
|
*/
|
|
25
27
|
removeListener<T>(eventName: string, listener: (event: CustomEvent<T>) => void): void;
|
|
26
28
|
}
|
|
29
|
+
//# sourceMappingURL=eventdispatcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventdispatcher.d.ts","sourceRoot":"","sources":["../../src/eventdispatcher/eventdispatcher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAExD;;;;;OAKG;IACH,WAAW,CAAC,CAAC,EACT,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,GAC1C,IAAI,CAAC;IAER;;;;;OAKG;IACH,cAAc,CAAC,CAAC,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,GAC1C,IAAI,CAAC;CACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eventdispatcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "eventDispatcher";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service EventDispatcher}
|
|
6
|
+
* @see {@link Service | EventDispatcher}
|
|
7
7
|
*/
|
|
8
8
|
EventDispatcher: 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/eventdispatcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG/D,QAAA,MAAM,YAAY,oBAAoB,CAAC;AAIvC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,eAAe,EAAE,OAAO,YAAY,CAAC;KACxC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;KAClE;CACJ"}
|