@bizdoc/core 1.13.8 → 1.13.12

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 (1216) hide show
  1. package/LICENSE.md +1 -0
  2. package/assets/themes/brown.min.css +8 -8
  3. package/assets/themes/dark.min.css +7 -7
  4. package/assets/themes/deep-purple-teal.min.css +8 -8
  5. package/assets/themes/default.min.css +8 -8
  6. package/assets/themes/green.min.css +8 -8
  7. package/assets/themes/indigo.min.css +8 -8
  8. package/karma.conf.js +44 -0
  9. package/ng-package.json +11 -0
  10. package/package.json +78 -78
  11. package/src/lib/admin/admin-dismiss.service.ts +24 -0
  12. package/src/lib/admin/admin-menu.component.html +18 -0
  13. package/src/lib/admin/admin-menu.component.ts +20 -0
  14. package/src/lib/admin/core/ace.input.ts +133 -0
  15. package/src/lib/admin/core/color-picker.input.scss +17 -0
  16. package/src/lib/admin/core/color-picker.input.ts +175 -0
  17. package/src/lib/admin/core/search.input.ts +32 -0
  18. package/src/lib/admin/diff/_configuration-diff-theme.scss +72 -0
  19. package/src/lib/admin/diff/configuration-diff.component.html +24 -0
  20. package/src/lib/admin/diff/configuration-diff.component.scss +16 -0
  21. package/src/lib/admin/diff/configuration-diff.component.ts +552 -0
  22. package/src/lib/admin/document-trace/_timeline-theme.scss +70 -0
  23. package/src/lib/admin/document-trace/document-trace.component.html +55 -0
  24. package/src/lib/admin/document-trace/document-trace.component.scss +10 -0
  25. package/src/lib/admin/document-trace/document-trace.component.ts +471 -0
  26. package/src/lib/admin/document-trace/reassign.dialog.html +24 -0
  27. package/src/lib/admin/document-trace/reassign.dialog.ts +34 -0
  28. package/src/lib/admin/document-trace/timeline.ts +45 -0
  29. package/src/lib/admin/document-trace/trace-element.component.html +57 -0
  30. package/src/lib/admin/document-trace/trace-element.component.scss +21 -0
  31. package/src/lib/admin/document-trace/trace-element.component.ts +106 -0
  32. package/src/lib/admin/form/form.resolve.service.ts +13 -0
  33. package/src/lib/admin/form/form.service.ts +23 -0
  34. package/src/lib/admin/form/workflow/node-ref.ts +8 -0
  35. package/src/lib/admin/form/workflow/node.component.html +36 -0
  36. package/src/lib/admin/form/workflow/node.component.scss +4 -0
  37. package/src/lib/admin/form/workflow/node.component.ts +129 -0
  38. package/src/lib/admin/form/workflow/role-node.component.html +40 -0
  39. package/src/lib/admin/form/workflow/role-node.component.ts +66 -0
  40. package/src/lib/admin/form/workflow/tools.component.exp.ts +13 -0
  41. package/src/lib/admin/form/workflow/tools.component.html +1 -0
  42. package/src/lib/admin/form/workflow/workflow.component.html +73 -0
  43. package/src/lib/admin/form/workflow/workflow.component.scss +52 -0
  44. package/src/lib/admin/form/workflow/workflow.component.ts +400 -0
  45. package/src/lib/admin/indices/manage-cube-index.component.html +35 -0
  46. package/src/lib/admin/indices/manage-cube-index.component.scss +16 -0
  47. package/src/lib/admin/indices/manage-cube-index.component.ts +155 -0
  48. package/src/lib/admin/patterns/patterns.component.html +70 -0
  49. package/src/lib/admin/patterns/patterns.component.ts +166 -0
  50. package/src/lib/admin/permissions/permissions.component.html +21 -0
  51. package/src/lib/admin/permissions/permissions.component.scss +7 -0
  52. package/src/lib/admin/permissions/permissions.component.ts +89 -0
  53. package/src/lib/admin/positions/positions-popup.component.html +23 -0
  54. package/src/lib/admin/positions/positions-popup.component.ts +68 -0
  55. package/src/lib/admin/positions/positions.component.html +148 -0
  56. package/src/lib/admin/positions/positions.component.scss +14 -0
  57. package/src/lib/admin/positions/positions.component.ts +463 -0
  58. package/src/lib/admin/profiler/profiler.component.html +109 -0
  59. package/src/lib/admin/profiler/profiler.component.scss +22 -0
  60. package/src/lib/admin/profiler/profiler.component.ts +268 -0
  61. package/src/lib/admin/utility-ref.ts +44 -0
  62. package/src/lib/admin/utility-wrapper.component.ts +52 -0
  63. package/src/lib/admin/utility.pane.component.ts +49 -0
  64. package/src/lib/app.component.ts +89 -0
  65. package/src/lib/bizdoc.module.ts +71 -0
  66. package/src/lib/browse/_browse-theme.scss +86 -0
  67. package/src/lib/browse/browse-items.component.html +171 -0
  68. package/src/lib/browse/browse-items.component.scss +52 -0
  69. package/src/lib/browse/browse-items.component.ts +455 -0
  70. package/src/lib/browse/browse.mobile.component.html +33 -0
  71. package/src/lib/browse/browse.mobile.component.ts +90 -0
  72. package/src/lib/browse/browse.pane.component.html +43 -0
  73. package/src/lib/browse/browse.pane.component.scss +4 -0
  74. package/src/lib/browse/browse.pane.component.ts +141 -0
  75. package/src/lib/browse/expanded-item/expanded-item.component.html +38 -0
  76. package/src/lib/browse/expanded-item/expanded-item.component.scss +35 -0
  77. package/src/lib/browse/expanded-item/expanded-item.component.ts +333 -0
  78. package/src/lib/browse/filter/filter.component.html +50 -0
  79. package/src/lib/browse/filter/filter.component.scss +10 -0
  80. package/src/lib/browse/filter/filter.component.ts +156 -0
  81. package/src/lib/browse/folders-menu.component.html +20 -0
  82. package/src/lib/browse/folders-menu.component.scss +15 -0
  83. package/src/lib/browse/folders-menu.component.ts +42 -0
  84. package/src/lib/chat/_chat-theme.scss +95 -0
  85. package/src/lib/chat/chat-info.ts +76 -0
  86. package/src/lib/chat/chat-pool.component.exp.ts +117 -0
  87. package/src/lib/chat/chat-pool.component.html +13 -0
  88. package/src/lib/chat/chat-pool.component.scss +10 -0
  89. package/src/lib/chat/chat.mobile.component.html +6 -0
  90. package/src/lib/chat/chat.mobile.component.scss +8 -0
  91. package/src/lib/chat/chat.mobile.component.ts +18 -0
  92. package/src/lib/chat/chat.service.ts +128 -0
  93. package/src/lib/chat/contacts.component.html +37 -0
  94. package/src/lib/chat/contacts.component.scss +49 -0
  95. package/src/lib/chat/contacts.component.ts +88 -0
  96. package/src/lib/chat/contacts.pane.component.ts +25 -0
  97. package/src/lib/chat/conversation.component.html +28 -0
  98. package/src/lib/chat/conversation.component.scss +14 -0
  99. package/src/lib/chat/conversation.component.ts +186 -0
  100. package/src/lib/chat/conversation.pane.component.ts +46 -0
  101. package/src/lib/compose/_compose-theme.scss +63 -0
  102. package/src/lib/compose/action/action-picker.component.html +25 -0
  103. package/src/lib/compose/action/action-picker.component.scss +4 -0
  104. package/src/lib/compose/action/action-picker.component.ts +72 -0
  105. package/src/lib/compose/action/action-ref.ts +19 -0
  106. package/src/lib/compose/action/action.base.ts +58 -0
  107. package/src/lib/compose/action/action.dialog.html +17 -0
  108. package/src/lib/compose/action/action.dialog.scss +1 -0
  109. package/src/lib/compose/action/action.dialog.ts +57 -0
  110. package/src/lib/compose/action/action.pane.dialog.exp.ts +77 -0
  111. package/src/lib/compose/action/action.pane.dialog.html +12 -0
  112. package/src/lib/compose/action/assign-action.component.html +35 -0
  113. package/src/lib/compose/action/assign-action.component.ts +77 -0
  114. package/src/lib/compose/action/return-action.component.html +13 -0
  115. package/src/lib/compose/action/return-action.component.ts +38 -0
  116. package/src/lib/compose/attachments/attachments.component.html +23 -0
  117. package/src/lib/compose/attachments/attachments.component.scss +21 -0
  118. package/src/lib/compose/attachments/attachments.component.ts +114 -0
  119. package/src/lib/compose/attachments/preview/attachment-preview.component.html +15 -0
  120. package/src/lib/compose/attachments/preview/attachment-preview.component.scss +36 -0
  121. package/src/lib/compose/attachments/preview/attachment-preview.component.ts +140 -0
  122. package/src/lib/compose/attachments/progress-button.directive.ts +18 -0
  123. package/src/lib/compose/can-deactivate-changes.service.ts +22 -0
  124. package/src/lib/compose/comments/_comments-theme.scss +82 -0
  125. package/src/lib/compose/comments/comment.component.html +36 -0
  126. package/src/lib/compose/comments/comment.component.ts +160 -0
  127. package/src/lib/compose/comments/comments.component.html +27 -0
  128. package/src/lib/compose/comments/comments.component.scss +33 -0
  129. package/src/lib/compose/comments/comments.component.ts +220 -0
  130. package/src/lib/compose/comments/comments.pane.component.ts +41 -0
  131. package/src/lib/compose/comments/edit-comment.component.html +3 -0
  132. package/src/lib/compose/comments/edit-comment.component.ts +35 -0
  133. package/src/lib/compose/comments/edits.component.html +7 -0
  134. package/src/lib/compose/comments/edits.component.ts +33 -0
  135. package/src/lib/compose/comments/quick-comment.component.exp.ts +60 -0
  136. package/src/lib/compose/comments/quick-comment.component.html +5 -0
  137. package/src/lib/compose/comments/quick-comment.component.scss +11 -0
  138. package/src/lib/compose/comments/votes.component.html +7 -0
  139. package/src/lib/compose/comments/votes.component.ts +38 -0
  140. package/src/lib/compose/compose-resolve.service.ts +42 -0
  141. package/src/lib/compose/compose.mobile.component.html +67 -0
  142. package/src/lib/compose/compose.mobile.component.scss +14 -0
  143. package/src/lib/compose/compose.mobile.component.ts +97 -0
  144. package/src/lib/compose/compose.pane.component.html +67 -0
  145. package/src/lib/compose/compose.pane.component.scss +6 -0
  146. package/src/lib/compose/compose.pane.component.ts +187 -0
  147. package/src/lib/compose/copy/copy.dialog.html +21 -0
  148. package/src/lib/compose/copy/copy.dialog.ts +40 -0
  149. package/src/lib/compose/dismiss.service.ts +26 -0
  150. package/src/lib/compose/document-resolver.service.ts +13 -0
  151. package/src/lib/compose/document.component.html +5 -0
  152. package/src/lib/compose/document.component.ts +41 -0
  153. package/src/lib/compose/document.mobile.component.ts +20 -0
  154. package/src/lib/compose/document.pane.component.ts +22 -0
  155. package/src/lib/compose/events/events.component.html +6 -0
  156. package/src/lib/compose/events/events.component.ts +21 -0
  157. package/src/lib/compose/form-ref.ts +53 -0
  158. package/src/lib/compose/form-selector/form-selector.sheet.html +10 -0
  159. package/src/lib/compose/form-selector/form-selector.sheet.ts +74 -0
  160. package/src/lib/compose/form.component.html +13 -0
  161. package/src/lib/compose/form.component.ts +446 -0
  162. package/src/lib/compose/maps/maps.component.html +3 -0
  163. package/src/lib/compose/maps/maps.component.ts +22 -0
  164. package/src/lib/compose/new-menu.component.html +13 -0
  165. package/src/lib/compose/new-menu.component.scss +11 -0
  166. package/src/lib/compose/new-menu.component.ts +106 -0
  167. package/src/lib/compose/privilage.directive.ts +43 -0
  168. package/src/lib/compose/recipient-resolver.service.ts +15 -0
  169. package/src/lib/compose/save-changes.dialog.html +13 -0
  170. package/src/lib/compose/save-changes.dialog.ts +10 -0
  171. package/src/lib/compose/state.component.ts +29 -0
  172. package/src/lib/compose/tag/tags.component.html +22 -0
  173. package/src/lib/compose/tag/tags.component.scss +1 -0
  174. package/src/lib/compose/tag/tags.component.ts +83 -0
  175. package/src/lib/compose/trace/flow.component.html +19 -0
  176. package/src/lib/compose/trace/flow.component.scss +7 -0
  177. package/src/lib/compose/trace/flow.component.ts +695 -0
  178. package/src/lib/compose/trace/people.component.ts +33 -0
  179. package/src/lib/compose/trace/trace.base.ts +72 -0
  180. package/src/lib/compose/trace/trace.component.html +57 -0
  181. package/src/lib/compose/trace/trace.component.scss +21 -0
  182. package/src/lib/compose/trace/trace.component.ts +368 -0
  183. package/src/lib/compose/trace/trace.pane.component.html +3 -0
  184. package/src/lib/compose/trace/trace.pane.component.scss +5 -0
  185. package/src/lib/compose/trace/trace.pane.component.ts +47 -0
  186. package/src/lib/compose/version-compare/_compare-theme.scss +147 -0
  187. package/src/lib/compose/version-compare/version-compare.component.ts +49 -0
  188. package/src/lib/compose/version-compare/version-compare.directive.ts +292 -0
  189. package/src/lib/compose/version-compare/version.pane.component.html +19 -0
  190. package/src/lib/compose/version-compare/version.pane.component.scss +8 -0
  191. package/src/lib/compose/version-compare/version.pane.component.ts +53 -0
  192. package/src/lib/core/NgComponentOutlet.ts +31 -0
  193. package/src/lib/core/account.service.ts +30 -0
  194. package/src/lib/core/animated-icon/animated-icon.directive.html +3 -0
  195. package/src/lib/core/animated-icon/animated-icon.directive.scss +12 -0
  196. package/src/lib/core/animated-icon/animated-icon.directive.ts +41 -0
  197. package/src/lib/core/animations.ts +207 -0
  198. package/src/lib/core/authentication.ts +7 -0
  199. package/src/lib/core/avatar/_avatar-theme.scss +60 -0
  200. package/src/lib/core/avatar/avatar.component.html +6 -0
  201. package/src/lib/core/avatar/avatar.component.ts +108 -0
  202. package/src/lib/core/base.ts +47 -0
  203. package/src/lib/core/can-activate.service.exp.ts +31 -0
  204. package/src/lib/core/colors.ts +322 -0
  205. package/src/lib/core/component-factory-resolver.ts +67 -0
  206. package/src/lib/core/configuration.ts +121 -0
  207. package/src/lib/core/controls/_daterange-theme.scss +16 -0
  208. package/src/lib/core/controls/address.input.ts +163 -0
  209. package/src/lib/core/controls/auto-complete.input.ts +218 -0
  210. package/src/lib/core/controls/combination-picker-body.html +34 -0
  211. package/src/lib/core/controls/combination-picker-body.scss +40 -0
  212. package/src/lib/core/controls/combination-picker-body.ts +194 -0
  213. package/src/lib/core/controls/combination-picker.html +6 -0
  214. package/src/lib/core/controls/combination-picker.scss +9 -0
  215. package/src/lib/core/controls/combination-picker.ts +243 -0
  216. package/src/lib/core/controls/combination-pool.html +10 -0
  217. package/src/lib/core/controls/combination-pool.scss +35 -0
  218. package/src/lib/core/controls/combination-pool.ts +92 -0
  219. package/src/lib/core/controls/file.input.html +48 -0
  220. package/src/lib/core/controls/file.input.scss +40 -0
  221. package/src/lib/core/controls/file.input.ts +363 -0
  222. package/src/lib/core/controls/select.input.ts +211 -0
  223. package/src/lib/core/controls/time-picker.html +4 -0
  224. package/src/lib/core/controls/time-picker.ts +199 -0
  225. package/src/lib/core/controls/timespan.input.ts +175 -0
  226. package/src/lib/core/datasource.service.ts +80 -0
  227. package/src/lib/core/decorators.ts +56 -0
  228. package/src/lib/core/firebase.service.ts +55 -0
  229. package/src/lib/core/functions.ts +241 -0
  230. package/src/lib/core/guide/_guide-theme.scss +197 -0
  231. package/src/lib/core/guide/guide.component.html +20 -0
  232. package/src/lib/core/guide/guide.component.ts +210 -0
  233. package/src/lib/core/guide/guide.service.ts +98 -0
  234. package/src/lib/core/http.interceptor.ts +80 -0
  235. package/src/lib/core/hub.service.ts +202 -0
  236. package/src/lib/core/identity/identity.component.html +2 -0
  237. package/src/lib/core/identity/identity.component.ts +57 -0
  238. package/src/lib/core/info/attachment-info.service.ts +48 -0
  239. package/src/lib/core/info/document-info.service.ts +14 -0
  240. package/src/lib/core/info/location-info.component.scss +13 -0
  241. package/src/lib/core/info/location-info.component.ts +64 -0
  242. package/src/lib/core/info/map-info.ts +33 -0
  243. package/src/lib/core/layout/autocomplete.field.ts +41 -0
  244. package/src/lib/core/layout/checkbox.field.ts +21 -0
  245. package/src/lib/core/layout/checkbox.scss +13 -0
  246. package/src/lib/core/layout/checkbox.ts +21 -0
  247. package/src/lib/core/layout/date-range.field.ts +32 -0
  248. package/src/lib/core/layout/date.field.ts +26 -0
  249. package/src/lib/core/layout/expression.field.ts +26 -0
  250. package/src/lib/core/layout/file.field.ts +27 -0
  251. package/src/lib/core/layout/html.field.ts +28 -0
  252. package/src/lib/core/layout/input.base.ts +12 -0
  253. package/src/lib/core/layout/input.field.ts +43 -0
  254. package/src/lib/core/layout/layout.component.scss +9 -0
  255. package/src/lib/core/layout/layout.component.ts +189 -0
  256. package/src/lib/core/layout/numeric.field.ts +24 -0
  257. package/src/lib/core/layout/select.field.ts +52 -0
  258. package/src/lib/core/layout/switch.field.ts +21 -0
  259. package/src/lib/core/layout/textarea.field.ts +21 -0
  260. package/src/lib/core/layout/timespan.field.ts +25 -0
  261. package/src/lib/core/lottie-animation.ts +37 -0
  262. package/src/lib/core/mailbox.service.ts +453 -0
  263. package/src/lib/core/models.ts +681 -0
  264. package/src/lib/core/none.component.scss +26 -0
  265. package/src/lib/core/none.component.ts +28 -0
  266. package/src/lib/core/pipes/action.pipe.ts +18 -0
  267. package/src/lib/core/pipes/calendar.pipe.ts +84 -0
  268. package/src/lib/core/pipes/date-format.pipe.ts +12 -0
  269. package/src/lib/core/pipes/daterange.pipe.ts +45 -0
  270. package/src/lib/core/pipes/difference.pipe.ts +9 -0
  271. package/src/lib/core/pipes/duration-format.pipe.ts +42 -0
  272. package/src/lib/core/pipes/duration.pipe.ts +13 -0
  273. package/src/lib/core/pipes/form.pipe.ts +19 -0
  274. package/src/lib/core/pipes/join.pipe.ts +10 -0
  275. package/src/lib/core/pipes/role.pipe.ts +19 -0
  276. package/src/lib/core/pipes/sanitize-html.pipe.ts +10 -0
  277. package/src/lib/core/pipes/sort.pipe.ts +34 -0
  278. package/src/lib/core/pipes/state.pipe.ts +19 -0
  279. package/src/lib/core/pipes/time-ago.pipe.ts +59 -0
  280. package/src/lib/core/pipes/translate.pipe.ts +22 -0
  281. package/src/lib/core/pipes/type-value.pipe.ts +37 -0
  282. package/src/lib/core/pipes/user-name.pipe.ts +14 -0
  283. package/src/lib/core/popup/_popup-theme.scss +363 -0
  284. package/src/lib/core/popup/popup-ref.ts +19 -0
  285. package/src/lib/core/popup/popup.component.html +6 -0
  286. package/src/lib/core/popup/popup.component.ts +40 -0
  287. package/src/lib/core/popup/popup.service.ts +156 -0
  288. package/src/lib/core/popup/tooltip.directive.ts +58 -0
  289. package/src/lib/core/prompt/ask/ask.dialog.html +6 -0
  290. package/src/lib/core/prompt/ask/ask.dialog.ts +35 -0
  291. package/src/lib/core/prompt/mask/mask.component.html +1 -0
  292. package/src/lib/core/prompt/mask/mask.component.scss +14 -0
  293. package/src/lib/core/prompt/mask/mask.component.ts +15 -0
  294. package/src/lib/core/prompt.service.ts +81 -0
  295. package/src/lib/core/router.ts +29 -0
  296. package/src/lib/core/session.service.ts +255 -0
  297. package/src/lib/core/slots/_slots-theme.scss +140 -0
  298. package/src/lib/core/slots/extended-tab.component.exp.ts +35 -0
  299. package/src/lib/core/slots/extended-tab.component.html +0 -0
  300. package/src/lib/core/slots/intro.pane.component.exp.ts +23 -0
  301. package/src/lib/core/slots/intro.pane.component.html +22 -0
  302. package/src/lib/core/slots/intro.pane.component.scss +8 -0
  303. package/src/lib/core/slots/pane-ref.ts +162 -0
  304. package/src/lib/core/slots/router.directive.ts +55 -0
  305. package/src/lib/core/slots/router.service.ts +54 -0
  306. package/src/lib/core/slots/slot.component.exp.ts +49 -0
  307. package/src/lib/core/slots/slot.component.html +15 -0
  308. package/src/lib/core/slots/slot.component.scss +18 -0
  309. package/src/lib/core/slots/slots.component.html +67 -0
  310. package/src/lib/core/slots/slots.component.scss +163 -0
  311. package/src/lib/core/slots/slots.component.ts +1171 -0
  312. package/src/lib/core/tagging/documents.component.html +11 -0
  313. package/src/lib/core/tagging/documents.component.ts +19 -0
  314. package/src/lib/core/tagging/edit-input.component.html +41 -0
  315. package/src/lib/core/tagging/edit-input.component.scss +21 -0
  316. package/src/lib/core/tagging/edit-input.component.ts +211 -0
  317. package/src/lib/core/tagging/emoji.component.ts +23 -0
  318. package/src/lib/core/tagging/tagging-item.directive.ts +34 -0
  319. package/src/lib/core/tagging/tagging.component-base.ts +29 -0
  320. package/src/lib/core/tagging/tagging.component.scss +22 -0
  321. package/src/lib/core/tagging/tagging.directive.ts +130 -0
  322. package/src/lib/core/tagging/tagging.pipe.ts +76 -0
  323. package/src/lib/core/tagging/users.component.html +13 -0
  324. package/src/lib/core/tagging/users.component.ts +28 -0
  325. package/src/lib/core/translate.service.ts +103 -0
  326. package/src/lib/core/translations.ts +1104 -0
  327. package/src/lib/core/window-title.service.ts +54 -0
  328. package/src/lib/cube/accum/accum.component.html +16 -0
  329. package/src/lib/cube/accum/accum.component.ts +265 -0
  330. package/src/lib/cube/chart/chart.component.html +32 -0
  331. package/src/lib/cube/chart/chart.component.ts +329 -0
  332. package/src/lib/cube/cube-info.service.ts +135 -0
  333. package/src/lib/cube/cube-menu.component.html +13 -0
  334. package/src/lib/cube/cube-menu.component.ts +18 -0
  335. package/src/lib/cube/cube-view.component.html +66 -0
  336. package/src/lib/cube/cube-view.component.ts +186 -0
  337. package/src/lib/cube/cube.service.ts +483 -0
  338. package/src/lib/cube/declarations.ts +24 -0
  339. package/src/lib/cube/explore/document-item.component.ts +28 -0
  340. package/src/lib/cube/explore/explore-item.component.scss +4 -0
  341. package/src/lib/cube/explore/explore-item.component.ts +23 -0
  342. package/src/lib/cube/explore/explore-items.component.html +25 -0
  343. package/src/lib/cube/explore/explore-items.component.scss +7 -0
  344. package/src/lib/cube/explore/explore-items.component.ts +185 -0
  345. package/src/lib/cube/explore/explore.pane.component.html +12 -0
  346. package/src/lib/cube/explore/explore.pane.component.ts +75 -0
  347. package/src/lib/cube/explore/item-resolver.service.ts +24 -0
  348. package/src/lib/cube/explore/item.pane.component.html +3 -0
  349. package/src/lib/cube/explore/item.pane.component.ts +23 -0
  350. package/src/lib/cube/filter/filter-tags.component.exp.ts +70 -0
  351. package/src/lib/cube/filter/filter-tags.component.html +11 -0
  352. package/src/lib/cube/filter/filter-tags.component.scss +0 -0
  353. package/src/lib/cube/filter/filter-tags.component.spec.ts +25 -0
  354. package/src/lib/cube/filter/filter.component.html +25 -0
  355. package/src/lib/cube/filter/filter.component.scss +8 -0
  356. package/src/lib/cube/filter/filter.component.ts +116 -0
  357. package/src/lib/cube/grid/grid.component.html +29 -0
  358. package/src/lib/cube/grid/grid.component.scss +10 -0
  359. package/src/lib/cube/grid/grid.component.ts +223 -0
  360. package/src/lib/cube/grid/spreadsheet.component.ts +380 -0
  361. package/src/lib/cube/matrix/_matrix.theme.scss +86 -0
  362. package/src/lib/cube/matrix/matrix.base.ts +149 -0
  363. package/src/lib/cube/matrix/matrix.mobile.component.html +28 -0
  364. package/src/lib/cube/matrix/matrix.mobile.component.ts +60 -0
  365. package/src/lib/cube/matrix/matrix.pane.component.html +34 -0
  366. package/src/lib/cube/matrix/matrix.pane.component.scss +10 -0
  367. package/src/lib/cube/matrix/matrix.pane.component.ts +71 -0
  368. package/src/lib/cube/matrix/popup.component.html +32 -0
  369. package/src/lib/cube/matrix/popup.component.scss +7 -0
  370. package/src/lib/cube/matrix/popup.component.ts +57 -0
  371. package/src/lib/cube/matrix/table.component.html +43 -0
  372. package/src/lib/cube/matrix/table.component.scss +21 -0
  373. package/src/lib/cube/matrix/table.component.ts +514 -0
  374. package/src/lib/cube/parallel/item.ts +47 -0
  375. package/src/lib/cube/parallel/parallel.component.html +17 -0
  376. package/src/lib/cube/parallel/parallel.component.scss +13 -0
  377. package/src/lib/cube/parallel/parallel.component.ts +167 -0
  378. package/src/lib/cube/pivot/pivot.component.html +14 -0
  379. package/src/lib/cube/pivot/pivot.component.ts +514 -0
  380. package/src/lib/cube/sum/_sum.theme.scss +63 -0
  381. package/src/lib/cube/sum/sum.component.html +60 -0
  382. package/src/lib/cube/sum/sum.component.scss +94 -0
  383. package/src/lib/cube/sum/sum.component.ts +438 -0
  384. package/src/lib/cube/view-base.ts +82 -0
  385. package/src/lib/cube/view.mobile.component.html +38 -0
  386. package/src/lib/cube/view.mobile.component.scss +9 -0
  387. package/src/lib/cube/view.mobile.component.ts +115 -0
  388. package/src/lib/cube/view.pane.component.html +25 -0
  389. package/src/lib/cube/view.pane.component.scss +12 -0
  390. package/src/lib/cube/view.pane.component.ts +76 -0
  391. package/src/lib/dashboard/_table.widget.scss +19 -0
  392. package/src/lib/dashboard/actions/actions.widget.html +6 -0
  393. package/src/lib/dashboard/actions/actions.widget.ts +118 -0
  394. package/src/lib/dashboard/cube/accum-cube.widget.html +15 -0
  395. package/src/lib/dashboard/cube/accum-cube.widget.ts +154 -0
  396. package/src/lib/dashboard/cube/cube-analysis.base.ts +113 -0
  397. package/src/lib/dashboard/cube/cube-analysis.widget.ts +44 -0
  398. package/src/lib/dashboard/cube/cube-chart.widget.html +7 -0
  399. package/src/lib/dashboard/cube/cube-chart.widget.ts +144 -0
  400. package/src/lib/dashboard/cube/documents.widget.html +19 -0
  401. package/src/lib/dashboard/cube/documents.widget.ts +57 -0
  402. package/src/lib/dashboard/cube/filter/filter.component.html +3 -0
  403. package/src/lib/dashboard/cube/filter/filter.component.ts +51 -0
  404. package/src/lib/dashboard/cube/gauge.component.exp.ts +18 -0
  405. package/src/lib/dashboard/dashboard.component.html +18 -0
  406. package/src/lib/dashboard/dashboard.component.scss +36 -0
  407. package/src/lib/dashboard/dashboard.component.ts +45 -0
  408. package/src/lib/dashboard/dashboard.pane.component.ts +19 -0
  409. package/src/lib/dashboard/recents/recents.widget.html +32 -0
  410. package/src/lib/dashboard/recents/recents.widget.scss +9 -0
  411. package/src/lib/dashboard/recents/recents.widget.ts +89 -0
  412. package/src/lib/dashboard/score/activity.widget.html +9 -0
  413. package/src/lib/dashboard/score/activity.widget.ts +164 -0
  414. package/src/lib/dashboard/score/compare-departments.widget.html +8 -0
  415. package/src/lib/dashboard/score/compare-departments.widget.ts +210 -0
  416. package/src/lib/dashboard/score/peers-performance.widget.html +23 -0
  417. package/src/lib/dashboard/score/peers-performance.widget.ts +254 -0
  418. package/src/lib/dashboard/score/pending-results.widget.html +29 -0
  419. package/src/lib/dashboard/score/pending-results.widget.ts +57 -0
  420. package/src/lib/dashboard/score/personal-score.widget.html +18 -0
  421. package/src/lib/dashboard/score/personal-score.widget.ts +225 -0
  422. package/src/lib/dashboard/widget-item.component.ts +90 -0
  423. package/src/lib/dashboard/widget-ref.ts +20 -0
  424. package/src/lib/desktop.module.ts +98 -0
  425. package/src/lib/home/_home-theme.scss +156 -0
  426. package/src/lib/home/about/about.dialog.html +19 -0
  427. package/src/lib/home/about/about.dialog.ts +18 -0
  428. package/src/lib/home/home-base.component.ts +100 -0
  429. package/src/lib/home/home.desktop.component.html +87 -0
  430. package/src/lib/home/home.desktop.component.scss +66 -0
  431. package/src/lib/home/home.desktop.component.ts +188 -0
  432. package/src/lib/home/home.mobile.component.html +81 -0
  433. package/src/lib/home/home.mobile.component.scss +49 -0
  434. package/src/lib/home/home.mobile.component.ts +105 -0
  435. package/src/lib/home/notifications/notifications.component.html +18 -0
  436. package/src/lib/home/notifications/notifications.component.scss +36 -0
  437. package/src/lib/home/notifications/notifications.component.ts +55 -0
  438. package/src/lib/home/options/options.component.html +41 -0
  439. package/src/lib/home/options/options.component.scss +16 -0
  440. package/src/lib/home/options/options.component.ts +95 -0
  441. package/src/lib/home/outofoffice/outofoffice.component.html +5 -0
  442. package/src/lib/home/outofoffice/outofoffice.component.scss +10 -0
  443. package/src/lib/home/outofoffice/outofoffice.component.ts +33 -0
  444. package/src/lib/home/progress-bar.directive.exp.ts +24 -0
  445. package/src/lib/home/search.service.ts +87 -0
  446. package/src/lib/home/sign/sign.component.html +15 -0
  447. package/src/lib/home/sign/sign.component.ts +42 -0
  448. package/src/lib/home/submenu.directive.exp.ts +43 -0
  449. package/src/lib/home/tools.component.html +27 -0
  450. package/src/lib/home/tools.component.scss +15 -0
  451. package/src/lib/home/tools.component.ts +72 -0
  452. package/src/lib/home/welcome/welcome.dialog.exp.ts +35 -0
  453. package/src/lib/home/welcome/welcome.dialog.html +14 -0
  454. package/src/lib/impersonate/impersonate.component.html +17 -0
  455. package/src/lib/impersonate/impersonate.component.scss +3 -0
  456. package/src/lib/impersonate/impersonate.component.spec.ts +24 -0
  457. package/src/lib/impersonate/impersonate.component.ts +60 -0
  458. package/src/lib/mobile.module.ts +39 -0
  459. package/src/lib/modules/chart.module.ts +37 -0
  460. package/src/lib/modules/circular-gauge.module.ts +11 -0
  461. package/src/lib/modules/date.adapter.ts +31 -0
  462. package/src/lib/modules/datepicker.intl.ts +35 -0
  463. package/src/lib/modules/diagram.module.ts +20 -0
  464. package/src/lib/modules/gantt.module.ts +12 -0
  465. package/src/lib/modules/grid.module.ts +16 -0
  466. package/src/lib/modules/material.module.ts +104 -0
  467. package/src/lib/modules/paginator.intl.ts +16 -0
  468. package/src/lib/modules/pivot.module.ts +13 -0
  469. package/src/lib/modules/schedule.module.ts +12 -0
  470. package/src/lib/modules/spreadsheet.module.ts +17 -0
  471. package/src/lib/modules/stepper.intl.ts +12 -0
  472. package/src/lib/modules/texteditor.module.ts +16 -0
  473. package/src/lib/notifications/filter.component.html +6 -0
  474. package/src/lib/notifications/filter.component.ts +16 -0
  475. package/src/lib/notifications/notifications-table.component.html +54 -0
  476. package/src/lib/notifications/notifications-table.component.scss +14 -0
  477. package/src/lib/notifications/notifications-table.component.ts +94 -0
  478. package/src/lib/notifications/notifications.component-base.ts +49 -0
  479. package/src/lib/notifications/notifications.mobile.component.ts +13 -0
  480. package/src/lib/notifications/notifications.pane.component.ts +16 -0
  481. package/src/lib/notifications/notifications.service.ts +66 -0
  482. package/src/lib/notifications/types/commented.notification.html +14 -0
  483. package/src/lib/notifications/types/commented.notification.ts +51 -0
  484. package/src/lib/notifications/types/cube-anomaly.notification.ts +51 -0
  485. package/src/lib/notifications/types/escalated.notification.ts +36 -0
  486. package/src/lib/notifications/types/liked.notification.ts +49 -0
  487. package/src/lib/notifications/types/long-running-task.notification.ts +23 -0
  488. package/src/lib/notifications/types/notification-base.ts +37 -0
  489. package/src/lib/notifications/types/nudge.notification.ts +32 -0
  490. package/src/lib/notifications/types/state-changed.notification.ts +27 -0
  491. package/src/lib/notifications/types/tagged.notification.ts +46 -0
  492. package/src/lib/notifications/types/text.notification.ts +13 -0
  493. package/src/lib/notifications/types/upcoming-event.notification.ts +25 -0
  494. package/src/lib/options/options.component.html +149 -0
  495. package/src/lib/options/options.component.scss +19 -0
  496. package/src/lib/options/options.component.ts +244 -0
  497. package/src/lib/options/options.service.ts +30 -0
  498. package/src/lib/reports/arguments-component.ts +73 -0
  499. package/src/lib/reports/cube/grid-documents.component.html +25 -0
  500. package/src/lib/reports/cube/grid-documents.component.ts +85 -0
  501. package/src/lib/reports/cube/table-documents.component.css +18 -0
  502. package/src/lib/reports/cube/table-documents.component.html +30 -0
  503. package/src/lib/reports/cube/table-documents.component.ts +65 -0
  504. package/src/lib/reports/cube/usage-args.component.html +3 -0
  505. package/src/lib/reports/cube/usage-args.component.ts +55 -0
  506. package/src/lib/reports/cube/usage-base.ts +112 -0
  507. package/src/lib/reports/cube/usage-browse.component.exp.ts +93 -0
  508. package/src/lib/reports/cube/usage-browse.component.html +27 -0
  509. package/src/lib/reports/cube/usage-browse.component.scss +24 -0
  510. package/src/lib/reports/cube/usage-chart.component.html +11 -0
  511. package/src/lib/reports/cube/usage-chart.component.ts +387 -0
  512. package/src/lib/reports/cube/usage-pivot.component.html +19 -0
  513. package/src/lib/reports/cube/usage-pivot.component.ts +252 -0
  514. package/src/lib/reports/report-ref.ts +42 -0
  515. package/src/lib/reports/report-viewer.component.html +2 -0
  516. package/src/lib/reports/report-viewer.component.scss +12 -0
  517. package/src/lib/reports/report-viewer.component.ts +162 -0
  518. package/src/lib/reports/report.mobile.component.html +16 -0
  519. package/src/lib/reports/report.mobile.component.scss +7 -0
  520. package/src/lib/reports/report.mobile.component.ts +107 -0
  521. package/src/lib/reports/report.pane.component.html +8 -0
  522. package/src/lib/reports/report.pane.component.scss +9 -0
  523. package/src/lib/reports/report.pane.component.ts +78 -0
  524. package/src/lib/reports/reports-menu.component.html +9 -0
  525. package/src/lib/reports/reports-menu.component.ts +20 -0
  526. package/src/lib/reports/substitution/substitution.component.html +26 -0
  527. package/src/lib/reports/substitution/substitution.component.ts +34 -0
  528. package/src/lib/reports/table/table-view.component.html +8 -0
  529. package/src/lib/reports/table/table-view.component.scss +0 -0
  530. package/src/lib/reports/table/table-view.component.ts +33 -0
  531. package/src/lib/reports/tasks/tasks.component.html +21 -0
  532. package/src/lib/reports/tasks/tasks.component.ts +114 -0
  533. package/src/lib/reports/timeline/timeline.component.exp.ts +225 -0
  534. package/src/lib/reports/timeline/timeline.component.html +9 -0
  535. package/src/lib/routes.desktop.ts +196 -0
  536. package/src/lib/routes.mobile.ts +70 -0
  537. package/src/lib/scheduler/schedule.component.html +36 -0
  538. package/src/lib/scheduler/schedule.component.scss +13 -0
  539. package/src/lib/scheduler/schedule.component.ts +158 -0
  540. package/src/lib/scheduler/scheduler.mobile.component.ts +30 -0
  541. package/src/lib/scheduler/scheduler.pane.component.ts +49 -0
  542. package/src/lib/shared.module.ts +386 -0
  543. package/src/lib/system.module.ts +75 -0
  544. package/src/lib/views/_views.theme.scss +18 -0
  545. package/src/lib/views/cube/chart.component.html +24 -0
  546. package/src/lib/views/cube/chart.component.ts +88 -0
  547. package/src/lib/views/cube/cube-base.ts +126 -0
  548. package/src/lib/views/cube/explore.component.html +33 -0
  549. package/src/lib/views/cube/explore.component.ts +82 -0
  550. package/src/lib/views/cube/filter.component.exp.ts +66 -0
  551. package/src/lib/views/cube/filter.component.html +25 -0
  552. package/src/lib/views/cube/matrix.component.html +42 -0
  553. package/src/lib/views/cube/matrix.component.scss +3 -0
  554. package/src/lib/views/cube/matrix.component.ts +107 -0
  555. package/src/lib/views/cube/parallel.component.html +10 -0
  556. package/src/lib/views/cube/parallel.component.scss +13 -0
  557. package/src/lib/views/cube/parallel.component.ts +62 -0
  558. package/src/lib/views/cube/pivot.component.html +8 -0
  559. package/src/lib/views/cube/pivot.component.ts +62 -0
  560. package/src/lib/views/cube/sum.component.html +30 -0
  561. package/src/lib/views/cube/sum.component.scss +3 -0
  562. package/src/lib/views/cube/sum.component.ts +71 -0
  563. package/src/lib/views/cube/view.component.html +34 -0
  564. package/src/lib/views/cube/view.component.scss +12 -0
  565. package/src/lib/views/cube/view.component.ts +103 -0
  566. package/src/lib/views/document-view-ref.ts +34 -0
  567. package/src/lib/views/timeline/timeline.component.exp.ts +333 -0
  568. package/src/lib/views/timeline/timeline.component.html +6 -0
  569. package/src/lib/views/timeline/timeline.component.scss +6 -0
  570. package/src/lib/views/view-item.component.ts +67 -0
  571. package/src/lib/views/views.component.html +4 -0
  572. package/src/lib/views/views.component.scss +33 -0
  573. package/src/lib/views/views.component.ts +23 -0
  574. package/src/lib/views/views.mobile.component.ts +19 -0
  575. package/src/lib/views/views.pane.component.ts +31 -0
  576. package/src/polyfills.ts +81 -0
  577. package/src/public-api.ts +147 -0
  578. package/src/styles/_app.scss +316 -0
  579. package/src/styles/_emoji-mart.scss +504 -0
  580. package/src/styles/_syncfusion-base-definitions.scss +63 -0
  581. package/src/styles/_syncfusion-dark-definitions.scss +23 -0
  582. package/src/styles/_syncfusion-icons.scss +57 -0
  583. package/src/styles/_syncfusion-light-definitions.scss +23 -0
  584. package/src/styles/_syncfusion.scss +22 -0
  585. package/src/styles/brown.scss +15 -0
  586. package/src/styles/build.ps1 +25 -0
  587. package/src/styles/dark.scss +24 -0
  588. package/src/styles/deep-purple-light-blue.scss +22 -0
  589. package/src/styles/deep-purple-teal.scss +22 -0
  590. package/src/styles/default.scss +23 -0
  591. package/src/styles/diagram-icons.eot +0 -0
  592. package/src/styles/diagram-icons.ttf +0 -0
  593. package/src/styles/green.scss +14 -0
  594. package/src/styles/indigo.scss +15 -0
  595. package/src/test.ts +26 -0
  596. package/tsconfig.lib.json +25 -0
  597. package/tsconfig.lib.prod.json +10 -0
  598. package/tsconfig.spec.json +18 -0
  599. package/bizdoc-core.d.ts +0 -5
  600. package/esm2020/bizdoc-core.mjs +0 -5
  601. package/esm2020/lib/admin/admin-dismiss.service.mjs +0 -22
  602. package/esm2020/lib/admin/admin-menu.component.mjs +0 -27
  603. package/esm2020/lib/admin/core/ace.input.mjs +0 -147
  604. package/esm2020/lib/admin/core/color-picker.input.mjs +0 -208
  605. package/esm2020/lib/admin/core/search.input.mjs +0 -43
  606. package/esm2020/lib/admin/diff/configuration-diff.component.mjs +0 -558
  607. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +0 -469
  608. package/esm2020/lib/admin/document-trace/reassign.dialog.mjs +0 -40
  609. package/esm2020/lib/admin/document-trace/timeline.mjs +0 -2
  610. package/esm2020/lib/admin/document-trace/trace-element.component.mjs +0 -105
  611. package/esm2020/lib/admin/form/form.resolve.service.mjs +0 -17
  612. package/esm2020/lib/admin/form/form.service.mjs +0 -26
  613. package/esm2020/lib/admin/form/workflow/node-ref.mjs +0 -8
  614. package/esm2020/lib/admin/form/workflow/node.component.mjs +0 -128
  615. package/esm2020/lib/admin/form/workflow/role-node.component.mjs +0 -90
  616. package/esm2020/lib/admin/form/workflow/workflow.component.mjs +0 -408
  617. package/esm2020/lib/admin/indices/manage-cube-index.component.mjs +0 -161
  618. package/esm2020/lib/admin/patterns/patterns.component.mjs +0 -179
  619. package/esm2020/lib/admin/permissions/permissions.component.mjs +0 -97
  620. package/esm2020/lib/admin/positions/positions-popup.component.mjs +0 -74
  621. package/esm2020/lib/admin/positions/positions.component.mjs +0 -458
  622. package/esm2020/lib/admin/profiler/profiler.component.mjs +0 -260
  623. package/esm2020/lib/admin/utility-ref.mjs +0 -38
  624. package/esm2020/lib/admin/utility-wrapper.component.mjs +0 -51
  625. package/esm2020/lib/admin/utility.pane.component.mjs +0 -51
  626. package/esm2020/lib/app.component.mjs +0 -90
  627. package/esm2020/lib/bizdoc.module.mjs +0 -93
  628. package/esm2020/lib/browse/browse-items.component.mjs +0 -476
  629. package/esm2020/lib/browse/browse.mobile.component.mjs +0 -101
  630. package/esm2020/lib/browse/browse.pane.component.mjs +0 -149
  631. package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +0 -315
  632. package/esm2020/lib/browse/filter/filter.component.mjs +0 -164
  633. package/esm2020/lib/browse/folders-menu.component.mjs +0 -51
  634. package/esm2020/lib/chat/chat-info.mjs +0 -69
  635. package/esm2020/lib/chat/chat.mobile.component.mjs +0 -26
  636. package/esm2020/lib/chat/chat.service.mjs +0 -122
  637. package/esm2020/lib/chat/contacts.component.mjs +0 -103
  638. package/esm2020/lib/chat/contacts.pane.component.mjs +0 -29
  639. package/esm2020/lib/chat/conversation.component.mjs +0 -193
  640. package/esm2020/lib/chat/conversation.pane.component.mjs +0 -44
  641. package/esm2020/lib/compose/action/action-picker.component.mjs +0 -84
  642. package/esm2020/lib/compose/action/action-ref.mjs +0 -19
  643. package/esm2020/lib/compose/action/action.base.mjs +0 -49
  644. package/esm2020/lib/compose/action/action.dialog.mjs +0 -61
  645. package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +0 -72
  646. package/esm2020/lib/compose/action/assign-action.component.mjs +0 -90
  647. package/esm2020/lib/compose/action/return-action.component.mjs +0 -52
  648. package/esm2020/lib/compose/attachments/attachments.component.mjs +0 -127
  649. package/esm2020/lib/compose/attachments/preview/attachment-preview.component.mjs +0 -155
  650. package/esm2020/lib/compose/attachments/progress-button.directive.mjs +0 -25
  651. package/esm2020/lib/compose/can-deactivate-changes.service.mjs +0 -27
  652. package/esm2020/lib/compose/comments/Comments.pane.component.mjs +0 -49
  653. package/esm2020/lib/compose/comments/comment.component.mjs +0 -186
  654. package/esm2020/lib/compose/comments/comments.component.mjs +0 -227
  655. package/esm2020/lib/compose/comments/edit-comment.component.mjs +0 -32
  656. package/esm2020/lib/compose/comments/edits.component.mjs +0 -30
  657. package/esm2020/lib/compose/comments/quick-comment.component.exp.mjs +0 -63
  658. package/esm2020/lib/compose/comments/votes.component.mjs +0 -42
  659. package/esm2020/lib/compose/compose-resolve.service.mjs +0 -55
  660. package/esm2020/lib/compose/compose.mobile.component.mjs +0 -112
  661. package/esm2020/lib/compose/compose.pane.component.mjs +0 -201
  662. package/esm2020/lib/compose/copy/copy.dialog.mjs +0 -46
  663. package/esm2020/lib/compose/dismiss.service.mjs +0 -25
  664. package/esm2020/lib/compose/document-resolver.service.mjs +0 -17
  665. package/esm2020/lib/compose/document.component.mjs +0 -45
  666. package/esm2020/lib/compose/document.mobile.component.mjs +0 -22
  667. package/esm2020/lib/compose/document.pane.component.mjs +0 -26
  668. package/esm2020/lib/compose/events/events.component.mjs +0 -30
  669. package/esm2020/lib/compose/form-ref.mjs +0 -46
  670. package/esm2020/lib/compose/form-selector/form-selector.sheet.mjs +0 -82
  671. package/esm2020/lib/compose/form.component.mjs +0 -434
  672. package/esm2020/lib/compose/new-menu.component.mjs +0 -104
  673. package/esm2020/lib/compose/privilage.directive.mjs +0 -64
  674. package/esm2020/lib/compose/recipient-resolver.service.mjs +0 -18
  675. package/esm2020/lib/compose/save-changes.dialog.mjs +0 -18
  676. package/esm2020/lib/compose/state.component.mjs +0 -37
  677. package/esm2020/lib/compose/tag/tags.component.mjs +0 -91
  678. package/esm2020/lib/compose/trace/flow.component.mjs +0 -653
  679. package/esm2020/lib/compose/trace/people.component.mjs +0 -35
  680. package/esm2020/lib/compose/trace/trace.base.mjs +0 -71
  681. package/esm2020/lib/compose/trace/trace.component.mjs +0 -345
  682. package/esm2020/lib/compose/trace/trace.pane.component.mjs +0 -52
  683. package/esm2020/lib/compose/version-compare/version-compare.component.mjs +0 -53
  684. package/esm2020/lib/compose/version-compare/version-compare.directive.mjs +0 -344
  685. package/esm2020/lib/compose/version-compare/version.pane.component.mjs +0 -56
  686. package/esm2020/lib/core/NgComponentOutlet.mjs +0 -38
  687. package/esm2020/lib/core/account.service.mjs +0 -37
  688. package/esm2020/lib/core/animated-icon/animated-icon.directive.mjs +0 -17
  689. package/esm2020/lib/core/animations.mjs +0 -156
  690. package/esm2020/lib/core/authentication.mjs +0 -3
  691. package/esm2020/lib/core/avatar/avatar.component.mjs +0 -103
  692. package/esm2020/lib/core/base.mjs +0 -2
  693. package/esm2020/lib/core/colors.mjs +0 -322
  694. package/esm2020/lib/core/component-factory-resolver.mjs +0 -64
  695. package/esm2020/lib/core/configuration.mjs +0 -16
  696. package/esm2020/lib/core/controls/address.input.mjs +0 -193
  697. package/esm2020/lib/core/controls/auto-complete.input.mjs +0 -256
  698. package/esm2020/lib/core/controls/combination-picker-body.mjs +0 -173
  699. package/esm2020/lib/core/controls/combination-picker.mjs +0 -277
  700. package/esm2020/lib/core/controls/combination-pool.mjs +0 -109
  701. package/esm2020/lib/core/controls/file.input.mjs +0 -392
  702. package/esm2020/lib/core/controls/select.input.mjs +0 -237
  703. package/esm2020/lib/core/controls/time-picker.mjs +0 -196
  704. package/esm2020/lib/core/controls/timespan.input.mjs +0 -207
  705. package/esm2020/lib/core/datasource.service.mjs +0 -75
  706. package/esm2020/lib/core/decorators.mjs +0 -46
  707. package/esm2020/lib/core/firebase.service.mjs +0 -50
  708. package/esm2020/lib/core/functions.mjs +0 -200
  709. package/esm2020/lib/core/guide/guide.component.mjs +0 -219
  710. package/esm2020/lib/core/guide/guide.service.mjs +0 -107
  711. package/esm2020/lib/core/http.interceptor.mjs +0 -79
  712. package/esm2020/lib/core/hub.service.mjs +0 -105
  713. package/esm2020/lib/core/identity/identity.component.mjs +0 -67
  714. package/esm2020/lib/core/info/attachment-info.service.mjs +0 -51
  715. package/esm2020/lib/core/info/document-info.service.mjs +0 -21
  716. package/esm2020/lib/core/info/location-info.component.mjs +0 -61
  717. package/esm2020/lib/core/info/map-info.mjs +0 -40
  718. package/esm2020/lib/core/layout/autocomplete.field.mjs +0 -60
  719. package/esm2020/lib/core/layout/checkbox.field.mjs +0 -41
  720. package/esm2020/lib/core/layout/checkbox.mjs +0 -35
  721. package/esm2020/lib/core/layout/date-range.field.mjs +0 -53
  722. package/esm2020/lib/core/layout/date.field.mjs +0 -52
  723. package/esm2020/lib/core/layout/expression.field.mjs +0 -51
  724. package/esm2020/lib/core/layout/html.field.mjs +0 -48
  725. package/esm2020/lib/core/layout/input.base.mjs +0 -11
  726. package/esm2020/lib/core/layout/input.field.mjs +0 -64
  727. package/esm2020/lib/core/layout/layout.component.mjs +0 -192
  728. package/esm2020/lib/core/layout/numeric.field.mjs +0 -47
  729. package/esm2020/lib/core/layout/select.field.mjs +0 -82
  730. package/esm2020/lib/core/layout/switch.field.mjs +0 -41
  731. package/esm2020/lib/core/layout/textarea.field.mjs +0 -42
  732. package/esm2020/lib/core/layout/timespan.field.mjs +0 -50
  733. package/esm2020/lib/core/lottie-animation.mjs +0 -46
  734. package/esm2020/lib/core/mailbox.service.mjs +0 -392
  735. package/esm2020/lib/core/models.mjs +0 -40
  736. package/esm2020/lib/core/none.component.mjs +0 -40
  737. package/esm2020/lib/core/pipes/action.pipe.mjs +0 -25
  738. package/esm2020/lib/core/pipes/calendar.pipe.mjs +0 -72
  739. package/esm2020/lib/core/pipes/date-format.pipe.mjs +0 -19
  740. package/esm2020/lib/core/pipes/daterange.pipe.mjs +0 -62
  741. package/esm2020/lib/core/pipes/difference.pipe.mjs +0 -15
  742. package/esm2020/lib/core/pipes/duration-format.pipe.mjs +0 -48
  743. package/esm2020/lib/core/pipes/duration.pipe.mjs +0 -19
  744. package/esm2020/lib/core/pipes/form.pipe.mjs +0 -25
  745. package/esm2020/lib/core/pipes/join.pipe.mjs +0 -18
  746. package/esm2020/lib/core/pipes/role.pipe.mjs +0 -25
  747. package/esm2020/lib/core/pipes/sanitize-html.pipe.mjs +0 -18
  748. package/esm2020/lib/core/pipes/sort.pipe.mjs +0 -48
  749. package/esm2020/lib/core/pipes/state.pipe.mjs +0 -25
  750. package/esm2020/lib/core/pipes/time-ago.pipe.mjs +0 -66
  751. package/esm2020/lib/core/pipes/translate.pipe.mjs +0 -38
  752. package/esm2020/lib/core/pipes/type-value.pipe.mjs +0 -42
  753. package/esm2020/lib/core/pipes/user-name.pipe.mjs +0 -21
  754. package/esm2020/lib/core/popup/popup-ref.mjs +0 -20
  755. package/esm2020/lib/core/popup/popup.component.mjs +0 -37
  756. package/esm2020/lib/core/popup/popup.service.mjs +0 -148
  757. package/esm2020/lib/core/popup/tooltip.directive.mjs +0 -82
  758. package/esm2020/lib/core/prompt/ask/ask.dialog.mjs +0 -29
  759. package/esm2020/lib/core/prompt/mask/mask.component.mjs +0 -21
  760. package/esm2020/lib/core/prompt.service.mjs +0 -86
  761. package/esm2020/lib/core/router.mjs +0 -35
  762. package/esm2020/lib/core/session.service.mjs +0 -247
  763. package/esm2020/lib/core/slots/pane-ref.mjs +0 -125
  764. package/esm2020/lib/core/slots/router.directive.mjs +0 -70
  765. package/esm2020/lib/core/slots/router.service.mjs +0 -36
  766. package/esm2020/lib/core/slots/slots.component.mjs +0 -1049
  767. package/esm2020/lib/core/tagging/documents.component.mjs +0 -25
  768. package/esm2020/lib/core/tagging/edit-input.component.mjs +0 -233
  769. package/esm2020/lib/core/tagging/emoji.component.mjs +0 -35
  770. package/esm2020/lib/core/tagging/tagging-item.directive.mjs +0 -39
  771. package/esm2020/lib/core/tagging/tagging.component-base.mjs +0 -29
  772. package/esm2020/lib/core/tagging/tagging.directive.mjs +0 -138
  773. package/esm2020/lib/core/tagging/tagging.pipe.mjs +0 -72
  774. package/esm2020/lib/core/tagging/users.component.mjs +0 -32
  775. package/esm2020/lib/core/translate.service.mjs +0 -99
  776. package/esm2020/lib/core/translations.mjs +0 -1100
  777. package/esm2020/lib/core/window-title.service.mjs +0 -53
  778. package/esm2020/lib/cube/accum/accum.component.mjs +0 -257
  779. package/esm2020/lib/cube/chart/chart.component.mjs +0 -326
  780. package/esm2020/lib/cube/cube-info.service.mjs +0 -100
  781. package/esm2020/lib/cube/cube-menu.component.mjs +0 -27
  782. package/esm2020/lib/cube/cube-view.component.mjs +0 -186
  783. package/esm2020/lib/cube/cube.service.mjs +0 -407
  784. package/esm2020/lib/cube/declarations.mjs +0 -2
  785. package/esm2020/lib/cube/explore/document-item.component.mjs +0 -38
  786. package/esm2020/lib/cube/explore/explore-item.component.mjs +0 -27
  787. package/esm2020/lib/cube/explore/explore-items.component.mjs +0 -186
  788. package/esm2020/lib/cube/explore/explore.pane.component.mjs +0 -80
  789. package/esm2020/lib/cube/explore/item-resolver.service.mjs +0 -32
  790. package/esm2020/lib/cube/explore/item.pane.component.mjs +0 -23
  791. package/esm2020/lib/cube/filter/filter-tags.component.exp.mjs +0 -64
  792. package/esm2020/lib/cube/filter/filter.component.mjs +0 -137
  793. package/esm2020/lib/cube/grid/grid.component.mjs +0 -217
  794. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +0 -370
  795. package/esm2020/lib/cube/matrix/matrix.base.mjs +0 -127
  796. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +0 -63
  797. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +0 -76
  798. package/esm2020/lib/cube/matrix/popup.component.mjs +0 -70
  799. package/esm2020/lib/cube/matrix/table.component.mjs +0 -491
  800. package/esm2020/lib/cube/parallel/item.mjs +0 -41
  801. package/esm2020/lib/cube/parallel/parallel.component.mjs +0 -160
  802. package/esm2020/lib/cube/pivot/pivot.component.mjs +0 -500
  803. package/esm2020/lib/cube/sum/sum.component.mjs +0 -404
  804. package/esm2020/lib/cube/view-base.mjs +0 -79
  805. package/esm2020/lib/cube/view.mobile.component.mjs +0 -127
  806. package/esm2020/lib/cube/view.pane.component.mjs +0 -84
  807. package/esm2020/lib/dashboard/actions/actions.widget.mjs +0 -126
  808. package/esm2020/lib/dashboard/cube/accum-cube.widget.mjs +0 -145
  809. package/esm2020/lib/dashboard/cube/cube-analysis.base.mjs +0 -90
  810. package/esm2020/lib/dashboard/cube/cube-analysis.widget.mjs +0 -53
  811. package/esm2020/lib/dashboard/cube/cube-chart.widget.mjs +0 -144
  812. package/esm2020/lib/dashboard/cube/documents.widget.mjs +0 -64
  813. package/esm2020/lib/dashboard/cube/filter/filter.component.mjs +0 -59
  814. package/esm2020/lib/dashboard/dashboard.component.mjs +0 -47
  815. package/esm2020/lib/dashboard/dashboard.pane.component.mjs +0 -24
  816. package/esm2020/lib/dashboard/recents/recents.widget.mjs +0 -98
  817. package/esm2020/lib/dashboard/score/activity.widget.mjs +0 -162
  818. package/esm2020/lib/dashboard/score/compare-departments.widget.mjs +0 -204
  819. package/esm2020/lib/dashboard/score/peers-performance.widget.mjs +0 -253
  820. package/esm2020/lib/dashboard/score/pending-results.widget.mjs +0 -64
  821. package/esm2020/lib/dashboard/score/personal-score.widget.mjs +0 -219
  822. package/esm2020/lib/dashboard/widget-item.component.mjs +0 -89
  823. package/esm2020/lib/dashboard/widget-ref.mjs +0 -18
  824. package/esm2020/lib/desktop.module.mjs +0 -144
  825. package/esm2020/lib/home/about/about.dialog.mjs +0 -26
  826. package/esm2020/lib/home/home-base.component.mjs +0 -89
  827. package/esm2020/lib/home/home.desktop.component.mjs +0 -201
  828. package/esm2020/lib/home/home.mobile.component.mjs +0 -116
  829. package/esm2020/lib/home/notifications/notifications.component.mjs +0 -67
  830. package/esm2020/lib/home/options/options.component.mjs +0 -94
  831. package/esm2020/lib/home/outofoffice/outofoffice.component.mjs +0 -38
  832. package/esm2020/lib/home/search.service.mjs +0 -75
  833. package/esm2020/lib/home/sign/sign.component.mjs +0 -54
  834. package/esm2020/lib/home/tools.component.mjs +0 -82
  835. package/esm2020/lib/impersonate/impersonate.component.mjs +0 -65
  836. package/esm2020/lib/mobile.module.mjs +0 -59
  837. package/esm2020/lib/modules/chart.module.mjs +0 -37
  838. package/esm2020/lib/modules/circular-gauge.module.mjs +0 -17
  839. package/esm2020/lib/modules/date.adapter.mjs +0 -30
  840. package/esm2020/lib/modules/datepicker.intl.mjs +0 -39
  841. package/esm2020/lib/modules/diagram.module.mjs +0 -34
  842. package/esm2020/lib/modules/gantt.module.mjs +0 -17
  843. package/esm2020/lib/modules/grid.module.mjs +0 -23
  844. package/esm2020/lib/modules/material.module.mjs +0 -188
  845. package/esm2020/lib/modules/paginator.intl.mjs +0 -21
  846. package/esm2020/lib/modules/pivot.module.mjs +0 -23
  847. package/esm2020/lib/modules/schedule.module.mjs +0 -21
  848. package/esm2020/lib/modules/spreadsheet.module.mjs +0 -28
  849. package/esm2020/lib/modules/stepper.intl.mjs +0 -17
  850. package/esm2020/lib/modules/texteditor.module.mjs +0 -27
  851. package/esm2020/lib/notifications/filter.component.mjs +0 -25
  852. package/esm2020/lib/notifications/notifications-table.component.mjs +0 -106
  853. package/esm2020/lib/notifications/notifications.component-base.mjs +0 -47
  854. package/esm2020/lib/notifications/notifications.mobile.component.mjs +0 -20
  855. package/esm2020/lib/notifications/notifications.pane.component.mjs +0 -23
  856. package/esm2020/lib/notifications/notifications.service.mjs +0 -71
  857. package/esm2020/lib/notifications/types/commented.notification.mjs +0 -53
  858. package/esm2020/lib/notifications/types/cube-anomaly.notification.mjs +0 -58
  859. package/esm2020/lib/notifications/types/escalated.notification.mjs +0 -33
  860. package/esm2020/lib/notifications/types/liked.notification.mjs +0 -50
  861. package/esm2020/lib/notifications/types/long-running-task.notification.mjs +0 -31
  862. package/esm2020/lib/notifications/types/notification-base.mjs +0 -40
  863. package/esm2020/lib/notifications/types/nudge.notification.mjs +0 -31
  864. package/esm2020/lib/notifications/types/state-changed.notification.mjs +0 -30
  865. package/esm2020/lib/notifications/types/tagged.notification.mjs +0 -43
  866. package/esm2020/lib/notifications/types/text.notification.mjs +0 -20
  867. package/esm2020/lib/notifications/types/upcoming-event.notification.mjs +0 -36
  868. package/esm2020/lib/options/options.component.mjs +0 -227
  869. package/esm2020/lib/options/options.service.mjs +0 -38
  870. package/esm2020/lib/reports/arguments-component.mjs +0 -83
  871. package/esm2020/lib/reports/cube/grid-documents.component.mjs +0 -80
  872. package/esm2020/lib/reports/cube/table-documents.component.mjs +0 -64
  873. package/esm2020/lib/reports/cube/usage-args.component.mjs +0 -61
  874. package/esm2020/lib/reports/cube/usage-base.mjs +0 -82
  875. package/esm2020/lib/reports/cube/usage-chart.component.mjs +0 -360
  876. package/esm2020/lib/reports/cube/usage-pivot.component.mjs +0 -243
  877. package/esm2020/lib/reports/report-ref.mjs +0 -31
  878. package/esm2020/lib/reports/report-viewer.component.mjs +0 -154
  879. package/esm2020/lib/reports/report.mobile.component.mjs +0 -120
  880. package/esm2020/lib/reports/report.pane.component.mjs +0 -88
  881. package/esm2020/lib/reports/reports-menu.component.mjs +0 -26
  882. package/esm2020/lib/reports/substitution/substitution.component.mjs +0 -40
  883. package/esm2020/lib/reports/table/table-view.component.mjs +0 -41
  884. package/esm2020/lib/reports/tasks/tasks.component.mjs +0 -95
  885. package/esm2020/lib/routes.desktop.mjs +0 -197
  886. package/esm2020/lib/routes.mobile.mjs +0 -69
  887. package/esm2020/lib/scheduler/schedule.component.mjs +0 -166
  888. package/esm2020/lib/scheduler/scheduler.mobile.component.mjs +0 -37
  889. package/esm2020/lib/scheduler/scheduler.pane.component.mjs +0 -53
  890. package/esm2020/lib/shared.module.mjs +0 -525
  891. package/esm2020/lib/system.module.mjs +0 -110
  892. package/esm2020/lib/views/cube/chart.component.mjs +0 -75
  893. package/esm2020/lib/views/cube/cube-base.mjs +0 -96
  894. package/esm2020/lib/views/cube/explore.component.mjs +0 -83
  895. package/esm2020/lib/views/cube/matrix.component.mjs +0 -97
  896. package/esm2020/lib/views/cube/parallel.component.mjs +0 -53
  897. package/esm2020/lib/views/cube/pivot.component.mjs +0 -51
  898. package/esm2020/lib/views/cube/sum.component.mjs +0 -64
  899. package/esm2020/lib/views/cube/view.component.mjs +0 -102
  900. package/esm2020/lib/views/document-view-ref.mjs +0 -27
  901. package/esm2020/lib/views/timeline/timeline.component.exp.mjs +0 -313
  902. package/esm2020/lib/views/view-item.component.mjs +0 -70
  903. package/esm2020/lib/views/views.component.mjs +0 -25
  904. package/esm2020/lib/views/views.mobile.component.mjs +0 -20
  905. package/esm2020/lib/views/views.pane.component.mjs +0 -31
  906. package/esm2020/public-api.mjs +0 -141
  907. package/fesm2015/bizdoc-core.mjs +0 -29511
  908. package/fesm2015/bizdoc-core.mjs.map +0 -1
  909. package/fesm2020/bizdoc-core.mjs +0 -29301
  910. package/fesm2020/bizdoc-core.mjs.map +0 -1
  911. package/lib/admin/admin-dismiss.service.d.ts +0 -14
  912. package/lib/admin/admin-menu.component.d.ts +0 -12
  913. package/lib/admin/core/ace.input.d.ts +0 -52
  914. package/lib/admin/core/color-picker.input.d.ts +0 -64
  915. package/lib/admin/core/search.input.d.ts +0 -13
  916. package/lib/admin/diff/configuration-diff.component.d.ts +0 -116
  917. package/lib/admin/document-trace/document-trace.component.d.ts +0 -83
  918. package/lib/admin/document-trace/reassign.dialog.d.ts +0 -22
  919. package/lib/admin/document-trace/timeline.d.ts +0 -40
  920. package/lib/admin/document-trace/trace-element.component.d.ts +0 -37
  921. package/lib/admin/form/form.resolve.service.d.ts +0 -12
  922. package/lib/admin/form/form.service.d.ts +0 -13
  923. package/lib/admin/form/workflow/node-ref.d.ts +0 -7
  924. package/lib/admin/form/workflow/node.component.d.ts +0 -37
  925. package/lib/admin/form/workflow/role-node.component.d.ts +0 -22
  926. package/lib/admin/form/workflow/workflow.component.d.ts +0 -73
  927. package/lib/admin/indices/manage-cube-index.component.d.ts +0 -54
  928. package/lib/admin/patterns/patterns.component.d.ts +0 -79
  929. package/lib/admin/permissions/permissions.component.d.ts +0 -45
  930. package/lib/admin/positions/positions-popup.component.d.ts +0 -39
  931. package/lib/admin/positions/positions.component.d.ts +0 -117
  932. package/lib/admin/profiler/profiler.component.d.ts +0 -108
  933. package/lib/admin/utility-ref.d.ts +0 -19
  934. package/lib/admin/utility-wrapper.component.d.ts +0 -28
  935. package/lib/admin/utility.pane.component.d.ts +0 -24
  936. package/lib/app.component.d.ts +0 -24
  937. package/lib/bizdoc.module.d.ts +0 -18
  938. package/lib/browse/browse-items.component.d.ts +0 -104
  939. package/lib/browse/browse.mobile.component.d.ts +0 -39
  940. package/lib/browse/browse.pane.component.d.ts +0 -50
  941. package/lib/browse/expanded-item/expanded-item.component.d.ts +0 -67
  942. package/lib/browse/filter/filter.component.d.ts +0 -71
  943. package/lib/browse/folders-menu.component.d.ts +0 -22
  944. package/lib/chat/chat-info.d.ts +0 -37
  945. package/lib/chat/chat.mobile.component.d.ts +0 -10
  946. package/lib/chat/chat.service.d.ts +0 -38
  947. package/lib/chat/contacts.component.d.ts +0 -38
  948. package/lib/chat/contacts.pane.component.d.ts +0 -12
  949. package/lib/chat/conversation.component.d.ts +0 -56
  950. package/lib/chat/conversation.pane.component.d.ts +0 -16
  951. package/lib/compose/action/action-picker.component.d.ts +0 -25
  952. package/lib/compose/action/action-ref.d.ts +0 -10
  953. package/lib/compose/action/action.base.d.ts +0 -15
  954. package/lib/compose/action/action.dialog.d.ts +0 -29
  955. package/lib/compose/action/action.pane.dialog.exp.d.ts +0 -31
  956. package/lib/compose/action/assign-action.component.d.ts +0 -36
  957. package/lib/compose/action/return-action.component.d.ts +0 -17
  958. package/lib/compose/attachments/attachments.component.d.ts +0 -35
  959. package/lib/compose/attachments/preview/attachment-preview.component.d.ts +0 -49
  960. package/lib/compose/attachments/progress-button.directive.d.ts +0 -12
  961. package/lib/compose/can-deactivate-changes.service.d.ts +0 -12
  962. package/lib/compose/comments/Comments.pane.component.d.ts +0 -18
  963. package/lib/compose/comments/comment.component.d.ts +0 -51
  964. package/lib/compose/comments/comments.component.d.ts +0 -66
  965. package/lib/compose/comments/edit-comment.component.d.ts +0 -25
  966. package/lib/compose/comments/edits.component.d.ts +0 -26
  967. package/lib/compose/comments/quick-comment.component.exp.d.ts +0 -28
  968. package/lib/compose/comments/votes.component.d.ts +0 -22
  969. package/lib/compose/compose-resolve.service.d.ts +0 -27
  970. package/lib/compose/compose.mobile.component.d.ts +0 -42
  971. package/lib/compose/compose.pane.component.d.ts +0 -57
  972. package/lib/compose/copy/copy.dialog.d.ts +0 -23
  973. package/lib/compose/dismiss.service.d.ts +0 -12
  974. package/lib/compose/document-resolver.service.d.ts +0 -12
  975. package/lib/compose/document.component.d.ts +0 -18
  976. package/lib/compose/document.mobile.component.d.ts +0 -10
  977. package/lib/compose/document.pane.component.d.ts +0 -12
  978. package/lib/compose/events/events.component.d.ts +0 -13
  979. package/lib/compose/form-ref.d.ts +0 -30
  980. package/lib/compose/form-selector/form-selector.sheet.d.ts +0 -28
  981. package/lib/compose/form.component.d.ts +0 -93
  982. package/lib/compose/new-menu.component.d.ts +0 -36
  983. package/lib/compose/privilage.directive.d.ts +0 -26
  984. package/lib/compose/recipient-resolver.service.d.ts +0 -12
  985. package/lib/compose/save-changes.dialog.d.ts +0 -7
  986. package/lib/compose/state.component.d.ts +0 -12
  987. package/lib/compose/tag/tags.component.d.ts +0 -36
  988. package/lib/compose/trace/flow.component.d.ts +0 -59
  989. package/lib/compose/trace/people.component.d.ts +0 -18
  990. package/lib/compose/trace/trace.base.d.ts +0 -28
  991. package/lib/compose/trace/trace.component.d.ts +0 -55
  992. package/lib/compose/trace/trace.pane.component.d.ts +0 -20
  993. package/lib/compose/version-compare/version-compare.component.d.ts +0 -24
  994. package/lib/compose/version-compare/version-compare.directive.d.ts +0 -89
  995. package/lib/compose/version-compare/version.pane.component.d.ts +0 -21
  996. package/lib/core/NgComponentOutlet.d.ts +0 -15
  997. package/lib/core/account.service.d.ts +0 -18
  998. package/lib/core/animated-icon/animated-icon.directive.d.ts +0 -7
  999. package/lib/core/animations.d.ts +0 -26
  1000. package/lib/core/authentication.d.ts +0 -6
  1001. package/lib/core/avatar/avatar.component.d.ts +0 -34
  1002. package/lib/core/base.d.ts +0 -29
  1003. package/lib/core/colors.d.ts +0 -6
  1004. package/lib/core/component-factory-resolver.d.ts +0 -12
  1005. package/lib/core/configuration.d.ts +0 -111
  1006. package/lib/core/controls/address.input.d.ts +0 -63
  1007. package/lib/core/controls/auto-complete.input.d.ts +0 -86
  1008. package/lib/core/controls/combination-picker-body.d.ts +0 -114
  1009. package/lib/core/controls/combination-picker.d.ts +0 -82
  1010. package/lib/core/controls/combination-pool.d.ts +0 -42
  1011. package/lib/core/controls/file.input.d.ts +0 -88
  1012. package/lib/core/controls/select.input.d.ts +0 -84
  1013. package/lib/core/controls/time-picker.d.ts +0 -52
  1014. package/lib/core/controls/timespan.input.d.ts +0 -55
  1015. package/lib/core/datasource.service.d.ts +0 -46
  1016. package/lib/core/decorators.d.ts +0 -17
  1017. package/lib/core/firebase.service.d.ts +0 -17
  1018. package/lib/core/functions.d.ts +0 -50
  1019. package/lib/core/guide/guide.component.d.ts +0 -31
  1020. package/lib/core/guide/guide.service.d.ts +0 -32
  1021. package/lib/core/http.interceptor.d.ts +0 -21
  1022. package/lib/core/hub.service.d.ts +0 -128
  1023. package/lib/core/identity/identity.component.d.ts +0 -29
  1024. package/lib/core/info/attachment-info.service.d.ts +0 -17
  1025. package/lib/core/info/document-info.service.d.ts +0 -13
  1026. package/lib/core/info/location-info.component.d.ts +0 -28
  1027. package/lib/core/info/map-info.d.ts +0 -15
  1028. package/lib/core/layout/autocomplete.field.d.ts +0 -21
  1029. package/lib/core/layout/checkbox.d.ts +0 -10
  1030. package/lib/core/layout/checkbox.field.d.ts +0 -11
  1031. package/lib/core/layout/date-range.field.d.ts +0 -13
  1032. package/lib/core/layout/date.field.d.ts +0 -11
  1033. package/lib/core/layout/expression.field.d.ts +0 -12
  1034. package/lib/core/layout/html.field.d.ts +0 -12
  1035. package/lib/core/layout/input.base.d.ts +0 -10
  1036. package/lib/core/layout/input.field.d.ts +0 -14
  1037. package/lib/core/layout/layout.component.d.ts +0 -33
  1038. package/lib/core/layout/numeric.field.d.ts +0 -11
  1039. package/lib/core/layout/select.field.d.ts +0 -22
  1040. package/lib/core/layout/switch.field.d.ts +0 -11
  1041. package/lib/core/layout/textarea.field.d.ts +0 -11
  1042. package/lib/core/layout/timespan.field.d.ts +0 -11
  1043. package/lib/core/lottie-animation.d.ts +0 -14
  1044. package/lib/core/mailbox.service.d.ts +0 -140
  1045. package/lib/core/models.d.ts +0 -650
  1046. package/lib/core/none.component.d.ts +0 -9
  1047. package/lib/core/pipes/action.pipe.d.ts +0 -10
  1048. package/lib/core/pipes/calendar.pipe.d.ts +0 -27
  1049. package/lib/core/pipes/date-format.pipe.d.ts +0 -8
  1050. package/lib/core/pipes/daterange.pipe.d.ts +0 -15
  1051. package/lib/core/pipes/difference.pipe.d.ts +0 -7
  1052. package/lib/core/pipes/duration-format.pipe.d.ts +0 -11
  1053. package/lib/core/pipes/duration.pipe.d.ts +0 -8
  1054. package/lib/core/pipes/form.pipe.d.ts +0 -10
  1055. package/lib/core/pipes/join.pipe.d.ts +0 -10
  1056. package/lib/core/pipes/role.pipe.d.ts +0 -10
  1057. package/lib/core/pipes/sanitize-html.pipe.d.ts +0 -10
  1058. package/lib/core/pipes/sort.pipe.d.ts +0 -12
  1059. package/lib/core/pipes/state.pipe.d.ts +0 -10
  1060. package/lib/core/pipes/time-ago.pipe.d.ts +0 -16
  1061. package/lib/core/pipes/translate.pipe.d.ts +0 -18
  1062. package/lib/core/pipes/type-value.pipe.d.ts +0 -15
  1063. package/lib/core/pipes/user-name.pipe.d.ts +0 -11
  1064. package/lib/core/popup/popup-ref.d.ts +0 -14
  1065. package/lib/core/popup/popup.component.d.ts +0 -22
  1066. package/lib/core/popup/popup.service.d.ts +0 -24
  1067. package/lib/core/popup/tooltip.directive.d.ts +0 -29
  1068. package/lib/core/prompt/ask/ask.dialog.d.ts +0 -22
  1069. package/lib/core/prompt/mask/mask.component.d.ts +0 -10
  1070. package/lib/core/prompt.service.d.ts +0 -36
  1071. package/lib/core/router.d.ts +0 -20
  1072. package/lib/core/session.service.d.ts +0 -80
  1073. package/lib/core/slots/pane-ref.d.ts +0 -113
  1074. package/lib/core/slots/router.directive.d.ts +0 -25
  1075. package/lib/core/slots/router.service.d.ts +0 -36
  1076. package/lib/core/slots/slots.component.d.ts +0 -183
  1077. package/lib/core/tagging/documents.component.d.ts +0 -11
  1078. package/lib/core/tagging/edit-input.component.d.ts +0 -65
  1079. package/lib/core/tagging/emoji.component.d.ts +0 -18
  1080. package/lib/core/tagging/tagging-item.directive.d.ts +0 -15
  1081. package/lib/core/tagging/tagging.component-base.d.ts +0 -19
  1082. package/lib/core/tagging/tagging.directive.d.ts +0 -34
  1083. package/lib/core/tagging/tagging.pipe.d.ts +0 -24
  1084. package/lib/core/tagging/users.component.d.ts +0 -15
  1085. package/lib/core/translate.service.d.ts +0 -28
  1086. package/lib/core/translations.d.ts +0 -1093
  1087. package/lib/core/window-title.service.d.ts +0 -21
  1088. package/lib/cube/accum/accum.component.d.ts +0 -63
  1089. package/lib/cube/chart/chart.component.d.ts +0 -74
  1090. package/lib/cube/cube-info.service.d.ts +0 -77
  1091. package/lib/cube/cube-menu.component.d.ts +0 -12
  1092. package/lib/cube/cube-view.component.d.ts +0 -31
  1093. package/lib/cube/cube.service.d.ts +0 -267
  1094. package/lib/cube/declarations.d.ts +0 -23
  1095. package/lib/cube/explore/document-item.component.d.ts +0 -16
  1096. package/lib/cube/explore/explore-item.component.d.ts +0 -14
  1097. package/lib/cube/explore/explore-items.component.d.ts +0 -57
  1098. package/lib/cube/explore/explore.pane.component.d.ts +0 -29
  1099. package/lib/cube/explore/item-resolver.service.d.ts +0 -20
  1100. package/lib/cube/explore/item.pane.component.d.ts +0 -13
  1101. package/lib/cube/filter/filter-tags.component.exp.d.ts +0 -27
  1102. package/lib/cube/filter/filter.component.d.ts +0 -44
  1103. package/lib/cube/grid/grid.component.d.ts +0 -59
  1104. package/lib/cube/grid/spreadsheet.component.d.ts +0 -61
  1105. package/lib/cube/matrix/matrix.base.d.ts +0 -72
  1106. package/lib/cube/matrix/matrix.mobile.component.d.ts +0 -22
  1107. package/lib/cube/matrix/matrix.pane.component.d.ts +0 -23
  1108. package/lib/cube/matrix/popup.component.d.ts +0 -23
  1109. package/lib/cube/matrix/table.component.d.ts +0 -100
  1110. package/lib/cube/parallel/item.d.ts +0 -13
  1111. package/lib/cube/parallel/parallel.component.d.ts +0 -52
  1112. package/lib/cube/pivot/pivot.component.d.ts +0 -103
  1113. package/lib/cube/sum/sum.component.d.ts +0 -78
  1114. package/lib/cube/view-base.d.ts +0 -39
  1115. package/lib/cube/view.mobile.component.d.ts +0 -46
  1116. package/lib/cube/view.pane.component.d.ts +0 -27
  1117. package/lib/dashboard/actions/actions.widget.d.ts +0 -39
  1118. package/lib/dashboard/cube/accum-cube.widget.d.ts +0 -33
  1119. package/lib/dashboard/cube/cube-analysis.base.d.ts +0 -59
  1120. package/lib/dashboard/cube/cube-analysis.widget.d.ts +0 -17
  1121. package/lib/dashboard/cube/cube-chart.widget.d.ts +0 -32
  1122. package/lib/dashboard/cube/documents.widget.d.ts +0 -30
  1123. package/lib/dashboard/cube/filter/filter.component.d.ts +0 -22
  1124. package/lib/dashboard/dashboard.component.d.ts +0 -20
  1125. package/lib/dashboard/dashboard.pane.component.d.ts +0 -8
  1126. package/lib/dashboard/recents/recents.widget.d.ts +0 -40
  1127. package/lib/dashboard/score/activity.widget.d.ts +0 -50
  1128. package/lib/dashboard/score/compare-departments.widget.d.ts +0 -51
  1129. package/lib/dashboard/score/peers-performance.widget.d.ts +0 -65
  1130. package/lib/dashboard/score/pending-results.widget.d.ts +0 -28
  1131. package/lib/dashboard/score/personal-score.widget.d.ts +0 -57
  1132. package/lib/dashboard/widget-item.component.d.ts +0 -31
  1133. package/lib/dashboard/widget-ref.d.ts +0 -11
  1134. package/lib/desktop.module.d.ts +0 -45
  1135. package/lib/home/about/about.dialog.d.ts +0 -14
  1136. package/lib/home/home-base.component.d.ts +0 -34
  1137. package/lib/home/home.desktop.component.d.ts +0 -56
  1138. package/lib/home/home.mobile.component.d.ts +0 -38
  1139. package/lib/home/notifications/notifications.component.d.ts +0 -28
  1140. package/lib/home/options/options.component.d.ts +0 -46
  1141. package/lib/home/outofoffice/outofoffice.component.d.ts +0 -19
  1142. package/lib/home/search.service.d.ts +0 -23
  1143. package/lib/home/sign/sign.component.d.ts +0 -17
  1144. package/lib/home/tools.component.d.ts +0 -36
  1145. package/lib/impersonate/impersonate.component.d.ts +0 -27
  1146. package/lib/mobile.module.d.ts +0 -25
  1147. package/lib/modules/chart.module.d.ts +0 -7
  1148. package/lib/modules/circular-gauge.module.d.ts +0 -7
  1149. package/lib/modules/date.adapter.d.ts +0 -13
  1150. package/lib/modules/datepicker.intl.d.ts +0 -30
  1151. package/lib/modules/diagram.module.d.ts +0 -8
  1152. package/lib/modules/gantt.module.d.ts +0 -7
  1153. package/lib/modules/grid.module.d.ts +0 -7
  1154. package/lib/modules/material.module.d.ts +0 -45
  1155. package/lib/modules/paginator.intl.d.ts +0 -14
  1156. package/lib/modules/pivot.module.d.ts +0 -7
  1157. package/lib/modules/schedule.module.d.ts +0 -7
  1158. package/lib/modules/spreadsheet.module.d.ts +0 -8
  1159. package/lib/modules/stepper.intl.d.ts +0 -10
  1160. package/lib/modules/texteditor.module.d.ts +0 -8
  1161. package/lib/notifications/filter.component.d.ts +0 -9
  1162. package/lib/notifications/notifications-table.component.d.ts +0 -32
  1163. package/lib/notifications/notifications.component-base.d.ts +0 -8
  1164. package/lib/notifications/notifications.mobile.component.d.ts +0 -8
  1165. package/lib/notifications/notifications.pane.component.d.ts +0 -8
  1166. package/lib/notifications/notifications.service.d.ts +0 -24
  1167. package/lib/notifications/types/commented.notification.d.ts +0 -26
  1168. package/lib/notifications/types/cube-anomaly.notification.d.ts +0 -28
  1169. package/lib/notifications/types/escalated.notification.d.ts +0 -26
  1170. package/lib/notifications/types/liked.notification.d.ts +0 -25
  1171. package/lib/notifications/types/long-running-task.notification.d.ts +0 -21
  1172. package/lib/notifications/types/notification-base.d.ts +0 -20
  1173. package/lib/notifications/types/nudge.notification.d.ts +0 -23
  1174. package/lib/notifications/types/state-changed.notification.d.ts +0 -22
  1175. package/lib/notifications/types/tagged.notification.d.ts +0 -26
  1176. package/lib/notifications/types/text.notification.d.ts +0 -13
  1177. package/lib/notifications/types/upcoming-event.notification.d.ts +0 -20
  1178. package/lib/options/options.component.d.ts +0 -66
  1179. package/lib/options/options.service.d.ts +0 -14
  1180. package/lib/reports/arguments-component.d.ts +0 -27
  1181. package/lib/reports/cube/grid-documents.component.d.ts +0 -45
  1182. package/lib/reports/cube/table-documents.component.d.ts +0 -44
  1183. package/lib/reports/cube/usage-args.component.d.ts +0 -21
  1184. package/lib/reports/cube/usage-base.d.ts +0 -72
  1185. package/lib/reports/cube/usage-chart.component.d.ts +0 -66
  1186. package/lib/reports/cube/usage-pivot.component.d.ts +0 -66
  1187. package/lib/reports/report-ref.d.ts +0 -27
  1188. package/lib/reports/report-viewer.component.d.ts +0 -48
  1189. package/lib/reports/report.mobile.component.d.ts +0 -45
  1190. package/lib/reports/report.pane.component.d.ts +0 -34
  1191. package/lib/reports/reports-menu.component.d.ts +0 -12
  1192. package/lib/reports/substitution/substitution.component.d.ts +0 -23
  1193. package/lib/reports/table/table-view.component.d.ts +0 -19
  1194. package/lib/reports/tasks/tasks.component.d.ts +0 -68
  1195. package/lib/routes.desktop.d.ts +0 -2
  1196. package/lib/routes.mobile.d.ts +0 -2
  1197. package/lib/scheduler/schedule.component.d.ts +0 -43
  1198. package/lib/scheduler/scheduler.mobile.component.d.ts +0 -14
  1199. package/lib/scheduler/scheduler.pane.component.d.ts +0 -20
  1200. package/lib/shared.module.d.ts +0 -184
  1201. package/lib/system.module.d.ts +0 -32
  1202. package/lib/views/cube/chart.component.d.ts +0 -39
  1203. package/lib/views/cube/cube-base.d.ts +0 -46
  1204. package/lib/views/cube/explore.component.d.ts +0 -43
  1205. package/lib/views/cube/matrix.component.d.ts +0 -51
  1206. package/lib/views/cube/parallel.component.d.ts +0 -32
  1207. package/lib/views/cube/pivot.component.d.ts +0 -34
  1208. package/lib/views/cube/sum.component.d.ts +0 -33
  1209. package/lib/views/cube/view.component.d.ts +0 -40
  1210. package/lib/views/document-view-ref.d.ts +0 -18
  1211. package/lib/views/timeline/timeline.component.exp.d.ts +0 -66
  1212. package/lib/views/view-item.component.d.ts +0 -28
  1213. package/lib/views/views.component.d.ts +0 -14
  1214. package/lib/views/views.mobile.component.d.ts +0 -10
  1215. package/lib/views/views.pane.component.d.ts +0 -12
  1216. package/public-api.d.ts +0 -143
