@limetech/lime-web-components 5.0.1 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/README.md +9 -2
  2. package/dist/application/decorators/application.d.ts +5 -2
  3. package/dist/application/decorators/application.d.ts.map +1 -0
  4. package/dist/application/decorators/application.js +4 -2
  5. package/dist/application/decorators/index.d.ts +1 -0
  6. package/dist/application/decorators/index.d.ts.map +1 -0
  7. package/dist/application/decorators/session.d.ts +5 -2
  8. package/dist/application/decorators/session.d.ts.map +1 -0
  9. package/dist/application/decorators/session.js +4 -2
  10. package/dist/application/decorators/user.d.ts +5 -2
  11. package/dist/application/decorators/user.d.ts.map +1 -0
  12. package/dist/application/decorators/user.js +4 -2
  13. package/dist/application/index.d.ts +1 -0
  14. package/dist/application/index.d.ts.map +1 -0
  15. package/dist/application/session.d.ts +5 -0
  16. package/dist/application/session.d.ts.map +1 -0
  17. package/dist/application/types.d.ts +1 -0
  18. package/dist/application/types.d.ts.map +1 -0
  19. package/dist/application/user.d.ts +14 -2
  20. package/dist/application/user.d.ts.map +1 -0
  21. package/dist/commandbus/commandbus.d.ts +69 -25
  22. package/dist/commandbus/commandbus.d.ts.map +1 -0
  23. package/dist/commandbus/commandbus.js +13 -8
  24. package/dist/commandbus/index.d.ts +1 -0
  25. package/dist/commandbus/index.d.ts.map +1 -0
  26. package/dist/commandbus/types.d.ts +2 -1
  27. package/dist/commandbus/types.d.ts.map +1 -0
  28. package/dist/config/decorator.d.ts +7 -2
  29. package/dist/config/decorator.d.ts.map +1 -0
  30. package/dist/config/decorator.js +4 -2
  31. package/dist/config/index.d.ts +1 -0
  32. package/dist/config/index.d.ts.map +1 -0
  33. package/dist/config/repository.d.ts +7 -2
  34. package/dist/config/repository.d.ts.map +1 -0
  35. package/dist/config/types.d.ts +2 -1
  36. package/dist/config/types.d.ts.map +1 -0
  37. package/dist/core/context.d.ts +3 -0
  38. package/dist/core/context.d.ts.map +1 -0
  39. package/dist/core/decorators/factory.d.ts +13 -7
  40. package/dist/core/decorators/factory.d.ts.map +1 -0
  41. package/dist/core/decorators/factory.js +33 -32
  42. package/dist/core/decorators/factory.spec.d.ts +1 -0
  43. package/dist/core/decorators/factory.spec.d.ts.map +1 -0
  44. package/dist/core/decorators/index.d.ts +1 -0
  45. package/dist/core/decorators/index.d.ts.map +1 -0
  46. package/dist/core/index.d.ts +1 -0
  47. package/dist/core/index.d.ts.map +1 -0
  48. package/dist/core/lime-web-component.d.ts +3 -0
  49. package/dist/core/lime-web-component.d.ts.map +1 -0
  50. package/dist/core/platform.d.ts +14 -5
  51. package/dist/core/platform.d.ts.map +1 -0
  52. package/dist/core/platform.js +2 -0
  53. package/dist/core/plugin-loader.d.ts +3 -0
  54. package/dist/core/plugin-loader.d.ts.map +1 -0
  55. package/dist/core/state.d.ts +12 -3
  56. package/dist/core/state.d.ts.map +1 -0
  57. package/dist/device/decorator.d.ts +8 -5
  58. package/dist/device/decorator.d.ts.map +1 -0
  59. package/dist/device/decorator.js +4 -2
  60. package/dist/device/device.d.ts +8 -3
  61. package/dist/device/device.d.ts.map +1 -0
  62. package/dist/device/index.d.ts +1 -0
  63. package/dist/device/index.d.ts.map +1 -0
  64. package/dist/device/types.d.ts +2 -1
  65. package/dist/device/types.d.ts.map +1 -0
  66. package/dist/dialog/dialog.d.ts +23 -10
  67. package/dist/dialog/dialog.d.ts.map +1 -0
  68. package/dist/dialog/index.d.ts +1 -0
  69. package/dist/dialog/index.d.ts.map +1 -0
  70. package/dist/dialog/types.d.ts +1 -0
  71. package/dist/dialog/types.d.ts.map +1 -0
  72. package/dist/es5/index.js +1 -0
  73. package/dist/es5/userpreferences/index.js +5 -0
  74. package/dist/es5/userpreferences/repository.js +2 -0
  75. package/dist/es5/userpreferences/types.js +5 -0
  76. package/dist/eventdispatcher/eventdispatcher.d.ts +9 -6
  77. package/dist/eventdispatcher/eventdispatcher.d.ts.map +1 -0
  78. package/dist/eventdispatcher/index.d.ts +1 -0
  79. package/dist/eventdispatcher/index.d.ts.map +1 -0
  80. package/dist/eventdispatcher/types.d.ts +2 -1
  81. package/dist/eventdispatcher/types.d.ts.map +1 -0
  82. package/dist/filter/decorator.d.ts +7 -2
  83. package/dist/filter/decorator.d.ts.map +1 -0
  84. package/dist/filter/decorator.js +4 -2
  85. package/dist/filter/index.d.ts +1 -0
  86. package/dist/filter/index.d.ts.map +1 -0
  87. package/dist/filter/repository.d.ts +9 -4
  88. package/dist/filter/repository.d.ts.map +1 -0
  89. package/dist/filter/types.d.ts +2 -1
  90. package/dist/filter/types.d.ts.map +1 -0
  91. package/dist/http/http.d.ts +39 -19
  92. package/dist/http/http.d.ts.map +1 -0
  93. package/dist/http/index.d.ts +1 -0
  94. package/dist/http/index.d.ts.map +1 -0
  95. package/dist/http/types.d.ts +1 -0
  96. package/dist/http/types.d.ts.map +1 -0
  97. package/dist/index.d.ts +8 -0
  98. package/dist/index.d.ts.map +1 -0
  99. package/dist/index.js +7 -0
  100. package/dist/keybindings/index.d.ts +1 -0
  101. package/dist/keybindings/index.d.ts.map +1 -0
  102. package/dist/keybindings/registry.d.ts +15 -9
  103. package/dist/keybindings/registry.d.ts.map +1 -0
  104. package/dist/keybindings/types.d.ts +3 -2
  105. package/dist/keybindings/types.d.ts.map +1 -0
  106. package/dist/limeobject/commands/bulk-create-dialog.d.ts +3 -0
  107. package/dist/limeobject/commands/bulk-create-dialog.d.ts.map +1 -0
  108. package/dist/limeobject/commands/bulk-create-dialog.js +2 -0
  109. package/dist/limeobject/commands/create-dialog.d.ts +3 -0
  110. package/dist/limeobject/commands/create-dialog.d.ts.map +1 -0
  111. package/dist/limeobject/commands/create-dialog.js +2 -0
  112. package/dist/limeobject/commands/delete-object.d.ts +3 -0
  113. package/dist/limeobject/commands/delete-object.d.ts.map +1 -0
  114. package/dist/limeobject/commands/delete-object.js +2 -0
  115. package/dist/limeobject/commands/index.d.ts +1 -0
  116. package/dist/limeobject/commands/index.d.ts.map +1 -0
  117. package/dist/limeobject/commands/object-access.d.ts +3 -0
  118. package/dist/limeobject/commands/object-access.d.ts.map +1 -0
  119. package/dist/limeobject/commands/object-access.js +2 -0
  120. package/dist/limeobject/commands/save-object.d.ts +3 -0
  121. package/dist/limeobject/commands/save-object.d.ts.map +1 -0
  122. package/dist/limeobject/commands/save-object.js +2 -0
  123. package/dist/limeobject/decorator.d.ts +11 -4
  124. package/dist/limeobject/decorator.d.ts.map +1 -0
  125. package/dist/limeobject/decorator.js +8 -4
  126. package/dist/limeobject/error.d.ts +35 -0
  127. package/dist/limeobject/error.d.ts.map +1 -0
  128. package/dist/limeobject/index.d.ts +1 -0
  129. package/dist/limeobject/index.d.ts.map +1 -0
  130. package/dist/limeobject/limeobject.d.ts +6 -3
  131. package/dist/limeobject/limeobject.d.ts.map +1 -0
  132. package/dist/limeobject/repository.d.ts +38 -13
  133. package/dist/limeobject/repository.d.ts.map +1 -0
  134. package/dist/limeobject/types.d.ts +2 -1
  135. package/dist/limeobject/types.d.ts.map +1 -0
  136. package/dist/limetype/acl.d.ts +5 -0
  137. package/dist/limetype/acl.d.ts.map +1 -0
  138. package/dist/limetype/decorator.d.ts +11 -4
  139. package/dist/limetype/decorator.d.ts.map +1 -0
  140. package/dist/limetype/decorator.js +8 -4
  141. package/dist/limetype/index.d.ts +1 -0
  142. package/dist/limetype/index.d.ts.map +1 -0
  143. package/dist/limetype/limetype.d.ts +9 -2
  144. package/dist/limetype/limetype.d.ts.map +1 -0
  145. package/dist/limetype/property.d.ts +34 -1
  146. package/dist/limetype/property.d.ts.map +1 -0
  147. package/dist/limetype/property.js +20 -0
  148. package/dist/limetype/types.d.ts +1 -0
  149. package/dist/limetype/types.d.ts.map +1 -0
  150. package/dist/navigator/command.d.ts +3 -12
  151. package/dist/navigator/command.d.ts.map +1 -0
  152. package/dist/navigator/command.js +2 -0
  153. package/dist/navigator/decorator.d.ts +7 -3
  154. package/dist/navigator/decorator.d.ts.map +1 -0
  155. package/dist/navigator/decorator.js +4 -3
  156. package/dist/navigator/index.d.ts +1 -0
  157. package/dist/navigator/index.d.ts.map +1 -0
  158. package/dist/navigator/navigator.d.ts +48 -20
  159. package/dist/navigator/navigator.d.ts.map +1 -0
  160. package/dist/navigator/types.d.ts +3 -2
  161. package/dist/navigator/types.d.ts.map +1 -0
  162. package/dist/notifications/index.d.ts +1 -0
  163. package/dist/notifications/index.d.ts.map +1 -0
  164. package/dist/notifications/notifications.d.ts +25 -14
  165. package/dist/notifications/notifications.d.ts.map +1 -0
  166. package/dist/notifications/types.d.ts +1 -0
  167. package/dist/notifications/types.d.ts.map +1 -0
  168. package/dist/query/index.d.ts +1 -0
  169. package/dist/query/index.d.ts.map +1 -0
  170. package/dist/query/query.d.ts +21 -0
  171. package/dist/query/query.d.ts.map +1 -0
  172. package/dist/query/query.js +4 -0
  173. package/dist/query/service.d.ts +4 -1
  174. package/dist/query/service.d.ts.map +1 -0
  175. package/dist/query/types.d.ts +1 -0
  176. package/dist/query/types.d.ts.map +1 -0
  177. package/dist/routeregistry/index.d.ts +1 -0
  178. package/dist/routeregistry/index.d.ts.map +1 -0
  179. package/dist/routeregistry/registry.d.ts +20 -7
  180. package/dist/routeregistry/registry.d.ts.map +1 -0
  181. package/dist/routeregistry/types.d.ts +3 -2
  182. package/dist/routeregistry/types.d.ts.map +1 -0
  183. package/dist/task/index.d.ts +1 -0
  184. package/dist/task/index.d.ts.map +1 -0
  185. package/dist/task/repository.d.ts +34 -8
  186. package/dist/task/repository.d.ts.map +1 -0
  187. package/dist/task/repository.js +9 -5
  188. package/dist/task/types.d.ts +2 -1
  189. package/dist/task/types.d.ts.map +1 -0
  190. package/dist/testing/component-testing.d.ts +22 -9
  191. package/dist/testing/component-testing.d.ts.map +1 -0
  192. package/dist/testing/component-testing.js +31 -28
  193. package/dist/testing/component-testing.spec.d.ts +1 -0
  194. package/dist/testing/component-testing.spec.d.ts.map +1 -0
  195. package/dist/testing/index.d.ts +1 -0
  196. package/dist/testing/index.d.ts.map +1 -0
  197. package/dist/testing/limeobjects/company.d.ts +1 -0
  198. package/dist/testing/limeobjects/company.d.ts.map +1 -0
  199. package/dist/testing/limeobjects/coworker.d.ts +1 -0
  200. package/dist/testing/limeobjects/coworker.d.ts.map +1 -0
  201. package/dist/testing/limeobjects/deal.d.ts +1 -0
  202. package/dist/testing/limeobjects/deal.d.ts.map +1 -0
  203. package/dist/testing/limeobjects/document.d.ts +1 -0
  204. package/dist/testing/limeobjects/document.d.ts.map +1 -0
  205. package/dist/testing/limeobjects/index.d.ts +1 -0
  206. package/dist/testing/limeobjects/index.d.ts.map +1 -0
  207. package/dist/testing/limeobjects/person.d.ts +1 -0
  208. package/dist/testing/limeobjects/person.d.ts.map +1 -0
  209. package/dist/testing/limetypes/campaign.d.ts +1 -0
  210. package/dist/testing/limetypes/campaign.d.ts.map +1 -0
  211. package/dist/testing/limetypes/company.d.ts +1 -0
  212. package/dist/testing/limetypes/company.d.ts.map +1 -0
  213. package/dist/testing/limetypes/consent.d.ts +1 -0
  214. package/dist/testing/limetypes/consent.d.ts.map +1 -0
  215. package/dist/testing/limetypes/consenttype.d.ts +1 -0
  216. package/dist/testing/limetypes/consenttype.d.ts.map +1 -0
  217. package/dist/testing/limetypes/coworker.d.ts +1 -0
  218. package/dist/testing/limetypes/coworker.d.ts.map +1 -0
  219. package/dist/testing/limetypes/deal.d.ts +1 -0
  220. package/dist/testing/limetypes/deal.d.ts.map +1 -0
  221. package/dist/testing/limetypes/document.d.ts +1 -0
  222. package/dist/testing/limetypes/document.d.ts.map +1 -0
  223. package/dist/testing/limetypes/helpdesk.d.ts +1 -0
  224. package/dist/testing/limetypes/helpdesk.d.ts.map +1 -0
  225. package/dist/testing/limetypes/helpdesktype.d.ts +1 -0
  226. package/dist/testing/limetypes/helpdesktype.d.ts.map +1 -0
  227. package/dist/testing/limetypes/history.d.ts +1 -0
  228. package/dist/testing/limetypes/history.d.ts.map +1 -0
  229. package/dist/testing/limetypes/index.d.ts +1 -0
  230. package/dist/testing/limetypes/index.d.ts.map +1 -0
  231. package/dist/testing/limetypes/infotiles.d.ts +1 -0
  232. package/dist/testing/limetypes/infotiles.d.ts.map +1 -0
  233. package/dist/testing/limetypes/localize.d.ts +1 -0
  234. package/dist/testing/limetypes/localize.d.ts.map +1 -0
  235. package/dist/testing/limetypes/mailing.d.ts +1 -0
  236. package/dist/testing/limetypes/mailing.d.ts.map +1 -0
  237. package/dist/testing/limetypes/office.d.ts +1 -0
  238. package/dist/testing/limetypes/office.d.ts.map +1 -0
  239. package/dist/testing/limetypes/participant.d.ts +1 -0
  240. package/dist/testing/limetypes/participant.d.ts.map +1 -0
  241. package/dist/testing/limetypes/person.d.ts +1 -0
  242. package/dist/testing/limetypes/person.d.ts.map +1 -0
  243. package/dist/testing/limetypes/recipient.d.ts +1 -0
  244. package/dist/testing/limetypes/recipient.d.ts.map +1 -0
  245. package/dist/testing/limetypes/solutionimprovement.d.ts +1 -0
  246. package/dist/testing/limetypes/solutionimprovement.d.ts.map +1 -0
  247. package/dist/testing/limetypes/successplan.d.ts +1 -0
  248. package/dist/testing/limetypes/successplan.d.ts.map +1 -0
  249. package/dist/testing/limetypes/target.d.ts +1 -0
  250. package/dist/testing/limetypes/target.d.ts.map +1 -0
  251. package/dist/testing/limetypes/todo.d.ts +1 -0
  252. package/dist/testing/limetypes/todo.d.ts.map +1 -0
  253. package/dist/testing/platform/index.d.ts +2 -1
  254. package/dist/testing/platform/index.d.ts.map +1 -0
  255. package/dist/testing/platform/index.js +3 -3
  256. package/dist/testing/platform/platform.spec.d.ts +1 -0
  257. package/dist/testing/platform/platform.spec.d.ts.map +1 -0
  258. package/dist/translator/index.d.ts +1 -0
  259. package/dist/translator/index.d.ts.map +1 -0
  260. package/dist/translator/translator.d.ts +6 -3
  261. package/dist/translator/translator.d.ts.map +1 -0
  262. package/dist/translator/types.d.ts +1 -0
  263. package/dist/translator/types.d.ts.map +1 -0
  264. package/dist/userdata/decorator.d.ts +7 -2
  265. package/dist/userdata/decorator.d.ts.map +1 -0
  266. package/dist/userdata/decorator.js +4 -2
  267. package/dist/userdata/index.d.ts +1 -0
  268. package/dist/userdata/index.d.ts.map +1 -0
  269. package/dist/userdata/repository.d.ts +7 -5
  270. package/dist/userdata/repository.d.ts.map +1 -0
  271. package/dist/userdata/types.d.ts +1 -0
  272. package/dist/userdata/types.d.ts.map +1 -0
  273. package/dist/userpreferences/index.d.ts +3 -0
  274. package/dist/userpreferences/index.d.ts.map +1 -0
  275. package/dist/userpreferences/index.js +2 -0
  276. package/dist/userpreferences/repository.d.ts +27 -0
  277. package/dist/userpreferences/repository.d.ts.map +1 -0
  278. package/dist/userpreferences/repository.js +1 -0
  279. package/dist/userpreferences/types.d.ts +15 -0
  280. package/dist/userpreferences/types.d.ts.map +1 -0
  281. package/dist/userpreferences/types.js +3 -0
  282. package/package.json +25 -25
