@netgrif/components 6.0.4 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (739) hide show
  1. package/README.md +1 -9
  2. package/esm2020/lib/admin/admin.module.mjs +31 -0
  3. package/esm2020/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.mjs +39 -0
  4. package/esm2020/lib/admin/public-api.mjs +7 -0
  5. package/esm2020/lib/admin/role-assignment/role-assignment.component.mjs +40 -0
  6. package/esm2020/lib/admin/user-invite/user-invite.component.mjs +34 -0
  7. package/esm2020/lib/authentication/auth.module.mjs +22 -0
  8. package/esm2020/lib/authentication/authentication-overlay/authentication-overlay.component.mjs +22 -0
  9. package/esm2020/lib/authentication/public-api.mjs +5 -0
  10. package/esm2020/lib/dashboard/cards/barchart-card/barchart-card.component.mjs +40 -0
  11. package/esm2020/lib/dashboard/cards/count-card/count-card.component.mjs +20 -0
  12. package/esm2020/lib/dashboard/cards/iframe-card/iframe-card.component.mjs +19 -0
  13. package/esm2020/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.mjs +37 -0
  14. package/esm2020/lib/dashboard/cards/linechart-card/line-chart-card.component.mjs +49 -0
  15. package/esm2020/lib/dashboard/cards/piechart-card/pie-chart-card.component.mjs +42 -0
  16. package/esm2020/lib/dashboard/cards/portal-card/portal-card.component.mjs +36 -0
  17. package/esm2020/lib/dashboard/dashboard-content/dashboard-content.component.mjs +26 -0
  18. package/esm2020/lib/dashboard/dashboard.module.mjs +77 -0
  19. package/esm2020/lib/dashboard/public-api.mjs +12 -0
  20. package/esm2020/lib/data-fields/boolean-field/boolean-field.component.mjs +34 -0
  21. package/esm2020/lib/data-fields/button-field/button-field.component.mjs +32 -0
  22. package/esm2020/lib/data-fields/data-field-template/data-field-template.component.mjs +23 -0
  23. package/esm2020/lib/data-fields/data-fields.module.mjs +226 -0
  24. package/esm2020/lib/data-fields/date-field/date-field.component.mjs +32 -0
  25. package/esm2020/lib/data-fields/date-time-field/date-time-field.component.mjs +33 -0
  26. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.mjs +25 -0
  27. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.mjs +23 -0
  28. package/esm2020/lib/data-fields/enumeration-field/enumeration-field.component.mjs +28 -0
  29. package/esm2020/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.mjs +22 -0
  30. package/esm2020/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.mjs +22 -0
  31. package/esm2020/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.mjs +21 -0
  32. package/esm2020/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.mjs +23 -0
  33. package/esm2020/lib/data-fields/file-field/file-field.component.mjs +51 -0
  34. package/esm2020/lib/data-fields/file-field/preview-dialog/preview-dialog.component.mjs +33 -0
  35. package/esm2020/lib/data-fields/file-field-list/file-list-field.component.mjs +33 -0
  36. package/esm2020/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.mjs +45 -0
  37. package/esm2020/lib/data-fields/filter-field/filter-field.component.mjs +27 -0
  38. package/esm2020/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.mjs +18 -0
  39. package/esm2020/lib/data-fields/i18n-field/i18n-field.component.mjs +24 -0
  40. package/esm2020/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.mjs +61 -0
  41. package/esm2020/lib/data-fields/multichoice-field/multichoice-field.component.mjs +24 -0
  42. package/esm2020/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.mjs +21 -0
  43. package/esm2020/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.mjs +18 -0
  44. package/esm2020/lib/data-fields/number-field/number-currency-field/number-currency-field.component.mjs +29 -0
  45. package/esm2020/lib/data-fields/number-field/number-default-field/number-default-field.component.mjs +20 -0
  46. package/esm2020/lib/data-fields/number-field/number-field.component.mjs +33 -0
  47. package/esm2020/lib/data-fields/public-api.mjs +18 -0
  48. package/esm2020/lib/data-fields/required-label/required-label.component.mjs +18 -0
  49. package/esm2020/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.mjs +23 -0
  50. package/esm2020/lib/data-fields/text-field/password-text-field/password-text-field.component.mjs +24 -0
  51. package/esm2020/lib/data-fields/text-field/rich-textarea-field/easymde-wrapper/easymde-wrapper.component.mjs +82 -0
  52. package/esm2020/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.mjs +22 -0
  53. package/esm2020/lib/data-fields/text-field/simple-text-field/simple-text-field.component.mjs +21 -0
  54. package/esm2020/lib/data-fields/text-field/text-field.component.mjs +27 -0
  55. package/esm2020/lib/data-fields/text-field/textarea-field/textarea-field.component.mjs +24 -0
  56. package/esm2020/lib/data-fields/user-field/user-field.component.mjs +32 -0
  57. package/esm2020/lib/forms/email-submission/email-submission-form.component.mjs +25 -0
  58. package/esm2020/lib/forms/email-submission/email-submission-form.module.mjs +41 -0
  59. package/esm2020/lib/forms/forgotten-password/forgotten-password-form-component.module.mjs +37 -0
  60. package/esm2020/lib/forms/forgotten-password/forgotten-password-form.component.mjs +25 -0
  61. package/esm2020/lib/forms/login/login-form.component.mjs +26 -0
  62. package/esm2020/lib/forms/login/login-form.module.mjs +37 -0
  63. package/esm2020/lib/forms/public-api.mjs +11 -0
  64. package/esm2020/lib/forms/registration/registration-form.component.mjs +26 -0
  65. package/esm2020/lib/forms/registration/registration-form.module.mjs +41 -0
  66. package/esm2020/lib/header/header-modes/edit-mode/edit-mode.component.mjs +27 -0
  67. package/esm2020/lib/header/header-modes/loading-mode/loading-mode.component.mjs +18 -0
  68. package/esm2020/lib/header/header-modes/search-mode/search-mode.component.mjs +41 -0
  69. package/esm2020/lib/header/header-modes/sort-mode/sort-mode.component.mjs +20 -0
  70. package/esm2020/lib/header/header.component.mjs +49 -0
  71. package/esm2020/lib/header/header.module.mjs +64 -0
  72. package/esm2020/lib/header/public-api.mjs +12 -0
  73. package/esm2020/lib/legal/legal-notice/legal-notice.component.mjs +17 -0
  74. package/esm2020/lib/legal/legal-notice/legal-notice.module.mjs +26 -0
  75. package/esm2020/lib/legal/public-api.mjs +5 -0
  76. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.mjs +80 -0
  77. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.mjs +42 -0
  78. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.mjs +85 -0
  79. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.mjs +77 -0
  80. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.mjs +30 -0
  81. package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.mjs +2 -0
  82. package/esm2020/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.mjs +31 -0
  83. package/esm2020/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.mjs +23 -0
  84. package/esm2020/lib/navigation/navigation-drawer/navigation-drawer.component.mjs +31 -0
  85. package/esm2020/lib/navigation/navigation-rail/navigation-rail.component.mjs +42 -0
  86. package/esm2020/lib/navigation/navigation-tree/navigation-tree.component.mjs +24 -0
  87. package/esm2020/lib/navigation/navigation.module.mjs +124 -0
  88. package/esm2020/lib/navigation/public-api.mjs +14 -0
  89. package/esm2020/lib/navigation/quick-panel/components/internal-link/internal-link.component.mjs +18 -0
  90. package/esm2020/lib/navigation/quick-panel/components/language-selector/language-selector.component.mjs +39 -0
  91. package/esm2020/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.mjs +23 -0
  92. package/esm2020/lib/navigation/quick-panel/components/quick-panel.component.mjs +26 -0
  93. package/esm2020/lib/navigation/quick-panel/public-api.mjs +9 -0
  94. package/esm2020/lib/navigation/quick-panel/quick-panel.module.mjs +52 -0
  95. package/esm2020/lib/panel/case-panel/case-panel.component.mjs +36 -0
  96. package/esm2020/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.mjs +21 -0
  97. package/esm2020/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.mjs +49 -0
  98. package/esm2020/lib/panel/panel-item/panel-item.component.mjs +22 -0
  99. package/esm2020/lib/panel/panel.component.mjs +19 -0
  100. package/esm2020/lib/panel/panel.module.mjs +96 -0
  101. package/esm2020/lib/panel/public-api.mjs +14 -0
  102. package/esm2020/lib/panel/public-workflow-panel/public-workflow-panel.component.mjs +22 -0
  103. package/esm2020/lib/panel/task-panel/task-panel.component.mjs +104 -0
  104. package/esm2020/lib/panel/task-panel-list/task-list.component.mjs +33 -0
  105. package/esm2020/lib/panel/task-panel-list-pagination/task-list-pagination.component.mjs +33 -0
  106. package/esm2020/lib/panel/workflow-panel/workflow-panel.component.mjs +26 -0
  107. package/esm2020/lib/routing/public-api.mjs +3 -0
  108. package/esm2020/lib/routing/redirect/redirect.component.mjs +20 -0
  109. package/esm2020/lib/routing/redirect.module.mjs +17 -0
  110. package/esm2020/lib/search/advanced-search/advanced-search-component/advanced-search.component.mjs +21 -0
  111. package/esm2020/lib/search/advanced-search/advanced-search.module.mjs +57 -0
  112. package/esm2020/lib/search/advanced-search/public-api.mjs +8 -0
  113. package/esm2020/lib/search/advanced-search/search-clause-component/search-clause.component.mjs +20 -0
  114. package/esm2020/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.mjs +31 -0
  115. package/esm2020/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.mjs +36 -0
  116. package/esm2020/lib/search/advanced-search/search-predicate-component/search-predicate.component.mjs +29 -0
  117. package/esm2020/lib/search/fulltext-search-component/fulltext-search.component.mjs +20 -0
  118. package/esm2020/lib/search/public-api.mjs +10 -0
  119. package/esm2020/lib/search/search-component/case-search/case-search.component.mjs +25 -0
  120. package/esm2020/lib/search/search-component/search.component.mjs +107 -0
  121. package/esm2020/lib/search/search-component/task-search/task-search.component.mjs +25 -0
  122. package/esm2020/lib/search/search.module.mjs +60 -0
  123. package/esm2020/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.mjs +17 -0
  124. package/esm2020/lib/side-menu/content-components/filter-selector/filter-selector.component.mjs +51 -0
  125. package/esm2020/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.mjs +36 -0
  126. package/esm2020/lib/side-menu/content-components/import-net/import-net.component.mjs +51 -0
  127. package/esm2020/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.mjs +45 -0
  128. package/esm2020/lib/side-menu/content-components/load-filter/load-filter.component.mjs +64 -0
  129. package/esm2020/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.mjs +42 -0
  130. package/esm2020/lib/side-menu/content-components/new-case/new-case.component.mjs +43 -0
  131. package/esm2020/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.mjs +57 -0
  132. package/esm2020/lib/side-menu/content-components/option-selector/option-selector.component.mjs +30 -0
  133. package/esm2020/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.mjs +38 -0
  134. package/esm2020/lib/side-menu/content-components/public-api.mjs +19 -0
  135. package/esm2020/lib/side-menu/content-components/save-filter/save-filter.component.mjs +58 -0
  136. package/esm2020/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.mjs +38 -0
  137. package/esm2020/lib/side-menu/content-components/side-menu-content-component.module.mjs +87 -0
  138. package/esm2020/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.mjs +56 -0
  139. package/esm2020/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.mjs +22 -0
  140. package/esm2020/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.mjs +27 -0
  141. package/esm2020/lib/side-menu/content-components/user-assign/user-assign.component.mjs +36 -0
  142. package/esm2020/lib/side-menu/public-api.mjs +7 -0
  143. package/esm2020/lib/side-menu/side-menu-container/side-menu-container.component.mjs +20 -0
  144. package/esm2020/lib/side-menu/side-menu.module.mjs +42 -0
  145. package/esm2020/lib/tabs/public-api.mjs +4 -0
  146. package/esm2020/lib/tabs/tab-creation-detector/tab-creation-detector.component.mjs +21 -0
  147. package/esm2020/lib/tabs/tab-view/tab-view.component.mjs +32 -0
  148. package/esm2020/lib/tabs/tabs.module.mjs +44 -0
  149. package/esm2020/lib/task-content/field-component-resolver/field-component-resolver.component.mjs +32 -0
  150. package/esm2020/lib/task-content/public-api.mjs +6 -0
  151. package/esm2020/lib/task-content/task-content/task-content.component.mjs +36 -0
  152. package/esm2020/lib/task-content/task-content.module.mjs +47 -0
  153. package/esm2020/lib/toolbar/public-api.mjs +3 -0
  154. package/esm2020/lib/toolbar/toolbar.component.mjs +26 -0
  155. package/esm2020/lib/toolbar/toolbar.module.mjs +35 -0
  156. package/esm2020/lib/user/profile/profile.component.mjs +25 -0
  157. package/esm2020/lib/user/profile/profile.module.mjs +31 -0
  158. package/esm2020/lib/user/public-api.mjs +7 -0
  159. package/esm2020/lib/user/user-card/user-card.component.mjs +23 -0
  160. package/esm2020/lib/user/user.module.mjs +35 -0
  161. package/esm2020/lib/view/case-view/case-view.module.mjs +38 -0
  162. package/esm2020/lib/view/case-view/components/case-list/case-list.component.mjs +34 -0
  163. package/esm2020/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.mjs +36 -0
  164. package/esm2020/lib/view/public-api.mjs +11 -0
  165. package/esm2020/lib/view/tree-case-view/tree-case-view.module.mjs +60 -0
  166. package/esm2020/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.mjs +22 -0
  167. package/esm2020/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.mjs +21 -0
  168. package/esm2020/lib/view/tree-case-view/tree-component/tree.component.mjs +27 -0
  169. package/esm2020/lib/view/tree-case-view/tree-task-content/tree-task-content.component.mjs +57 -0
  170. package/esm2020/lib/view/workflow-view/workflow-view.component.mjs +34 -0
  171. package/esm2020/lib/view/workflow-view.module.mjs +53 -0
  172. package/esm2020/netgrif-components.mjs +5 -0
  173. package/esm2020/public-api.mjs +22 -0
  174. package/fesm2015/netgrif-components.mjs +4255 -0
  175. package/fesm2015/netgrif-components.mjs.map +1 -0
  176. package/fesm2020/netgrif-components.mjs +4181 -0
  177. package/fesm2020/netgrif-components.mjs.map +1 -0
  178. package/lib/admin/admin.module.d.ts +9 -0
  179. package/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.d.ts +8 -0
  180. package/lib/admin/public-api.d.ts +2 -0
  181. package/lib/admin/role-assignment/role-assignment.component.d.ts +5 -2
  182. package/lib/admin/user-invite/user-invite.component.d.ts +3 -0
  183. package/lib/authentication/auth.module.d.ts +6 -0
  184. package/lib/authentication/authentication-overlay/authentication-overlay.component.d.ts +5 -2
  185. package/lib/dashboard/cards/barchart-card/barchart-card.component.d.ts +5 -2
  186. package/lib/dashboard/cards/count-card/count-card.component.d.ts +5 -2
  187. package/lib/dashboard/cards/iframe-card/iframe-card.component.d.ts +5 -2
  188. package/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.d.ts +5 -2
  189. package/lib/dashboard/cards/linechart-card/line-chart-card.component.d.ts +5 -2
  190. package/lib/dashboard/cards/piechart-card/pie-chart-card.component.d.ts +5 -2
  191. package/lib/dashboard/cards/portal-card/portal-card.component.d.ts +6 -3
  192. package/lib/dashboard/dashboard-content/dashboard-content.component.d.ts +5 -2
  193. package/lib/dashboard/dashboard.module.d.ts +16 -0
  194. package/lib/data-fields/boolean-field/boolean-field.component.d.ts +3 -0
  195. package/lib/data-fields/button-field/button-field.component.d.ts +3 -0
  196. package/lib/data-fields/data-field-template/data-field-template.component.d.ts +3 -0
  197. package/lib/data-fields/data-fields.module.d.ts +54 -0
  198. package/lib/data-fields/date-field/date-field.component.d.ts +3 -0
  199. package/lib/data-fields/date-time-field/date-time-field.component.d.ts +3 -0
  200. package/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.d.ts +3 -0
  201. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.d.ts +3 -0
  202. package/lib/data-fields/enumeration-field/enumeration-field.component.d.ts +3 -0
  203. package/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.d.ts +3 -0
  204. package/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.d.ts +3 -0
  205. package/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.d.ts +3 -0
  206. package/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.d.ts +3 -0
  207. package/lib/data-fields/file-field/file-field.component.d.ts +3 -0
  208. package/lib/data-fields/file-field/preview-dialog/preview-dialog.component.d.ts +4 -3
  209. package/lib/data-fields/file-field-list/file-list-field.component.d.ts +3 -0
  210. package/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.d.ts +3 -0
  211. package/lib/data-fields/filter-field/filter-field.component.d.ts +3 -0
  212. package/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.d.ts +3 -0
  213. package/lib/data-fields/i18n-field/i18n-field.component.d.ts +3 -0
  214. package/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.d.ts +6 -2
  215. package/lib/data-fields/multichoice-field/multichoice-field.component.d.ts +3 -0
  216. package/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.d.ts +3 -0
  217. package/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.d.ts +3 -0
  218. package/lib/data-fields/number-field/number-currency-field/number-currency-field.component.d.ts +6 -3
  219. package/lib/data-fields/number-field/number-default-field/number-default-field.component.d.ts +3 -0
  220. package/lib/data-fields/number-field/number-field.component.d.ts +3 -0
  221. package/lib/data-fields/required-label/required-label.component.d.ts +4 -3
  222. package/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.d.ts +3 -0
  223. package/lib/data-fields/text-field/password-text-field/password-text-field.component.d.ts +4 -3
  224. package/lib/data-fields/text-field/rich-textarea-field/easymde-wrapper/easymde-wrapper.component.d.ts +23 -0
  225. package/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.d.ts +3 -0
  226. package/lib/data-fields/text-field/simple-text-field/simple-text-field.component.d.ts +3 -0
  227. package/lib/data-fields/text-field/text-field.component.d.ts +3 -0
  228. package/lib/data-fields/text-field/textarea-field/textarea-field.component.d.ts +3 -0
  229. package/lib/data-fields/user-field/user-field.component.d.ts +3 -0
  230. package/lib/forms/email-submission/email-submission-form.component.d.ts +3 -0
  231. package/lib/forms/email-submission/email-submission-form.module.d.ts +10 -0
  232. package/lib/forms/forgotten-password/forgotten-password-form-component.module.d.ts +9 -0
  233. package/lib/forms/forgotten-password/forgotten-password-form.component.d.ts +3 -0
  234. package/lib/forms/login/login-form.component.d.ts +3 -0
  235. package/lib/forms/login/login-form.module.d.ts +9 -0
  236. package/lib/forms/registration/registration-form.component.d.ts +3 -0
  237. package/lib/forms/registration/registration-form.module.d.ts +10 -0
  238. package/lib/header/header-modes/edit-mode/edit-mode.component.d.ts +3 -0
  239. package/lib/header/header-modes/loading-mode/loading-mode.component.d.ts +3 -0
  240. package/lib/header/header-modes/search-mode/search-mode.component.d.ts +3 -0
  241. package/lib/header/header-modes/sort-mode/sort-mode.component.d.ts +3 -0
  242. package/lib/header/header.component.d.ts +3 -0
  243. package/lib/header/header.module.d.ts +13 -0
  244. package/lib/legal/legal-notice/legal-notice.component.d.ts +3 -0
  245. package/lib/legal/legal-notice/legal-notice.module.d.ts +7 -0
  246. package/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.d.ts +5 -2
  247. package/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.d.ts +3 -0
  248. package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.d.ts +5 -2
  249. package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.d.ts +5 -2
  250. package/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.d.ts +3 -0
  251. package/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.d.ts +3 -0
  252. package/lib/navigation/navigation-drawer/navigation-drawer.component.d.ts +3 -0
  253. package/lib/navigation/navigation-rail/navigation-rail.component.d.ts +3 -0
  254. package/lib/navigation/navigation-tree/navigation-tree.component.d.ts +3 -0
  255. package/lib/navigation/navigation.module.d.ts +25 -0
  256. package/lib/navigation/public-api.d.ts +5 -0
  257. package/lib/navigation/quick-panel/components/internal-link/internal-link.component.d.ts +3 -0
  258. package/lib/navigation/quick-panel/components/language-selector/language-selector.component.d.ts +3 -0
  259. package/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.d.ts +3 -0
  260. package/lib/navigation/quick-panel/components/quick-panel.component.d.ts +3 -0
  261. package/lib/navigation/quick-panel/quick-panel.module.d.ts +11 -0
  262. package/lib/panel/case-panel/case-panel.component.d.ts +3 -0
  263. package/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.d.ts +3 -0
  264. package/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.d.ts +3 -0
  265. package/lib/panel/panel-item/panel-item.component.d.ts +7 -0
  266. package/lib/panel/panel.component.d.ts +3 -0
  267. package/lib/panel/panel.module.d.ts +20 -0
  268. package/lib/panel/public-api.d.ts +4 -0
  269. package/lib/panel/public-workflow-panel/public-workflow-panel.component.d.ts +3 -0
  270. package/lib/panel/task-panel/task-panel.component.d.ts +3 -0
  271. package/lib/panel/task-panel-list/task-list.component.d.ts +3 -0
  272. package/lib/panel/task-panel-list-pagination/task-list-pagination.component.d.ts +11 -0
  273. package/lib/panel/workflow-panel/workflow-panel.component.d.ts +3 -0
  274. package/lib/routing/redirect/redirect.component.d.ts +3 -0
  275. package/lib/routing/redirect.module.d.ts +5 -0
  276. package/lib/search/advanced-search/advanced-search-component/advanced-search.component.d.ts +3 -0
  277. package/lib/search/advanced-search/advanced-search.module.d.ts +12 -0
  278. package/lib/search/advanced-search/search-clause-component/search-clause.component.d.ts +3 -0
  279. package/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.d.ts +3 -0
  280. package/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.d.ts +3 -0
  281. package/lib/search/advanced-search/search-predicate-component/search-predicate.component.d.ts +3 -0
  282. package/lib/search/fulltext-search-component/fulltext-search.component.d.ts +3 -0
  283. package/lib/search/search-component/case-search/case-search.component.d.ts +3 -0
  284. package/lib/search/search-component/search.component.d.ts +3 -0
  285. package/lib/search/search-component/task-search/task-search.component.d.ts +3 -0
  286. package/lib/search/search.module.d.ts +12 -0
  287. package/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.d.ts +3 -0
  288. package/lib/side-menu/content-components/filter-selector/filter-selector.component.d.ts +3 -0
  289. package/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.d.ts +8 -0
  290. package/lib/side-menu/content-components/import-net/import-net.component.d.ts +3 -0
  291. package/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.d.ts +9 -0
  292. package/lib/side-menu/content-components/load-filter/load-filter.component.d.ts +3 -0
  293. package/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.d.ts +9 -0
  294. package/lib/side-menu/content-components/new-case/new-case.component.d.ts +3 -0
  295. package/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.d.ts +10 -0
  296. package/lib/side-menu/content-components/option-selector/option-selector.component.d.ts +3 -0
  297. package/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.d.ts +7 -0
  298. package/lib/side-menu/content-components/save-filter/save-filter.component.d.ts +3 -0
  299. package/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.d.ts +8 -0
  300. package/lib/side-menu/content-components/side-menu-content-component.module.d.ts +12 -0
  301. package/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.d.ts +11 -0
  302. package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.d.ts +3 -0
  303. package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.d.ts +3 -0
  304. package/lib/side-menu/content-components/user-assign/user-assign.component.d.ts +3 -0
  305. package/lib/side-menu/side-menu-container/side-menu-container.component.d.ts +3 -0
  306. package/lib/side-menu/side-menu.module.d.ts +10 -0
  307. package/lib/tabs/tab-creation-detector/tab-creation-detector.component.d.ts +3 -0
  308. package/lib/tabs/tab-view/tab-view.component.d.ts +3 -0
  309. package/lib/tabs/tabs.module.d.ts +10 -0
  310. package/lib/task-content/field-component-resolver/field-component-resolver.component.d.ts +3 -0
  311. package/lib/task-content/task-content/task-content.component.d.ts +3 -0
  312. package/lib/task-content/task-content.module.d.ts +10 -0
  313. package/lib/toolbar/toolbar.component.d.ts +3 -0
  314. package/lib/toolbar/toolbar.module.d.ts +8 -0
  315. package/lib/user/profile/profile.component.d.ts +3 -0
  316. package/lib/user/profile/profile.module.d.ts +7 -0
  317. package/lib/user/user-card/user-card.component.d.ts +3 -0
  318. package/lib/user/user.module.d.ts +8 -0
  319. package/lib/view/case-view/case-view.module.d.ts +10 -0
  320. package/lib/view/case-view/components/case-list/case-list.component.d.ts +3 -0
  321. package/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.d.ts +13 -0
  322. package/lib/view/public-api.d.ts +1 -0
  323. package/lib/view/tree-case-view/tree-case-view.module.d.ts +14 -0
  324. package/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.d.ts +3 -0
  325. package/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.d.ts +3 -0
  326. package/lib/view/tree-case-view/tree-component/tree.component.d.ts +3 -0
  327. package/lib/view/tree-case-view/tree-task-content/tree-task-content.component.d.ts +3 -0
  328. package/lib/view/workflow-view/workflow-view.component.d.ts +3 -0
  329. package/lib/view/workflow-view.module.d.ts +12 -0
  330. package/netgrif-components.d.ts +1 -39
  331. package/package.json +51 -42
  332. package/schematics/_commons/view-class-info.js +4 -4
  333. package/schematics/_commons/view-class-info.js.map +1 -1
  334. package/schematics/_utility/modified-library-functions.js +6 -6
  335. package/schematics/_utility/modified-library-functions.js.map +1 -1
  336. package/schematics/_utility/utility-functions.js +6 -6
  337. package/schematics/_utility/utility-functions.js.map +1 -1
  338. package/schematics/add/add/index.js +2 -2
  339. package/schematics/add/add/index.js.map +1 -1
  340. package/schematics/add/create-nc-files/index.js +5 -5
  341. package/schematics/add/create-nc-files/index.js.map +1 -1
  342. package/schematics/add/custom-themes/files/custom-themes/custom-themes.scss.template +2 -2
  343. package/schematics/add/custom-themes/files/dark-theme/custom-dark-theme.scss.template +1 -1
  344. package/schematics/add/custom-themes/files/light-theme/custom-light-theme.scss.template +1 -1
  345. package/schematics/add/custom-themes/index.js +5 -5
  346. package/schematics/add/custom-themes/index.js.map +1 -1
  347. package/schematics/migrations/4.1/migration-4.1.js +6 -6
  348. package/schematics/migrations/4.1/migration-4.1.js.map +1 -1
  349. package/schematics/migrations/5.4/migration-5.4.js +20 -20
  350. package/schematics/migrations/5.4/migration-5.4.js.map +1 -1
  351. package/schematics/view/_utility/add-view-to-nae-json.js +1 -1
  352. package/schematics/view/_utility/add-view-to-nae-json.js.map +1 -1
  353. package/schematics/view/_utility/view-service-functions.js +7 -10
  354. package/schematics/view/_utility/view-service-functions.js.map +1 -1
  355. package/schematics/view/_utility/view-utility-functions.js +6 -6
  356. package/schematics/view/_utility/view-utility-functions.js.map +1 -1
  357. package/schematics/view/create-view/schematic-create-view.js +4 -4
  358. package/schematics/view/create-view/schematic-create-view.js.map +1 -1
  359. package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js +1 -1
  360. package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js.map +1 -1
  361. package/schematics/view/create-view-prompt/schematic-create-view-prompt.js +15 -15
  362. package/schematics/view/create-view-prompt/schematic-create-view-prompt.js.map +1 -1
  363. package/schematics/view/create-view-prompt/views/case-view/create-case-view.js +9 -13
  364. package/schematics/view/create-view-prompt/views/case-view/create-case-view.js.map +1 -1
  365. package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js +7 -7
  366. package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js.map +1 -1
  367. package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js +6 -6
  368. package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js.map +1 -1
  369. package/schematics/view/create-view-prompt/views/group-view/create-group-view.js +7 -7
  370. package/schematics/view/create-view-prompt/views/group-view/create-group-view.js.map +1 -1
  371. package/schematics/view/create-view-prompt/views/login/create-login-view.js +7 -7
  372. package/schematics/view/create-view-prompt/views/login/create-login-view.js.map +1 -1
  373. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js +8 -8
  374. package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js.map +1 -1
  375. package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js +9 -16
  376. package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js.map +1 -1
  377. package/schematics/view/create-view-prompt/views/task-view/create-task-view.js +9 -9
  378. package/schematics/view/create-view-prompt/views/task-view/create-task-view.js.map +1 -1
  379. package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js +7 -7
  380. package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js.map +1 -1
  381. package/src/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.theme.scss +10 -0
  382. package/src/lib/admin/role-assignment/role-assignment.component.theme.scss +2 -2
  383. package/src/lib/data-fields/data-field.theme.scss +31 -11
  384. package/src/lib/dialog/dialog.theme.scss +0 -2
  385. package/src/lib/header/header.theme.scss +2 -2
  386. package/src/lib/navigation/navigation.theme.scss +2 -2
  387. package/src/lib/panel/panel.theme.scss +7 -7
  388. package/src/lib/search/advanced-search/search-clause-component/search-clause.component.theme.scss +2 -2
  389. package/src/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.theme.scss +2 -2
  390. package/src/lib/search/advanced-search/search-predicate-component/search-predicate.component.theme.scss +2 -2
  391. package/src/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/theme/user-assign-item.component.theme.scss +5 -5
  392. package/src/lib/side-menu/side-menu.theme.scss +3 -3
  393. package/src/lib/snack-bar/snack-bar.theme.scss +0 -2
  394. package/src/lib/tabs/tabs.theme.scss +0 -2
  395. package/src/lib/user/user.theme.scss +2 -2
  396. package/src/lib/view/view.theme.scss +3 -3
  397. package/bundles/netgrif-components.umd.js +0 -4769
  398. package/bundles/netgrif-components.umd.js.map +0 -1
  399. package/bundles/netgrif-components.umd.min.js +0 -16
  400. package/bundles/netgrif-components.umd.min.js.map +0 -1
  401. package/esm2015/lib/admin/admin.module.js +0 -19
  402. package/esm2015/lib/admin/public-api.js +0 -5
  403. package/esm2015/lib/admin/role-assignment/role-assignment.component.js +0 -28
  404. package/esm2015/lib/admin/user-invite/user-invite.component.js +0 -35
  405. package/esm2015/lib/authentication/auth.module.js +0 -15
  406. package/esm2015/lib/authentication/authentication-overlay/authentication-overlay.component.js +0 -35
  407. package/esm2015/lib/authentication/public-api.js +0 -5
  408. package/esm2015/lib/dashboard/cards/barchart-card/barchart-card.component.js +0 -49
  409. package/esm2015/lib/dashboard/cards/count-card/count-card.component.js +0 -22
  410. package/esm2015/lib/dashboard/cards/iframe-card/iframe-card.component.js +0 -23
  411. package/esm2015/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +0 -47
  412. package/esm2015/lib/dashboard/cards/linechart-card/line-chart-card.component.js +0 -59
  413. package/esm2015/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +0 -52
  414. package/esm2015/lib/dashboard/cards/portal-card/portal-card.component.js +0 -47
  415. package/esm2015/lib/dashboard/dashboard-content/dashboard-content.component.js +0 -22
  416. package/esm2015/lib/dashboard/dashboard.module.js +0 -44
  417. package/esm2015/lib/dashboard/public-api.js +0 -12
  418. package/esm2015/lib/data-fields/boolean-field/boolean-field.component.js +0 -28
  419. package/esm2015/lib/data-fields/button-field/button-field.component.js +0 -27
  420. package/esm2015/lib/data-fields/data-field-template/data-field-template.component.js +0 -25
  421. package/esm2015/lib/data-fields/data-fields.module.js +0 -134
  422. package/esm2015/lib/data-fields/date-field/date-field.component.js +0 -30
  423. package/esm2015/lib/data-fields/date-time-field/date-time-field.component.js +0 -30
  424. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +0 -23
  425. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +0 -23
  426. package/esm2015/lib/data-fields/enumeration-field/enumeration-field.component.js +0 -21
  427. package/esm2015/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +0 -16
  428. package/esm2015/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +0 -16
  429. package/esm2015/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +0 -16
  430. package/esm2015/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +0 -22
  431. package/esm2015/lib/data-fields/file-field/file-field.component.js +0 -52
  432. package/esm2015/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +0 -33
  433. package/esm2015/lib/data-fields/file-field-list/file-list-field.component.js +0 -32
  434. package/esm2015/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +0 -42
  435. package/esm2015/lib/data-fields/filter-field/filter-field.component.js +0 -27
  436. package/esm2015/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +0 -16
  437. package/esm2015/lib/data-fields/i18n-field/i18n-field.component.js +0 -21
  438. package/esm2015/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +0 -22
  439. package/esm2015/lib/data-fields/multichoice-field/multichoice-field.component.js +0 -21
  440. package/esm2015/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +0 -16
  441. package/esm2015/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +0 -12
  442. package/esm2015/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +0 -34
  443. package/esm2015/lib/data-fields/number-field/number-default-field/number-default-field.component.js +0 -22
  444. package/esm2015/lib/data-fields/number-field/number-field.component.js +0 -32
  445. package/esm2015/lib/data-fields/public-api.js +0 -18
  446. package/esm2015/lib/data-fields/required-label/required-label.component.js +0 -20
  447. package/esm2015/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +0 -27
  448. package/esm2015/lib/data-fields/text-field/password-text-field/password-text-field.component.js +0 -26
  449. package/esm2015/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +0 -23
  450. package/esm2015/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +0 -23
  451. package/esm2015/lib/data-fields/text-field/text-field.component.js +0 -21
  452. package/esm2015/lib/data-fields/text-field/textarea-field/textarea-field.component.js +0 -26
  453. package/esm2015/lib/data-fields/user-field/user-field.component.js +0 -32
  454. package/esm2015/lib/forms/email-submission/email-submission-form.component.js +0 -22
  455. package/esm2015/lib/forms/email-submission/email-submission-form.module.js +0 -24
  456. package/esm2015/lib/forms/forgotten-password/forgotten-password-form-component.module.js +0 -22
  457. package/esm2015/lib/forms/forgotten-password/forgotten-password-form.component.js +0 -29
  458. package/esm2015/lib/forms/login/login-form.component.js +0 -25
  459. package/esm2015/lib/forms/login/login-form.module.js +0 -22
  460. package/esm2015/lib/forms/public-api.js +0 -11
  461. package/esm2015/lib/forms/registration/registration-form.component.js +0 -29
  462. package/esm2015/lib/forms/registration/registration-form.module.js +0 -24
  463. package/esm2015/lib/header/header-modes/edit-mode/edit-mode.component.js +0 -26
  464. package/esm2015/lib/header/header-modes/loading-mode/loading-mode.component.js +0 -16
  465. package/esm2015/lib/header/header-modes/search-mode/search-mode.component.js +0 -34
  466. package/esm2015/lib/header/header-modes/sort-mode/sort-mode.component.js +0 -16
  467. package/esm2015/lib/header/header.component.js +0 -36
  468. package/esm2015/lib/header/header.module.js +0 -39
  469. package/esm2015/lib/header/public-api.js +0 -12
  470. package/esm2015/lib/legal/legal-notice/legal-notice.component.js +0 -21
  471. package/esm2015/lib/legal/legal-notice/legal-notice.module.js +0 -17
  472. package/esm2015/lib/legal/public-api.js +0 -5
  473. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +0 -54
  474. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +0 -43
  475. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +0 -67
  476. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +0 -58
  477. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +0 -30
  478. package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +0 -2
  479. package/esm2015/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +0 -35
  480. package/esm2015/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +0 -30
  481. package/esm2015/lib/navigation/navigation-drawer/navigation-drawer.component.js +0 -30
  482. package/esm2015/lib/navigation/navigation-rail/navigation-rail.component.js +0 -40
  483. package/esm2015/lib/navigation/navigation-tree/navigation-tree.component.js +0 -42
  484. package/esm2015/lib/navigation/navigation.module.js +0 -81
  485. package/esm2015/lib/navigation/public-api.js +0 -9
  486. package/esm2015/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +0 -16
  487. package/esm2015/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +0 -39
  488. package/esm2015/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +0 -32
  489. package/esm2015/lib/navigation/quick-panel/components/quick-panel.component.js +0 -25
  490. package/esm2015/lib/navigation/quick-panel/public-api.js +0 -9
  491. package/esm2015/lib/navigation/quick-panel/quick-panel.module.js +0 -33
  492. package/esm2015/lib/panel/case-panel/case-panel.component.js +0 -50
  493. package/esm2015/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +0 -25
  494. package/esm2015/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +0 -46
  495. package/esm2015/lib/panel/panel.component.js +0 -22
  496. package/esm2015/lib/panel/panel.module.js +0 -55
  497. package/esm2015/lib/panel/public-api.js +0 -10
  498. package/esm2015/lib/panel/public-workflow-panel/public-workflow-panel.component.js +0 -26
  499. package/esm2015/lib/panel/task-panel/task-panel.component.js +0 -113
  500. package/esm2015/lib/panel/task-panel-list/task-list.component.js +0 -31
  501. package/esm2015/lib/panel/workflow-panel/workflow-panel.component.js +0 -26
  502. package/esm2015/lib/routing/public-api.js +0 -3
  503. package/esm2015/lib/routing/redirect/redirect.component.js +0 -28
  504. package/esm2015/lib/routing/redirect.module.js +0 -12
  505. package/esm2015/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +0 -24
  506. package/esm2015/lib/search/advanced-search/advanced-search.module.js +0 -36
  507. package/esm2015/lib/search/advanced-search/public-api.js +0 -8
  508. package/esm2015/lib/search/advanced-search/search-clause-component/search-clause.component.js +0 -16
  509. package/esm2015/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +0 -20
  510. package/esm2015/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +0 -26
  511. package/esm2015/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +0 -27
  512. package/esm2015/lib/search/fulltext-search-component/fulltext-search.component.js +0 -21
  513. package/esm2015/lib/search/public-api.js +0 -10
  514. package/esm2015/lib/search/search-component/case-search/case-search.component.js +0 -24
  515. package/esm2015/lib/search/search-component/search.component.js +0 -98
  516. package/esm2015/lib/search/search-component/task-search/task-search.component.js +0 -24
  517. package/esm2015/lib/search/search.module.js +0 -36
  518. package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +0 -16
  519. package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector.component.js +0 -45
  520. package/esm2015/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +0 -27
  521. package/esm2015/lib/side-menu/content-components/import-net/import-net.component.js +0 -44
  522. package/esm2015/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +0 -27
  523. package/esm2015/lib/side-menu/content-components/load-filter/load-filter.component.js +0 -54
  524. package/esm2015/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +0 -28
  525. package/esm2015/lib/side-menu/content-components/new-case/new-case.component.js +0 -48
  526. package/esm2015/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +0 -35
  527. package/esm2015/lib/side-menu/content-components/option-selector/option-selector.component.js +0 -22
  528. package/esm2015/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +0 -30
  529. package/esm2015/lib/side-menu/content-components/public-api.js +0 -19
  530. package/esm2015/lib/side-menu/content-components/save-filter/save-filter.component.js +0 -53
  531. package/esm2015/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +0 -26
  532. package/esm2015/lib/side-menu/content-components/side-menu-content-component.module.js +0 -50
  533. package/esm2015/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +0 -36
  534. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +0 -19
  535. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +0 -25
  536. package/esm2015/lib/side-menu/content-components/user-assign/user-assign.component.js +0 -29
  537. package/esm2015/lib/side-menu/public-api.js +0 -7
  538. package/esm2015/lib/side-menu/side-menu-container/side-menu-container.component.js +0 -22
  539. package/esm2015/lib/side-menu/side-menu.module.js +0 -27
  540. package/esm2015/lib/tabs/public-api.js +0 -4
  541. package/esm2015/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +0 -22
  542. package/esm2015/lib/tabs/tab-view/tab-view.component.js +0 -32
  543. package/esm2015/lib/tabs/tabs.module.js +0 -28
  544. package/esm2015/lib/task-content/field-component-resolver/field-component-resolver.component.js +0 -21
  545. package/esm2015/lib/task-content/public-api.js +0 -6
  546. package/esm2015/lib/task-content/task-content/task-content.component.js +0 -36
  547. package/esm2015/lib/task-content/task-content.module.js +0 -32
  548. package/esm2015/lib/toolbar/public-api.js +0 -3
  549. package/esm2015/lib/toolbar/toolbar.component.js +0 -26
  550. package/esm2015/lib/toolbar/toolbar.module.js +0 -22
  551. package/esm2015/lib/user/profile/profile.component.js +0 -22
  552. package/esm2015/lib/user/profile/profile.module.js +0 -20
  553. package/esm2015/lib/user/public-api.js +0 -7
  554. package/esm2015/lib/user/user-card/user-card.component.js +0 -22
  555. package/esm2015/lib/user/user.module.js +0 -22
  556. package/esm2015/lib/view/case-view/case-view.module.js +0 -22
  557. package/esm2015/lib/view/case-view/components/case-list/case-list.component.js +0 -31
  558. package/esm2015/lib/view/public-api.js +0 -10
  559. package/esm2015/lib/view/tree-case-view/tree-case-view.module.js +0 -38
  560. package/esm2015/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +0 -22
  561. package/esm2015/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +0 -22
  562. package/esm2015/lib/view/tree-case-view/tree-component/tree.component.js +0 -23
  563. package/esm2015/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +0 -55
  564. package/esm2015/lib/view/workflow-view/workflow-view.component.js +0 -36
  565. package/esm2015/lib/view/workflow-view.module.js +0 -36
  566. package/esm2015/netgrif-components.js +0 -43
  567. package/esm2015/public-api.js +0 -22
  568. package/esm5/lib/admin/admin.module.js +0 -23
  569. package/esm5/lib/admin/public-api.js +0 -5
  570. package/esm5/lib/admin/role-assignment/role-assignment.component.js +0 -33
  571. package/esm5/lib/admin/user-invite/user-invite.component.js +0 -40
  572. package/esm5/lib/authentication/auth.module.js +0 -19
  573. package/esm5/lib/authentication/authentication-overlay/authentication-overlay.component.js +0 -40
  574. package/esm5/lib/authentication/public-api.js +0 -5
  575. package/esm5/lib/dashboard/cards/barchart-card/barchart-card.component.js +0 -55
  576. package/esm5/lib/dashboard/cards/count-card/count-card.component.js +0 -27
  577. package/esm5/lib/dashboard/cards/iframe-card/iframe-card.component.js +0 -28
  578. package/esm5/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +0 -52
  579. package/esm5/lib/dashboard/cards/linechart-card/line-chart-card.component.js +0 -65
  580. package/esm5/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +0 -58
  581. package/esm5/lib/dashboard/cards/portal-card/portal-card.component.js +0 -52
  582. package/esm5/lib/dashboard/dashboard-content/dashboard-content.component.js +0 -27
  583. package/esm5/lib/dashboard/dashboard.module.js +0 -48
  584. package/esm5/lib/dashboard/public-api.js +0 -12
  585. package/esm5/lib/data-fields/boolean-field/boolean-field.component.js +0 -33
  586. package/esm5/lib/data-fields/button-field/button-field.component.js +0 -32
  587. package/esm5/lib/data-fields/data-field-template/data-field-template.component.js +0 -30
  588. package/esm5/lib/data-fields/data-fields.module.js +0 -138
  589. package/esm5/lib/data-fields/date-field/date-field.component.js +0 -34
  590. package/esm5/lib/data-fields/date-time-field/date-time-field.component.js +0 -34
  591. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +0 -28
  592. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +0 -28
  593. package/esm5/lib/data-fields/enumeration-field/enumeration-field.component.js +0 -25
  594. package/esm5/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +0 -20
  595. package/esm5/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +0 -20
  596. package/esm5/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +0 -20
  597. package/esm5/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +0 -27
  598. package/esm5/lib/data-fields/file-field/file-field.component.js +0 -57
  599. package/esm5/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +0 -36
  600. package/esm5/lib/data-fields/file-field-list/file-list-field.component.js +0 -36
  601. package/esm5/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +0 -46
  602. package/esm5/lib/data-fields/filter-field/filter-field.component.js +0 -31
  603. package/esm5/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +0 -20
  604. package/esm5/lib/data-fields/i18n-field/i18n-field.component.js +0 -25
  605. package/esm5/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +0 -26
  606. package/esm5/lib/data-fields/multichoice-field/multichoice-field.component.js +0 -25
  607. package/esm5/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +0 -20
  608. package/esm5/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +0 -19
  609. package/esm5/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +0 -38
  610. package/esm5/lib/data-fields/number-field/number-default-field/number-default-field.component.js +0 -26
  611. package/esm5/lib/data-fields/number-field/number-field.component.js +0 -36
  612. package/esm5/lib/data-fields/public-api.js +0 -18
  613. package/esm5/lib/data-fields/required-label/required-label.component.js +0 -22
  614. package/esm5/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +0 -32
  615. package/esm5/lib/data-fields/text-field/password-text-field/password-text-field.component.js +0 -31
  616. package/esm5/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +0 -28
  617. package/esm5/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +0 -28
  618. package/esm5/lib/data-fields/text-field/text-field.component.js +0 -25
  619. package/esm5/lib/data-fields/text-field/textarea-field/textarea-field.component.js +0 -31
  620. package/esm5/lib/data-fields/user-field/user-field.component.js +0 -36
  621. package/esm5/lib/forms/email-submission/email-submission-form.component.js +0 -26
  622. package/esm5/lib/forms/email-submission/email-submission-form.module.js +0 -28
  623. package/esm5/lib/forms/forgotten-password/forgotten-password-form-component.module.js +0 -26
  624. package/esm5/lib/forms/forgotten-password/forgotten-password-form.component.js +0 -33
  625. package/esm5/lib/forms/login/login-form.component.js +0 -30
  626. package/esm5/lib/forms/login/login-form.module.js +0 -26
  627. package/esm5/lib/forms/public-api.js +0 -11
  628. package/esm5/lib/forms/registration/registration-form.component.js +0 -33
  629. package/esm5/lib/forms/registration/registration-form.module.js +0 -28
  630. package/esm5/lib/header/header-modes/edit-mode/edit-mode.component.js +0 -31
  631. package/esm5/lib/header/header-modes/loading-mode/loading-mode.component.js +0 -20
  632. package/esm5/lib/header/header-modes/search-mode/search-mode.component.js +0 -39
  633. package/esm5/lib/header/header-modes/sort-mode/sort-mode.component.js +0 -20
  634. package/esm5/lib/header/header.component.js +0 -41
  635. package/esm5/lib/header/header.module.js +0 -43
  636. package/esm5/lib/header/public-api.js +0 -12
  637. package/esm5/lib/legal/legal-notice/legal-notice.component.js +0 -25
  638. package/esm5/lib/legal/legal-notice/legal-notice.module.js +0 -21
  639. package/esm5/lib/legal/public-api.js +0 -5
  640. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +0 -58
  641. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +0 -45
  642. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +0 -71
  643. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +0 -62
  644. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +0 -30
  645. package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +0 -2
  646. package/esm5/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +0 -39
  647. package/esm5/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +0 -34
  648. package/esm5/lib/navigation/navigation-drawer/navigation-drawer.component.js +0 -35
  649. package/esm5/lib/navigation/navigation-rail/navigation-rail.component.js +0 -44
  650. package/esm5/lib/navigation/navigation-tree/navigation-tree.component.js +0 -46
  651. package/esm5/lib/navigation/navigation.module.js +0 -85
  652. package/esm5/lib/navigation/public-api.js +0 -9
  653. package/esm5/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +0 -20
  654. package/esm5/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +0 -44
  655. package/esm5/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +0 -37
  656. package/esm5/lib/navigation/quick-panel/components/quick-panel.component.js +0 -30
  657. package/esm5/lib/navigation/quick-panel/public-api.js +0 -9
  658. package/esm5/lib/navigation/quick-panel/quick-panel.module.js +0 -37
  659. package/esm5/lib/panel/case-panel/case-panel.component.js +0 -55
  660. package/esm5/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +0 -29
  661. package/esm5/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +0 -50
  662. package/esm5/lib/panel/panel.component.js +0 -26
  663. package/esm5/lib/panel/panel.module.js +0 -59
  664. package/esm5/lib/panel/public-api.js +0 -10
  665. package/esm5/lib/panel/public-workflow-panel/public-workflow-panel.component.js +0 -30
  666. package/esm5/lib/panel/task-panel/task-panel.component.js +0 -118
  667. package/esm5/lib/panel/task-panel-list/task-list.component.js +0 -36
  668. package/esm5/lib/panel/workflow-panel/workflow-panel.component.js +0 -30
  669. package/esm5/lib/routing/public-api.js +0 -3
  670. package/esm5/lib/routing/redirect/redirect.component.js +0 -30
  671. package/esm5/lib/routing/redirect.module.js +0 -16
  672. package/esm5/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +0 -28
  673. package/esm5/lib/search/advanced-search/advanced-search.module.js +0 -40
  674. package/esm5/lib/search/advanced-search/public-api.js +0 -8
  675. package/esm5/lib/search/advanced-search/search-clause-component/search-clause.component.js +0 -20
  676. package/esm5/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +0 -25
  677. package/esm5/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +0 -31
  678. package/esm5/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +0 -31
  679. package/esm5/lib/search/fulltext-search-component/fulltext-search.component.js +0 -25
  680. package/esm5/lib/search/public-api.js +0 -10
  681. package/esm5/lib/search/search-component/case-search/case-search.component.js +0 -28
  682. package/esm5/lib/search/search-component/search.component.js +0 -105
  683. package/esm5/lib/search/search-component/task-search/task-search.component.js +0 -28
  684. package/esm5/lib/search/search.module.js +0 -40
  685. package/esm5/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +0 -23
  686. package/esm5/lib/side-menu/content-components/filter-selector/filter-selector.component.js +0 -50
  687. package/esm5/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +0 -31
  688. package/esm5/lib/side-menu/content-components/import-net/import-net.component.js +0 -49
  689. package/esm5/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +0 -31
  690. package/esm5/lib/side-menu/content-components/load-filter/load-filter.component.js +0 -58
  691. package/esm5/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +0 -32
  692. package/esm5/lib/side-menu/content-components/new-case/new-case.component.js +0 -53
  693. package/esm5/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +0 -39
  694. package/esm5/lib/side-menu/content-components/option-selector/option-selector.component.js +0 -27
  695. package/esm5/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +0 -34
  696. package/esm5/lib/side-menu/content-components/public-api.js +0 -19
  697. package/esm5/lib/side-menu/content-components/save-filter/save-filter.component.js +0 -57
  698. package/esm5/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +0 -30
  699. package/esm5/lib/side-menu/content-components/side-menu-content-component.module.js +0 -54
  700. package/esm5/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +0 -40
  701. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +0 -23
  702. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +0 -30
  703. package/esm5/lib/side-menu/content-components/user-assign/user-assign.component.js +0 -34
  704. package/esm5/lib/side-menu/public-api.js +0 -7
  705. package/esm5/lib/side-menu/side-menu-container/side-menu-container.component.js +0 -27
  706. package/esm5/lib/side-menu/side-menu.module.js +0 -31
  707. package/esm5/lib/tabs/public-api.js +0 -4
  708. package/esm5/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +0 -26
  709. package/esm5/lib/tabs/tab-view/tab-view.component.js +0 -37
  710. package/esm5/lib/tabs/tabs.module.js +0 -32
  711. package/esm5/lib/task-content/field-component-resolver/field-component-resolver.component.js +0 -25
  712. package/esm5/lib/task-content/public-api.js +0 -6
  713. package/esm5/lib/task-content/task-content/task-content.component.js +0 -41
  714. package/esm5/lib/task-content/task-content.module.js +0 -36
  715. package/esm5/lib/toolbar/public-api.js +0 -3
  716. package/esm5/lib/toolbar/toolbar.component.js +0 -31
  717. package/esm5/lib/toolbar/toolbar.module.js +0 -26
  718. package/esm5/lib/user/profile/profile.component.js +0 -27
  719. package/esm5/lib/user/profile/profile.module.js +0 -24
  720. package/esm5/lib/user/public-api.js +0 -7
  721. package/esm5/lib/user/user-card/user-card.component.js +0 -27
  722. package/esm5/lib/user/user.module.js +0 -26
  723. package/esm5/lib/view/case-view/case-view.module.js +0 -26
  724. package/esm5/lib/view/case-view/components/case-list/case-list.component.js +0 -36
  725. package/esm5/lib/view/public-api.js +0 -10
  726. package/esm5/lib/view/tree-case-view/tree-case-view.module.js +0 -42
  727. package/esm5/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +0 -27
  728. package/esm5/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +0 -27
  729. package/esm5/lib/view/tree-case-view/tree-component/tree.component.js +0 -28
  730. package/esm5/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +0 -60
  731. package/esm5/lib/view/workflow-view/workflow-view.component.js +0 -41
  732. package/esm5/lib/view/workflow-view.module.js +0 -40
  733. package/esm5/netgrif-components.js +0 -43
  734. package/esm5/public-api.js +0 -22
  735. package/fesm2015/netgrif-components.js +0 -4034
  736. package/fesm2015/netgrif-components.js.map +0 -1
  737. package/fesm5/netgrif-components.js +0 -4419
  738. package/fesm5/netgrif-components.js.map +0 -1
  739. package/netgrif-components.metadata.json +0 -1
