@bizdoc/core 3.2.10 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (448) hide show
  1. package/assets/themes/brown.min.css +1 -1
  2. package/assets/themes/dark.min.css +3 -3
  3. package/assets/themes/deep-purple-light-blue.min.css +1 -1
  4. package/assets/themes/deep-purple-teal.min.css +1 -1
  5. package/assets/themes/default.min.css +8 -8
  6. package/assets/themes/green.min.css +1 -1
  7. package/assets/themes/indigo-amber.min.css +1 -1
  8. package/assets/themes/indigo.min.css +1 -1
  9. package/fesm2022/bizdoc-core.mjs +2068 -1866
  10. package/fesm2022/bizdoc-core.mjs.map +1 -1
  11. package/lib/admin/admin-menu.component.d.ts +1 -3
  12. package/lib/admin/architecture/designer.base.d.ts +3 -3
  13. package/lib/admin/architecture/elements/form.component.d.ts +1 -1
  14. package/lib/compose/trace/trace.base.d.ts +1 -1
  15. package/lib/core/base.d.ts +5 -0
  16. package/lib/core/fields/options.base.d.ts +2 -2
  17. package/lib/core/inputs/combination-picker-body.d.ts +0 -2
  18. package/lib/core/inputs/combination-picker.d.ts +1 -1
  19. package/lib/core/session.service.d.ts +2 -2
  20. package/lib/core/tagging/tagging.component-base.d.ts +1 -1
  21. package/lib/core/translate.service.d.ts +2 -2
  22. package/lib/cube/matrix/matrix.base.d.ts +1 -1
  23. package/lib/cube/view-base.d.ts +1 -1
  24. package/lib/dashboard/cube/cube-analysis.base.d.ts +1 -1
  25. package/lib/home/home-base.component.d.ts +1 -1
  26. package/lib/home/home.desktop.component.d.ts +5 -3
  27. package/lib/notifications/types/notification-base.d.ts +1 -1
  28. package/lib/reports/cube/usage-base.d.ts +1 -1
  29. package/lib/views/cube/cube-base.d.ts +1 -1
  30. package/package.json +31 -33
  31. package/esm2022/bizdoc-core.mjs +0 -5
  32. package/esm2022/lib/admin/admin-dismiss.service.mjs +0 -28
  33. package/esm2022/lib/admin/admin-menu.component.mjs +0 -24
  34. package/esm2022/lib/admin/architecture/cube-axes-filter.component.mjs +0 -93
  35. package/esm2022/lib/admin/architecture/declarations.mjs +0 -79
  36. package/esm2022/lib/admin/architecture/designer-element.component.mjs +0 -270
  37. package/esm2022/lib/admin/architecture/designer-privileges.component.mjs +0 -96
  38. package/esm2022/lib/admin/architecture/designer.base.mjs +0 -136
  39. package/esm2022/lib/admin/architecture/designer.component.mjs +0 -396
  40. package/esm2022/lib/admin/architecture/elements/action.component.mjs +0 -43
  41. package/esm2022/lib/admin/architecture/elements/analysis-view.component.mjs +0 -50
  42. package/esm2022/lib/admin/architecture/elements/analysis-widget.component.mjs +0 -49
  43. package/esm2022/lib/admin/architecture/elements/anomaly-rule.component.mjs +0 -29
  44. package/esm2022/lib/admin/architecture/elements/attribute.component.mjs +0 -35
  45. package/esm2022/lib/admin/architecture/elements/box-form.component.mjs +0 -49
  46. package/esm2022/lib/admin/architecture/elements/configuration-datasource.component.mjs +0 -66
  47. package/esm2022/lib/admin/architecture/elements/control.component.mjs +0 -21
  48. package/esm2022/lib/admin/architecture/elements/cube-index-utility.component.mjs +0 -32
  49. package/esm2022/lib/admin/architecture/elements/cube-view.component.mjs +0 -34
  50. package/esm2022/lib/admin/architecture/elements/cube.component.mjs +0 -254
  51. package/esm2022/lib/admin/architecture/elements/document-state-widget.component.mjs +0 -40
  52. package/esm2022/lib/admin/architecture/elements/documents-report.component.mjs +0 -34
  53. package/esm2022/lib/admin/architecture/elements/documents-widget.component.mjs +0 -40
  54. package/esm2022/lib/admin/architecture/elements/explore-view.component.mjs +0 -35
  55. package/esm2022/lib/admin/architecture/elements/folder.component.mjs +0 -56
  56. package/esm2022/lib/admin/architecture/elements/form-invite.dialog.mjs +0 -126
  57. package/esm2022/lib/admin/architecture/elements/form.component.mjs +0 -156
  58. package/esm2022/lib/admin/architecture/elements/guide.component.mjs +0 -53
  59. package/esm2022/lib/admin/architecture/elements/job.component.mjs +0 -57
  60. package/esm2022/lib/admin/architecture/elements/matrix-view.component.mjs +0 -98
  61. package/esm2022/lib/admin/architecture/elements/node.component.mjs +0 -18
  62. package/esm2022/lib/admin/architecture/elements/parallel-view.component.mjs +0 -38
  63. package/esm2022/lib/admin/architecture/elements/performance-report.component.mjs +0 -32
  64. package/esm2022/lib/admin/architecture/elements/performance-widget.component.mjs +0 -34
  65. package/esm2022/lib/admin/architecture/elements/pivot-view.component.mjs +0 -40
  66. package/esm2022/lib/admin/architecture/elements/policy.component.mjs +0 -18
  67. package/esm2022/lib/admin/architecture/elements/report.component.mjs +0 -29
  68. package/esm2022/lib/admin/architecture/elements/return-to-role-action.component.mjs +0 -33
  69. package/esm2022/lib/admin/architecture/elements/role.component.mjs +0 -43
  70. package/esm2022/lib/admin/architecture/elements/rule.component.mjs +0 -18
  71. package/esm2022/lib/admin/architecture/elements/source.component.mjs +0 -25
  72. package/esm2022/lib/admin/architecture/elements/state.component.mjs +0 -44
  73. package/esm2022/lib/admin/architecture/elements/sum-view.component.mjs +0 -38
  74. package/esm2022/lib/admin/architecture/elements/tasks-report.component.mjs +0 -39
  75. package/esm2022/lib/admin/architecture/elements/type.component.mjs +0 -83
  76. package/esm2022/lib/admin/architecture/elements/usage-report.component.mjs +0 -64
  77. package/esm2022/lib/admin/architecture/elements/utility.component.mjs +0 -18
  78. package/esm2022/lib/admin/architecture/elements/view.component.mjs +0 -18
  79. package/esm2022/lib/admin/architecture/elements/widget.component.mjs +0 -29
  80. package/esm2022/lib/admin/architecture/icon-picker.component.mjs +0 -173
  81. package/esm2022/lib/admin/core/ace.input.mjs +0 -144
  82. package/esm2022/lib/admin/core/color-picker.input.mjs +0 -183
  83. package/esm2022/lib/admin/core/localized-string.component.mjs +0 -129
  84. package/esm2022/lib/admin/core/search.input.mjs +0 -52
  85. package/esm2022/lib/admin/diff/configuration-diff.component.mjs +0 -573
  86. package/esm2022/lib/admin/document-trace/document-trace.component.mjs +0 -537
  87. package/esm2022/lib/admin/document-trace/reassign.dialog.mjs +0 -39
  88. package/esm2022/lib/admin/document-trace/timeline.mjs +0 -2
  89. package/esm2022/lib/admin/document-trace/trace-element.component.mjs +0 -125
  90. package/esm2022/lib/admin/form/designer/box-designer.component.mjs +0 -270
  91. package/esm2022/lib/admin/form/designer/declarations.mjs +0 -2
  92. package/esm2022/lib/admin/form/designer/design-control.component.mjs +0 -41
  93. package/esm2022/lib/admin/form/designer/properties.component.mjs +0 -71
  94. package/esm2022/lib/admin/form/designer/section.component.mjs +0 -53
  95. package/esm2022/lib/admin/form/designer/settings.component.mjs +0 -51
  96. package/esm2022/lib/admin/form/form.resolve.service.mjs +0 -18
  97. package/esm2022/lib/admin/form/workflow/node-ref.mjs +0 -8
  98. package/esm2022/lib/admin/form/workflow/node.component.mjs +0 -156
  99. package/esm2022/lib/admin/form/workflow/role-node.component.mjs +0 -88
  100. package/esm2022/lib/admin/form/workflow/workflow.component.mjs +0 -586
  101. package/esm2022/lib/admin/indices/manage-cube-index.component.mjs +0 -160
  102. package/esm2022/lib/admin/patterns/patterns.component.mjs +0 -180
  103. package/esm2022/lib/admin/permissions/permissions.component.mjs +0 -98
  104. package/esm2022/lib/admin/positions/positions-popup.component.mjs +0 -75
  105. package/esm2022/lib/admin/positions/positions.component.mjs +0 -463
  106. package/esm2022/lib/admin/profiler/outofoffice.component.mjs +0 -156
  107. package/esm2022/lib/admin/profiler/profiler.component.mjs +0 -284
  108. package/esm2022/lib/admin/system.service.mjs +0 -127
  109. package/esm2022/lib/admin/utility-ref.mjs +0 -39
  110. package/esm2022/lib/admin/utility-wrapper.component.mjs +0 -53
  111. package/esm2022/lib/admin/utility.pane.component.mjs +0 -48
  112. package/esm2022/lib/app.component.mjs +0 -73
  113. package/esm2022/lib/bizdoc.module.mjs +0 -110
  114. package/esm2022/lib/browse/browse-items.component.mjs +0 -496
  115. package/esm2022/lib/browse/browse.mobile.component.mjs +0 -102
  116. package/esm2022/lib/browse/browse.pane.component.mjs +0 -169
  117. package/esm2022/lib/browse/expanded-item/expanded-item.component.mjs +0 -316
  118. package/esm2022/lib/browse/filter/filter.component.mjs +0 -140
  119. package/esm2022/lib/browse/folders-menu.component.mjs +0 -49
  120. package/esm2022/lib/chat/chat-info.mjs +0 -77
  121. package/esm2022/lib/chat/chat.mobile.component.mjs +0 -24
  122. package/esm2022/lib/chat/chat.service.mjs +0 -122
  123. package/esm2022/lib/chat/contacts.component.mjs +0 -107
  124. package/esm2022/lib/chat/contacts.pane.component.mjs +0 -26
  125. package/esm2022/lib/chat/conversation.component.mjs +0 -196
  126. package/esm2022/lib/chat/conversation.pane.component.mjs +0 -46
  127. package/esm2022/lib/compose/action/action-picker.component.mjs +0 -82
  128. package/esm2022/lib/compose/action/action-ref.mjs +0 -19
  129. package/esm2022/lib/compose/action/action.base.mjs +0 -50
  130. package/esm2022/lib/compose/action/action.dialog.mjs +0 -62
  131. package/esm2022/lib/compose/action/action.pane.dialog.exp.mjs +0 -68
  132. package/esm2022/lib/compose/action/assign-action.component.mjs +0 -77
  133. package/esm2022/lib/compose/action/moveto-action.component.mjs +0 -90
  134. package/esm2022/lib/compose/action/return-action.component.mjs +0 -51
  135. package/esm2022/lib/compose/attachments/attachments.component.mjs +0 -130
  136. package/esm2022/lib/compose/attachments/preview/attachment-preview.component.mjs +0 -157
  137. package/esm2022/lib/compose/attachments/progress-button.directive.mjs +0 -25
  138. package/esm2022/lib/compose/box/box.component.mjs +0 -44
  139. package/esm2022/lib/compose/box/control.component.mjs +0 -50
  140. package/esm2022/lib/compose/box/row.component.mjs +0 -41
  141. package/esm2022/lib/compose/can-deactivate-changes.service.mjs +0 -27
  142. package/esm2022/lib/compose/comments/comment.component.mjs +0 -188
  143. package/esm2022/lib/compose/comments/comments.component.mjs +0 -226
  144. package/esm2022/lib/compose/comments/comments.pane.component.mjs +0 -40
  145. package/esm2022/lib/compose/comments/edit-comment.component.mjs +0 -32
  146. package/esm2022/lib/compose/comments/edits.component.mjs +0 -30
  147. package/esm2022/lib/compose/comments/quick-comment.component.exp.mjs +0 -64
  148. package/esm2022/lib/compose/comments/votes.component.mjs +0 -42
  149. package/esm2022/lib/compose/compose-resolve.service.mjs +0 -34
  150. package/esm2022/lib/compose/compose.mobile.component.mjs +0 -114
  151. package/esm2022/lib/compose/compose.pane.component.mjs +0 -202
  152. package/esm2022/lib/compose/copy/copy.dialog.mjs +0 -45
  153. package/esm2022/lib/compose/dismiss.service.mjs +0 -25
  154. package/esm2022/lib/compose/document-resolve.service.mjs +0 -33
  155. package/esm2022/lib/compose/document-resolver.service.mjs +0 -17
  156. package/esm2022/lib/compose/document.component.mjs +0 -48
  157. package/esm2022/lib/compose/document.mobile.component.mjs +0 -23
  158. package/esm2022/lib/compose/document.pane.component.mjs +0 -27
  159. package/esm2022/lib/compose/events/events.component.mjs +0 -29
  160. package/esm2022/lib/compose/form-ref.mjs +0 -43
  161. package/esm2022/lib/compose/form-selector/form-selector.sheet.mjs +0 -57
  162. package/esm2022/lib/compose/form.component.mjs +0 -512
  163. package/esm2022/lib/compose/new-menu.component.mjs +0 -94
  164. package/esm2022/lib/compose/overlay.component.exp.mjs +0 -71
  165. package/esm2022/lib/compose/privilage.directive.mjs +0 -64
  166. package/esm2022/lib/compose/recipient-resolver.service.mjs +0 -18
  167. package/esm2022/lib/compose/state.component.mjs +0 -37
  168. package/esm2022/lib/compose/tag/tags.component.mjs +0 -89
  169. package/esm2022/lib/compose/trace/flow.component.mjs +0 -687
  170. package/esm2022/lib/compose/trace/people.component.mjs +0 -39
  171. package/esm2022/lib/compose/trace/trace.base.mjs +0 -79
  172. package/esm2022/lib/compose/trace/trace.component.mjs +0 -353
  173. package/esm2022/lib/compose/trace/trace.pane.component.mjs +0 -48
  174. package/esm2022/lib/compose/version-compare/version-compare.component.mjs +0 -58
  175. package/esm2022/lib/compose/version-compare/version-compare.directive.mjs +0 -343
  176. package/esm2022/lib/compose/version-compare/version.pane.component.mjs +0 -53
  177. package/esm2022/lib/core/account.service.mjs +0 -38
  178. package/esm2022/lib/core/animated-icon/animated-icon.directive.mjs +0 -17
  179. package/esm2022/lib/core/animations.mjs +0 -168
  180. package/esm2022/lib/core/authentication.mjs +0 -4
  181. package/esm2022/lib/core/avatar/avatar.component.mjs +0 -111
  182. package/esm2022/lib/core/base.mjs +0 -2
  183. package/esm2022/lib/core/checkbox.mjs +0 -38
  184. package/esm2022/lib/core/colors.mjs +0 -322
  185. package/esm2022/lib/core/component-factory-resolver.mjs +0 -48
  186. package/esm2022/lib/core/configuration.mjs +0 -17
  187. package/esm2022/lib/core/datasource.service.mjs +0 -75
  188. package/esm2022/lib/core/decorators.mjs +0 -46
  189. package/esm2022/lib/core/document-factory.service.mjs +0 -156
  190. package/esm2022/lib/core/fields/address.designer.mjs +0 -39
  191. package/esm2022/lib/core/fields/address.field.mjs +0 -65
  192. package/esm2022/lib/core/fields/autocomplete.field.mjs +0 -136
  193. package/esm2022/lib/core/fields/axes-picker.designer.mjs +0 -59
  194. package/esm2022/lib/core/fields/axes-picker.field.mjs +0 -46
  195. package/esm2022/lib/core/fields/checkbox.designer.mjs +0 -38
  196. package/esm2022/lib/core/fields/checkbox.field.mjs +0 -35
  197. package/esm2022/lib/core/fields/checklist.designer.mjs +0 -98
  198. package/esm2022/lib/core/fields/checklist.field.mjs +0 -36
  199. package/esm2022/lib/core/fields/date-range.designer.mjs +0 -43
  200. package/esm2022/lib/core/fields/date-range.field.mjs +0 -46
  201. package/esm2022/lib/core/fields/date.designer.mjs +0 -40
  202. package/esm2022/lib/core/fields/date.field.mjs +0 -40
  203. package/esm2022/lib/core/fields/expression.field.mjs +0 -87
  204. package/esm2022/lib/core/fields/file.designer.mjs +0 -39
  205. package/esm2022/lib/core/fields/file.field.mjs +0 -35
  206. package/esm2022/lib/core/fields/html.designer.mjs +0 -61
  207. package/esm2022/lib/core/fields/html.field.mjs +0 -44
  208. package/esm2022/lib/core/fields/input.designer.mjs +0 -38
  209. package/esm2022/lib/core/fields/input.field.mjs +0 -54
  210. package/esm2022/lib/core/fields/localized-string.field.mjs +0 -49
  211. package/esm2022/lib/core/fields/numeric.designer.mjs +0 -72
  212. package/esm2022/lib/core/fields/numeric.field.mjs +0 -37
  213. package/esm2022/lib/core/fields/options.base.mjs +0 -41
  214. package/esm2022/lib/core/fields/options.component.mjs +0 -58
  215. package/esm2022/lib/core/fields/radio-button.designer.mjs +0 -39
  216. package/esm2022/lib/core/fields/radio-button.field.mjs +0 -33
  217. package/esm2022/lib/core/fields/select.designer.mjs +0 -104
  218. package/esm2022/lib/core/fields/select.field.mjs +0 -36
  219. package/esm2022/lib/core/fields/signature.designer.mjs +0 -37
  220. package/esm2022/lib/core/fields/signature.field.mjs +0 -52
  221. package/esm2022/lib/core/fields/switch.field.mjs +0 -35
  222. package/esm2022/lib/core/fields/tags.designer.mjs +0 -28
  223. package/esm2022/lib/core/fields/tags.field.mjs +0 -51
  224. package/esm2022/lib/core/fields/textarea.designer.mjs +0 -33
  225. package/esm2022/lib/core/fields/textarea.field.mjs +0 -37
  226. package/esm2022/lib/core/fields/time.designer.mjs +0 -41
  227. package/esm2022/lib/core/fields/time.field.mjs +0 -39
  228. package/esm2022/lib/core/fields/timespan.field.mjs +0 -82
  229. package/esm2022/lib/core/fields/yesno.designer.mjs +0 -52
  230. package/esm2022/lib/core/fields/yesno.field.mjs +0 -34
  231. package/esm2022/lib/core/firebase.service.mjs +0 -51
  232. package/esm2022/lib/core/functions.mjs +0 -225
  233. package/esm2022/lib/core/guide/guide.component.mjs +0 -220
  234. package/esm2022/lib/core/guide/guide.service.mjs +0 -124
  235. package/esm2022/lib/core/guide/help-tip.component.mjs +0 -52
  236. package/esm2022/lib/core/http.interceptor.mjs +0 -63
  237. package/esm2022/lib/core/hub.service.mjs +0 -117
  238. package/esm2022/lib/core/identity/identity.component.mjs +0 -66
  239. package/esm2022/lib/core/info/attachment-info.service.mjs +0 -53
  240. package/esm2022/lib/core/info/document-info.service.mjs +0 -21
  241. package/esm2022/lib/core/info/location-info.component.mjs +0 -60
  242. package/esm2022/lib/core/info/map-info.mjs +0 -42
  243. package/esm2022/lib/core/inputs/address.input.mjs +0 -203
  244. package/esm2022/lib/core/inputs/auto-complete.input.mjs +0 -273
  245. package/esm2022/lib/core/inputs/combination-picker-body.mjs +0 -171
  246. package/esm2022/lib/core/inputs/combination-picker.mjs +0 -285
  247. package/esm2022/lib/core/inputs/combination-pool.mjs +0 -105
  248. package/esm2022/lib/core/inputs/file.input.mjs +0 -432
  249. package/esm2022/lib/core/inputs/select.input.mjs +0 -254
  250. package/esm2022/lib/core/inputs/signature.input.mjs +0 -150
  251. package/esm2022/lib/core/inputs/time-picker.mjs +0 -195
  252. package/esm2022/lib/core/inputs/timespan.input.mjs +0 -180
  253. package/esm2022/lib/core/layout.component.mjs +0 -93
  254. package/esm2022/lib/core/lottie-animation.exp.mjs +0 -49
  255. package/esm2022/lib/core/mailbox.service.mjs +0 -445
  256. package/esm2022/lib/core/models.mjs +0 -25
  257. package/esm2022/lib/core/none.component.mjs +0 -37
  258. package/esm2022/lib/core/pipes/action.pipe.mjs +0 -25
  259. package/esm2022/lib/core/pipes/calendar.pipe.mjs +0 -72
  260. package/esm2022/lib/core/pipes/date-format.pipe.mjs +0 -19
  261. package/esm2022/lib/core/pipes/daterange.pipe.mjs +0 -62
  262. package/esm2022/lib/core/pipes/difference.pipe.mjs +0 -15
  263. package/esm2022/lib/core/pipes/duration-format.pipe.mjs +0 -48
  264. package/esm2022/lib/core/pipes/duration.pipe.mjs +0 -19
  265. package/esm2022/lib/core/pipes/filter.pipe.mjs +0 -25
  266. package/esm2022/lib/core/pipes/form.pipe.mjs +0 -25
  267. package/esm2022/lib/core/pipes/join.pipe.mjs +0 -18
  268. package/esm2022/lib/core/pipes/localized-string.pipe.mjs +0 -26
  269. package/esm2022/lib/core/pipes/role.pipe.mjs +0 -25
  270. package/esm2022/lib/core/pipes/sanitize-html.pipe.mjs +0 -18
  271. package/esm2022/lib/core/pipes/sort.pipe.mjs +0 -42
  272. package/esm2022/lib/core/pipes/state.pipe.mjs +0 -25
  273. package/esm2022/lib/core/pipes/time-ago.pipe.mjs +0 -51
  274. package/esm2022/lib/core/pipes/to-now.pipe.mjs +0 -66
  275. package/esm2022/lib/core/pipes/translate.pipe.mjs +0 -58
  276. package/esm2022/lib/core/pipes/type-value.pipe.mjs +0 -42
  277. package/esm2022/lib/core/pipes/user-name.pipe.mjs +0 -21
  278. package/esm2022/lib/core/popup/popup-ref.mjs +0 -20
  279. package/esm2022/lib/core/popup/popup.component.mjs +0 -36
  280. package/esm2022/lib/core/popup/popup.service.mjs +0 -158
  281. package/esm2022/lib/core/popup/tooltip.directive.mjs +0 -81
  282. package/esm2022/lib/core/prompt/ask/ask.dialog.mjs +0 -29
  283. package/esm2022/lib/core/prompt/mask/mask.component.mjs +0 -21
  284. package/esm2022/lib/core/prompt.service.mjs +0 -88
  285. package/esm2022/lib/core/router.mjs +0 -37
  286. package/esm2022/lib/core/save-changes.dialog.mjs +0 -18
  287. package/esm2022/lib/core/session.service.mjs +0 -291
  288. package/esm2022/lib/core/slots/pane-ref.mjs +0 -152
  289. package/esm2022/lib/core/slots/router.directive.mjs +0 -68
  290. package/esm2022/lib/core/slots/router.service.mjs +0 -40
  291. package/esm2022/lib/core/slots/slots.component.mjs +0 -1193
  292. package/esm2022/lib/core/sticky-toolbar.exp.mjs +0 -33
  293. package/esm2022/lib/core/tagging/documents.component.mjs +0 -25
  294. package/esm2022/lib/core/tagging/edit-input.component.mjs +0 -238
  295. package/esm2022/lib/core/tagging/emoji.component.mjs +0 -35
  296. package/esm2022/lib/core/tagging/tagging-item.directive.mjs +0 -39
  297. package/esm2022/lib/core/tagging/tagging.component-base.mjs +0 -29
  298. package/esm2022/lib/core/tagging/tagging.directive.mjs +0 -136
  299. package/esm2022/lib/core/tagging/tagging.pipe.mjs +0 -72
  300. package/esm2022/lib/core/tagging/users.component.mjs +0 -32
  301. package/esm2022/lib/core/translate.service.mjs +0 -125
  302. package/esm2022/lib/core/translations.mjs +0 -1068
  303. package/esm2022/lib/core/virtual-tabs.component.exp.mjs +0 -84
  304. package/esm2022/lib/core/window-title.service.mjs +0 -65
  305. package/esm2022/lib/cube/accum/accum.component.mjs +0 -262
  306. package/esm2022/lib/cube/chart/chart.component.mjs +0 -345
  307. package/esm2022/lib/cube/cube-info.service.mjs +0 -103
  308. package/esm2022/lib/cube/cube-menu.component.mjs +0 -25
  309. package/esm2022/lib/cube/cube-view.component.mjs +0 -186
  310. package/esm2022/lib/cube/cube.service.mjs +0 -446
  311. package/esm2022/lib/cube/declarations.mjs +0 -2
  312. package/esm2022/lib/cube/explore/document-item.component.mjs +0 -38
  313. package/esm2022/lib/cube/explore/explore-item.component.mjs +0 -27
  314. package/esm2022/lib/cube/explore/explore-items.component.mjs +0 -193
  315. package/esm2022/lib/cube/explore/explore.pane.component.mjs +0 -78
  316. package/esm2022/lib/cube/explore/item-resolver.service.mjs +0 -30
  317. package/esm2022/lib/cube/explore/item.pane.component.mjs +0 -21
  318. package/esm2022/lib/cube/filter/filter-tags.component.exp.mjs +0 -75
  319. package/esm2022/lib/cube/filter/filter.component.mjs +0 -137
  320. package/esm2022/lib/cube/grid/grid.component.mjs +0 -210
  321. package/esm2022/lib/cube/matrix/matrix.base.mjs +0 -124
  322. package/esm2022/lib/cube/matrix/matrix.mobile.component.mjs +0 -67
  323. package/esm2022/lib/cube/matrix/matrix.pane.component.mjs +0 -78
  324. package/esm2022/lib/cube/matrix/popup.component.mjs +0 -70
  325. package/esm2022/lib/cube/matrix/table.component.mjs +0 -512
  326. package/esm2022/lib/cube/parallel/item.mjs +0 -40
  327. package/esm2022/lib/cube/parallel/parallel.component.mjs +0 -162
  328. package/esm2022/lib/cube/pivot/pivot.component.mjs +0 -564
  329. package/esm2022/lib/cube/spreadsheet/spreadsheet.component.mjs +0 -382
  330. package/esm2022/lib/cube/spreadsheet/spreadsheet.container.exp.mjs +0 -19
  331. package/esm2022/lib/cube/sum/sum.component.mjs +0 -403
  332. package/esm2022/lib/cube/view-base.mjs +0 -74
  333. package/esm2022/lib/cube/view.mobile.component.mjs +0 -121
  334. package/esm2022/lib/cube/view.pane.component.mjs +0 -99
  335. package/esm2022/lib/dashboard/actions/actions.widget.mjs +0 -127
  336. package/esm2022/lib/dashboard/cube/accum-cube.widget.mjs +0 -151
  337. package/esm2022/lib/dashboard/cube/compare.widget.mjs +0 -216
  338. package/esm2022/lib/dashboard/cube/cube-analysis.base.mjs +0 -117
  339. package/esm2022/lib/dashboard/cube/cube-analysis.widget.mjs +0 -50
  340. package/esm2022/lib/dashboard/cube/cube-chart.widget.mjs +0 -146
  341. package/esm2022/lib/dashboard/cube/document-state.widget.mjs +0 -85
  342. package/esm2022/lib/dashboard/cube/documents.widget.mjs +0 -66
  343. package/esm2022/lib/dashboard/cube/filter/filter.component.mjs +0 -61
  344. package/esm2022/lib/dashboard/dashboard.component.mjs +0 -67
  345. package/esm2022/lib/dashboard/dashboard.pane.component.mjs +0 -18
  346. package/esm2022/lib/dashboard/recents/recents.widget.mjs +0 -98
  347. package/esm2022/lib/dashboard/score/activity.widget.mjs +0 -177
  348. package/esm2022/lib/dashboard/score/compare-groups.widget.mjs +0 -215
  349. package/esm2022/lib/dashboard/score/peers-performance.widget.mjs +0 -251
  350. package/esm2022/lib/dashboard/score/pending-results.widget.mjs +0 -59
  351. package/esm2022/lib/dashboard/score/personal-score.widget.mjs +0 -222
  352. package/esm2022/lib/dashboard/widget-item.component.mjs +0 -91
  353. package/esm2022/lib/dashboard/widget-ref.mjs +0 -18
  354. package/esm2022/lib/designer.module.mjs +0 -106
  355. package/esm2022/lib/desktop.module.mjs +0 -140
  356. package/esm2022/lib/home/about/about.dialog.mjs +0 -25
  357. package/esm2022/lib/home/home-base.component.mjs +0 -92
  358. package/esm2022/lib/home/home.desktop.component.mjs +0 -286
  359. package/esm2022/lib/home/home.mobile.component.mjs +0 -131
  360. package/esm2022/lib/home/notifications/notifications.component.mjs +0 -64
  361. package/esm2022/lib/home/outofoffice/outofoffice.component.mjs +0 -37
  362. package/esm2022/lib/home/sign/sign.component.mjs +0 -56
  363. package/esm2022/lib/impersonate/impersonate.component.mjs +0 -77
  364. package/esm2022/lib/mobile.module.mjs +0 -63
  365. package/esm2022/lib/modules/chart.module.mjs +0 -44
  366. package/esm2022/lib/modules/circular-gauge.module.mjs +0 -20
  367. package/esm2022/lib/modules/date.adapter.mjs +0 -23
  368. package/esm2022/lib/modules/datepicker.intl.mjs +0 -41
  369. package/esm2022/lib/modules/dayjs.module.mjs +0 -43
  370. package/esm2022/lib/modules/diagram.module.mjs +0 -43
  371. package/esm2022/lib/modules/gantt.module.mjs +0 -22
  372. package/esm2022/lib/modules/grid.module.mjs +0 -26
  373. package/esm2022/lib/modules/linear-gauge.module.mjs +0 -17
  374. package/esm2022/lib/modules/material.module.mjs +0 -182
  375. package/esm2022/lib/modules/paginator.intl.mjs +0 -21
  376. package/esm2022/lib/modules/pivot.module.mjs +0 -24
  377. package/esm2022/lib/modules/schedule.module.mjs +0 -24
  378. package/esm2022/lib/modules/spreadsheet.module.mjs +0 -28
  379. package/esm2022/lib/modules/stepper.intl.mjs +0 -17
  380. package/esm2022/lib/modules/texteditor.module.mjs +0 -26
  381. package/esm2022/lib/notifications/filter.component.mjs +0 -24
  382. package/esm2022/lib/notifications/notifications-table.component.mjs +0 -105
  383. package/esm2022/lib/notifications/notifications.component-base.mjs +0 -50
  384. package/esm2022/lib/notifications/notifications.mobile.component.mjs +0 -20
  385. package/esm2022/lib/notifications/notifications.pane.component.mjs +0 -21
  386. package/esm2022/lib/notifications/notifications.service.mjs +0 -78
  387. package/esm2022/lib/notifications/types/commented.notification.mjs +0 -60
  388. package/esm2022/lib/notifications/types/cube-anomaly.notification.mjs +0 -58
  389. package/esm2022/lib/notifications/types/escalated.notification.mjs +0 -33
  390. package/esm2022/lib/notifications/types/invite.notification.mjs +0 -45
  391. package/esm2022/lib/notifications/types/liked.notification.mjs +0 -58
  392. package/esm2022/lib/notifications/types/long-running-task.notification.mjs +0 -31
  393. package/esm2022/lib/notifications/types/notification-base.mjs +0 -40
  394. package/esm2022/lib/notifications/types/nudge.notification.mjs +0 -31
  395. package/esm2022/lib/notifications/types/state-changed.notification.mjs +0 -30
  396. package/esm2022/lib/notifications/types/tagged.notification.mjs +0 -43
  397. package/esm2022/lib/notifications/types/text.notification.mjs +0 -23
  398. package/esm2022/lib/notifications/types/upcoming-event.notification.mjs +0 -36
  399. package/esm2022/lib/options/options.component.mjs +0 -308
  400. package/esm2022/lib/options/options.desktop.component.mjs +0 -26
  401. package/esm2022/lib/options/options.mobile.component.mjs +0 -23
  402. package/esm2022/lib/reports/arguments-component.mjs +0 -81
  403. package/esm2022/lib/reports/cube/documents.component.mjs +0 -38
  404. package/esm2022/lib/reports/cube/grid-documents.component.mjs +0 -72
  405. package/esm2022/lib/reports/cube/performance-hilo.component.mjs +0 -260
  406. package/esm2022/lib/reports/cube/performance-wind.component.mjs +0 -269
  407. package/esm2022/lib/reports/cube/table-documents.component.mjs +0 -57
  408. package/esm2022/lib/reports/cube/usage-args.component.mjs +0 -62
  409. package/esm2022/lib/reports/cube/usage-base.mjs +0 -79
  410. package/esm2022/lib/reports/cube/usage-chart.component.mjs +0 -354
  411. package/esm2022/lib/reports/cube/usage-pivot.component.mjs +0 -257
  412. package/esm2022/lib/reports/cube/usage.component.mjs +0 -40
  413. package/esm2022/lib/reports/report-ref.mjs +0 -38
  414. package/esm2022/lib/reports/report-viewer.component.mjs +0 -156
  415. package/esm2022/lib/reports/report.mobile.component.mjs +0 -127
  416. package/esm2022/lib/reports/report.pane.component.mjs +0 -109
  417. package/esm2022/lib/reports/reports-menu.component.mjs +0 -24
  418. package/esm2022/lib/reports/substitution/substitution.component.mjs +0 -39
  419. package/esm2022/lib/reports/table/table-view.component.mjs +0 -40
  420. package/esm2022/lib/reports/tasks/tasks.component.mjs +0 -95
  421. package/esm2022/lib/routes.desktop.mjs +0 -209
  422. package/esm2022/lib/routes.mobile.mjs +0 -84
  423. package/esm2022/lib/scheduler/schedule.component.mjs +0 -164
  424. package/esm2022/lib/scheduler/scheduler.mobile.component.mjs +0 -37
  425. package/esm2022/lib/scheduler/scheduler.pane.component.mjs +0 -50
  426. package/esm2022/lib/search/cube.component.mjs +0 -47
  427. package/esm2022/lib/search/declarations.mjs +0 -7
  428. package/esm2022/lib/search/document.component.mjs +0 -41
  429. package/esm2022/lib/search/guide.component.mjs +0 -28
  430. package/esm2022/lib/search/path.component.mjs +0 -44
  431. package/esm2022/lib/search/search.service.mjs +0 -155
  432. package/esm2022/lib/shared.module.mjs +0 -622
  433. package/esm2022/lib/system.module.mjs +0 -562
  434. package/esm2022/lib/views/cube/chart.component.mjs +0 -74
  435. package/esm2022/lib/views/cube/cube-base.mjs +0 -101
  436. package/esm2022/lib/views/cube/explore.component.mjs +0 -85
  437. package/esm2022/lib/views/cube/matrix.component.mjs +0 -101
  438. package/esm2022/lib/views/cube/parallel.component.mjs +0 -53
  439. package/esm2022/lib/views/cube/pivot.component.mjs +0 -50
  440. package/esm2022/lib/views/cube/sum.component.mjs +0 -66
  441. package/esm2022/lib/views/cube/view.component.mjs +0 -101
  442. package/esm2022/lib/views/document-view-ref.mjs +0 -27
  443. package/esm2022/lib/views/timeline/timeline.component.mjs +0 -329
  444. package/esm2022/lib/views/view-item.component.mjs +0 -68
  445. package/esm2022/lib/views/views.component.mjs +0 -32
  446. package/esm2022/lib/views/views.mobile.component.mjs +0 -21
  447. package/esm2022/lib/views/views.pane.component.mjs +0 -29
  448. package/esm2022/public-api.mjs +0 -182
