@limetech/lime-web-components 4.48.1 → 4.49.1-alpha.3
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/CHANGELOG.md +141 -0
- package/README.md +1 -1
- package/dist/application/decorators/application.d.ts +8 -0
- package/dist/application/decorators/application.js +18 -0
- package/dist/application/decorators/index.d.ts +3 -0
- package/dist/application/decorators/index.js +3 -0
- package/dist/application/decorators/session.d.ts +8 -0
- package/dist/application/decorators/session.js +18 -0
- package/dist/application/decorators/user.d.ts +8 -0
- package/dist/application/decorators/user.js +18 -0
- package/dist/application/index.d.ts +4 -0
- package/dist/application/index.js +4 -0
- package/dist/application/session.d.ts +67 -0
- package/dist/application/session.js +1 -0
- package/dist/application/types.d.ts +14 -0
- package/dist/application/types.js +3 -0
- package/dist/application/user.d.ts +59 -0
- package/dist/application/user.js +1 -0
- package/dist/commandbus/commandbus.d.ts +112 -0
- package/dist/commandbus/commandbus.js +63 -0
- package/dist/commandbus/index.d.ts +2 -0
- package/dist/commandbus/index.js +2 -0
- package/dist/commandbus/types.d.ts +14 -0
- package/dist/commandbus/types.js +3 -0
- package/dist/config/decorator.d.ts +14 -0
- package/dist/config/decorator.js +14 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.js +3 -0
- package/dist/config/repository.d.ts +17 -0
- package/dist/config/repository.js +1 -0
- package/dist/config/types.d.ts +14 -0
- package/dist/config/types.js +3 -0
- package/dist/core/context.d.ts +17 -0
- package/dist/core/context.js +1 -0
- package/dist/core/decorators/factory.d.ts +29 -0
- package/dist/core/decorators/factory.js +243 -0
- package/dist/core/decorators/factory.spec.d.ts +1 -0
- package/dist/core/decorators/factory.spec.js +337 -0
- package/dist/core/decorators/index.d.ts +1 -0
- package/dist/core/decorators/index.js +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.js +6 -0
- package/dist/core/lime-web-component.d.ts +15 -0
- package/dist/core/lime-web-component.js +1 -0
- package/dist/core/platform.d.ts +38 -0
- package/dist/core/platform.js +6 -0
- package/dist/core/plugin-loader.d.ts +28 -0
- package/dist/core/plugin-loader.js +1 -0
- package/dist/core/state.d.ts +39 -0
- package/dist/core/state.js +1 -0
- package/dist/device/decorator.d.ts +16 -0
- package/dist/device/decorator.js +16 -0
- package/dist/device/device.d.ts +21 -0
- package/dist/device/device.js +1 -0
- package/dist/device/index.d.ts +3 -0
- package/dist/device/index.js +3 -0
- package/dist/device/types.d.ts +14 -0
- package/dist/device/types.js +3 -0
- package/dist/dialog/dialog.d.ts +41 -0
- package/dist/dialog/dialog.js +1 -0
- package/dist/dialog/index.d.ts +2 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/types.d.ts +14 -0
- package/dist/dialog/types.js +3 -0
- package/dist/es5/application/decorators/application.js +18 -0
- package/dist/es5/application/decorators/index.js +6 -0
- package/dist/es5/application/decorators/session.js +18 -0
- package/dist/es5/application/decorators/user.js +18 -0
- package/dist/es5/application/index.js +7 -0
- package/dist/es5/application/session.js +2 -0
- package/dist/es5/application/types.js +5 -0
- package/dist/es5/application/user.js +2 -0
- package/dist/es5/commandbus/commandbus.js +31 -0
- package/dist/es5/commandbus/index.js +5 -0
- package/dist/es5/commandbus/types.js +5 -0
- package/dist/es5/config/decorator.js +12 -0
- package/dist/es5/config/index.js +6 -0
- package/dist/es5/config/repository.js +2 -0
- package/dist/es5/config/types.js +5 -0
- package/dist/es5/core/context.js +2 -0
- package/dist/es5/core/decorators/factory.js +213 -0
- package/dist/es5/core/decorators/factory.spec.js +495 -0
- package/dist/es5/core/decorators/index.js +2 -0
- package/dist/es5/core/index.js +9 -0
- package/dist/es5/core/lime-web-component.js +2 -0
- package/dist/es5/core/platform.js +6 -0
- package/dist/es5/core/plugin-loader.js +2 -0
- package/dist/es5/core/state.js +2 -0
- package/dist/es5/device/decorator.js +13 -0
- package/dist/es5/device/device.js +2 -0
- package/dist/es5/device/index.js +6 -0
- package/dist/es5/device/types.js +5 -0
- package/dist/es5/dialog/dialog.js +2 -0
- package/dist/es5/dialog/index.js +5 -0
- package/dist/es5/dialog/types.js +5 -0
- package/dist/es5/eventdispatcher/eventdispatcher.js +2 -0
- package/dist/es5/eventdispatcher/index.js +5 -0
- package/dist/es5/eventdispatcher/types.js +5 -0
- package/dist/es5/filter/decorator.js +13 -0
- package/dist/es5/filter/index.js +6 -0
- package/dist/es5/filter/repository.js +2 -0
- package/dist/es5/filter/types.js +5 -0
- package/dist/es5/http/http.js +2 -0
- package/dist/es5/http/index.js +5 -0
- package/dist/es5/http/types.js +5 -0
- package/dist/es5/index.js +22 -0
- package/dist/es5/keybindings/index.js +5 -0
- package/dist/es5/keybindings/registry.js +2 -0
- package/dist/es5/keybindings/types.js +5 -0
- package/dist/es5/limeobject/commands/bulk-create-dialog.js +17 -0
- package/dist/es5/limeobject/commands/create-dialog.js +17 -0
- package/dist/es5/limeobject/commands/delete-object.js +16 -0
- package/dist/es5/limeobject/commands/index.js +8 -0
- package/dist/es5/limeobject/commands/object-access.js +16 -0
- package/dist/es5/limeobject/commands/save-object.js +17 -0
- package/dist/es5/limeobject/decorator.js +38 -0
- package/dist/es5/limeobject/error.js +2 -0
- package/dist/es5/limeobject/index.js +9 -0
- package/dist/es5/limeobject/limeobject.js +2 -0
- package/dist/es5/limeobject/repository.js +2 -0
- package/dist/es5/limeobject/types.js +5 -0
- package/dist/es5/limetype/acl.js +2 -0
- package/dist/es5/limetype/decorator.js +28 -0
- package/dist/es5/limetype/index.js +8 -0
- package/dist/es5/limetype/limetype.js +2 -0
- package/dist/es5/limetype/property.js +40 -0
- package/dist/es5/limetype/types.js +5 -0
- package/dist/es5/navigator/decorator.js +13 -0
- package/dist/es5/navigator/index.js +6 -0
- package/dist/es5/navigator/navigator.js +2 -0
- package/dist/es5/navigator/types.js +5 -0
- package/dist/es5/notifications/index.js +5 -0
- package/dist/es5/notifications/notifications.js +2 -0
- package/dist/es5/notifications/types.js +5 -0
- package/dist/es5/query/index.js +6 -0
- package/dist/es5/query/query.js +17 -0
- package/dist/es5/query/service.js +2 -0
- package/dist/es5/query/types.js +5 -0
- package/dist/es5/routeregistry/index.js +5 -0
- package/dist/es5/routeregistry/registry.js +2 -0
- package/dist/es5/routeregistry/types.js +5 -0
- package/dist/es5/task/index.js +5 -0
- package/dist/es5/task/repository.js +17 -0
- package/dist/es5/task/types.js +5 -0
- package/dist/es5/testing/component-testing.js +102 -0
- package/dist/es5/testing/index.js +10 -0
- package/dist/es5/testing/limeobjects/company.js +660 -0
- package/dist/es5/testing/limeobjects/coworker.js +110 -0
- package/dist/es5/testing/limeobjects/deal.js +447 -0
- package/dist/es5/testing/limeobjects/document.js +82 -0
- package/dist/es5/testing/limeobjects/index.js +55 -0
- package/dist/es5/testing/limeobjects/person.js +1162 -0
- package/dist/es5/testing/limetypes/campaign.js +486 -0
- package/dist/es5/testing/limetypes/company.js +621 -0
- package/dist/es5/testing/limetypes/consent.js +237 -0
- package/dist/es5/testing/limetypes/consenttype.js +194 -0
- package/dist/es5/testing/limetypes/coworker.js +579 -0
- package/dist/es5/testing/limetypes/deal.js +422 -0
- package/dist/es5/testing/limetypes/document.js +343 -0
- package/dist/es5/testing/limetypes/helpdesk.js +426 -0
- package/dist/es5/testing/limetypes/helpdesktype.js +142 -0
- package/dist/es5/testing/limetypes/history.js +349 -0
- package/dist/es5/testing/limetypes/index.js +69 -0
- package/dist/es5/testing/limetypes/infotiles.js +514 -0
- package/dist/es5/testing/limetypes/localize.js +287 -0
- package/dist/es5/testing/limetypes/mailing.js +218 -0
- package/dist/es5/testing/limetypes/office.js +388 -0
- package/dist/es5/testing/limetypes/participant.js +195 -0
- package/dist/es5/testing/limetypes/person.js +535 -0
- package/dist/es5/testing/limetypes/recipient.js +175 -0
- package/dist/es5/testing/limetypes/solutionimprovement.js +353 -0
- package/dist/es5/testing/limetypes/successplan.js +215 -0
- package/dist/es5/testing/limetypes/target.js +181 -0
- package/dist/es5/testing/limetypes/todo.js +429 -0
- package/dist/es5/testing/platform/index.js +53 -0
- package/dist/es5/testing/platform/platform.spec.js +44 -0
- package/dist/es5/translator/index.js +5 -0
- package/dist/es5/translator/translator.js +2 -0
- package/dist/es5/translator/types.js +5 -0
- package/dist/es5/userdata/decorator.js +13 -0
- package/dist/es5/userdata/index.js +6 -0
- package/dist/es5/userdata/repository.js +2 -0
- package/dist/es5/userdata/types.js +5 -0
- package/dist/eventdispatcher/eventdispatcher.d.ts +26 -0
- package/dist/eventdispatcher/eventdispatcher.js +1 -0
- package/dist/eventdispatcher/index.d.ts +2 -0
- package/dist/eventdispatcher/index.js +2 -0
- package/dist/eventdispatcher/types.d.ts +14 -0
- package/dist/eventdispatcher/types.js +3 -0
- package/dist/filter/decorator.d.ts +15 -0
- package/dist/filter/decorator.js +14 -0
- package/dist/filter/index.d.ts +3 -0
- package/dist/filter/index.js +3 -0
- package/dist/filter/repository.d.ts +18 -0
- package/dist/filter/repository.js +1 -0
- package/dist/filter/types.d.ts +14 -0
- package/dist/filter/types.js +3 -0
- package/dist/http/http.d.ts +72 -0
- package/dist/http/http.js +1 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.js +2 -0
- package/dist/http/types.d.ts +14 -0
- package/dist/http/types.js +3 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/keybindings/index.d.ts +2 -0
- package/dist/keybindings/index.js +2 -0
- package/dist/keybindings/registry.d.ts +79 -0
- package/dist/keybindings/registry.js +1 -0
- package/dist/keybindings/types.d.ts +17 -0
- package/dist/keybindings/types.js +3 -0
- package/dist/limeobject/commands/bulk-create-dialog.d.ts +49 -0
- package/dist/limeobject/commands/bulk-create-dialog.js +48 -0
- package/dist/limeobject/commands/create-dialog.d.ts +28 -0
- package/dist/limeobject/commands/create-dialog.js +26 -0
- package/dist/limeobject/commands/delete-object.d.ts +10 -0
- package/dist/limeobject/commands/delete-object.js +15 -0
- package/dist/limeobject/commands/index.d.ts +5 -0
- package/dist/limeobject/commands/index.js +5 -0
- package/dist/limeobject/commands/object-access.d.ts +10 -0
- package/dist/limeobject/commands/object-access.js +15 -0
- package/dist/limeobject/commands/save-object.d.ts +16 -0
- package/dist/limeobject/commands/save-object.js +21 -0
- package/dist/limeobject/decorator.d.ts +32 -0
- package/dist/limeobject/decorator.js +42 -0
- package/dist/limeobject/error.d.ts +4 -0
- package/dist/limeobject/error.js +1 -0
- package/dist/limeobject/index.d.ts +6 -0
- package/dist/limeobject/index.js +6 -0
- package/dist/limeobject/limeobject.d.ts +43 -0
- package/dist/limeobject/limeobject.js +1 -0
- package/dist/limeobject/repository.d.ts +113 -0
- package/dist/limeobject/repository.js +1 -0
- package/dist/limeobject/types.d.ts +14 -0
- package/dist/limeobject/types.js +3 -0
- package/dist/limetype/acl.d.ts +6 -0
- package/dist/limetype/acl.js +1 -0
- package/dist/limetype/decorator.d.ts +21 -0
- package/dist/limetype/decorator.js +32 -0
- package/dist/limetype/index.d.ts +5 -0
- package/dist/limetype/index.js +5 -0
- package/dist/limetype/limetype.d.ts +25 -0
- package/dist/limetype/limetype.js +1 -0
- package/dist/limetype/property.d.ts +32 -0
- package/dist/limetype/property.js +32 -0
- package/dist/limetype/types.d.ts +14 -0
- package/dist/limetype/types.js +3 -0
- package/dist/navigator/decorator.d.ts +18 -0
- package/dist/navigator/decorator.js +15 -0
- package/dist/navigator/index.d.ts +3 -0
- package/dist/navigator/index.js +3 -0
- package/dist/navigator/navigator.d.ts +158 -0
- package/dist/navigator/navigator.js +1 -0
- package/dist/navigator/types.d.ts +17 -0
- package/dist/navigator/types.js +3 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/notifications.d.ts +101 -0
- package/dist/notifications/notifications.js +1 -0
- package/dist/notifications/types.d.ts +14 -0
- package/dist/notifications/types.js +3 -0
- package/dist/query/index.d.ts +3 -0
- package/dist/query/index.js +3 -0
- package/dist/query/query.d.ts +46 -0
- package/dist/query/query.js +14 -0
- package/dist/query/service.d.ts +12 -0
- package/dist/query/service.js +1 -0
- package/dist/query/types.d.ts +14 -0
- package/dist/query/types.js +3 -0
- package/dist/routeregistry/index.d.ts +2 -0
- package/dist/routeregistry/index.js +2 -0
- package/dist/routeregistry/registry.d.ts +92 -0
- package/dist/routeregistry/registry.js +1 -0
- package/dist/routeregistry/types.d.ts +17 -0
- package/dist/routeregistry/types.js +3 -0
- package/dist/task/index.d.ts +2 -0
- package/dist/task/index.js +2 -0
- package/dist/task/repository.d.ts +82 -0
- package/dist/task/repository.js +49 -0
- package/dist/task/types.d.ts +14 -0
- package/dist/task/types.js +3 -0
- package/dist/testing/component-testing.d.ts +53 -0
- package/dist/testing/component-testing.js +162 -0
- package/dist/testing/index.d.ts +4 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/limeobjects/company.d.ts +55 -0
- package/dist/testing/limeobjects/company.js +656 -0
- package/dist/testing/limeobjects/coworker.d.ts +22 -0
- package/dist/testing/limeobjects/coworker.js +106 -0
- package/dist/testing/limeobjects/deal.d.ts +41 -0
- package/dist/testing/limeobjects/deal.js +443 -0
- package/dist/testing/limeobjects/document.d.ts +20 -0
- package/dist/testing/limeobjects/document.js +78 -0
- package/dist/testing/limeobjects/index.d.ts +177 -0
- package/dist/testing/limeobjects/index.js +50 -0
- package/dist/testing/limeobjects/person.d.ts +20 -0
- package/dist/testing/limeobjects/person.js +1158 -0
- package/dist/testing/limetypes/campaign.d.ts +417 -0
- package/dist/testing/limetypes/campaign.js +477 -0
- package/dist/testing/limetypes/company.d.ts +591 -0
- package/dist/testing/limetypes/company.js +614 -0
- package/dist/testing/limetypes/consent.d.ts +199 -0
- package/dist/testing/limetypes/consent.js +232 -0
- package/dist/testing/limetypes/consenttype.d.ts +188 -0
- package/dist/testing/limetypes/consenttype.js +189 -0
- package/dist/testing/limetypes/coworker.d.ts +563 -0
- package/dist/testing/limetypes/coworker.js +564 -0
- package/dist/testing/limetypes/deal.d.ts +391 -0
- package/dist/testing/limetypes/deal.js +419 -0
- package/dist/testing/limetypes/document.d.ts +309 -0
- package/dist/testing/limetypes/document.js +332 -0
- package/dist/testing/limetypes/helpdesk.d.ts +394 -0
- package/dist/testing/limetypes/helpdesk.js +417 -0
- package/dist/testing/limetypes/helpdesktype.d.ts +136 -0
- package/dist/testing/limetypes/helpdesktype.js +137 -0
- package/dist/testing/limetypes/history.d.ts +308 -0
- package/dist/testing/limetypes/history.js +346 -0
- package/dist/testing/limetypes/index.d.ts +5 -0
- package/dist/testing/limetypes/index.js +63 -0
- package/dist/testing/limetypes/infotiles.d.ts +387 -0
- package/dist/testing/limetypes/infotiles.js +509 -0
- package/dist/testing/limetypes/localize.d.ts +283 -0
- package/dist/testing/limetypes/localize.js +284 -0
- package/dist/testing/limetypes/mailing.d.ts +212 -0
- package/dist/testing/limetypes/mailing.js +213 -0
- package/dist/testing/limetypes/office.d.ts +384 -0
- package/dist/testing/limetypes/office.js +385 -0
- package/dist/testing/limetypes/participant.d.ts +165 -0
- package/dist/testing/limetypes/participant.js +188 -0
- package/dist/testing/limetypes/person.d.ts +472 -0
- package/dist/testing/limetypes/person.js +530 -0
- package/dist/testing/limetypes/recipient.d.ts +147 -0
- package/dist/testing/limetypes/recipient.js +170 -0
- package/dist/testing/limetypes/solutionimprovement.d.ts +302 -0
- package/dist/testing/limetypes/solutionimprovement.js +344 -0
- package/dist/testing/limetypes/successplan.d.ts +209 -0
- package/dist/testing/limetypes/successplan.js +210 -0
- package/dist/testing/limetypes/target.d.ts +160 -0
- package/dist/testing/limetypes/target.js +178 -0
- package/dist/testing/limetypes/todo.d.ts +386 -0
- package/dist/testing/limetypes/todo.js +426 -0
- package/dist/testing/platform/index.d.ts +8 -0
- package/dist/testing/platform/index.js +61 -0
- package/dist/testing/platform/platform.spec.d.ts +1 -0
- package/dist/testing/platform/platform.spec.js +41 -0
- package/dist/translator/index.d.ts +2 -0
- package/dist/translator/index.js +2 -0
- package/dist/translator/translator.d.ts +13 -0
- package/dist/translator/translator.js +1 -0
- package/dist/translator/types.d.ts +14 -0
- package/dist/translator/types.js +3 -0
- package/dist/userdata/decorator.d.ts +17 -0
- package/dist/userdata/decorator.js +14 -0
- package/dist/userdata/index.d.ts +3 -0
- package/dist/userdata/index.js +3 -0
- package/dist/userdata/repository.d.ts +29 -0
- package/dist/userdata/repository.js +1 -0
- package/dist/userdata/types.d.ts +14 -0
- package/dist/userdata/types.js +3 -0
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,147 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.49.1-alpha.3](https://github.com/Lundalogik/lime-web-components/compare/v4.49.1-alpha.2...v4.49.1-alpha.3) (2022-07-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* trigger release ([b1a0586](https://github.com/Lundalogik/lime-web-components/commit/b1a05869dd6f19049a8ba66196b080a281ca585d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.49.1-alpha.2](https://github.com/Lundalogik/lime-web-components/compare/v4.49.1-alpha.1...v4.49.1-alpha.2) (2022-07-05)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @limetech/lime-web-components
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [4.49.1-alpha.1](https://github.com/Lundalogik/lime-web-components/compare/v4.49.1-alpha.0...v4.49.1-alpha.1) (2022-07-04)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @limetech/lime-web-components
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [4.49.1-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.49.0-alpha.0...v4.49.1-alpha.0) (2022-07-04)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @limetech/lime-web-components
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [4.49.0-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.48.1...v4.49.0-alpha.0) (2022-06-29)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [4.46.0-alpha.2](https://github.com/Lundalogik/lime-web-components/compare/v4.46.0...v4.46.0-alpha.2) (2022-05-25)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* **docs:** add deprecation note ([a7bf0c5](https://github.com/Lundalogik/lime-web-components/commit/a7bf0c5dedb1dfb2b1452be370b543374b9809cc))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [4.46.0-alpha.1](https://github.com/Lundalogik/lime-web-components/compare/v4.46.0-alpha.0...v4.46.0-alpha.1) (2022-05-20)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
* **navigator:** move decorator `SelectQueryParam` to `@limetech/lime-web-components` ([1e5fa78](https://github.com/Lundalogik/lime-web-components/commit/1e5fa78b2035f0c358ed4fca8b679e818adc536d))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# [4.46.0-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.45.3...v4.46.0-alpha.0) (2022-05-12)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# [4.42.0-alpha.1](https://github.com/Lundalogik/lime-web-components/compare/v4.42.0...v4.42.0-alpha.1) (2022-04-14)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# [4.42.0-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.41.10...v4.42.0-alpha.0) (2022-04-14)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# [4.24.0-alpha.1](https://github.com/Lundalogik/lime-web-components/compare/v4.24.0-alpha.0...v4.24.0-alpha.1) (2022-03-28)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
* **application:** move decorator to `@limetech/lime-web-components` ([bd0bfc1](https://github.com/Lundalogik/lime-web-components/commit/bd0bfc127355139a3818e0730f21224bf30cbbd4))
|
|
81
|
+
* **config:** move decorator to `@limetech/lime-web-components` ([8b7d6d9](https://github.com/Lundalogik/lime-web-components/commit/8b7d6d90192f86e7a9ea0fc5223663a0b126c295))
|
|
82
|
+
* **current-user:** move decorator to `@limetech/lime-web-components` ([1e9bd8a](https://github.com/Lundalogik/lime-web-components/commit/1e9bd8a95055e2382e3803fd577c948256d59057))
|
|
83
|
+
* **decorators:** move interface to `@limetech/lime-web-components` ([3b9a6c8](https://github.com/Lundalogik/lime-web-components/commit/3b9a6c82564fc46864d1698adb6d42299e355c0e))
|
|
84
|
+
* **device:** move decorator to `@limetech/lime-web-components` ([9b43f89](https://github.com/Lundalogik/lime-web-components/commit/9b43f897169486081d665bab5aaec357d78251ec))
|
|
85
|
+
* **filter:** move decorator to `@limetech/lime-web-components` ([7e200ed](https://github.com/Lundalogik/lime-web-components/commit/7e200ed9bb97ee9592fb69026cbdd8fe9ffba4f3))
|
|
86
|
+
* **limeobject:** move decorator to `@limetech/lime-web-components` ([37894f1](https://github.com/Lundalogik/lime-web-components/commit/37894f1524e8db1cf80165c2f0a63bdd954e0859))
|
|
87
|
+
* **limetype:** move decorator to `@limetech/lime-web-components` ([fc49855](https://github.com/Lundalogik/lime-web-components/commit/fc49855bb64d325ca4f1c55bf04e175b48e0efaa))
|
|
88
|
+
* **session:** move decorator to `@limetech/lime-web-components` ([3c72f12](https://github.com/Lundalogik/lime-web-components/commit/3c72f12012662d2caf6255abf1c6f7101fb1e86a))
|
|
89
|
+
* **user-data:** move decorator to `@limetech/lime-web-components` ([9a5f996](https://github.com/Lundalogik/lime-web-components/commit/9a5f9960d9441d511d84af60eb6bc08352341bef))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# [4.24.0-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.41.6...v4.24.0-alpha.0) (2022-03-25)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Bug Fixes
|
|
97
|
+
|
|
98
|
+
* **platform:** add missing platform service names ([de30d58](https://github.com/Lundalogik/lime-web-components/commit/de30d580528a9ed05b646dd79c3f0b9af5aadd46))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* **config:** move interface to `@limetech/lime-web-components` ([d6b12bd](https://github.com/Lundalogik/lime-web-components/commit/d6b12bdf49b0a0a39f542d7899e3db67f5f38840))
|
|
104
|
+
* **device:** move interface to `@limetech/lime-web-components` ([3ec207b](https://github.com/Lundalogik/lime-web-components/commit/3ec207b4737e6c1592bd46125e4bdd8160ff8be0))
|
|
105
|
+
* **dialog:** move interface to `@limetech/lime-web-components` ([ce8f8fc](https://github.com/Lundalogik/lime-web-components/commit/ce8f8fca810e649cda82c6bb152d9959898dbf89))
|
|
106
|
+
* **filter:** move interface to `@limetech/lime-web-components` ([624afa4](https://github.com/Lundalogik/lime-web-components/commit/624afa4e78dd89da4140b0c74f3a82928dcf6936))
|
|
107
|
+
* **keybindings:** move interface to `@limetech/lime-web-components` ([c867376](https://github.com/Lundalogik/lime-web-components/commit/c86737653045fd2123345bde0123e92a384b9205))
|
|
108
|
+
* **limeobject:** move interface to `@limetech/lime-web-components` ([167d5a2](https://github.com/Lundalogik/lime-web-components/commit/167d5a24d2bbb51632be64a1271e66f957bd9458))
|
|
109
|
+
* **limeobject:** move interface to `@limetech/lime-web-components` ([ab608b3](https://github.com/Lundalogik/lime-web-components/commit/ab608b38288aa24289f1486bed6eabe0189f1174))
|
|
110
|
+
* **navigator:** move interface to `@limetech/lime-web-components` ([603510e](https://github.com/Lundalogik/lime-web-components/commit/603510e57a09b8e2faedeb464e7a1206388f93fe))
|
|
111
|
+
* **notifications:** move interface to `@limetech/lime-web-components` ([f69a1fc](https://github.com/Lundalogik/lime-web-components/commit/f69a1fcf7be22409e35381b278cb74c9199bbe87))
|
|
112
|
+
* **platform:** use module augmentation to add service names ([53e19eb](https://github.com/Lundalogik/lime-web-components/commit/53e19ebb41761750fb7e2feeb9a9d5980ecce543))
|
|
113
|
+
* **platform:** use module augmentation to overload services ([e7460ad](https://github.com/Lundalogik/lime-web-components/commit/e7460ad275691b15fc7981a80d649fe1c31f25c9))
|
|
114
|
+
* **query:** move interface to `@limetech/lime-web-components` ([e2f5c9f](https://github.com/Lundalogik/lime-web-components/commit/e2f5c9faa38041150161ee71d1ec315fead147e4))
|
|
115
|
+
* **router:** move interface to `@limetech/lime-web-components` ([fa3d83c](https://github.com/Lundalogik/lime-web-components/commit/fa3d83c8291bf08b68b99d5d3fa78154d88c26a8))
|
|
116
|
+
* **session:** move interface to `@limetech/lime-web-components` ([1b005c8](https://github.com/Lundalogik/lime-web-components/commit/1b005c842d555b097c32114f7a8f1a5d064ae86a))
|
|
117
|
+
* **state:** move interface to `@limetech/lime-web-components` ([91970f4](https://github.com/Lundalogik/lime-web-components/commit/91970f4a150708a20afb292eeb9d740b47ff416b))
|
|
118
|
+
* **task:** move interface to `@limetech/lime-web-components` ([65a6f46](https://github.com/Lundalogik/lime-web-components/commit/65a6f46d30da7971ef5d5f6d746632b0f808ea76))
|
|
119
|
+
* **translator:** move interface to `@limetech/lime-web-components` ([38b2890](https://github.com/Lundalogik/lime-web-components/commit/38b2890833e06736cd0d02f40f3e3f3635018212))
|
|
120
|
+
* **user:** move interface to `@limetech/lime-web-components` ([0c75aa5](https://github.com/Lundalogik/lime-web-components/commit/0c75aa5bd4e2b9c7fa35407a91a383c18edb7ce3))
|
|
121
|
+
* **userdata:** move interface to `@limetech/lime-web-components` ([b4adf23](https://github.com/Lundalogik/lime-web-components/commit/b4adf238bc0013d23331a718a210f823705a8358))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## [4.23.3-alpha.3](https://github.com/Lundalogik/lime-web-components/compare/v4.41.3...v4.23.3-alpha.3) (2022-03-21)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## [4.23.3-alpha.2](https://github.com/Lundalogik/lime-web-components/compare/v4.29.2...v4.23.3-alpha.2) (2021-11-15)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## [4.23.3-alpha.1](https://github.com/Lundalogik/lime-web-components/compare/v4.24.0...v4.23.3-alpha.1) (2021-09-28)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## [4.23.3-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.23.3...v4.23.3-alpha.0) (2021-09-27)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## [4.13.3-alpha.0](https://github.com/Lundalogik/lime-web-components/compare/v4.13.2...v4.13.3-alpha.0) (2021-02-26)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
6
147
|
## [4.48.1](https://github.com/Lundalogik/lime-web-components/compare/v4.48.0...v4.48.1) (2022-06-21)
|
|
7
148
|
|
|
8
149
|
**Note:** Version bump only for package @limetech/lime-web-components
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lime Web Components
|
|
2
2
|
|
|
3
|
-
This package contains the main library for Lime Web Components
|
|
3
|
+
This package contains the main library for Lime Web Components!
|
|
4
4
|
|
|
5
5
|
Lime Web Components are web components that are used to customize [Lime CRM](https://lime-crm.se/). Components are built using [StencilJS](https://stenciljs.com/docs/introduction), which uses [TypeScript](https://www.typescriptlang.org), [JSX](https://reactjs.org/docs/introducing-jsx.html) and [reactive](https://en.wikipedia.org/wiki/Reactive_programming) data-binding.
|
|
6
6
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StateOptions } from '../../core';
|
|
2
|
+
/**
|
|
3
|
+
* Get the name of the application
|
|
4
|
+
*
|
|
5
|
+
* @param {StateOptions} [options] options for the state selector
|
|
6
|
+
* @returns {Function} state decorator
|
|
7
|
+
*/
|
|
8
|
+
export declare function SelectApplicationName(options?: StateOptions): PropertyDecorator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PlatformServiceName, } from '../../core';
|
|
2
|
+
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
+
/**
|
|
4
|
+
* Get the name of the application
|
|
5
|
+
*
|
|
6
|
+
* @param {StateOptions} [options] options for the state selector
|
|
7
|
+
* @returns {Function} state decorator
|
|
8
|
+
*/
|
|
9
|
+
export function SelectApplicationName(options = {}) {
|
|
10
|
+
const config = {
|
|
11
|
+
name: PlatformServiceName.Application,
|
|
12
|
+
};
|
|
13
|
+
options.map = [getApplicationName, ...(options.map || [])];
|
|
14
|
+
return createStateDecorator(options, config);
|
|
15
|
+
}
|
|
16
|
+
function getApplicationName(applicationData) {
|
|
17
|
+
return applicationData.applicationName;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StateOptions } from '../../core';
|
|
2
|
+
/**
|
|
3
|
+
* Get the application session
|
|
4
|
+
*
|
|
5
|
+
* @param {StateOptions} [options] state decorator options
|
|
6
|
+
* @returns {Function} state decorator
|
|
7
|
+
*/
|
|
8
|
+
export declare function SelectSession(options?: StateOptions): PropertyDecorator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PlatformServiceName, } from '../../core';
|
|
2
|
+
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
+
/**
|
|
4
|
+
* Get the application session
|
|
5
|
+
*
|
|
6
|
+
* @param {StateOptions} [options] state decorator options
|
|
7
|
+
* @returns {Function} state decorator
|
|
8
|
+
*/
|
|
9
|
+
export function SelectSession(options = {}) {
|
|
10
|
+
const config = {
|
|
11
|
+
name: PlatformServiceName.Application,
|
|
12
|
+
};
|
|
13
|
+
options.map = [getSession, ...(options.map || [])];
|
|
14
|
+
return createStateDecorator(options, config);
|
|
15
|
+
}
|
|
16
|
+
function getSession(applicationData) {
|
|
17
|
+
return applicationData.session;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StateOptions } from '../../core';
|
|
2
|
+
/**
|
|
3
|
+
* Get the currently logged in user
|
|
4
|
+
*
|
|
5
|
+
* @param {StateOptions} [options] state decorator options
|
|
6
|
+
* @returns {Function} state decorator
|
|
7
|
+
*/
|
|
8
|
+
export declare function SelectCurrentUser(options?: StateOptions): PropertyDecorator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PlatformServiceName, } from '../../core';
|
|
2
|
+
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
+
/**
|
|
4
|
+
* Get the currently logged in user
|
|
5
|
+
*
|
|
6
|
+
* @param {StateOptions} [options] state decorator options
|
|
7
|
+
* @returns {Function} state decorator
|
|
8
|
+
*/
|
|
9
|
+
export function SelectCurrentUser(options = {}) {
|
|
10
|
+
const config = {
|
|
11
|
+
name: PlatformServiceName.Application,
|
|
12
|
+
};
|
|
13
|
+
options.map = [getCurrentUser, ...(options.map || [])];
|
|
14
|
+
return createStateDecorator(options, config);
|
|
15
|
+
}
|
|
16
|
+
function getCurrentUser(applicationData) {
|
|
17
|
+
return applicationData.currentUser;
|
|
18
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface Session {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the session is active or not
|
|
4
|
+
*/
|
|
5
|
+
active: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Enabled addons
|
|
8
|
+
*/
|
|
9
|
+
addons: Record<string, any>;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the user is an admin or not
|
|
12
|
+
*/
|
|
13
|
+
admin: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Apm config
|
|
16
|
+
*/
|
|
17
|
+
apm: Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the application
|
|
20
|
+
*/
|
|
21
|
+
application: string;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the application database
|
|
24
|
+
*/
|
|
25
|
+
database: string;
|
|
26
|
+
/**
|
|
27
|
+
* Application's display name
|
|
28
|
+
*/
|
|
29
|
+
displayName: string;
|
|
30
|
+
expirationTime?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Feature switches
|
|
33
|
+
*/
|
|
34
|
+
features: Record<string, boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* Session ID
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Current language
|
|
41
|
+
*/
|
|
42
|
+
language: string;
|
|
43
|
+
/**
|
|
44
|
+
* Time of login
|
|
45
|
+
*/
|
|
46
|
+
loginTime: string;
|
|
47
|
+
/**
|
|
48
|
+
* Time of logout
|
|
49
|
+
*/
|
|
50
|
+
logoutTime?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Application service number
|
|
53
|
+
*/
|
|
54
|
+
serviceNumber?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Time before the session times out
|
|
57
|
+
*/
|
|
58
|
+
sessionTimeout: number;
|
|
59
|
+
/**
|
|
60
|
+
* ID of the user
|
|
61
|
+
*/
|
|
62
|
+
userId: number;
|
|
63
|
+
/**
|
|
64
|
+
* Name of the user's workstation
|
|
65
|
+
*/
|
|
66
|
+
workstation: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StateRepository } from '../core';
|
|
2
|
+
declare const SERVICE_NAME = "state.application";
|
|
3
|
+
declare module '../core/platform' {
|
|
4
|
+
interface PlatformServiceName {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link StateRepository}
|
|
7
|
+
*/
|
|
8
|
+
Application: typeof SERVICE_NAME;
|
|
9
|
+
}
|
|
10
|
+
interface LimeWebComponentPlatform {
|
|
11
|
+
get(name: PlatformServiceName['Application']): StateRepository;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the user
|
|
4
|
+
*/
|
|
5
|
+
username: string;
|
|
6
|
+
/**
|
|
7
|
+
* The full name of the user
|
|
8
|
+
*/
|
|
9
|
+
fullname: string;
|
|
10
|
+
/**
|
|
11
|
+
* The id of the user
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* The email of the user
|
|
16
|
+
*/
|
|
17
|
+
email: string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the user is active or not
|
|
20
|
+
*/
|
|
21
|
+
active: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The groups the user belongs to
|
|
24
|
+
*/
|
|
25
|
+
groups: UserGroup[];
|
|
26
|
+
/**
|
|
27
|
+
* The default group the user belongs to
|
|
28
|
+
*/
|
|
29
|
+
defaultGroup: UserGroup;
|
|
30
|
+
/**
|
|
31
|
+
* The coworker the user is connected to
|
|
32
|
+
*/
|
|
33
|
+
coworker: UserCoworker;
|
|
34
|
+
}
|
|
35
|
+
export interface UserGroup {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the group
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Id of the group
|
|
42
|
+
*/
|
|
43
|
+
id: number;
|
|
44
|
+
/**
|
|
45
|
+
* Group description
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
interface UserCoworker {
|
|
50
|
+
/**
|
|
51
|
+
* Id of the coworker `LimeObject`
|
|
52
|
+
*/
|
|
53
|
+
id: number;
|
|
54
|
+
/**
|
|
55
|
+
* Name of the `Limetype` used for coworkers
|
|
56
|
+
*/
|
|
57
|
+
limetype: string;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare type CommandClass = new (...args: any[]) => any;
|
|
2
|
+
export declare type CommandIdentifier = CommandClass | string;
|
|
3
|
+
/**
|
|
4
|
+
* Service for registering and executing commands
|
|
5
|
+
*/
|
|
6
|
+
export interface CommandBus extends CommandHandler {
|
|
7
|
+
/**
|
|
8
|
+
* Register a command to be executed by the given handler
|
|
9
|
+
*
|
|
10
|
+
* @param {CommandClass} commandClass type of command
|
|
11
|
+
* @param {CommandHandler} handler the handler instance used to execute the command
|
|
12
|
+
*/
|
|
13
|
+
register(commandClass: CommandClass, handler: CommandHandler): void;
|
|
14
|
+
/**
|
|
15
|
+
* Execute the given command with it's registered command handler
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} command command to execute
|
|
18
|
+
*
|
|
19
|
+
* @returns {any} result from the command handler
|
|
20
|
+
*/
|
|
21
|
+
handle(command: object): any;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a command is supported
|
|
24
|
+
*
|
|
25
|
+
* @param {CommandIdentifier} commandId identifier of the command. Can be either the class or the string the class was registered with
|
|
26
|
+
*
|
|
27
|
+
* @returns {boolean} true if the command is supported, false otherwise
|
|
28
|
+
*/
|
|
29
|
+
isSupported(commandId: CommandIdentifier): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Get a handler associated with a command
|
|
32
|
+
*
|
|
33
|
+
* @param {CommandClass} commandClass The command class
|
|
34
|
+
*
|
|
35
|
+
* @returns {CommandHandler} the handler for the command class
|
|
36
|
+
*/
|
|
37
|
+
getHandler(commandClass: CommandClass): CommandHandler;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Service for executing commands
|
|
41
|
+
*/
|
|
42
|
+
export interface CommandHandler {
|
|
43
|
+
/**
|
|
44
|
+
* Handle the execution of the given command
|
|
45
|
+
*
|
|
46
|
+
* @param {Object} command the command to handle
|
|
47
|
+
*
|
|
48
|
+
* @returns {any} the result of the operation
|
|
49
|
+
*/
|
|
50
|
+
handle(command: object): any;
|
|
51
|
+
}
|
|
52
|
+
export declare type CallableCommandMiddleware = (command: object) => any;
|
|
53
|
+
/**
|
|
54
|
+
* Middleware for the command bus
|
|
55
|
+
*/
|
|
56
|
+
export interface CommandMiddleware {
|
|
57
|
+
/**
|
|
58
|
+
* Execute the middleware before passing the command further down the chain
|
|
59
|
+
*
|
|
60
|
+
* @param {Object} command the command that is being handled
|
|
61
|
+
* @param {CallableCommandMiddleware} next the next middleware in the chain
|
|
62
|
+
*
|
|
63
|
+
* @returns {any} the result of the operation
|
|
64
|
+
*/
|
|
65
|
+
execute(command: object, next: CallableCommandMiddleware): any;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Events dispatched by the commandbus event middleware
|
|
69
|
+
*/
|
|
70
|
+
export declare enum CommandEventName {
|
|
71
|
+
/**
|
|
72
|
+
* Dispatched when the command has been received by the commandbus.
|
|
73
|
+
* Calling `preventDefault()` on the event will stop the command from being handled
|
|
74
|
+
*
|
|
75
|
+
* @detail { command }
|
|
76
|
+
*/
|
|
77
|
+
Received = "command.received",
|
|
78
|
+
/**
|
|
79
|
+
* Dispatched when the command has been handled by the commandbus
|
|
80
|
+
*
|
|
81
|
+
* @detail { command | result }
|
|
82
|
+
*/
|
|
83
|
+
Handled = "command.handled",
|
|
84
|
+
/**
|
|
85
|
+
* Dispatched if an error occurs while handling the command
|
|
86
|
+
*
|
|
87
|
+
* @detail { command | error }
|
|
88
|
+
*/
|
|
89
|
+
Failed = "command.failed"
|
|
90
|
+
}
|
|
91
|
+
export interface CommandOptions {
|
|
92
|
+
/**
|
|
93
|
+
* Id of the command
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Register a class as a command
|
|
99
|
+
*
|
|
100
|
+
* @param {CommandOptions} options a CommandOptions object containing the id of the command
|
|
101
|
+
*
|
|
102
|
+
* @returns {Function} callback which accepts a `CommandClass` and sets the command id
|
|
103
|
+
*/
|
|
104
|
+
export declare function Command(options: CommandOptions): (commandClass: CommandClass) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Get the registered id of the command
|
|
107
|
+
*
|
|
108
|
+
* @param {Object | CommandIdentifier} value either a command or a command identifier
|
|
109
|
+
*
|
|
110
|
+
* @returns {string} id of the command
|
|
111
|
+
*/
|
|
112
|
+
export declare function getCommandId(value: object | CommandIdentifier): string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Events dispatched by the commandbus event middleware
|
|
3
|
+
*/
|
|
4
|
+
// eslint-disable-next-line no-shadow
|
|
5
|
+
export var CommandEventName;
|
|
6
|
+
(function (CommandEventName) {
|
|
7
|
+
/**
|
|
8
|
+
* Dispatched when the command has been received by the commandbus.
|
|
9
|
+
* Calling `preventDefault()` on the event will stop the command from being handled
|
|
10
|
+
*
|
|
11
|
+
* @detail { command }
|
|
12
|
+
*/
|
|
13
|
+
CommandEventName["Received"] = "command.received";
|
|
14
|
+
/**
|
|
15
|
+
* Dispatched when the command has been handled by the commandbus
|
|
16
|
+
*
|
|
17
|
+
* @detail { command | result }
|
|
18
|
+
*/
|
|
19
|
+
CommandEventName["Handled"] = "command.handled";
|
|
20
|
+
/**
|
|
21
|
+
* Dispatched if an error occurs while handling the command
|
|
22
|
+
*
|
|
23
|
+
* @detail { command | error }
|
|
24
|
+
*/
|
|
25
|
+
CommandEventName["Failed"] = "command.failed";
|
|
26
|
+
})(CommandEventName || (CommandEventName = {}));
|
|
27
|
+
/**
|
|
28
|
+
* Register a class as a command
|
|
29
|
+
*
|
|
30
|
+
* @param {CommandOptions} options a CommandOptions object containing the id of the command
|
|
31
|
+
*
|
|
32
|
+
* @returns {Function} callback which accepts a `CommandClass` and sets the command id
|
|
33
|
+
*/
|
|
34
|
+
export function Command(options) {
|
|
35
|
+
return (commandClass) => {
|
|
36
|
+
setCommandId(commandClass, options.id);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function setCommandId(commandClass, id) {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
41
|
+
commandClass['commandId'] = id;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get the registered id of the command
|
|
45
|
+
*
|
|
46
|
+
* @param {Object | CommandIdentifier} value either a command or a command identifier
|
|
47
|
+
*
|
|
48
|
+
* @returns {string} id of the command
|
|
49
|
+
*/
|
|
50
|
+
export function getCommandId(value) {
|
|
51
|
+
if (typeof value === 'string') {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
/* eslint-disable @typescript-eslint/dot-notation */
|
|
55
|
+
if (value && value.constructor && value.constructor['commandId']) {
|
|
56
|
+
return value.constructor['commandId'];
|
|
57
|
+
}
|
|
58
|
+
if (value && value['commandId']) {
|
|
59
|
+
return value['commandId'];
|
|
60
|
+
}
|
|
61
|
+
/* eslint-enable @typescript-eslint/dot-notation */
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommandBus as Service } from './commandbus';
|
|
2
|
+
declare const SERVICE_NAME = "commandBus";
|
|
3
|
+
declare module '../core/platform' {
|
|
4
|
+
interface PlatformServiceName {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link Service CommandBus}
|
|
7
|
+
*/
|
|
8
|
+
CommandBus: typeof SERVICE_NAME;
|
|
9
|
+
}
|
|
10
|
+
interface LimeWebComponentPlatform {
|
|
11
|
+
get(name: PlatformServiceName['CommandBus']): Service;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StateOptions } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Config for the {@link SelectConfig} state decorator
|
|
4
|
+
*/
|
|
5
|
+
export interface SelectConfigOptions extends StateOptions {
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Gets an object with all configs where key is used as key.
|
|
10
|
+
*
|
|
11
|
+
* @param {SelectConfigOptions} options state decorator options
|
|
12
|
+
* @returns {Function} state decorator
|
|
13
|
+
*/
|
|
14
|
+
export declare function SelectConfig(options: SelectConfigOptions): PropertyDecorator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PlatformServiceName, } from '../core';
|
|
2
|
+
import { createStateDecorator } from '../core/decorators/factory';
|
|
3
|
+
/**
|
|
4
|
+
* Gets an object with all configs where key is used as key.
|
|
5
|
+
*
|
|
6
|
+
* @param {SelectConfigOptions} options state decorator options
|
|
7
|
+
* @returns {Function} state decorator
|
|
8
|
+
*/
|
|
9
|
+
export function SelectConfig(options) {
|
|
10
|
+
const config = {
|
|
11
|
+
name: PlatformServiceName.ConfigRepository,
|
|
12
|
+
};
|
|
13
|
+
return createStateDecorator(options, config);
|
|
14
|
+
}
|