@bizdoc/core 1.15.0 → 1.15.3

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 (376) hide show
  1. package/assets/themes/brown.min.css +3 -3
  2. package/assets/themes/dark.min.css +3 -3
  3. package/assets/themes/deep-purple-light-blue.min.css +4 -4
  4. package/assets/themes/deep-purple-teal.min.css +4 -4
  5. package/assets/themes/default.min.css +4 -4
  6. package/assets/themes/green.min.css +3 -3
  7. package/assets/themes/indigo.min.css +3 -3
  8. package/esm2020/lib/admin/admin-dismiss.service.mjs +3 -3
  9. package/esm2020/lib/admin/admin-menu.component.mjs +3 -3
  10. package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +77 -0
  11. package/esm2020/lib/admin/configuration-designer/designer.base.mjs +13 -0
  12. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +102 -0
  13. package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +31 -0
  14. package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +73 -0
  15. package/esm2020/lib/admin/configuration-designer/elements/anomaly-rule.component.mjs +31 -0
  16. package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +31 -0
  17. package/esm2020/lib/admin/configuration-designer/elements/chart-view.component.mjs +76 -0
  18. package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +44 -0
  19. package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +32 -0
  20. package/esm2020/lib/admin/configuration-designer/elements/documents-report.component.mjs +51 -0
  21. package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +50 -0
  22. package/esm2020/lib/admin/configuration-designer/elements/explore-view.component.mjs +43 -0
  23. package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +32 -0
  24. package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +79 -0
  25. package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +36 -0
  26. package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +65 -0
  27. package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +56 -0
  28. package/esm2020/lib/admin/configuration-designer/elements/performance-widget.component.mjs +47 -0
  29. package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +57 -0
  30. package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +32 -0
  31. package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +31 -0
  32. package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +29 -0
  33. package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +57 -0
  34. package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +60 -0
  35. package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +33 -0
  36. package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +60 -0
  37. package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +32 -0
  38. package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +32 -0
  39. package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +31 -0
  40. package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +35 -0
  41. package/esm2020/lib/admin/core/ace.input.mjs +3 -3
  42. package/esm2020/lib/admin/core/color-picker.input.mjs +3 -3
  43. package/esm2020/lib/admin/core/search.input.mjs +3 -3
  44. package/esm2020/lib/admin/diff/configuration-diff.component.mjs +3 -3
  45. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +4 -4
  46. package/esm2020/lib/admin/document-trace/reassign.dialog.mjs +3 -3
  47. package/esm2020/lib/admin/document-trace/trace-element.component.mjs +3 -3
  48. package/esm2020/lib/admin/form/designer/designer.component.mjs +56 -0
  49. package/esm2020/lib/admin/form/form.resolve.service.mjs +3 -3
  50. package/esm2020/lib/admin/form/form.service.mjs +11 -6
  51. package/esm2020/lib/admin/form/workflow/node.component.mjs +3 -3
  52. package/esm2020/lib/admin/form/workflow/role-node.component.mjs +3 -3
  53. package/esm2020/lib/admin/form/workflow/workflow.component.mjs +3 -3
  54. package/esm2020/lib/admin/indices/manage-cube-index.component.mjs +3 -3
  55. package/esm2020/lib/admin/patterns/patterns.component.mjs +9 -9
  56. package/esm2020/lib/admin/permissions/permissions.component.mjs +3 -3
  57. package/esm2020/lib/admin/positions/positions-popup.component.mjs +3 -3
  58. package/esm2020/lib/admin/positions/positions.component.mjs +3 -3
  59. package/esm2020/lib/admin/profiler/outofoffice.component.mjs +3 -3
  60. package/esm2020/lib/admin/profiler/profiler.component.mjs +3 -3
  61. package/esm2020/lib/admin/utility-ref.mjs +2 -2
  62. package/esm2020/lib/admin/utility-wrapper.component.mjs +3 -3
  63. package/esm2020/lib/admin/utility.pane.component.mjs +3 -3
  64. package/esm2020/lib/app.component.mjs +6 -6
  65. package/esm2020/lib/bizdoc.module.mjs +4 -4
  66. package/esm2020/lib/browse/browse-items.component.mjs +3 -3
  67. package/esm2020/lib/browse/browse.mobile.component.mjs +3 -3
  68. package/esm2020/lib/browse/browse.pane.component.mjs +3 -3
  69. package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +3 -3
  70. package/esm2020/lib/browse/filter/filter.component.mjs +3 -3
  71. package/esm2020/lib/browse/folders-menu.component.mjs +3 -3
  72. package/esm2020/lib/chat/chat-info.mjs +3 -3
  73. package/esm2020/lib/chat/chat.mobile.component.mjs +3 -3
  74. package/esm2020/lib/chat/chat.service.mjs +3 -3
  75. package/esm2020/lib/chat/contacts.component.mjs +6 -6
  76. package/esm2020/lib/chat/contacts.pane.component.mjs +3 -3
  77. package/esm2020/lib/chat/conversation.component.mjs +3 -3
  78. package/esm2020/lib/chat/conversation.pane.component.mjs +3 -3
  79. package/esm2020/lib/compose/action/action-picker.component.mjs +3 -3
  80. package/esm2020/lib/compose/action/action.dialog.mjs +3 -3
  81. package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +3 -3
  82. package/esm2020/lib/compose/action/assign-action.component.mjs +5 -5
  83. package/esm2020/lib/compose/action/moveto-action.component.mjs +3 -3
  84. package/esm2020/lib/compose/action/return-action.component.mjs +6 -6
  85. package/esm2020/lib/compose/attachments/attachments.component.mjs +3 -3
  86. package/esm2020/lib/compose/attachments/preview/attachment-preview.component.mjs +3 -3
  87. package/esm2020/lib/compose/attachments/progress-button.directive.mjs +3 -3
  88. package/esm2020/lib/compose/can-deactivate-changes.service.mjs +3 -3
  89. package/esm2020/lib/compose/comments/comment.component.mjs +3 -3
  90. package/esm2020/lib/compose/comments/comments.component.mjs +3 -3
  91. package/esm2020/lib/compose/comments/comments.pane.component.mjs +3 -3
  92. package/esm2020/lib/compose/comments/edit-comment.component.mjs +3 -3
  93. package/esm2020/lib/compose/comments/edits.component.mjs +3 -3
  94. package/esm2020/lib/compose/comments/quick-comment.component.exp.mjs +3 -3
  95. package/esm2020/lib/compose/comments/votes.component.mjs +3 -3
  96. package/esm2020/lib/compose/compose-resolve.service.mjs +6 -6
  97. package/esm2020/lib/compose/compose.mobile.component.mjs +3 -3
  98. package/esm2020/lib/compose/compose.pane.component.mjs +3 -3
  99. package/esm2020/lib/compose/copy/copy.dialog.mjs +3 -3
  100. package/esm2020/lib/compose/dismiss.service.mjs +3 -3
  101. package/esm2020/lib/compose/document-resolver.service.mjs +3 -3
  102. package/esm2020/lib/compose/document.component.mjs +3 -3
  103. package/esm2020/lib/compose/document.mobile.component.mjs +3 -3
  104. package/esm2020/lib/compose/document.pane.component.mjs +3 -3
  105. package/esm2020/lib/compose/events/events.component.mjs +3 -3
  106. package/esm2020/lib/compose/form-selector/form-selector.sheet.mjs +3 -3
  107. package/esm2020/lib/compose/form.component.mjs +3 -3
  108. package/esm2020/lib/compose/new-menu.component.mjs +5 -5
  109. package/esm2020/lib/compose/privilage.directive.mjs +6 -6
  110. package/esm2020/lib/compose/recipient-resolver.service.mjs +3 -3
  111. package/esm2020/lib/compose/state.component.mjs +3 -3
  112. package/esm2020/lib/compose/tag/tags.component.mjs +3 -3
  113. package/esm2020/lib/compose/trace/flow.component.mjs +10 -16
  114. package/esm2020/lib/compose/trace/people.component.mjs +3 -3
  115. package/esm2020/lib/compose/trace/trace.base.mjs +3 -3
  116. package/esm2020/lib/compose/trace/trace.component.mjs +3 -3
  117. package/esm2020/lib/compose/trace/trace.pane.component.mjs +3 -3
  118. package/esm2020/lib/compose/version-compare/version-compare.component.mjs +3 -3
  119. package/esm2020/lib/compose/version-compare/version-compare.directive.mjs +9 -9
  120. package/esm2020/lib/compose/version-compare/version.pane.component.mjs +3 -3
  121. package/esm2020/lib/core/NgComponentOutlet.mjs +3 -3
  122. package/esm2020/lib/core/account.service.mjs +3 -3
  123. package/esm2020/lib/core/animated-icon/animated-icon.directive.mjs +3 -3
  124. package/esm2020/lib/core/avatar/avatar.component.mjs +3 -3
  125. package/esm2020/lib/core/component-factory-resolver.mjs +4 -4
  126. package/esm2020/lib/core/controls/address.input.mjs +3 -3
  127. package/esm2020/lib/core/controls/auto-complete.input.mjs +3 -3
  128. package/esm2020/lib/core/controls/combination-picker-body.mjs +3 -3
  129. package/esm2020/lib/core/controls/combination-picker.mjs +3 -3
  130. package/esm2020/lib/core/controls/combination-pool.mjs +3 -3
  131. package/esm2020/lib/core/controls/file.input.mjs +3 -3
  132. package/esm2020/lib/core/controls/select.input.mjs +3 -3
  133. package/esm2020/lib/core/controls/time-picker.mjs +3 -3
  134. package/esm2020/lib/core/controls/timespan.input.mjs +3 -3
  135. package/esm2020/lib/core/datasource.service.mjs +3 -3
  136. package/esm2020/lib/core/guide/guide.component.mjs +3 -3
  137. package/esm2020/lib/core/guide/guide.service.mjs +3 -3
  138. package/esm2020/lib/core/guide/help-tip.component.mjs +3 -3
  139. package/esm2020/lib/core/http.interceptor.mjs +3 -3
  140. package/esm2020/lib/core/hub.service.mjs +3 -3
  141. package/esm2020/lib/core/identity/identity.component.mjs +3 -3
  142. package/esm2020/lib/core/info/attachment-info.service.mjs +3 -3
  143. package/esm2020/lib/core/info/document-info.service.mjs +3 -3
  144. package/esm2020/lib/core/info/location-info.component.mjs +3 -3
  145. package/esm2020/lib/core/info/map-info.mjs +3 -3
  146. package/esm2020/lib/core/layout/autocomplete.field.mjs +3 -3
  147. package/esm2020/lib/core/layout/checkbox.field.mjs +3 -3
  148. package/esm2020/lib/core/layout/checkbox.mjs +3 -3
  149. package/esm2020/lib/core/layout/date-range.field.mjs +3 -3
  150. package/esm2020/lib/core/layout/date.field.mjs +3 -3
  151. package/esm2020/lib/core/layout/expression.field.mjs +3 -3
  152. package/esm2020/lib/core/layout/file.field.mjs +3 -3
  153. package/esm2020/lib/core/layout/html.field.mjs +3 -3
  154. package/esm2020/lib/core/layout/input.base.mjs +3 -3
  155. package/esm2020/lib/core/layout/input.field.mjs +3 -3
  156. package/esm2020/lib/core/layout/layout.component.mjs +3 -3
  157. package/esm2020/lib/core/layout/numeric.field.mjs +3 -3
  158. package/esm2020/lib/core/layout/select.field.mjs +3 -3
  159. package/esm2020/lib/core/layout/switch.field.mjs +3 -3
  160. package/esm2020/lib/core/layout/textarea.field.mjs +3 -3
  161. package/esm2020/lib/core/layout/timespan.field.mjs +3 -3
  162. package/esm2020/lib/core/lottie-animation.mjs +3 -3
  163. package/esm2020/lib/core/mailbox.service.mjs +6 -4
  164. package/esm2020/lib/core/none.component.mjs +3 -3
  165. package/esm2020/lib/core/pipes/action.pipe.mjs +3 -3
  166. package/esm2020/lib/core/pipes/calendar.pipe.mjs +3 -3
  167. package/esm2020/lib/core/pipes/date-format.pipe.mjs +3 -3
  168. package/esm2020/lib/core/pipes/daterange.pipe.mjs +6 -6
  169. package/esm2020/lib/core/pipes/difference.pipe.mjs +3 -3
  170. package/esm2020/lib/core/pipes/duration-format.pipe.mjs +3 -3
  171. package/esm2020/lib/core/pipes/duration.pipe.mjs +3 -3
  172. package/esm2020/lib/core/pipes/form.pipe.mjs +3 -3
  173. package/esm2020/lib/core/pipes/join.pipe.mjs +3 -3
  174. package/esm2020/lib/core/pipes/role.pipe.mjs +3 -3
  175. package/esm2020/lib/core/pipes/sanitize-html.pipe.mjs +3 -3
  176. package/esm2020/lib/core/pipes/sort.pipe.mjs +6 -6
  177. package/esm2020/lib/core/pipes/state.pipe.mjs +3 -3
  178. package/esm2020/lib/core/pipes/time-ago.pipe.mjs +3 -3
  179. package/esm2020/lib/core/pipes/translate.pipe.mjs +6 -6
  180. package/esm2020/lib/core/pipes/type-value.pipe.mjs +3 -3
  181. package/esm2020/lib/core/pipes/user-name.pipe.mjs +3 -3
  182. package/esm2020/lib/core/popup/popup.component.mjs +3 -3
  183. package/esm2020/lib/core/popup/popup.service.mjs +3 -3
  184. package/esm2020/lib/core/popup/tooltip.directive.mjs +6 -6
  185. package/esm2020/lib/core/prompt/ask/ask.dialog.mjs +3 -3
  186. package/esm2020/lib/core/prompt/mask/mask.component.mjs +3 -3
  187. package/esm2020/lib/core/prompt.service.mjs +3 -3
  188. package/esm2020/lib/core/router.mjs +6 -6
  189. package/esm2020/lib/core/save-changes.dialog.mjs +3 -3
  190. package/esm2020/lib/core/session.service.mjs +3 -3
  191. package/esm2020/lib/core/slots/router.directive.mjs +3 -3
  192. package/esm2020/lib/core/slots/router.service.mjs +3 -3
  193. package/esm2020/lib/core/slots/slots.component.mjs +3 -3
  194. package/esm2020/lib/core/tagging/documents.component.mjs +3 -3
  195. package/esm2020/lib/core/tagging/edit-input.component.mjs +3 -3
  196. package/esm2020/lib/core/tagging/emoji.component.mjs +3 -3
  197. package/esm2020/lib/core/tagging/tagging-item.directive.mjs +3 -3
  198. package/esm2020/lib/core/tagging/tagging.component-base.mjs +3 -3
  199. package/esm2020/lib/core/tagging/tagging.directive.mjs +3 -3
  200. package/esm2020/lib/core/tagging/tagging.pipe.mjs +3 -3
  201. package/esm2020/lib/core/tagging/users.component.mjs +3 -3
  202. package/esm2020/lib/core/translate.service.mjs +3 -3
  203. package/esm2020/lib/core/translations.mjs +11 -1
  204. package/esm2020/lib/core/window-title.service.mjs +3 -3
  205. package/esm2020/lib/cube/accum/accum.component.mjs +3 -3
  206. package/esm2020/lib/cube/chart/chart.component.mjs +3 -3
  207. package/esm2020/lib/cube/cube-info.service.mjs +3 -3
  208. package/esm2020/lib/cube/cube-menu.component.mjs +3 -3
  209. package/esm2020/lib/cube/cube-view.component.mjs +3 -3
  210. package/esm2020/lib/cube/cube.service.mjs +4 -4
  211. package/esm2020/lib/cube/explore/document-item.component.mjs +3 -3
  212. package/esm2020/lib/cube/explore/explore-item.component.mjs +3 -3
  213. package/esm2020/lib/cube/explore/explore-items.component.mjs +3 -3
  214. package/esm2020/lib/cube/explore/explore.pane.component.mjs +3 -3
  215. package/esm2020/lib/cube/explore/item-resolver.service.mjs +6 -6
  216. package/esm2020/lib/cube/explore/item.pane.component.mjs +3 -3
  217. package/esm2020/lib/cube/filter/filter-tags.component.exp.mjs +3 -3
  218. package/esm2020/lib/cube/filter/filter.component.mjs +3 -3
  219. package/esm2020/lib/cube/grid/grid.component.mjs +3 -3
  220. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +5 -5
  221. package/esm2020/lib/cube/matrix/matrix.base.mjs +3 -3
  222. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +3 -3
  223. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +3 -3
  224. package/esm2020/lib/cube/matrix/popup.component.mjs +3 -3
  225. package/esm2020/lib/cube/matrix/table.component.mjs +3 -3
  226. package/esm2020/lib/cube/parallel/parallel.component.mjs +3 -3
  227. package/esm2020/lib/cube/pivot/pivot.component.mjs +3 -3
  228. package/esm2020/lib/cube/sum/sum.component.mjs +3 -3
  229. package/esm2020/lib/cube/view-base.mjs +3 -3
  230. package/esm2020/lib/cube/view.mobile.component.mjs +3 -3
  231. package/esm2020/lib/cube/view.pane.component.mjs +3 -3
  232. package/esm2020/lib/dashboard/actions/actions.widget.mjs +3 -3
  233. package/esm2020/lib/dashboard/cube/accum-cube.widget.mjs +3 -3
  234. package/esm2020/lib/dashboard/cube/compare.widget.mjs +12 -12
  235. package/esm2020/lib/dashboard/cube/cube-analysis.base.mjs +3 -3
  236. package/esm2020/lib/dashboard/cube/cube-analysis.widget.mjs +3 -3
  237. package/esm2020/lib/dashboard/cube/cube-chart.widget.mjs +3 -3
  238. package/esm2020/lib/dashboard/cube/documents.widget.mjs +3 -3
  239. package/esm2020/lib/dashboard/cube/filter/filter.component.mjs +3 -3
  240. package/esm2020/lib/dashboard/dashboard.component.mjs +3 -3
  241. package/esm2020/lib/dashboard/dashboard.pane.component.mjs +3 -3
  242. package/esm2020/lib/dashboard/recents/recents.widget.mjs +3 -3
  243. package/esm2020/lib/dashboard/score/activity.widget.mjs +3 -3
  244. package/esm2020/lib/dashboard/score/compare-groups.widget.mjs +3 -3
  245. package/esm2020/lib/dashboard/score/peers-performance.widget.mjs +3 -3
  246. package/esm2020/lib/dashboard/score/pending-results.widget.mjs +3 -3
  247. package/esm2020/lib/dashboard/score/personal-score.widget.mjs +3 -3
  248. package/esm2020/lib/dashboard/widget-item.component.mjs +3 -3
  249. package/esm2020/lib/desktop.module.mjs +4 -4
  250. package/esm2020/lib/home/about/about.dialog.mjs +3 -3
  251. package/esm2020/lib/home/home-base.component.mjs +3 -3
  252. package/esm2020/lib/home/home.desktop.component.mjs +3 -3
  253. package/esm2020/lib/home/home.mobile.component.mjs +3 -3
  254. package/esm2020/lib/home/notifications/notifications.component.mjs +3 -3
  255. package/esm2020/lib/home/options/options.component.mjs +3 -3
  256. package/esm2020/lib/home/outofoffice/outofoffice.component.mjs +3 -3
  257. package/esm2020/lib/home/search.service.mjs +3 -3
  258. package/esm2020/lib/home/sign/sign.component.mjs +3 -3
  259. package/esm2020/lib/home/tools.component.mjs +3 -3
  260. package/esm2020/lib/impersonate/impersonate.component.mjs +3 -3
  261. package/esm2020/lib/mobile.module.mjs +4 -4
  262. package/esm2020/lib/modules/chart.module.mjs +4 -4
  263. package/esm2020/lib/modules/circular-gauge.module.mjs +4 -4
  264. package/esm2020/lib/modules/datepicker.intl.mjs +3 -3
  265. package/esm2020/lib/modules/dayjs.module.mjs +4 -4
  266. package/esm2020/lib/modules/diagram.module.mjs +4 -4
  267. package/esm2020/lib/modules/gantt.module.mjs +4 -4
  268. package/esm2020/lib/modules/grid.module.mjs +4 -4
  269. package/esm2020/lib/modules/material.module.mjs +4 -4
  270. package/esm2020/lib/modules/paginator.intl.mjs +3 -3
  271. package/esm2020/lib/modules/pivot.module.mjs +4 -4
  272. package/esm2020/lib/modules/schedule.module.mjs +4 -4
  273. package/esm2020/lib/modules/spreadsheet.module.mjs +4 -4
  274. package/esm2020/lib/modules/stepper.intl.mjs +3 -3
  275. package/esm2020/lib/modules/texteditor.module.mjs +4 -4
  276. package/esm2020/lib/notifications/filter.component.mjs +3 -3
  277. package/esm2020/lib/notifications/notifications-table.component.mjs +3 -3
  278. package/esm2020/lib/notifications/notifications.mobile.component.mjs +3 -3
  279. package/esm2020/lib/notifications/notifications.pane.component.mjs +3 -3
  280. package/esm2020/lib/notifications/notifications.service.mjs +3 -3
  281. package/esm2020/lib/notifications/types/commented.notification.mjs +3 -3
  282. package/esm2020/lib/notifications/types/cube-anomaly.notification.mjs +3 -3
  283. package/esm2020/lib/notifications/types/escalated.notification.mjs +3 -3
  284. package/esm2020/lib/notifications/types/liked.notification.mjs +3 -3
  285. package/esm2020/lib/notifications/types/long-running-task.notification.mjs +3 -3
  286. package/esm2020/lib/notifications/types/notification-base.mjs +3 -3
  287. package/esm2020/lib/notifications/types/nudge.notification.mjs +3 -3
  288. package/esm2020/lib/notifications/types/state-changed.notification.mjs +3 -3
  289. package/esm2020/lib/notifications/types/tagged.notification.mjs +3 -3
  290. package/esm2020/lib/notifications/types/text.notification.mjs +3 -3
  291. package/esm2020/lib/notifications/types/upcoming-event.notification.mjs +3 -3
  292. package/esm2020/lib/options/options.component.mjs +3 -3
  293. package/esm2020/lib/options/options.service.mjs +3 -3
  294. package/esm2020/lib/reports/arguments-component.mjs +3 -3
  295. package/esm2020/lib/reports/cube/documents.component.mjs +3 -3
  296. package/esm2020/lib/reports/cube/grid-documents.component.mjs +3 -3
  297. package/esm2020/lib/reports/cube/table-documents.component.mjs +3 -3
  298. package/esm2020/lib/reports/cube/usage-args.component.mjs +3 -3
  299. package/esm2020/lib/reports/cube/usage-base.mjs +3 -3
  300. package/esm2020/lib/reports/cube/usage-chart.component.mjs +3 -3
  301. package/esm2020/lib/reports/cube/usage-pivot.component.mjs +3 -3
  302. package/esm2020/lib/reports/cube/usage.component.mjs +3 -3
  303. package/esm2020/lib/reports/report-viewer.component.mjs +3 -3
  304. package/esm2020/lib/reports/report.mobile.component.mjs +3 -3
  305. package/esm2020/lib/reports/report.pane.component.mjs +3 -3
  306. package/esm2020/lib/reports/reports-menu.component.mjs +3 -3
  307. package/esm2020/lib/reports/substitution/substitution.component.mjs +3 -3
  308. package/esm2020/lib/reports/table/table-view.component.mjs +3 -3
  309. package/esm2020/lib/reports/tasks/tasks.component.mjs +3 -3
  310. package/esm2020/lib/scheduler/schedule.component.mjs +3 -3
  311. package/esm2020/lib/scheduler/scheduler.mobile.component.mjs +3 -3
  312. package/esm2020/lib/scheduler/scheduler.pane.component.mjs +3 -3
  313. package/esm2020/lib/shared.module.mjs +11 -11
  314. package/esm2020/lib/system.module.mjs +53 -9
  315. package/esm2020/lib/views/cube/chart.component.mjs +3 -3
  316. package/esm2020/lib/views/cube/cube-base.mjs +3 -3
  317. package/esm2020/lib/views/cube/explore.component.mjs +3 -3
  318. package/esm2020/lib/views/cube/matrix.component.mjs +3 -3
  319. package/esm2020/lib/views/cube/parallel.component.mjs +3 -3
  320. package/esm2020/lib/views/cube/pivot.component.mjs +3 -3
  321. package/esm2020/lib/views/cube/sum.component.mjs +5 -5
  322. package/esm2020/lib/views/cube/view.component.mjs +3 -3
  323. package/esm2020/lib/views/timeline/timeline.component.exp.mjs +3 -3
  324. package/esm2020/lib/views/view-item.component.mjs +3 -3
  325. package/esm2020/lib/views/views.component.mjs +3 -3
  326. package/esm2020/lib/views/views.mobile.component.mjs +3 -3
  327. package/esm2020/lib/views/views.pane.component.mjs +3 -3
  328. package/esm2020/public-api.mjs +2 -2
  329. package/fesm2015/bizdoc-core.mjs +2157 -997
  330. package/fesm2015/bizdoc-core.mjs.map +1 -1
  331. package/fesm2020/bizdoc-core.mjs +2154 -997
  332. package/fesm2020/bizdoc-core.mjs.map +1 -1
  333. package/lib/admin/configuration-designer/designer-element.component.d.ts +23 -0
  334. package/lib/admin/configuration-designer/designer.base.d.ts +38 -0
  335. package/lib/admin/configuration-designer/designer.component.d.ts +47 -0
  336. package/lib/admin/configuration-designer/elements/action.component.d.ts +20 -0
  337. package/lib/admin/configuration-designer/elements/analysis-widget.component.d.ts +45 -0
  338. package/lib/admin/configuration-designer/elements/anomaly-rule.component.d.ts +20 -0
  339. package/lib/admin/configuration-designer/elements/box-form.component.d.ts +20 -0
  340. package/lib/admin/configuration-designer/elements/chart-view.component.d.ts +45 -0
  341. package/lib/admin/configuration-designer/elements/cube-view.component.d.ts +37 -0
  342. package/lib/admin/configuration-designer/elements/cube.component.d.ts +20 -0
  343. package/lib/admin/configuration-designer/elements/documents-report.component.d.ts +37 -0
  344. package/lib/admin/configuration-designer/elements/documents-widget.component.d.ts +36 -0
  345. package/lib/admin/configuration-designer/elements/explore-view.component.d.ts +35 -0
  346. package/lib/admin/configuration-designer/elements/folder.component.d.ts +19 -0
  347. package/lib/admin/configuration-designer/elements/form.component.d.ts +35 -0
  348. package/lib/admin/configuration-designer/elements/guide.component.d.ts +22 -0
  349. package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +45 -0
  350. package/lib/admin/configuration-designer/elements/parallel-view.component.d.ts +41 -0
  351. package/lib/admin/configuration-designer/elements/performance-widget.component.d.ts +32 -0
  352. package/lib/admin/configuration-designer/elements/pivot-view.component.d.ts +39 -0
  353. package/lib/admin/configuration-designer/elements/report.component.d.ts +20 -0
  354. package/lib/admin/configuration-designer/elements/role.component.d.ts +20 -0
  355. package/lib/admin/configuration-designer/elements/rule.component.d.ts +17 -0
  356. package/lib/admin/configuration-designer/elements/sum-view.component.d.ts +42 -0
  357. package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +39 -0
  358. package/lib/admin/configuration-designer/elements/type.component.d.ts +21 -0
  359. package/lib/admin/configuration-designer/elements/usage-report.component.d.ts +39 -0
  360. package/lib/admin/configuration-designer/elements/utility.component.d.ts +20 -0
  361. package/lib/admin/configuration-designer/elements/view.component.d.ts +20 -0
  362. package/lib/admin/configuration-designer/elements/widget.component.d.ts +20 -0
  363. package/lib/admin/configuration-designer/privileges.component.d.ts +20 -0
  364. package/lib/admin/document-trace/document-trace.component.d.ts +2 -2
  365. package/lib/admin/form/designer/designer.component.d.ts +46 -0
  366. package/lib/admin/form/form.service.d.ts +5 -3
  367. package/lib/admin/patterns/patterns.component.d.ts +3 -3
  368. package/lib/compose/new-menu.component.d.ts +1 -1
  369. package/lib/core/component-factory-resolver.d.ts +1 -1
  370. package/lib/core/mailbox.service.d.ts +7 -0
  371. package/lib/core/translations.d.ts +10 -0
  372. package/lib/dashboard/cube/compare.widget.d.ts +3 -3
  373. package/lib/shared.module.d.ts +1 -1
  374. package/lib/system.module.d.ts +57 -27
  375. package/package.json +18 -18
  376. package/public-api.d.ts +1 -1