@@ -1,156 +0,0 @@
1
- import { Component, Inject, Injector } from "@angular/core";
2
- import { Validators } from "@angular/forms";
3
- import { debounceTime, Subject, takeUntil } from "rxjs";
4
- import { DesignerTypeElementComponent } from "../designer.base";
5
- import { DesignerRef, localizeString } from "../declarations";
6
- import { FormInviteDialog } from "./form-invite.dialog";
7
- import { OpenPolicy } from "../../../core/configuration";
8
- import { Internationalization } from "@syncfusion/ej2-base";
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@angular/forms";
11
- import * as i2 from "../../../core/slots/router.service";
12
- import * as i3 from "../../system.service";
13
- import * as i4 from "../../../core/session.service";
14
- import * as i5 from "../../../core/translate.service";
15
- import * as i6 from "@syncfusion/ej2-angular-charts";
16
- import * as i7 from "@angular/cdk/drag-drop";
17
- import * as i8 from "@angular/material/core";
18
- import * as i9 from "@angular/material/form-field";
19
- import * as i10 from "@angular/material/select";
20
- import * as i11 from "@angular/material/button";
21
- import * as i12 from "@angular/material/input";
22
- import * as i13 from "@angular/material/icon";
23
- import * as i14 from "@angular/material/menu";
24
- import * as i15 from "../../../core/popup/tooltip.directive";
25
- import * as i16 from "../../core/localized-string.component";
26
- import * as i17 from "../designer-privileges.component";
27
- import * as i18 from "../designer-element.component";
28
- import * as i19 from "../../../core/pipes/localized-string.pipe";
29
- import * as i20 from "../../../core/pipes/translate.pipe";
30
- import * as i21 from "../declarations";
31
- export class FormDesignComponent extends DesignerTypeElementComponent {
32
- constructor(fb, _router, _service, _session, _injector, _translate, element, ref) {
33
- super(fb, element, ref);
34
- this._router = _router;
35
- this._service = _service;
36
- this._session = _session;
37
- this._injector = _injector;
38
- this._translate = _translate;
39
- this.rules = this._fb.array([]);
40
- this.format = this._fb.group({
41
- prefix: this._fb.control(null),
42
- suffix: this._fb.control(null),
43
- digits: this._fb.control(null)
44
- });
45
- this.form = this._fb.group({
46
- rules: this.rules,
47
- guide: null,
48
- format: this._fb.control(null),
49
- group: null,
50
- description: null,
51
- cubes: null
52
- });
53
- this.theme = this._session.theme.dark ? 'Material3Dark' : 'Material3';
54
- this.axisSettings = {
55
- lineSettings: {
56
- opacity: .5,
57
- width: .5
58
- },
59
- };
60
- this.markerSettings = {
61
- visible: ['None'],
62
- size: 1.5,
63
- fill: this._session.getAccent(),
64
- };
65
- this.tooltipSettings = {
66
- visible: true,
67
- format: '${date}',
68
- trackLineSettings: {
69
- visible: true
70
- }
71
- };
72
- this.primary = this._session.getPrimery();
73
- this.enableRtl = this._session.inverse;
74
- this._intl = new Internationalization();
75
- this._destroy = new Subject();
76
- this.locale = _session.language;
77
- this._session.themeChange.pipe(takeUntil(this._destroy)).
78
- subscribe(t => {
79
- this.theme = t.dark ? 'Material3Dark' : 'Material3';
80
- this.primary = this._session.getPrimery();
81
- });
82
- }
83
- ngOnInit() {
84
- if (this.mode === 'widget')
85
- this._service.range(this.model.name).subscribe(r =>
86
- //new Sparkline({
87
- // dataLabelRendering: this.dataLabelRendering.bind(this)
88
- //}, this.usage.nativeElement)
89
- this.usage = r);
90
- else {
91
- this.model.rules?.
92
- forEach(r => this.rules.push(this.newRule(r), { emitEvent: false }));
93
- const { format } = this.model;
94
- if (format) {
95
- const index1 = format.indexOf('{'), index2 = format.lastIndexOf('}'), index3 = format.indexOf(':', index1);
96
- this.format.patchValue({
97
- prefix: index1 > 0 ? format.substring(0, index1) : null,
98
- digits: index2 > index1 + 2 && index3 ? parseInt(format.substring(index3 + 2, index2)) : null,
99
- suffix: index2 < format.length ? format.substring(index2 + 1) : null
100
- });
101
- }
102
- this.format.valueChanges.pipe(debounceTime(150)).subscribe(f => {
103
- let format = f.prefix || this.model.name.charAt(0);
104
- if (f.digits)
105
- format += `{0:D${f.digits}}`;
106
- if (f.suffix)
107
- format += f.suffix;
108
- this.form.controls.format.setValue(format);
109
- this.form.markAsDirty();
110
- });
111
- this.model.resourceType && this.disable('group', 'description');
112
- this._ref.unlock().subscribe(() => this.enable('group', 'description'));
113
- this.guides = this._ref.designer.guides;
114
- this.cubes = this._ref.designer.cubes;
115
- }
116
- }
117
- tooltipInitialize(evt) {
118
- evt.text = [this._intl.formatDate(this._intl.parseDate(evt.text[0], { format: 'EEE MMM dd yyyy' }))];
119
- }
120
- newRule(rule) {
121
- const name = this._fb.control(rule?.name, Validators.required), title = this._fb.control(rule?.title);
122
- !rule && title.valueChanges.subscribe(v => v && name.setValue(v));
123
- return this._fb.group({
124
- name,
125
- title,
126
- roles: rule?.roles,
127
- rule: rule?.rule,
128
- });
129
- }
130
- invite() {
131
- return this._router.navigate(FormInviteDialog, {
132
- policy: OpenPolicy.Dialog,
133
- icon: this.model.icon,
134
- title: localizeString(this.model.title),
135
- group: this._translate.get('Invite'),
136
- injector: Injector.create({ providers: [], parent: this._injector })
137
- });
138
- }
139
- diagram() {
140
- this._router.navigate(['admin/forms', this.model.name]);
141
- }
142
- ngOnDestroy() {
143
- this._destroy.next();
144
- this._destroy.complete();
145
- }
146
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: FormDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.PanesRouter }, { token: i3.SystemService }, { token: i4.SessionService }, { token: i0.Injector }, { token: i5.TranslateService }, { token: i0.ElementRef }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component }); }
147
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.5", type: FormDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\" [icon]=\"true\" [context]=\"context\">\r\n <ng-template bizdocContent>\r\n @if (usage) {\r\n <ejs-sparkline width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"usage\"\r\n xName=\"date\"\r\n yName=\"count\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [locale]=\"locale\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n (tooltipInitialize)=\"tooltipInitialize($event)\"\r\n [enableRtl]=\"enableRtl\">\r\n </ejs-sparkline>\r\n }\r\n <div class=\"row\">\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Workflow'|translate\" [disabled]=\"model.draft\"><mat-icon>schema</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"options\" [disabled]=\"model.draft\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #options>\r\n <button mat-menu-item (click)=\"invite()\">{{'Invite'|l18n}}</button>\r\n </mat-menu>\r\n </div>\r\n </ng-template>\r\n <!--edit-->\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n <div class=\"row flex\" [formGroup]=\"format\">\r\n <mat-form-field>\r\n <mat-label>{{'Prefix'|translate}}</mat-label>\r\n <input matInput formControlName=\"prefix\" />\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Digits'|translate}}</mat-label>\r\n <input matInput formControlName=\"digits\" maxlength=\"2\" />\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field>\r\n <mat-label>{{'Suffix'|translate}}</mat-label>\r\n <input matInput formControlName=\"suffix\" />\r\n </mat-form-field>\r\n </div>\r\n <bizdoc-localized-string formControlName=\"group\" [placeholder]=\"'Group'|translate\"></bizdoc-localized-string>\r\n <bizdoc-localized-string formControlName=\"description\" [placeholder]=\"'Description'|translate\"></bizdoc-localized-string>\r\n @if (guides.length) {\r\n <mat-form-field>\r\n <mat-label>{{'Guide'|translate}}</mat-label>\r\n <mat-select formControlName=\"guide\">\r\n <mat-option>{{'None'|translate}}</mat-option>\r\n @for (g of guides; track g) {\r\n <mat-option [value]=\"g.name\">{{g.title |localizedString}}</mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n }\r\n @if (cubes.length) {\r\n <mat-form-field>\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cubes\" multiple>\r\n @for (c of cubes; track c) {\r\n <mat-option [value]=\"c.name\">{{c.title |localizedString}}</mat-option>\r\n }\r\n </mat-select>\r\n <mat-hint>{{'FormCubeHelp'|translate}}</mat-hint>\r\n </mat-form-field>\r\n }\r\n <!--Rules-->\r\n <h2 class=\"mat-h2 row\">\r\n {{'Rules'|translate}}\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"add(rules, newRule(), 'Rule', 'rule')\" [bizdocTooltip]=\"'Add'|translate\" type=\"button\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <table formArrayName=\"rules\" class=\"mat-mdc-table\" cdkDropList (cdkDropListDropped)=\"drop($event, rules)\">\r\n @for (r of rules.controls; track r; let index = $index) {\r\n <tr class=\"mat-mdc-row\" [formGroup]=\"r\" cdkDrag>\r\n <td class=\"mat-mdc-cell\">\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n </td>\r\n <td class=\"mat-mdc-cell flex\" width=\"99%\">\r\n {{r.controls.title.value}}\r\n </td>\r\n <td class=\"mat-mdc-cell\" style=\"white-space: pre;\">\r\n <button mat-icon-button (click)=\"edit(r, 'Rule', 'rule')\" [bizdocTooltip]=\"'Edit'|translate\" type=\"button\"><mat-icon>edit</mat-icon></button>\r\n <button mat-icon-button (click)=\"rules.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\" type=\"button\"><mat-icon>delete</mat-icon></button>\r\n </td>\r\n </tr>\r\n }\r\n </table>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template bizdocCustomContent=\"rule\" let-form=\"form\">\r\n <ng-container [formGroup]=\"form\">\r\n <div class=\"row\">\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n @if (form.controls.title.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Title'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n @if (form.controls.name.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Name'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <bizdoc-designer-privileges [form]=\"form\"></bizdoc-designer-privileges>\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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: "directive", type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { 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: "directive", type: i7.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i7.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i7.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i9.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9.MatLabel, selector: "mat-label" }, { kind: "directive", type: i9.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i9.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i10.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i11.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i13.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i14.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i14.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i14.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i15.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i16.LocalizedStringComponent, selector: "bizdoc-localized-string", inputs: ["class", "floatLabel", "value", "placeholder", "required", "disabled", "maxlength"] }, { kind: "component", type: i17.DesignerPrivilegesComponent, selector: "bizdoc-designer-privileges", inputs: ["form"] }, { kind: "directive", type: i18.CustomContentDirective, selector: "[bizdocCustomContent]", inputs: ["bizdocCustomContent"] }, { kind: "directive", type: i18.EditContentDirective, selector: "[bizdocEditContent]" }, { kind: "directive", type: i18.WidgetContentDirective, selector: "[bizdocContent]" }, { kind: "component", type: i18.DesignerItemComponent, selector: "bizdoc-designer-element", inputs: ["privileges", "icon", "form", "context"], outputs: ["save", "continue"] }, { kind: "pipe", type: i19.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i20.L18nPipe, name: "l18n" }, { kind: "pipe", type: i20.TranslatePipe, name: "translate" }] }); }
148
- }
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: FormDesignComponent, decorators: [{
150
- type: Component,
151
- args: [{ template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\" [icon]=\"true\" [context]=\"context\">\r\n <ng-template bizdocContent>\r\n @if (usage) {\r\n <ejs-sparkline width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"usage\"\r\n xName=\"date\"\r\n yName=\"count\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [locale]=\"locale\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n (tooltipInitialize)=\"tooltipInitialize($event)\"\r\n [enableRtl]=\"enableRtl\">\r\n </ejs-sparkline>\r\n }\r\n <div class=\"row\">\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Workflow'|translate\" [disabled]=\"model.draft\"><mat-icon>schema</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"options\" [disabled]=\"model.draft\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #options>\r\n <button mat-menu-item (click)=\"invite()\">{{'Invite'|l18n}}</button>\r\n </mat-menu>\r\n </div>\r\n </ng-template>\r\n <!--edit-->\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n <div class=\"row flex\" [formGroup]=\"format\">\r\n <mat-form-field>\r\n <mat-label>{{'Prefix'|translate}}</mat-label>\r\n <input matInput formControlName=\"prefix\" />\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Digits'|translate}}</mat-label>\r\n <input matInput formControlName=\"digits\" maxlength=\"2\" />\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field>\r\n <mat-label>{{'Suffix'|translate}}</mat-label>\r\n <input matInput formControlName=\"suffix\" />\r\n </mat-form-field>\r\n </div>\r\n <bizdoc-localized-string formControlName=\"group\" [placeholder]=\"'Group'|translate\"></bizdoc-localized-string>\r\n <bizdoc-localized-string formControlName=\"description\" [placeholder]=\"'Description'|translate\"></bizdoc-localized-string>\r\n @if (guides.length) {\r\n <mat-form-field>\r\n <mat-label>{{'Guide'|translate}}</mat-label>\r\n <mat-select formControlName=\"guide\">\r\n <mat-option>{{'None'|translate}}</mat-option>\r\n @for (g of guides; track g) {\r\n <mat-option [value]=\"g.name\">{{g.title |localizedString}}</mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n }\r\n @if (cubes.length) {\r\n <mat-form-field>\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cubes\" multiple>\r\n @for (c of cubes; track c) {\r\n <mat-option [value]=\"c.name\">{{c.title |localizedString}}</mat-option>\r\n }\r\n </mat-select>\r\n <mat-hint>{{'FormCubeHelp'|translate}}</mat-hint>\r\n </mat-form-field>\r\n }\r\n <!--Rules-->\r\n <h2 class=\"mat-h2 row\">\r\n {{'Rules'|translate}}\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"add(rules, newRule(), 'Rule', 'rule')\" [bizdocTooltip]=\"'Add'|translate\" type=\"button\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <table formArrayName=\"rules\" class=\"mat-mdc-table\" cdkDropList (cdkDropListDropped)=\"drop($event, rules)\">\r\n @for (r of rules.controls; track r; let index = $index) {\r\n <tr class=\"mat-mdc-row\" [formGroup]=\"r\" cdkDrag>\r\n <td class=\"mat-mdc-cell\">\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n </td>\r\n <td class=\"mat-mdc-cell flex\" width=\"99%\">\r\n {{r.controls.title.value}}\r\n </td>\r\n <td class=\"mat-mdc-cell\" style=\"white-space: pre;\">\r\n <button mat-icon-button (click)=\"edit(r, 'Rule', 'rule')\" [bizdocTooltip]=\"'Edit'|translate\" type=\"button\"><mat-icon>edit</mat-icon></button>\r\n <button mat-icon-button (click)=\"rules.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\" type=\"button\"><mat-icon>delete</mat-icon></button>\r\n </td>\r\n </tr>\r\n }\r\n </table>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template bizdocCustomContent=\"rule\" let-form=\"form\">\r\n <ng-container [formGroup]=\"form\">\r\n <div class=\"row\">\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n @if (form.controls.title.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Title'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n &nbsp;\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n @if (form.controls.name.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Name'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <bizdoc-designer-privileges [form]=\"form\"></bizdoc-designer-privileges>\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n" }]
152
- }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.PanesRouter }, { type: i3.SystemService }, { type: i4.SessionService }, { type: i0.Injector }, { type: i5.TranslateService }, { type: i0.ElementRef }, { type: i21.DesignerRef, decorators: [{
153
- type: Inject,
154
- args: [DesignerRef]
155
- }] }] });
156
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3NyYy9saW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aXZpbGVnZXMgW2Zvcm1dPVwiZm9ybVwiPjwvYml6ZG9jLWRlc2lnbmVyLXByaXZpbGVnZXM+XHJcbiAgICA8L25nLWNvbnRhaW5lcj5cclxuICA8L25nLXRlbXBsYXRlPlxyXG48L2JpemRvYy1kZXNpZ25lci1lbGVtZW50PlxyXG4iXX0=
@@ -1,53 +0,0 @@
1
- import { Component } from "@angular/core";
2
- import { DesignerTypeElementComponent } from "../designer.base";
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/forms";
5
- import * as i2 from "@angular/cdk/drag-drop";
6
- import * as i3 from "@angular/material/core";
7
- import * as i4 from "@angular/material/form-field";
8
- import * as i5 from "@angular/material/select";
9
- import * as i6 from "@angular/material/button";
10
- import * as i7 from "@angular/material/checkbox";
11
- import * as i8 from "@angular/material/input";
12
- import * as i9 from "@angular/material/icon";
13
- import * as i10 from "../../../core/popup/tooltip.directive";
14
- import * as i11 from "../designer-privileges.component";
15
- import * as i12 from "../designer-element.component";
16
- import * as i13 from "../../../core/pipes/translate.pipe";
17
- export class GuideDesignComponent extends DesignerTypeElementComponent {
18
- constructor() {
19
- super(...arguments);
20
- this.steps = this._fb.array([]);
21
- this.form = this._fb.group({
22
- mode: null,
23
- steps: this.steps
24
- });
25
- }
26
- ngOnInit() {
27
- if (!this.model.steps)
28
- this.model.steps = [];
29
- else if (this.mode !== 'widget')
30
- this.model.steps.forEach(s => this.steps.push(this.newStep(s), { emitEvent: false }));
31
- }
32
- newStep(step) {
33
- return this._fb.group({
34
- content: step?.content,
35
- title: step?.title,
36
- selector: step?.selector,
37
- position: step?.position,
38
- navigate: step?.navigate,
39
- execute: step?.execute,
40
- privileges: this._fb.group({
41
- rule: null,
42
- roles: []
43
- })
44
- });
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: GuideDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.5", type: GuideDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\"\r\n [context]=\"context\">\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n <h2 class=\"mat-h2 row\">\r\n {{'Steps'|translate}}\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"add(steps, newStep(), 'Step', stepform)\" [bizdocTooltip]=\"'Add'|translate\" type=\"button\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <table formArrayName=\"steps\" class=\"mat-mdc-table\" cdkDropList (cdkDropListDropped)=\"drop($event, steps)\">\r\n @for (s of steps.controls; track s; let index = $index) {\r\n <tr class=\"mat-mdc-row\" [formGroup]=\"s\" cdkDrag>\r\n <td class=\"mat-mdc-cell\">\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n </td>\r\n <td class=\"mat-mdc-cell\" width=\"99%\">\r\n {{s.controls.title.value || s.controls.content.value }}\r\n </td>\r\n <td class=\"mat-mdc-cell nowrap\">\r\n <button mat-icon-button (click)=\"edit(s, 'Step', 'step')\" [bizdocTooltip]=\"'Edit'|translate\" type=\"button\"><mat-icon>edit</mat-icon></button>\r\n <button mat-icon-button (click)=\"steps.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\" type=\"button\"><mat-icon>delete</mat-icon></button>\r\n </td>\r\n </tr>\r\n }\r\n </table>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template bizdocCustomContent=\"step\" let-form=\"form\">\r\n <ng-container [formGroup]=\"form\">\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" />\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Content'|translate}}</mat-label>\r\n <input matInput formControlName=\"content\" required />\r\n @if (form.controls.content.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Content'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Selector'|translate}}</mat-label>\r\n <input matInput formControlName=\"selector\" />\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Position'|translate}}</mat-label>\r\n <mat-select formControlName=\"position\">\r\n <mat-option value=\"Above\">{{'Above'|translate}}</mat-option>\r\n <mat-option value=\"Start\">{{'Start'|translate}}</mat-option>\r\n <mat-option value=\"End\">{{'End'|translate}}</mat-option>\r\n <mat-option value=\"Below\">{{'Below'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-checkbox formControlName=\"execute\">{{'Execute'|translate}}</mat-checkbox>\r\n <!--privileges-->\r\n <bizdoc-designer-privileges [form]=\"form.controls.privileges\"></bizdoc-designer-privileges>\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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: "directive", type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i7.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i10.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i11.DesignerPrivilegesComponent, selector: "bizdoc-designer-privileges", inputs: ["form"] }, { kind: "directive", type: i12.CustomContentDirective, selector: "[bizdocCustomContent]", inputs: ["bizdocCustomContent"] }, { kind: "directive", type: i12.EditContentDirective, selector: "[bizdocEditContent]" }, { kind: "component", type: i12.DesignerItemComponent, selector: "bizdoc-designer-element", inputs: ["privileges", "icon", "form", "context"], outputs: ["save", "continue"] }, { kind: "pipe", type: i13.TranslatePipe, name: "translate" }] }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: GuideDesignComponent, decorators: [{
50
- type: Component,
51
- args: [{ template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\"\r\n [context]=\"context\">\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n <h2 class=\"mat-h2 row\">\r\n {{'Steps'|translate}}\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"add(steps, newStep(), 'Step', stepform)\" [bizdocTooltip]=\"'Add'|translate\" type=\"button\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <table formArrayName=\"steps\" class=\"mat-mdc-table\" cdkDropList (cdkDropListDropped)=\"drop($event, steps)\">\r\n @for (s of steps.controls; track s; let index = $index) {\r\n <tr class=\"mat-mdc-row\" [formGroup]=\"s\" cdkDrag>\r\n <td class=\"mat-mdc-cell\">\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n </td>\r\n <td class=\"mat-mdc-cell\" width=\"99%\">\r\n {{s.controls.title.value || s.controls.content.value }}\r\n </td>\r\n <td class=\"mat-mdc-cell nowrap\">\r\n <button mat-icon-button (click)=\"edit(s, 'Step', 'step')\" [bizdocTooltip]=\"'Edit'|translate\" type=\"button\"><mat-icon>edit</mat-icon></button>\r\n <button mat-icon-button (click)=\"steps.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\" type=\"button\"><mat-icon>delete</mat-icon></button>\r\n </td>\r\n </tr>\r\n }\r\n </table>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template bizdocCustomContent=\"step\" let-form=\"form\">\r\n <ng-container [formGroup]=\"form\">\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" />\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Content'|translate}}</mat-label>\r\n <input matInput formControlName=\"content\" required />\r\n @if (form.controls.content.hasError('required')) {\r\n <mat-error [innerHTML]=\"'RequiredErr'|translate:('Content'|translate)\"></mat-error>\r\n }\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Selector'|translate}}</mat-label>\r\n <input matInput formControlName=\"selector\" />\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Position'|translate}}</mat-label>\r\n <mat-select formControlName=\"position\">\r\n <mat-option value=\"Above\">{{'Above'|translate}}</mat-option>\r\n <mat-option value=\"Start\">{{'Start'|translate}}</mat-option>\r\n <mat-option value=\"End\">{{'End'|translate}}</mat-option>\r\n <mat-option value=\"Below\">{{'Below'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-checkbox formControlName=\"execute\">{{'Execute'|translate}}</mat-checkbox>\r\n <!--privileges-->\r\n <bizdoc-designer-privileges [form]=\"form.controls.privileges\"></bizdoc-designer-privileges>\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n" }]
52
- }] });
53
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9zcmMvbGliL2FkbWluL2FyY2hpdGVjdHVyZS9lbGVtZW50cy9ndWlkZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3NyYy9saWIvYWRtaW4vYXJjaGl0ZWN0dXJlL2VsZW1lbnRzL2d1aWRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7Ozs7Ozs7OztBQUdoRSxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsNEJBQTRCO0lBRHRFOztRQUVXLFVBQUssR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUMzQixTQUFJLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUM7WUFDN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gICAgPCEtLXByaXZpbGVnZXMtLT5cclxuICAgICAgPGJpemRvYy1kZXNpZ25lci1wcml2aWxlZ2VzIFtmb3JtXT1cImZvcm0uY29udHJvbHMucHJpdmlsZWdlc1wiPjwvYml6ZG9jLWRlc2lnbmVyLXByaXZpbGVnZXM+XHJcbiAgICA8L25nLWNvbnRhaW5lcj5cclxuICA8L25nLXRlbXBsYXRlPlxyXG48L2JpemRvYy1kZXNpZ25lci1lbGVtZW50PlxyXG4iXX0=
@@ -1,57 +0,0 @@
1
- import { Component, Inject } from "@angular/core";
2
- import { DesignerTypeElementComponent } from "../designer.base";
3
- import { DesignerRef } from "../declarations";
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/forms";
6
- import * as i2 from "../../system.service";
7
- import * as i3 from "../../../core/prompt.service";
8
- import * as i4 from "@angular/material/progress-spinner";
9
- import * as i5 from "@angular/material/button";
10
- import * as i6 from "@angular/material/icon";
11
- import * as i7 from "../../../core/popup/tooltip.directive";
12
- import * as i8 from "../designer-element.component";
13
- import * as i9 from "../../../core/pipes/time-ago.pipe";
14
- import * as i10 from "../../../core/pipes/translate.pipe";
15
- import * as i11 from "../declarations";
16
- export class JobDesignComponent extends DesignerTypeElementComponent {
17
- constructor(fb, _service, _ps, element, ref) {
18
- super(fb, element, ref);
19
- this._service = _service;
20
- this._ps = _ps;
21
- this.form = this._fb.group({});
22
- this.working = false;
23
- }
24
- ngOnInit() {
25
- switch (this.mode) {
26
- case 'widget':
27
- this._service.job(this.model.name).subscribe(r => {
28
- this.jobInfo = r.jobInfo;
29
- });
30
- break;
31
- case 'edit':
32
- break;
33
- }
34
- }
35
- execute() {
36
- this.working = true;
37
- this._service.execute(this.model.name).subscribe({
38
- next: e => {
39
- this.jobInfo = e;
40
- this.working = false;
41
- }, error: () => {
42
- this.working = false;
43
- this._ps.error();
44
- }
45
- });
46
- }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: JobDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SystemService }, { token: i3.PromptService }, { token: i0.ElementRef }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component }); }
48
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.5", type: JobDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\">\r\n <!-- widget -->\r\n <ng-template bizdocContent>\r\n @if (jobInfo) {\r\n <dl>\r\n @if (jobInfo.lastExecution) {\r\n <dt>{{'LastExecution'|translate}}</dt>\r\n <dd>{{jobInfo.lastExecution|amTimeAgo}}</dd>\r\n }\r\n @if (jobInfo.nextExecution) {\r\n <dt>{{'NextExecution'|translate}}</dt>\r\n <dd>{{jobInfo.nextExecution|amTimeAgo}}</dd>\r\n }\r\n @if (jobInfo.lastJobState) {\r\n <dt>{{'LastJobState'|translate}}</dt>\r\n <dd>\r\n @if (jobInfo.error) {\r\n <mat-icon [bizdocTooltip]=\"jobInfo.error\">report</mat-icon>\r\n }\r\n <span class=\"job-state\">{{jobInfo.lastJobState| translate}}</span>\r\n </dd>\r\n }\r\n </dl>\r\n }\r\n <div class=\"row start center\">\r\n <button mat-stroked-button (click)=\"execute()\" [disabled]=\"model.draft || working\">\r\n <span> {{'Execute'|translate}}</span>\r\n </button>\r\n &nbsp;\r\n @if (working) {\r\n <mat-spinner diameter=\"22\"></mat-spinner>\r\n }\r\n </div>\r\n </ng-template>\r\n <!-- edit -->\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n", dependencies: [{ 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.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "directive", type: i8.EditContentDirective, selector: "[bizdocEditContent]" }, { kind: "directive", type: i8.WidgetContentDirective, selector: "[bizdocContent]" }, { kind: "component", type: i8.DesignerItemComponent, selector: "bizdoc-designer-element", inputs: ["privileges", "icon", "form", "context"], outputs: ["save", "continue"] }, { kind: "pipe", type: i9.TimeAgoPipe, name: "amTimeAgo" }, { kind: "pipe", type: i10.TranslatePipe, name: "translate" }] }); }
49
- }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: JobDesignComponent, decorators: [{
51
- type: Component,
52
- args: [{ template: "<bizdoc-designer-element [form]=\"form\" [privileges]=\"true\">\r\n <!-- widget -->\r\n <ng-template bizdocContent>\r\n @if (jobInfo) {\r\n <dl>\r\n @if (jobInfo.lastExecution) {\r\n <dt>{{'LastExecution'|translate}}</dt>\r\n <dd>{{jobInfo.lastExecution|amTimeAgo}}</dd>\r\n }\r\n @if (jobInfo.nextExecution) {\r\n <dt>{{'NextExecution'|translate}}</dt>\r\n <dd>{{jobInfo.nextExecution|amTimeAgo}}</dd>\r\n }\r\n @if (jobInfo.lastJobState) {\r\n <dt>{{'LastJobState'|translate}}</dt>\r\n <dd>\r\n @if (jobInfo.error) {\r\n <mat-icon [bizdocTooltip]=\"jobInfo.error\">report</mat-icon>\r\n }\r\n <span class=\"job-state\">{{jobInfo.lastJobState| translate}}</span>\r\n </dd>\r\n }\r\n </dl>\r\n }\r\n <div class=\"row start center\">\r\n <button mat-stroked-button (click)=\"execute()\" [disabled]=\"model.draft || working\">\r\n <span> {{'Execute'|translate}}</span>\r\n </button>\r\n &nbsp;\r\n @if (working) {\r\n <mat-spinner diameter=\"22\"></mat-spinner>\r\n }\r\n </div>\r\n </ng-template>\r\n <!-- edit -->\r\n <ng-template bizdocEditContent>\r\n <ng-container [formGroup]=\"form\">\r\n </ng-container>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n" }]
53
- }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.SystemService }, { type: i3.PromptService }, { type: i0.ElementRef }, { type: i11.DesignerRef, decorators: [{
54
- type: Inject,
55
- args: [DesignerRef]
56
- }] }] });
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiam9iLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc3JjL2xpYi9hZG1pbi9hcmNoaXRlY3R1cmUvZWxlbWVudHMvam9iLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc3JjL2xpYi9hZG1pbi9hcmNoaXRlY3R1cmUvZWxlbWVudHMvam9iLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsTUFBTSxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBSXRFLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7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