@@ -10,6 +10,7 @@
10
10
  * New locations can be registered using the {@link RouteRegistry} service
11
11
  *
12
12
  * @example
13
+ * ```
13
14
  * // Listen on navigation events
14
15
  * eventDispatcher.addListener('navigate', onNavigate);
15
16
  * navigator.navigate('/object/deal/1001');
@@ -17,8 +18,10 @@
17
18
  * function onNavigate(event: NavigationEvent) {
18
19
  * console.log(event.detail);
19
20
  * }
21
+ * ```
20
22
  *
21
- * @experimental
23
+ * @beta
24
+ * @group Navigation
22
25
  */
23
26
  export interface Navigator {
24
27
  /**
@@ -27,8 +30,8 @@ export interface Navigator {
27
30
  * @emits navigate - When the location has been changed the
28
31
  * {@link EventDispatcher} will emit a {@link NavigationEvent}
29
32
  *
30
- * @param {string} path path to the location
31
- * @param query query string parameters to append to the URL
33
+ * @param path - path to the location
34
+ * @param query - query string parameters to append to the URL
32
35
  */
33
36
  navigate(path: string, query?: Location['query']): void;
34
37
  /**
@@ -45,15 +48,15 @@ export interface Navigator {
45
48
  * When replacing, state will only be changed if a new value is provided.
46
49
  *
47
50
  * @emits navigate - When the location has been changed the
48
- * {@link EventDispatcherService} will emit a {@link NavigationEvent}
51
+ * {@link EventDispatcher} will emit a {@link NavigationEvent}
49
52
  *
50
- * @param location a new location or parts of the location to replace
53
+ * @param location - a new location or parts of the location to replace
51
54
  */
52
55
  navigate(location: LocationChange): void;
53
56
  /**
54
57
  * Get the current location
55
58
  *
56
- * @return {Location}
59
+ * @returns
57
60
  */
58
61
  getLocation(): Location;
59
62
  /**
@@ -71,6 +74,7 @@ export interface Navigator {
71
74
  * of them returns true.
72
75
  *
73
76
  * @example
77
+ * ```
74
78
  * navigator.addBlocker(myBlocker);
75
79
  *
76
80
  * function myBlocker(transition) {
@@ -82,27 +86,32 @@ export interface Navigator {
82
86
  * });
83
87
  * return true;
84
88
  * }
89
+ * ```
85
90
  *
86
- * @param {Blocker} blocker function to be called before navigation
91
+ * @param blocker - function to be called before navigation
87
92
  */
88
93
  addBlocker(blocker: Blocker): void;
89
94
  /**
90
95
  * Removes a previously configured blocker.
91
96
  *
92
- * @param {Blocker} blocker previously added blocker function
97
+ * @param blocker - previously added blocker function
93
98
  */
94
99
  removeBlocker(blocker: Blocker): void;
95
100
  /**
96
101
  * Create a URL for the given location
97
102
  *
98
- * @param {Partial<Location>} location the location to create a URL for.
103
+ * @param location - the location to create a URL for.
99
104
  * Any `state` of the location will be ignored.
100
105
  *
101
- * @return {URL} the URL to the location
106
+ * @returns the URL to the location
102
107
  */
103
108
  createUrl(location: Partial<Location>): URL;
104
109
  }
