@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,55 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
/* eslint-disable max-classes-per-file */
|
|
3
|
-
import { Command, getCommandIds } from './commandbus';
|
|
4
|
-
var Webclient;
|
|
5
|
-
(function (Webclient) {
|
|
6
|
-
let TestCommand = class TestCommand {
|
|
7
|
-
};
|
|
8
|
-
TestCommand = __decorate([
|
|
9
|
-
Command({
|
|
10
|
-
id: 'test',
|
|
11
|
-
})
|
|
12
|
-
], TestCommand);
|
|
13
|
-
Webclient.TestCommand = TestCommand;
|
|
14
|
-
let MyTestCommand = class MyTestCommand extends TestCommand {
|
|
15
|
-
};
|
|
16
|
-
MyTestCommand = __decorate([
|
|
17
|
-
Command({
|
|
18
|
-
id: 'my-test',
|
|
19
|
-
})
|
|
20
|
-
], MyTestCommand);
|
|
21
|
-
Webclient.MyTestCommand = MyTestCommand;
|
|
22
|
-
})(Webclient || (Webclient = {}));
|
|
23
|
-
var Addon;
|
|
24
|
-
(function (Addon) {
|
|
25
|
-
let TestCommand = class TestCommand {
|
|
26
|
-
};
|
|
27
|
-
TestCommand = __decorate([
|
|
28
|
-
Command({
|
|
29
|
-
id: 'test',
|
|
30
|
-
})
|
|
31
|
-
], TestCommand);
|
|
32
|
-
Addon.TestCommand = TestCommand;
|
|
33
|
-
})(Addon || (Addon = {}));
|
|
34
|
-
test.each([
|
|
35
|
-
[new Webclient.TestCommand(), ['test']],
|
|
36
|
-
[new Webclient.MyTestCommand(), ['my-test', 'test']],
|
|
37
|
-
['test', ['test']],
|
|
38
|
-
[null, []],
|
|
39
|
-
])('getCommandIds() with instance %s returns %j', (value, result) => {
|
|
40
|
-
expect(getCommandIds(value)).toEqual(result);
|
|
41
|
-
});
|
|
42
|
-
test.each([
|
|
43
|
-
[Webclient.TestCommand, ['test']],
|
|
44
|
-
[Webclient.MyTestCommand, ['my-test', 'test']],
|
|
45
|
-
])('getCommandIds() with class %p returns %j', (value, result) => {
|
|
46
|
-
expect(getCommandIds(value)).toEqual(result);
|
|
47
|
-
});
|
|
48
|
-
test('instanceof returns true when class from another namespace has same command ID', () => {
|
|
49
|
-
const command = new Webclient.TestCommand();
|
|
50
|
-
expect(command).toBeInstanceOf(Addon.TestCommand);
|
|
51
|
-
});
|
|
52
|
-
test('instanceof returns true when sub-class from another namespace has same command ID', () => {
|
|
53
|
-
const command = new Webclient.MyTestCommand();
|
|
54
|
-
expect(command).toBeInstanceOf(Addon.TestCommand);
|
|
55
|
-
});
|
package/dist/commandbus/index.js
DELETED
package/dist/commandbus/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if condition expects a lime object to be passed when it is evaluated
|
|
3
|
-
*
|
|
4
|
-
* @alpha
|
|
5
|
-
* @group Conditions
|
|
6
|
-
*/
|
|
7
|
-
export function isLimeObjectCondition(condition) {
|
|
8
|
-
return condition.type === 'limeobject';
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Check if condition expects an action to be passed when it is evaluated
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
|
-
* @group Conditions
|
|
15
|
-
*/
|
|
16
|
-
export function isActionCondition(condition) {
|
|
17
|
-
return condition.type === 'action';
|
|
18
|
-
}
|
package/dist/config/decorator.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 options - state decorator options
|
|
7
|
-
* @returns state decorator
|
|
8
|
-
* @public
|
|
9
|
-
* @group Config
|
|
10
|
-
*/
|
|
11
|
-
export function SelectConfig(options) {
|
|
12
|
-
const config = {
|
|
13
|
-
name: PlatformServiceName.ConfigRepository,
|
|
14
|
-
};
|
|
15
|
-
return createStateDecorator(options, config);
|
|
16
|
-
}
|
package/dist/config/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/config/types.js
DELETED
package/dist/core/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { getElement } from '@stencil/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
function defaultOptionFactory(options) {
|
|
4
|
-
return options;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Create a new state decorator
|
|
8
|
-
*
|
|
9
|
-
* @param options - decorator options
|
|
10
|
-
* @param config - decorator configuration
|
|
11
|
-
* @returns state decorator
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export function createStateDecorator(options, config) {
|
|
15
|
-
return (target, property) => {
|
|
16
|
-
const properties = getComponentProperties(target, property, options, config);
|
|
17
|
-
if (properties.length === 1) {
|
|
18
|
-
extendLifecycleMethods(target, properties);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const componentProperties = new WeakMap();
|
|
23
|
-
const componentSubscriptions = new WeakMap();
|
|
24
|
-
const connectedComponents = new WeakMap();
|
|
25
|
-
/**
|
|
26
|
-
* Get properties data for a component
|
|
27
|
-
*
|
|
28
|
-
* @param component - the component class containing the decorator
|
|
29
|
-
* @param property - name of the property
|
|
30
|
-
* @param options - decorator options
|
|
31
|
-
* @param config - decorator configuration
|
|
32
|
-
* @returns properties data for the component
|
|
33
|
-
*/
|
|
34
|
-
function getComponentProperties(component, property, options, config) {
|
|
35
|
-
let properties = componentProperties.get(component);
|
|
36
|
-
if (!properties) {
|
|
37
|
-
properties = [];
|
|
38
|
-
componentProperties.set(component, properties);
|
|
39
|
-
}
|
|
40
|
-
properties.push({
|
|
41
|
-
options: options,
|
|
42
|
-
name: property,
|
|
43
|
-
optionFactory: config.optionFactory || defaultOptionFactory,
|
|
44
|
-
service: {
|
|
45
|
-
name: config.name,
|
|
46
|
-
method: config.method || 'subscribe',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
return properties;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Extend the lifecycle methods on the component
|
|
53
|
-
*
|
|
54
|
-
* @param component - the component to extend
|
|
55
|
-
* @param properties - the properties with which to extend the component
|
|
56
|
-
* @returns
|
|
57
|
-
*/
|
|
58
|
-
function extendLifecycleMethods(component, properties) {
|
|
59
|
-
// `componentWillLoad` and `componentDidUnload` is included for backwards
|
|
60
|
-
// compatibility reasons. The correct way to setup the subscriptions is in
|
|
61
|
-
// `connectedCallback` and `disconnectedCallback`, but since not all
|
|
62
|
-
// plugins might implement those methods yet we still have include them
|
|
63
|
-
// until we make `connectedCallback` and `disconnectedCallback` required
|
|
64
|
-
// on the interface.
|
|
65
|
-
component.connectedCallback = createConnectedCallback(component.connectedCallback, properties);
|
|
66
|
-
component.componentWillLoad = createComponentWillLoad(component.componentWillLoad, properties);
|
|
67
|
-
component.componentDidUnload = createDisconnectedCallback(component.componentDidUnload);
|
|
68
|
-
component.disconnectedCallback = createDisconnectedCallback(component.disconnectedCallback);
|
|
69
|
-
}
|
|
70
|
-
function createConnectedCallback(original, properties) {
|
|
71
|
-
return async function (...args) {
|
|
72
|
-
connectedComponents.set(this, true);
|
|
73
|
-
componentSubscriptions.set(this, []);
|
|
74
|
-
await ensureLimeProps(this);
|
|
75
|
-
const observable = new BehaviorSubject(this.context);
|
|
76
|
-
watchProp(this, 'context', observable);
|
|
77
|
-
properties.forEach((property) => {
|
|
78
|
-
property.options = property.optionFactory(property.options, this);
|
|
79
|
-
if (isContextAware(property.options)) {
|
|
80
|
-
property.options.context = observable;
|
|
81
|
-
}
|
|
82
|
-
subscribe(this, property);
|
|
83
|
-
});
|
|
84
|
-
if (original) {
|
|
85
|
-
return original.apply(this, args);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function createComponentWillLoad(original, properties) {
|
|
90
|
-
return async function (...args) {
|
|
91
|
-
if (connectedComponents.get(this) === true) {
|
|
92
|
-
await ensureLimeProps(this);
|
|
93
|
-
if (original) {
|
|
94
|
-
return original.apply(this, args);
|
|
95
|
-
}
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const connectedCallback = createConnectedCallback(original, properties);
|
|
99
|
-
return connectedCallback.apply(this, args);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function createDisconnectedCallback(original) {
|
|
103
|
-
return async function (...args) {
|
|
104
|
-
let result;
|
|
105
|
-
if (original) {
|
|
106
|
-
result = original.apply(this, args);
|
|
107
|
-
}
|
|
108
|
-
unsubscribeAll(this);
|
|
109
|
-
return result;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Check if the options are context aware
|
|
114
|
-
*
|
|
115
|
-
* @param options - state decorator options
|
|
116
|
-
* @returns true if the options are context aware
|
|
117
|
-
*/
|
|
118
|
-
function isContextAware(options) {
|
|
119
|
-
return 'context' in options;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Make sure that all required lime properties are set on the web component
|
|
123
|
-
*
|
|
124
|
-
* @param target - the web component
|
|
125
|
-
* @returns a promise that resolves when all properties are defined
|
|
126
|
-
*/
|
|
127
|
-
function ensureLimeProps(target) {
|
|
128
|
-
const promises = [];
|
|
129
|
-
if (!target.platform) {
|
|
130
|
-
promises.push(waitForProp(target, 'platform'));
|
|
131
|
-
}
|
|
132
|
-
if (!target.context) {
|
|
133
|
-
promises.push(waitForProp(target, 'context'));
|
|
134
|
-
}
|
|
135
|
-
if (!promises.length) {
|
|
136
|
-
return Promise.resolve();
|
|
137
|
-
}
|
|
138
|
-
return Promise.all(promises);
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Wait for a property to be defined on an object
|
|
142
|
-
*
|
|
143
|
-
* @param target - the web component
|
|
144
|
-
* @param property - the name of the property to watch
|
|
145
|
-
* @returns a promise that will resolve when the property is set on the object
|
|
146
|
-
*/
|
|
147
|
-
function waitForProp(target, property) {
|
|
148
|
-
const element = getElement(target);
|
|
149
|
-
return new Promise((resolve) => {
|
|
150
|
-
Object.defineProperty(element, property, {
|
|
151
|
-
configurable: true,
|
|
152
|
-
set: (value) => {
|
|
153
|
-
delete element[property];
|
|
154
|
-
element[property] = value;
|
|
155
|
-
resolve();
|
|
156
|
-
},
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function watchProp(target, property, observer) {
|
|
161
|
-
const element = getElement(target);
|
|
162
|
-
const { get, set } = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(element), property);
|
|
163
|
-
Object.defineProperty(element, property, {
|
|
164
|
-
configurable: true,
|
|
165
|
-
get: get,
|
|
166
|
-
set: function (value) {
|
|
167
|
-
set.call(this, value);
|
|
168
|
-
observer.next(value);
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Subscribe to changes from the state
|
|
174
|
-
*
|
|
175
|
-
* @param component - the component instance
|
|
176
|
-
* @param property - property to update when subscription triggers
|
|
177
|
-
* @returns
|
|
178
|
-
*/
|
|
179
|
-
function subscribe(component, property) {
|
|
180
|
-
const subscription = createSubscription(component, property);
|
|
181
|
-
if (typeof subscription !== 'function') {
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const subscriptions = componentSubscriptions.get(component);
|
|
185
|
-
subscriptions.push(subscription);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Unsubscribe to changes from the state
|
|
189
|
-
*
|
|
190
|
-
* @param component - the instance of the component
|
|
191
|
-
* @returns
|
|
192
|
-
*/
|
|
193
|
-
function unsubscribeAll(component) {
|
|
194
|
-
const subscriptions = componentSubscriptions.get(component);
|
|
195
|
-
subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
196
|
-
componentSubscriptions.set(component, []);
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Get a function that accepts a state, and updates the given property
|
|
200
|
-
* on the given component with that state
|
|
201
|
-
*
|
|
202
|
-
* @param instance - the component to augment
|
|
203
|
-
* @param property - name of the property on the component
|
|
204
|
-
* @returns updates the state
|
|
205
|
-
*/
|
|
206
|
-
function mapState(instance, property) {
|
|
207
|
-
return (state) => {
|
|
208
|
-
instance[property] = state;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Create a state subscription
|
|
213
|
-
*
|
|
214
|
-
* @param component - the component instance
|
|
215
|
-
* @param property - the property on the component
|
|
216
|
-
* @returns unsubscribe function
|
|
217
|
-
*/
|
|
218
|
-
function createSubscription(component, property) {
|
|
219
|
-
const myOptions = Object.assign({}, property.options);
|
|
220
|
-
bindFunctions(myOptions, component);
|
|
221
|
-
const name = property.service.name;
|
|
222
|
-
const platform = component.platform;
|
|
223
|
-
if (!platform.has(name)) {
|
|
224
|
-
throw new Error(`Service ${name} does not exist`);
|
|
225
|
-
}
|
|
226
|
-
const service = platform.get(name);
|
|
227
|
-
return service[property.service.method](mapState(component, property.name), myOptions);
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Bind connect functions to the current scope
|
|
231
|
-
*
|
|
232
|
-
* @param options - options for the selector
|
|
233
|
-
* @param scope - the current scope to bind to
|
|
234
|
-
* @returns
|
|
235
|
-
*/
|
|
236
|
-
function bindFunctions(options, scope) {
|
|
237
|
-
if (options.filter) {
|
|
238
|
-
options.filter = options.filter.map((func) => func.bind(scope));
|
|
239
|
-
}
|
|
240
|
-
if (options.map) {
|
|
241
|
-
options.map = options.map.map((func) => func.bind(scope));
|
|
242
|
-
}
|
|
243
|
-
}
|