@@ -0,0 +1,79 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { Subject, takeUntil } from "rxjs";
4
+ import { BizDoc } from "../../../core/decorators";
5
+ import { DesignerElementComponent } from "../designer.base";
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/forms";
8
+ import * as i2 from "../../../core/router";
9
+ import * as i3 from "../../form/form.service";
10
+ import * as i4 from "../../../core/session.service";
11
+ import * as i5 from "@angular/common";
12
+ import * as i6 from "@syncfusion/ej2-angular-charts";
13
+ import * as i7 from "@angular/material/button";
14
+ import * as i8 from "@angular/material/icon";
15
+ import * as i9 from "../../../core/popup/tooltip.directive";
16
+ import * as i10 from "../privileges.component";
17
+ import * as i11 from "../../../core/pipes/translate.pipe";
18
+ let FormDesignComponent = class FormDesignComponent extends DesignerElementComponent {
19
+ constructor(_fb, _router, _service, _session) {
20
+ super();
21
+ this._fb = _fb;
22
+ this._router = _router;
23
+ this._service = _service;
24
+ this._session = _session;
25
+ this.form = this._fb.group({
26
+ disabled: false,
27
+ });
28
+ this.theme = this._session.theme.dark ? 'MaterialDark' : 'Material';
29
+ this.axisSettings = {
30
+ lineSettings: {},
31
+ };
32
+ this.markerSettings = {
33
+ visible: ['All'],
34
+ size: 1.5,
35
+ fill: this._session.getAccent(),
36
+ };
37
+ this.tooltipSettings = {
38
+ visible: true,
39
+ //format: '${x}',
40
+ trackLineSettings: {
41
+ visible: true
42
+ }
43
+ };
44
+ this.primary = this._session.getPrimery();
45
+ this.enableRtl = this._session.inverse;
46
+ this._destroy = new Subject();
47
+ this._session.themeChange.pipe(takeUntil(this._destroy)).
48
+ subscribe(t => {
49
+ this.theme = t.dark ? 'MaterialDark' : 'Material';
50
+ this.primary = this._session.getPrimery();
51
+ });
52
+ }
53
+ ngOnInit() {
54
+ this.model.usage.forEach(p => p.x = new Date(p.x));
55
+ if (!this.model.privileges)
56
+ this.model.privileges = {};
57
+ this._service.range(this.model.name).subscribe(r => {
58
+ this.usage = r;
59
+ });
60
+ }
61
+ diagram() {
62
+ this._router.navigate(['admin/forms', this.model.name]);
63
+ }
64
+ ngOnDestroy() {
65
+ this._destroy.next();
66
+ this._destroy.complete();
67
+ }
68
+ };
69
+ FormDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FormDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.RouterImpl }, { token: i3.FormService }, { token: i4.SessionService }], target: i0.ɵɵFactoryTarget.Component });
70
+ FormDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: FormDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n <ejs-sparkline width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"model.usage\"\r\n xName=\"x\"\r\n yName=\"y\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n [enableRtl]=\"enableRtl\">\r\n <!--\r\n [theme]=\"theme\"\r\n [axisSettings]=\"axisSettings\"\r\n -->\r\n </ejs-sparkline>\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Route'|translate\"><mat-icon>schema</mat-icon></button>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i6.SparklineComponent, selector: "ejs-sparkline", inputs: ["axisSettings", "border", "containerArea", "dataLabelSettings", "dataSource", "enablePersistence", "enableRtl", "endPointColor", "fill", "format", "height", "highPointColor", "lineWidth", "locale", "lowPointColor", "markerSettings", "negativePointColor", "opacity", "padding", "palette", "query", "rangeBandSettings", "rangePadding", "startPointColor", "theme", "tiePointColor", "tooltipSettings", "type", "useGroupingSeparator", "valueType", "width", "xName", "yName"], outputs: ["axisRendering", "dataLabelRendering", "load", "loaded", "markerRendering", "pointRegionMouseClick", "pointRegionMouseMove", "pointRendering", "resize", "seriesRendering", "sparklineMouseClick", "sparklineMouseMove", "tooltipInitialize"] }, { kind: "component", type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i9.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i10.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"] }, { kind: "pipe", type: i11.TranslatePipe, name: "translate" }] });
71
+ FormDesignComponent = __decorate([
72
+ BizDoc({ selector: 'form-designer' })
73
+ ], FormDesignComponent);
74
+ export { FormDesignComponent };
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FormDesignComponent, decorators: [{
76
+ type: Component,
77
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n <ejs-sparkline width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"model.usage\"\r\n xName=\"x\"\r\n yName=\"y\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n [enableRtl]=\"enableRtl\">\r\n <!--\r\n [theme]=\"theme\"\r\n [axisSettings]=\"axisSettings\"\r\n -->\r\n </ejs-sparkline>\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Route'|translate\"><mat-icon>schema</mat-icon></button>\r\n </div>\r\n</ng-template>\r\n" }]
78
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.RouterImpl }, { type: i3.FormService }, { type: i4.SessionService }]; } });
79
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZm9ybS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUdsRCxPQUFPLEVBQUUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMxQyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFJbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7Ozs7Ozs7SUFJL0MsbUJBQW1CLFNBQW5CLG1CQUFvQixTQUFRLHdCQUErQjtJQXlCdkUsWUFBb0IsR0FBZ0IsRUFDMUIsT0FBbUIsRUFDbkIsUUFBcUIsRUFDcEIsUUFBd0I7UUFDakMsS0FBSyxFQUFFLENBQUM7UUFKVSxRQUFHLEdBQUgsR0FBRyxDQUFhO1FBQzFCLFlBQU8sR0FBUCxPQUFPLENBQVk7UUFDbkIsYUFBUSxHQUFSLFFBQVEsQ0FBYTtRQUNwQixhQUFRLEd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gICAgICAgICAgICAgICAgICB2YWx1ZVR5cGU9XCJEYXRlVGltZVwiXHJcbiAgICAgICAgICAgICAgICAgICBbbWFya2VyU2V0dGluZ3NdPVwibWFya2VyU2V0dGluZ3NcIlxyXG4gICAgICAgICAgICAgICAgICAgICBbdG9vbHRpcFNldHRpbmdzXT1cInRvb2x0aXBTZXR0aW5nc1wiXHJcbiAgICAgICAgICAgICAgICAgICBbZW5hYmxlUnRsXT1cImVuYWJsZVJ0bFwiPlxyXG4gICAgICA8IS0tXHJcbiAgICAgICAgICAgICAgICAgICAgIFt0aGVtZV09XCJ0aGVtZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgIFtheGlzU2V0dGluZ3NdPVwiYXhpc1NldHRpbmdzXCJcclxuICAgICAgICAtLT5cclxuICAgIDwvZWpzLXNwYXJrbGluZT5cclxuICAgIDxidXR0b24gbWF0LWljb24tYnV0dG9uIChjbGljayk9XCJkaWFncmFtKClcIiBbYml6ZG9jVG9vbHRpcF09XCInUm91dGUnfHRyYW5zbGF0ZVwiPjxtYXQtaWNvbj5zY2hlbWE8L21hdC1pY29uPjwvYnV0dG9uPlxyXG4gIDwvZGl2PlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
@@ -0,0 +1,36 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { BizDoc } from "../../../core/decorators";
4
+ import { DesignerElementComponent } from "../designer.base";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/forms";
7
+ import * as i2 from "../../../core/router";
8
+ import * as i3 from "../../../core/session.service";
9
+ import * as i4 from "@angular/common";
10
+ import * as i5 from "../privileges.component";
11
+ let GuideDesignComponent = class GuideDesignComponent extends DesignerElementComponent {
12
+ constructor(_fb, _router, _session) {
13
+ super();
14
+ this._fb = _fb;
15
+ this._router = _router;
16
+ this._session = _session;
17
+ this.form = this._fb.group({
18
+ disabled: false,
19
+ });
20
+ }
21
+ ngOnInit() {
22
+ if (!this.model.privileges)
23
+ this.model.privileges = {};
24
+ }
25
+ };
26
+ GuideDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: GuideDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.RouterImpl }, { token: i3.SessionService }], target: i0.ɵɵFactoryTarget.Component });
27
+ GuideDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: GuideDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"] }] });
28
+ GuideDesignComponent = __decorate([
29
+ BizDoc({ selector: 'guide-designer' })
30
+ ], GuideDesignComponent);
31
+ export { GuideDesignComponent };
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: GuideDesignComponent, decorators: [{
33
+ type: Component,
34
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
35
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.RouterImpl }, { type: i3.SessionService }]; } });
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL2d1aWRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9ndWlkZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFHbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7SUFJL0Msb0JBQW9CLFNBQXBCLG9CQUFxQixTQUFRLHdCQUErQjtJQUl2RSxZQUFvQixHQUFnQixFQUMxQixPQUFtQixFQUNuQixRQUF3QjtRQUNoQyxLQUFLLEVBQUUsQ0FBQTtRQUhXLFFBQUcsR0FBSCxHQUFHLENBQWE7UUFDMUIsWUFBTyxHQUFQLE9BQU8sQ0FBWTtRQUNuQixhQUFRLEdBQVIsUUFBUSxDQUFnQjtRQUx6QixTQUFJLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUM7WUFDN0IsUUFBUSxFQUFFLEtBQU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ZXhwb3J0IGNsYXNzIEd1aWRlRGVzaWduQ29tcG9uZW50IGV4dGVuZHMgRGVzaWduZXJFbGVtZW50Q29tcG9uZW50PE1vZGVsPiBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcbiAgcmVhZG9ubHkgZm9ybSA9IHRoaXMuX2ZiLmdyb3VwKHtcclxuICAgIGRpc2FibGVkOiBmYWxzZSxcclxuICB9KTtcclxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9mYjogRm9ybUJ1aWxkZXIsXHJcbiAgICBwcml2YXRlIF9yb3V0ZXI6IFJvdXRlckltcGwsXHJcbiAgICBwcml2YXRlIF9zZXNzaW9uOiBTZXNzaW9uU2VydmljZSkge1xyXG4gICAgc3VwZXIoKVxyXG4gIH1cclxuICBuZ09uSW5pdCgpIHtcclxuICAgIGlmICghdGhpcy5tb2RlbC5wcml2aWxlZ2VzKSB0aGlzLm1vZGVsLnByaXZpbGVnZXMgPSB7fTtcclxuICB9XHJcbn1cclxuaW50ZXJmYWNlIE1vZGVsIHtcclxuICBkaXNhYmxlZDogYm9vbGVhbixcclxufVxyXG4iLCI8bmctdGVtcGxhdGUgKm5nSWY9XCJlZGl0TW9kZTsgZWxzZSBpbmZvXCI+XHJcbiAgPGZvcm0gYXV0b2NvbXBsZXRlPVwib2ZmXCIgW2Zvcm1Hcm91cF09XCJmb3JtXCI+XHJcbiAgPC9mb3JtPlxyXG4gIDxiaXpkb2MtcHJpdmlsZWdlcyBbbW9kZWxdPVwibW9kZWwucHJpdmlsZWdlc1wiPjwvYml6ZG9jLXByaXZpbGVnZXM+XHJcbjwvbmctdGVtcGxhdGU+XHJcbjwhLS0tLT5cclxuPG5nLXRlbXBsYXRlICNpbmZvPlxyXG4gIDxkaXY+XHJcbiAgPC9kaXY+XHJcbjwvbmctdGVtcGxhdGU+XHJcbiJdfQ==
@@ -0,0 +1,65 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { Validators } from "@angular/forms";
4
+ import { BizDoc } from "../../../core/decorators";
5
+ import { DesignerElementComponent } from "../designer.base";
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/forms";
8
+ import * as i2 from "../../../core/session.service";
9
+ import * as i3 from "@angular/common";
10
+ import * as i4 from "@angular/material/core";
11
+ import * as i5 from "@angular/material/form-field";
12
+ import * as i6 from "@angular/material/select";
13
+ import * as i7 from "../../../core/pipes/translate.pipe";
14
+ let MatrixViewDesignComponent = class MatrixViewDesignComponent extends DesignerElementComponent {
15
+ constructor(_fb, _session) {
16
+ super();
17
+ this._fb = _fb;
18
+ this._session = _session;
19
+ this.form = this._fb.group({
20
+ cube: null,
21
+ xAxis: this._fb.control(null, Validators.required),
22
+ sum: this._fb.array([]),
23
+ series: null,
24
+ indices: null,
25
+ filters: null,
26
+ scope: null
27
+ });
28
+ this.cubes = this._session.profile.cubes;
29
+ }
30
+ ngOnInit() {
31
+ this.cube = !this.model.options.cube ? this._session.profile.cubes[0] :
32
+ this._session.profile.cubes.find(c => c.name === this.model.options.cube);
33
+ if (this.args.xAxis) {
34
+ this._secondaryAxes(this.args.xAxis);
35
+ this._thirdAxes(this.args.series);
36
+ }
37
+ }
38
+ _secondaryAxes(primaryAxes) {
39
+ this.secondaryAxes = this.cube.axes.filter(a => primaryAxes.indexOf(a.name) < 0);
40
+ }
41
+ xAxisSelected(evt) {
42
+ this._secondaryAxes(evt.value);
43
+ }
44
+ seriesSelected(evt) {
45
+ this._thirdAxes(evt.value);
46
+ }
47
+ _thirdAxes(value) {
48
+ this.thirdAxes = this.secondaryAxes.filter(a => a.name !== value);
49
+ }
50
+ cubeSelected(evt) {
51
+ this.cube = evt.value;
52
+ this.form.get('cube').setValue(evt.value.name);
53
+ }
54
+ };
55
+ MatrixViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: MatrixViewDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
56
+ MatrixViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: MatrixViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<form autocomplete=\"off\" *ngIf=\"editMode\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field *ngIf=\"cubes.length\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (optionSelected)=\"cubeSelected($event)\">\r\n <mat-option>{{'Default'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required (optionSelected)=\"xAxisSelected($event)\">\r\n <mat-option *ngFor=\"let x of cube?.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required (optionSelected)=\"seriesSelected($event)\">\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Filters'|translate}}</mat-label>\r\n <mat-select formControlName=\"filters\" multiple>\r\n <mat-option *ngFor=\"let x of thirdAxes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field *ngIf=\"cube?.indices?.length\">\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube.indices\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
57
+ MatrixViewDesignComponent = __decorate([
58
+ BizDoc({ selector: 'matrix-view-designer' })
59
+ ], MatrixViewDesignComponent);
60
+ export { MatrixViewDesignComponent };
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: MatrixViewDesignComponent, decorators: [{
62
+ type: Component,
63
+ args: [{ template: "<form autocomplete=\"off\" *ngIf=\"editMode\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field *ngIf=\"cubes.length\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (optionSelected)=\"cubeSelected($event)\">\r\n <mat-option>{{'Default'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required (optionSelected)=\"xAxisSelected($event)\">\r\n <mat-option *ngFor=\"let x of cube?.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required (optionSelected)=\"seriesSelected($event)\">\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Filters'|translate}}</mat-label>\r\n <mat-select formControlName=\"filters\" multiple>\r\n <mat-option *ngFor=\"let x of thirdAxes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field *ngIf=\"cube?.indices?.length\">\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube.indices\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n" }]
64
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
65
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0cml4LXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL21hdH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0LWZvcm0tZmllbGQ+XHJcbiAgICA8bWF0LWxhYmVsPnt7J0ZpbHRlcnMnfHRyYW5zbGF0ZX19PC9tYXQtbGFiZWw+XHJcbiAgICA8bWF0LXNlbGVjdCBmb3JtQ29udHJvbE5hbWU9XCJmaWx0ZXJzXCIgbXVsdGlwbGU+XHJcbiAgICAgIDxtYXQtb3B0aW9uICpuZ0Zvcj1cImxldCB4IG9mIHRoaXJkQXhlc1wiIFt2YWx1ZV09XCJ4Lm5hbWVcIj57e3gudGl0bGV9fTwvbWF0LW9wdGlvbj5cclxuICAgIDwvbWF0LXNlbGVjdD5cclxuICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gIDxtYXQtZm9ybS1maWVsZCAqbmdJZj1cImN1YmU/LmluZGljZXM/Lmxlbmd0aFwiPlxyXG4gICAgPG1hdC1sYWJlbD57eydJbmRpY2VzJ3x0cmFuc2xhdGV9fTwvbWF0LWxhYmVsPlxyXG4gICAgPG1hdC1zZWxlY3QgZm9ybUNvbnRyb2xOYW1lPVwiaW5kaWNlc1wiIG11bHRpcGxlPlxyXG4gICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgeCBvZiBjdWJlLmluZGljZXNcIiBbdmFsdWVdPVwieC5uYW1lXCI+e3t4LnRpdGxlfX08L21hdC1vcHRpb24+XHJcbiAgICA8L21hdC1zZWxlY3Q+XHJcbiAgPC9tYXQtZm9ybS1maWVsZD5cclxuPC9mb3JtPlxyXG4iXX0=
@@ -0,0 +1,56 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { Validators } from "@angular/forms";
4
+ import { BizDoc } from "../../../core/decorators";
5
+ import { DesignerElementComponent } from "../designer.base";
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/forms";
8
+ import * as i2 from "../../../core/session.service";
9
+ import * as i3 from "@angular/common";
10
+ import * as i4 from "@angular/material/core";
11
+ import * as i5 from "@angular/material/form-field";
12
+ import * as i6 from "@angular/material/select";
13
+ import * as i7 from "../../../cube/parallel/parallel.component";
14
+ import * as i8 from "../../../core/pipes/translate.pipe";
15
+ let ParallelViewDesignComponent = class ParallelViewDesignComponent extends DesignerElementComponent {
16
+ constructor(_fb, _session) {
17
+ super();
18
+ this._fb = _fb;
19
+ this._session = _session;
20
+ this.form = this._fb.group({
21
+ cube: null,
22
+ xAxis: this._fb.control(null, Validators.required),
23
+ series: null,
24
+ indices: null,
25
+ filters: this._fb.group({}),
26
+ chartType: null,
27
+ scope: null
28
+ });
29
+ this.cubes = this._session.profile.cubes;
30
+ }
31
+ _secondaryAxes(primaryAxes) {
32
+ this.secondaryAxes = this.cube.axes.filter(a => primaryAxes.indexOf(a.name) < 0);
33
+ }
34
+ xAxisSelected(evt) {
35
+ this._secondaryAxes(evt.value);
36
+ }
37
+ ngOnInit() {
38
+ this.cube = !this.model.options.cube ? this._session.profile.cubes[0] :
39
+ this._session.profile.cubes.find(c => c.name === this.model.options.cube);
40
+ }
41
+ cubeSelected(evt) {
42
+ this.cube = evt.value;
43
+ this.form.get('cube').setValue(evt.value.name);
44
+ }
45
+ };
46
+ ParallelViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ParallelViewDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
47
+ ParallelViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ParallelViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required>\r\n <mat-option *ngFor=\"let x of cube.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">{{'Pie'|translate}}</mat-option>\r\n <mat-option value=\"Column\">{{'Column'|translate}}</mat-option>\r\n <mat-option value=\"Line\">{{'Line'|translate}}</mat-option>\r\n <mat-option value=\"Area\">{{'Area'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n <bizdoc-cube-parallel *ngIf=\"args.xAxis\" [cube]=\"args.cube\"\r\n [xAxis]=\"args.xAxis\"\r\n [series]=\"args.series\"\r\n [indices]=\"args.indices\"\r\n [filters]=\"args.filters\"\r\n [chartType]=\"args.chartType\"\r\n [scope]=\"args.scope\"\r\n [size]=\"200\"></bizdoc-cube-parallel>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i7.CubeParallelComponent, selector: "bizdoc-cube-parallel", inputs: ["filters", "xAxis", "series", "indices", "cube", "size", "chartType", "scope", "palettes"], outputs: ["explore"] }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
48
+ ParallelViewDesignComponent = __decorate([
49
+ BizDoc({ selector: 'parallel-view-designer' })
50
+ ], ParallelViewDesignComponent);
51
+ export { ParallelViewDesignComponent };
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ParallelViewDesignComponent, decorators: [{
53
+ type: Component,
54
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required>\r\n <mat-option *ngFor=\"let x of cube.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">{{'Pie'|translate}}</mat-option>\r\n <mat-option value=\"Column\">{{'Column'|translate}}</mat-option>\r\n <mat-option value=\"Line\">{{'Line'|translate}}</mat-option>\r\n <mat-option value=\"Area\">{{'Area'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n <bizdoc-cube-parallel *ngIf=\"args.xAxis\" [cube]=\"args.cube\"\r\n [xAxis]=\"args.xAxis\"\r\n [series]=\"args.series\"\r\n [indices]=\"args.indices\"\r\n [filters]=\"args.filters\"\r\n [chartType]=\"args.chartType\"\r\n [scope]=\"args.scope\"\r\n [size]=\"200\"></bizdoc-cube-parallel>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n" }]
55
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
56
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyYWxsZWwtdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvcGFyYWxsZWwtdmlldy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvcGFyYWxsZWwtdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQWUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBR2xELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7Ozs7O0lBSS9DLDJCQUEyQixTQUEzQiwyQkFBNEIsU0FBUSx3QkFBK0I7SUFhOUUsWUFBb0IsR0FBZ0IsRUFBVSxRQUF3QjtRQUNwRSxLQUFLLEVBQUUsQ0FBQztRQURVLFFBQUcsR0FBSCxHQUFHLENBQWE7UUFBVSxhQUFRLEdBQVIsUUFBUSxDQUFnQjtRQVo3RC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C1vcHRpb24gdmFsdWU9XCJBcmVhXCI+e3snQXJlYSd8dHJhbnNsYXRlfX08L21hdC1vcHRpb24+XHJcbiAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgPC9mb3JtPlxyXG4gIDxkaXY+XHJcbiAgICA8Yml6ZG9jLWN1YmUtcGFyYWxsZWwgKm5nSWY9XCJhcmdzLnhBeGlzXCIgW2N1YmVdPVwiYXJncy5jdWJlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICBbeEF4aXNdPVwiYXJncy54QXhpc1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nlcmllc109XCJhcmdzLnNlcmllc1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgW2luZGljZXNdPVwiYXJncy5pbmRpY2VzXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICBbZmlsdGVyc109XCJhcmdzLmZpbHRlcnNcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFtjaGFydFR5cGVdPVwiYXJncy5jaGFydFR5cGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFtzY29wZV09XCJhcmdzLnNjb3BlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICBbc2l6ZV09XCIyMDBcIj48L2JpemRvYy1jdWJlLXBhcmFsbGVsPlxyXG4gIDwvZGl2PlxyXG48L25nLXRlbXBsYXRlPlxyXG48bmctdGVtcGxhdGUgI2luZm8+PC9uZy10ZW1wbGF0ZT5cclxuIl19
@@ -0,0 +1,47 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { BizDoc } from "../../../core/decorators";
4
+ import { DesignerElementComponent } from "../designer.base";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/forms";
7
+ import * as i2 from "../../../core/session.service";
8
+ import * as i3 from "@angular/common";
9
+ import * as i4 from "@angular/material/core";
10
+ import * as i5 from "@angular/material/form-field";
11
+ import * as i6 from "@angular/material/select";
12
+ import * as i7 from "../../../cube/accum/accum.component";
13
+ import * as i8 from "../../../cube/chart/chart.component";
14
+ import * as i9 from "../../../core/pipes/translate.pipe";
15
+ let PerformanceWidgetDesignComponent = class PerformanceWidgetDesignComponent extends DesignerElementComponent {
16
+ constructor(_fb, _session) {
17
+ super();
18
+ this._fb = _fb;
19
+ this._session = _session;
20
+ this.form = this._fb.group({
21
+ cube: null,
22
+ series: null,
23
+ filters: this._fb.group({}),
24
+ scope: null
25
+ });
26
+ this.cubes = this._session.profile.cubes;
27
+ }
28
+ ngOnInit() {
29
+ this.selectedCube = !this.model.options.cube ? this._session.profile.cubes[0] :
30
+ this._session.profile.cubes.find(c => c.name === this.model.options.cube);
31
+ }
32
+ cubeSelected(evt) {
33
+ this.selectedCube = evt.value;
34
+ this.form.get('cube').setValue(evt.value.name);
35
+ }
36
+ };
37
+ PerformanceWidgetDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PerformanceWidgetDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
38
+ PerformanceWidgetDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: PerformanceWidgetDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (optionSelected)=\"cubeSelected($event)\">\r\n <mat-option>{{'Default'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required>\r\n <mat-option *ngFor=\"let x of selectedCube.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required>\r\n <mat-option>{{'None'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let x of selectedCube.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">Pie</mat-option>\r\n <mat-option value=\"Column\">Column</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n <ng-container [ngSwitch]=\"isAccum\">\r\n <bizdoc-cube-accum *ngSwitchCase=\"true\"\r\n [chartType]=\"args.chartType\"\r\n [width]=\"200\"\r\n [scope]=\"args.scope\"\r\n [cube]=\"selectedCube.name\"\r\n [filters]=\"args.filters\"\r\n [xAxis]=\"args.xAxis\"></bizdoc-cube-accum>\r\n <bizdoc-cube-chart *ngSwitchDefault\r\n [cube]=\"selectedCube.name\"\r\n [xAxis]=\"args.xAxis\"\r\n [series]=\"args.series\"\r\n [indices]=\"args.indices\"\r\n [filters]=\"args.filters\"\r\n [chartType]=\"args.chartType\"\r\n [indicesChartType]=\"args.indicesChartType\"\r\n [width]=\"200\"\r\n [scope]=\"args.scope\"></bizdoc-cube-chart>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i7.CubeAccumulationChartComponent, selector: "bizdoc-cube-accum", inputs: ["palettes", "height", "width", "cube", "xAxis", "filters", "chartType", "scope", "loading"], outputs: ["loadingChange", "explore"] }, { kind: "component", type: i8.CubeChartComponent, selector: "bizdoc-cube-chart", inputs: ["width", "height", "cube", "xAxis", "series", "indices", "filters", "yAxis", "chartType", "indicesChartType", "scope", "loading", "palettes"], outputs: ["explore", "loadingChange"] }, { kind: "pipe", type: i9.TranslatePipe, name: "translate" }] });
39
+ PerformanceWidgetDesignComponent = __decorate([
40
+ BizDoc({ selector: 'performance-widget-designer' })
41
+ ], PerformanceWidgetDesignComponent);
42
+ export { PerformanceWidgetDesignComponent };
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PerformanceWidgetDesignComponent, decorators: [{
44
+ type: Component,
45
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (optionSelected)=\"cubeSelected($event)\">\r\n <mat-option>{{'Default'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required>\r\n <mat-option *ngFor=\"let x of selectedCube.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required>\r\n <mat-option>{{'None'|translate}}</mat-option>\r\n <mat-option *ngFor=\"let x of selectedCube.axes\" [value]=\"x.name\">{{x.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">Pie</mat-option>\r\n <mat-option value=\"Column\">Column</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n <ng-container [ngSwitch]=\"isAccum\">\r\n <bizdoc-cube-accum *ngSwitchCase=\"true\"\r\n [chartType]=\"args.chartType\"\r\n [width]=\"200\"\r\n [scope]=\"args.scope\"\r\n [cube]=\"selectedCube.name\"\r\n [filters]=\"args.filters\"\r\n [xAxis]=\"args.xAxis\"></bizdoc-cube-accum>\r\n <bizdoc-cube-chart *ngSwitchDefault\r\n [cube]=\"selectedCube.name\"\r\n [xAxis]=\"args.xAxis\"\r\n [series]=\"args.series\"\r\n [indices]=\"args.indices\"\r\n [filters]=\"args.filters\"\r\n [chartType]=\"args.chartType\"\r\n [indicesChartType]=\"args.indicesChartType\"\r\n [width]=\"200\"\r\n [scope]=\"args.scope\"></bizdoc-cube-chart>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n" }]
46
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyZm9ybWFuY2Utd2lkZ2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9wZXJmb3JtYW5jZS13aWRnZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL3BlcmZvcm1hbmNlLXdpZGdldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUlsRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFHbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7Ozs7O0lBSS9DLGdDQUFnQyxTQUFoQyxnQ0FBaUMsU0FBUSx3QkFBK0I7SUFTbkYsWUFBb0IsR0FBZ0IsRUFBVSxRQUF3QjtRQUNwRSxLQUFLLEVBQUUsQ0FBQTtRQURXLFFBQUcsR0FB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ICAgICAgICAgIFtjaGFydFR5cGVdPVwiYXJncy5jaGFydFR5cGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW3dpZHRoXT1cIjIwMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbc2NvcGVdPVwiYXJncy5zY29wZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbY3ViZV09XCJzZWxlY3RlZEN1YmUubmFtZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbZmlsdGVyc109XCJhcmdzLmZpbHRlcnNcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW3hBeGlzXT1cImFyZ3MueEF4aXNcIj48L2JpemRvYy1jdWJlLWFjY3VtPlxyXG4gICAgICA8Yml6ZG9jLWN1YmUtY2hhcnQgKm5nU3dpdGNoRGVmYXVsdFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW2N1YmVdPVwic2VsZWN0ZWRDdWJlLm5hbWVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW3hBeGlzXT1cImFyZ3MueEF4aXNcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW3Nlcmllc109XCJhcmdzLnNlcmllc1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbaW5kaWNlc109XCJhcmdzLmluZGljZXNcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW2ZpbHRlcnNdPVwiYXJncy5maWx0ZXJzXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgIFtjaGFydFR5cGVdPVwiYXJncy5jaGFydFR5cGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW2luZGljZXNDaGFydFR5cGVdPVwiYXJncy5pbmRpY2VzQ2hhcnRUeXBlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgIFt3aWR0aF09XCIyMDBcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgW3Njb3BlXT1cImFyZ3Muc2NvcGVcIj48L2JpemRvYy1jdWJlLWNoYXJ0PlxyXG4gICAgPC9uZy1jb250YWluZXI+XHJcbiAgPC9kaXY+XHJcbjwvbmctdGVtcGxhdGU+XHJcbjxuZy10ZW1wbGF0ZSAjaW5mbz48L25nLXRlbXBsYXRlPlxyXG4iXX0=
@@ -0,0 +1,57 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { Validators } from "@angular/forms";
4
+ import { BizDoc } from "../../../core/decorators";
5
+ import { DesignerElementComponent } from "../designer.base";
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/forms";
8
+ import * as i2 from "../../../core/session.service";
9
+ import * as i3 from "@angular/common";
10
+ import * as i4 from "@angular/material/core";
11
+ import * as i5 from "@angular/material/form-field";
12
+ import * as i6 from "@angular/material/select";
13
+ import * as i7 from "../../../core/pipes/translate.pipe";
14
+ let PivotViewDesignComponent = class PivotViewDesignComponent extends DesignerElementComponent {
15
+ constructor(_fb, _session) {
16
+ super();
17
+ this._fb = _fb;
18
+ this._session = _session;
19
+ this.form = this._fb.group({
20
+ cube: null,
21
+ xAxis: this._fb.control(null, Validators.required),
22
+ series: null,
23
+ indices: null,
24
+ filters: this._fb.group({}),
25
+ chartType: null,
26
+ scope: null
27
+ });
28
+ this.cubes = this._session.profile.cubes;
29
+ }
30
+ ngOnInit() {
31
+ this.cube = !this.model.options.cube ? this._session.profile.cubes[0] :
32
+ this._session.profile.cubes.find(c => c.name === this.model.options.cube);
33
+ this.cube && this.args.xAxis && this._secondaryAxes(this.args.xAxis);
34
+ }
35
+ _secondaryAxes(primaryAxes) {
36
+ this.secondaryAxes = this.cube.axes.filter(a => primaryAxes.indexOf(a.name) < 0);
37
+ }
38
+ xAxisSelected(evt) {
39
+ this._secondaryAxes(evt.value);
40
+ }
41
+ cubeSelected(evt) {
42
+ this.cube = evt.value;
43
+ this._secondaryAxes(this.args.xAxis);
44
+ this.form.get('cube').setValue(evt.value.name);
45
+ }
46
+ };
47
+ PivotViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PivotViewDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
48
+ PivotViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: PivotViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required multiple>\r\n <mat-option *ngFor=\"let x of cube.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required multiple>\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube.indices\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
49
+ PivotViewDesignComponent = __decorate([
50
+ BizDoc({ selector: 'pivot-view-designer' })
51
+ ], PivotViewDesignComponent);
52
+ export { PivotViewDesignComponent };
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PivotViewDesignComponent, decorators: [{
54
+ type: Component,
55
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required multiple>\r\n <mat-option *ngFor=\"let x of cube.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" required multiple>\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube.indices\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n <div>\r\n </div>\r\n</ng-template>\r\n<ng-template #info></ng-template>\r\n" }]
56
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
57
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGl2b3Qtdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvcGl2b3Qtdmlldy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvcGl2b3Qtdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQWUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBR2xELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7Ozs7SUFJL0Msd0JBQXdCLFNBQXhCLHdCQUF5QixTQUFRLHdCQUErQjtJQWEzRSxZQUFvQixHQUFnQixFQUFVLFFBQXdCO1FBQ3BFLEtBQUssRUFBRS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1lPVwic2VyaWVzXCIgcmVxdWlyZWQgbXVsdGlwbGU+XHJcbiAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IHggb2Ygc2Vjb25kYXJ5QXhlc1wiIFt2YWx1ZV09XCJ4Lm5hbWVcIj57e3gudGl0bGUgfHwgeC5uYW1lfX08L21hdC1vcHRpb24+XHJcbiAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgIDxtYXQtbGFiZWw+e3snSW5kaWNlcyd8dHJhbnNsYXRlfX08L21hdC1sYWJlbD5cclxuICAgICAgPG1hdC1zZWxlY3QgZm9ybUNvbnRyb2xOYW1lPVwiaW5kaWNlc1wiIG11bHRpcGxlPlxyXG4gICAgICAgIDxtYXQtb3B0aW9uICpuZ0Zvcj1cImxldCB4IG9mIGN1YmUuaW5kaWNlc1wiIFt2YWx1ZV09XCJ4Lm5hbWVcIj57e3gudGl0bGUgfHwgeC5uYW1lfX08L21hdC1vcHRpb24+XHJcbiAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgPC9mb3JtPlxyXG4gIDxkaXY+XHJcbiAgPC9kaXY+XHJcbjwvbmctdGVtcGxhdGU+XHJcbjxuZy10ZW1wbGF0ZSAjaW5mbz48L25nLXRlbXBsYXRlPlxyXG4iXX0=
@@ -0,0 +1,32 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { BizDoc } from "../../../core/decorators";
4
+ import { DesignerElementComponent } from "../designer.base";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/forms";
7
+ import * as i2 from "../../../core/session.service";
8
+ import * as i3 from "@angular/common";
9
+ import * as i4 from "../privileges.component";
10
+ let ReportDesignComponent = class ReportDesignComponent extends DesignerElementComponent {
11
+ constructor(_fb, _session) {
12
+ super();
13
+ this._fb = _fb;
14
+ this._session = _session;
15
+ this.form = this._fb.group({
16
+ disabled: false,
17
+ });
18
+ }
19
+ ngOnInit() {
20
+ }
21
+ };
22
+ ReportDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ReportDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
23
+ ReportDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ReportDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n </form>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"] }] });
24
+ ReportDesignComponent = __decorate([
25
+ BizDoc({ selector: 'report-designer' })
26
+ ], ReportDesignComponent);
27
+ export { ReportDesignComponent };
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ReportDesignComponent, decorators: [{
29
+ type: Component,
30
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n </form>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
31
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9yZXBvcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL3JlcG9ydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7OztJQUkvQyxxQkFBcUIsU0FBckIscUJBQXNCLFNBQVEsd0JBQStCO0lBSXhFLFlBQW9CLEdBQWdCLEVBQVUsUUFBd0I7UUFDcEUsS0FBSyxFQUFFLENBQUE7UUFEVyxRQUFHLEdBQUgsR0FBRyxDQUFhO1FBQVUsYUFBUSxHQUFSLFFBQVEsQ0FBZ0I7UUFIN0QsU0FBSSxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDO1lBQzdCLFFBQVEsRUFBRSxLQUFLO1NBQ2hCLENBQUMsQ0F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B9KTtcclxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9mYjogRm9ybUJ1aWxkZXIsIHByaXZhdGUgX3Nlc3Npb246IFNlc3Npb25TZXJ2aWNlKSB7XHJcbiAgICBzdXBlcigpXHJcbiAgfVxyXG4gIG5nT25Jbml0KCkge1xyXG4gIH1cclxufVxyXG5pbnRlcmZhY2UgTW9kZWwge1xyXG4gIGRpc2FibGVkPzogYm9vbGVhbixcclxufVxyXG4iLCI8bmctdGVtcGxhdGUgKm5nSWY9XCJlZGl0TW9kZTsgZWxzZSBpbmZvXCI+XHJcbiAgPGZvcm0gYXV0b2NvbXBsZXRlPVwib2ZmXCIgW2Zvcm1Hcm91cF09XCJmb3JtXCI+XHJcbiAgICA8Yml6ZG9jLXByaXZpbGVnZXMgW21vZGVsXT1cIm1vZGVsLnByaXZpbGVnZXNcIj48L2JpemRvYy1wcml2aWxlZ2VzPlxyXG4gIDwvZm9ybT5cclxuPC9uZy10ZW1wbGF0ZT5cclxuPCEtLS0tPlxyXG48bmctdGVtcGxhdGUgI2luZm8+XHJcbiAgPGRpdj5cclxuICA8L2Rpdj5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
@@ -0,0 +1,31 @@
1
+ import { __decorate } from "tslib";
2
+ import { Component } from "@angular/core";
3
+ import { BizDoc } from "../../../core/decorators";
4
+ import { DesignerElementComponent } from "../designer.base";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/forms";
7
+ import * as i2 from "../../../core/session.service";
8
+ import * as i3 from "@angular/common";
9
+ let RoleDesignComponent = class RoleDesignComponent extends DesignerElementComponent {
10
+ constructor(_fb, _session) {
11
+ super();
12
+ this._fb = _fb;
13
+ this._session = _session;
14
+ this.form = this._fb.group({
15
+ disabled: false,
16
+ });
17
+ }
18
+ ngOnInit() {
19
+ }
20
+ };
21
+ RoleDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: RoleDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }], target: i0.ɵɵFactoryTarget.Component });
22
+ RoleDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: RoleDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
23
+ RoleDesignComponent = __decorate([
24
+ BizDoc({ selector: 'role-designer' })
25
+ ], RoleDesignComponent);
26
+ export { RoleDesignComponent };
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: RoleDesignComponent, decorators: [{
28
+ type: Component,
29
+ args: [{ template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
30
+ }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }]; } });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJ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