@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.
Files changed (463) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/action/action.d.ts +4 -4
  3. package/dist/application/repository.d.ts +1 -1
  4. package/dist/application/session.d.ts +0 -5
  5. package/dist/application/session.d.ts.map +1 -1
  6. package/dist/commandbus/commandbus.d.ts +4 -4
  7. package/dist/conditionregistry/conditionregistry.d.ts +6 -6
  8. package/dist/config/repository.d.ts +1 -2
  9. package/dist/config/repository.d.ts.map +1 -1
  10. package/dist/core/index.d.ts +1 -1
  11. package/dist/core/index.d.ts.map +1 -1
  12. package/dist/core/metadata.d.ts +2 -2
  13. package/dist/core/platform.d.ts +2 -7
  14. package/dist/core/platform.d.ts.map +1 -1
  15. package/dist/datetimeformatter/datetimeformatter.d.ts +4 -4
  16. package/dist/index.cjs.js +4 -0
  17. package/dist/index.cjs.js.map +1 -0
  18. package/dist/index.esm.js +956 -0
  19. package/dist/index.esm.js.map +1 -0
  20. package/dist/limeobject/commands/bulk-create-dialog.d.ts +0 -14
  21. package/dist/limeobject/commands/bulk-create-dialog.d.ts.map +1 -1
  22. package/dist/limeobject/commands/create-dialog.d.ts +0 -2
  23. package/dist/limeobject/commands/create-dialog.d.ts.map +1 -1
  24. package/dist/limeobject/commands/delete-object.d.ts +0 -9
  25. package/dist/limeobject/commands/delete-object.d.ts.map +1 -1
  26. package/dist/limeobject/commands/object-access.d.ts +0 -9
  27. package/dist/limeobject/commands/object-access.d.ts.map +1 -1
  28. package/dist/limeobject/commands/save-object.d.ts +1 -1
  29. package/dist/limeobject/file.d.ts +4 -2
  30. package/dist/limeobject/file.d.ts.map +1 -1
  31. package/dist/limeobject/limeobject.d.ts +1 -2
  32. package/dist/limeobject/limeobject.d.ts.map +1 -1
  33. package/dist/limeobject/repository.d.ts +4 -6
  34. package/dist/limeobject/repository.d.ts.map +1 -1
  35. package/dist/limetype/fixture.d.ts +4 -0
  36. package/dist/limetype/fixture.d.ts.map +1 -0
  37. package/dist/limetype/repository.d.ts +1 -1
  38. package/dist/navigator/command.d.ts +1 -1
  39. package/dist/navigator/decorator.d.ts +2 -2
  40. package/dist/navigator/navigator.d.ts +7 -7
  41. package/dist/navigator/types.d.ts +0 -3
  42. package/dist/navigator/types.d.ts.map +1 -1
  43. package/dist/notification-service/notification.d.ts +2 -2
  44. package/dist/notification-service/repository.d.ts +4 -4
  45. package/dist/query/query.d.ts +59 -8
  46. package/dist/query/query.d.ts.map +1 -1
  47. package/dist/routeregistry/registry.d.ts +3 -3
  48. package/dist/routeregistry/types.d.ts +0 -3
  49. package/dist/routeregistry/types.d.ts.map +1 -1
  50. package/dist/userpreferences/repository.d.ts +1 -1
  51. package/dist/view/registry.d.ts +2 -2
  52. package/dist/view/types.d.ts +2 -2
  53. package/dist/webcomponent/registry.d.ts +2 -2
  54. package/package.json +15 -8
  55. package/dist/action/action.js +0 -1
  56. package/dist/action/index.js +0 -1
  57. package/dist/application/decorators/application.js +0 -20
  58. package/dist/application/decorators/index.js +0 -3
  59. package/dist/application/decorators/session.js +0 -20
  60. package/dist/application/decorators/user.js +0 -20
  61. package/dist/application/index.js +0 -5
  62. package/dist/application/repository.js +0 -1
  63. package/dist/application/session.js +0 -1
  64. package/dist/application/types.js +0 -3
  65. package/dist/application/user.js +0 -1
  66. package/dist/commandbus/commandbus.js +0 -95
  67. package/dist/commandbus/commandbus.spec.js +0 -55
  68. package/dist/commandbus/index.js +0 -2
  69. package/dist/commandbus/types.js +0 -3
  70. package/dist/conditionregistry/conditionregistry.js +0 -18
  71. package/dist/conditionregistry/index.js +0 -2
  72. package/dist/conditionregistry/types.js +0 -3
  73. package/dist/config/decorator.js +0 -16
  74. package/dist/config/index.js +0 -3
  75. package/dist/config/repository.js +0 -1
  76. package/dist/config/types.js +0 -3
  77. package/dist/core/context.js +0 -1
  78. package/dist/core/decorators/factory.js +0 -243
  79. package/dist/core/decorators/factory.spec.js +0 -327
  80. package/dist/core/decorators/index.js +0 -1
  81. package/dist/core/idle.js +0 -7
  82. package/dist/core/index.js +0 -8
  83. package/dist/core/lime-web-component.js +0 -1
  84. package/dist/core/metadata.js +0 -1
  85. package/dist/core/platform.js +0 -8
  86. package/dist/core/plugin-loader.js +0 -1
  87. package/dist/core/state.js +0 -1
  88. package/dist/datetimeformatter/datetimeformatter.js +0 -1
  89. package/dist/datetimeformatter/index.js +0 -2
  90. package/dist/datetimeformatter/types.js +0 -3
  91. package/dist/device/decorator.js +0 -18
  92. package/dist/device/device.js +0 -1
  93. package/dist/device/index.js +0 -3
  94. package/dist/device/types.js +0 -3
  95. package/dist/dialog/dialog.js +0 -1
  96. package/dist/dialog/index.js +0 -2
  97. package/dist/dialog/types.js +0 -3
  98. package/dist/es5/action/action.js +0 -2
  99. package/dist/es5/action/index.js +0 -4
  100. package/dist/es5/application/decorators/application.js +0 -18
  101. package/dist/es5/application/decorators/index.js +0 -6
  102. package/dist/es5/application/decorators/session.js +0 -18
  103. package/dist/es5/application/decorators/user.js +0 -18
  104. package/dist/es5/application/index.js +0 -8
  105. package/dist/es5/application/repository.js +0 -2
  106. package/dist/es5/application/session.js +0 -2
  107. package/dist/es5/application/types.js +0 -5
  108. package/dist/es5/application/user.js +0 -2
  109. package/dist/es5/commandbus/commandbus.js +0 -51
  110. package/dist/es5/commandbus/commandbus.spec.js +0 -67
  111. package/dist/es5/commandbus/index.js +0 -5
  112. package/dist/es5/commandbus/types.js +0 -5
  113. package/dist/es5/conditionregistry/conditionregistry.js +0 -11
  114. package/dist/es5/conditionregistry/index.js +0 -5
  115. package/dist/es5/conditionregistry/types.js +0 -5
  116. package/dist/es5/config/decorator.js +0 -12
  117. package/dist/es5/config/index.js +0 -6
  118. package/dist/es5/config/repository.js +0 -2
  119. package/dist/es5/config/types.js +0 -5
  120. package/dist/es5/core/context.js +0 -2
  121. package/dist/es5/core/decorators/factory.js +0 -202
  122. package/dist/es5/core/decorators/factory.spec.js +0 -479
  123. package/dist/es5/core/decorators/index.js +0 -2
  124. package/dist/es5/core/idle.js +0 -4
  125. package/dist/es5/core/index.js +0 -11
  126. package/dist/es5/core/lime-web-component.js +0 -2
  127. package/dist/es5/core/metadata.js +0 -2
  128. package/dist/es5/core/platform.js +0 -6
  129. package/dist/es5/core/plugin-loader.js +0 -2
  130. package/dist/es5/core/state.js +0 -2
  131. package/dist/es5/datetimeformatter/datetimeformatter.js +0 -2
  132. package/dist/es5/datetimeformatter/index.js +0 -5
  133. package/dist/es5/datetimeformatter/types.js +0 -5
  134. package/dist/es5/device/decorator.js +0 -13
  135. package/dist/es5/device/device.js +0 -2
  136. package/dist/es5/device/index.js +0 -6
  137. package/dist/es5/device/types.js +0 -5
  138. package/dist/es5/dialog/dialog.js +0 -2
  139. package/dist/es5/dialog/index.js +0 -5
  140. package/dist/es5/dialog/types.js +0 -5
  141. package/dist/es5/eventdispatcher/eventdispatcher.js +0 -2
  142. package/dist/es5/eventdispatcher/index.js +0 -5
  143. package/dist/es5/eventdispatcher/types.js +0 -5
  144. package/dist/es5/filter/decorator.js +0 -13
  145. package/dist/es5/filter/index.js +0 -6
  146. package/dist/es5/filter/repository.js +0 -2
  147. package/dist/es5/filter/types.js +0 -5
  148. package/dist/es5/http/http.js +0 -10
  149. package/dist/es5/http/index.js +0 -5
  150. package/dist/es5/http/types.js +0 -5
  151. package/dist/es5/index.js +0 -30
  152. package/dist/es5/keybindings/index.js +0 -5
  153. package/dist/es5/keybindings/registry.js +0 -2
  154. package/dist/es5/keybindings/types.js +0 -5
  155. package/dist/es5/limeobject/commands/bulk-create-dialog.js +0 -17
  156. package/dist/es5/limeobject/commands/create-dialog.js +0 -17
  157. package/dist/es5/limeobject/commands/delete-object.js +0 -16
  158. package/dist/es5/limeobject/commands/index.js +0 -8
  159. package/dist/es5/limeobject/commands/object-access.js +0 -16
  160. package/dist/es5/limeobject/commands/save-object.js +0 -17
  161. package/dist/es5/limeobject/decorator.js +0 -38
  162. package/dist/es5/limeobject/error.js +0 -2
  163. package/dist/es5/limeobject/file.js +0 -2
  164. package/dist/es5/limeobject/index.js +0 -10
  165. package/dist/es5/limeobject/limeobject.js +0 -2
  166. package/dist/es5/limeobject/repository.js +0 -2
  167. package/dist/es5/limeobject/types.js +0 -5
  168. package/dist/es5/limetype/acl.js +0 -2
  169. package/dist/es5/limetype/decorator.js +0 -28
  170. package/dist/es5/limetype/find-limetype-by-label.js +0 -8
  171. package/dist/es5/limetype/find-limetype-by-label.spec.js +0 -47
  172. package/dist/es5/limetype/get-properties-by-type.js +0 -7
  173. package/dist/es5/limetype/get-properties-by-type.spec.js +0 -36
  174. package/dist/es5/limetype/get-property-by-label.js +0 -8
  175. package/dist/es5/limetype/get-property-by-label.spec.js +0 -33
  176. package/dist/es5/limetype/get-property-by-name.js +0 -7
  177. package/dist/es5/limetype/get-property-by-name.spec.js +0 -31
  178. package/dist/es5/limetype/has-label.js +0 -7
  179. package/dist/es5/limetype/has-label.spec.js +0 -30
  180. package/dist/es5/limetype/index.js +0 -14
  181. package/dist/es5/limetype/limetype.js +0 -2
  182. package/dist/es5/limetype/property.js +0 -40
  183. package/dist/es5/limetype/repository.js +0 -2
  184. package/dist/es5/limetype/types.js +0 -5
  185. package/dist/es5/navigator/command.js +0 -16
  186. package/dist/es5/navigator/decorator.js +0 -13
  187. package/dist/es5/navigator/index.js +0 -7
  188. package/dist/es5/navigator/navigator.js +0 -2
  189. package/dist/es5/navigator/types.js +0 -5
  190. package/dist/es5/notification-service/index.js +0 -6
  191. package/dist/es5/notification-service/notification.js +0 -2
  192. package/dist/es5/notification-service/repository.js +0 -2
  193. package/dist/es5/notification-service/types.js +0 -5
  194. package/dist/es5/notifications/index.js +0 -5
  195. package/dist/es5/notifications/notifications.js +0 -2
  196. package/dist/es5/notifications/types.js +0 -5
  197. package/dist/es5/poller/factory.js +0 -2
  198. package/dist/es5/poller/index.js +0 -6
  199. package/dist/es5/poller/poller.js +0 -2
  200. package/dist/es5/poller/types.js +0 -5
  201. package/dist/es5/query/index.js +0 -6
  202. package/dist/es5/query/query.js +0 -26
  203. package/dist/es5/query/service.js +0 -2
  204. package/dist/es5/query/types.js +0 -5
  205. package/dist/es5/routeregistry/index.js +0 -5
  206. package/dist/es5/routeregistry/registry.js +0 -2
  207. package/dist/es5/routeregistry/types.js +0 -5
  208. package/dist/es5/task/index.js +0 -5
  209. package/dist/es5/task/repository.js +0 -17
  210. package/dist/es5/task/types.js +0 -5
  211. package/dist/es5/testing/component-testing.js +0 -109
  212. package/dist/es5/testing/component-testing.spec.js +0 -88
  213. package/dist/es5/testing/index.js +0 -11
  214. package/dist/es5/testing/limeobjects/company.js +0 -660
  215. package/dist/es5/testing/limeobjects/coworker.js +0 -110
  216. package/dist/es5/testing/limeobjects/deal.js +0 -447
  217. package/dist/es5/testing/limeobjects/document.js +0 -82
  218. package/dist/es5/testing/limeobjects/index.js +0 -56
  219. package/dist/es5/testing/limeobjects/person.js +0 -1162
  220. package/dist/es5/testing/limeobjects/todo.js +0 -106
  221. package/dist/es5/testing/limetypes/campaign.js +0 -486
  222. package/dist/es5/testing/limetypes/company.js +0 -621
  223. package/dist/es5/testing/limetypes/consent.js +0 -237
  224. package/dist/es5/testing/limetypes/consenttype.js +0 -194
  225. package/dist/es5/testing/limetypes/coworker.js +0 -579
  226. package/dist/es5/testing/limetypes/deal.js +0 -422
  227. package/dist/es5/testing/limetypes/document.js +0 -343
  228. package/dist/es5/testing/limetypes/helpdesk.js +0 -426
  229. package/dist/es5/testing/limetypes/helpdesktype.js +0 -142
  230. package/dist/es5/testing/limetypes/history.js +0 -349
  231. package/dist/es5/testing/limetypes/index.js +0 -69
  232. package/dist/es5/testing/limetypes/infotiles.js +0 -514
  233. package/dist/es5/testing/limetypes/localize.js +0 -287
  234. package/dist/es5/testing/limetypes/mailing.js +0 -218
  235. package/dist/es5/testing/limetypes/office.js +0 -388
  236. package/dist/es5/testing/limetypes/participant.js +0 -195
  237. package/dist/es5/testing/limetypes/person.js +0 -535
  238. package/dist/es5/testing/limetypes/recipient.js +0 -175
  239. package/dist/es5/testing/limetypes/solutionimprovement.js +0 -353
  240. package/dist/es5/testing/limetypes/successplan.js +0 -215
  241. package/dist/es5/testing/limetypes/target.js +0 -181
  242. package/dist/es5/testing/limetypes/todo.js +0 -429
  243. package/dist/es5/testing/platform/index.js +0 -53
  244. package/dist/es5/testing/platform/platform.spec.js +0 -44
  245. package/dist/es5/testing/services/datetimeformatter.js +0 -12
  246. package/dist/es5/testing/services/index.js +0 -5
  247. package/dist/es5/testing/services/translator.js +0 -9
  248. package/dist/es5/translator/index.js +0 -5
  249. package/dist/es5/translator/translator.js +0 -2
  250. package/dist/es5/translator/types.js +0 -5
  251. package/dist/es5/userdata/decorator.js +0 -13
  252. package/dist/es5/userdata/index.js +0 -6
  253. package/dist/es5/userdata/repository.js +0 -2
  254. package/dist/es5/userdata/types.js +0 -5
  255. package/dist/es5/userpreferences/index.js +0 -5
  256. package/dist/es5/userpreferences/repository.js +0 -2
  257. package/dist/es5/userpreferences/types.js +0 -5
  258. package/dist/es5/view/index.js +0 -6
  259. package/dist/es5/view/layout.js +0 -2
  260. package/dist/es5/view/registry.js +0 -2
  261. package/dist/es5/view/types.js +0 -5
  262. package/dist/es5/webcomponent/index.js +0 -5
  263. package/dist/es5/webcomponent/registry.js +0 -2
  264. package/dist/es5/webcomponent/types.js +0 -5
  265. package/dist/eventdispatcher/eventdispatcher.js +0 -1
  266. package/dist/eventdispatcher/index.js +0 -2
  267. package/dist/eventdispatcher/types.js +0 -3
  268. package/dist/filter/decorator.js +0 -16
  269. package/dist/filter/index.js +0 -3
  270. package/dist/filter/repository.js +0 -1
  271. package/dist/filter/types.js +0 -3
  272. package/dist/http/http.js +0 -13
  273. package/dist/http/index.js +0 -2
  274. package/dist/http/types.js +0 -3
  275. package/dist/index.js +0 -49
  276. package/dist/keybindings/index.js +0 -2
  277. package/dist/keybindings/registry.js +0 -1
  278. package/dist/keybindings/types.js +0 -3
  279. package/dist/limeobject/commands/bulk-create-dialog.js +0 -53
  280. package/dist/limeobject/commands/create-dialog.js +0 -28
  281. package/dist/limeobject/commands/delete-object.js +0 -17
  282. package/dist/limeobject/commands/index.js +0 -5
  283. package/dist/limeobject/commands/object-access.js +0 -17
  284. package/dist/limeobject/commands/save-object.js +0 -23
  285. package/dist/limeobject/decorator.js +0 -46
  286. package/dist/limeobject/error.js +0 -1
  287. package/dist/limeobject/file.js +0 -1
  288. package/dist/limeobject/index.js +0 -7
  289. package/dist/limeobject/limeobject.js +0 -1
  290. package/dist/limeobject/repository.js +0 -1
  291. package/dist/limeobject/types.js +0 -3
  292. package/dist/limetype/acl.js +0 -1
  293. package/dist/limetype/decorator.js +0 -36
  294. package/dist/limetype/find-limetype-by-label.js +0 -43
  295. package/dist/limetype/find-limetype-by-label.spec.js +0 -44
  296. package/dist/limetype/get-properties-by-type.js +0 -16
  297. package/dist/limetype/get-properties-by-type.spec.js +0 -31
  298. package/dist/limetype/get-property-by-label.js +0 -17
  299. package/dist/limetype/get-property-by-label.spec.js +0 -26
  300. package/dist/limetype/get-property-by-name.js +0 -17
  301. package/dist/limetype/get-property-by-name.spec.js +0 -26
  302. package/dist/limetype/has-label.js +0 -29
  303. package/dist/limetype/has-label.spec.js +0 -31
  304. package/dist/limetype/index.js +0 -11
  305. package/dist/limetype/limetype.js +0 -1
  306. package/dist/limetype/property.js +0 -52
  307. package/dist/limetype/repository.js +0 -1
  308. package/dist/limetype/types.js +0 -3
  309. package/dist/navigator/command.js +0 -17
  310. package/dist/navigator/decorator.js +0 -16
  311. package/dist/navigator/index.js +0 -4
  312. package/dist/navigator/navigator.js +0 -1
  313. package/dist/navigator/types.js +0 -3
  314. package/dist/notification-service/index.js +0 -3
  315. package/dist/notification-service/notification.js +0 -1
  316. package/dist/notification-service/repository.js +0 -1
  317. package/dist/notification-service/types.js +0 -3
  318. package/dist/notifications/index.js +0 -2
  319. package/dist/notifications/notifications.js +0 -1
  320. package/dist/notifications/types.js +0 -3
  321. package/dist/poller/factory.js +0 -1
  322. package/dist/poller/index.js +0 -3
  323. package/dist/poller/poller.js +0 -1
  324. package/dist/poller/types.js +0 -3
  325. package/dist/query/index.js +0 -3
  326. package/dist/query/query.js +0 -31
  327. package/dist/query/service.js +0 -1
  328. package/dist/query/types.js +0 -3
  329. package/dist/routeregistry/index.js +0 -2
  330. package/dist/routeregistry/registry.js +0 -1
  331. package/dist/routeregistry/types.js +0 -3
  332. package/dist/task/index.js +0 -2
  333. package/dist/task/repository.js +0 -53
  334. package/dist/task/types.js +0 -3
  335. package/dist/testing/component-testing.d.ts +0 -74
  336. package/dist/testing/component-testing.d.ts.map +0 -1
  337. package/dist/testing/component-testing.js +0 -177
  338. package/dist/testing/component-testing.spec.d.ts +0 -11
  339. package/dist/testing/component-testing.spec.d.ts.map +0 -1
  340. package/dist/testing/component-testing.spec.js +0 -71
  341. package/dist/testing/index.d.ts +0 -6
  342. package/dist/testing/index.d.ts.map +0 -1
  343. package/dist/testing/index.js +0 -5
  344. package/dist/testing/limeobjects/company.d.ts +0 -56
  345. package/dist/testing/limeobjects/company.d.ts.map +0 -1
  346. package/dist/testing/limeobjects/company.js +0 -656
  347. package/dist/testing/limeobjects/coworker.d.ts +0 -23
  348. package/dist/testing/limeobjects/coworker.d.ts.map +0 -1
  349. package/dist/testing/limeobjects/coworker.js +0 -106
  350. package/dist/testing/limeobjects/deal.d.ts +0 -42
  351. package/dist/testing/limeobjects/deal.d.ts.map +0 -1
  352. package/dist/testing/limeobjects/deal.js +0 -443
  353. package/dist/testing/limeobjects/document.d.ts +0 -21
  354. package/dist/testing/limeobjects/document.d.ts.map +0 -1
  355. package/dist/testing/limeobjects/document.js +0 -78
  356. package/dist/testing/limeobjects/index.d.ts +0 -207
  357. package/dist/testing/limeobjects/index.d.ts.map +0 -1
  358. package/dist/testing/limeobjects/index.js +0 -55
  359. package/dist/testing/limeobjects/person.d.ts +0 -21
  360. package/dist/testing/limeobjects/person.d.ts.map +0 -1
  361. package/dist/testing/limeobjects/person.js +0 -1158
  362. package/dist/testing/limeobjects/todo.d.ts +0 -27
  363. package/dist/testing/limeobjects/todo.d.ts.map +0 -1
  364. package/dist/testing/limeobjects/todo.js +0 -102
  365. package/dist/testing/limetypes/campaign.d.ts +0 -418
  366. package/dist/testing/limetypes/campaign.d.ts.map +0 -1
  367. package/dist/testing/limetypes/campaign.js +0 -477
  368. package/dist/testing/limetypes/company.d.ts +0 -592
  369. package/dist/testing/limetypes/company.d.ts.map +0 -1
  370. package/dist/testing/limetypes/company.js +0 -614
  371. package/dist/testing/limetypes/consent.d.ts +0 -200
  372. package/dist/testing/limetypes/consent.d.ts.map +0 -1
  373. package/dist/testing/limetypes/consent.js +0 -232
  374. package/dist/testing/limetypes/consenttype.d.ts +0 -189
  375. package/dist/testing/limetypes/consenttype.d.ts.map +0 -1
  376. package/dist/testing/limetypes/consenttype.js +0 -189
  377. package/dist/testing/limetypes/coworker.d.ts +0 -564
  378. package/dist/testing/limetypes/coworker.d.ts.map +0 -1
  379. package/dist/testing/limetypes/coworker.js +0 -564
  380. package/dist/testing/limetypes/deal.d.ts +0 -392
  381. package/dist/testing/limetypes/deal.d.ts.map +0 -1
  382. package/dist/testing/limetypes/deal.js +0 -419
  383. package/dist/testing/limetypes/document.d.ts +0 -310
  384. package/dist/testing/limetypes/document.d.ts.map +0 -1
  385. package/dist/testing/limetypes/document.js +0 -332
  386. package/dist/testing/limetypes/helpdesk.d.ts +0 -395
  387. package/dist/testing/limetypes/helpdesk.d.ts.map +0 -1
  388. package/dist/testing/limetypes/helpdesk.js +0 -417
  389. package/dist/testing/limetypes/helpdesktype.d.ts +0 -137
  390. package/dist/testing/limetypes/helpdesktype.d.ts.map +0 -1
  391. package/dist/testing/limetypes/helpdesktype.js +0 -137
  392. package/dist/testing/limetypes/history.d.ts +0 -309
  393. package/dist/testing/limetypes/history.d.ts.map +0 -1
  394. package/dist/testing/limetypes/history.js +0 -346
  395. package/dist/testing/limetypes/index.d.ts +0 -10
  396. package/dist/testing/limetypes/index.d.ts.map +0 -1
  397. package/dist/testing/limetypes/index.js +0 -67
  398. package/dist/testing/limetypes/infotiles.d.ts +0 -388
  399. package/dist/testing/limetypes/infotiles.d.ts.map +0 -1
  400. package/dist/testing/limetypes/infotiles.js +0 -509
  401. package/dist/testing/limetypes/localize.d.ts +0 -284
  402. package/dist/testing/limetypes/localize.d.ts.map +0 -1
  403. package/dist/testing/limetypes/localize.js +0 -284
  404. package/dist/testing/limetypes/mailing.d.ts +0 -213
  405. package/dist/testing/limetypes/mailing.d.ts.map +0 -1
  406. package/dist/testing/limetypes/mailing.js +0 -213
  407. package/dist/testing/limetypes/office.d.ts +0 -385
  408. package/dist/testing/limetypes/office.d.ts.map +0 -1
  409. package/dist/testing/limetypes/office.js +0 -385
  410. package/dist/testing/limetypes/participant.d.ts +0 -166
  411. package/dist/testing/limetypes/participant.d.ts.map +0 -1
  412. package/dist/testing/limetypes/participant.js +0 -188
  413. package/dist/testing/limetypes/person.d.ts +0 -473
  414. package/dist/testing/limetypes/person.d.ts.map +0 -1
  415. package/dist/testing/limetypes/person.js +0 -530
  416. package/dist/testing/limetypes/recipient.d.ts +0 -148
  417. package/dist/testing/limetypes/recipient.d.ts.map +0 -1
  418. package/dist/testing/limetypes/recipient.js +0 -170
  419. package/dist/testing/limetypes/solutionimprovement.d.ts +0 -303
  420. package/dist/testing/limetypes/solutionimprovement.d.ts.map +0 -1
  421. package/dist/testing/limetypes/solutionimprovement.js +0 -344
  422. package/dist/testing/limetypes/successplan.d.ts +0 -210
  423. package/dist/testing/limetypes/successplan.d.ts.map +0 -1
  424. package/dist/testing/limetypes/successplan.js +0 -210
  425. package/dist/testing/limetypes/target.d.ts +0 -161
  426. package/dist/testing/limetypes/target.d.ts.map +0 -1
  427. package/dist/testing/limetypes/target.js +0 -178
  428. package/dist/testing/limetypes/todo.d.ts +0 -387
  429. package/dist/testing/limetypes/todo.d.ts.map +0 -1
  430. package/dist/testing/limetypes/todo.js +0 -426
  431. package/dist/testing/platform/index.d.ts +0 -10
  432. package/dist/testing/platform/index.d.ts.map +0 -1
  433. package/dist/testing/platform/index.js +0 -62
  434. package/dist/testing/platform/platform.spec.d.ts +0 -2
  435. package/dist/testing/platform/platform.spec.d.ts.map +0 -1
  436. package/dist/testing/platform/platform.spec.js +0 -41
  437. package/dist/testing/services/datetimeformatter.d.ts +0 -7
  438. package/dist/testing/services/datetimeformatter.d.ts.map +0 -1
  439. package/dist/testing/services/datetimeformatter.js +0 -10
  440. package/dist/testing/services/index.d.ts +0 -3
  441. package/dist/testing/services/index.d.ts.map +0 -1
  442. package/dist/testing/services/index.js +0 -2
  443. package/dist/testing/services/translator.d.ts +0 -7
  444. package/dist/testing/services/translator.d.ts.map +0 -1
  445. package/dist/testing/services/translator.js +0 -9
  446. package/dist/translator/index.js +0 -2
  447. package/dist/translator/translator.js +0 -1
  448. package/dist/translator/types.js +0 -3
  449. package/dist/userdata/decorator.js +0 -16
  450. package/dist/userdata/index.js +0 -3
  451. package/dist/userdata/repository.js +0 -1
  452. package/dist/userdata/types.js +0 -3
  453. package/dist/userpreferences/index.js +0 -2
  454. package/dist/userpreferences/repository.js +0 -1
  455. package/dist/userpreferences/types.js +0 -3
  456. package/dist/view/index.js +0 -3
  457. package/dist/view/layout.js +0 -1
  458. package/dist/view/registry.js +0 -1
  459. package/dist/view/types.js +0 -3
  460. package/dist/webcomponent/index.js +0 -2
  461. package/dist/webcomponent/registry.js +0 -1
  462. package/dist/webcomponent/types.js +0 -3
  463. 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
- });
@@ -1,2 +0,0 @@
1
- export * from './commandbus';
2
- export * from './types';
@@ -1,3 +0,0 @@
1
- import { PlatformServiceName } from '../core/platform';
2
- const SERVICE_NAME = 'commandBus';
3
- PlatformServiceName.CommandBus = SERVICE_NAME;
@@ -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
- }
@@ -1,2 +0,0 @@
1
- export * from './conditionregistry';
2
- export * from './types';
@@ -1,3 +0,0 @@
1
- import { PlatformServiceName } from '../core/platform';
2
- const SERVICE_NAME = 'conditionRegistry';
3
- PlatformServiceName.ConditionRegistry = SERVICE_NAME;
@@ -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
- }
@@ -1,3 +0,0 @@
1
- export * from './repository';
2
- export * from './types';
3
- export * from './decorator';
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { PlatformServiceName } from '../core/platform';
2
- const SERVICE_NAME = 'state.configs';
3
- PlatformServiceName.ConfigRepository = SERVICE_NAME;
@@ -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
- }