105
- export declare type Location = {
110
+ /**
111
+ * @beta
112
+ * @group Navigation
113
+ */
114
+ export type Location = {
106
115
  /**
107
116
  * The path to the location
108
117
  */
@@ -120,7 +129,11 @@ export declare type Location = {
120
129
  */
121
130
  state: unknown;
122
131
  };
123
- export declare type LocationChange = Partial<Location> & {
132
+ /**
133
+ * @beta
134
+ * @group Navigation
135
+ */
136
+ export type LocationChange = Partial<Location> & {
124
137
  /**
125
138
  * Specifies whether to push a new entry or replace the current entry in
126
139
  * the history stack
@@ -130,29 +143,44 @@ export declare type LocationChange = Partial<Location> & {
130
143
  /**
131
144
  * @event navigate - Emitted when a new location is navigated to or the current
132
145
  * location is updated
146
+ * @beta
147
+ * @group Navigation
133
148
  */
134
- export declare type NavigationEvent = CustomEvent<Location>;
149
+ export type NavigationEvent = CustomEvent<Location>;
135
150
  /**
136
151
  * Function to retry navigation
152
+ * @beta
153
+ * @group Navigation
137
154
  */
138
- export declare type Retry = () => void;
155
+ export type Retry = () => void;
139
156
  /**
140
157
  * {@link Transition} describes the transition when navigating from a
141
158
  * {@link Location} to another {@link Location}.
142
159
  *
143
- * @param {Location} to location to navigate to
144
- * @param {Location} from current location before navigation
145
- * @param {Retry} retry function to retry navigation
160
+ * @beta
161
+ * @group Navigation
146
162
  */
147
- export declare type Transition = {
163
+ export type Transition = {
164
+ /**
165
+ * Location to navigate to
166
+ */
148
167
  to: Location;
168
+ /**
169
+ * Current location before navigation
170
+ */
149
171
  from: Location;
172
+ /**
173
+ * Function to retry navigation
174
+ */
150
175
  retry: Retry;
151
176
  };
152
177
  /**
153
178
  * Function to determine if navigation should be blocked or not.
154
179
  *
155
- * @param {Transition} transition the transition to evaluate
180
+ * @param transition - the transition to evaluate
156
181
  * @returns true if navigation should be blocked
182
+ * @beta
183
+ * @group Navigation
157
184
  */
158
- export declare type Blocker = (transition: Transition) => boolean;
185
+ export type Blocker = (transition: Transition) => boolean;
186
+ //# sourceMappingURL=navigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator.d.ts","sourceRoot":"","sources":["../../src/navigator/navigator.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,SAAS;IACtB;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAExD;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAEzC;;;;OAIG;IACH,WAAW,IAAI,QAAQ,CAAC;IAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtC;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;CAC/C;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG;IAC7C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;OAEG;IACH,EAAE,EAAE,QAAQ,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC"}
@@ -3,10 +3,10 @@ declare const SERVICE_NAME = "navigator";
3
3
  declare module '../core/platform' {
4
4
  interface PlatformServiceNameType {
5
5
  /**
6
- * @see {@link Service Navigator}
6
+ * @see {@link Service | Navigator}
7
7
  *
8
8
  * @note Work in progress, do not use!
9
- * @private
9
+ * @beta
10
10
  */
11
11
  Navigator: typeof SERVICE_NAME;
12
12
  }
@@ -15,3 +15,4 @@ declare module '../core/platform' {
15
15
  }
16
16
  }
17
17
  export {};
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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;;;;;WAKG;QACH,SAAS,EAAE,OAAO,YAAY,CAAC;KAClC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;KAC5D;CACJ"}
@@ -1,2 +1,3 @@
1
1
  export * from './notifications';
2
2
  export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
@@ -1,23 +1,25 @@
1
1
  /**
2
2
  * Service for displaying different notification messages
3
+ * @public
4
+ * @group Notifications
3
5
  */
4
6
  export interface Notifications {
5
7
  /**
6
8
  * Display a blocking alert dialog
7
9
  *
8
- * @param {string} title title of the dialog
9
- * @param {string} message message to display in the dialog
10
- * @param {AlertOptions} options
11
- * @returns {Promise<void>} a promise that will be resolved when the dialog is closed
10
+ * @param title - title of the dialog
11
+ * @param message - message to display in the dialog
12
+ * @param options -
13
+ * @returns a promise that will be resolved when the dialog is closed
12
14
  */
13
15
  alert(title: string, message: string, options?: AlertOptions): Promise<void>;
14
16
  /**
15
17
  * Display a blocking confirm dialog
16
18
  *
17
- * @param {string} title title of the dialog
18
- * @param {string} message message to display in the dialog
19
- * @param {ConfirmOptions} options
20
- * @returns {Promise<boolean>} a promise that will be resolved to true when the dialog is closed.
19
+ * @param title - title of the dialog
20
+ * @param message - message to display in the dialog
21
+ * @param options -
22
+ * @returns a promise that will be resolved to true when the dialog is closed.
21
23
  * If the accepting button was pressed, the promise will resolve to true.
22
24
  * Otherwise, the promise will resolve to false.
23
25
  */
@@ -25,9 +27,9 @@ export interface Notifications {
25
27
  /**
26
28
  * Display a non-blocking notification
27
29
  *
28
- * @param {string} message message to display in the notification
29
- * @param {NotificationOptions} options
30
- * @returns {Promise<boolean>} a promise that will be resolved when the notification is closed.
30
+ * @param message - message to display in the notification
31
+ * @param options -
32
+ * @returns a promise that will be resolved when the notification is closed.
31
33
  * If the notification has an action button and it was pressed, the promise will resolve to true.
32
34
  * Otherwise, the promise will resolve to false.
33
35
  */
@@ -35,9 +37,9 @@ export interface Notifications {
35
37
  /**
36
38
  * Display a non-blocking and non-transient message
37
39
  *
38
- * @param {string} message message to display in the banner
39
- * @param {ReportOptions} options
40
- * @returns {Promise<boolean>} a promise that will be resolved when the notification is closed.
40
+ * @param message - message to display in the banner
41
+ * @param options -
42
+ * @returns a promise that will be resolved when the notification is closed.
41
43
  * If the notification has an action button and it was pressed, the promise will resolve to true.
42
44
  * Otherwise, the promise will resolve to false.
43
45
  */
@@ -45,6 +47,8 @@ export interface Notifications {
45
47
  }
46
48
  /**
47
49
  * Options for the confirmation dialog
50
+ * @public
51
+ * @group Notifications
48
52
  */
49
53
  export interface AlertOptions {
50
54
  /**
@@ -54,6 +58,8 @@ export interface AlertOptions {
54
58
  }
55
59
  /**
56
60
  * Options for the confirmation dialog
61
+ * @public
62
+ * @group Notifications
57
63
  */
58
64
  export interface ConfirmOptions {
59
65
  /**
@@ -67,6 +73,8 @@ export interface ConfirmOptions {
67
73
  }
68
74
  /**
69
75
  * Options for notifications
76
+ * @public
77
+ * @group Notifications
70
78
  */
71
79
  export interface NotificationOptions {
72
80
  /**
@@ -88,6 +96,8 @@ export interface NotificationOptions {
88
96
  }
89
97
  /**
90
98
  * Options for reports
99
+ * @public
100
+ * @group Notifications
91
101
  */
92
102
  export interface ReportOptions {
93
103
  /**
@@ -99,3 +109,4 @@ export interface ReportOptions {
99
109
  */
100
110
  icon?: string;
101
111
  }
112
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;;OAOG;IACH,KAAK,CACD,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;;OASG;IACH,OAAO,CACH,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzE;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtE;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -12,3 +12,4 @@ declare module '../core/platform' {
12
12
  }
13
13
  }
14
14
  export {};
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/notifications/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,QAAA,MAAM,YAAY,kBAAkB,CAAC;AAIrC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,YAAY,EAAE,OAAO,YAAY,CAAC;KACrC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC;KACrE;CACJ"}
@@ -1,3 +1,4 @@
1
1
  export * from './query';
2
2
  export * from './service';
3
3
  export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @public
3
+ * @group Query
4
+ */
1
5
  export interface Query {
2
6
  limetype: string;
3
7
  limit?: number;
@@ -9,16 +13,28 @@ export interface Query {
9
13
  aggregates?: object;
10
14
  };
11
15
  }
16
+ /**
17
+ * @public
18
+ * @group Query
19
+ */
12
20
  export interface QueryResponse {
13
21
  objects: any[];
14
22
  aggregates: any;
15
23
  }
24
+ /**
25
+ * @public
26
+ * @group Query
27
+ */
16
28
  export interface Expression {
17
29
  key?: string;
18
30
  op: Operator;
19
31
  exp: any;
20
32
  type?: 'filter';
21
33
  }
34
+ /**
35
+ * @public
36
+ * @group Query
37
+ */
22
38
  export declare enum Operator {
23
39
  AND = "AND",
24
40
  OR = "OR",
@@ -34,6 +50,10 @@ export declare enum Operator {
34
50
  GREATER_OR_EQUAL = ">=",
35
51
  ENDS = "=$"
36
52
  }
53
+ /**
54
+ * @public
55
+ * @group Query
56
+ */
37
57
  export interface Filter {
38
58
  id: string;
39
59
  limetype: string;
@@ -46,3 +66,4 @@ export interface Filter {
46
66
  };
47
67
  iduser?: number;
48
68
  }
69
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +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,WAAW,UAAU;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;GAGG;AACH,oBAAY,QAAQ;IAChB,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,UAAU,OAAO;IACjB,OAAO,MAAM;IACb,IAAI,MAAM;IACV,EAAE,OAAO;IACT,MAAM,OAAO;IACb,IAAI,MAAM;IACV,aAAa,OAAO;IACpB,gBAAgB,OAAO;IACvB,IAAI,OAAO;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE;QACF,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE;QACV,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @public
3
+ * @group Query
4
+ */
1
5
  export var Operator;
2
6
  (function (Operator) {
3
7
  Operator["AND"] = "AND";
@@ -1,12 +1,15 @@
1
1
  import { Query, QueryResponse } from '../query';
2
2
  /**
3
3
  * Service for executing queries using the query objects API
4
+ * @public
5
+ * @group Query
4
6
  */
5
7
  export interface QueryService {
6
8
  /**
7
9
  * Execute a query
8
10
  *
9
- * @param query
11
+ * @param query -
10
12
  */
11
13
  execute(query: Query): Promise<QueryResponse>;
12
14
  }
15
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/query/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACjD"}
@@ -12,3 +12,4 @@ declare module '../core/platform' {
12
12
  }
13
13
  }
14
14
  export {};
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/query/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,QAAA,MAAM,YAAY,UAAU,CAAC;AAI7B,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,KAAK,EAAE,OAAO,YAAY,CAAC;KAC9B;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;KAC7D;CACJ"}
@@ -1,2 +1,3 @@
1
1
  export * from './registry';
2
2
  export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routeregistry/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -25,42 +25,53 @@ import { LimeWebComponent } from '../core';
25
25
  * - `state`
26
26
  *
27
27
  * @example
28
+ * ```
28
29
  * // Registering a simple route
29
30
  * routeRegistry.registerRoute('/foo', 'foo-component');
31
+ * ```
30
32
  *
31
33
  * @example
34
+ * ```
32
35
  * // Registering a route with parameters
33
36
  * // `name` will be used as a prop on the component when it renders
34
37
  * routeRegistry.registerRoute('/foo/:name', 'foo-component');
38
+ * ```
35
39
  *
36
40
  * @example
41
+ * ```
37
42
  * // Registering a route with a context
38
43
  * // The `context` prop of the component will have the values of the
39
44
  * // `limetype` and `id` parameters
40
45
  * routeRegistry.registerRoute('/foo/:limetype/:id', 'foo-component');
46
+ * ```
41
47
  *
42
- * @experimental
48
+ * @beta
49
+ * @group Registering routes
43
50
  */
44
51
  export interface RouteRegistry {
45
52
  /**
46
53
  * Register a route for a component.
47
54
  *
48
- * @param {string} pathPattern - path pattern used to match a component.
55
+ * @param pathPattern - path pattern used to match a component.
49
56
  * For more information about URL patterns read [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API).
50
- * @param {string} component - Name of the component to register for the
57
+ * @param component - Name of the component to register for the
51
58
  * specified pattern
52
59
  */
53
60
  registerRoute(pathPattern: string, component: string): void;
54
61
  /**
55
62
  * Find the component for a given path.
56
63
  *
57
- * @param {string} path - The path to match against.
58
- * @return {MatchedComponent | undefined} the matched component along with
64
+ * @param path - The path to match against.
65
+ * @returns the matched component along with
59
66
  * path parameters, or `undefined` if no component could be found.
60
67
  */
61
68
  findComponent(path: string): MatchedComponent | undefined;
62
69
  }
63
- export declare type MatchedComponent = {
70
+ /**
71
+ * @beta
72
+ * @group Registering routes
73
+ */
74
+ export type MatchedComponent = {
64
75
  /**
65
76
  * The name of the component.
66
77
  */
@@ -74,7 +85,8 @@ export declare type MatchedComponent = {
74
85
  * Interface for components that are routed to and are registered with the
75
86
  * {@link RouteRegistry} service.
76
87
  *
77
- * @experimental
88
+ * @beta
89
+ * @group Registering routes
78
90
  */
79
91
  export interface RouteComponent extends LimeWebComponent {
80
92
  /**
@@ -90,3 +102,4 @@ export interface RouteComponent extends LimeWebComponent {
90
102
  */
91
103
  state?: unknown;
92
104
  }
105
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/routeregistry/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;;OAOG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;;;;OAMG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAAC;CAC7D;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -3,10 +3,10 @@ declare const SERVICE_NAME = "routeRegistry";
3
3
  declare module '../core/platform' {
4
4
  interface PlatformServiceNameType {
5
5
  /**
6
- * @see {@link Service RouteRegistry}
6
+ * @see {@link Service | RouteRegistry}
7
7
  *
8
8
  * @note Work in progress, do not use!
9
- * @private
9
+ * @beta
10
10
  */
11
11
  RouteRegistry: typeof SERVICE_NAME;
12
12
  }
@@ -15,3 +15,4 @@ declare module '../core/platform' {
15
15
  }
16
16
  }
17
17
  export {};
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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;;;;;WAKG;QACH,aAAa,EAAE,OAAO,YAAY,CAAC;KACtC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC;KAChE;CACJ"}
@@ -1,2 +1,3 @@
1
1
  export * from './repository';
2
2
  export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/task/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -1,26 +1,32 @@
1
1
  import { StateRepository } from '../core';
2
2
  /**
3
3
  * Service for creating background tasks
4
+ * @public
5
+ * @group Tasks
4
6
  */
5
7
  export interface TaskRepository extends StateRepository {
6
8
  /**
7
9
  * Create a new background task
8
10
  *
9
- * @param url url to the resource that will create the task
10
- * @param data task specific data
11
- * @param cancelAction true to allow task creation to be cancelled
12
- * @param message notification message to display before the task is created instead of the default one
11
+ * @param url - url to the resource that will create the task
12
+ * @param data - task specific data
13
+ * @param cancelAction - true to allow task creation to be cancelled
14
+ * @param message - notification message to display before the task is created instead of the default one
13
15
  * @returns a promise that resolves to the id of the task if it was created successfully
14
16
  */
15
17
  create(url: string, data: any, cancelAction?: boolean, message?: string): Promise<string | void>;
16
18
  /**
17
19
  * Get status about specific tasks
18
20
  *
19
- * @param ids the ids of the tasks to check
21
+ * @param ids - the ids of the tasks to check
20
22
  * @returns a promise that resolves to the status about the tasks
21
23
  */
22
24
  getStatus(ids: string[]): Promise<TaskStatus[]>;
23
25
  }
26
+ /**
27
+ * @public
28
+ * @group Tasks
29
+ */
24
30
  export declare enum TaskState {
25
31
  /**
26
32
  * Task state is unknown
@@ -43,6 +49,10 @@ export declare enum TaskState {
43
49
  */
44
50
  Failure = "FAILURE"
45
51
  }
52
+ /**
53
+ * @public
54
+ * @group Tasks
55
+ */
46
56
  export interface TaskStatus {
47
57
  /**
48
58
  * ID of the task
@@ -59,24 +69,40 @@ export interface TaskStatus {
59
69
  }
60
70
  /**
61
71
  * Events dispatched by the task service
72
+ * @public
73
+ * @group Tasks
62
74
  */
63
75
  export declare enum TaskEventType {
64
76
  /**
65
77
  * Dispatched when a task has been created.
66
78
  *
67
- * @detail { task }
79
+ * @see {@link TaskEvent}
68
80
  */
69
81
  Created = "task.created",
70
82
  /**
71
83
  * Dispatched when the task has successfully been completed
72
84
  *
73
- * @detail { task }
85
+ * @see {@link TaskEvent}
74
86
  */
75
87
  Success = "task.success",
76
88
  /**
77
89
  * Dispatched if an error occured while running the task
78
90
  *
79
- * @detail { task | error? }
91
+ * @see {@link TaskEvent}
80
92
  */
81
93
  Failed = "task.failed"
82
94
  }
95
+ /**
96
+ * @public
97
+ * @group Tasks
98
+ */
99
+ export type TaskEventDetail = {
100
+ task: TaskStatus;
101
+ error?: unknown;
102
+ };
103
+ /**
104
+ * @public
105
+ * @group Tasks
106
+ */
107
+ export type TaskEvent = CustomEvent<TaskEventDetail>;
108
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/task/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACnD;;;;;;;;OAQG;IACH,MAAM,CACF,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,YAAY,CAAC,EAAE,OAAO,EACtB,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE1B;;;;;OAKG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH,oBAAY,SAAS;IACjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,OAAO,YAAY;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACrB;;;;OAIG;IACH,OAAO,iBAAiB;IAExB;;;;OAIG;IACH,OAAO,iBAAiB;IAExB;;;;OAIG;IACH,MAAM,gBAAgB;CACzB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC"}