@limetech/lime-web-components 5.46.0 → 6.0.0-beta.2
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 +46 -0
- package/dist/action/action.d.ts +4 -4
- package/dist/application/repository.d.ts +1 -1
- package/dist/application/session.d.ts +0 -5
- package/dist/application/session.d.ts.map +1 -1
- package/dist/commandbus/commandbus.d.ts +4 -4
- package/dist/conditionregistry/conditionregistry.d.ts +6 -6
- package/dist/config/repository.d.ts +1 -2
- package/dist/config/repository.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/metadata.d.ts +2 -2
- package/dist/core/platform.d.ts +2 -7
- package/dist/core/platform.d.ts.map +1 -1
- package/dist/datetimeformatter/datetimeformatter.d.ts +4 -4
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +956 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/limeobject/commands/bulk-create-dialog.d.ts +0 -14
- package/dist/limeobject/commands/bulk-create-dialog.d.ts.map +1 -1
- package/dist/limeobject/commands/create-dialog.d.ts +0 -2
- package/dist/limeobject/commands/create-dialog.d.ts.map +1 -1
- package/dist/limeobject/commands/delete-object.d.ts +0 -9
- package/dist/limeobject/commands/delete-object.d.ts.map +1 -1
- package/dist/limeobject/commands/object-access.d.ts +0 -9
- package/dist/limeobject/commands/object-access.d.ts.map +1 -1
- package/dist/limeobject/commands/save-object.d.ts +1 -1
- package/dist/limeobject/file.d.ts +4 -2
- package/dist/limeobject/file.d.ts.map +1 -1
- package/dist/limeobject/limeobject.d.ts +1 -2
- package/dist/limeobject/limeobject.d.ts.map +1 -1
- package/dist/limeobject/repository.d.ts +4 -6
- package/dist/limeobject/repository.d.ts.map +1 -1
- package/dist/limetype/fixture.d.ts +4 -0
- package/dist/limetype/fixture.d.ts.map +1 -0
- package/dist/limetype/repository.d.ts +1 -1
- package/dist/navigator/command.d.ts +1 -1
- package/dist/navigator/decorator.d.ts +2 -2
- package/dist/navigator/navigator.d.ts +7 -7
- package/dist/navigator/types.d.ts +0 -3
- package/dist/navigator/types.d.ts.map +1 -1
- package/dist/notification-service/notification.d.ts +2 -2
- package/dist/notification-service/repository.d.ts +4 -4
- package/dist/query/query.d.ts +59 -8
- package/dist/query/query.d.ts.map +1 -1
- package/dist/routeregistry/registry.d.ts +3 -3
- package/dist/routeregistry/types.d.ts +0 -3
- package/dist/routeregistry/types.d.ts.map +1 -1
- package/dist/userpreferences/repository.d.ts +1 -1
- package/dist/view/registry.d.ts +2 -2
- package/dist/view/types.d.ts +2 -2
- package/dist/webcomponent/registry.d.ts +2 -2
- package/package.json +15 -8
- package/dist/action/action.js +0 -1
- package/dist/action/index.js +0 -1
- package/dist/application/decorators/application.js +0 -20
- package/dist/application/decorators/index.js +0 -3
- package/dist/application/decorators/session.js +0 -20
- package/dist/application/decorators/user.js +0 -20
- package/dist/application/index.js +0 -5
- package/dist/application/repository.js +0 -1
- package/dist/application/session.js +0 -1
- package/dist/application/types.js +0 -3
- package/dist/application/user.js +0 -1
- package/dist/commandbus/commandbus.js +0 -95
- package/dist/commandbus/commandbus.spec.js +0 -55
- package/dist/commandbus/index.js +0 -2
- package/dist/commandbus/types.js +0 -3
- package/dist/conditionregistry/conditionregistry.js +0 -18
- package/dist/conditionregistry/index.js +0 -2
- package/dist/conditionregistry/types.js +0 -3
- package/dist/config/decorator.js +0 -16
- package/dist/config/index.js +0 -3
- package/dist/config/repository.js +0 -1
- package/dist/config/types.js +0 -3
- package/dist/core/context.js +0 -1
- package/dist/core/decorators/factory.js +0 -243
- package/dist/core/decorators/factory.spec.js +0 -327
- package/dist/core/decorators/index.js +0 -1
- package/dist/core/idle.js +0 -7
- package/dist/core/index.js +0 -8
- package/dist/core/lime-web-component.js +0 -1
- package/dist/core/metadata.js +0 -1
- package/dist/core/platform.js +0 -8
- package/dist/core/plugin-loader.js +0 -1
- package/dist/core/state.js +0 -1
- package/dist/datetimeformatter/datetimeformatter.js +0 -1
- package/dist/datetimeformatter/index.js +0 -2
- package/dist/datetimeformatter/types.js +0 -3
- package/dist/device/decorator.js +0 -18
- package/dist/device/device.js +0 -1
- package/dist/device/index.js +0 -3
- package/dist/device/types.js +0 -3
- package/dist/dialog/dialog.js +0 -1
- package/dist/dialog/index.js +0 -2
- package/dist/dialog/types.js +0 -3
- package/dist/es5/action/action.js +0 -2
- package/dist/es5/action/index.js +0 -4
- package/dist/es5/application/decorators/application.js +0 -18
- package/dist/es5/application/decorators/index.js +0 -6
- package/dist/es5/application/decorators/session.js +0 -18
- package/dist/es5/application/decorators/user.js +0 -18
- package/dist/es5/application/index.js +0 -8
- package/dist/es5/application/repository.js +0 -2
- package/dist/es5/application/session.js +0 -2
- package/dist/es5/application/types.js +0 -5
- package/dist/es5/application/user.js +0 -2
- package/dist/es5/commandbus/commandbus.js +0 -51
- package/dist/es5/commandbus/commandbus.spec.js +0 -67
- package/dist/es5/commandbus/index.js +0 -5
- package/dist/es5/commandbus/types.js +0 -5
- package/dist/es5/conditionregistry/conditionregistry.js +0 -11
- package/dist/es5/conditionregistry/index.js +0 -5
- package/dist/es5/conditionregistry/types.js +0 -5
- package/dist/es5/config/decorator.js +0 -12
- package/dist/es5/config/index.js +0 -6
- package/dist/es5/config/repository.js +0 -2
- package/dist/es5/config/types.js +0 -5
- package/dist/es5/core/context.js +0 -2
- package/dist/es5/core/decorators/factory.js +0 -202
- package/dist/es5/core/decorators/factory.spec.js +0 -479
- package/dist/es5/core/decorators/index.js +0 -2
- package/dist/es5/core/idle.js +0 -4
- package/dist/es5/core/index.js +0 -11
- package/dist/es5/core/lime-web-component.js +0 -2
- package/dist/es5/core/metadata.js +0 -2
- package/dist/es5/core/platform.js +0 -6
- package/dist/es5/core/plugin-loader.js +0 -2
- package/dist/es5/core/state.js +0 -2
- package/dist/es5/datetimeformatter/datetimeformatter.js +0 -2
- package/dist/es5/datetimeformatter/index.js +0 -5
- package/dist/es5/datetimeformatter/types.js +0 -5
- package/dist/es5/device/decorator.js +0 -13
- package/dist/es5/device/device.js +0 -2
- package/dist/es5/device/index.js +0 -6
- package/dist/es5/device/types.js +0 -5
- package/dist/es5/dialog/dialog.js +0 -2
- package/dist/es5/dialog/index.js +0 -5
- package/dist/es5/dialog/types.js +0 -5
- package/dist/es5/eventdispatcher/eventdispatcher.js +0 -2
- package/dist/es5/eventdispatcher/index.js +0 -5
- package/dist/es5/eventdispatcher/types.js +0 -5
- package/dist/es5/filter/decorator.js +0 -13
- package/dist/es5/filter/index.js +0 -6
- package/dist/es5/filter/repository.js +0 -2
- package/dist/es5/filter/types.js +0 -5
- package/dist/es5/http/http.js +0 -10
- package/dist/es5/http/index.js +0 -5
- package/dist/es5/http/types.js +0 -5
- package/dist/es5/index.js +0 -30
- package/dist/es5/keybindings/index.js +0 -5
- package/dist/es5/keybindings/registry.js +0 -2
- package/dist/es5/keybindings/types.js +0 -5
- package/dist/es5/limeobject/commands/bulk-create-dialog.js +0 -17
- package/dist/es5/limeobject/commands/create-dialog.js +0 -17
- package/dist/es5/limeobject/commands/delete-object.js +0 -16
- package/dist/es5/limeobject/commands/index.js +0 -8
- package/dist/es5/limeobject/commands/object-access.js +0 -16
- package/dist/es5/limeobject/commands/save-object.js +0 -17
- package/dist/es5/limeobject/decorator.js +0 -38
- package/dist/es5/limeobject/error.js +0 -2
- package/dist/es5/limeobject/file.js +0 -2
- package/dist/es5/limeobject/index.js +0 -10
- package/dist/es5/limeobject/limeobject.js +0 -2
- package/dist/es5/limeobject/repository.js +0 -2
- package/dist/es5/limeobject/types.js +0 -5
- package/dist/es5/limetype/acl.js +0 -2
- package/dist/es5/limetype/decorator.js +0 -28
- package/dist/es5/limetype/find-limetype-by-label.js +0 -8
- package/dist/es5/limetype/find-limetype-by-label.spec.js +0 -47
- package/dist/es5/limetype/get-properties-by-type.js +0 -7
- package/dist/es5/limetype/get-properties-by-type.spec.js +0 -36
- package/dist/es5/limetype/get-property-by-label.js +0 -8
- package/dist/es5/limetype/get-property-by-label.spec.js +0 -33
- package/dist/es5/limetype/get-property-by-name.js +0 -7
- package/dist/es5/limetype/get-property-by-name.spec.js +0 -31
- package/dist/es5/limetype/has-label.js +0 -7
- package/dist/es5/limetype/has-label.spec.js +0 -30
- package/dist/es5/limetype/index.js +0 -14
- package/dist/es5/limetype/limetype.js +0 -2
- package/dist/es5/limetype/property.js +0 -40
- package/dist/es5/limetype/repository.js +0 -2
- package/dist/es5/limetype/types.js +0 -5
- package/dist/es5/navigator/command.js +0 -16
- package/dist/es5/navigator/decorator.js +0 -13
- package/dist/es5/navigator/index.js +0 -7
- package/dist/es5/navigator/navigator.js +0 -2
- package/dist/es5/navigator/types.js +0 -5
- package/dist/es5/notification-service/index.js +0 -6
- package/dist/es5/notification-service/notification.js +0 -2
- package/dist/es5/notification-service/repository.js +0 -2
- package/dist/es5/notification-service/types.js +0 -5
- package/dist/es5/notifications/index.js +0 -5
- package/dist/es5/notifications/notifications.js +0 -2
- package/dist/es5/notifications/types.js +0 -5
- package/dist/es5/poller/factory.js +0 -2
- package/dist/es5/poller/index.js +0 -6
- package/dist/es5/poller/poller.js +0 -2
- package/dist/es5/poller/types.js +0 -5
- package/dist/es5/query/index.js +0 -6
- package/dist/es5/query/query.js +0 -26
- package/dist/es5/query/service.js +0 -2
- package/dist/es5/query/types.js +0 -5
- package/dist/es5/routeregistry/index.js +0 -5
- package/dist/es5/routeregistry/registry.js +0 -2
- package/dist/es5/routeregistry/types.js +0 -5
- package/dist/es5/task/index.js +0 -5
- package/dist/es5/task/repository.js +0 -17
- package/dist/es5/task/types.js +0 -5
- package/dist/es5/testing/component-testing.js +0 -109
- package/dist/es5/testing/component-testing.spec.js +0 -88
- package/dist/es5/testing/index.js +0 -11
- package/dist/es5/testing/limeobjects/company.js +0 -660
- package/dist/es5/testing/limeobjects/coworker.js +0 -110
- package/dist/es5/testing/limeobjects/deal.js +0 -447
- package/dist/es5/testing/limeobjects/document.js +0 -82
- package/dist/es5/testing/limeobjects/index.js +0 -56
- package/dist/es5/testing/limeobjects/person.js +0 -1162
- package/dist/es5/testing/limeobjects/todo.js +0 -106
- package/dist/es5/testing/limetypes/campaign.js +0 -486
- package/dist/es5/testing/limetypes/company.js +0 -621
- package/dist/es5/testing/limetypes/consent.js +0 -237
- package/dist/es5/testing/limetypes/consenttype.js +0 -194
- package/dist/es5/testing/limetypes/coworker.js +0 -579
- package/dist/es5/testing/limetypes/deal.js +0 -422
- package/dist/es5/testing/limetypes/document.js +0 -343
- package/dist/es5/testing/limetypes/helpdesk.js +0 -426
- package/dist/es5/testing/limetypes/helpdesktype.js +0 -142
- package/dist/es5/testing/limetypes/history.js +0 -349
- package/dist/es5/testing/limetypes/index.js +0 -69
- package/dist/es5/testing/limetypes/infotiles.js +0 -514
- package/dist/es5/testing/limetypes/localize.js +0 -287
- package/dist/es5/testing/limetypes/mailing.js +0 -218
- package/dist/es5/testing/limetypes/office.js +0 -388
- package/dist/es5/testing/limetypes/participant.js +0 -195
- package/dist/es5/testing/limetypes/person.js +0 -535
- package/dist/es5/testing/limetypes/recipient.js +0 -175
- package/dist/es5/testing/limetypes/solutionimprovement.js +0 -353
- package/dist/es5/testing/limetypes/successplan.js +0 -215
- package/dist/es5/testing/limetypes/target.js +0 -181
- package/dist/es5/testing/limetypes/todo.js +0 -429
- package/dist/es5/testing/platform/index.js +0 -53
- package/dist/es5/testing/platform/platform.spec.js +0 -44
- package/dist/es5/testing/services/datetimeformatter.js +0 -12
- package/dist/es5/testing/services/index.js +0 -5
- package/dist/es5/testing/services/translator.js +0 -9
- package/dist/es5/translator/index.js +0 -5
- package/dist/es5/translator/translator.js +0 -2
- package/dist/es5/translator/types.js +0 -5
- package/dist/es5/userdata/decorator.js +0 -13
- package/dist/es5/userdata/index.js +0 -6
- package/dist/es5/userdata/repository.js +0 -2
- package/dist/es5/userdata/types.js +0 -5
- package/dist/es5/userpreferences/index.js +0 -5
- package/dist/es5/userpreferences/repository.js +0 -2
- package/dist/es5/userpreferences/types.js +0 -5
- package/dist/es5/view/index.js +0 -6
- package/dist/es5/view/layout.js +0 -2
- package/dist/es5/view/registry.js +0 -2
- package/dist/es5/view/types.js +0 -5
- package/dist/es5/webcomponent/index.js +0 -5
- package/dist/es5/webcomponent/registry.js +0 -2
- package/dist/es5/webcomponent/types.js +0 -5
- package/dist/eventdispatcher/eventdispatcher.js +0 -1
- package/dist/eventdispatcher/index.js +0 -2
- package/dist/eventdispatcher/types.js +0 -3
- package/dist/filter/decorator.js +0 -16
- package/dist/filter/index.js +0 -3
- package/dist/filter/repository.js +0 -1
- package/dist/filter/types.js +0 -3
- package/dist/http/http.js +0 -13
- package/dist/http/index.js +0 -2
- package/dist/http/types.js +0 -3
- package/dist/index.js +0 -49
- package/dist/keybindings/index.js +0 -2
- package/dist/keybindings/registry.js +0 -1
- package/dist/keybindings/types.js +0 -3
- package/dist/limeobject/commands/bulk-create-dialog.js +0 -53
- package/dist/limeobject/commands/create-dialog.js +0 -28
- package/dist/limeobject/commands/delete-object.js +0 -17
- package/dist/limeobject/commands/index.js +0 -5
- package/dist/limeobject/commands/object-access.js +0 -17
- package/dist/limeobject/commands/save-object.js +0 -23
- package/dist/limeobject/decorator.js +0 -46
- package/dist/limeobject/error.js +0 -1
- package/dist/limeobject/file.js +0 -1
- package/dist/limeobject/index.js +0 -7
- package/dist/limeobject/limeobject.js +0 -1
- package/dist/limeobject/repository.js +0 -1
- package/dist/limeobject/types.js +0 -3
- package/dist/limetype/acl.js +0 -1
- package/dist/limetype/decorator.js +0 -36
- package/dist/limetype/find-limetype-by-label.js +0 -43
- package/dist/limetype/find-limetype-by-label.spec.js +0 -44
- package/dist/limetype/get-properties-by-type.js +0 -16
- package/dist/limetype/get-properties-by-type.spec.js +0 -31
- package/dist/limetype/get-property-by-label.js +0 -17
- package/dist/limetype/get-property-by-label.spec.js +0 -26
- package/dist/limetype/get-property-by-name.js +0 -17
- package/dist/limetype/get-property-by-name.spec.js +0 -26
- package/dist/limetype/has-label.js +0 -29
- package/dist/limetype/has-label.spec.js +0 -31
- package/dist/limetype/index.js +0 -11
- package/dist/limetype/limetype.js +0 -1
- package/dist/limetype/property.js +0 -52
- package/dist/limetype/repository.js +0 -1
- package/dist/limetype/types.js +0 -3
- package/dist/navigator/command.js +0 -17
- package/dist/navigator/decorator.js +0 -16
- package/dist/navigator/index.js +0 -4
- package/dist/navigator/navigator.js +0 -1
- package/dist/navigator/types.js +0 -3
- package/dist/notification-service/index.js +0 -3
- package/dist/notification-service/notification.js +0 -1
- package/dist/notification-service/repository.js +0 -1
- package/dist/notification-service/types.js +0 -3
- package/dist/notifications/index.js +0 -2
- package/dist/notifications/notifications.js +0 -1
- package/dist/notifications/types.js +0 -3
- package/dist/poller/factory.js +0 -1
- package/dist/poller/index.js +0 -3
- package/dist/poller/poller.js +0 -1
- package/dist/poller/types.js +0 -3
- package/dist/query/index.js +0 -3
- package/dist/query/query.js +0 -31
- package/dist/query/service.js +0 -1
- package/dist/query/types.js +0 -3
- package/dist/routeregistry/index.js +0 -2
- package/dist/routeregistry/registry.js +0 -1
- package/dist/routeregistry/types.js +0 -3
- package/dist/task/index.js +0 -2
- package/dist/task/repository.js +0 -53
- package/dist/task/types.js +0 -3
- package/dist/testing/component-testing.d.ts +0 -74
- package/dist/testing/component-testing.d.ts.map +0 -1
- package/dist/testing/component-testing.js +0 -177
- package/dist/testing/component-testing.spec.d.ts +0 -11
- package/dist/testing/component-testing.spec.d.ts.map +0 -1
- package/dist/testing/component-testing.spec.js +0 -71
- package/dist/testing/index.d.ts +0 -6
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -5
- package/dist/testing/limeobjects/company.d.ts +0 -56
- package/dist/testing/limeobjects/company.d.ts.map +0 -1
- package/dist/testing/limeobjects/company.js +0 -656
- package/dist/testing/limeobjects/coworker.d.ts +0 -23
- package/dist/testing/limeobjects/coworker.d.ts.map +0 -1
- package/dist/testing/limeobjects/coworker.js +0 -106
- package/dist/testing/limeobjects/deal.d.ts +0 -42
- package/dist/testing/limeobjects/deal.d.ts.map +0 -1
- package/dist/testing/limeobjects/deal.js +0 -443
- package/dist/testing/limeobjects/document.d.ts +0 -21
- package/dist/testing/limeobjects/document.d.ts.map +0 -1
- package/dist/testing/limeobjects/document.js +0 -78
- package/dist/testing/limeobjects/index.d.ts +0 -207
- package/dist/testing/limeobjects/index.d.ts.map +0 -1
- package/dist/testing/limeobjects/index.js +0 -55
- package/dist/testing/limeobjects/person.d.ts +0 -21
- package/dist/testing/limeobjects/person.d.ts.map +0 -1
- package/dist/testing/limeobjects/person.js +0 -1158
- package/dist/testing/limeobjects/todo.d.ts +0 -27
- package/dist/testing/limeobjects/todo.d.ts.map +0 -1
- package/dist/testing/limeobjects/todo.js +0 -102
- package/dist/testing/limetypes/campaign.d.ts +0 -418
- package/dist/testing/limetypes/campaign.d.ts.map +0 -1
- package/dist/testing/limetypes/campaign.js +0 -477
- package/dist/testing/limetypes/company.d.ts +0 -592
- package/dist/testing/limetypes/company.d.ts.map +0 -1
- package/dist/testing/limetypes/company.js +0 -614
- package/dist/testing/limetypes/consent.d.ts +0 -200
- package/dist/testing/limetypes/consent.d.ts.map +0 -1
- package/dist/testing/limetypes/consent.js +0 -232
- package/dist/testing/limetypes/consenttype.d.ts +0 -189
- package/dist/testing/limetypes/consenttype.d.ts.map +0 -1
- package/dist/testing/limetypes/consenttype.js +0 -189
- package/dist/testing/limetypes/coworker.d.ts +0 -564
- package/dist/testing/limetypes/coworker.d.ts.map +0 -1
- package/dist/testing/limetypes/coworker.js +0 -564
- package/dist/testing/limetypes/deal.d.ts +0 -392
- package/dist/testing/limetypes/deal.d.ts.map +0 -1
- package/dist/testing/limetypes/deal.js +0 -419
- package/dist/testing/limetypes/document.d.ts +0 -310
- package/dist/testing/limetypes/document.d.ts.map +0 -1
- package/dist/testing/limetypes/document.js +0 -332
- package/dist/testing/limetypes/helpdesk.d.ts +0 -395
- package/dist/testing/limetypes/helpdesk.d.ts.map +0 -1
- package/dist/testing/limetypes/helpdesk.js +0 -417
- package/dist/testing/limetypes/helpdesktype.d.ts +0 -137
- package/dist/testing/limetypes/helpdesktype.d.ts.map +0 -1
- package/dist/testing/limetypes/helpdesktype.js +0 -137
- package/dist/testing/limetypes/history.d.ts +0 -309
- package/dist/testing/limetypes/history.d.ts.map +0 -1
- package/dist/testing/limetypes/history.js +0 -346
- package/dist/testing/limetypes/index.d.ts +0 -10
- package/dist/testing/limetypes/index.d.ts.map +0 -1
- package/dist/testing/limetypes/index.js +0 -67
- package/dist/testing/limetypes/infotiles.d.ts +0 -388
- package/dist/testing/limetypes/infotiles.d.ts.map +0 -1
- package/dist/testing/limetypes/infotiles.js +0 -509
- package/dist/testing/limetypes/localize.d.ts +0 -284
- package/dist/testing/limetypes/localize.d.ts.map +0 -1
- package/dist/testing/limetypes/localize.js +0 -284
- package/dist/testing/limetypes/mailing.d.ts +0 -213
- package/dist/testing/limetypes/mailing.d.ts.map +0 -1
- package/dist/testing/limetypes/mailing.js +0 -213
- package/dist/testing/limetypes/office.d.ts +0 -385
- package/dist/testing/limetypes/office.d.ts.map +0 -1
- package/dist/testing/limetypes/office.js +0 -385
- package/dist/testing/limetypes/participant.d.ts +0 -166
- package/dist/testing/limetypes/participant.d.ts.map +0 -1
- package/dist/testing/limetypes/participant.js +0 -188
- package/dist/testing/limetypes/person.d.ts +0 -473
- package/dist/testing/limetypes/person.d.ts.map +0 -1
- package/dist/testing/limetypes/person.js +0 -530
- package/dist/testing/limetypes/recipient.d.ts +0 -148
- package/dist/testing/limetypes/recipient.d.ts.map +0 -1
- package/dist/testing/limetypes/recipient.js +0 -170
- package/dist/testing/limetypes/solutionimprovement.d.ts +0 -303
- package/dist/testing/limetypes/solutionimprovement.d.ts.map +0 -1
- package/dist/testing/limetypes/solutionimprovement.js +0 -344
- package/dist/testing/limetypes/successplan.d.ts +0 -210
- package/dist/testing/limetypes/successplan.d.ts.map +0 -1
- package/dist/testing/limetypes/successplan.js +0 -210
- package/dist/testing/limetypes/target.d.ts +0 -161
- package/dist/testing/limetypes/target.d.ts.map +0 -1
- package/dist/testing/limetypes/target.js +0 -178
- package/dist/testing/limetypes/todo.d.ts +0 -387
- package/dist/testing/limetypes/todo.d.ts.map +0 -1
- package/dist/testing/limetypes/todo.js +0 -426
- package/dist/testing/platform/index.d.ts +0 -10
- package/dist/testing/platform/index.d.ts.map +0 -1
- package/dist/testing/platform/index.js +0 -62
- package/dist/testing/platform/platform.spec.d.ts +0 -2
- package/dist/testing/platform/platform.spec.d.ts.map +0 -1
- package/dist/testing/platform/platform.spec.js +0 -41
- package/dist/testing/services/datetimeformatter.d.ts +0 -7
- package/dist/testing/services/datetimeformatter.d.ts.map +0 -1
- package/dist/testing/services/datetimeformatter.js +0 -10
- package/dist/testing/services/index.d.ts +0 -3
- package/dist/testing/services/index.d.ts.map +0 -1
- package/dist/testing/services/index.js +0 -2
- package/dist/testing/services/translator.d.ts +0 -7
- package/dist/testing/services/translator.d.ts.map +0 -1
- package/dist/testing/services/translator.js +0 -9
- package/dist/translator/index.js +0 -2
- package/dist/translator/translator.js +0 -1
- package/dist/translator/types.js +0 -3
- package/dist/userdata/decorator.js +0 -16
- package/dist/userdata/index.js +0 -3
- package/dist/userdata/repository.js +0 -1
- package/dist/userdata/types.js +0 -3
- package/dist/userpreferences/index.js +0 -2
- package/dist/userpreferences/repository.js +0 -1
- package/dist/userpreferences/types.js +0 -3
- package/dist/view/index.js +0 -3
- package/dist/view/layout.js +0 -1
- package/dist/view/registry.js +0 -1
- package/dist/view/types.js +0 -3
- package/dist/webcomponent/index.js +0 -2
- package/dist/webcomponent/registry.js +0 -1
- package/dist/webcomponent/types.js +0 -3
- package/testing/package.json +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContextAwareStateOptions } from '../core';
|
|
2
2
|
/**
|
|
3
3
|
* Config for the {@link SelectQueryParam} decorator
|
|
4
|
-
* @
|
|
4
|
+
* @public
|
|
5
5
|
* @group Navigation
|
|
6
6
|
*/
|
|
7
7
|
export interface SelectQueryParamOptions extends ContextAwareStateOptions {
|
|
@@ -15,7 +15,7 @@ export interface SelectQueryParamOptions extends ContextAwareStateOptions {
|
|
|
15
15
|
*
|
|
16
16
|
* @param options - state decorator options
|
|
17
17
|
* @returns state decorator
|
|
18
|
-
* @
|
|
18
|
+
* @public
|
|
19
19
|
* @group Navigation
|
|
20
20
|
*/
|
|
21
21
|
export declare function SelectQueryParam(options: SelectQueryParamOptions): PropertyDecorator;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* @
|
|
23
|
+
* @public
|
|
24
24
|
* @group Navigation
|
|
25
25
|
*/
|
|
26
26
|
export interface Navigator {
|
|
@@ -108,7 +108,7 @@ export interface Navigator {
|
|
|
108
108
|
createUrl(location: Partial<Location>): URL;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
* @
|
|
111
|
+
* @public
|
|
112
112
|
* @group Navigation
|
|
113
113
|
*/
|
|
114
114
|
export type Location = {
|
|
@@ -130,7 +130,7 @@ export type Location = {
|
|
|
130
130
|
state: unknown;
|
|
131
131
|
};
|
|
132
132
|
/**
|
|
133
|
-
* @
|
|
133
|
+
* @public
|
|
134
134
|
* @group Navigation
|
|
135
135
|
*/
|
|
136
136
|
export type LocationChange = Partial<Location> & {
|
|
@@ -143,13 +143,13 @@ export type LocationChange = Partial<Location> & {
|
|
|
143
143
|
/**
|
|
144
144
|
* @event navigate - Emitted when a new location is navigated to or the current
|
|
145
145
|
* location is updated
|
|
146
|
-
* @
|
|
146
|
+
* @public
|
|
147
147
|
* @group Navigation
|
|
148
148
|
*/
|
|
149
149
|
export type NavigationEvent = CustomEvent<Location>;
|
|
150
150
|
/**
|
|
151
151
|
* Function to retry navigation
|
|
152
|
-
* @
|
|
152
|
+
* @public
|
|
153
153
|
* @group Navigation
|
|
154
154
|
*/
|
|
155
155
|
export type Retry = () => void;
|
|
@@ -157,7 +157,7 @@ export type Retry = () => void;
|
|
|
157
157
|
* {@link Transition} describes the transition when navigating from a
|
|
158
158
|
* {@link Location} to another {@link Location}.
|
|
159
159
|
*
|
|
160
|
-
* @
|
|
160
|
+
* @public
|
|
161
161
|
* @group Navigation
|
|
162
162
|
*/
|
|
163
163
|
export type Transition = {
|
|
@@ -179,7 +179,7 @@ export type Transition = {
|
|
|
179
179
|
*
|
|
180
180
|
* @param transition - the transition to evaluate
|
|
181
181
|
* @returns true if navigation should be blocked
|
|
182
|
-
* @
|
|
182
|
+
* @public
|
|
183
183
|
* @group Navigation
|
|
184
184
|
*/
|
|
185
185
|
export type Blocker = (transition: Transition) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/navigator/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAGnD,QAAA,MAAM,YAAY,cAAc,CAAC;AAIjC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/navigator/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAGnD,QAAA,MAAM,YAAY,cAAc,CAAC;AAIjC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,SAAS,EAAE,OAAO,YAAY,CAAC;KAClC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;KAC5D;CACJ"}
|
|
@@ -2,7 +2,7 @@ import { LimeObject } from '../limeobject';
|
|
|
2
2
|
/**
|
|
3
3
|
* A Notification object
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
5
|
+
* @beta
|
|
6
6
|
* @group NotificationRepository
|
|
7
7
|
*/
|
|
8
8
|
export type Notification<T = unknown> = {
|
|
@@ -36,7 +36,7 @@ export type Notification<T = unknown> = {
|
|
|
36
36
|
createdBy?: LimeObject;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* @
|
|
39
|
+
* @beta
|
|
40
40
|
*/
|
|
41
41
|
export type NotificationType = 'assignment' | 'follow' | 'mention';
|
|
42
42
|
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { Notification } from './notification';
|
|
|
2
2
|
/**
|
|
3
3
|
* Service for handling notifications
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
5
|
+
* @beta
|
|
6
6
|
* @group NotificationRepository
|
|
7
7
|
*/
|
|
8
8
|
export interface NotificationRepository {
|
|
@@ -39,7 +39,7 @@ export interface NotificationRepository {
|
|
|
39
39
|
/**
|
|
40
40
|
* The count response of loaded notifications
|
|
41
41
|
*
|
|
42
|
-
* @
|
|
42
|
+
* @beta
|
|
43
43
|
* @group NotificationRepository
|
|
44
44
|
*/
|
|
45
45
|
export type NotificationCount = {
|
|
@@ -49,7 +49,7 @@ export type NotificationCount = {
|
|
|
49
49
|
/**
|
|
50
50
|
* The response of loaded notifications
|
|
51
51
|
*
|
|
52
|
-
* @
|
|
52
|
+
* @beta
|
|
53
53
|
* @group NotificationRepository
|
|
54
54
|
*/
|
|
55
55
|
export type NotificationResponse = {
|
|
@@ -59,7 +59,7 @@ export type NotificationResponse = {
|
|
|
59
59
|
/**
|
|
60
60
|
* The options to load notifications with
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
62
|
+
* @beta
|
|
63
63
|
* @group NotificationRepository
|
|
64
64
|
*/
|
|
65
65
|
export interface NotificationLoadOptions {
|
package/dist/query/query.d.ts
CHANGED
|
@@ -25,12 +25,61 @@ export interface QueryResponse {
|
|
|
25
25
|
* @public
|
|
26
26
|
* @group Query
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
export type Expression = AndOrExpression | NotExpression | InFilterExpression | InExpression | BasicExpression;
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
* @group Query
|
|
32
|
+
*/
|
|
33
|
+
export type AndOrExpression = {
|
|
34
|
+
op: Operator.AND | Operator.OR;
|
|
35
|
+
exp: Expression[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @group Query
|
|
40
|
+
*/
|
|
41
|
+
export type NotExpression = {
|
|
42
|
+
op: Operator.NOT;
|
|
43
|
+
exp: Expression;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @group Query
|
|
48
|
+
*/
|
|
49
|
+
export type InFilterExpression = {
|
|
50
|
+
type: 'filter';
|
|
51
|
+
key: string;
|
|
52
|
+
op: Operator.IN;
|
|
53
|
+
exp: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @group Query
|
|
58
|
+
*/
|
|
59
|
+
export type InExpression = {
|
|
60
|
+
key: string;
|
|
61
|
+
op: Operator.IN;
|
|
62
|
+
exp: ExpressionValue[];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* @group Query
|
|
67
|
+
*/
|
|
68
|
+
export type BasicExpression = {
|
|
69
|
+
key: string;
|
|
70
|
+
op: BasicOperator;
|
|
71
|
+
exp: ExpressionValue;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
* @group Query
|
|
76
|
+
*/
|
|
77
|
+
export type BasicOperator = Operator.EQUALS | Operator.NOT_EQUALS | Operator.GREATER | Operator.LESS | Operator.BEGINS | Operator.LIKE | Operator.LESS_OR_EQUAL | Operator.GREATER_OR_EQUAL | Operator.ENDS;
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
* @group Query
|
|
81
|
+
*/
|
|
82
|
+
export type ExpressionValue = string | number | boolean | null;
|
|
34
83
|
/**
|
|
35
84
|
* @public
|
|
36
85
|
* @group Query
|
|
@@ -68,7 +117,8 @@ export interface Filter {
|
|
|
68
117
|
}
|
|
69
118
|
/**
|
|
70
119
|
*
|
|
71
|
-
* @
|
|
120
|
+
* @public
|
|
121
|
+
* @group Query
|
|
72
122
|
*/
|
|
73
123
|
export declare const AggregateOperator: {
|
|
74
124
|
readonly Count: "COUNT";
|
|
@@ -79,7 +129,8 @@ export declare const AggregateOperator: {
|
|
|
79
129
|
};
|
|
80
130
|
/**
|
|
81
131
|
*
|
|
82
|
-
* @
|
|
132
|
+
* @public
|
|
133
|
+
* @group Query
|
|
83
134
|
*/
|
|
84
135
|
export type AggregateOperator = (typeof AggregateOperator)[keyof typeof AggregateOperator];
|
|
85
136
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,KAAK;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,EAAE;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,UAAU,EAAE,GAAG,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":"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"}
|
|
@@ -45,7 +45,7 @@ import { LimeWebComponent } from '../core';
|
|
|
45
45
|
* routeRegistry.registerRoute('/foo/:limetype/:id', 'foo-component');
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
* @group Registering routes
|
|
50
50
|
*/
|
|
51
51
|
export interface RouteRegistry {
|
|
@@ -68,7 +68,7 @@ export interface RouteRegistry {
|
|
|
68
68
|
findComponent(path: string): MatchedComponent | undefined;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* @
|
|
71
|
+
* @public
|
|
72
72
|
* @group Registering routes
|
|
73
73
|
*/
|
|
74
74
|
export type MatchedComponent = {
|
|
@@ -85,7 +85,7 @@ export type MatchedComponent = {
|
|
|
85
85
|
* Interface for components that are routed to and are registered with the
|
|
86
86
|
* {@link RouteRegistry} service.
|
|
87
87
|
*
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
* @group Registering routes
|
|
90
90
|
*/
|
|
91
91
|
export interface RouteComponent extends LimeWebComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routeregistry/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAGtD,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routeregistry/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAGtD,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,aAAa,EAAE,OAAO,YAAY,CAAC;KACtC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC;KAChE;CACJ"}
|
package/dist/view/registry.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { LimeObject } from '../limeobject';
|
|
|
30
30
|
* const listItem = createListItem(limeobject, context);
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @beta
|
|
34
34
|
* @group Views
|
|
35
35
|
*/
|
|
36
36
|
export interface ViewFactoryRegistry {
|
|
@@ -57,7 +57,7 @@ export interface ViewFactoryRegistry {
|
|
|
57
57
|
* @param view - the view as it was created by the previous factory, or
|
|
58
58
|
* `undefined` if this is the first factory in the chain
|
|
59
59
|
*
|
|
60
|
-
* @
|
|
60
|
+
* @beta
|
|
61
61
|
* @group Views
|
|
62
62
|
*/
|
|
63
63
|
export type ViewFactory<T = unknown> = (limeobject: LimeObject, context: LimeWebComponentContext, view?: T) => T | undefined;
|
package/dist/view/types.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ declare const SERVICE_NAME = "viewFactoryRegistry";
|
|
|
3
3
|
declare module '../core/platform' {
|
|
4
4
|
interface PlatformServiceNameType {
|
|
5
5
|
/**
|
|
6
|
-
* @
|
|
6
|
+
* @beta
|
|
7
7
|
* @see {@link ViewFactoryRegistry}
|
|
8
8
|
*/
|
|
9
9
|
ViewFactoryRegistry: typeof SERVICE_NAME;
|
|
10
10
|
}
|
|
11
11
|
interface LimeWebComponentPlatform {
|
|
12
12
|
/**
|
|
13
|
-
* @
|
|
13
|
+
* @beta
|
|
14
14
|
*/
|
|
15
15
|
get(name: PlatformServiceNameType['ViewFactoryRegistry']): ViewFactoryRegistry;
|
|
16
16
|
}
|
|
@@ -7,7 +7,7 @@ import { ConfigMetadata } from '../core';
|
|
|
7
7
|
* description, icon etc.
|
|
8
8
|
*
|
|
9
9
|
* @group Web components
|
|
10
|
-
* @
|
|
10
|
+
* @beta
|
|
11
11
|
*/
|
|
12
12
|
export interface WebComponentRegistry {
|
|
13
13
|
/**
|
|
@@ -28,7 +28,7 @@ export interface WebComponentRegistry {
|
|
|
28
28
|
* Metadata for a web component
|
|
29
29
|
*
|
|
30
30
|
* @group Web components
|
|
31
|
-
* @
|
|
31
|
+
* @beta
|
|
32
32
|
*/
|
|
33
33
|
export type WebComponentMetadata = ConfigMetadata & {
|
|
34
34
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
-
"main": "dist/
|
|
8
|
-
"module": "dist/index.js",
|
|
7
|
+
"main": "dist/index.cjs.js",
|
|
8
|
+
"module": "dist/index.esm.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
"import": "./dist/index.esm.js",
|
|
13
|
+
"require": "./dist/index.cjs.js"
|
|
14
|
+
},
|
|
10
15
|
"files": [
|
|
11
16
|
"dist/",
|
|
12
17
|
"testing",
|
|
13
18
|
"CHANGELOG.md"
|
|
14
19
|
],
|
|
15
20
|
"scripts": {
|
|
16
|
-
"build": "
|
|
17
|
-
"start": "
|
|
21
|
+
"build": "vite build",
|
|
22
|
+
"start": "vite build --watch",
|
|
18
23
|
"test": "stencil test --spec",
|
|
19
24
|
"docs:build": "typedoc",
|
|
20
|
-
"docs:publish": "node publish-docs.
|
|
25
|
+
"docs:publish": "node publish-docs.cjs",
|
|
21
26
|
"api:update": "npm run build && api-extractor run --local --verbose",
|
|
22
27
|
"api:verify": "api-extractor run",
|
|
23
28
|
"lint": "npm run lint:src && npm run lint:json",
|
|
@@ -33,8 +38,8 @@
|
|
|
33
38
|
"tslib": "^2.8.1"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
|
-
"@commitlint/config-conventional": "^19.
|
|
37
|
-
"@microsoft/api-extractor": "^7.
|
|
41
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
42
|
+
"@microsoft/api-extractor": "^7.52.1",
|
|
38
43
|
"@types/jest": "^27.5.0",
|
|
39
44
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
40
45
|
"@typescript-eslint/parser": "^7.5.0",
|
|
@@ -56,6 +61,8 @@
|
|
|
56
61
|
"typedoc": "^0.23.24",
|
|
57
62
|
"typedoc-plugin-markdown": "~3.15.0",
|
|
58
63
|
"typescript": "^4.9.5",
|
|
64
|
+
"vite": "^6.1.0",
|
|
65
|
+
"vite-plugin-dts": "^4.5.0",
|
|
59
66
|
"yargs": "^17.7.2"
|
|
60
67
|
},
|
|
61
68
|
"keywords": [
|
package/dist/action/action.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/action/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './action';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PlatformServiceName, } from '../../core';
|
|
2
|
-
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
-
/**
|
|
4
|
-
* Get the name of the application
|
|
5
|
-
*
|
|
6
|
-
* @param options - options for the state selector
|
|
7
|
-
* @returns state decorator
|
|
8
|
-
* @public
|
|
9
|
-
* @group Application
|
|
10
|
-
*/
|
|
11
|
-
export function SelectApplicationName(options = {}) {
|
|
12
|
-
const config = {
|
|
13
|
-
name: PlatformServiceName.Application,
|
|
14
|
-
};
|
|
15
|
-
options.map = [getApplicationName, ...(options.map || [])];
|
|
16
|
-
return createStateDecorator(options, config);
|
|
17
|
-
}
|
|
18
|
-
function getApplicationName(applicationData) {
|
|
19
|
-
return applicationData.applicationName;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PlatformServiceName, } from '../../core';
|
|
2
|
-
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
-
/**
|
|
4
|
-
* Get the application session
|
|
5
|
-
*
|
|
6
|
-
* @param options - state decorator options
|
|
7
|
-
* @returns state decorator
|
|
8
|
-
* @public
|
|
9
|
-
* @group Application
|
|
10
|
-
*/
|
|
11
|
-
export function SelectSession(options = {}) {
|
|
12
|
-
const config = {
|
|
13
|
-
name: PlatformServiceName.Application,
|
|
14
|
-
};
|
|
15
|
-
options.map = [getSession, ...(options.map || [])];
|
|
16
|
-
return createStateDecorator(options, config);
|
|
17
|
-
}
|
|
18
|
-
function getSession(applicationData) {
|
|
19
|
-
return applicationData.session;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PlatformServiceName, } from '../../core';
|
|
2
|
-
import { createStateDecorator } from '../../core/decorators/factory';
|
|
3
|
-
/**
|
|
4
|
-
* Get the currently logged in user
|
|
5
|
-
*
|
|
6
|
-
* @param options - state decorator options
|
|
7
|
-
* @returns state decorator
|
|
8
|
-
* @public
|
|
9
|
-
* @group Application
|
|
10
|
-
*/
|
|
11
|
-
export function SelectCurrentUser(options = {}) {
|
|
12
|
-
const config = {
|
|
13
|
-
name: PlatformServiceName.Application,
|
|
14
|
-
};
|
|
15
|
-
options.map = [getCurrentUser, ...(options.map || [])];
|
|
16
|
-
return createStateDecorator(options, config);
|
|
17
|
-
}
|
|
18
|
-
function getCurrentUser(applicationData) {
|
|
19
|
-
return applicationData.currentUser;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/application/user.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Events dispatched by the commandbus event middleware
|
|
3
|
-
* @public
|
|
4
|
-
* @group Command bus
|
|
5
|
-
*/
|
|
6
|
-
export var CommandEventName;
|
|
7
|
-
(function (CommandEventName) {
|
|
8
|
-
/**
|
|
9
|
-
* Dispatched when the command has been received by the commandbus.
|
|
10
|
-
* Calling `preventDefault()` on the event will stop the command from being handled
|
|
11
|
-
*
|
|
12
|
-
* @see {@link CommandEvent}
|
|
13
|
-
*/
|
|
14
|
-
CommandEventName["Received"] = "command.received";
|
|
15
|
-
/**
|
|
16
|
-
* Dispatched when the command has been handled by the commandbus
|
|
17
|
-
*
|
|
18
|
-
* @see {@link CommandEvent}
|
|
19
|
-
*/
|
|
20
|
-
CommandEventName["Handled"] = "command.handled";
|
|
21
|
-
/**
|
|
22
|
-
* Dispatched if an error occurs while handling the command
|
|
23
|
-
*
|
|
24
|
-
* @see {@link CommandEvent}
|
|
25
|
-
*/
|
|
26
|
-
CommandEventName["Failed"] = "command.failed";
|
|
27
|
-
})(CommandEventName || (CommandEventName = {}));
|
|
28
|
-
/**
|
|
29
|
-
* Register a class as a command
|
|
30
|
-
*
|
|
31
|
-
* @param options - a CommandOptions object containing the id of the command
|
|
32
|
-
*
|
|
33
|
-
* @returns callback which accepts a `CommandClass` and sets the command id
|
|
34
|
-
* @public
|
|
35
|
-
* @group Command bus
|
|
36
|
-
*/
|
|
37
|
-
export function Command(options) {
|
|
38
|
-
return (commandClass) => {
|
|
39
|
-
setCommandId(commandClass, options.id);
|
|
40
|
-
setHasInstance(commandClass, options.id);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function setCommandId(commandClass, id) {
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
45
|
-
commandClass['commandId'] = id;
|
|
46
|
-
}
|
|
47
|
-
function setHasInstance(commandClass, id) {
|
|
48
|
-
Object.defineProperty(commandClass, Symbol.hasInstance, {
|
|
49
|
-
value: (instance) => {
|
|
50
|
-
return getCommandIds(instance).includes(id);
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get the registered id of the command
|
|
56
|
-
*
|
|
57
|
-
* @param value - either a command or a command identifier
|
|
58
|
-
*
|
|
59
|
-
* @returns id of the command
|
|
60
|
-
* @public
|
|
61
|
-
* @group Command bus
|
|
62
|
-
*/
|
|
63
|
-
export function getCommandId(value) {
|
|
64
|
-
if (typeof value === 'string') {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
/* eslint-disable @typescript-eslint/dot-notation */
|
|
68
|
-
if (value && value.constructor && value.constructor['commandId']) {
|
|
69
|
-
return value.constructor['commandId'];
|
|
70
|
-
}
|
|
71
|
-
if (value && value['commandId']) {
|
|
72
|
-
return value['commandId'];
|
|
73
|
-
}
|
|
74
|
-
/* eslint-enable @typescript-eslint/dot-notation */
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Get all registered ids of a command and its parent classes
|
|
79
|
-
*
|
|
80
|
-
* @param value - either a command or a command identifier
|
|
81
|
-
*
|
|
82
|
-
* @returns ids of the command
|
|
83
|
-
* @beta
|
|
84
|
-
* @group Command bus
|
|
85
|
-
*/
|
|
86
|
-
export function getCommandIds(value) {
|
|
87
|
-
let ids = [];
|
|
88
|
-
let id;
|
|
89
|
-
let commandClass = value;
|
|
90
|
-
while ((id = getCommandId(commandClass))) {
|
|
91
|
-
ids = [...ids, id];
|
|
92
|
-
commandClass = Object.getPrototypeOf(commandClass);
|
|
93
|
-
}
|
|
94
|
-
return Array.from(new Set(ids));
|
|
95
|
-
}
|