@netgrif/components 6.0.1

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 (725) hide show
  1. package/LICENSE +132 -0
  2. package/README.md +106 -0
  3. package/bundles/netgrif-components.umd.js +4769 -0
  4. package/bundles/netgrif-components.umd.js.map +1 -0
  5. package/bundles/netgrif-components.umd.min.js +16 -0
  6. package/bundles/netgrif-components.umd.min.js.map +1 -0
  7. package/esm2015/lib/admin/admin.module.js +19 -0
  8. package/esm2015/lib/admin/public-api.js +5 -0
  9. package/esm2015/lib/admin/role-assignment/role-assignment.component.js +28 -0
  10. package/esm2015/lib/admin/user-invite/user-invite.component.js +35 -0
  11. package/esm2015/lib/authentication/auth.module.js +15 -0
  12. package/esm2015/lib/authentication/authentication-overlay/authentication-overlay.component.js +35 -0
  13. package/esm2015/lib/authentication/public-api.js +5 -0
  14. package/esm2015/lib/dashboard/cards/barchart-card/barchart-card.component.js +49 -0
  15. package/esm2015/lib/dashboard/cards/count-card/count-card.component.js +22 -0
  16. package/esm2015/lib/dashboard/cards/iframe-card/iframe-card.component.js +23 -0
  17. package/esm2015/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +47 -0
  18. package/esm2015/lib/dashboard/cards/linechart-card/line-chart-card.component.js +59 -0
  19. package/esm2015/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +52 -0
  20. package/esm2015/lib/dashboard/cards/portal-card/portal-card.component.js +47 -0
  21. package/esm2015/lib/dashboard/dashboard-content/dashboard-content.component.js +22 -0
  22. package/esm2015/lib/dashboard/dashboard.module.js +44 -0
  23. package/esm2015/lib/dashboard/public-api.js +12 -0
  24. package/esm2015/lib/data-fields/boolean-field/boolean-field.component.js +28 -0
  25. package/esm2015/lib/data-fields/button-field/button-field.component.js +27 -0
  26. package/esm2015/lib/data-fields/data-field-template/data-field-template.component.js +25 -0
  27. package/esm2015/lib/data-fields/data-fields.module.js +134 -0
  28. package/esm2015/lib/data-fields/date-field/date-field.component.js +30 -0
  29. package/esm2015/lib/data-fields/date-time-field/date-time-field.component.js +30 -0
  30. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +23 -0
  31. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +23 -0
  32. package/esm2015/lib/data-fields/enumeration-field/enumeration-field.component.js +21 -0
  33. package/esm2015/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +16 -0
  34. package/esm2015/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +16 -0
  35. package/esm2015/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +16 -0
  36. package/esm2015/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +22 -0
  37. package/esm2015/lib/data-fields/file-field/file-field.component.js +52 -0
  38. package/esm2015/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +33 -0
  39. package/esm2015/lib/data-fields/file-field-list/file-list-field.component.js +32 -0
  40. package/esm2015/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +42 -0
  41. package/esm2015/lib/data-fields/filter-field/filter-field.component.js +27 -0
  42. package/esm2015/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +16 -0
  43. package/esm2015/lib/data-fields/i18n-field/i18n-field.component.js +21 -0
  44. package/esm2015/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +22 -0
  45. package/esm2015/lib/data-fields/multichoice-field/multichoice-field.component.js +21 -0
  46. package/esm2015/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +16 -0
  47. package/esm2015/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +12 -0
  48. package/esm2015/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +34 -0
  49. package/esm2015/lib/data-fields/number-field/number-default-field/number-default-field.component.js +22 -0
  50. package/esm2015/lib/data-fields/number-field/number-field.component.js +32 -0
  51. package/esm2015/lib/data-fields/public-api.js +18 -0
  52. package/esm2015/lib/data-fields/required-label/required-label.component.js +20 -0
  53. package/esm2015/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +27 -0
  54. package/esm2015/lib/data-fields/text-field/password-text-field/password-text-field.component.js +26 -0
  55. package/esm2015/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +23 -0
  56. package/esm2015/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +23 -0
  57. package/esm2015/lib/data-fields/text-field/text-field.component.js +21 -0
  58. package/esm2015/lib/data-fields/text-field/textarea-field/textarea-field.component.js +26 -0
  59. package/esm2015/lib/data-fields/user-field/user-field.component.js +32 -0
  60. package/esm2015/lib/forms/email-submission/email-submission-form.component.js +22 -0
  61. package/esm2015/lib/forms/email-submission/email-submission-form.module.js +24 -0
  62. package/esm2015/lib/forms/forgotten-password/forgotten-password-form-component.module.js +22 -0
  63. package/esm2015/lib/forms/forgotten-password/forgotten-password-form.component.js +29 -0
  64. package/esm2015/lib/forms/login/login-form.component.js +25 -0
  65. package/esm2015/lib/forms/login/login-form.module.js +22 -0
  66. package/esm2015/lib/forms/public-api.js +11 -0
  67. package/esm2015/lib/forms/registration/registration-form.component.js +29 -0
  68. package/esm2015/lib/forms/registration/registration-form.module.js +24 -0
  69. package/esm2015/lib/header/header-modes/edit-mode/edit-mode.component.js +26 -0
  70. package/esm2015/lib/header/header-modes/loading-mode/loading-mode.component.js +16 -0
  71. package/esm2015/lib/header/header-modes/search-mode/search-mode.component.js +34 -0
  72. package/esm2015/lib/header/header-modes/sort-mode/sort-mode.component.js +16 -0
  73. package/esm2015/lib/header/header.component.js +36 -0
  74. package/esm2015/lib/header/header.module.js +39 -0
  75. package/esm2015/lib/header/public-api.js +12 -0
  76. package/esm2015/lib/legal/legal-notice/legal-notice.component.js +21 -0
  77. package/esm2015/lib/legal/legal-notice/legal-notice.module.js +17 -0
  78. package/esm2015/lib/legal/public-api.js +5 -0
  79. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +54 -0
  80. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +43 -0
  81. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +67 -0
  82. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +58 -0
  83. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +30 -0
  84. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +2 -0
  85. package/esm2015/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +35 -0
  86. package/esm2015/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +30 -0
  87. package/esm2015/lib/navigation/navigation-drawer/navigation-drawer.component.js +30 -0
  88. package/esm2015/lib/navigation/navigation-rail/navigation-rail.component.js +40 -0
  89. package/esm2015/lib/navigation/navigation-tree/navigation-tree.component.js +42 -0
  90. package/esm2015/lib/navigation/navigation.module.js +81 -0
  91. package/esm2015/lib/navigation/public-api.js +9 -0
  92. package/esm2015/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +16 -0
  93. package/esm2015/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +39 -0
  94. package/esm2015/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +32 -0
  95. package/esm2015/lib/navigation/quick-panel/components/quick-panel.component.js +25 -0
  96. package/esm2015/lib/navigation/quick-panel/public-api.js +9 -0
  97. package/esm2015/lib/navigation/quick-panel/quick-panel.module.js +33 -0
  98. package/esm2015/lib/panel/case-panel/case-panel.component.js +50 -0
  99. package/esm2015/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +25 -0
  100. package/esm2015/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +46 -0
  101. package/esm2015/lib/panel/panel.component.js +22 -0
  102. package/esm2015/lib/panel/panel.module.js +55 -0
  103. package/esm2015/lib/panel/public-api.js +10 -0
  104. package/esm2015/lib/panel/public-workflow-panel/public-workflow-panel.component.js +26 -0
  105. package/esm2015/lib/panel/task-panel/task-panel.component.js +113 -0
  106. package/esm2015/lib/panel/task-panel-list/task-list.component.js +31 -0
  107. package/esm2015/lib/panel/workflow-panel/workflow-panel.component.js +26 -0
  108. package/esm2015/lib/routing/public-api.js +3 -0
  109. package/esm2015/lib/routing/redirect/redirect.component.js +28 -0
  110. package/esm2015/lib/routing/redirect.module.js +12 -0
  111. package/esm2015/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +24 -0
  112. package/esm2015/lib/search/advanced-search/advanced-search.module.js +36 -0
  113. package/esm2015/lib/search/advanced-search/public-api.js +8 -0
  114. package/esm2015/lib/search/advanced-search/search-clause-component/search-clause.component.js +16 -0
  115. package/esm2015/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +20 -0
  116. package/esm2015/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +26 -0
  117. package/esm2015/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +27 -0
  118. package/esm2015/lib/search/fulltext-search-component/fulltext-search.component.js +21 -0
  119. package/esm2015/lib/search/public-api.js +10 -0
  120. package/esm2015/lib/search/search-component/case-search/case-search.component.js +24 -0
  121. package/esm2015/lib/search/search-component/search.component.js +98 -0
  122. package/esm2015/lib/search/search-component/task-search/task-search.component.js +24 -0
  123. package/esm2015/lib/search/search.module.js +36 -0
  124. package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +16 -0
  125. package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector.component.js +45 -0
  126. package/esm2015/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +27 -0
  127. package/esm2015/lib/side-menu/content-components/import-net/import-net.component.js +44 -0
  128. package/esm2015/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +27 -0
  129. package/esm2015/lib/side-menu/content-components/load-filter/load-filter.component.js +54 -0
  130. package/esm2015/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +28 -0
  131. package/esm2015/lib/side-menu/content-components/new-case/new-case.component.js +48 -0
  132. package/esm2015/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +35 -0
  133. package/esm2015/lib/side-menu/content-components/option-selector/option-selector.component.js +22 -0
  134. package/esm2015/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +30 -0
  135. package/esm2015/lib/side-menu/content-components/public-api.js +19 -0
  136. package/esm2015/lib/side-menu/content-components/save-filter/save-filter.component.js +53 -0
  137. package/esm2015/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +26 -0
  138. package/esm2015/lib/side-menu/content-components/side-menu-content-component.module.js +50 -0
  139. package/esm2015/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +36 -0
  140. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +19 -0
  141. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +25 -0
  142. package/esm2015/lib/side-menu/content-components/user-assign/user-assign.component.js +29 -0
  143. package/esm2015/lib/side-menu/public-api.js +7 -0
  144. package/esm2015/lib/side-menu/side-menu-container/side-menu-container.component.js +22 -0
  145. package/esm2015/lib/side-menu/side-menu.module.js +27 -0
  146. package/esm2015/lib/tabs/public-api.js +4 -0
  147. package/esm2015/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +22 -0
  148. package/esm2015/lib/tabs/tab-view/tab-view.component.js +32 -0
  149. package/esm2015/lib/tabs/tabs.module.js +28 -0
  150. package/esm2015/lib/task-content/field-component-resolver/field-component-resolver.component.js +21 -0
  151. package/esm2015/lib/task-content/public-api.js +6 -0
  152. package/esm2015/lib/task-content/task-content/task-content.component.js +36 -0
  153. package/esm2015/lib/task-content/task-content.module.js +32 -0
  154. package/esm2015/lib/toolbar/public-api.js +3 -0
  155. package/esm2015/lib/toolbar/toolbar.component.js +26 -0
  156. package/esm2015/lib/toolbar/toolbar.module.js +22 -0
  157. package/esm2015/lib/user/profile/profile.component.js +22 -0
  158. package/esm2015/lib/user/profile/profile.module.js +20 -0
  159. package/esm2015/lib/user/public-api.js +7 -0
  160. package/esm2015/lib/user/user-card/user-card.component.js +22 -0
  161. package/esm2015/lib/user/user.module.js +22 -0
  162. package/esm2015/lib/view/case-view/case-view.module.js +22 -0
  163. package/esm2015/lib/view/case-view/components/case-list/case-list.component.js +31 -0
  164. package/esm2015/lib/view/public-api.js +10 -0
  165. package/esm2015/lib/view/tree-case-view/tree-case-view.module.js +38 -0
  166. package/esm2015/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +22 -0
  167. package/esm2015/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +22 -0
  168. package/esm2015/lib/view/tree-case-view/tree-component/tree.component.js +23 -0
  169. package/esm2015/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +55 -0
  170. package/esm2015/lib/view/workflow-view/workflow-view.component.js +36 -0
  171. package/esm2015/lib/view/workflow-view.module.js +36 -0
  172. package/esm2015/netgrif-components.js +43 -0
  173. package/esm2015/public-api.js +22 -0
  174. package/esm5/lib/admin/admin.module.js +23 -0
  175. package/esm5/lib/admin/public-api.js +5 -0
  176. package/esm5/lib/admin/role-assignment/role-assignment.component.js +33 -0
  177. package/esm5/lib/admin/user-invite/user-invite.component.js +40 -0
  178. package/esm5/lib/authentication/auth.module.js +19 -0
  179. package/esm5/lib/authentication/authentication-overlay/authentication-overlay.component.js +40 -0
  180. package/esm5/lib/authentication/public-api.js +5 -0
  181. package/esm5/lib/dashboard/cards/barchart-card/barchart-card.component.js +55 -0
  182. package/esm5/lib/dashboard/cards/count-card/count-card.component.js +27 -0
  183. package/esm5/lib/dashboard/cards/iframe-card/iframe-card.component.js +28 -0
  184. package/esm5/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +52 -0
  185. package/esm5/lib/dashboard/cards/linechart-card/line-chart-card.component.js +65 -0
  186. package/esm5/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +58 -0
  187. package/esm5/lib/dashboard/cards/portal-card/portal-card.component.js +52 -0
  188. package/esm5/lib/dashboard/dashboard-content/dashboard-content.component.js +27 -0
  189. package/esm5/lib/dashboard/dashboard.module.js +48 -0
  190. package/esm5/lib/dashboard/public-api.js +12 -0
  191. package/esm5/lib/data-fields/boolean-field/boolean-field.component.js +33 -0
  192. package/esm5/lib/data-fields/button-field/button-field.component.js +32 -0
  193. package/esm5/lib/data-fields/data-field-template/data-field-template.component.js +30 -0
  194. package/esm5/lib/data-fields/data-fields.module.js +138 -0
  195. package/esm5/lib/data-fields/date-field/date-field.component.js +34 -0
  196. package/esm5/lib/data-fields/date-time-field/date-time-field.component.js +34 -0
  197. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +28 -0
  198. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +28 -0
  199. package/esm5/lib/data-fields/enumeration-field/enumeration-field.component.js +25 -0
  200. package/esm5/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +20 -0
  201. package/esm5/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +20 -0
  202. package/esm5/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +20 -0
  203. package/esm5/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +27 -0
  204. package/esm5/lib/data-fields/file-field/file-field.component.js +57 -0
  205. package/esm5/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +36 -0
  206. package/esm5/lib/data-fields/file-field-list/file-list-field.component.js +36 -0
  207. package/esm5/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +46 -0
  208. package/esm5/lib/data-fields/filter-field/filter-field.component.js +31 -0
  209. package/esm5/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +20 -0
  210. package/esm5/lib/data-fields/i18n-field/i18n-field.component.js +25 -0
  211. package/esm5/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +26 -0
  212. package/esm5/lib/data-fields/multichoice-field/multichoice-field.component.js +25 -0
  213. package/esm5/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +20 -0
  214. package/esm5/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +19 -0
  215. package/esm5/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +38 -0
  216. package/esm5/lib/data-fields/number-field/number-default-field/number-default-field.component.js +26 -0
  217. package/esm5/lib/data-fields/number-field/number-field.component.js +36 -0
  218. package/esm5/lib/data-fields/public-api.js +18 -0
  219. package/esm5/lib/data-fields/required-label/required-label.component.js +22 -0
  220. package/esm5/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +32 -0
  221. package/esm5/lib/data-fields/text-field/password-text-field/password-text-field.component.js +31 -0
  222. package/esm5/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +28 -0
  223. package/esm5/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +28 -0
  224. package/esm5/lib/data-fields/text-field/text-field.component.js +25 -0
  225. package/esm5/lib/data-fields/text-field/textarea-field/textarea-field.component.js +31 -0
  226. package/esm5/lib/data-fields/user-field/user-field.component.js +36 -0
  227. package/esm5/lib/forms/email-submission/email-submission-form.component.js +26 -0
  228. package/esm5/lib/forms/email-submission/email-submission-form.module.js +28 -0
  229. package/esm5/lib/forms/forgotten-password/forgotten-password-form-component.module.js +26 -0
  230. package/esm5/lib/forms/forgotten-password/forgotten-password-form.component.js +33 -0
  231. package/esm5/lib/forms/login/login-form.component.js +30 -0
  232. package/esm5/lib/forms/login/login-form.module.js +26 -0
  233. package/esm5/lib/forms/public-api.js +11 -0
  234. package/esm5/lib/forms/registration/registration-form.component.js +33 -0
  235. package/esm5/lib/forms/registration/registration-form.module.js +28 -0
  236. package/esm5/lib/header/header-modes/edit-mode/edit-mode.component.js +31 -0
  237. package/esm5/lib/header/header-modes/loading-mode/loading-mode.component.js +20 -0
  238. package/esm5/lib/header/header-modes/search-mode/search-mode.component.js +39 -0
  239. package/esm5/lib/header/header-modes/sort-mode/sort-mode.component.js +20 -0
  240. package/esm5/lib/header/header.component.js +41 -0
  241. package/esm5/lib/header/header.module.js +43 -0
  242. package/esm5/lib/header/public-api.js +12 -0
  243. package/esm5/lib/legal/legal-notice/legal-notice.component.js +25 -0
  244. package/esm5/lib/legal/legal-notice/legal-notice.module.js +21 -0
  245. package/esm5/lib/legal/public-api.js +5 -0
  246. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +58 -0
  247. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +45 -0
  248. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +71 -0
  249. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +62 -0
  250. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +30 -0
  251. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +2 -0
  252. package/esm5/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +39 -0
  253. package/esm5/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +34 -0
  254. package/esm5/lib/navigation/navigation-drawer/navigation-drawer.component.js +35 -0
  255. package/esm5/lib/navigation/navigation-rail/navigation-rail.component.js +44 -0
  256. package/esm5/lib/navigation/navigation-tree/navigation-tree.component.js +46 -0
  257. package/esm5/lib/navigation/navigation.module.js +85 -0
  258. package/esm5/lib/navigation/public-api.js +9 -0
  259. package/esm5/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +20 -0
  260. package/esm5/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +44 -0
  261. package/esm5/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +37 -0
  262. package/esm5/lib/navigation/quick-panel/components/quick-panel.component.js +30 -0
  263. package/esm5/lib/navigation/quick-panel/public-api.js +9 -0
  264. package/esm5/lib/navigation/quick-panel/quick-panel.module.js +37 -0
  265. package/esm5/lib/panel/case-panel/case-panel.component.js +55 -0
  266. package/esm5/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +29 -0
  267. package/esm5/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +50 -0
  268. package/esm5/lib/panel/panel.component.js +26 -0
  269. package/esm5/lib/panel/panel.module.js +59 -0
  270. package/esm5/lib/panel/public-api.js +10 -0
  271. package/esm5/lib/panel/public-workflow-panel/public-workflow-panel.component.js +30 -0
  272. package/esm5/lib/panel/task-panel/task-panel.component.js +118 -0
  273. package/esm5/lib/panel/task-panel-list/task-list.component.js +36 -0
  274. package/esm5/lib/panel/workflow-panel/workflow-panel.component.js +30 -0
  275. package/esm5/lib/routing/public-api.js +3 -0
  276. package/esm5/lib/routing/redirect/redirect.component.js +30 -0
  277. package/esm5/lib/routing/redirect.module.js +16 -0
  278. package/esm5/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +28 -0
  279. package/esm5/lib/search/advanced-search/advanced-search.module.js +40 -0
  280. package/esm5/lib/search/advanced-search/public-api.js +8 -0
  281. package/esm5/lib/search/advanced-search/search-clause-component/search-clause.component.js +20 -0
  282. package/esm5/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +25 -0
  283. package/esm5/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +31 -0
  284. package/esm5/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +31 -0
  285. package/esm5/lib/search/fulltext-search-component/fulltext-search.component.js +25 -0
  286. package/esm5/lib/search/public-api.js +10 -0
  287. package/esm5/lib/search/search-component/case-search/case-search.component.js +28 -0
  288. package/esm5/lib/search/search-component/search.component.js +105 -0
  289. package/esm5/lib/search/search-component/task-search/task-search.component.js +28 -0
  290. package/esm5/lib/search/search.module.js +40 -0
  291. package/esm5/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +23 -0
  292. package/esm5/lib/side-menu/content-components/filter-selector/filter-selector.component.js +50 -0
  293. package/esm5/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +31 -0
  294. package/esm5/lib/side-menu/content-components/import-net/import-net.component.js +49 -0
  295. package/esm5/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +31 -0
  296. package/esm5/lib/side-menu/content-components/load-filter/load-filter.component.js +58 -0
  297. package/esm5/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +32 -0
  298. package/esm5/lib/side-menu/content-components/new-case/new-case.component.js +53 -0
  299. package/esm5/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +39 -0
  300. package/esm5/lib/side-menu/content-components/option-selector/option-selector.component.js +27 -0
  301. package/esm5/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +34 -0
  302. package/esm5/lib/side-menu/content-components/public-api.js +19 -0
  303. package/esm5/lib/side-menu/content-components/save-filter/save-filter.component.js +57 -0
  304. package/esm5/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +30 -0
  305. package/esm5/lib/side-menu/content-components/side-menu-content-component.module.js +54 -0
  306. package/esm5/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +40 -0
  307. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +23 -0
  308. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +30 -0
  309. package/esm5/lib/side-menu/content-components/user-assign/user-assign.component.js +34 -0
  310. package/esm5/lib/side-menu/public-api.js +7 -0
  311. package/esm5/lib/side-menu/side-menu-container/side-menu-container.component.js +27 -0
  312. package/esm5/lib/side-menu/side-menu.module.js +31 -0
  313. package/esm5/lib/tabs/public-api.js +4 -0
  314. package/esm5/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +26 -0
  315. package/esm5/lib/tabs/tab-view/tab-view.component.js +37 -0
  316. package/esm5/lib/tabs/tabs.module.js +32 -0
  317. package/esm5/lib/task-content/field-component-resolver/field-component-resolver.component.js +25 -0
  318. package/esm5/lib/task-content/public-api.js +6 -0
  319. package/esm5/lib/task-content/task-content/task-content.component.js +41 -0
  320. package/esm5/lib/task-content/task-content.module.js +36 -0
  321. package/esm5/lib/toolbar/public-api.js +3 -0
  322. package/esm5/lib/toolbar/toolbar.component.js +31 -0
  323. package/esm5/lib/toolbar/toolbar.module.js +26 -0
  324. package/esm5/lib/user/profile/profile.component.js +27 -0
  325. package/esm5/lib/user/profile/profile.module.js +24 -0
  326. package/esm5/lib/user/public-api.js +7 -0
  327. package/esm5/lib/user/user-card/user-card.component.js +27 -0
  328. package/esm5/lib/user/user.module.js +26 -0
  329. package/esm5/lib/view/case-view/case-view.module.js +26 -0
  330. package/esm5/lib/view/case-view/components/case-list/case-list.component.js +36 -0
  331. package/esm5/lib/view/public-api.js +10 -0
  332. package/esm5/lib/view/tree-case-view/tree-case-view.module.js +42 -0
  333. package/esm5/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +27 -0
  334. package/esm5/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +27 -0
  335. package/esm5/lib/view/tree-case-view/tree-component/tree.component.js +28 -0
  336. package/esm5/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +60 -0
  337. package/esm5/lib/view/workflow-view/workflow-view.component.js +41 -0
  338. package/esm5/lib/view/workflow-view.module.js +40 -0
  339. package/esm5/netgrif-components.js +43 -0
  340. package/esm5/public-api.js +22 -0
  341. package/fesm2015/netgrif-components.js +4034 -0
  342. package/fesm2015/netgrif-components.js.map +1 -0
  343. package/fesm5/netgrif-components.js +4419 -0
  344. package/fesm5/netgrif-components.js.map +1 -0
  345. package/lib/admin/admin.module.d.ts +2 -0
  346. package/lib/admin/public-api.d.ts +2 -0
  347. package/lib/admin/role-assignment/role-assignment.component.d.ts +6 -0
  348. package/lib/admin/user-invite/user-invite.component.d.ts +10 -0
  349. package/lib/authentication/auth.module.d.ts +2 -0
  350. package/lib/authentication/authentication-overlay/authentication-overlay.component.d.ts +10 -0
  351. package/lib/authentication/public-api.d.ts +2 -0
  352. package/lib/dashboard/cards/barchart-card/barchart-card.component.d.ts +14 -0
  353. package/lib/dashboard/cards/count-card/count-card.component.d.ts +6 -0
  354. package/lib/dashboard/cards/iframe-card/iframe-card.component.d.ts +6 -0
  355. package/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.d.ts +15 -0
  356. package/lib/dashboard/cards/linechart-card/line-chart-card.component.d.ts +16 -0
  357. package/lib/dashboard/cards/piechart-card/pie-chart-card.component.d.ts +17 -0
  358. package/lib/dashboard/cards/portal-card/portal-card.component.d.ts +18 -0
  359. package/lib/dashboard/dashboard-content/dashboard-content.component.d.ts +5 -0
  360. package/lib/dashboard/dashboard.module.d.ts +2 -0
  361. package/lib/dashboard/public-api.d.ts +9 -0
  362. package/lib/data-fields/boolean-field/boolean-field.component.d.ts +7 -0
  363. package/lib/data-fields/button-field/button-field.component.d.ts +6 -0
  364. package/lib/data-fields/data-field-template/data-field-template.component.d.ts +6 -0
  365. package/lib/data-fields/data-fields.module.d.ts +2 -0
  366. package/lib/data-fields/date-field/date-field.component.d.ts +5 -0
  367. package/lib/data-fields/date-time-field/date-time-field.component.d.ts +5 -0
  368. package/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.d.ts +6 -0
  369. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.d.ts +6 -0
  370. package/lib/data-fields/enumeration-field/enumeration-field.component.d.ts +4 -0
  371. package/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.d.ts +4 -0
  372. package/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.d.ts +4 -0
  373. package/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.d.ts +4 -0
  374. package/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.d.ts +6 -0
  375. package/lib/data-fields/file-field/file-field.component.d.ts +10 -0
  376. package/lib/data-fields/file-field/preview-dialog/preview-dialog.component.d.ts +11 -0
  377. package/lib/data-fields/file-field-list/file-list-field.component.d.ts +5 -0
  378. package/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.d.ts +8 -0
  379. package/lib/data-fields/filter-field/filter-field.component.d.ts +7 -0
  380. package/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.d.ts +4 -0
  381. package/lib/data-fields/i18n-field/i18n-field.component.d.ts +4 -0
  382. package/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.d.ts +5 -0
  383. package/lib/data-fields/multichoice-field/multichoice-field.component.d.ts +4 -0
  384. package/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.d.ts +4 -0
  385. package/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.d.ts +3 -0
  386. package/lib/data-fields/number-field/number-currency-field/number-currency-field.component.d.ts +10 -0
  387. package/lib/data-fields/number-field/number-default-field/number-default-field.component.d.ts +5 -0
  388. package/lib/data-fields/number-field/number-field.component.d.ts +6 -0
  389. package/lib/data-fields/public-api.d.ts +15 -0
  390. package/lib/data-fields/required-label/required-label.component.d.ts +6 -0
  391. package/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.d.ts +9 -0
  392. package/lib/data-fields/text-field/password-text-field/password-text-field.component.d.ts +9 -0
  393. package/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.d.ts +6 -0
  394. package/lib/data-fields/text-field/simple-text-field/simple-text-field.component.d.ts +6 -0
  395. package/lib/data-fields/text-field/text-field.component.d.ts +4 -0
  396. package/lib/data-fields/text-field/textarea-field/textarea-field.component.d.ts +8 -0
  397. package/lib/data-fields/user-field/user-field.component.d.ts +6 -0
  398. package/lib/forms/email-submission/email-submission-form.component.d.ts +5 -0
  399. package/lib/forms/email-submission/email-submission-form.module.d.ts +2 -0
  400. package/lib/forms/forgotten-password/forgotten-password-form-component.module.d.ts +2 -0
  401. package/lib/forms/forgotten-password/forgotten-password-form.component.d.ts +6 -0
  402. package/lib/forms/login/login-form.component.d.ts +6 -0
  403. package/lib/forms/login/login-form.module.d.ts +2 -0
  404. package/lib/forms/public-api.d.ts +8 -0
  405. package/lib/forms/registration/registration-form.component.d.ts +6 -0
  406. package/lib/forms/registration/registration-form.module.d.ts +2 -0
  407. package/lib/header/header-modes/edit-mode/edit-mode.component.d.ts +7 -0
  408. package/lib/header/header-modes/loading-mode/loading-mode.component.d.ts +4 -0
  409. package/lib/header/header-modes/search-mode/search-mode.component.d.ts +6 -0
  410. package/lib/header/header-modes/sort-mode/sort-mode.component.d.ts +4 -0
  411. package/lib/header/header.component.d.ts +9 -0
  412. package/lib/header/header.module.d.ts +2 -0
  413. package/lib/header/public-api.d.ts +6 -0
  414. package/lib/legal/legal-notice/legal-notice.component.d.ts +4 -0
  415. package/lib/legal/legal-notice/legal-notice.module.d.ts +2 -0
  416. package/lib/legal/public-api.d.ts +2 -0
  417. package/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.d.ts +8 -0
  418. package/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.d.ts +6 -0
  419. package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.d.ts +10 -0
  420. package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.d.ts +11 -0
  421. package/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.d.ts +25 -0
  422. package/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.d.ts +9 -0
  423. package/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.d.ts +6 -0
  424. package/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.d.ts +6 -0
  425. package/lib/navigation/navigation-drawer/navigation-drawer.component.d.ts +9 -0
  426. package/lib/navigation/navigation-rail/navigation-rail.component.d.ts +4 -0
  427. package/lib/navigation/navigation-tree/navigation-tree.component.d.ts +5 -0
  428. package/lib/navigation/navigation.module.d.ts +3 -0
  429. package/lib/navigation/public-api.d.ts +5 -0
  430. package/lib/navigation/quick-panel/components/internal-link/internal-link.component.d.ts +4 -0
  431. package/lib/navigation/quick-panel/components/language-selector/language-selector.component.d.ts +9 -0
  432. package/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.d.ts +9 -0
  433. package/lib/navigation/quick-panel/components/quick-panel.component.d.ts +6 -0
  434. package/lib/navigation/quick-panel/public-api.d.ts +5 -0
  435. package/lib/navigation/quick-panel/quick-panel.module.d.ts +2 -0
  436. package/lib/panel/case-panel/case-panel.component.d.ts +17 -0
  437. package/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.d.ts +7 -0
  438. package/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.d.ts +8 -0
  439. package/lib/panel/panel.component.d.ts +5 -0
  440. package/lib/panel/panel.module.d.ts +2 -0
  441. package/lib/panel/public-api.d.ts +7 -0
  442. package/lib/panel/public-workflow-panel/public-workflow-panel.component.d.ts +5 -0
  443. package/lib/panel/task-panel/task-panel.component.d.ts +28 -0
  444. package/lib/panel/task-panel-list/task-list.component.d.ts +8 -0
  445. package/lib/panel/workflow-panel/workflow-panel.component.d.ts +5 -0
  446. package/lib/routing/public-api.d.ts +2 -0
  447. package/lib/routing/redirect/redirect.component.d.ts +9 -0
  448. package/lib/routing/redirect.module.d.ts +2 -0
  449. package/lib/search/advanced-search/advanced-search-component/advanced-search.component.d.ts +4 -0
  450. package/lib/search/advanced-search/advanced-search.module.d.ts +2 -0
  451. package/lib/search/advanced-search/public-api.d.ts +5 -0
  452. package/lib/search/advanced-search/search-clause-component/search-clause.component.d.ts +4 -0
  453. package/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.d.ts +6 -0
  454. package/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.d.ts +7 -0
  455. package/lib/search/advanced-search/search-predicate-component/search-predicate.component.d.ts +5 -0
  456. package/lib/search/fulltext-search-component/fulltext-search.component.d.ts +4 -0
  457. package/lib/search/public-api.d.ts +6 -0
  458. package/lib/search/search-component/case-search/case-search.component.d.ts +8 -0
  459. package/lib/search/search-component/search.component.d.ts +25 -0
  460. package/lib/search/search-component/task-search/task-search.component.d.ts +8 -0
  461. package/lib/search/search.module.d.ts +2 -0
  462. package/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.d.ts +7 -0
  463. package/lib/side-menu/content-components/filter-selector/filter-selector.component.d.ts +26 -0
  464. package/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.d.ts +2 -0
  465. package/lib/side-menu/content-components/import-net/import-net.component.d.ts +10 -0
  466. package/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.d.ts +2 -0
  467. package/lib/side-menu/content-components/load-filter/load-filter.component.d.ts +10 -0
  468. package/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.d.ts +2 -0
  469. package/lib/side-menu/content-components/new-case/new-case.component.d.ts +14 -0
  470. package/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.d.ts +2 -0
  471. package/lib/side-menu/content-components/option-selector/option-selector.component.d.ts +5 -0
  472. package/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.d.ts +2 -0
  473. package/lib/side-menu/content-components/public-api.d.ts +15 -0
  474. package/lib/side-menu/content-components/save-filter/save-filter.component.d.ts +6 -0
  475. package/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.d.ts +2 -0
  476. package/lib/side-menu/content-components/side-menu-content-component.module.d.ts +2 -0
  477. package/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.d.ts +2 -0
  478. package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.d.ts +7 -0
  479. package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.d.ts +8 -0
  480. package/lib/side-menu/content-components/user-assign/user-assign.component.d.ts +11 -0
  481. package/lib/side-menu/public-api.d.ts +3 -0
  482. package/lib/side-menu/side-menu-container/side-menu-container.component.d.ts +5 -0
  483. package/lib/side-menu/side-menu.module.d.ts +2 -0
  484. package/lib/tabs/public-api.d.ts +3 -0
  485. package/lib/tabs/tab-creation-detector/tab-creation-detector.component.d.ts +10 -0
  486. package/lib/tabs/tab-view/tab-view.component.d.ts +12 -0
  487. package/lib/tabs/tabs.module.d.ts +2 -0
  488. package/lib/task-content/field-component-resolver/field-component-resolver.component.d.ts +4 -0
  489. package/lib/task-content/public-api.d.ts +3 -0
  490. package/lib/task-content/task-content/task-content.component.d.ts +9 -0
  491. package/lib/task-content/task-content.module.d.ts +2 -0
  492. package/lib/toolbar/public-api.d.ts +2 -0
  493. package/lib/toolbar/toolbar.component.d.ts +7 -0
  494. package/lib/toolbar/toolbar.module.d.ts +2 -0
  495. package/lib/user/profile/profile.component.d.ts +5 -0
  496. package/lib/user/profile/profile.module.d.ts +2 -0
  497. package/lib/user/public-api.d.ts +4 -0
  498. package/lib/user/user-card/user-card.component.d.ts +6 -0
  499. package/lib/user/user.module.d.ts +2 -0
  500. package/lib/view/case-view/case-view.module.d.ts +2 -0
  501. package/lib/view/case-view/components/case-list/case-list.component.d.ts +8 -0
  502. package/lib/view/public-api.d.ts +7 -0
  503. package/lib/view/tree-case-view/tree-case-view.module.d.ts +2 -0
  504. package/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.d.ts +5 -0
  505. package/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.d.ts +5 -0
  506. package/lib/view/tree-case-view/tree-component/tree.component.d.ts +5 -0
  507. package/lib/view/tree-case-view/tree-task-content/tree-task-content.component.d.ts +11 -0
  508. package/lib/view/workflow-view/workflow-view.component.d.ts +9 -0
  509. package/lib/view/workflow-view.module.d.ts +2 -0
  510. package/nae-theme.scss +39 -0
  511. package/nae-typography.scss +35 -0
  512. package/netgrif-components.d.ts +43 -0
  513. package/netgrif-components.metadata.json +1 -0
  514. package/package.json +75 -0
  515. package/public-api.d.ts +17 -0
  516. package/schematics/_commons/angular-cli-devkit-core-strings.d.ts +93 -0
  517. package/schematics/_commons/angular-cli-devkit-core-strings.js +167 -0
  518. package/schematics/_commons/angular-cli-devkit-core-strings.js.map +1 -0
  519. package/schematics/_commons/import-to-add.d.ts +5 -0
  520. package/schematics/_commons/import-to-add.js +11 -0
  521. package/schematics/_commons/import-to-add.js.map +1 -0
  522. package/schematics/_commons/view-class-info.d.ts +22 -0
  523. package/schematics/_commons/view-class-info.js +58 -0
  524. package/schematics/_commons/view-class-info.js.map +1 -0
  525. package/schematics/_utility/models/file-data.d.ts +6 -0
  526. package/schematics/_utility/models/file-data.js +3 -0
  527. package/schematics/_utility/models/file-data.js.map +1 -0
  528. package/schematics/_utility/models/file-system-node.d.ts +6 -0
  529. package/schematics/_utility/models/file-system-node.js +12 -0
  530. package/schematics/_utility/models/file-system-node.js.map +1 -0
  531. package/schematics/_utility/models/project-info.d.ts +13 -0
  532. package/schematics/_utility/models/project-info.js +20 -0
  533. package/schematics/_utility/models/project-info.js.map +1 -0
  534. package/schematics/_utility/modified-library-functions.d.ts +24 -0
  535. package/schematics/_utility/modified-library-functions.js +150 -0
  536. package/schematics/_utility/modified-library-functions.js.map +1 -0
  537. package/schematics/_utility/utility-functions.d.ts +67 -0
  538. package/schematics/_utility/utility-functions.js +247 -0
  539. package/schematics/_utility/utility-functions.js.map +1 -0
  540. package/schematics/add/add/index.d.ts +2 -0
  541. package/schematics/add/add/index.js +16 -0
  542. package/schematics/add/add/index.js.map +1 -0
  543. package/schematics/add/create-nc-files/index.d.ts +2 -0
  544. package/schematics/add/create-nc-files/index.js +54 -0
  545. package/schematics/add/create-nc-files/index.js.map +1 -0
  546. package/schematics/add/create-nc-files/schema.json +7 -0
  547. package/schematics/add/custom-themes/files/custom-themes/custom-themes.scss.template +45 -0
  548. package/schematics/add/custom-themes/files/dark-theme/custom-dark-theme.scss.template +17 -0
  549. package/schematics/add/custom-themes/files/light-theme/custom-light-theme.scss.template +17 -0
  550. package/schematics/add/custom-themes/index.d.ts +2 -0
  551. package/schematics/add/custom-themes/index.js +199 -0
  552. package/schematics/add/custom-themes/index.js.map +1 -0
  553. package/schematics/add/custom-themes/schema.json +7 -0
  554. package/schematics/collection.json +47 -0
  555. package/schematics/migrations/4.1/migration-4.1.d.ts +5 -0
  556. package/schematics/migrations/4.1/migration-4.1.js +37 -0
  557. package/schematics/migrations/4.1/migration-4.1.js.map +1 -0
  558. package/schematics/migrations/5.4/migration-5.4.d.ts +5 -0
  559. package/schematics/migrations/5.4/migration-5.4.js +134 -0
  560. package/schematics/migrations/5.4/migration-5.4.js.map +1 -0
  561. package/schematics/migrations/5.4/schema.json +7 -0
  562. package/schematics/migrations.json +15 -0
  563. package/schematics/view/_utility/add-view-to-nae-json.d.ts +3 -0
  564. package/schematics/view/_utility/add-view-to-nae-json.js +57 -0
  565. package/schematics/view/_utility/add-view-to-nae-json.js.map +1 -0
  566. package/schematics/view/_utility/view-service-functions.d.ts +9 -0
  567. package/schematics/view/_utility/view-service-functions.js +59 -0
  568. package/schematics/view/_utility/view-service-functions.js.map +1 -0
  569. package/schematics/view/_utility/view-utility-functions.d.ts +8 -0
  570. package/schematics/view/_utility/view-utility-functions.js +61 -0
  571. package/schematics/view/_utility/view-utility-functions.js.map +1 -0
  572. package/schematics/view/create-view/models/nullable-create-view-arguments.d.ts +11 -0
  573. package/schematics/view/create-view/models/nullable-create-view-arguments.js +3 -0
  574. package/schematics/view/create-view/models/nullable-create-view-arguments.js.map +1 -0
  575. package/schematics/view/create-view/schema.json +7 -0
  576. package/schematics/view/create-view/schematic-create-view.d.ts +2 -0
  577. package/schematics/view/create-view/schematic-create-view.js +80 -0
  578. package/schematics/view/create-view/schematic-create-view.js.map +1 -0
  579. package/schematics/view/create-view-prompt/models/create-task-view-arguments.d.ts +4 -0
  580. package/schematics/view/create-view-prompt/models/create-task-view-arguments.js +3 -0
  581. package/schematics/view/create-view-prompt/models/create-task-view-arguments.js.map +1 -0
  582. package/schematics/view/create-view-prompt/models/create-view-arguments.d.ts +14 -0
  583. package/schematics/view/create-view-prompt/models/create-view-arguments.js +3 -0
  584. package/schematics/view/create-view-prompt/models/create-view-arguments.js.map +1 -0
  585. package/schematics/view/create-view-prompt/models/params-interfaces.d.ts +28 -0
  586. package/schematics/view/create-view-prompt/models/params-interfaces.js +3 -0
  587. package/schematics/view/create-view-prompt/models/params-interfaces.js.map +1 -0
  588. package/schematics/view/create-view-prompt/models/sidenav-prompt-options.d.ts +8 -0
  589. package/schematics/view/create-view-prompt/models/sidenav-prompt-options.js +3 -0
  590. package/schematics/view/create-view-prompt/models/sidenav-prompt-options.js.map +1 -0
  591. package/schematics/view/create-view-prompt/models/tab-content-template.d.ts +9 -0
  592. package/schematics/view/create-view-prompt/models/tab-content-template.js +11 -0
  593. package/schematics/view/create-view-prompt/models/tab-content-template.js.map +1 -0
  594. package/schematics/view/create-view-prompt/models/tabbed-view.d.ts +3 -0
  595. package/schematics/view/create-view-prompt/models/tabbed-view.js +3 -0
  596. package/schematics/view/create-view-prompt/models/tabbed-view.js.map +1 -0
  597. package/schematics/view/create-view-prompt/schema-create-sidenav-prompt.json +25 -0
  598. package/schematics/view/create-view-prompt/schema-create-view-prompt.json +68 -0
  599. package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.d.ts +5 -0
  600. package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js +49 -0
  601. package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js.map +1 -0
  602. package/schematics/view/create-view-prompt/schematic-create-view-prompt.d.ts +3 -0
  603. package/schematics/view/create-view-prompt/schematic-create-view-prompt.js +88 -0
  604. package/schematics/view/create-view-prompt/schematic-create-view-prompt.js.map +1 -0
  605. package/schematics/view/create-view-prompt/views/case-view/create-case-view.d.ts +4 -0
  606. package/schematics/view/create-view-prompt/views/case-view/create-case-view.js +57 -0
  607. package/schematics/view/create-view-prompt/views/case-view/create-case-view.js.map +1 -0
  608. package/schematics/view/create-view-prompt/views/case-view/files/common/__className@dasherize__.component.html.template +20 -0
  609. package/schematics/view/create-view-prompt/views/case-view/files/common/__className@dasherize__.component.spec.ts.template +52 -0
  610. package/schematics/view/create-view-prompt/views/case-view/files/simple/__className@dasherize__.component.scss.template +28 -0
  611. package/schematics/view/create-view-prompt/views/case-view/files/simple/__className@dasherize__.component.ts.template +67 -0
  612. package/schematics/view/create-view-prompt/views/case-view/files/tabbed/__className@dasherize__.component.scss.template +21 -0
  613. package/schematics/view/create-view-prompt/views/case-view/files/tabbed/__className@dasherize__.component.ts.template +64 -0
  614. package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.d.ts +3 -0
  615. package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js +34 -0
  616. package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js.map +1 -0
  617. package/schematics/view/create-view-prompt/views/dashboard-view/files/__className@dasherize__.component.html.template +1 -0
  618. package/schematics/view/create-view-prompt/views/dashboard-view/files/__className@dasherize__.component.scss.template +0 -0
  619. package/schematics/view/create-view-prompt/views/dashboard-view/files/__className@dasherize__.component.spec.ts.template +31 -0
  620. package/schematics/view/create-view-prompt/views/dashboard-view/files/__className@dasherize__.component.ts.template +23 -0
  621. package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.d.ts +3 -0
  622. package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js +28 -0
  623. package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js.map +1 -0
  624. package/schematics/view/create-view-prompt/views/empty-view/files/__className@dasherize__.component.html.template +1 -0
  625. package/schematics/view/create-view-prompt/views/empty-view/files/__className@dasherize__.component.scss.template +0 -0
  626. package/schematics/view/create-view-prompt/views/empty-view/files/__className@dasherize__.component.spec.ts.template +25 -0
  627. package/schematics/view/create-view-prompt/views/empty-view/files/__className@dasherize__.component.ts.template +18 -0
  628. package/schematics/view/create-view-prompt/views/group-view/create-group-view.d.ts +4 -0
  629. package/schematics/view/create-view-prompt/views/group-view/create-group-view.js +37 -0
  630. package/schematics/view/create-view-prompt/views/group-view/create-group-view.js.map +1 -0
  631. package/schematics/view/create-view-prompt/views/group-view/files/__className@dasherize__.component.html.template +7 -0
  632. package/schematics/view/create-view-prompt/views/group-view/files/__className@dasherize__.component.scss.template +22 -0
  633. package/schematics/view/create-view-prompt/views/group-view/files/__className@dasherize__.component.spec.ts.template +49 -0
  634. package/schematics/view/create-view-prompt/views/group-view/files/__className@dasherize__.component.ts.template +69 -0
  635. package/schematics/view/create-view-prompt/views/login/create-login-view.d.ts +3 -0
  636. package/schematics/view/create-view-prompt/views/login/create-login-view.js +36 -0
  637. package/schematics/view/create-view-prompt/views/login/create-login-view.js.map +1 -0
  638. package/schematics/view/create-view-prompt/views/login/files/__className@dasherize__.component.html.template +5 -0
  639. package/schematics/view/create-view-prompt/views/login/files/__className@dasherize__.component.scss.template +6 -0
  640. package/schematics/view/create-view-prompt/views/login/files/__className@dasherize__.component.spec.ts.template +38 -0
  641. package/schematics/view/create-view-prompt/views/login/files/__className@dasherize__.component.ts.template +18 -0
  642. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.d.ts +3 -0
  643. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js +82 -0
  644. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js.map +1 -0
  645. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/files/__className@dasherize__.component.html.template +8 -0
  646. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/files/__className@dasherize__.component.scss.template +0 -0
  647. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/files/__className@dasherize__.component.spec.ts.template +51 -0
  648. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/files/__className@dasherize__.component.ts.template +19 -0
  649. package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.d.ts +3 -0
  650. package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js +161 -0
  651. package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js.map +1 -0
  652. package/schematics/view/create-view-prompt/views/tab-view/files/__className@dasherize__.component.html.template +3 -0
  653. package/schematics/view/create-view-prompt/views/tab-view/files/__className@dasherize__.component.scss.template +3 -0
  654. package/schematics/view/create-view-prompt/views/tab-view/files/__className@dasherize__.component.spec.ts.template +27 -0
  655. package/schematics/view/create-view-prompt/views/tab-view/files/__className@dasherize__.component.ts.template +34 -0
  656. package/schematics/view/create-view-prompt/views/task-view/create-task-view.d.ts +4 -0
  657. package/schematics/view/create-view-prompt/views/task-view/create-task-view.js +47 -0
  658. package/schematics/view/create-view-prompt/views/task-view/create-task-view.js.map +1 -0
  659. package/schematics/view/create-view-prompt/views/task-view/files/common/__className@dasherize__.component.html.template +7 -0
  660. package/schematics/view/create-view-prompt/views/task-view/files/common/__className@dasherize__.component.scss.template +22 -0
  661. package/schematics/view/create-view-prompt/views/task-view/files/common/__className@dasherize__.component.spec.ts.template +49 -0
  662. package/schematics/view/create-view-prompt/views/task-view/files/simple/__className@dasherize__.component.ts.template +62 -0
  663. package/schematics/view/create-view-prompt/views/task-view/files/tabbed/__className@dasherize__.component.ts.template +64 -0
  664. package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.d.ts +3 -0
  665. package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js +39 -0
  666. package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js.map +1 -0
  667. package/schematics/view/create-view-prompt/views/tree-case-view/files/__className@dasherize__.component.html.template +15 -0
  668. package/schematics/view/create-view-prompt/views/tree-case-view/files/__className@dasherize__.component.scss.template +17 -0
  669. package/schematics/view/create-view-prompt/views/tree-case-view/files/__className@dasherize__.component.spec.ts.template +33 -0
  670. package/schematics/view/create-view-prompt/views/tree-case-view/files/__className@dasherize__.component.ts.template +23 -0
  671. package/src/assets/default-user-avatar.png +0 -0
  672. package/src/assets/default-user-background.jpg +0 -0
  673. package/src/assets/flags/de.png +0 -0
  674. package/src/assets/flags/gb.png +0 -0
  675. package/src/assets/flags/sk.png +0 -0
  676. package/src/assets/fonts/MaterialIcons-Regular.eot +0 -0
  677. package/src/assets/fonts/MaterialIcons-Regular.otf +0 -0
  678. package/src/assets/fonts/MaterialIcons-Regular.ttf +0 -0
  679. package/src/assets/fonts/MaterialIcons-Regular.woff +0 -0
  680. package/src/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
  681. package/src/assets/fonts/roboto-v20-latin-ext_latin-300.eot +0 -0
  682. package/src/assets/fonts/roboto-v20-latin-ext_latin-300.svg +312 -0
  683. package/src/assets/fonts/roboto-v20-latin-ext_latin-300.ttf +0 -0
  684. package/src/assets/fonts/roboto-v20-latin-ext_latin-300.woff +0 -0
  685. package/src/assets/fonts/roboto-v20-latin-ext_latin-300.woff2 +0 -0
  686. package/src/assets/fonts/roboto-v20-latin-ext_latin-300italic.eot +0 -0
  687. package/src/assets/fonts/roboto-v20-latin-ext_latin-300italic.svg +329 -0
  688. package/src/assets/fonts/roboto-v20-latin-ext_latin-300italic.ttf +0 -0
  689. package/src/assets/fonts/roboto-v20-latin-ext_latin-300italic.woff +0 -0
  690. package/src/assets/fonts/roboto-v20-latin-ext_latin-300italic.woff2 +0 -0
  691. package/src/assets/fonts/roboto-v20-latin-ext_latin-500.eot +0 -0
  692. package/src/assets/fonts/roboto-v20-latin-ext_latin-500.svg +305 -0
  693. package/src/assets/fonts/roboto-v20-latin-ext_latin-500.ttf +0 -0
  694. package/src/assets/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  695. package/src/assets/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  696. package/src/assets/fonts/roboto-v20-latin-ext_latin-500italic.eot +0 -0
  697. package/src/assets/fonts/roboto-v20-latin-ext_latin-500italic.svg +326 -0
  698. package/src/assets/fonts/roboto-v20-latin-ext_latin-500italic.ttf +0 -0
  699. package/src/assets/fonts/roboto-v20-latin-ext_latin-500italic.woff +0 -0
  700. package/src/assets/fonts/roboto-v20-latin-ext_latin-500italic.woff2 +0 -0
  701. package/src/assets/fonts/roboto-v20-latin-ext_latin-italic.eot +0 -0
  702. package/src/assets/fonts/roboto-v20-latin-ext_latin-italic.svg +323 -0
  703. package/src/assets/fonts/roboto-v20-latin-ext_latin-italic.ttf +0 -0
  704. package/src/assets/fonts/roboto-v20-latin-ext_latin-italic.woff +0 -0
  705. package/src/assets/fonts/roboto-v20-latin-ext_latin-italic.woff2 +0 -0
  706. package/src/assets/fonts/roboto-v20-latin-ext_latin-regular.eot +0 -0
  707. package/src/assets/fonts/roboto-v20-latin-ext_latin-regular.svg +308 -0
  708. package/src/assets/fonts/roboto-v20-latin-ext_latin-regular.ttf +0 -0
  709. package/src/assets/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  710. package/src/assets/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  711. package/src/lib/admin/role-assignment/role-assignment.component.theme.scss +10 -0
  712. package/src/lib/data-fields/data-field.theme.scss +73 -0
  713. package/src/lib/dialog/dialog.theme.scss +13 -0
  714. package/src/lib/header/header.theme.scss +8 -0
  715. package/src/lib/navigation/navigation.theme.scss +9 -0
  716. package/src/lib/panel/panel.theme.scss +31 -0
  717. package/src/lib/search/advanced-search/search-clause-component/search-clause.component.theme.scss +9 -0
  718. package/src/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.theme.scss +9 -0
  719. package/src/lib/search/advanced-search/search-predicate-component/search-predicate.component.theme.scss +9 -0
  720. package/src/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/theme/user-assign-item.component.theme.scss +15 -0
  721. package/src/lib/side-menu/side-menu.theme.scss +24 -0
  722. package/src/lib/snack-bar/snack-bar.theme.scss +17 -0
  723. package/src/lib/tabs/tabs.theme.scss +16 -0
  724. package/src/lib/user/user.theme.scss +11 -0
  725. package/src/lib/view/view.theme.scss +16 -0
