@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
package/README.md
CHANGED
|
@@ -8,9 +8,16 @@ To build the dist folder, run `npm run build`.
|
|
|
8
8
|
|
|
9
9
|
Read the full documentation at [https://lundalogik.github.io/lime-web-components/](https://lundalogik.github.io/lime-web-components/)
|
|
10
10
|
|
|
11
|
+
## API changes
|
|
12
|
+
|
|
13
|
+
If you do any changes to the public API, you need to run `npm run api:update` in
|
|
14
|
+
order to update the file `etc/lime-web-components.api.md` which describes the
|
|
15
|
+
public API. The file is generated so do not update it manually. If the file is
|
|
16
|
+
not updated, the GitHub build will fail when the API is verified.
|
|
17
|
+
|
|
11
18
|
## Deploy documentation
|
|
12
19
|
|
|
13
|
-
Documentation is deployed to GitHub Pages when a new release is built by
|
|
20
|
+
Documentation is deployed to GitHub Pages when a new release is built by GitHub Actions. It can also be deployed manually from a Linux or macOS computer. *NB! Running the publish script locally will update your git config for the repository with the values of the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment variables. If you set these to anything other than your own user, you may wish to update your config again after publishing. The script will also make changes to a few files, and will checkout these again at the end. Any uncommitted changes you've made to these files **will be lost**. The script also removes the local copy of the branch gh-pages.*
|
|
14
21
|
|
|
15
22
|
Follow these steps:
|
|
16
23
|
|
|
@@ -21,7 +28,7 @@ Follow these steps:
|
|
|
21
28
|
- GH_USERNAME - the GitHub user to which the above access-token belongs
|
|
22
29
|
2. Run `git fetch`.
|
|
23
30
|
3. Run `git branch` and make sure you do *not* have a local copy of the branch `gh-pages`. If you do, push anything that should be pushed, and remove the local branch.
|
|
24
|
-
4. From the repo-root, run `npm run
|
|
31
|
+
4. From the repo-root, run `npm run docs:publish -- --v=<version>`, where `<version>` is the version of lime-elements you are building the documentation for. **Any existing documentation for this version number will be overwritten.** If no version is supplied, the version will be set to `0.0.0-dev`. If `--dryRun=true` is supplied, the entire script will run, except the push to GitHub.
|
|
25
32
|
|
|
26
33
|
## Get help
|
|
27
34
|
|
|
@@ -2,7 +2,10 @@ import { StateOptions } from '../../core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the name of the application
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
5
|
+
* @param options - options for the state selector
|
|
6
|
+
* @returns state decorator
|
|
7
|
+
* @public
|
|
8
|
+
* @group Application
|
|
7
9
|
*/
|
|
8
10
|
export declare function SelectApplicationName(options?: StateOptions): PropertyDecorator;
|
|
11
|
+
//# sourceMappingURL=application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../src/application/decorators/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEf,MAAM,YAAY,CAAC;AAGpB;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,OAAO,GAAE,YAAiB,GAC3B,iBAAiB,CAOnB"}
|
|
@@ -3,8 +3,10 @@ import { createStateDecorator } from '../../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Get the name of the application
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param options - options for the state selector
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @public
|
|
9
|
+
* @group Application
|
|
8
10
|
*/
|
|
9
11
|
export function SelectApplicationName(options = {}) {
|
|
10
12
|
const config = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/application/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -2,7 +2,10 @@ import { StateOptions } from '../../core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the application session
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
5
|
+
* @param options - state decorator options
|
|
6
|
+
* @returns state decorator
|
|
7
|
+
* @public
|
|
8
|
+
* @group Application
|
|
7
9
|
*/
|
|
8
10
|
export declare function SelectSession(options?: StateOptions): PropertyDecorator;
|
|
11
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/application/decorators/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEf,MAAM,YAAY,CAAC;AAGpB;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,YAAiB,GAAG,iBAAiB,CAO3E"}
|
|
@@ -3,8 +3,10 @@ import { createStateDecorator } from '../../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Get the application session
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param options - state decorator options
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @public
|
|
9
|
+
* @group Application
|
|
8
10
|
*/
|
|
9
11
|
export function SelectSession(options = {}) {
|
|
10
12
|
const config = {
|
|
@@ -2,7 +2,10 @@ import { StateOptions } from '../../core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the currently logged in user
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
5
|
+
* @param options - state decorator options
|
|
6
|
+
* @returns state decorator
|
|
7
|
+
* @public
|
|
8
|
+
* @group Application
|
|
7
9
|
*/
|
|
8
10
|
export declare function SelectCurrentUser(options?: StateOptions): PropertyDecorator;
|
|
11
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/application/decorators/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEf,MAAM,YAAY,CAAC;AAGpB;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC7B,OAAO,GAAE,YAAiB,GAC3B,iBAAiB,CAOnB"}
|
|
@@ -3,8 +3,10 @@ import { createStateDecorator } from '../../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Get the currently logged in user
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param options - state decorator options
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @public
|
|
9
|
+
* @group Application
|
|
8
10
|
*/
|
|
9
11
|
export function SelectCurrentUser(options = {}) {
|
|
10
12
|
const config = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/application/session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAElC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/application/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,QAAA,MAAM,YAAY,sBAAsB,CAAC;AAIzC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,WAAW,EAAE,OAAO,YAAY,CAAC;KACpC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC;KACtE;CACJ"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @group Application
|
|
4
|
+
*/
|
|
1
5
|
export interface User {
|
|
2
6
|
/**
|
|
3
7
|
* The name of the user
|
|
@@ -32,6 +36,10 @@ export interface User {
|
|
|
32
36
|
*/
|
|
33
37
|
coworker: UserCoworker;
|
|
34
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @group Application
|
|
42
|
+
*/
|
|
35
43
|
export interface UserGroup {
|
|
36
44
|
/**
|
|
37
45
|
* Name of the group
|
|
@@ -46,7 +54,11 @@ export interface UserGroup {
|
|
|
46
54
|
*/
|
|
47
55
|
description: string;
|
|
48
56
|
}
|
|
49
|
-
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @group Application
|
|
60
|
+
*/
|
|
61
|
+
export interface UserCoworker {
|
|
50
62
|
/**
|
|
51
63
|
* Id of the coworker `LimeObject`
|
|
52
64
|
*/
|
|
@@ -56,4 +68,4 @@ interface UserCoworker {
|
|
|
56
68
|
*/
|
|
57
69
|
limetype: string;
|
|
58
70
|
}
|
|
59
|
-
|
|
71
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/application/user.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,IAAI;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,SAAS,EAAE,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,100 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @group Command bus
|
|
4
|
+
*/
|
|
1
5
|
export declare type CommandClass = new (...args: any[]) => any;
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
* @group Command bus
|
|
9
|
+
*/
|
|
2
10
|
export declare type CommandIdentifier = CommandClass | string;
|
|
3
11
|
/**
|
|
4
12
|
* Service for registering and executing commands
|
|
13
|
+
* @public
|
|
14
|
+
* @group Command bus
|
|
5
15
|
*/
|
|
6
16
|
export interface CommandBus extends CommandHandler {
|
|
7
17
|
/**
|
|
8
18
|
* Register a command to be executed by the given handler
|
|
9
19
|
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
20
|
+
* @param commandClass - type of command
|
|
21
|
+
* @param handler - the handler instance used to execute the command
|
|
12
22
|
*/
|
|
13
23
|
register(commandClass: CommandClass, handler: CommandHandler): void;
|
|
14
24
|
/**
|
|
15
25
|
* Execute the given command with it's registered command handler
|
|
16
26
|
*
|
|
17
|
-
* @param
|
|
27
|
+
* @param command - command to execute
|
|
18
28
|
*
|
|
19
|
-
* @returns
|
|
29
|
+
* @returns result from the command handler
|
|
20
30
|
*/
|
|
21
31
|
handle(command: object): any;
|
|
22
32
|
/**
|
|
23
33
|
* Check if a command is supported
|
|
24
34
|
*
|
|
25
|
-
* @param
|
|
35
|
+
* @param commandId - identifier of the command. Can be either the class or the string the class was registered with
|
|
26
36
|
*
|
|
27
|
-
* @returns
|
|
37
|
+
* @returns true if the command is supported, false otherwise
|
|
28
38
|
*/
|
|
29
39
|
isSupported(commandId: CommandIdentifier): boolean;
|
|
30
40
|
/**
|
|
31
41
|
* Get a handler associated with a command
|
|
32
42
|
*
|
|
33
|
-
* @param
|
|
43
|
+
* @param commandClass - The command class
|
|
34
44
|
*
|
|
35
|
-
* @returns
|
|
45
|
+
* @returns the handler for the command class
|
|
36
46
|
*/
|
|
37
47
|
getHandler(commandClass: CommandClass): CommandHandler;
|
|
38
48
|
/**
|
|
39
49
|
* Create a command instance from a {@link CommandConfig}
|
|
40
50
|
*
|
|
41
|
-
* @param
|
|
42
|
-
* @throws
|
|
51
|
+
* @param config - The command configuration
|
|
52
|
+
* @throws Thrown if the command has not been registered yet
|
|
43
53
|
*/
|
|
44
54
|
createCommand<T = any>(config: CommandConfig<T>): T;
|
|
45
55
|
}
|
|
46
56
|
/**
|
|
47
57
|
* Service for executing commands
|
|
58
|
+
* @public
|
|
59
|
+
* @group Command bus
|
|
48
60
|
*/
|
|
49
61
|
export interface CommandHandler {
|
|
50
62
|
/**
|
|
51
63
|
* Handle the execution of the given command
|
|
52
64
|
*
|
|
53
|
-
* @param
|
|
65
|
+
* @param command - the command to handle
|
|
54
66
|
*
|
|
55
|
-
* @returns
|
|
67
|
+
* @returns the result of the operation
|
|
56
68
|
*/
|
|
57
69
|
handle(command: object): any;
|
|
58
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
* @group Command bus
|
|
74
|
+
*/
|
|
59
75
|
export declare type CallableCommandMiddleware = (command: object) => any;
|
|
60
76
|
/**
|
|
61
77
|
* Middleware for the command bus
|
|
78
|
+
* @public
|
|
79
|
+
* @group Command bus
|
|
62
80
|
*/
|
|
63
81
|
export interface CommandMiddleware {
|
|
64
82
|
/**
|
|
65
83
|
* Execute the middleware before passing the command further down the chain
|
|
66
84
|
*
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
85
|
+
* @param command - the command that is being handled
|
|
86
|
+
* @param next - the next middleware in the chain
|
|
69
87
|
*
|
|
70
|
-
* @returns
|
|
88
|
+
* @returns the result of the operation
|
|
71
89
|
*/
|
|
72
90
|
execute(command: object, next: CallableCommandMiddleware): any;
|
|
73
91
|
}
|
|
74
92
|
/**
|
|
75
93
|
* Events dispatched by the commandbus event middleware
|
|
94
|
+
* @public
|
|
95
|
+
* @group Command bus
|
|
76
96
|
*/
|
|
77
97
|
export declare enum CommandEventName {
|
|
78
98
|
/**
|
|
79
99
|
* Dispatched when the command has been received by the commandbus.
|
|
80
100
|
* Calling `preventDefault()` on the event will stop the command from being handled
|
|
81
101
|
*
|
|
82
|
-
* @
|
|
102
|
+
* @see {@link CommandEvent}
|
|
83
103
|
*/
|
|
84
104
|
Received = "command.received",
|
|
85
105
|
/**
|
|
86
106
|
* Dispatched when the command has been handled by the commandbus
|
|
87
107
|
*
|
|
88
|
-
* @
|
|
108
|
+
* @see {@link CommandEvent}
|
|
89
109
|
*/
|
|
90
110
|
Handled = "command.handled",
|
|
91
111
|
/**
|
|
92
112
|
* Dispatched if an error occurs while handling the command
|
|
93
113
|
*
|
|
94
|
-
* @
|
|
114
|
+
* @see {@link CommandEvent}
|
|
95
115
|
*/
|
|
96
116
|
Failed = "command.failed"
|
|
97
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
* @group Command bus
|
|
121
|
+
*/
|
|
122
|
+
export declare type CommandEventDetail = {
|
|
123
|
+
command: object;
|
|
124
|
+
result?: unknown;
|
|
125
|
+
error?: unknown;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @group Command bus
|
|
130
|
+
*/
|
|
131
|
+
export declare type CommandEvent = CustomEvent<CommandEventDetail>;
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
* @group Command bus
|
|
135
|
+
*/
|
|
98
136
|
export interface CommandOptions {
|
|
99
137
|
/**
|
|
100
138
|
* Id of the command
|
|
@@ -103,6 +141,7 @@ export interface CommandOptions {
|
|
|
103
141
|
}
|
|
104
142
|
/**
|
|
105
143
|
* Config for describing a command
|
|
144
|
+
* @public
|
|
106
145
|
*/
|
|
107
146
|
export interface CommandConfig<T = any> {
|
|
108
147
|
/**
|
|
@@ -120,16 +159,21 @@ export interface CommandConfig<T = any> {
|
|
|
120
159
|
/**
|
|
121
160
|
* Register a class as a command
|
|
122
161
|
*
|
|
123
|
-
* @param
|
|
162
|
+
* @param options - a CommandOptions object containing the id of the command
|
|
124
163
|
*
|
|
125
|
-
* @returns
|
|
164
|
+
* @returns callback which accepts a `CommandClass` and sets the command id
|
|
165
|
+
* @public
|
|
166
|
+
* @group Command bus
|
|
126
167
|
*/
|
|
127
168
|
export declare function Command(options: CommandOptions): (commandClass: CommandClass) => void;
|
|
128
169
|
/**
|
|
129
170
|
* Get the registered id of the command
|
|
130
171
|
*
|
|
131
|
-
* @param
|
|
172
|
+
* @param value - either a command or a command identifier
|
|
132
173
|
*
|
|
133
|
-
* @returns
|
|
174
|
+
* @returns id of the command
|
|
175
|
+
* @public
|
|
176
|
+
* @group Command bus
|
|
134
177
|
*/
|
|
135
178
|
export declare function getCommandId(value: object | CommandIdentifier): string;
|
|
179
|
+
//# sourceMappingURL=commandbus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandbus.d.ts","sourceRoot":"","sources":["../../src/commandbus/commandbus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,YAAY,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEvD;;;GAGG;AACH,oBAAY,iBAAiB,GAAG,YAAY,GAAG,MAAM,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAC9C;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAEpE;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC;IAEnD;;;;;;OAMG;IACH,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,cAAc,CAAC;IAEvD;;;;;OAKG;IACH,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACvD;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC;CAChC;AAED;;;GAGG;AACH,oBAAY,yBAAyB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,GAAG,CAAC;CAClE;AAED;;;;GAIG;AACH,oBAAY,gBAAgB;IACxB;;;;;OAKG;IACH,QAAQ,qBAAqB;IAE7B;;;;OAIG;IACH,OAAO,oBAAoB;IAE3B;;;;OAIG;IACH,MAAM,mBAAmB;CAC5B;AAED;;;GAGG;AACH,oBAAY,kBAAkB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,oBAAY,YAAY,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,kBACrB,YAAY,UAGrC;AAOD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,MAAM,CAgBtE"}
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Events dispatched by the commandbus event middleware
|
|
3
|
+
* @public
|
|
4
|
+
* @group Command bus
|
|
3
5
|
*/
|
|
4
|
-
// eslint-disable-next-line no-shadow
|
|
5
6
|
export var CommandEventName;
|
|
6
7
|
(function (CommandEventName) {
|
|
7
8
|
/**
|
|
8
9
|
* Dispatched when the command has been received by the commandbus.
|
|
9
10
|
* Calling `preventDefault()` on the event will stop the command from being handled
|
|
10
11
|
*
|
|
11
|
-
* @
|
|
12
|
+
* @see {@link CommandEvent}
|
|
12
13
|
*/
|
|
13
14
|
CommandEventName["Received"] = "command.received";
|
|
14
15
|
/**
|
|
15
16
|
* Dispatched when the command has been handled by the commandbus
|
|
16
17
|
*
|
|
17
|
-
* @
|
|
18
|
+
* @see {@link CommandEvent}
|
|
18
19
|
*/
|
|
19
20
|
CommandEventName["Handled"] = "command.handled";
|
|
20
21
|
/**
|
|
21
22
|
* Dispatched if an error occurs while handling the command
|
|
22
23
|
*
|
|
23
|
-
* @
|
|
24
|
+
* @see {@link CommandEvent}
|
|
24
25
|
*/
|
|
25
26
|
CommandEventName["Failed"] = "command.failed";
|
|
26
27
|
})(CommandEventName || (CommandEventName = {}));
|
|
27
28
|
/**
|
|
28
29
|
* Register a class as a command
|
|
29
30
|
*
|
|
30
|
-
* @param
|
|
31
|
+
* @param options - a CommandOptions object containing the id of the command
|
|
31
32
|
*
|
|
32
|
-
* @returns
|
|
33
|
+
* @returns callback which accepts a `CommandClass` and sets the command id
|
|
34
|
+
* @public
|
|
35
|
+
* @group Command bus
|
|
33
36
|
*/
|
|
34
37
|
export function Command(options) {
|
|
35
38
|
return (commandClass) => {
|
|
@@ -43,9 +46,11 @@ function setCommandId(commandClass, id) {
|
|
|
43
46
|
/**
|
|
44
47
|
* Get the registered id of the command
|
|
45
48
|
*
|
|
46
|
-
* @param
|
|
49
|
+
* @param value - either a command or a command identifier
|
|
47
50
|
*
|
|
48
|
-
* @returns
|
|
51
|
+
* @returns id of the command
|
|
52
|
+
* @public
|
|
53
|
+
* @group Command bus
|
|
49
54
|
*/
|
|
50
55
|
export function getCommandId(value) {
|
|
51
56
|
if (typeof value === 'string') {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commandbus/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "commandBus";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service CommandBus}
|
|
6
|
+
* @see {@link Service | CommandBus}
|
|
7
7
|
*/
|
|
8
8
|
CommandBus: 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/commandbus/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAGrD,QAAA,MAAM,YAAY,eAAe,CAAC;AAIlC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,UAAU,EAAE,OAAO,YAAY,CAAC;KACnC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC;KAC7D;CACJ"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StateOptions } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* Config for the {@link SelectConfig} state decorator
|
|
4
|
+
* @public
|
|
5
|
+
* @group Config
|
|
4
6
|
*/
|
|
5
7
|
export interface SelectConfigOptions extends StateOptions {
|
|
6
8
|
name?: string;
|
|
@@ -8,7 +10,10 @@ export interface SelectConfigOptions extends StateOptions {
|
|
|
8
10
|
/**
|
|
9
11
|
* Gets an object with all configs where key is used as key.
|
|
10
12
|
*
|
|
11
|
-
* @param
|
|
12
|
-
* @returns
|
|
13
|
+
* @param options - state decorator options
|
|
14
|
+
* @returns state decorator
|
|
15
|
+
* @public
|
|
16
|
+
* @group Config
|
|
13
17
|
*/
|
|
14
18
|
export declare function SelectConfig(options: SelectConfigOptions): PropertyDecorator;
|
|
19
|
+
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/config/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,YAAY,EAEf,MAAM,SAAS,CAAC;AAGjB;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,iBAAiB,CAM5E"}
|
package/dist/config/decorator.js
CHANGED
|
@@ -3,8 +3,10 @@ import { createStateDecorator } from '../core/decorators/factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* Gets an object with all configs where key is used as key.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param options - state decorator options
|
|
7
|
+
* @returns state decorator
|
|
8
|
+
* @public
|
|
9
|
+
* @group Config
|
|
8
10
|
*/
|
|
9
11
|
export function SelectConfig(options) {
|
|
10
12
|
const config = {
|
package/dist/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { StateRepository } from '../core/state';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
* @group Config
|
|
5
|
+
*/
|
|
2
6
|
export interface ConfigRepository extends StateRepository {
|
|
3
7
|
/**
|
|
4
8
|
* Check if a config exists
|
|
5
9
|
*
|
|
6
|
-
* @param key name of the key containing the config
|
|
10
|
+
* @param key - name of the key containing the config
|
|
7
11
|
* @returns true if config exists
|
|
8
12
|
*/
|
|
9
13
|
has(key: string): boolean;
|
|
10
14
|
/**
|
|
11
15
|
* Get config from the state
|
|
12
16
|
*
|
|
13
|
-
* @param key name of the key containing the config
|
|
17
|
+
* @param key - name of the key containing the config
|
|
14
18
|
* @returns the config
|
|
15
19
|
*/
|
|
16
20
|
get<T = any>(key: string): T;
|
|
17
21
|
}
|
|
22
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/config/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACrD;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAChC"}
|
package/dist/config/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const SERVICE_NAME = "state.configs";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @see {@link Service ConfigRepository}
|
|
6
|
+
* @see {@link Service | ConfigRepository}
|
|
7
7
|
*/
|
|
8
8
|
ConfigRepository: 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/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAG3D,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,gBAAgB,EAAE,OAAO,YAAY,CAAC;KACzC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC;KACnE;CACJ"}
|
package/dist/core/context.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Interface for the context in which the Lime Web Component appears
|
|
3
|
+
* @public
|
|
4
|
+
* @group Core
|
|
3
5
|
*/
|
|
4
6
|
export interface LimeWebComponentContext {
|
|
5
7
|
/**
|
|
@@ -15,3 +17,4 @@ export interface LimeWebComponentContext {
|
|
|
15
17
|
*/
|
|
16
18
|
parent?: LimeWebComponentContext;
|
|
17
19
|
}
|
|
20
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;CACpC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { LimeWebComponent, StateOptions } from '..';
|
|
2
2
|
declare 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
|