@@ -0,0 +1,28 @@
1
+ import { Component, Inject, Optional } from '@angular/core';
2
+ import { AbstractEnumerationFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../data-field-template/data-field-template.component";
5
+ import * as i2 from "./enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component";
6
+ import * as i3 from "./enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component";
7
+ import * as i4 from "./enumeration-list-field/enumeration-list-field.component";
8
+ import * as i5 from "./enumeration-stepper-field/enumeration-stepper-field.component";
9
+ import * as i6 from "./enumeration-icon-field/enumeration-icon-field.component";
10
+ import * as i7 from "./enumeration-select-field/enumeration-select-field.component";
11
+ import * as i8 from "@angular/common";
12
+ export class EnumerationFieldComponent extends AbstractEnumerationFieldComponent {
13
+ constructor(informAboutInvalidData) {
14
+ super(informAboutInvalidData);
15
+ }
16
+ }
17
+ EnumerationFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
18
+ EnumerationFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationFieldComponent, selector: "nc-enumeration-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"enumFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #enumFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div [ngSwitch]=\"dataField.getType()\">\n <nc-enumeration-autocomplete-dynamic-field *ngSwitchCase=\"'autocomplete_dynamic'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-dynamic-field>\n <nc-enumeration-autocomplete-select-field *ngSwitchCase=\"'autocomplete'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-select-field>\n <nc-enumeration-list-field *ngSwitchCase=\"'list'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-list-field>\n <nc-enumeration-stepper-field *ngSwitchCase=\"'stepper'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-stepper-field>\n <nc-enumeration-icon-field *ngSwitchCase=\"'icon'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-icon-field>\n <nc-enumeration-select-field *ngSwitchDefault\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-select-field>\n </div>\n</ng-template>\n", styles: [""], components: [{ type: i1.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i2.EnumerationAutocompleteDynamicFieldComponent, selector: "nc-enumeration-autocomplete-dynamic-field" }, { type: i3.EnumerationAutocompleteSelectFieldComponent, selector: "nc-enumeration-autocomplete-select-field" }, { type: i4.EnumerationListFieldComponent, selector: "nc-enumeration-list-field" }, { type: i5.EnumerationStepperFieldComponent, selector: "nc-enumeration-stepper-field" }, { type: i6.EnumerationIconFieldComponent, selector: "nc-enumeration-icon-field" }, { type: i7.EnumerationSelectFieldComponent, selector: "nc-enumeration-select-field" }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationFieldComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ selector: 'nc-enumeration-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"enumFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #enumFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div [ngSwitch]=\"dataField.getType()\">\n <nc-enumeration-autocomplete-dynamic-field *ngSwitchCase=\"'autocomplete_dynamic'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-dynamic-field>\n <nc-enumeration-autocomplete-select-field *ngSwitchCase=\"'autocomplete'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-select-field>\n <nc-enumeration-list-field *ngSwitchCase=\"'list'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-list-field>\n <nc-enumeration-stepper-field *ngSwitchCase=\"'stepper'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-stepper-field>\n <nc-enumeration-icon-field *ngSwitchCase=\"'icon'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-icon-field>\n <nc-enumeration-select-field *ngSwitchDefault\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-select-field>\n </div>\n</ng-template>\n", styles: [""] }]
22
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
23
+ type: Optional
24
+ }, {
25
+ type: Inject,
26
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
27
+ }] }]; } });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bWVyYXRpb24tZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bWVyYXRpb24tZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzFELE9BQU8sRUFBQyxpQ0FBaUMsRUFBRSw2QkFBNkIsRUFBQyxNQUFNLDBCQUEwQixDQUFDOzs7Ozs7Ozs7O0FBTzFHLE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxpQ0FBaUM7SUFDNUUsWUFBK0Qsc0JBQXNDO1FBQ2pHLEtBQUssQ0FBQyxzQkFBc0IsQ0FBQyxDQUFDO0lBQ2xD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ICAgICAgICAgICAgICBbZGF0YUZpZWxkXT1cImRhdGFGaWVsZFwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbZGF0YUZpZWxkVGVtcGxhdGVdPVwiZW51bUZpZWxkVGVtcGxhdGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW29mZnNldF09XCJ0YXNrT2Zmc2V0XCI+XG48L25jLWRhdGEtZmllbGQtdGVtcGxhdGU+XG5cbjxuZy10ZW1wbGF0ZSAjZW51bUZpZWxkVGVtcGxhdGUgbGV0LXNob3dMYXJnZUxheW91dD1cInNob3dMYXJnZUxheW91dFwiPlxuICAgIDxkaXYgW25nU3dpdGNoXT1cImRhdGFGaWVsZC5nZXRUeXBlKClcIj5cbiAgICAgICAgPG5jLWVudW1lcmF0aW9uLWF1dG9jb21wbGV0ZS1keW5hbWljLWZpZWxkICpuZ1N3aXRjaENhc2U9XCInYXV0b2NvbXBsZXRlX2R5bmFtaWMnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1hdXRvY29tcGxldGUtZHluYW1pYy1maWVsZD5cbiAgICAgICAgPG5jLWVudW1lcmF0aW9uLWF1dG9jb21wbGV0ZS1zZWxlY3QtZmllbGQgKm5nU3dpdGNoQ2FzZT1cIidhdXRvY29tcGxldGUnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1hdXRvY29tcGxldGUtc2VsZWN0LWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tbGlzdC1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ2xpc3QnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1saXN0LWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tc3RlcHBlci1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ3N0ZXBwZXInXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1zdGVwcGVyLWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24taWNvbi1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ2ljb24nXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd0xhcmdlTGF5b3V0XT1cInNob3dMYXJnZUxheW91dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2VudW1lcmF0aW9uRmllbGRdPVwiZGF0YUZpZWxkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1pY29uLWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkICpuZ1N3aXRjaERlZmF1bHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd0xhcmdlTGF5b3V0XT1cInNob3dMYXJnZUxheW91dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2VudW1lcmF0aW9uRmllbGRdPVwiZGF0YUZpZWxkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1zZWxlY3QtZmllbGQ+XG4gICAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
@@ -0,0 +1,22 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractEnumerationIconFieldComponent } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../required-label/required-label.component";
5
+ import * as i2 from "@angular/material/icon";
6
+ import * as i3 from "@angular/material/divider";
7
+ import * as i4 from "@angular/common";
8
+ import * as i5 from "@angular/material/form-field";
9
+ import * as i6 from "@angular/flex-layout/extended";
10
+ import * as i7 from "@angular/flex-layout/flex";
11
+ export class EnumerationIconFieldComponent extends AbstractEnumerationIconFieldComponent {
12
+ constructor() {
13
+ super();
14
+ }
15
+ }
16
+ EnumerationIconFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationIconFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ EnumerationIconFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationIconFieldComponent, selector: "nc-enumeration-icon-field", usesInheritance: true, ngImport: i0, template: "<div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <div *ngFor=\"let option of enumerationField.choices; let i = index\">\n <div class=\"enum-icon-item enum-icon-item-row\" (click)=\"setEnumValue(option.key)\" [ngClass]=\"{'enum-icon-item-active': isSelected(option.key)}\">\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'material'\">{{resolveIconValue(option.key)}}</mat-icon>\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'svg'\" [svgIcon]=\"resolveIconValue(option.key)\"></mat-icon>\n <span fxFlex class=\"enum-icon-text\">{{option.value}}</span>\n <mat-icon *ngIf=\"resolveArrow(option.key)\">arrow_forward</mat-icon>\n </div>\n <mat-divider class=\"enum-icon-divider\" *ngIf=\"i !== enumerationField.choices.length - 1 && resolveDivider(option.key)\"></mat-divider>\n </div>\n</div>\n", styles: [".enum-icon-item{font-size:18px;font-family:Asap,sans-serif;font-weight:500;line-height:24px;letter-spacing:-.2px;text-align:left;color:#333;text-decoration:none;padding:25px 0}.enum-icon-item-row:hover{cursor:pointer}.enum-icon-item:focus,.enum-icon-item-row:focus{outline:none}.enum-icon-divider{position:relative!important}.enum-icon-text{padding:0 16px}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.MatLabel, selector: "mat-label" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i7.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationIconFieldComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'nc-enumeration-icon-field', template: "<div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <div *ngFor=\"let option of enumerationField.choices; let i = index\">\n <div class=\"enum-icon-item enum-icon-item-row\" (click)=\"setEnumValue(option.key)\" [ngClass]=\"{'enum-icon-item-active': isSelected(option.key)}\">\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'material'\">{{resolveIconValue(option.key)}}</mat-icon>\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'svg'\" [svgIcon]=\"resolveIconValue(option.key)\"></mat-icon>\n <span fxFlex class=\"enum-icon-text\">{{option.value}}</span>\n <mat-icon *ngIf=\"resolveArrow(option.key)\">arrow_forward</mat-icon>\n </div>\n <mat-divider class=\"enum-icon-divider\" *ngIf=\"i !== enumerationField.choices.length - 1 && resolveDivider(option.key)\"></mat-divider>\n </div>\n</div>\n", styles: [".enum-icon-item{font-size:18px;font-family:Asap,sans-serif;font-weight:500;line-height:24px;letter-spacing:-.2px;text-align:left;color:#333;text-decoration:none;padding:25px 0}.enum-icon-item-row:hover{cursor:pointer}.enum-icon-item:focus,.enum-icon-item-row:focus{outline:none}.enum-icon-divider{position:relative!important}.enum-icon-text{padding:0 16px}\n"] }]
21
+ }], ctorParameters: function () { return []; } });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24taWNvbi1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9lbnVtZXJhdGlvbi1maWVsZC9lbnVtZXJhdGlvbi1pY29uLWZpZWxkL2VudW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2xhc3M9XCJlbnVtLWljb24tdGV4dFwiPnt7b3B0aW9uLnZhbHVlfX08L3NwYW4+XG4gICAgICAgICAgICA8bWF0LWljb24gKm5nSWY9XCJyZXNvbHZlQXJyb3cob3B0aW9uLmtleSlcIj5hcnJvd19mb3J3YXJkPC9tYXQtaWNvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxtYXQtZGl2aWRlciBjbGFzcz1cImVudW0taWNvbi1kaXZpZGVyXCIgKm5nSWY9XCJpICE9PSBlbnVtZXJhdGlvbkZpZWxkLmNob2ljZXMubGVuZ3RoIC0gMSAmJiByZXNvbHZlRGl2aWRlcihvcHRpb24ua2V5KVwiPjwvbWF0LWRpdmlkZXI+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,22 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractEnumerationListFieldComponent } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../required-label/required-label.component";
5
+ import * as i2 from "@angular/material/button";
6
+ import * as i3 from "@angular/material/radio";
7
+ import * as i4 from "@angular/forms";
8
+ import * as i5 from "@angular/common";
9
+ import * as i6 from "@angular/material/form-field";
10
+ import * as i7 from "@ngx-translate/core";
11
+ export class EnumerationListFieldComponent extends AbstractEnumerationListFieldComponent {
12
+ constructor() {
13
+ super();
14
+ }
15
+ }
16
+ EnumerationListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationListFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ EnumerationListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationListFieldComponent, selector: "nc-enumeration-list-field", usesInheritance: true, ngImport: i0, template: "<mat-radio-group\n color=\"primary\"\n class=\"full-width example-radio-group\"\n aria-labelledby=\"example-radio-group-label\"\n [required]=\"enumerationField.behavior.required\"\n [formControl]=\"formControlRef\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <button *ngIf=\"enumerationField.behavior.editable\" mat-button (click)=\"resetEnum()\">{{'dataField.enum.reset' | translate}}</button>\n <br></mat-label>\n <mat-radio-button class=\"example-radio-button\" *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-radio-button>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-radio-group>\n", styles: [".example-radio-group{display:flex;flex-direction:column;margin:16px 0}.example-radio-button{margin:8px}.full-width{width:100%}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i3.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatLabel, selector: "mat-label" }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i7.TranslatePipe } });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationListFieldComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'nc-enumeration-list-field', template: "<mat-radio-group\n color=\"primary\"\n class=\"full-width example-radio-group\"\n aria-labelledby=\"example-radio-group-label\"\n [required]=\"enumerationField.behavior.required\"\n [formControl]=\"formControlRef\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <button *ngIf=\"enumerationField.behavior.editable\" mat-button (click)=\"resetEnum()\">{{'dataField.enum.reset' | translate}}</button>\n <br></mat-label>\n <mat-radio-button class=\"example-radio-button\" *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-radio-button>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-radio-group>\n", styles: [".example-radio-group{display:flex;flex-direction:column;margin:16px 0}.example-radio-button{margin:8px}.full-width{width:100%}\n"] }]
21
+ }], ctorParameters: function () { return []; } });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tbGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9lbnVtZXJhdGlvbi1maWVsZC9lbnVtZXJhdGlvbi1saXN0LWZpZWxkL2VudW1lcmF0aW9uLWxpc3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHM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VsZC5pc0ludmFsaWQoZm9ybUNvbnRyb2xSZWYpXCI+e3snZGF0YUZpZWxkLnZhbGlkYXRpb25zLnJlcXVpcmVkJyB8IHRyYW5zbGF0ZX19PC9tYXQtZXJyb3I+XG48L21hdC1yYWRpby1ncm91cD5cbiJdfQ==
@@ -0,0 +1,21 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractEnumerationSelectFieldComponent } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/material/form-field";
5
+ import * as i2 from "@angular/material/select";
6
+ import * as i3 from "@angular/material/core";
7
+ import * as i4 from "@angular/common";
8
+ import * as i5 from "@angular/forms";
9
+ import * as i6 from "@ngx-translate/core";
10
+ export class EnumerationSelectFieldComponent extends AbstractEnumerationSelectFieldComponent {
11
+ constructor() {
12
+ super();
13
+ }
14
+ }
15
+ EnumerationSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationSelectFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ EnumerationSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationSelectFieldComponent, selector: "nc-enumeration-select-field", usesInheritance: true, ngImport: i0, template: "<mat-form-field [appearance]=\"enumerationField.materialAppearance\" class=\"full-width\" color=\"primary\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}</mat-label>\n <mat-select [formControl]=\"formControlRef\"\n [placeholder]=\"enumerationField.placeholder\"\n [required]=\"enumerationField.behavior.required\">\n <mat-option [value]=\"null\">---</mat-option>\n <mat-option *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-option>\n </mat-select>\n <mat-hint>{{enumerationField.description}}</mat-hint>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-form-field>\n", styles: [".full-width{display:block;margin:0 auto;width:100%}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatLabel, selector: "mat-label" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i6.TranslatePipe } });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationSelectFieldComponent, decorators: [{
18
+ type: Component,
19
+ args: [{ selector: 'nc-enumeration-select-field', template: "<mat-form-field [appearance]=\"enumerationField.materialAppearance\" class=\"full-width\" color=\"primary\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}</mat-label>\n <mat-select [formControl]=\"formControlRef\"\n [placeholder]=\"enumerationField.placeholder\"\n [required]=\"enumerationField.behavior.required\">\n <mat-option [value]=\"null\">---</mat-option>\n <mat-option *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-option>\n </mat-select>\n <mat-hint>{{enumerationField.description}}</mat-hint>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-form-field>\n", styles: [".full-width{display:block;margin:0 auto;width:100%}\n"] }]
20
+ }], ctorParameters: function () { return []; } });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2VudW1lcmF0aW9uLWZpZWxkL2VudW1lcmF0aW9uLXNlbGVjdC1maWVsZC9lbnVtZXJhdGlvbi1zZWxlY3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkL2VudW1lcmF0aW9uLXNlbGVjdC1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3hDLE9BQU8sRUFBQyx1Q0FBdUMsRUFBQyxNQUFNLDBCQUEwQixDQUFDOzs7Ozs7OztBQU9qRixNQUFNLE9BQU8sK0JBQWdDLFNBQVEsdUNBQXVDO0lBQ3hGO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDOzs2SEFIUSwrQkFBK0I7aUhBQS9CLCtCQUErQiwwRkNSNUMsNHlCQWFBOzRGRExhLCtCQUErQjtrQkFMM0MsU0FBUzsrQkFDSSw2QkFBNkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbX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lvci5yZXF1aXJlZFwiPlxuICAgICAgICA8bWF0LW9wdGlvbiBbdmFsdWVdPVwibnVsbFwiPi0tLTwvbWF0LW9wdGlvbj5cbiAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBlbnVtZXJhdGlvbkZpZWxkLmNob2ljZXNcIiBbdmFsdWVdPVwib3B0aW9uLmtleVwiPlxuICAgICAgICAgICAge3tvcHRpb24udmFsdWV9fVxuICAgICAgICA8L21hdC1vcHRpb24+XG4gICAgPC9tYXQtc2VsZWN0PlxuICAgIDxtYXQtaGludD57e2VudW1lcmF0aW9uRmllbGQuZGVzY3JpcHRpb259fTwvbWF0LWhpbnQ+XG4gICAgPG1hdC1lcnJvciAqbmdJZj1cImVudW1lcmF0aW9uRmllbGQuaXNJbnZhbGlkKGZvcm1Db250cm9sUmVmKVwiPnt7J2RhdGFGaWVsZC52YWxpZGF0aW9ucy5yZXF1aXJlZCcgfCB0cmFuc2xhdGV9fTwvbWF0LWVycm9yPlxuPC9tYXQtZm9ybS1maWVsZD5cbiJdfQ==
@@ -0,0 +1,23 @@
1
+ import { Component } from '@angular/core';
2
+ import { AbstractEnumerationStepperFieldComponent } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../../required-label/required-label.component";
5
+ import * as i2 from "@angular/material/icon";
6
+ import * as i3 from "@angular/common";
7
+ import * as i4 from "@angular/material/form-field";
8
+ import * as i5 from "@angular/material/tooltip";
9
+ import * as i6 from "@angular/flex-layout/flex";
10
+ import * as i7 from "@angular/flex-layout/extended";
11
+ export class EnumerationStepperFieldComponent extends AbstractEnumerationStepperFieldComponent {
12
+ constructor(ref) {
13
+ super(ref);
14
+ this.ref = ref;
15
+ }
16
+ }
17
+ EnumerationStepperFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationStepperFieldComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
18
+ EnumerationStepperFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationStepperFieldComponent, selector: "nc-enumeration-stepper-field", usesInheritance: true, ngImport: i0, template: "<mat-label class=\"stepper-label\" *ngIf=\"!showLargeLayout.value\" matTooltipClass=\"stepper-tooltip-text\" [matTooltip]=\"enumerationField.description\" matTooltipPosition=\"right\">\n {{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"!enumerationField.disabled\" ></nc-required-label>\n</mat-label>\n\n<div class=\"horizontal-stepper\" fxLayout=\"row\" *ngIf=\"!arrowStepper\">\n <div class=\"horizontal-step\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <div class=\"horizontal-step-header\" #oneStep>\n <div class=\"horizontal-state\" [ngClass]=\"{'horizontal-state-primary': canShowDoneIcon(i), 'horizontal-state-secondary': !canShowDoneIcon(i)}\">\n <mat-icon *ngIf=\"canShowDoneIcon(i + 1)\">done</mat-icon>\n </div>\n <div class=\"horizontal-state-label\">{{option.value}}</div>\n </div>\n <div class=\"horizontal-line\" fxFlex *ngIf=\"i < enumerationField.choices.length - 1\"></div>\n </ng-template>\n </div>\n</div>\n\n<div *ngIf=\"arrowStepper\" class=\"stepper-min-height\" fxLayoutAlign=\"stretch center\" fxLayout=\"row\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <span class=\"stepper-arrow-text\" [ngClass]=\"{'stepper-arrow-selected': isSelected(option.key), 'stepper-disabled': enumerationField.disabled}\"\n (click)=\"setStepperValue(option.key)\" fxFlex fxLayoutAlign=\"center center\">{{option.value}}</span>\n <span fxFlex *ngIf=\"i < enumerationField.choices.length - 1\" fxLayoutAlign=\"center center\">\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </ng-template>\n</div>\n", styles: [".horizontal-stepper{display:flex}.horizontal-step-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px;overflow:hidden;outline:none;position:relative;-webkit-tap-highlight-color:transparent;display:flex;align-items:center}.horizontal-step-header:not(:first-child):before{left:0}.horizontal-step-header:not(:last-child):after{right:0}.horizontal-step-header:not(:last-child):after,.horizontal-step-header:not(:first-child):before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);top:36px}.horizontal-state{color:#fff;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.horizontal-state-label{display:inline-block;overflow:hidden;text-overflow:ellipsis;min-width:36px;vertical-align:middle;padding:16px 0 0;text-align:center;width:100%;word-wrap:break-word}.horizontal-line{position:relative;top:36px;border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:12px}.horizontal-step{flex:auto;display:flex}.stepper-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.stepper-tooltip-text{color:#fff;padding:10px 15px}.stepper-min-height{border-radius:10px;min-height:70px;background-color:#f9f9f9}.stepper-arrow-text{font-weight:500;font-size:16px;letter-spacing:-.2;line-height:24px;color:#333;cursor:pointer}.stepper-disabled{cursor:unset!important}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatLabel, selector: "mat-label" }, { type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i6.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i6.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i6.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationStepperFieldComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ selector: 'nc-enumeration-stepper-field', template: "<mat-label class=\"stepper-label\" *ngIf=\"!showLargeLayout.value\" matTooltipClass=\"stepper-tooltip-text\" [matTooltip]=\"enumerationField.description\" matTooltipPosition=\"right\">\n {{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"!enumerationField.disabled\" ></nc-required-label>\n</mat-label>\n\n<div class=\"horizontal-stepper\" fxLayout=\"row\" *ngIf=\"!arrowStepper\">\n <div class=\"horizontal-step\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <div class=\"horizontal-step-header\" #oneStep>\n <div class=\"horizontal-state\" [ngClass]=\"{'horizontal-state-primary': canShowDoneIcon(i), 'horizontal-state-secondary': !canShowDoneIcon(i)}\">\n <mat-icon *ngIf=\"canShowDoneIcon(i + 1)\">done</mat-icon>\n </div>\n <div class=\"horizontal-state-label\">{{option.value}}</div>\n </div>\n <div class=\"horizontal-line\" fxFlex *ngIf=\"i < enumerationField.choices.length - 1\"></div>\n </ng-template>\n </div>\n</div>\n\n<div *ngIf=\"arrowStepper\" class=\"stepper-min-height\" fxLayoutAlign=\"stretch center\" fxLayout=\"row\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <span class=\"stepper-arrow-text\" [ngClass]=\"{'stepper-arrow-selected': isSelected(option.key), 'stepper-disabled': enumerationField.disabled}\"\n (click)=\"setStepperValue(option.key)\" fxFlex fxLayoutAlign=\"center center\">{{option.value}}</span>\n <span fxFlex *ngIf=\"i < enumerationField.choices.length - 1\" fxLayoutAlign=\"center center\">\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </ng-template>\n</div>\n", styles: [".horizontal-stepper{display:flex}.horizontal-step-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px;overflow:hidden;outline:none;position:relative;-webkit-tap-highlight-color:transparent;display:flex;align-items:center}.horizontal-step-header:not(:first-child):before{left:0}.horizontal-step-header:not(:last-child):after{right:0}.horizontal-step-header:not(:last-child):after,.horizontal-step-header:not(:first-child):before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);top:36px}.horizontal-state{color:#fff;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.horizontal-state-label{display:inline-block;overflow:hidden;text-overflow:ellipsis;min-width:36px;vertical-align:middle;padding:16px 0 0;text-align:center;width:100%;word-wrap:break-word}.horizontal-line{position:relative;top:36px;border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:12px}.horizontal-step{flex:auto;display:flex}.stepper-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.stepper-tooltip-text{color:#fff;padding:10px 15px}.stepper-min-height{border-radius:10px;min-height:70px;background-color:#f9f9f9}.stepper-arrow-text{font-weight:500;font-size:16px;letter-spacing:-.2;line-height:24px;color:#333;cursor:pointer}.stepper-disabled{cursor:unset!important}\n"] }]
22
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
23
+ //# sourceMappingURL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iAqbmdJZj1cImFycm93U3RlcHBlclwiIGNsYXNzPVwic3RlcHBlci1taW4taGVpZ2h0XCIgZnhMYXlvdXRBbGlnbj1cInN0cmV0Y2ggY2VudGVyXCIgZnhMYXlvdXQ9XCJyb3dcIj5cbiAgICA8bmctdGVtcGxhdGUgbmdGb3IgbGV0LW9wdGlvbiBbbmdGb3JPZl09XCJlbnVtZXJhdGlvbkZpZWxkLmNob2ljZXNcIiBsZXQtaT1cImluZGV4XCI+XG4gICAgICAgIDxzcGFuIGNsYXNzPVwic3RlcHBlci1hcnJvdy10ZXh0XCIgW25nQ2xhc3NdPVwieydzdGVwcGVyLWFycm93LXNlbGVjdGVkJzogaXNTZWxlY3RlZChvcHRpb24ua2V5KSwgJ3N0ZXBwZXItZGlzYWJsZWQnOiBlbnVtZXJhdGlvbkZpZWxkLmRpc2FibGVkfVwiXG4gICAgICAgICAgICAgIChjbGljayk9XCJzZXRTdGVwcGVyVmFsdWUob3B0aW9uLmtleSlcIiBmeEZsZXggZnhMYXlvdXRBbGlnbj1cImNlbnRlciBjZW50ZXJcIj57e29wdGlvbi52YWx1ZX19PC9zcGFuPlxuICAgICAgICA8c3BhbiBmeEZsZXggKm5nSWY9XCJpIDwgZW51bWVyYXRpb25GaWVsZC5jaG9pY2VzLmxlbmd0aCAtIDFcIiBmeExheW91dEFsaWduPVwiY2VudGVyIGNlbnRlclwiPlxuICAgICAgICAgICAgPG1hdC1pY29uPmFycm93X2ZvcndhcmRfaW9zPC9tYXQtaWNvbj5cbiAgICAgICAgPC9zcGFuPlxuICAgIDwvbmctdGVtcGxhdGU+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,51 @@
1
+ import { Component, Inject, Optional } from '@angular/core';
2
+ import { AbstractFileFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
3
+ import { PreviewDialogComponent } from './preview-dialog/preview-dialog.component';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@netgrif/components-core";
6
+ import * as i2 from "@ngx-translate/core";
7
+ import * as i3 from "@angular/platform-browser";
8
+ import * as i4 from "@angular/material/dialog";
9
+ import * as i5 from "../data-field-template/data-field-template.component";
10
+ import * as i6 from "../required-label/required-label.component";
11
+ import * as i7 from "@angular/material/button";
12
+ import * as i8 from "@angular/material/icon";
13
+ import * as i9 from "@angular/material/progress-bar";
14
+ import * as i10 from "@angular/material/progress-spinner";
15
+ import * as i11 from "@angular/common";
16
+ import * as i12 from "@angular/flex-layout/flex";
17
+ import * as i13 from "@angular/material/form-field";
18
+ import * as i14 from "@angular/material/tooltip";
19
+ import * as i15 from "@angular/flex-layout/extended";
20
+ import * as i16 from "@angular/forms";
21
+ import * as i17 from "angular-resize-event";
22
+ export class FileFieldComponent extends AbstractFileFieldComponent {
23
+ constructor(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData, _sanitizer, dialog) {
24
+ super(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData, _sanitizer);
25
+ this._sanitizer = _sanitizer;
26
+ this.dialog = dialog;
27
+ }
28
+ showPreviewDialog() {
29
+ super.showPreviewDialog();
30
+ this.dialog.open(PreviewDialogComponent, {
31
+ data: {
32
+ dataField: this.dataField,
33
+ imagePreview: this.previewSource,
34
+ imageFull: this.fullSource,
35
+ extension: this.previewExtension
36
+ }
37
+ });
38
+ }
39
+ }
40
+ FileFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileFieldComponent, deps: [{ token: i1.TaskResourceService }, { token: i1.LoggerService }, { token: i1.SnackBarService }, { token: i2.TranslateService }, { token: i1.EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }, { token: i3.DomSanitizer }, { token: i4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
41
+ FileFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileFieldComponent, selector: "nc-file-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <div fxFlex=\"{{!filePreview ? '100' : '75'}}\">\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span (click)=\"isEmpty() ? chooseFile() : download()\" fxFlex\n [matTooltip]=\"isEmpty() ? '' : ('dataField.file.clickToDownload' | translate : {fileName: constructDisplayName()})\"\n class=\"input-name-ellipsis\"\n [ngClass]=\"{'input-placeholder': isEmpty(), 'no-cursor': isEmpty() && formControl.disabled}\">{{constructDisplayName()}}</span>\n <button (click)=\"deleteFile()\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!isEmpty() && !formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"false\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\">\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\"\n *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\"\n *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n <div *ngIf=\"filePreview\" fxFlex=\"5\"></div>\n <div *ngIf=\"filePreview\" fxFlex=\"20\" fxLayout=\"row\" fxLayoutAlign=\"center center\" #imageDiv\n (resized)=\"changeMaxWidth($event)\"\n [ngStyle]=\"{'max-height': getHeight()+'px'}\">\n <img *ngIf=\"previewSource !== undefined && !state.downloading && isDisplayable\" class=\"image-preview\" #imageEl\n [ngStyle]=\"!isBorderLGBTQ() && !isBorderDefault() && {\n 'border-width': getPreviewBorderWidth(),\n 'border-style': getPreviewBorderStyle(),\n 'border-color': getPreviewBorderColor()\n }\"\n [ngClass]=\"{'border-LGBTQ': isBorderLGBTQ(), 'border-default': isBorderDefault()}\"\n [src]=\"previewSource\" alt=\"Image preview\" (click)=\"showPreviewDialog()\"/>\n <mat-spinner *ngIf=\"previewSource === undefined && !!state.downloading && isDisplayable\"\n [diameter]=\"26\"></mat-spinner>\n </div>\n </div>\n</ng-template>\n", styles: [".invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.file-field-image{width:120px}.file-field-image-wrapper{border-radius:3px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;height:54.81px}.form-input:hover{border-color:#000}.placeholder{color:#0000006b!important}.file-hint-error{padding:0 1em;font-size:75%}.image-preview{width:auto;height:auto;cursor:pointer}.no-cursor{cursor:default!important}.border-LGBTQ{border:5px solid transparent;border-image:linear-gradient(to bottom right,#B827FC 0%,#2C90FC 25%,#B8FD33 50%,#FEC837 75%,#FD1892 100%);border-image-slice:1}.border-default{border-width:1px;border-style:solid;border-color:#000}\n"], components: [{ type: i5.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i6.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i10.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i12.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i12.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i13.MatLabel, selector: "mat-label" }, { type: i14.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i11.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i15.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i16.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i16.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i16.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i13.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i13.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i15.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i17.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "translate": i2.TranslatePipe } });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileFieldComponent, decorators: [{
43
+ type: Component,
44
+ args: [{ selector: 'nc-file-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <div fxFlex=\"{{!filePreview ? '100' : '75'}}\">\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span (click)=\"isEmpty() ? chooseFile() : download()\" fxFlex\n [matTooltip]=\"isEmpty() ? '' : ('dataField.file.clickToDownload' | translate : {fileName: constructDisplayName()})\"\n class=\"input-name-ellipsis\"\n [ngClass]=\"{'input-placeholder': isEmpty(), 'no-cursor': isEmpty() && formControl.disabled}\">{{constructDisplayName()}}</span>\n <button (click)=\"deleteFile()\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!isEmpty() && !formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"false\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\">\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\"\n *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\"\n *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n <div *ngIf=\"filePreview\" fxFlex=\"5\"></div>\n <div *ngIf=\"filePreview\" fxFlex=\"20\" fxLayout=\"row\" fxLayoutAlign=\"center center\" #imageDiv\n (resized)=\"changeMaxWidth($event)\"\n [ngStyle]=\"{'max-height': getHeight()+'px'}\">\n <img *ngIf=\"previewSource !== undefined && !state.downloading && isDisplayable\" class=\"image-preview\" #imageEl\n [ngStyle]=\"!isBorderLGBTQ() && !isBorderDefault() && {\n 'border-width': getPreviewBorderWidth(),\n 'border-style': getPreviewBorderStyle(),\n 'border-color': getPreviewBorderColor()\n }\"\n [ngClass]=\"{'border-LGBTQ': isBorderLGBTQ(), 'border-default': isBorderDefault()}\"\n [src]=\"previewSource\" alt=\"Image preview\" (click)=\"showPreviewDialog()\"/>\n <mat-spinner *ngIf=\"previewSource === undefined && !!state.downloading && isDisplayable\"\n [diameter]=\"26\"></mat-spinner>\n </div>\n </div>\n</ng-template>\n", styles: [".invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.file-field-image{width:120px}.file-field-image-wrapper{border-radius:3px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;height:54.81px}.form-input:hover{border-color:#000}.placeholder{color:#0000006b!important}.file-hint-error{padding:0 1em;font-size:75%}.image-preview{width:auto;height:auto;cursor:pointer}.no-cursor{cursor:default!important}.border-LGBTQ{border:5px solid transparent;border-image:linear-gradient(to bottom right,#B827FC 0%,#2C90FC 25%,#B8FD33 50%,#FEC837 75%,#FD1892 100%);border-image-slice:1}.border-default{border-width:1px;border-style:solid;border-color:#000}\n"] }]
45
+ }], ctorParameters: function () { return [{ type: i1.TaskResourceService }, { type: i1.LoggerService }, { type: i1.SnackBarService }, { type: i2.TranslateService }, { type: i1.EventService }, { type: undefined, decorators: [{
46
+ type: Optional
47
+ }, {
48
+ type: Inject,
49
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
50
+ }] }, { type: i3.DomSanitizer }, { type: i4.MatDialog }]; } });
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9maWxlLWZpZWxkL2ZpbGUtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsZS1maWVsZC9maWxlLWZpZWxkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUUxRCxPQUFPLEVBQ0gsMEJBQTBCLEVBRTFCLDZCQUE2QixFQUdoQyxNQUFNLDBCQUEwQixDQUFDO0FBR2xDLE9BQU8sRUFBQyxzQkFBc0IsRUFBQyxNQUFNLDJDQUEyQyxDQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBT2pGLE1BQU0sT0FBTyxrQkFBbU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AgICAgICAgICAgICBldmVudFNlcnZpY2U6IEV2ZW50U2VydmljZSxcbiAgICAgICAgICAgICAgICBAT3B0aW9uYWwoKSBASW5qZWN0KE5BRV9JTkZPUk1fQUJPVVRfSU5WQUxJRF9EQVRBKSBpbmZvcm1BYm91dEludmFsaWREYXRhOiBib29sZWFuIHwgbnVsbCxcbiAgICAgICAgICAgICAgICBwcm90ZWN0ZWQgX3Nhbml0aXplcjogRG9tU2FuaXRpemVyLFxuICAgICAgICAgICAgICAgIHByb3RlY3RlZCBkaWFsb2c6IE1hdERpYWxvZykge1xuICAgICAgICBzdXBlcih0YXNrUmVzb3VyY2VTZXJ2aWNlLCBsb2csIHNuYWNrYmFyLCB0cmFuc2xhdGUsIGV2ZW50U2VydmljZSwgaW5mb3JtQWJvdXRJbnZhbGlkRGF0YSwgX3Nhbml0aXplcik7XG4gICAgfVxuXG4gICAgcHVibGljIHNob3dQcmV2aWV3RGlhbG9nKCkge1xuICAgICAgICBzdXBlci5zaG93UHJldmlld0RpYWxvZygpO1xuICAgICAgICB0aGlzLmRpYWxvZy5vcGVuKFByZXZpZXdEaWFsb2dDb21wb25lbnQsIHtcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICBkYXRhRmllbGQ6IHRoaXMuZGF0YUZpZWxkLFxuICAgICAgICAgICAgICAgIGltYWdlUHJldmlldzogdGhpcy5wcmV2aWV3U291cmNlLFxuICAgICAgICAgICAgICAgIGltYWdlRnVsbDogdGhpcy5mdWxsU291cmNlLFxuICAgICAgICAgICAgICAgIGV4dGVuc2lvbjogdGhpcy5wcmV2aWV3RXh0ZW5zaW9uXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cbn1cblxuIiwiPG5jLWRhdGEtZmllbGQtdGVtcGxhdGUgKm5nSWY9XCIhZGF0YUZpZWxkLmJlaGF2aW9yLmhpZGRlblwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbZGF0YUZpZWxkXT1cImRhdGFGaW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ICAgICAnYm9yZGVyLWNvbG9yJzogZ2V0UHJldmlld0JvcmRlckNvbG9yKClcbiAgICAgICAgICAgICAgICAgfVwiXG4gICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsnYm9yZGVyLUxHQlRRJzogaXNCb3JkZXJMR0JUUSgpLCAnYm9yZGVyLWRlZmF1bHQnOiBpc0JvcmRlckRlZmF1bHQoKX1cIlxuICAgICAgICAgICAgICAgICBbc3JjXT1cInByZXZpZXdTb3VyY2VcIiBhbHQ9XCJJbWFnZSBwcmV2aWV3XCIgKGNsaWNrKT1cInNob3dQcmV2aWV3RGlhbG9nKClcIi8+XG4gICAgICAgICAgICA8bWF0LXNwaW5uZXIgKm5nSWY9XCJwcmV2aWV3U291cmNlID09PSB1bmRlZmluZWQgJiYgISFzdGF0ZS5kb3dubG9hZGluZyAmJiBpc0Rpc3BsYXlhYmxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbZGlhbWV0ZXJdPVwiMjZcIj48L21hdC1zcGlubmVyPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
@@ -0,0 +1,33 @@
1
+ import { Component, Inject } from '@angular/core';
2
+ import { MAT_DIALOG_DATA } from '@angular/material/dialog';
3
+ import { FilePreviewType } from '@netgrif/components-core';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/material/button";
6
+ import * as i2 from "@angular/material/icon";
7
+ import * as i3 from "@angular/material/dialog";
8
+ import * as i4 from "@angular/common";
9
+ import * as i5 from "@angular/flex-layout/flex";
10
+ export class PreviewDialogComponent {
11
+ constructor(data) {
12
+ this.data = data;
13
+ data.imageFull.subscribe(imageSource => {
14
+ this.image = imageSource;
15
+ });
16
+ }
17
+ fullImageExists() {
18
+ return !!this.image;
19
+ }
20
+ isPdf() {
21
+ return this.data.extension === FilePreviewType.pdf;
22
+ }
23
+ }
24
+ PreviewDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PreviewDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
25
+ PreviewDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PreviewDialogComponent, selector: "nc-preview-dialog", ngImport: i0, template: "<button class=\"close\" mat-icon-button [mat-dialog-close]=\"true\">\n <mat-icon>close</mat-icon>\n</button>\n<h1 mat-dialog-title *ngIf=\"!isPdf()\">Image: {{data.dataField.value.name}}</h1>\n<h1 mat-dialog-title *ngIf=\"isPdf()\">PDF: {{data.dataField.value.name}}</h1>\n<div mat-dialog-content fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <img class=\"image-size\" *ngIf=\"!fullImageExists()\" [src]=\"data.imagePreview\" alt=\"Image preview\"/>\n <img class=\"image-size\" *ngIf=\"fullImageExists() && !isPdf()\" [src]=\"image\" alt=\"Image\"/>\n <embed class=\"pdf-view\" *ngIf=\"fullImageExists() && isPdf()\" [src]=\"image\" [type]=\"'application/pdf'\" />\n</div>\n", styles: [".image-size{max-height:64vh}.close{float:right;top:-24px;right:-24px}.pdf-view{width:50vw;height:64vh}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PreviewDialogComponent, decorators: [{
27
+ type: Component,
28
+ args: [{ selector: 'nc-preview-dialog', template: "<button class=\"close\" mat-icon-button [mat-dialog-close]=\"true\">\n <mat-icon>close</mat-icon>\n</button>\n<h1 mat-dialog-title *ngIf=\"!isPdf()\">Image: {{data.dataField.value.name}}</h1>\n<h1 mat-dialog-title *ngIf=\"isPdf()\">PDF: {{data.dataField.value.name}}</h1>\n<div mat-dialog-content fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <img class=\"image-size\" *ngIf=\"!fullImageExists()\" [src]=\"data.imagePreview\" alt=\"Image preview\"/>\n <img class=\"image-size\" *ngIf=\"fullImageExists() && !isPdf()\" [src]=\"image\" alt=\"Image\"/>\n <embed class=\"pdf-view\" *ngIf=\"fullImageExists() && isPdf()\" [src]=\"image\" [type]=\"'application/pdf'\" />\n</div>\n", styles: [".image-size{max-height:64vh}.close{float:right;top:-24px;right:-24px}.pdf-view{width:50vw;height:64vh}\n"] }]
29
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
30
+ type: Inject,
31
+ args: [MAT_DIALOG_DATA]
32
+ }] }]; } });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJldmlldy1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsZS1maWVsZC9wcmV2aWV3LWRpYWxvZy9wcmV2aWV3LWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9maWxlLWZpZWxkL3ByZXZpZXctZGlhbG9nL3ByZXZpZXctZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBQ3hELE9BQU8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Y9XCJpc1BkZigpXCI+UERGOiB7e2RhdGEuZGF0YUZpZWxkLnZhbHVlLm5hbWV9fTwvaDE+XG48ZGl2IG1hdC1kaWFsb2ctY29udGVudCBmeExheW91dD1cInJvd1wiIGZ4TGF5b3V0QWxpZ249XCJjZW50ZXIgY2VudGVyXCI+XG4gICAgPGltZyBjbGFzcz1cImltYWdlLXNpemVcIiAqbmdJZj1cIiFmdWxsSW1hZ2VFeGlzdHMoKVwiIFtzcmNdPVwiZGF0YS5pbWFnZVByZXZpZXdcIiBhbHQ9XCJJbWFnZSBwcmV2aWV3XCIvPlxuICAgIDxpbWcgY2xhc3M9XCJpbWFnZS1zaXplXCIgKm5nSWY9XCJmdWxsSW1hZ2VFeGlzdHMoKSAmJiAhaXNQZGYoKVwiIFtzcmNdPVwiaW1hZ2VcIiBhbHQ9XCJJbWFnZVwiLz5cbiAgICA8ZW1iZWQgY2xhc3M9XCJwZGYtdmlld1wiICpuZ0lmPVwiZnVsbEltYWdlRXhpc3RzKCkgJiYgaXNQZGYoKVwiIFtzcmNdPVwiaW1hZ2VcIiBbdHlwZV09XCInYXBwbGljYXRpb24vcGRmJ1wiIC8+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,33 @@
1
+ import { Component, Inject, Optional } from '@angular/core';
2
+ import { AbstractFileListFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@netgrif/components-core";
5
+ import * as i2 from "@ngx-translate/core";
6
+ import * as i3 from "../data-field-template/data-field-template.component";
7
+ import * as i4 from "../required-label/required-label.component";
8
+ import * as i5 from "@angular/material/button";
9
+ import * as i6 from "@angular/material/icon";
10
+ import * as i7 from "@angular/material/progress-bar";
11
+ import * as i8 from "@angular/common";
12
+ import * as i9 from "@angular/material/form-field";
13
+ import * as i10 from "@angular/flex-layout/flex";
14
+ import * as i11 from "@angular/material/tooltip";
15
+ import * as i12 from "@angular/flex-layout/extended";
16
+ import * as i13 from "@angular/forms";
17
+ export class FileListFieldComponent extends AbstractFileListFieldComponent {
18
+ constructor(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData) {
19
+ super(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData);
20
+ }
21
+ }
22
+ FileListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListFieldComponent, deps: [{ token: i1.TaskResourceService }, { token: i1.LoggerService }, { token: i1.SnackBarService }, { token: i2.TranslateService }, { token: i1.EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
23
+ FileListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileListFieldComponent, selector: "nc-file-list-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span *ngIf=\"uploadedFiles.length === 0\" (click)=\"chooseFile()\" fxFlex\n [ngClass]=\"{'no-cursor': formControl.disabled}\" class=\"input-placeholder input-name-ellipsis\">{{constructDisplayName()}}</span>\n <div *ngIf=\"uploadedFiles.length !== 0\" class=\"input-name-ellipsis\" fxFlex>\n <div *ngFor=\"let name of uploadedFiles\" fxLayoutAlign=\"start center\">\n <span (click)=\"download(name)\" fxFlex [matTooltip]=\"'dataField.file.clickToDownload' | translate : {fileName: name}\"\n class=\"input-name-ellipsis file-list-item\">{{name}}</span>\n <button (click)=\"deleteFile(name)\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"true\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\"/>\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\" *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\" *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n</ng-template>\n", styles: ["@import\"quill/dist/quill.snow.css\";@import\"quill/dist/quill.bubble.css\";@import\"quill/dist/quill.core.css\";.invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;min-height:54.81px}.form-input:hover{border-color:#000}.file-hint-error{padding:0 1em;font-size:75%}.no-cursor{cursor:default!important}\n"], components: [{ type: i3.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i4.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.MatLabel, selector: "mat-label" }, { type: i10.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i10.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i10.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i13.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i13.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i9.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i2.TranslatePipe } });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListFieldComponent, decorators: [{
25
+ type: Component,
26
+ args: [{ selector: 'nc-file-list-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span *ngIf=\"uploadedFiles.length === 0\" (click)=\"chooseFile()\" fxFlex\n [ngClass]=\"{'no-cursor': formControl.disabled}\" class=\"input-placeholder input-name-ellipsis\">{{constructDisplayName()}}</span>\n <div *ngIf=\"uploadedFiles.length !== 0\" class=\"input-name-ellipsis\" fxFlex>\n <div *ngFor=\"let name of uploadedFiles\" fxLayoutAlign=\"start center\">\n <span (click)=\"download(name)\" fxFlex [matTooltip]=\"'dataField.file.clickToDownload' | translate : {fileName: name}\"\n class=\"input-name-ellipsis file-list-item\">{{name}}</span>\n <button (click)=\"deleteFile(name)\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"true\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\"/>\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\" *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\" *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n</ng-template>\n", styles: ["@import\"quill/dist/quill.snow.css\";@import\"quill/dist/quill.bubble.css\";@import\"quill/dist/quill.core.css\";.invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;min-height:54.81px}.form-input:hover{border-color:#000}.file-hint-error{padding:0 1em;font-size:75%}.no-cursor{cursor:default!important}\n"] }]
27
+ }], ctorParameters: function () { return [{ type: i1.TaskResourceService }, { type: i1.LoggerService }, { type: i1.SnackBarService }, { type: i2.TranslateService }, { type: i1.EventService }, { type: undefined, decorators: [{
28
+ type: Optional
29
+ }, {
30
+ type: Inject,
31
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
32
+ }] }]; } });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1saXN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2ZpbGUtZmllbGQtbGlzdC9maWxlLWxpc3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsZS1maWVsZC1saXN0L2ZpbGUtbGlzdC1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFMUQsT0FBTyxFQUNILDhCQUE4QixFQUU5Qiw2QkFBNkIsRUFHaEMsTUFBTSwwQkFBMEIsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7O0FBT2xDLE1BQU0sT0FBTyxzQkFBdUIsU0FBUSw4QkFBOEI7SUFFdEUsWUFBWSxtQkFBd0MsRUFDeEMsR0FBa0IsRUFDbEIsUUFBeUIsRUFDekIsU0FBMkIsRUFDM0IsWUFBMEIsRUFDeUIs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XG4gICAgY29uc3RydWN0b3IodGFza1Jlc291cmNlU2VydmljZTogVGFza1Jlc291cmNlU2VydmljZSxcbiAgICAgICAgICAgICAgICBsb2c6IExvZ2dlclNlcnZpY2UsXG4gICAgICAgICAgICAgICAgc25hY2tiYXI6IFNuYWNrQmFyU2VydmljZSxcbiAgICAgICAgICAgICAgICB0cmFuc2xhdGU6IFRyYW5zbGF0ZVNlcnZpY2UsXG4gICAgICAgICAgICAgICAgZXZlbnRTZXJ2aWNlOiBFdmVudFNlcnZpY2UsXG4gICAgICAgICAgICAgICAgQE9wdGlvbmFsKCkgQEluamVjdChOQUVfSU5GT1JNX0FCT1VUX0lOVkFMSURfREFUQSkgaW5mb3JtQWJvdXRJbnZhbGlkRGF0YTogYm9vbGVhbiB8IG51bGwpIHtcbiAgICAgICAgc3VwZXIodGFza1Jlc291cmNlU2VydmljZSwgbG9nLCBzbmFja2JhciwgdHJhbnNsYXRlLCBldmVudFNlcnZpY2UsIGluZm9ybUFib3V0SW52YWxpZERhdGEpO1xuICAgIH1cbn1cbiIsIjxuYy1kYXRhLWZpZWxkLXRlbXBsYXRlICpuZ0lmPVwiIWRhdGFGaWVsZC5iZWhhdmlvci5oaWRkZW5cIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2RhdGFGaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2RhdGFGaWVsZFRlbXBsYXRlXT1cImRhdGFGaWVsZFRlbXBsYXRlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtvZmZzZXRdPVwidGFza09mZnNldFwiPlxuPC9uYy1kYXRhLWZpZWxkLXRlbXBsYXRlPlxuXG48bmctdGVtcGxhdGUgI2RhdGFGaWVsZFRlbXBsYXRlIGxldC1zaG93TGFyZ2VMYXlvdXQ9XCJzaG93TGFyZ2VMYXlvdXRcIj5cbiAgICA8ZGl2PlxuICAgICAgICA8bWF0LWxhYmVsICpuZ0lmPVwiIXNob3dMYXJnZUxheW91dC52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xuICAgIDwvZGl2PlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
@@ -0,0 +1,45 @@
1
+ import { Component, Inject } from '@angular/core';
2
+ import { AbstractFilterFieldContentComponent, SearchService, AllowedNetsService, AllowedNetsServiceFactory, NAE_FILTER_FIELD, NAE_BASE_FILTER, SimpleFilter, CategoryResolverService, NAE_SEARCH_CATEGORIES, CategoryFactory } from '@netgrif/components-core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@netgrif/components-core";
5
+ import * as i2 from "../../../search/advanced-search/advanced-search-component/advanced-search.component";
6
+ import * as i3 from "@angular/common";
7
+ export function filterFieldBaseFilterFactory(filterField) {
8
+ return {
9
+ filter: SimpleFilter.empty(filterField.filterMetadata.filterType)
10
+ };
11
+ }
12
+ export function filterFieldAllowedNetsFactory(factory, filterField) {
13
+ return factory.createFromArray(filterField.allowedNets);
14
+ }
15
+ export function filterFieldCategoriesFactory(factory, filterField) {
16
+ const result = filterField.filterMetadata.searchCategories.map(c => factory.toClass(c));
17
+ return result;
18
+ }
19
+ export class FilterFieldContentComponent extends AbstractFilterFieldContentComponent {
20
+ constructor(filterField, fieldSearchService) {
21
+ super(filterField, fieldSearchService);
22
+ }
23
+ }
24
+ FilterFieldContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldContentComponent, deps: [{ token: NAE_FILTER_FIELD }, { token: i1.SearchService }], target: i0.ɵɵFactoryTarget.Component });
25
+ FilterFieldContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterFieldContentComponent, selector: "nc-filter-field-content", providers: [
26
+ { provide: NAE_BASE_FILTER, useFactory: filterFieldBaseFilterFactory, deps: [NAE_FILTER_FIELD] },
27
+ { provide: AllowedNetsService, useFactory: filterFieldAllowedNetsFactory, deps: [AllowedNetsServiceFactory, NAE_FILTER_FIELD] },
28
+ CategoryFactory,
29
+ { provide: NAE_SEARCH_CATEGORIES, useFactory: filterFieldCategoriesFactory, deps: [CategoryResolverService, NAE_FILTER_FIELD] },
30
+ SearchService
31
+ ], usesInheritance: true, ngImport: i0, template: "<nc-advanced-search *ngIf=\"filterLoaded\" [editable]=\"editable\"></nc-advanced-search>\n", styles: [""], components: [{ type: i2.AdvancedSearchComponent, selector: "nc-advanced-search" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldContentComponent, decorators: [{
33
+ type: Component,
34
+ args: [{ selector: 'nc-filter-field-content', providers: [
35
+ { provide: NAE_BASE_FILTER, useFactory: filterFieldBaseFilterFactory, deps: [NAE_FILTER_FIELD] },
36
+ { provide: AllowedNetsService, useFactory: filterFieldAllowedNetsFactory, deps: [AllowedNetsServiceFactory, NAE_FILTER_FIELD] },
37
+ CategoryFactory,
38
+ { provide: NAE_SEARCH_CATEGORIES, useFactory: filterFieldCategoriesFactory, deps: [CategoryResolverService, NAE_FILTER_FIELD] },
39
+ SearchService
40
+ ], template: "<nc-advanced-search *ngIf=\"filterLoaded\" [editable]=\"editable\"></nc-advanced-search>\n", styles: [""] }]
41
+ }], ctorParameters: function () { return [{ type: i1.FilterField, decorators: [{
42
+ type: Inject,
43
+ args: [NAE_FILTER_FIELD]
44
+ }] }, { type: i1.SearchService }]; } });
45
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLWZpZWxkLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsdGVyLWZpZWxkL2ZpbHRlci1maWVsZC1jb250ZW50L2ZpbHRlci1ma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gICAgICAgQ2F0ZWdvcnlGYWN0b3J5LFxuICAgICAgICB7cHJvdmlkZTogTkFFX1NFQVJDSF9DQVRFR09SSUVTLCB1c2VGYWN0b3J5OiBmaWx0ZXJGaWVsZENhdGVnb3JpZXNGYWN0b3J5LCBkZXBzOiBbQ2F0ZWdvcnlSZXNvbHZlclNlcnZpY2UsIE5BRV9GSUxURVJfRklFTERdfSxcbiAgICAgICAgU2VhcmNoU2VydmljZVxuICAgIF1cbn0pXG5leHBvcnQgY2xhc3MgRmlsdGVyRmllbGRDb250ZW50Q29tcG9uZW50IGV4dGVuZHMgQWJzdHJhY3RGaWx0ZXJGaWVsZENvbnRlbnRDb21wb25lbnQge1xuXG4gICAgY29uc3RydWN0b3IoQEluamVjdChOQUVfRklMVEVSX0ZJRUxEKSBmaWx0ZXJGaWVsZDogRmlsdGVyRmllbGQsXG4gICAgICAgICAgICAgICAgZmllbGRTZWFyY2hTZXJ2aWNlOiBTZWFyY2hTZXJ2aWNlKSB7XG4gICAgICAgIHN1cGVyKGZpbHRlckZpZWxkLCBmaWVsZFNlYXJjaFNlcnZpY2UpO1xuICAgIH1cblxufVxuIiwiPG5jLWFkdmFuY2VkLXNlYXJjaCAqbmdJZj1cImZpbHRlckxvYWRlZFwiIFtlZGl0YWJsZV09XCJlZGl0YWJsZVwiPjwvbmMtYWR2YW5jZWQtc2VhcmNoPlxuIl19
@@ -0,0 +1,27 @@
1
+ import { Component, Inject, Optional } from '@angular/core';
2
+ import { AbstractFilterFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
3
+ import { FilterFieldContentComponent } from './filter-field-content/filter-field-content.component';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../data-field-template/data-field-template.component";
6
+ import * as i2 from "@angular/common";
7
+ import * as i3 from "@angular/cdk/portal";
8
+ export class FilterFieldComponent extends AbstractFilterFieldComponent {
9
+ constructor(parentInjector, informAboutInvalidData) {
10
+ super(parentInjector, informAboutInvalidData);
11
+ }
12
+ getFilterContentComponent() {
13
+ return FilterFieldContentComponent;
14
+ }
15
+ }
16
+ FilterFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldComponent, deps: [{ token: i0.Injector }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
17
+ FilterFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterFieldComponent, selector: "nc-filter-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"filterFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #filterFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <!-- TODO: title based on large layout -->\n <ng-template [ngIf]=\"initialized\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-template>\n <!-- TODO: description? -->\n</ng-template>\n", styles: [""], components: [{ type: i1.DataFieldTemplateComponent, selector: "nc-data-field-template" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'nc-filter-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"filterFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #filterFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <!-- TODO: title based on large layout -->\n <ng-template [ngIf]=\"initialized\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-template>\n <!-- TODO: description? -->\n</ng-template>\n", styles: [""] }]
21
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: undefined, decorators: [{
22
+ type: Optional
23
+ }, {
24
+ type: Inject,
25
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
26
+ }] }]; } });
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2ZpbHRlci1maWVsZC9maWx0ZXItZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsdGVyLWZpZWxkL2ZpbHRlci1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBWSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUNILDRCQUE0QixFQUU1Qiw2QkFBNkIsRUFDaEMsTUFBTSwwQkFBMEIsQ0FBQztBQUVsQyxPQUFPLEVBQUMsMkJBQTJCLEVBQUMsTUFBTSx1REFBdUQsQ0FBQzs7Ozs7QUFPbEcsTUFBTSxPQUFPLG9CQUFxQixTQUFRLDRCQUE0QjtJQUVsRSxZQUFZLGNBQXdCLEVBQzJCLHNCQUFzQztRQUNqRyxLQUFLLENBQUMsY0FBYyxFQUFFLHNCQUFzQixDQUFDLENBQUM7SUFDbEQsQ0FBQztJQUVTLHlCQUF5QjtRQUMvQixPQUFPLDJCQUE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