@@ -0,0 +1,19 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { RoleAssignmentComponent } from './role-assignment/role-assignment.component';
4
+ import { MaterialModule, TranslateLibModule } from '@netgrif/components-core';
5
+ import { UserInviteComponent } from './user-invite/user-invite.component';
6
+ export class AdminComponentModule {
7
+ }
8
+ AdminComponentModule.decorators = [
9
+ { type: NgModule, args: [{
10
+ declarations: [RoleAssignmentComponent, UserInviteComponent],
11
+ exports: [RoleAssignmentComponent, UserInviteComponent],
12
+ imports: [
13
+ CommonModule,
14
+ MaterialModule,
15
+ TranslateLibModule
16
+ ]
17
+ },] }
18
+ ];
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRtaW4ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9hZG1pbi9hZG1pbi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLHVCQUF1QixFQUFDLE1BQU0sNkNBQTZDLENBQUM7QUFDcEYsT0FBTyxFQUFDLGNBQWMsRUFBRSxrQkFBa0IsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQzVFLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLHFDQUFxQyxDQUFDO0FBWXhFLE1BQU0sT0FBTyxvQkFBb0I7OztZQVRoQy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@
1
+ /* COMPONENTS */
2
+ export * from './role-assignment/role-assignment.component';
3
+ /* MODULES */
4
+ export * from './admin.module';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZXRncmlmL2NvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvYWRtaW4vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxnQkFBZ0I7QUFDaEIsY0FBYyw2Q0FBNkMsQ0FBQztBQUU1RCxhQUFhO0FBQ2IsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qIENPTVBPTkVOVFMgKi9cbmV4cG9ydCAqIGZyb20gJy4vcm9sZS1hc3NpZ25tZW50L3JvbGUtYXNzaWdubWVudC5jb21wb25lbnQnO1xuXG4vKiBNT0RVTEVTICovXG5leHBvcnQgKiBmcm9tICcuL2FkbWluLm1vZHVsZSc7XG4iXX0=
@@ -0,0 +1,28 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractRoleAssignment, RoleAssignmentService, UserService } from '@netgrif/components-core';
3
+ export class RoleAssignmentComponent extends AbstractRoleAssignment {
4
+ constructor(_service, _userService) {
5
+ super(_service, _userService);
6
+ this._service = _service;
7
+ this._userService = _userService;
8
+ }
9
+ }
10
+ RoleAssignmentComponent.ctorParameters = () => [
11
+ { type: RoleAssignmentService },
12
+ { type: UserService }
13
+ ];
14
+ RoleAssignmentComponent.decorators = [
15
+ { type: Component, args: [{
16
+ selector: 'nc-role-assignment',
17
+ template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"full-height full-width padding-default\">\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxFlex=\"44\" class=\"full-height\">\n <ng-container *ngIf=\"users.users$ | async as users_\">\n\n <mat-toolbar color=\"primary\" class=\"height-96\">\n <span matTooltip=\"{{users_.length}}/{{users.totalUsers}}\">\n {{'admin.user-list.listTitle' | translate}}\n </span>\n <div fxFlex=\"5\"></div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon fxFlex class=\"search-icon\">search</mat-icon>\n <mat-form-field fxFlex=\"100\" class=\"user-assign-search\" color=\"primary\">\n <input matInput placeholder=\"{{ 'side-menu.user.choose' | translate }}\"\n [formControl]=\"searchUserControl\">\n <button mat-button *ngIf=\"searchUserControl.value\" matSuffix mat-icon-button\n (click)=\"searchUserControl.setValue('')\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n </div>\n\n <span style=\"flex: 1 1 auto;\"></span>\n <button disabled mat-icon-button\n matTooltip=\"{{userMultiSelect ? 'Multi selection' : 'Single selection'}}\"\n (click)=\"userMultiSelect = !userMultiSelect\">\n <mat-icon>{{userMultiSelect ? 'group' : 'person'}}</mat-icon>\n </button>\n <button mat-icon-button matTooltip=\"Select All\" (click)=\"selectAllUsers(true)\">\n <mat-icon>done_all</mat-icon>\n </button>\n <button mat-icon-button matTooltip=\"Deselect All\" (click)=\"selectAllUsers(false)\">\n <mat-icon>clear</mat-icon>\n </button>\n </mat-toolbar>\n\n <div *ngIf=\"(users.loading$ | async) === false && users_.length === 0\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\" fxFlex class=\"margin-top-x2\">\n <mat-icon color=\"accent\" class=\"margin-bottom-default no-user-icon\">perm_identity</mat-icon>\n <span class=\"font-size-20\">{{ 'admin.user-list.noUsersWereFound' | translate}}</span>\n </div>\n\n <mat-selection-list #userList color=\"accent\" fxFlex=\"100\" class=\"full-width\">\n\n <cdk-virtual-scroll-viewport itemSize=\"72\" (scrolledIndexChange)=\"loadNextUserPage()\"\n class=\"full-width full-height\">\n <mat-list-option *cdkVirtualFor=\"let user of users_; let i = index;\" checkboxPosition=\"before\"\n [selected]=\"user.selected\"\n [value]=\"user\"\n [ngClass]=\"{'list-item-selected':user.selected}\"\n (click)=\"user.toggle();autoSelectRoles()\">\n <h3 matLine>{{user.fullName}}</h3>\n <p matLine>ID: {{user.id}}, Email: {{user.email}}</p>\n </mat-list-option>\n\n <div *ngIf=\"users.loading$ | async\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <mat-spinner color=\"primary\" diameter=\"50\"></mat-spinner>\n </div>\n\n </cdk-virtual-scroll-viewport>\n\n </mat-selection-list>\n </ng-container>\n </div>\n\n <div fxFlex=\"6\"></div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxFlex=\"50\" class=\"full-height\">\n\n <mat-toolbar color=\"primary\" class=\"height-96\">\n <span>{{'admin.process-list.listTitle' | translate}}</span>\n <span style=\"flex: 1 1 auto;\"></span>\n <mat-spinner *ngIf=\"users.updating$ | async\" color=\"accent\" diameter=\"30\"></mat-spinner>\n </mat-toolbar>\n\n <div *ngIf=\"(users.loading$ | async) === false && nets.processes.length === 0\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\" fxFlex class=\"margin-top-x2\">\n <mat-icon color=\"accent\" class=\"margin-bottom-default no-user-icon\">timeline</mat-icon>\n <span class=\"font-size-20\">{{ 'admin.process-list.noProcessesWereFound' | translate}}</span>\n </div>\n\n <mat-accordion class=\"full-width margin-top-default process-list-accordion\" multi fxFlex>\n\n <mat-expansion-panel *ngFor=\"let item of nets.processes\" (afterExpand)=\"nets.loadProcessItemRoles(item)\"\n (afterCollapse)=\"nets.prepareToTryAgainToLoadRoles(item)\">\n\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon *ngIf=\"item.someRolesSelected\" color=\"accent\" class=\"margin-right-x2\">tour</mat-icon>\n <span>{{item.initials}} - {{item.title}}</span>\n </mat-panel-title>\n <mat-panel-description class=\"process-item-description\">\n <span\n class=\"process-item-description full-width\">{{'admin.process-list.newestVersion' | translate}}\n : {{item.newestVersion}}</span>\n </mat-panel-description>\n </mat-expansion-panel-header>\n\n <div *ngIf=\"item.loading\" fxFlex=\"100\" class=\"full-width\">\n <mat-progress-bar mode=\"indeterminate\" color=\"primary\"></mat-progress-bar>\n </div>\n\n <div *ngIf=\"!item.loading && item.emptyRoles\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\" fxFlex class=\"full-width full-height net-panel-content\">\n <mat-icon color=\"accent\" class=\"margin-bottom-default\">account_circle</mat-icon>\n <span class=\"font-size-15\">{{ 'admin.process-list.noRoles' | translate}}</span>\n </div>\n\n <div *ngIf=\"!item.loading && !item.emptyRoles\" fxLayout=\"column\" fxLayoutAlign=\"start start\"\n class=\"full-height full-width net-panel-content\">\n <h3>{{ 'admin.process-list.roles' | translate}}</h3>\n <div *ngFor=\"let net of item.processes; let first = first\" fxLayout=\"column\"\n fxLayoutAlign=\"start center\" class=\"full-width\">\n <mat-divider *ngIf=\"!first\" style=\"position: relative\"></mat-divider>\n\n <button mat-button matTooltip=\"{{item.someRolesSelected ? 'Deselect All' : 'Select All'}}\"\n (click)=\"toggleAllRoles(net, !item.someRolesSelected)\">\n {{net.version}}\n </button>\n\n <mat-selection-list color=\"accent\" fxLayout=\"row wrap\" fxLayoutAlign=\"start center\"\n class=\"full-width\">\n <mat-list-option *ngFor=\"let role of net.roles\" checkboxPosition=\"before\"\n [selected]=\"role.selected\" (click)=\"role.toggle();update(role)\"\n fxFlex=\"50\">\n <h3 matLine>{{role.name}}</h3>\n </mat-list-option>\n </mat-selection-list>\n </div>\n </div>\n\n </mat-expansion-panel>\n\n </mat-accordion>\n\n <div *ngIf=\"nets.loading$ | async\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"100\">\n <mat-spinner color=\"primary\" diameter=\"65\"></mat-spinner>\n </div>\n </div>\n</div>\n",
18
+ providers: [
19
+ RoleAssignmentService
20
+ ],
21
+ styles: [".full-height{height:100%;min-height:100%}.full-width{width:100%;min-width:100%}.padding-default{padding:8px}.padding-half{padding:4px}.padding-x2{padding:16px}.margin-default{margin:8px}.margin-half{margin:4px}.margin-x2{margin:16px}.margin-top-default{margin-top:8px}.margin-top-half{margin-top:4px}.margin-top-x2{margin-top:16px}.margin-bottom-default{margin-bottom:8px}.margin-bottom-half{margin-bottom:4px}.margin-bottom-x2{margin-bottom:16px}.margin-left-default{margin-left:8px}.margin-left-half{margin-left:4px}.margin-left-x2{margin-left:16px}.margin-right-default{margin-right:8px}.margin-right-half{margin-right:4px}.margin-right-x2{margin-right:16px}.user-list-item-margin{margin:4px 0}.net-panel-content{padding-left:24px;padding-right:24px;padding-bottom:24px}.font-size-20{font-size:20px}.font-size-15{font-size:15px}.no-user-icon{font-size:40px;width:40px;height:40px}.process-item-description{text-align:right}.process-list-accordion{overflow-y:auto;padding:0 2px 4px}.user-assign-search{width:100%}.search-icon{margin-right:10px}.height-96{min-height:96px}"]
22
+ },] }
23
+ ];
24
+ RoleAssignmentComponent.ctorParameters = () => [
25
+ { type: RoleAssignmentService },
26
+ { type: UserService }
27
+ ];
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS1hc3NpZ25tZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZXRncmlmL2NvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvYWRtaW4vcm9sZS1hc3NpZ25tZW50L3JvbGUtYXNzaWdubWVudC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLEVBQUMsc0JBQXNCLEVBQUUscUJBQXFCLEVBQUUsV0FBVyxFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFVcEcsTUFBTSxPQUFPLHVCQUF3QixTQUFRLHNCQUFzQjtJQUMvRCxZQUFzQixRQUErQixFQUFZLFlBQXlCO1FBQ3RGLEtBQUssQ0FBQyxRQUFRLEVBQUUsWUFBWSxDQUFDLENBQUM7UUFEWixhQUFRLEdBQVIsUUFBUSxDQUF1QjtRQUFZLGlCQUFZLEd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
2
+ import { AbstractUserInviteComponent, OrganizationListService, SignUpService, SnackBarService, UserInviteService } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ export class UserInviteComponent extends AbstractUserInviteComponent {
5
+ constructor(_userInviteService, _orgList, _signUpService, _snackBar, _translate) {
6
+ super(_userInviteService, _orgList, _signUpService, _snackBar, _translate);
7
+ this._userInviteService = _userInviteService;
8
+ this._orgList = _orgList;
9
+ this._signUpService = _signUpService;
10
+ this._snackBar = _snackBar;
11
+ this._translate = _translate;
12
+ }
13
+ }
14
+ UserInviteComponent.ctorParameters = () => [
15
+ { type: UserInviteService },
16
+ { type: OrganizationListService },
17
+ { type: SignUpService },
18
+ { type: SnackBarService },
19
+ { type: TranslateService }
20
+ ];
21
+ UserInviteComponent.decorators = [
22
+ { type: Component, args: [{
23
+ selector: 'nc-user-invite',
24
+ template: "<div fxLayout=\"row\" fxLayoutAlign=\"start start\" class=\"full-height full-width padding-default\">\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxFlex=\"40\" class=\"full-height margin-right-16px\">\n\n <mat-toolbar color=\"primary\" class=\"height-96 margin-bottom-16px\">\n <span>{{'admin.user-invite.newUser' | translate}}</span>\n <div fxFlex></div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxFlex=\"40\" class=\"padding-right-16px\">\n <mat-icon fxFlex class=\"mail-icon\">email</mat-icon>\n <mat-form-field fxFlex=\"100\" class=\"user-assign-search\" color=\"primary\">\n <input matInput placeholder=\"{{ 'admin.user-invite.mail' | translate }}\"\n [formControl]=\"invitedEmailControl\">\n <button mat-button *ngIf=\"invitedEmailControl.value\" matSuffix mat-icon-button\n (click)=\"invitedEmailControl.setValue('')\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n </div>\n </mat-toolbar>\n\n\n <div fxLayout=\"column\" class=\"invited-card margin-bottom-16px\" fxLayoutAlign=\"start stretch\">\n\n <span class=\"invited-card-font padding-16px\">{{'admin.user-invite.selectedOrgs' | translate}}</span>\n\n <mat-divider class=\"inherited-divider\"></mat-divider>\n\n <div class=\"padding-16px\" fxLayout=\"column\" *ngIf=\"invitedGroups.length !== 0\">\n <div *ngFor=\"let org of invitedGroups\" fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <span>{{org.name}}</span>\n\n <div fxFlex></div>\n\n <button mat-icon-button color=\"primary\" (click)=\"removeGroup(org)\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </div>\n\n <span class=\"padding-16px\"\n *ngIf=\"invitedGroups.length === 0\">{{'admin.user-invite.noSelectedOrgs' | translate}}</span>\n </div>\n\n\n <div fxLayout=\"column\" class=\"invited-card margin-bottom-16px\" fxLayoutAlign=\"start stretch\">\n\n <span class=\"invited-card-font padding-16px\">{{'admin.user-invite.selectedRoles' | translate}}</span>\n\n <mat-divider class=\"inherited-divider\"></mat-divider>\n\n <div class=\"padding-16px\" fxLayout=\"column\" *ngIf=\"invitedRoles.length !== 0\">\n <div *ngFor=\"let role of invitedRoles\" fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <span>{{role.name}}</span>\n\n <div fxFlex></div>\n\n <button mat-icon-button color=\"primary\" (click)=\"removeRole(role)\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </div>\n\n <span class=\"padding-16px\"\n *ngIf=\"invitedRoles.length === 0\">{{'admin.user-invite.noSelectedRoles' | translate}}</span>\n </div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start stretch\">\n <button mat-raised-button color=\"primary\" (click)=\"invite()\">\n <span>{{'admin.user-invite.invite-user' | translate}}</span>\n </button>\n </div>\n </div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxFlex=\"30\" class=\"full-height margin-right-16px\">\n\n <mat-toolbar color=\"primary\" class=\"height-96 margin-bottom-16px\">\n <span>{{'admin.user-invite.orgs' | translate}}</span>\n </mat-toolbar>\n\n <div *ngIf=\"groups.length === 0\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex>\n <mat-icon color=\"accent\" class=\"margin-bottom-default no-user-icon\">groups</mat-icon>\n <span class=\"font-size-20\">{{'admin.user-invite.noGroups' | translate}}</span>\n </div>\n\n <div fxLayout=\"column\" class=\"invited-card \" *ngIf=\"groups.length !== 0\">\n <div fxLayout=\"column\">\n <div *ngFor=\"let group of groups\" class=\"padding-16px-0\" fxFlex fxLayout=\"row\"\n fxLayoutAlign=\"start center\">\n <span>{{group.name}}</span>\n\n <div fxFlex></div>\n\n <button mat-icon-button color=\"primary\" (click)=\"addGroup(group)\">\n <mat-icon>add</mat-icon>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxFlex=\"30\" class=\"full-height\">\n\n <mat-toolbar color=\"primary\" class=\"height-96 margin-bottom-16px\">\n <span>{{'admin.process-list.listTitle' | translate}}</span>\n </mat-toolbar>\n\n <div *ngIf=\"nets.processes.length === 0\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\" fxFlex class=\"margin-top-x2\">\n <mat-icon color=\"accent\" class=\"margin-bottom-default no-user-icon\">timeline</mat-icon>\n <span class=\"font-size-20\">{{ 'admin.process-list.noProcessesWereFound' | translate}}</span>\n </div>\n\n <mat-accordion class=\"full-width margin-top-default process-list-accordion\" multi fxFlex>\n\n <mat-expansion-panel *ngFor=\"let item of nets.processes\" (afterExpand)=\"nets.loadProcessItemRoles(item)\"\n (afterCollapse)=\"nets.prepareToTryAgainToLoadRoles(item)\">\n\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon *ngIf=\"item.someRolesSelected\" color=\"accent\" class=\"margin-right-x2\">tour</mat-icon>\n <span>{{item.initials}} - {{item.title}}</span>\n </mat-panel-title>\n <mat-panel-description class=\"process-item-description\">\n <span\n class=\"process-item-description full-width\">{{'admin.process-list.newestVersion' | translate}}\n : {{item.newestVersion}}</span>\n </mat-panel-description>\n </mat-expansion-panel-header>\n\n <div *ngIf=\"item.loading\" fxFlex=\"100\" class=\"full-width\">\n <mat-progress-bar mode=\"indeterminate\" color=\"primary\"></mat-progress-bar>\n </div>\n\n <div *ngIf=\"!item.loading && item.emptyRoles\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\" fxFlex class=\"full-width full-height net-panel-content\">\n <mat-icon color=\"accent\" class=\"margin-bottom-default\">account_circle</mat-icon>\n <span class=\"font-size-15\">{{ 'admin.process-list.noRoles' | translate}}</span>\n </div>\n\n <div *ngIf=\"!item.loading && !item.emptyRoles\" fxLayout=\"column\" fxLayoutAlign=\"start center\"\n class=\"full-height full-width net-panel-content padding-0-16px\">\n <h3>Roles</h3>\n <div *ngFor=\"let net of item.processes; let first = first\" fxLayout=\"column\"\n fxLayoutAlign=\"start center\" class=\"full-width\">\n <mat-divider *ngIf=\"!first\" style=\"position: relative\"></mat-divider>\n\n <span>{{'admin.user-invite.version' | translate }} - {{net.version}}</span>\n\n <div fxLayout=\"column\" class=\"full-width padding-16px\">\n <div *ngFor=\"let role of net.roles\" fxFlex fxLayout=\"row wrap\" fxLayoutAlign=\"start center\">\n <span>{{role.name}}</span>\n\n <div fxFlex></div>\n\n <button mat-icon-button color=\"primary\" (click)=\"addRole(role)\">\n <mat-icon>add</mat-icon>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n </mat-expansion-panel>\n\n </mat-accordion>\n\n <div *ngIf=\"nets.loading$ | async\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"100\">\n <mat-spinner color=\"primary\" diameter=\"65\"></mat-spinner>\n </div>\n </div>\n</div>\n\n",
25
+ styles: [".full-height{height:100%;min-height:100%}.full-width{width:100%;min-width:100%}.padding-default{padding:8px}.padding-half{padding:4px}.padding-x2{padding:16px}.margin-default{margin:8px}.margin-half{margin:4px}.margin-x2{margin:16px}.margin-top-default{margin-top:8px}.margin-top-half{margin-top:4px}.margin-top-x2{margin-top:16px}.margin-bottom-default{margin-bottom:8px}.margin-bottom-half{margin-bottom:4px}.margin-bottom-x2{margin-bottom:16px}.margin-left-default{margin-left:8px}.margin-left-half{margin-left:4px}.margin-left-x2{margin-left:16px}.margin-right-default{margin-right:8px}.margin-right-half{margin-right:4px}.margin-right-x2{margin-right:16px}.flex-class{flex:1 1 auto}.height-96{min-height:96px}.mail-icon{margin-right:10px}.invited-card{padding:0 16px;width:100%;white-space:nowrap;border:1px solid #eee}.invited-card-font,.invited-card-font h1,.invited-card-font h2,.invited-card-font h3,.invited-card-font h4,.invited-card-font h5,.invited-card-font h6{font:500 20px/32px Roboto,monospace;letter-spacing:normal;margin:0}.inherited-divider{position:inherit}.padding-16px{padding:16px}.padding-0-16px{padding:0 16px}.padding-16px-0{padding:16px 0}.padding-right-16px{padding-right:16px}.margin-right-16px{margin-right:16px}.margin-bottom-16px{margin-bottom:16px}.font-size-20{font-size:20px}"]
26
+ },] }
27
+ ];
28
+ UserInviteComponent.ctorParameters = () => [
29
+ { type: UserInviteService },
30
+ { type: OrganizationListService },
31
+ { type: SignUpService },
32
+ { type: SnackBarService },
33
+ { type: TranslateService }
34
+ ];
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1pbnZpdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9hZG1pbi91c2VyLWludml0ZS91c2VyLWludml0ZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLEVBQ0gsMkJBQTJCLEVBQzNCLHVCQUF1QixFQUN2QixhQUFhLEVBQ2IsZUFBZSxFQUNmLGlCQUFpQixFQUNwQixNQUFNLDBCQUEwQixDQUFDO0FBQ2xDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBT3JELE1BQU0sT0FBTyxtQkFBb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cG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ25jLXVzZXItaW52aXRlJyxcbiAgICB0ZW1wbGF0ZVVybDogJy4vdXNlci1pbnZpdGUuY29tcG9uZW50Lmh0bWwnLFxuICAgIHN0eWxlVXJsczogWycuL3VzZXItaW52aXRlLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgVXNlckludml0ZUNvbXBvbmVudCBleHRlbmRzIEFic3RyYWN0VXNlckludml0ZUNvbXBvbmVudCB7XG5cbiAgICBjb25zdHJ1Y3Rvcihwcm90ZWN0ZWQgX3VzZXJJbnZpdGVTZXJ2aWNlOiBVc2VySW52aXRlU2VydmljZSxcbiAgICAgICAgICAgICAgICBwcm90ZWN0ZWQgX29yZ0xpc3Q6IE9yZ2FuaXphdGlvbkxpc3RTZXJ2aWNlLFxuICAgICAgICAgICAgICAgIHByb3RlY3RlZCBfc2lnblVwU2VydmljZTogU2lnblVwU2VydmljZSxcbiAgICAgICAgICAgICAgICBwcm90ZWN0ZWQgX3NuYWNrQmFyOiBTbmFja0JhclNlcnZpY2UsXG4gICAgICAgICAgICAgICAgcHJvdGVjdGVkIF90cmFuc2xhdGU6IFRyYW5zbGF0ZVNlcnZpY2UpIHtcbiAgICAgICAgc3VwZXIoX3VzZXJJbnZpdGVTZXJ2aWNlLCBfb3JnTGlzdCwgX3NpZ25VcFNlcnZpY2UsIF9zbmFja0JhciwgX3RyYW5zbGF0ZSk7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,15 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { AuthenticationOverlayComponent } from './authentication-overlay/authentication-overlay.component';
4
+ export class AuthenticationComponentModule {
5
+ }
6
+ AuthenticationComponentModule.decorators = [
7
+ { type: NgModule, args: [{
8
+ declarations: [AuthenticationOverlayComponent],
9
+ exports: [AuthenticationOverlayComponent],
10
+ imports: [
11
+ CommonModule
12
+ ]
13
+ },] }
14
+ ];
15
+ //# sour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GVcbiAgICBdXG59KVxuZXhwb3J0IGNsYXNzIEF1dGhlbnRpY2F0aW9uQ29tcG9uZW50TW9kdWxlIHtcbn1cbiJdfQ==
@@ -0,0 +1,35 @@
1
+ import { Component } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { RedirectService, SessionService, SpinnerOverlayService, AbstractAuthenticationOverlay, UserService } from '@netgrif/components-core';
4
+ export class AuthenticationOverlayComponent extends AbstractAuthenticationOverlay {
5
+ constructor(_session, _spinnerOverlay, router, redirectService, userService) {
6
+ super(_session, _spinnerOverlay, router, redirectService, userService);
7
+ this._session = _session;
8
+ this._spinnerOverlay = _spinnerOverlay;
9
+ this.router = router;
10
+ this.redirectService = redirectService;
11
+ this.userService = userService;
12
+ }
13
+ }
14
+ AuthenticationOverlayComponent.ctorParameters = () => [
15
+ { type: SessionService },
16
+ { type: SpinnerOverlayService },
17
+ { type: Router },
18
+ { type: RedirectService },
19
+ { type: UserService }
20
+ ];
21
+ AuthenticationOverlayComponent.decorators = [
22
+ { type: Component, args: [{
23
+ selector: 'nc-authentication-overlay',
24
+ template: "<ng-content></ng-content>\n",
25
+ styles: [""]
26
+ },] }
27
+ ];
28
+ AuthenticationOverlayComponent.ctorParameters = () => [
29
+ { type: SessionService },
30
+ { type: SpinnerOverlayService },
31
+ { type: Router },
32
+ { type: RedirectService },
33
+ { type: UserService }
34
+ ];
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aGVudGljYXRpb24tb3ZlcmxheS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmV0Z3JpZi9jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibGliL2F1dGhlbnRpY2F0aW9uL2F1dGhlbnRpY2F0aW9uLW92ZXJsYXkvYXV0aGVudGljYXRpb24tb3ZlcmxheS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNB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XNzaW9uU2VydmljZSxcbiAgICBTcGlubmVyT3ZlcmxheVNlcnZpY2UsXG4gICAgQWJzdHJhY3RBdXRoZW50aWNhdGlvbk92ZXJsYXksXG4gICAgVXNlclNlcnZpY2Vcbn0gZnJvbSAnQG5ldGdyaWYvY29tcG9uZW50cy1jb3JlJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICduYy1hdXRoZW50aWNhdGlvbi1vdmVybGF5JyxcbiAgICB0ZW1wbGF0ZVVybDogJy4vYXV0aGVudGljYXRpb24tb3ZlcmxheS5jb21wb25lbnQuaHRtbCcsXG4gICAgc3R5bGVVcmxzOiBbJy4vYXV0aGVudGljYXRpb24tb3ZlcmxheS5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIEF1dGhlbnRpY2F0aW9uT3ZlcmxheUNvbXBvbmVudCBleHRlbmRzIEFic3RyYWN0QXV0aGVudGljYXRpb25PdmVybGF5IHtcblxuICAgIGNvbnN0cnVjdG9yKHByb3RlY3RlZCBfc2Vzc2lvbjogU2Vzc2lvblNlcnZpY2UsIHByb3RlY3RlZCBfc3Bpbm5lck92ZXJsYXk6IFNwaW5uZXJPdmVybGF5U2VydmljZSxcbiAgICAgICAgICAgICAgICBwcm90ZWN0ZWQgcm91dGVyOiBSb3V0ZXIsIHByb3RlY3RlZCByZWRpcmVjdFNlcnZpY2U6IFJlZGlyZWN0U2VydmljZSwgcHJvdGVjdGVkIHVzZXJTZXJ2aWNlOiBVc2VyU2VydmljZSkge1xuICAgICAgICBzdXBlcihfc2Vzc2lvbiwgX3NwaW5uZXJPdmVybGF5LCByb3V0ZXIsIHJlZGlyZWN0U2VydmljZSwgdXNlclNlcnZpY2UpO1xuICAgIH1cbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /* COMPONENTS */
2
+ export * from './authentication-overlay/authentication-overlay.component';
3
+ /* MODULES */
4
+ export * from './auth.module';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZXRncmlmL2NvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvYXV0aGVudGljYXRpb24vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxnQkFBZ0I7QUFDaEIsY0FBYywyREFBMkQsQ0FBQztBQUUxRSxhQUFhO0FBQ2IsY0FBYyxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBDT01QT05FTlRTICovXG5leHBvcnQgKiBmcm9tICcuL2F1dGhlbnRpY2F0aW9uLW92ZXJsYXkvYXV0aGVudGljYXRpb24tb3ZlcmxheS5jb21wb25lbnQnO1xuXG4vKiBNT0RVTEVTICovXG5leHBvcnQgKiBmcm9tICcuL2F1dGgubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,49 @@
1
+ import { Component, EventEmitter, Injector, OnInit, Output } from '@angular/core';
2
+ import { AbstractCustomCard, AggregationResult, DashboardEventContent, DashboardResourceService, DashboardSingleData, LoggerService } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ export class BarchartCardComponent extends AbstractCustomCard {
5
+ constructor(_injector, resourceService, translateService, loggerService) {
6
+ super(_injector, resourceService, translateService, loggerService);
7
+ this._injector = _injector;
8
+ this.resourceService = resourceService;
9
+ this.translateService = translateService;
10
+ this.loggerService = loggerService;
11
+ this.selectEvent = new EventEmitter();
12
+ }
13
+ ngOnInit() {
14
+ super.ngOnInit();
15
+ }
16
+ onSelect(data) {
17
+ this.loggerService.info('BarChart was selected');
18
+ this.selectEvent.emit(data);
19
+ }
20
+ convertData(json) {
21
+ json.aggregations.result.buckets.forEach(bucket => {
22
+ this.single.push(new DashboardSingleData(bucket.key, bucket.doc_count));
23
+ });
24
+ this.single = [...this.single];
25
+ }
26
+ }
27
+ BarchartCardComponent.ctorParameters = () => [
28
+ { type: Injector },
29
+ { type: DashboardResourceService },
30
+ { type: TranslateService },
31
+ { type: LoggerService }
32
+ ];
33
+ BarchartCardComponent.decorators = [
34
+ { type: Component, args: [{
35
+ selector: 'nc-barchart-card',
36
+ template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-bar-vertical class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n (select)=\"onSelect($event)\">\n </ngx-charts-bar-vertical>\n</mat-card>\n",
37
+ styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}.custom-mat-card{padding-left:0;padding-top:0}"]
38
+ },] }
39
+ ];
40
+ BarchartCardComponent.ctorParameters = () => [
41
+ { type: Injector },
42
+ { type: DashboardResourceService },
43
+ { type: TranslateService },
44
+ { type: LoggerService }
45
+ ];
46
+ BarchartCardComponent.propDecorators = {
47
+ selectEvent: [{ type: Output }]
48
+ };
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFyY2hhcnQtY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmV0Z3JpZi9jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibGliL2Rhc2hib2FyZC9jYXJkcy9iYXJjaGFydC1jYXJkL2JhcmNoYXJ0LWNhcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLFFBQVEsRUFBRSxNQUFNLEV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0YSk7XG4gICAgfVxuXG4gICAgY29udmVydERhdGEoanNvbjogQWdncmVnYXRpb25SZXN1bHQpOiB2b2lkIHtcbiAgICAgICAganNvbi5hZ2dyZWdhdGlvbnMucmVzdWx0LmJ1Y2tldHMuZm9yRWFjaChidWNrZXQgPT4ge1xuICAgICAgICAgICAgdGhpcy5zaW5nbGUucHVzaChuZXcgRGFzaGJvYXJkU2luZ2xlRGF0YShidWNrZXQua2V5LCBidWNrZXQuZG9jX2NvdW50KSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLnNpbmdsZSA9IFsuLi50aGlzLnNpbmdsZV07XG4gICAgfVxufVxuIl19
@@ -0,0 +1,22 @@
1
+ import { Component, Injector } from '@angular/core';
2
+ import { AbstractCountCard } from '@netgrif/components-core';
3
+ export class CountCardComponent extends AbstractCountCard {
4
+ constructor(_injector) {
5
+ super(_injector);
6
+ this._injector = _injector;
7
+ }
8
+ }
9
+ CountCardComponent.ctorParameters = () => [
10
+ { type: Injector }
11
+ ];
12
+ CountCardComponent.decorators = [
13
+ { type: Component, args: [{
14
+ selector: 'nc-count-card',
15
+ template: "<mat-card fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"dashboard-card\">\n <span>{{card.title}}</span>\n <ng-template [ngIf]=\"loading\" [ngIfElse]=\"result\">\n <mat-spinner color=\"primary\"></mat-spinner>\n </ng-template>\n <ng-template #result>\n <span class=\"number\">{{count}}</span>\n </ng-template>\n</mat-card>\n",
16
+ styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.number{font-size:80px}"]
17
+ },] }
18
+ ];
19
+ CountCardComponent.ctorParameters = () => [
20
+ { type: Injector }
21
+ ];
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnQtY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmV0Z3JpZi9jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibGliL2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B9XG59XG4iXX0=
@@ -0,0 +1,23 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractIframeCard } from '@netgrif/components-core';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ export class IframeCardComponent extends AbstractIframeCard {
5
+ constructor(_sanitizer) {
6
+ super(_sanitizer);
7
+ this._sanitizer = _sanitizer;
8
+ }
9
+ }
10
+ IframeCardComponent.ctorParameters = () => [
11
+ { type: DomSanitizer }
12
+ ];
13
+ IframeCardComponent.decorators = [
14
+ { type: Component, args: [{
15
+ selector: 'nc-iframe-card',
16
+ template: "<mat-card class=\"dashboard-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <iframe [src]=\"sanitizedURL\" fxFlex=\"100\" class=\"full-size\" title=\"Dashboard embedded content\"></iframe>\n</mat-card>\n",
17
+ styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}"]
18
+ },] }
19
+ ];
20
+ IframeCardComponent.ctorParameters = () => [
21
+ { type: DomSanitizer }
22
+ ];
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9kYXNoYm9hcmQvY2FyZHMvaWZyYW1lLWNhcmQvaWZyYW1lLWNhcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEMsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDNUQsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBT3ZELE1BQU0sT0FBTyxtQkFBb0IsU0FBUSxrQkFBa0I7SUFFdkQsWUFBc0IsVUFBd0I7UUFDMUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBREEsZUFBVSxHQUFWLFVBQVUsQ0FBYztJQUU5QyxDQUFDOzs7WUFGaUMsWUFBWTs7O1lBUGpELFNBQVMsU0FBQztnQkFDUCxRQUFRLEVBQUUsZ0JBQWdCO2dCQUMxQixtT0FBMkM7O2FBRTlDOzs7WUFOTyxZQUFZIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtDb21wb25lbnR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtBYnN0cmFjdElmcmFtZUNhcmR9IGZyb20gJ0BuZXRncmlmL2NvbXBvbmVudHMtY29yZSc7XG5pbXBvcnQge0RvbVNhbml0aXplcn0gZnJvbSAnQGFuZ3VsYXIvcGxhdGZvcm0tYnJvd3Nlcic7XG5cbkBDb21wb25lbnQoe1xuICAgIHNlbGVjdG9yOiAnbmMtaWZyYW1lLWNhcmQnLFxuICAgIHRlbXBsYXRlVXJsOiAnLi9pZnJhbWUtY2FyZC5jb21wb25lbnQuaHRtbCcsXG4gICAgc3R5bGVVcmxzOiBbJy4vaWZyYW1lLWNhcmQuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBJZnJhbWVDYXJkQ29tcG9uZW50IGV4dGVuZHMgQWJzdHJhY3RJZnJhbWVDYXJkIHtcblxuICAgIGNvbnN0cnVjdG9yKHByb3RlY3RlZCBfc2FuaXRpemVyOiBEb21TYW5pdGl6ZXIpIHtcbiAgICAgICAgc3VwZXIoX3Nhbml0aXplcik7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,47 @@
1
+ import { Component, EventEmitter, Injector, OnInit, Output } from '@angular/core';
2
+ import { AbstractCustomCard, DashboardEventContent, DashboardResourceService } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AggregationResult, LoggerService } from '@netgrif/components-core';
5
+ export class LinearGaugeCardComponent extends AbstractCustomCard {
6
+ constructor(_injector, resourceService, translateService, loggerService) {
7
+ super(_injector, resourceService, translateService, loggerService);
8
+ this._injector = _injector;
9
+ this.resourceService = resourceService;
10
+ this.translateService = translateService;
11
+ this.loggerService = loggerService;
12
+ this.selectEvent = new EventEmitter();
13
+ }
14
+ ngOnInit() {
15
+ super.ngOnInit();
16
+ }
17
+ onSelect(data) {
18
+ this.loggerService.info('Linear gauge selected.');
19
+ this.selectEvent.emit(data);
20
+ }
21
+ convertData(json) {
22
+ this.value = json.aggregations.types_count.value;
23
+ }
24
+ }
25
+ LinearGaugeCardComponent.ctorParameters = () => [
26
+ { type: Injector },
27
+ { type: DashboardResourceService },
28
+ { type: TranslateService },
29
+ { type: LoggerService }
30
+ ];
31
+ LinearGaugeCardComponent.decorators = [
32
+ { type: Component, args: [{
33
+ selector: 'nc-linear-gauge-card',
34
+ template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-linear-gauge class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [value]=\"value\"\n (select)=\"onSelect($event)\"\n [units]=\"card.units\">\n </ngx-charts-linear-gauge>\n</mat-card>\n",
35
+ styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}.custom-mat-card{padding-left:0;padding-top:0}"]
36
+ },] }
37
+ ];
38
+ LinearGaugeCardComponent.ctorParameters = () => [
39
+ { type: Injector },
40
+ { type: DashboardResourceService },
41
+ { type: TranslateService },
42
+ { type: LoggerService }
43
+ ];
44
+ LinearGaugeCardComponent.propDecorators = {
45
+ selectEvent: [{ type: Output }]
46
+ };
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZWFyLWdhdWdlLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY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b252ZXJ0RGF0YShqc29uOiBBZ2dyZWdhdGlvblJlc3VsdCk6IHZvaWQge1xuICAgICAgICB0aGlzLnZhbHVlID0ganNvbi5hZ2dyZWdhdGlvbnMudHlwZXNfY291bnQudmFsdWU7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,59 @@
1
+ import { Component, EventEmitter, Injector, OnInit, Output } from '@angular/core';
2
+ import { AbstractCustomCard, DashboardEventContent, DashboardMultiData, DashboardResourceService, DashboardSingleData } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AggregationResult, LoggerService } from '@netgrif/components-core';
5
+ export class LineChartCardComponent extends AbstractCustomCard {
6
+ constructor(_injector, resourceService, translateService, loggerService) {
7
+ super(_injector, resourceService, translateService, loggerService);
8
+ this._injector = _injector;
9
+ this.resourceService = resourceService;
10
+ this.translateService = translateService;
11
+ this.loggerService = loggerService;
12
+ this.timeline = true;
13
+ this.selectEvent = new EventEmitter();
14
+ }
15
+ ngOnInit() {
16
+ super.ngOnInit();
17
+ }
18
+ onSelect(data) {
19
+ this.loggerService.info('Line chart selected.');
20
+ this.selectEvent.emit(data);
21
+ }
22
+ convertData(json) {
23
+ let index = 0;
24
+ let result;
25
+ for (result in json.aggregations) {
26
+ if (json.aggregations.hasOwnProperty(result)) {
27
+ this.multi.push(new DashboardMultiData(result, new Array()));
28
+ json.aggregations[result].buckets.forEach(bucket => {
29
+ this.multi[index].series.push(new DashboardSingleData(bucket.key, bucket.doc_count));
30
+ });
31
+ index++;
32
+ }
33
+ }
34
+ this.multi = [...this.multi];
35
+ }
36
+ }
37
+ LineChartCardComponent.ctorParameters = () => [
38
+ { type: Injector },
39
+ { type: DashboardResourceService },
40
+ { type: TranslateService },
41
+ { type: LoggerService }
42
+ ];
43
+ LineChartCardComponent.decorators = [
44
+ { type: Component, args: [{
45
+ selector: 'nc-line-chart-card',
46
+ template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-line-chart class=\"custom-chart\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n [timeline]=\"timeline\"\n [results]=\"multi\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-line-chart>\n</mat-card>\n",
47
+ styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-mat-card{padding-left:0;padding-top:0}"]
48
+ },] }
49
+ ];
50
+ LineChartCardComponent.ctorParameters = () => [
51
+ { type: Injector },
52
+ { type: DashboardResourceService },
53
+ { type: TranslateService },
54
+ { type: LoggerService }
55
+ ];
56
+ LineChartCardComponent.propDecorators = {
57
+ selectEvent: [{ type: Output }]
58
+ };
59
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jaGFydC1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZXRncmlmL2NvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvZGFzaGJvYXJkL2NhcmRzL2xpbmVjaGFydC1jYXJkL2xpbmUtY2hhcnQtY2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDaEYsT0FBTyxFQUNILGtCQUFrQixFQUNsQixxQkFBcUIsRUFDckIsa0JBQWtCLEVBQ2xCLHdCQUF3QixFQUN4QixtQkFBbUIsRUFDdEIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEVBQUMsZ0JBQWdCL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ICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgaW5kZXgrKztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aGlzLm11bHRpID0gWy4uLnRoaXMubXVsdGldO1xuICAgIH1cbn1cbiJdfQ==
@@ -0,0 +1,52 @@
1
+ import { Component, EventEmitter, Injector, OnInit, Output } from '@angular/core';
2
+ import { AbstractCustomCard, DashboardEventContent, DashboardResourceService, DashboardSingleData } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AggregationResult, LoggerService } from '@netgrif/components-core';
5
+ export class PieChartCardComponent extends AbstractCustomCard {
6
+ constructor(_injector, resourceService, translateService, loggerService) {
7
+ super(_injector, resourceService, translateService, loggerService);
8
+ this._injector = _injector;
9
+ this.resourceService = resourceService;
10
+ this.translateService = translateService;
11
+ this.loggerService = loggerService;
12
+ this.isDoughnut = false;
13
+ this.legendPosition = 'right';
14
+ this.selectEvent = new EventEmitter();
15
+ }
16
+ ngOnInit() {
17
+ super.ngOnInit();
18
+ }
19
+ onSelect(data) {
20
+ this.loggerService.info('Pie chart selected.');
21
+ this.selectEvent.emit(data);
22
+ }
23
+ convertData(json) {
24
+ json.aggregations.result.buckets.forEach(bucket => {
25
+ this.single.push(new DashboardSingleData(bucket.key, bucket.doc_count));
26
+ });
27
+ this.single = [...this.single];
28
+ }
29
+ }
30
+ PieChartCardComponent.ctorParameters = () => [
31
+ { type: Injector },
32
+ { type: DashboardResourceService },
33
+ { type: TranslateService },
34
+ { type: LoggerService }
35
+ ];
36
+ PieChartCardComponent.decorators = [
37
+ { type: Component, args: [{
38
+ selector: 'nc-pie-chart-card',
39
+ template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-pie-chart class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [legend]=\"showLegend\"\n [legendPosition]=\"legendPosition\"\n [labels]=\"showLabels\"\n [doughnut]=\"isDoughnut\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-pie-chart>\n</mat-card>\n",
40
+ styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}"]
41
+ },] }
42
+ ];
43
+ PieChartCardComponent.ctorParameters = () => [
44
+ { type: Injector },
45
+ { type: DashboardResourceService },
46
+ { type: TranslateService },
47
+ { type: LoggerService }
48
+ ];
49
+ PieChartCardComponent.propDecorators = {
50
+ selectEvent: [{ type: Output }]
51
+ };
52
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGllLWNoYXJ0LWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9kYXNoYm9hcmQvY2FyZHMvcGllY2hhcnQtY2FyZC9waWUtY2hhcnQtY2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDaEYsT0FBTyxFQUFDLGtCQUFrQixFQUFFLHFCQUFxQixFQUFFLHdCQUF3QixFQUFFLG1CQUFtQixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDbEksT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFDLGlCQUFpQixFQUFFLGFBQWEsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBTzFFLE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxrQkFBa0I7SUFNekQsWUFBc0IsU0FBbUIsRUFDbkIsZUFBeUMsR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luZ2xlLnB1c2gobmV3IERhc2hib2FyZFNpbmdsZURhdGEoYnVja2V0LmtleSwgYnVja2V0LmRvY19jb3VudCkpO1xuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy5zaW5nbGUgPSBbLi4udGhpcy5zaW5nbGVdO1xuICAgIH1cbn1cbiJdfQ==
@@ -0,0 +1,47 @@
1
+ import { Component, EventEmitter, Injector, Input, OnInit, Output } from '@angular/core';
2
+ import { AbstractCustomCard, DashboardEventContent, DashboardResourceService } from '@netgrif/components-core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AggregationResult, LoggerService } from '@netgrif/components-core';
5
+ export class PortalCardComponent extends AbstractCustomCard {
6
+ constructor(_injector, resourceService, translateService, loggerService) {
7
+ super(_injector, resourceService, translateService, loggerService);
8
+ this._injector = _injector;
9
+ this.resourceService = resourceService;
10
+ this.translateService = translateService;
11
+ this.loggerService = loggerService;
12
+ this.selectEvent = new EventEmitter();
13
+ }
14
+ ngOnInit() {
15
+ this.injectedDashboard = this.componentPortal;
16
+ }
17
+ onSelect(data) {
18
+ this.loggerService.info('Custom dashboard selected.');
19
+ this.selectEvent.emit(data);
20
+ }
21
+ convertData(json) {
22
+ }
23
+ }
24
+ PortalCardComponent.ctorParameters = () => [
25
+ { type: Injector },
26
+ { type: DashboardResourceService },
27
+ { type: TranslateService },
28
+ { type: LoggerService }
29
+ ];
30
+ PortalCardComponent.decorators = [
31
+ { type: Component, args: [{
32
+ selector: 'nc-portal-card',
33
+ template: "<ng-template [cdkPortalOutlet]=\"injectedDashboard\">\n</ng-template>\n",
34
+ styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}"]
35
+ },] }
36
+ ];
37
+ PortalCardComponent.ctorParameters = () => [
38
+ { type: Injector },
39
+ { type: DashboardResourceService },
40
+ { type: TranslateService },
41
+ { type: LoggerService }
42
+ ];
43
+ PortalCardComponent.propDecorators = {
44
+ componentPortal: [{ type: Input }],
45
+ selectEvent: [{ type: Output }]
46
+ };
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9kYXNoYm9hcmQvY2FyZHMvcG9ydGFsLWNhcmQvcG9ydGFsLWNhcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2RixPQUFPLEVBQUMsa0JBQWtCLEVBQUUscUJBQXFCLEVBQUUsd0JBQXdCLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM3RyxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUVyRCxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsYUFBYSxFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFPMUUsTUFBTSxPQUFPLG1CQUFvQixTQUFRLGtCQUFrQjtJQU12RCxZQUFzQixTQUFtQixFQUNuQixlQUF5QyxFQUN6QyxnQkFBa0MsRUFDbEMsYUFBNEI7UUFDOUMsS0FBSyxDQUFDLFNBQVMsRUFBRSxlQUFlLEVBQUUsZ0JBQWdCLEVBQUUsYUFBYSxDQUFDLENBQUM7UUFKakQsY0FBUyxHQUFULFNBQVMsQ0FBVTtRQUNuQixvQkFBZSxHQUFmLGVBQWUsQ0FBMEI7UUFDekMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtRQUNsQyxrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQUU5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XMuc2VsZWN0RXZlbnQgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgICAgIHRoaXMuaW5qZWN0ZWREYXNoYm9hcmQgPSB0aGlzLmNvbXBvbmVudFBvcnRhbDtcbiAgICB9XG5cbiAgICBvblNlbGVjdChkYXRhOiBEYXNoYm9hcmRFdmVudENvbnRlbnQpIHtcbiAgICAgICAgdGhpcy5sb2dnZXJTZXJ2aWNlLmluZm8oJ0N1c3RvbSBkYXNoYm9hcmQgc2VsZWN0ZWQuJyk7XG4gICAgICAgIHRoaXMuc2VsZWN0RXZlbnQuZW1pdChkYXRhKTtcbiAgICB9XG5cbiAgICBjb252ZXJ0RGF0YShqc29uOiBBZ2dyZWdhdGlvblJlc3VsdCk6IHZvaWQge1xuICAgIH1cbn1cbiJdfQ==
@@ -0,0 +1,22 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractDashboardContent, LoggerService } from '@netgrif/components-core';
3
+ export class DashboardContentComponent extends AbstractDashboardContent {
4
+ constructor(_log) {
5
+ super(_log);
6
+ this._log = _log;
7
+ }
8
+ }
9
+ DashboardContentComponent.ctorParameters = () => [
10
+ { type: LoggerService }
11
+ ];
12
+ DashboardContentComponent.decorators = [
13
+ { type: Component, args: [{
14
+ selector: 'nc-dashboard-content',
15
+ template: "<mat-grid-list [cols]=\"params.columns\" rowHeight=\"210px\">\n <mat-grid-tile *ngFor=\"let card of gridElements\"\n [colspan]=\"card.layout.cols\"\n [rowspan]=\"card.layout.rows\"\n [ngSwitch]=\"card.type\">\n <nc-count-card *ngSwitchCase=\"cardTypes.COUNT\" [card]=\"card.item\" class=\"full-size\"></nc-count-card>\n <nc-iframe-card *ngSwitchCase=\"cardTypes.IFRAME\" [card]=\"card.item\" class=\"full-size\"></nc-iframe-card>\n <nc-pie-chart-card *ngSwitchCase=\"cardTypes.PIE\" [card]=\"card.item\" class=\"full-size\"></nc-pie-chart-card>\n <nc-line-chart-card *ngSwitchCase=\"cardTypes.LINE\" [card]=\"card.item\" class=\"full-size\"></nc-line-chart-card>\n <nc-linear-gauge-card *ngSwitchCase=\"cardTypes.LINEARGAUGE\" [card]=\"card.item\"\n class=\"full-size\"></nc-linear-gauge-card>\n <nc-barchart-card *ngSwitchCase=\"cardTypes.BAR\" [card]=\"card.item\" class=\"full-size\"></nc-barchart-card>\n <nc-portal-card *ngSwitchCase=\"cardTypes.DEFAULT\" [card]=\"card.item\"\n [componentPortal]=\"card.item.portalComponent\" class=\"full-size\"></nc-portal-card>\n <div *ngSwitchCase=\"cardTypes.BLANK\"></div>\n </mat-grid-tile>\n</mat-grid-list>\n",
16
+ styles: [".full-size{width:100%;height:100%;margin:auto;padding:0}"]
17
+ },] }
18
+ ];
19
+ DashboardContentComponent.ctorParameters = () => [
20
+ { type: LoggerService }
21
+ ];
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ldGdyaWYvY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImxpYi9kYXNoYm9hcmQvZGFzaGJvYXJkLWNvbnRlbnQvZGFzaGJvYXJkLWNvbnRlbnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEMsT0FBTyxFQUFDLHdCQUF3QixFQUFFLGFBQWEsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBT2pGLE1BQU0sT0FBTyx5QkFBMEIsU0FBUSx3QkFBd0I7SUFFbkUsWUFBc0IsSUFBbUI7UUFDckMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRE0sU0FBSSxHQUFKLElBQUksQ0FBZTtJQUV6QyxDQUFDOzs7WUFGMkIsYUFBYTs7O1l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