@@ -0,0 +1,1171 @@
1
+ import { ChangeDetectorRef, Component, Inject, Injector, OnDestroy, OnInit, ViewChild, ViewContainerRef, HostListener, ElementRef } from '@angular/core';
2
+ import { RippleConfig } from '@angular/material/core/ripple';
3
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
4
+ import { isObservable, Subject } from 'rxjs';
5
+ import { takeUntil, tap } from 'rxjs/operators';
6
+ import { isArray, isBoolean, isDate, isPromise, isString } from '../functions';
7
+ import { PANES_DATA, PaneRef, PaneOptions, QueryParamNavigation, ParamNavigation, NavigationStart, NavigationEnd, NavigationSelected, PATH_CHAR, QUERY_CHAR, ARG_CHAR, PANE_CHAR, CollapseNavigation, BackNavigation } from './pane-ref';
8
+ import { PanesRouter } from './router.service';
9
+ import { SessionService } from '../session.service';
10
+ import { CdkScrollable, ComponentType } from '@angular/cdk/overlay';
11
+ import { WindowTitleService } from '../window-title.service';
12
+ import { panesAnimation, paneAnimation, panesTitleAnimation, paramAnimation, queryAnimation, tabAnimation, tabsAnimation } from '../animations';
13
+ import { PaneResolve, PaneRoute, ParamMap, CanDismiss, DEFAULT_POLICY, OpenPolicy } from '../configuration';
14
+ import { GuideService } from '../guide/guide.service';
15
+ import { PromptService } from '../prompt.service';
16
+ declare global {
17
+ interface Window {
18
+ removeAllListeners(name?: string);
19
+ }
20
+ }
21
+
22
+ const DEFAULT_ROUTE = ['dashboard'];
23
+ @Component({
24
+ selector: 'bizdoc-panes',
25
+ templateUrl: './slots.component.html',
26
+ styleUrls: ['./slots.component.scss'],
27
+ animations: [panesAnimation,
28
+ panesTitleAnimation,
29
+ paneAnimation,
30
+ paramAnimation,
31
+ queryAnimation,
32
+ tabsAnimation,
33
+ tabAnimation
34
+ ]
35
+ })
36
+ export class SlotsComponent implements OnInit, OnDestroy {
37
+ @ViewChild('paning', { read: ViewContainerRef, static: true }) _panesContainerRef: ViewContainerRef;
38
+ //@ViewChild('tabs', { read: ViewContainerRef, static: true }) _tabsContainerRef: ViewContainerRef;
39
+ @ViewChild('tabing') _tabsElement: ElementRef;
40
+ @ViewChild(CdkScrollable, { static: true }) _scrollable: CdkScrollable;
41
+ titleAnimation = 0;
42
+ group: string;
43
+ swap?: number;
44
+ swapTab?: number;
45
+ prevGroup?: string;
46
+
47
+ readonly panes: PaneRef<any>[] = [];
48
+ readonly tabs: PaneRef<any>[] = [];
49
+ private _selectedTabIndex = -1;
50
+ public get selectedTabIndex() {
51
+ return this._selectedTabIndex;
52
+ }
53
+ public set selectedTabIndex(value) {
54
+ this._selectedTabIndex = value;
55
+ this._setTabAnimation();
56
+ }
57
+ private _setTabAnimation() {
58
+ this.tabsAnimation = {
59
+ value: this.selectedTabIndex,
60
+ params: {
61
+ startWidth: this._tabsElement ? this._tabsElement.nativeElement.clientWidth : 0
62
+ }
63
+ };
64
+ }
65
+ selectedIndex = -1;
66
+ next: boolean;
67
+ prev: boolean;
68
+ dragging: boolean = false;
69
+ dialog: boolean;
70
+ tabsAnimation: {
71
+ value: number,
72
+ params: {
73
+ startWidth: number
74
+ }
75
+ };
76
+ readonly ripple: RippleConfig = {
77
+ color: this._session.getAccent(),
78
+ centered: true,
79
+ radius: 25
80
+ }
81
+ accent: string = this._session.getAccent();
82
+ private _navigating: boolean;
83
+ private _repository: ExtendedRoute[];
84
+ private readonly _pending = [] as string[];
85
+ private readonly _rtl = this._session.inverse;
86
+ private readonly _destroy = new Subject<void>();
87
+ constructor(
88
+ @Inject(PANES_DATA) data: ExtendedRoute[],
89
+ private _ps: PromptService,
90
+ private _session: SessionService,
91
+ private _cd: ChangeDetectorRef,
92
+ private _router: PanesRouter,
93
+ private _title: WindowTitleService,
94
+ private _guide: GuideService,
95
+ private _injector: Injector) {
96
+ _session.themeChange.pipe(takeUntil(this._destroy)).
97
+ subscribe(() => this.accent = _session.getAccent());
98
+ _router._comm$.
99
+ subscribe(e => {
100
+ switch (e) {
101
+ case 'collapse':
102
+ this.collapse();
103
+ break;
104
+ default:
105
+ }
106
+ });
107
+ this._repository = prepareRoutes(data);
108
+ }
109
+
110
+ ngOnInit(): void {
111
+ this._router._navigate$.
112
+ subscribe(async n => {
113
+ const { commands, component, pathMode, relativeTo } = n;
114
+ let {
115
+ icon,
116
+ title,
117
+ group,
118
+ help,
119
+ policy,
120
+ queryParams,
121
+ state
122
+ } = n;
123
+ let
124
+ queryString: string,
125
+ params: ParamMap,
126
+ parent: PaneRef,
127
+ path: string,
128
+ route: ExtendedRoute;
129
+
130
+ if (commands && commands.length) {
131
+ path = n.commands.join('/');
132
+ if (path.indexOf(QUERY_CHAR) > -1) {
133
+ const segs = path.split(QUERY_CHAR);
134
+ queryString = segs[1];
135
+ queryParams = this._parseQueryParams(queryString || '');
136
+ path = segs[0];
137
+ }
138
+ else {
139
+ queryParams = n.queryParams || {};
140
+ queryString = this._queryString(queryParams);
141
+ }
142
+ if (pathMode === 'relative' || path.startsWith('../')) {
143
+ parent = relativeTo || this.panes[this.selectedIndex];
144
+ let parentpath = parent.path;
145
+ while (path.startsWith('../')) {
146
+ parentpath = parentpath.substr(0, parentpath.lastIndexOf('/'));
147
+ path = path.substr(3);
148
+ }
149
+ path = parentpath + '/' + path;
150
+ }
151
+ route = this._match(path);
152
+
153
+ if (!route)
154
+ throw `no match ${path}`;
155
+ params = this._params(route, path);
156
+ if (!policy) policy = route.policy || DEFAULT_POLICY;
157
+ else if (route.policy) policy |= route.policy;
158
+ if (!icon) icon = route.icon;
159
+ if (!help) help = route.help;
160
+ }
161
+ else {
162
+ if (!policy) policy = DEFAULT_POLICY;
163
+ if (!queryParams) queryParams = {};
164
+ }
165
+
166
+ if ((policy & OpenPolicy.Clear) == OpenPolicy.Clear)
167
+ await this._clear();
168
+
169
+ if (commands) {
170
+ let i = 0;
171
+ if ((policy & OpenPolicy.Tab) == OpenPolicy.Tab)
172
+ while (i < this.tabs.length) {
173
+ let tab = this.tabs[i];
174
+ if (path === tab.path) {
175
+ if (queryString === tab.queryString) {
176
+ if ((policy & OpenPolicy.Toggle) == OpenPolicy.Toggle) {
177
+ this.tabs.splice(i, 1);
178
+ this.selectedTabIndex = this.tabs.length - 1;
179
+ }
180
+ else {
181
+ state && tab._data$.next(state);
182
+ this.group = tab.group;
183
+ this.selectedTabIndex = i;
184
+ this._cd.detectChanges();
185
+ }
186
+ return;
187
+ }
188
+ else {
189
+ this._navQueryParams(tab, queryParams, state);
190
+ this.group = tab.group;
191
+ this.selectedTabIndex = i;
192
+ this._cd.detectChanges();
193
+ this._replaceUrl();
194
+ return;
195
+ }
196
+ }
197
+ else if (tab.route === route) {
198
+ await this._navParams(path, tab, params, queryParams, state);
199
+ this.group = tab.group;
200
+ this.selectedTabIndex = i;
201
+ this._replaceUrl();
202
+ return;
203
+ }
204
+ i++;
205
+ }
206
+ else
207
+ while (i < this.panes.length) {
208
+ let pane = this.panes[i];
209
+ if (path === pane.path) {
210
+ if (queryString === pane.queryString) {
211
+ if ((policy & OpenPolicy.Toggle) == OpenPolicy.Toggle)
212
+ this.removeAt(i);
213
+ else {
214
+ state && pane._data$.next(state);
215
+ this._cd.detectChanges();
216
+ this.scrollTo(i);
217
+ }
218
+ return;
219
+ }
220
+ else {
221
+ this._navQueryParams(pane, queryParams, state);
222
+ this.scrollTo(i);
223
+ this._replaceUrl();
224
+ return;
225
+ }
226
+ }
227
+ else if (pane.route === route) {
228
+ await this._navParams(path, pane, params, queryParams, state);
229
+ this._replaceUrl();
230
+ return;
231
+ }
232
+ i++;
233
+ }
234
+ if (commands.length) {
235
+ if (!state) state = {};
236
+ await this._state(route, path, params, state);
237
+ if ((policy & OpenPolicy.Tab) == OpenPolicy.Tab)
238
+ this._insertTab(component || route.component,
239
+ {
240
+ queryString,
241
+ path,
242
+ route,
243
+ icon,
244
+ title,
245
+ group,
246
+ help,
247
+ data: state,
248
+ parent,
249
+ params,
250
+ queryParams,
251
+ policy
252
+ });
253
+ else {
254
+ const pane = this._insertPane(component || route.component,
255
+ {
256
+ queryString,
257
+ path,
258
+ route,
259
+ icon,
260
+ title,
261
+ help,
262
+ data: state,
263
+ parent,
264
+ params,
265
+ queryParams,
266
+ policy
267
+ });
268
+ pane._fullscreen$.next(this.panes.length === 1);
269
+ }
270
+ route &&
271
+ this._replaceUrl();
272
+ }
273
+ else {
274
+ const pane = (policy & OpenPolicy.Tab) == OpenPolicy.Tab ?
275
+ this.tabs[this.selectedTabIndex] : this.panes[this.selectedIndex];
276
+ this._navQueryParams(pane, queryParams, state);
277
+ this._replaceUrl();
278
+ if ((policy & OpenPolicy.Tab) != OpenPolicy.Tab) this.select(this.selectedIndex);
279
+ }
280
+ }
281
+ else {
282
+ if ((policy & OpenPolicy.Tab) == OpenPolicy.Tab)
283
+ this._insertTab(component,
284
+ {
285
+ data: state,
286
+ icon, title, help,
287
+ parent,
288
+ queryString,
289
+ path,
290
+ route,
291
+ group,
292
+ params,
293
+ queryParams,
294
+ policy
295
+ });
296
+ else {
297
+ const pane = this._insertPane(component,
298
+ {
299
+ data: state,
300
+ icon, title, help,
301
+ parent,
302
+ queryString,
303
+ path,
304
+ route,
305
+ params,
306
+ policy, queryParams
307
+ });
308
+ pane._fullscreen$.next(this.panes.length === 1);
309
+ }
310
+ }
311
+ });
312
+ window.removeAllListeners('popstate');
313
+ window.addEventListener('popstate', e => {
314
+ if (this._navigating) {
315
+ this._navigating = false;
316
+ return;
317
+ }
318
+ const state = e.state && e.state.bizdoc ? e.state as HistoryState : undefined;
319
+ this._deserialize(location.pathname.substring(1), state);
320
+ if (state) {
321
+ this.swap = state.swap;
322
+ this.swapTab = state.swapTab;
323
+ this.prevGroup = state.prevGroup;
324
+ this.group = state.group;
325
+ this.selectedTabIndex = state.selectedTabIndex;
326
+ }
327
+ });
328
+ if (location.pathname.length > 1)
329
+ this._deserialize(location.pathname.substring(1),
330
+ history.state && history.state.bizdoc ? history.state : undefined);
331
+ else
332
+ this._router._navigate$.next({
333
+ commands: DEFAULT_ROUTE,
334
+ });
335
+ }
336
+ private async _deserialize(url: string, state?: HistoryState) {
337
+
338
+ const sections = decodeURIComponent(url).split(PANE_CHAR), panes = deserialize(sections[0]), tabs = sections.length > 1 ? deserialize(sections[1]) : [];
339
+
340
+ function deserialize(path: string) {
341
+ return path.
342
+ split(PATH_CHAR).map(s => {
343
+ const [path, queryString] = s.split(QUERY_CHAR);
344
+ return { path, queryString };
345
+ });
346
+ }
347
+
348
+ for (let i = 0; i < panes.length; i++) {
349
+ let pane = panes[i];
350
+ await this._navigatePane(i, pane.path, pane.queryString, state ? state.panes[i] : null);
351
+ }
352
+ if (this.panes.length > panes.length) {
353
+ let i = 0;
354
+ while (i < this.panes.length) {
355
+ let pane = this.panes[i];
356
+ if (panes.length - 1 < i || pane.path !== panes[i].path) {
357
+ if (this.selectedIndex === i)
358
+ this.selectedIndex = i - 1;
359
+ this.panes.splice(i, 1);
360
+ this._destroyPane(pane);
361
+ }
362
+ else
363
+ i++;
364
+ }
365
+ }
366
+ if (this.selectedIndex < 0)
367
+ this.select(0);
368
+ for (let i = 0; i < tabs.length; i++) {
369
+ let tab = tabs[i];
370
+ await this._navigateTab(i, tab.path, tab.queryString, state ? state.tabs[i] : null);
371
+ }
372
+ if (this.tabs.length > tabs.length) {
373
+ let i = 0;
374
+ while (i < this.tabs.length) {
375
+ let tab = this.tabs[i];
376
+ if (tabs.length - 1 < i || tab.path !== tabs[i].path) {
377
+ if (this.selectedTabIndex === i) {
378
+ this.selectedTabIndex = i - 1;
379
+ }
380
+ this.tabs.splice(i, 1);
381
+ this._destroyPane(tab);
382
+ }
383
+ else
384
+ i++;
385
+ }
386
+ }
387
+ if (this.tabs.length && this.selectedTabIndex < 0) {
388
+ this.selectedTabIndex = 0;
389
+ }
390
+ const n = this.panes.length;
391
+ for (let i = 0; i < n; i++) {
392
+ let pane = this.panes[i];
393
+ pane.fullscreen !== (n === 1) &&
394
+ pane._fullscreen$.next(n === 1);
395
+ }
396
+ }
397
+ /**
398
+ *
399
+ * @param index
400
+ * @param path
401
+ * @param queryString
402
+ * @param state
403
+ */
404
+ private async _navigatePane(index: number, path: string, queryString: string, state?: any) {
405
+ const route = this._match(path);
406
+
407
+ if (!route) throw `no match ${path}`;
408
+
409
+ if (!state) state = {};
410
+
411
+ while (index < this.panes.length) {
412
+ let pane = this.panes[index];
413
+ if (path === pane.path) {
414
+ if (queryString === pane.queryString) {
415
+ return;
416
+ }
417
+ else {
418
+ const queryParams = this._parseQueryParams(queryString);
419
+ this._navQueryParams(pane, queryParams, state);
420
+ return;
421
+ }
422
+ }
423
+ else if (pane.route === route) {
424
+ const queryParams = this._parseQueryParams(queryString);
425
+ const params = this._params(pane.route as ExtendedRoute, path);
426
+ await this._navParams(path, pane, params, queryParams, state);
427
+ return;
428
+ }
429
+ index++;
430
+ }
431
+
432
+ const params = this._params(route, path);
433
+ const queryParams = this._parseQueryParams(queryString);
434
+ const parent = this._findAncestor(route, path);
435
+ await this._state(route, path, params, state);
436
+ this._insertPane(route.component, {
437
+ path, parent, route, data: state, params, queryParams,
438
+ icon: route.icon,
439
+ help: route.help,
440
+ policy: route.policy,
441
+ focus: false
442
+ });
443
+ }
444
+ private async _navigateTab(index: number, path: string, queryString: string, state?: any) {
445
+ const route = this._match(path);
446
+
447
+ if (!route) throw `no match ${path}`;
448
+
449
+ if (!state) state = {};
450
+
451
+ while (index < this.tabs.length) {
452
+ let tab = this.tabs[index];
453
+ if (path === tab.path) {
454
+ if (queryString === tab.queryString) {
455
+ return;
456
+ }
457
+ else {
458
+ const queryParams = this._parseQueryParams(queryString);
459
+ this._navQueryParams(tab, queryParams, state);
460
+ return;
461
+ }
462
+ }
463
+ else if (tab.route === route) {
464
+ const queryParams = this._parseQueryParams(queryString);
465
+ const params = this._params(tab.route as ExtendedRoute, path);
466
+ await this._navParams(path, tab, params, queryParams, state);
467
+ return;
468
+ }
469
+ index++;
470
+ }
471
+
472
+ const params = this._params(route, path);
473
+ const queryParams = this._parseQueryParams(queryString);
474
+
475
+ const parent = this._findAncestor(route, path);
476
+
477
+ await this._state(route, path, params, state);
478
+ this._insertTab(route.component, {
479
+ icon: route.icon,
480
+ help: route.help,
481
+ policy: route.policy | OpenPolicy.Tab,
482
+ path, parent, route,
483
+ data: state,
484
+ params, queryParams,
485
+ focus: false,
486
+ swap: false
487
+ });
488
+ }
489
+ private _findAncestor(route: ExtendedRoute, path: string) {
490
+ if ((route as ExtendedRoute).parent)
491
+ return this.panes.find(p => (p.route as ExtendedRoute) ===
492
+ (route as ExtendedRoute).parent &&
493
+ path.startsWith(p.path));
494
+ }
495
+ /**
496
+ *
497
+ * @param pane
498
+ * @param queryParams
499
+ */
500
+ private _navQueryParams(pane: PaneRef<any>, queryParams: ParamMap, state: ParamMap) {
501
+ pane._queryString = this._queryString(queryParams);
502
+ state && pane._data$.next(state);
503
+ pane._queryParams$.next(queryParams);
504
+ this._router._events$.next(new QueryParamNavigation(queryParams, pane));
505
+ }
506
+ /**
507
+ *
508
+ * @param path
509
+ * @param pane
510
+ * @param params
511
+ * @param queryParams
512
+ * @param state
513
+ */
514
+ private async _navParams(path: string, pane: PaneRef<any>, params: ParamMap, queryParams: ParamMap, state: ParamMap) {
515
+ if (pane.route.canDismiss)
516
+ await this._dismiss(pane);
517
+
518
+ if (!state) state = {};
519
+ await this._state(pane.route as ExtendedRoute, path, params, state);
520
+ pane._data$.next(state);
521
+ pane._path = path;
522
+ pane._params$.next(params);
523
+ if (queryParams) {
524
+ pane._queryString = this._queryString(queryParams);
525
+ pane._queryParams$.next(queryParams);
526
+ }
527
+ else {
528
+ pane._queryString = '';
529
+ pane._queryParams$.next({});
530
+ }
531
+ this._router._events$.next(new ParamNavigation(params, pane));
532
+
533
+ this.panes.concat(this.tabs).forEach(child => {
534
+ if (child.route && (child.route as ExtendedRoute).parent === pane.route) {
535
+ child._data$.next(Object.assign(child.data, state));
536
+ child._params$.next(params);
537
+ child._path = pane.path + '/' + child.route.path;
538
+ if (this.selectedTabIndex > -1 && child === this.tabs[this.selectedTabIndex]) {
539
+ this.selectedTabIndex = this.selectedTabIndex;
540
+ this.group = child.group;
541
+ }
542
+ }
543
+ });
544
+ if (pane.mode === 'pane') this.titleAnimation++;
545
+ this._cd.detectChanges();
546
+ }
547
+ /** */
548
+ private _replaceUrl() {
549
+ let path = this.panes.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
550
+ if (this.tabs.length)
551
+ path += PANE_CHAR + this.tabs.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
552
+ const step = history.state && history.state.bizdoc ? (history.state as HistoryState).step + 1 : 1;
553
+ this._navigating = true;
554
+ history.pushState({
555
+ bizdoc: true,
556
+ step,
557
+ selectedTabIndex: this.selectedTabIndex,
558
+ panes: this.panes.map(p => p.data),
559
+ tabs: this.tabs.map(t => t.data),
560
+ swap: this.swap,
561
+ group: this.group,
562
+ swapTab: this.swapTab,
563
+ prevGroup: this.prevGroup
564
+ } as HistoryState, '', '/' + path);
565
+ setTimeout(() => this._navigating = false, 200);
566
+ }
567
+ drop(evt: CdkDragDrop<string, string>) {
568
+ const pane = this.panes[evt.previousIndex];
569
+ this.panes.splice(evt.previousIndex, 1);
570
+ this.panes.splice(evt.currentIndex, 0, pane);
571
+ this._replaceUrl();
572
+ }
573
+
574
+ togglePinned(pane: PaneRef<any>) {
575
+ pane.pinned = !pane.pinned;
576
+ this.panes.forEach(s => {
577
+ if (s.decendentOf(pane)) s.pinned = pane.pinned;
578
+ });
579
+ }
580
+
581
+ private _queryString(queryParams: ParamMap) {
582
+ const names = Object.keys(queryParams);
583
+ let queryString: string;
584
+ for (var i = 0; i < names.length; i++) {
585
+ let val = queryParams[names[i]];
586
+
587
+ if (val !== null && val !== undefined) {
588
+ if (!queryString) queryString = '';
589
+ else queryString = queryString + ARG_CHAR;
590
+
591
+ if (isString(val))
592
+ queryString += `${names[i]}=${encodeURIComponent(val)}`;
593
+ else if (isArray(val))
594
+ queryString += val.map(v => `${names[i]}=${v}`).join(ARG_CHAR);
595
+ else if (isDate(val))
596
+ queryString += `${names[i]}=${val.toJSON()}`;
597
+ else
598
+ queryString += `${names[i]}=${val}`;
599
+ }
600
+ }
601
+ return queryString;
602
+ }
603
+ private _parseQueryParams(queryString: string): ParamMap {
604
+ const queryParams = {};
605
+ queryString && queryString.
606
+ split(ARG_CHAR).forEach(p => {
607
+ const [name, value] = p.split('=');
608
+ if (!queryParams[name])
609
+ queryParams[name] = value;
610
+ else {
611
+ const vals = queryParams[name];
612
+ queryParams[name] = isArray(vals) ? [...vals, value] : [vals, value];
613
+ }
614
+ });
615
+ return queryParams;
616
+ }
617
+ /**
618
+ *
619
+ * @param route
620
+ * @param path
621
+ */
622
+ private _params(route: ExtendedRoute, path: string) {
623
+ const ex = route.regEx.exec(path),
624
+ params = ex.groups;
625
+
626
+ return params || {};
627
+ }
628
+ /**
629
+ *
630
+ * @param url
631
+ */
632
+ private _match(url: string) {
633
+ let route = this._repository.find(r => r.regEx.test(url));
634
+ if (route)
635
+ while (route.children) {
636
+ let child = route.children.find(r => r.regEx.test(url));
637
+ if (child)
638
+ route = child;
639
+ else break;
640
+ }
641
+ return route;
642
+ }
643
+ /**
644
+ *
645
+ * @param route
646
+ * @param path
647
+ * @param params
648
+ * @param data
649
+ */
650
+ private async _state(route: ExtendedRoute, path: string, params: ParamMap, data: ParamMap) {
651
+ if (this._pending.indexOf(path) > -1) {
652
+ //this._ps.toast('Working');
653
+ throw 'already processing';
654
+ }
655
+ this._pending.push(path);
656
+
657
+ const { parent, resolve } = route;
658
+ if (parent)
659
+ await this._parentstate(parent, path, params, data);
660
+ if (resolve) {
661
+ await this._resolve(resolve, params, data);
662
+ }
663
+ this._pending.remove(path);
664
+ }
665
+ /**
666
+ *
667
+ * @param route
668
+ * @param path
669
+ * @param params
670
+ * @param data
671
+ */
672
+ private async _parentstate(route: ExtendedRoute, path: string, params: ParamMap, data: ParamMap) {
673
+ const { parent, resolve } = route;
674
+
675
+ if (parent)
676
+ await this._parentstate(parent, path, params, data);
677
+
678
+ const pane = this.panes.find(s => s.route && s.route === route
679
+ && path.startsWith(s.path));
680
+
681
+ pane && Object.assign(data, pane.data);
682
+
683
+ if (resolve)
684
+ await this._resolve(resolve, params, data);
685
+ }
686
+
687
+ private async _resolve(resolve: { [key: string]: ComponentType<PaneResolve<any>> }, params: ParamMap, data: ParamMap) {
688
+ const keys = Object.keys(resolve);
689
+ for (let i = 0; i < keys.length; i++) {
690
+ let key = keys[i];
691
+ if (!data[key]) {
692
+ const instance = this._injector.get(resolve[key]) as PaneResolve<any>;
693
+ const value = instance.onResolve(params);
694
+ if (isPromise(value))
695
+ await value.then(r => data[key] = r);
696
+ else if (isObservable(value))
697
+ await value.pipe(tap(r => data[key] = r)).toPromise();
698
+ else
699
+ data[key] = value;
700
+ }
701
+ }
702
+ }
703
+
704
+ add<T>(component: ComponentType<T>, options?: PaneOptions) {
705
+ return this.insert(this.panes.length, component, options);
706
+ }
707
+ insert<T>(position: number, component: ComponentType<T>, options?: PaneOptions) {
708
+ const pane = this._insertPane<T>(component, options || {}, position);
709
+ pane._fullscreen$.next(this.panes.length === 1);
710
+ return pane;
711
+ }
712
+ private _insertPane<T = any>(component: ComponentType<T>, options: {
713
+ path?: string;
714
+ route?: PaneRoute;
715
+ icon?: string;
716
+ title?: string;
717
+ inputs?: { [name: string]: any },
718
+ data?: ParamMap;
719
+ params?: ParamMap;
720
+ queryParams?: ParamMap;
721
+ help?: string;
722
+ parent?: PaneRef<any>;
723
+ queryString?: string;
724
+ policy?: OpenPolicy;
725
+ focus?: boolean
726
+ }, position?: number) {
727
+ //this._animationBuilder.build([]).create(element, { params: {} }).play();
728
+ const pane = this._constract<T>(component, 'pane', options);
729
+ if (position === undefined)
730
+ position = this.panes.length;
731
+ this.panes.push(pane);
732
+ this.titleAnimation++;
733
+ this._cd.detectChanges();
734
+ this._router._events$.next(new NavigationStart(pane));
735
+ if (options.focus !== false) {
736
+ this.selectedIndex = position;
737
+ this._router._active = pane;
738
+ this._title.set(pane.title);
739
+ if (this.panes.length > 1) this.scrollTo(position);
740
+ }
741
+ this.navigationArrows();
742
+ return pane;
743
+ }
744
+ /**
745
+ *
746
+ * @param component
747
+ * @param options
748
+ */
749
+ private _constract<T = any>(component: ComponentType<T>,
750
+ mode: 'tab' | 'pane',
751
+ options: {
752
+ dialog?: boolean;
753
+ path?: string; route?: PaneRoute; icon?: string; title?: string;
754
+ group?: string;
755
+ data?: ParamMap;
756
+ params?: ParamMap;
757
+ queryParams?: ParamMap;
758
+ help?: string;
759
+ parent?: PaneRef<any>;
760
+ queryString?: string;
761
+ dismissable?: boolean
762
+ }) {
763
+ const pane = new PaneRef<T>(component, mode, options);
764
+ pane._injector = Injector.create([
765
+ { provide: PaneRef, useValue: pane }
766
+ ], this._injector);
767
+ pane._comm$.subscribe(e => this._action<T>(e, pane));
768
+ return pane;
769
+ }
770
+
771
+ private _insertTab<T = any>(component: ComponentType<T>, options: {
772
+ icon?: string;
773
+ title?: string;
774
+ group?: string;
775
+ help?: string;
776
+ path?: string;
777
+ queryString?: string;
778
+ route?: PaneRoute;
779
+ data?: ParamMap;
780
+ params?: ParamMap;
781
+ queryParams?: ParamMap;
782
+ parent?: PaneRef<any>;
783
+ policy?: OpenPolicy;
784
+ swap?: boolean;
785
+ focus?: boolean;
786
+ }) {
787
+ const { policy } = options,
788
+ dialog = (policy & OpenPolicy.Dialog) == OpenPolicy.Dialog,
789
+ dismissable = (policy & OpenPolicy.Dismissable) == OpenPolicy.Dismissable;
790
+
791
+ const tab = this._constract<T>(component,
792
+ 'tab', {
793
+ ...options,
794
+ dialog,
795
+ dismissable
796
+ });
797
+ this.tabs.push(tab);
798
+ this.dialog = dialog;
799
+ this._router._events$.next(new NavigationStart(tab));
800
+ this._cd.detectChanges();
801
+ if (tab.group && this.group !== tab.group && options.swap !== false) {
802
+ let i = 0, swap = false;
803
+ do {
804
+ if (this.tabs[i].group !== tab.group) {
805
+ this._destroyPane(this.tabs[i]);
806
+ this.tabs.splice(i, 1);
807
+ swap = true;
808
+ }
809
+ else
810
+ i++
811
+ } while (i < this.tabs.length);
812
+ if (swap) {
813
+ this.swapTab = this._getHistoryStep();
814
+ this.prevGroup = this.group;
815
+ }
816
+ this.group = tab.group;
817
+ }
818
+ else
819
+ this.swapTab = null;
820
+ if (options.focus !== false) {
821
+ this.selectedTabIndex = this.tabs.length - 1;
822
+ }
823
+ this._cd.detectChanges();
824
+ return tab;
825
+ }
826
+
827
+ guide(name: string) {
828
+ this._guide.start(name);
829
+ }
830
+ back() {
831
+ this._back(this.swap);
832
+ this.swap = null;
833
+ }
834
+ private async _back(steps: number) {
835
+ this._router._events$.next(new BackNavigation());
836
+ history.go(steps - (history.state as HistoryState).step);
837
+ }
838
+ tabBack() {
839
+ this._back(this.swapTab);
840
+ this.swapTab = null;
841
+ }
842
+ private _action<T = any>(e: string, pane: PaneRef<T>) {
843
+ switch (e) {
844
+ case 'focus':
845
+ {
846
+ if (pane.mode === 'tab') {
847
+ this.selectedTabIndex = this.tabs.indexOf(pane);
848
+ }
849
+ else {
850
+ const index = this.panes.indexOf(pane);
851
+ this.focus(index);
852
+ }
853
+ break;
854
+ }
855
+ case 'close':
856
+ if (pane.mode === 'tab') {
857
+ const index = this.tabs.indexOf(pane);
858
+ this.closeTab(index);
859
+ }
860
+ else {
861
+ const index = this.panes.indexOf(pane);
862
+ this.collapse();
863
+ this.removeAt(index);
864
+ }
865
+ break;
866
+ case 'expand':
867
+ if (pane.mode === 'tab')
868
+ this.expandTab();
869
+ else
870
+ this.expandPane();
871
+ break;
872
+ case 'refresh': {
873
+ const panes = this.panes.concat(this.tabs);
874
+ for (let i = 0; i < panes.length; i++) {
875
+ let pan = panes[i];
876
+ if (pan.decendentOf(pane))
877
+ pan._data$.next(Object.assign(pan.data, pane.data));
878
+ }
879
+ break;
880
+ }
881
+ }
882
+ }
883
+
884
+ /**
885
+ * escape
886
+ * @param event
887
+ */
888
+ @HostListener('document:keydown.escape')
889
+ collapse() {
890
+ if (!this.tabs.length) return;
891
+ this.tabs.forEach(t => this._destroyPane(t));
892
+ this.tabs.splice(0, this.tabs.length);
893
+ this.selectedTabIndex = -1;
894
+ this.swapTab = null;
895
+ this.dialog = false;
896
+ this._replaceUrl();
897
+ this._router._events$.next(new CollapseNavigation());
898
+ }
899
+ private _resize() {
900
+ window.dispatchEvent(new Event('resize'));
901
+ }
902
+ closeTab(position: number) {
903
+ const tab = this.tabs[position];
904
+ this.tabs.splice(position, 1);
905
+ this._destroyPane(tab);
906
+ this.selectedTabIndex = this.tabs.length ? position > 0 ? position - 1 : 0 : -1;
907
+ this._replaceUrl();
908
+ }
909
+ expandPane() {
910
+ const pane = this.panes[this.selectedIndex];
911
+ this.swap = this._getHistoryStep();
912
+ let i = 0;
913
+ do {
914
+ if (this.panes[i] !== pane) {
915
+ this._destroyPane(this.panes[i]);
916
+ this.panes.splice(i, 1);
917
+ }
918
+ else
919
+ i++;
920
+ }
921
+ while (i < this.panes.length);
922
+ this.selectedIndex = 0;
923
+ this._replaceUrl();
924
+ pane._fullscreen$.next(true);
925
+ }
926
+ private _getHistoryStep(): number {
927
+ return history.state && history.state.bizdoc ? (history.state as HistoryState).step : 0;
928
+ }
929
+
930
+ expandTab() {
931
+ this.swap = this._getHistoryStep();
932
+ this.swapTab = null;
933
+ this.panes.forEach(p =>
934
+ this._destroyPane(p)
935
+ );
936
+ const tab = this.tabs[this.selectedTabIndex];
937
+ this.tabs.splice(this.selectedTabIndex, 1);
938
+ this.panes.splice(0, this.panes.length, tab);
939
+ tab._mode$.next('pane');
940
+ tab._fullscreen$.next(true);
941
+ this.selectedTabIndex = this.tabs.length ? 0 : -1;
942
+ this._replaceUrl();
943
+ }
944
+
945
+ select(position: number) {
946
+ if (this.selectedIndex === position) return;
947
+ if (position === -1) {
948
+ if (this.panes.length) position = this.panes.length - 1;
949
+ else return;
950
+ }
951
+ this.selectedIndex = position;
952
+ const pane = this.panes[position];
953
+ this._router._events$.next(new NavigationSelected(pane));
954
+ this._router._active = pane;
955
+ this._title.set(pane.title);
956
+ }
957
+ async removeAt(position: number) {
958
+ const pane = this.panes[position];
959
+
960
+ await this._dismiss(pane);
961
+
962
+ this._discardPane(pane);
963
+
964
+ if (position >= this.selectedIndex)
965
+ this.select(-1);
966
+ this._replaceUrl();
967
+ }
968
+ /**
969
+ *
970
+ * @param pane
971
+ */
972
+ private async _dismiss(pane: PaneRef<any>) {
973
+ const panes = this.panes.concat(this.tabs).
974
+ filter(s => s.decendentOf(pane) && s.route && s.route.canDismiss).
975
+ reverse();
976
+
977
+ pane.route && pane.route.canDismiss &&
978
+ panes.push(pane);
979
+
980
+ for (let i = 0; i < panes.length; i++) {
981
+ let ok = await this._dismissable(panes[i]);
982
+ if (!ok) throw '';
983
+ }
984
+ }
985
+ /**
986
+ *
987
+ * @param pane
988
+ */
989
+ private _discardPane(pane: PaneRef<any>) {
990
+ this.panes.concat(this.tabs).
991
+ filter(s => s.decendentOf(pane)).
992
+ reverse().forEach(s => this._discardPane(s));
993
+ this._destroyPane(pane);
994
+ const index = this.panes.indexOf(pane);
995
+ this.panes.splice(index, 1);
996
+ }
997
+
998
+ private async _clear() {
999
+ await this._dismissAll();
1000
+ this.panes.concat(this.tabs).forEach(p =>
1001
+ this._destroyPane(p)
1002
+ );
1003
+ this._pending.splice(0, this._pending.length);
1004
+ this.panes.splice(0, this.panes.length);
1005
+ this.tabs.splice(0, this.tabs.length);
1006
+ this.selectedIndex = -1;
1007
+ this.selectedTabIndex = -1;
1008
+ this.swap = null;
1009
+ this.swapTab = null;
1010
+ }
1011
+ private async _dismissAll() {
1012
+ const panes = this.panes.concat(this.tabs).
1013
+ filter(s => s.route && s.route.canDismiss);
1014
+
1015
+ for (let i = 0; i < panes.length; i++) {
1016
+ let ok = await this._dismissable(panes[i]);
1017
+ if (!ok)
1018
+ throw '';
1019
+ }
1020
+ }
1021
+
1022
+ /**
1023
+ *
1024
+ * @param pane
1025
+ */
1026
+ private _dismissable(pane: PaneRef<any>) {
1027
+ const { instance, route: { canDismiss } } = pane;
1028
+ const dismissable = this._injector.get(canDismiss) as CanDismiss<any>;
1029
+ const ok = dismissable.onDismiss(instance);
1030
+ if (isBoolean(ok))
1031
+ return Promise.resolve(ok);
1032
+ else if (isPromise(ok))
1033
+ return ok;
1034
+ else
1035
+ return ok.toPromise();
1036
+ }
1037
+ scrollTo(index: number) {
1038
+ const item = this._children.item(index) as HTMLDivElement;
1039
+ item && item.scrollIntoView({ behavior: 'smooth', inline: 'end', block: 'end' });
1040
+ }
1041
+
1042
+ private get _children() {
1043
+ return this._panesContainerRef.element.nativeElement.querySelectorAll('.pane-content');
1044
+ }
1045
+ done() {
1046
+ this.navigationArrows();
1047
+ this._resize();
1048
+ }
1049
+ navigationArrows(_?: Event) {
1050
+ const container = this._panesContainerRef.element.nativeElement,
1051
+ scrollLeft = Math.round(container.scrollLeft);
1052
+ this.next = this._rtl ? container.clientWidth - scrollLeft < container.scrollWidth :
1053
+ scrollLeft + container.clientWidth < container.scrollWidth;
1054
+ this.prev = this._rtl ? scrollLeft < 0 : scrollLeft > 0;
1055
+ }
1056
+ scrollBy(n: number) {
1057
+ const left = n * (this._rtl ? -1 : 1);
1058
+ this._panesContainerRef.element.nativeElement.scrollBy({ behavior: 'smooth', left });
1059
+ }
1060
+ focus(index) {
1061
+ const el = this._children.item(index) as HTMLDivElement;
1062
+ el.focus();
1063
+ }
1064
+ onResize(pane: PaneRef<any>, event: MouseEvent) {
1065
+ const el = (event.srcElement as HTMLDivElement).previousElementSibling as HTMLDivElement;
1066
+
1067
+ const // remember mouse down info
1068
+ width = el.clientWidth,
1069
+ d = this._rtl ? -1 : 1;
1070
+
1071
+ (event.srcElement as HTMLDivElement).classList.add('resizing');
1072
+
1073
+ this.dragging = true;
1074
+
1075
+ document.onmousemove = onMouseMove;
1076
+ document.onmouseup = () => {
1077
+ (event.srcElement as HTMLDivElement).classList.remove('resizing');
1078
+ document.onmousemove = document.onmouseup = null;
1079
+ this.dragging = false;
1080
+ };
1081
+ function onMouseMove(e) {
1082
+
1083
+ const delta = (e.clientX - event.clientX) * d;
1084
+ el.style.width = el.style.minWidth
1085
+ = Math.max(width + delta, 350) + 'px';
1086
+ pane && pane._resize$.next({} as any);
1087
+ }
1088
+ }
1089
+ onTabResize(event: MouseEvent) {
1090
+ const el = (event.srcElement as HTMLDivElement).nextElementSibling as HTMLDivElement;
1091
+
1092
+ const
1093
+ me = this,
1094
+ // remember mouse down info
1095
+ width = el.clientWidth,
1096
+ d = this._rtl ? 1 : -1;
1097
+
1098
+ (event.srcElement as HTMLDivElement).classList.add('resizing');
1099
+
1100
+ this.dragging = true;
1101
+
1102
+ document.onmousemove = onMouseMove;
1103
+ document.onmouseup = () => {
1104
+ (event.srcElement as HTMLDivElement).classList.remove('resizing');
1105
+ document.onmousemove = document.onmouseup = null;
1106
+ this.dragging = false;
1107
+ me.navigationArrows();
1108
+ //this._cd.detectChanges();
1109
+ this._resize();
1110
+ };
1111
+ function onMouseMove(e) {
1112
+
1113
+ // prevent negative-sized elements
1114
+ const delta = Math.max((e.clientX - event.clientX) * d, -width);
1115
+ el.style.width = el.style.minWidth = (width + delta) + 'px';
1116
+ localStorage.setItem('tabs', el.style.width);
1117
+ // this.tabs[this.selectedTabIndex]._resize$.next({
1118
+ // height: el.clientHeight, width: width + delta
1119
+ // });
1120
+ }
1121
+ }
1122
+ private _destroyPane(pane: PaneRef) {
1123
+ pane._destroy();
1124
+ this._router._events$.next(new NavigationEnd(pane));
1125
+ }
1126
+ ngOnDestroy(): void {
1127
+ this._destroy.next();
1128
+ this._destroy.complete();
1129
+ }
1130
+ }
1131
+
1132
+ const PANE_PARAMS_REGEX = /(:[\w\-]+)/g;
1133
+
1134
+ function prepareRoutes(routes: PaneRoute[], treePath?: string): ExtendedRoute[] {
1135
+ for (let i = 0; i < routes.length; i++) {
1136
+ let route = routes[i], fullPath = (treePath ? (treePath + '/') : '') + route.path;
1137
+
1138
+ Object.assign(route, {
1139
+ fullPath,
1140
+ regEx: new RegExp('^' + fullPath.
1141
+ replace('/', '\\/').
1142
+ replace(PANE_PARAMS_REGEX, e => `(?<${e.substr(1)}>[\\w\\-]*)`))
1143
+ });
1144
+ if (route.children) {
1145
+ let children = prepareRoutes(route.children, fullPath);
1146
+ for (var j = 0; j < children.length; j++)
1147
+ Object.assign(children[j], {
1148
+ parent: route
1149
+ });
1150
+ }
1151
+ }
1152
+ return routes as ExtendedRoute[];
1153
+ }
1154
+
1155
+ interface ExtendedRoute extends PaneRoute {
1156
+ fullPath: string;
1157
+ regEx: RegExp;
1158
+ parent?: ExtendedRoute;
1159
+ children?: ExtendedRoute[];
1160
+ }
1161
+ interface HistoryState {
1162
+ bizdoc: true;
1163
+ step: number;
1164
+ swap?: number;
1165
+ swapTab?: number;
1166
+ group?: string;
1167
+ prevGroup?: string;
1168
+ panes: any[];
1169
+ tabs: any[];
1170
+ selectedTabIndex?: number;
1171
+ }