ngx-edu-sharing-ui 0.7.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/assets/scss/mixins.scss +4 -1
  2. package/assets/scss/variables.scss +3 -0
  3. package/esm2022/lib/actionbar/actionbar.component.mjs +188 -0
  4. package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +134 -0
  5. package/esm2022/lib/directives/border-box-observer.directive.mjs +71 -0
  6. package/esm2022/lib/directives/check-text-overflow.directive.mjs +65 -0
  7. package/esm2022/lib/directives/drag-nodes/drag-nodes.mjs +14 -0
  8. package/esm2022/lib/directives/drag-nodes/nodes-drag-source.directive.mjs +79 -0
  9. package/esm2022/lib/directives/drag-nodes/nodes-drag.directive.mjs +49 -0
  10. package/esm2022/lib/directives/drag-nodes/nodes-drop-target.directive.mjs +105 -0
  11. package/esm2022/lib/directives/focus-state.directive.mjs +44 -0
  12. package/esm2022/lib/directives/icon.directive.mjs +139 -0
  13. package/esm2022/lib/dropdown/dropdown.component.mjs +70 -0
  14. package/esm2022/lib/edu-sharing-ui-configuration.mjs +41 -0
  15. package/esm2022/lib/edu-sharing-ui.module.mjs +78 -0
  16. package/esm2022/lib/list-items/available-widgets.mjs +27 -0
  17. package/esm2022/lib/list-items/format-duration.pipe.mjs +20 -0
  18. package/esm2022/lib/list-items/list-base/list-base.component.mjs +46 -0
  19. package/esm2022/lib/list-items/list-collection-info/list-collection-info.component.mjs +29 -0
  20. package/esm2022/lib/list-items/list-counts/list-counts.component.mjs +54 -0
  21. package/esm2022/lib/list-items/list-items.module.mjs +50 -0
  22. package/esm2022/lib/list-items/list-node-license/list-node-license.component.mjs +41 -0
  23. package/esm2022/lib/list-items/list-node-replication-source/list-node-replication-source.component.mjs +47 -0
  24. package/esm2022/lib/list-items/list-node-workflow/list-node-workflow.component.mjs +24 -0
  25. package/esm2022/lib/list-items/list-text/list-text.component.mjs +106 -0
  26. package/esm2022/lib/list-items/list-widget.mjs +49 -0
  27. package/esm2022/lib/list-items/node-row/node-row.component.mjs +24 -0
  28. package/esm2022/lib/list-items/node-source.pipe.mjs +49 -0
  29. package/esm2022/lib/node-entries/combined-data-source.mjs +41 -0
  30. package/esm2022/lib/node-entries/custom-templates-data-source.mjs +7 -0
  31. package/esm2022/lib/node-entries/drag-preview/drag-preview.component.mjs +21 -0
  32. package/esm2022/lib/node-entries/entries-model.mjs +23 -0
  33. package/esm2022/lib/node-entries/items-cap.mjs +47 -0
  34. package/esm2022/lib/node-entries/list-item-label.pipe.mjs +34 -0
  35. package/esm2022/lib/node-entries/node-cache.mjs +65 -0
  36. package/esm2022/lib/node-entries/node-data-source-remote.mjs +4 -0
  37. package/esm2022/lib/node-entries/node-data-source.mjs +115 -0
  38. package/esm2022/lib/node-entries/node-entries-card/node-entries-card.component.mjs +131 -0
  39. package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +307 -0
  40. package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +45 -0
  41. package/esm2022/lib/node-entries/node-entries-global-options/node-entries-global-options.component.mjs +23 -0
  42. package/esm2022/lib/node-entries/node-entries-global.service.mjs +58 -0
  43. package/esm2022/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.mjs +42 -0
  44. package/esm2022/lib/node-entries/node-entries-table/node-entries-table.component.mjs +290 -0
  45. package/esm2022/lib/node-entries/node-entries-templates.service.mjs +11 -0
  46. package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +324 -0
  47. package/esm2022/lib/node-entries/node-entries.component.mjs +131 -0
  48. package/esm2022/lib/node-entries/node-entries.module.mjs +161 -0
  49. package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +102 -0
  50. package/esm2022/lib/node-entries/node-stats-badges/node-stats-badges.component.mjs +48 -0
  51. package/esm2022/lib/node-entries/node-type-badge/node-type-badge.component.mjs +36 -0
  52. package/esm2022/lib/node-entries/option-button/option-button.component.mjs +62 -0
  53. package/esm2022/lib/node-entries/preview-image/preview-image.component.mjs +53 -0
  54. package/esm2022/lib/node-entries/sort-select-panel/sort-select-panel.component.mjs +41 -0
  55. package/esm2022/lib/node-url/node-url.component.mjs +128 -0
  56. package/esm2022/lib/pipes/file-size.pipe.mjs +31 -0
  57. package/esm2022/lib/pipes/format-date.pipe.mjs +38 -0
  58. package/esm2022/lib/pipes/node-icon.pipe.mjs +18 -0
  59. package/esm2022/lib/pipes/node-image-size.pipe.mjs +24 -0
  60. package/esm2022/lib/pipes/node-image.pipe.mjs +55 -0
  61. package/esm2022/lib/pipes/node-person-name.pipe.mjs +50 -0
  62. package/esm2022/lib/pipes/node-title.pipe.mjs +19 -0
  63. package/esm2022/lib/pipes/option-tooltip.pipe.mjs +33 -0
  64. package/esm2022/lib/pipes/replace-chars.pipe.mjs +29 -0
  65. package/esm2022/lib/pipes/vcard-name.pipe.mjs +19 -0
  66. package/esm2022/lib/services/abstract/app.service.mjs +3 -0
  67. package/esm2022/lib/services/abstract/keyboard-shortcuts.service.mjs +10 -0
  68. package/esm2022/lib/services/abstract/options-helper.service.mjs +3 -0
  69. package/esm2022/lib/services/abstract/toast.service.mjs +3 -0
  70. package/esm2022/lib/services/accessibility.service.mjs +73 -0
  71. package/esm2022/lib/services/local-events.service.mjs +36 -0
  72. package/esm2022/lib/services/node-entries.service.mjs +137 -0
  73. package/esm2022/lib/services/node-helper.service.mjs +234 -0
  74. package/esm2022/lib/services/nodes-drag-drop.service.mjs +155 -0
  75. package/esm2022/lib/services/options-helper-data.service.mjs +134 -0
  76. package/esm2022/lib/services/repo-url.service.mjs +49 -0
  77. package/esm2022/lib/services/temporary-storage.service.mjs +48 -0
  78. package/esm2022/lib/services/ui.service.mjs +162 -0
  79. package/esm2022/lib/sort-dropdown/sort-dropdown.component.mjs +50 -0
  80. package/esm2022/lib/spinner/spinner.component.mjs +18 -0
  81. package/esm2022/lib/translations/fallback-translation-handler.mjs +6 -0
  82. package/esm2022/lib/translations/languages.mjs +5 -0
  83. package/esm2022/lib/translations/translation-loader.mjs +149 -0
  84. package/esm2022/lib/translations/translation-source.mjs +11 -0
  85. package/esm2022/lib/translations/translations.module.mjs +67 -0
  86. package/esm2022/lib/translations/translations.service.mjs +171 -0
  87. package/esm2022/lib/types/accessibillity.mjs +19 -0
  88. package/esm2022/lib/types/api-models.mjs +2 -0
  89. package/esm2022/lib/types/drag-drop.mjs +2 -0
  90. package/esm2022/lib/types/keyboard-shortcuts.mjs +11 -0
  91. package/esm2022/lib/types/list-item.mjs +41 -0
  92. package/esm2022/lib/types/option-item.mjs +174 -0
  93. package/esm2022/lib/types/workflow.mjs +25 -0
  94. package/esm2022/lib/util/DateHelper.mjs +200 -0
  95. package/esm2022/lib/util/VCard.mjs +278 -0
  96. package/esm2022/lib/util/color-helper.mjs +124 -0
  97. package/esm2022/lib/util/duration-helper.mjs +102 -0
  98. package/esm2022/lib/util/functions.mjs +13 -0
  99. package/esm2022/lib/util/helper.mjs +64 -0
  100. package/esm2022/lib/util/isNumeric.mjs +11 -0
  101. package/esm2022/lib/util/rest-helper.mjs +33 -0
  102. package/esm2022/lib/util/ui-animation.mjs +146 -0
  103. package/esm2022/lib/util/ui-constants.mjs +21 -0
  104. package/esm2022/module.mjs +76 -0
  105. package/esm2022/ngx-edu-sharing-ui.mjs +5 -0
  106. package/fesm2022/ngx-edu-sharing-ui.mjs +6509 -0
  107. package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -0
  108. package/index.d.ts +5 -0
  109. package/lib/actionbar/actionbar.component.d.ts +74 -0
  110. package/lib/common/edu-sharing-ui-common.module.d.ts +32 -0
  111. package/lib/directives/border-box-observer.directive.d.ts +31 -0
  112. package/lib/directives/check-text-overflow.directive.d.ts +20 -0
  113. package/lib/directives/drag-nodes/drag-nodes.d.ts +16 -0
  114. package/lib/directives/drag-nodes/nodes-drag-source.directive.d.ts +37 -0
  115. package/lib/directives/drag-nodes/nodes-drag.directive.d.ts +17 -0
  116. package/lib/directives/drag-nodes/nodes-drop-target.directive.d.ts +22 -0
  117. package/lib/directives/focus-state.directive.d.ts +14 -0
  118. package/lib/directives/icon.directive.d.ts +46 -0
  119. package/lib/dropdown/dropdown.component.d.ts +40 -0
  120. package/lib/edu-sharing-ui-configuration.d.ts +11 -0
  121. package/lib/edu-sharing-ui.module.d.ts +19 -0
  122. package/lib/list-items/available-widgets.d.ts +13 -0
  123. package/lib/list-items/format-duration.pipe.d.ts +10 -0
  124. package/lib/list-items/list-base/list-base.component.d.ts +18 -0
  125. package/lib/list-items/list-collection-info/list-collection-info.component.d.ts +14 -0
  126. package/lib/list-items/list-counts/list-counts.component.d.ts +13 -0
  127. package/lib/list-items/list-items.module.d.ts +20 -0
  128. package/lib/list-items/list-node-license/list-node-license.component.d.ts +20 -0
  129. package/lib/list-items/list-node-replication-source/list-node-replication-source.component.d.ts +22 -0
  130. package/lib/list-items/list-node-workflow/list-node-workflow.component.d.ts +12 -0
  131. package/lib/list-items/list-text/list-text.component.d.ts +28 -0
  132. package/lib/list-items/list-widget.d.ts +32 -0
  133. package/lib/list-items/node-row/node-row.component.d.ts +12 -0
  134. package/lib/list-items/node-source.pipe.d.ts +16 -0
  135. package/lib/node-entries/combined-data-source.d.ts +19 -0
  136. package/{src/lib/node-entries/custom-templates-data-source.ts → lib/node-entries/custom-templates-data-source.d.ts} +2 -2
  137. package/lib/node-entries/drag-preview/drag-preview.component.d.ts +11 -0
  138. package/{src/lib/node-entries/entries-model.ts → lib/node-entries/entries-model.d.ts} +19 -47
  139. package/lib/node-entries/items-cap.d.ts +17 -0
  140. package/lib/node-entries/list-item-label.pipe.d.ts +14 -0
  141. package/lib/node-entries/node-cache.d.ts +17 -0
  142. package/{src/lib/node-entries/node-data-source-remote.ts → lib/node-entries/node-data-source-remote.d.ts} +2 -12
  143. package/lib/node-entries/node-data-source.d.ts +42 -0
  144. package/lib/node-entries/node-entries-card/node-entries-card.component.d.ts +45 -0
  145. package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +92 -0
  146. package/lib/node-entries/node-entries-card-small/node-entries-card-small.component.d.ts +23 -0
  147. package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts +12 -0
  148. package/lib/node-entries/node-entries-global.service.d.ts +50 -0
  149. package/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.d.ts +17 -0
  150. package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +76 -0
  151. package/{src/lib/node-entries/node-entries-templates.service.ts → lib/node-entries/node-entries-templates.service.d.ts} +6 -9
  152. package/lib/node-entries/node-entries-wrapper.component.d.ts +129 -0
  153. package/lib/node-entries/node-entries.component.d.ts +32 -0
  154. package/lib/node-entries/node-entries.module.d.ts +43 -0
  155. package/lib/node-entries/node-rating/node-rating.component.d.ts +26 -0
  156. package/lib/node-entries/node-stats-badges/node-stats-badges.component.d.ts +17 -0
  157. package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +21 -0
  158. package/lib/node-entries/option-button/option-button.component.d.ts +11 -0
  159. package/lib/node-entries/preview-image/preview-image.component.d.ts +22 -0
  160. package/lib/node-entries/sort-select-panel/sort-select-panel.component.d.ts +16 -0
  161. package/lib/node-url/node-url.component.d.ts +51 -0
  162. package/lib/pipes/file-size.pipe.d.ts +10 -0
  163. package/lib/pipes/format-date.pipe.d.ts +21 -0
  164. package/lib/pipes/node-icon.pipe.d.ts +11 -0
  165. package/lib/pipes/node-image-size.pipe.d.ts +8 -0
  166. package/lib/pipes/node-image.pipe.d.ts +28 -0
  167. package/lib/pipes/node-person-name.pipe.d.ts +10 -0
  168. package/lib/pipes/node-title.pipe.d.ts +11 -0
  169. package/lib/pipes/option-tooltip.pipe.d.ts +12 -0
  170. package/lib/pipes/replace-chars.pipe.d.ts +10 -0
  171. package/lib/pipes/vcard-name.pipe.d.ts +10 -0
  172. package/{src/lib/services/abstract/app.service.ts → lib/services/abstract/app.service.d.ts} +1 -1
  173. package/lib/services/abstract/keyboard-shortcuts.service.d.ts +11 -0
  174. package/lib/services/abstract/options-helper.service.d.ts +10 -0
  175. package/{src/lib/services/abstract/toast.service.ts → lib/services/abstract/toast.service.d.ts} +1 -2
  176. package/lib/services/accessibility.service.d.ts +18 -0
  177. package/{src/lib/services/local-events.service.ts → lib/services/local-events.service.d.ts} +7 -10
  178. package/lib/services/node-entries.service.d.ts +69 -0
  179. package/lib/services/node-helper.service.d.ts +56 -0
  180. package/lib/services/nodes-drag-drop.service.d.ts +41 -0
  181. package/lib/services/options-helper-data.service.d.ts +75 -0
  182. package/lib/services/repo-url.service.d.ts +25 -0
  183. package/lib/services/temporary-storage.service.d.ts +35 -0
  184. package/lib/services/ui.service.d.ts +41 -0
  185. package/lib/sort-dropdown/sort-dropdown.component.d.ts +15 -0
  186. package/lib/spinner/spinner.component.d.ts +7 -0
  187. package/lib/translations/fallback-translation-handler.d.ts +4 -0
  188. package/lib/translations/languages.d.ts +4 -0
  189. package/lib/translations/translation-loader.d.ts +51 -0
  190. package/{src/lib/translations/translation-source.ts → lib/translations/translation-source.d.ts} +4 -4
  191. package/lib/translations/translations.module.d.ts +15 -0
  192. package/lib/translations/translations.service.d.ts +30 -0
  193. package/lib/types/accessibillity.d.ts +15 -0
  194. package/{src/lib/types/drag-drop.ts → lib/types/drag-drop.d.ts} +0 -3
  195. package/lib/types/keyboard-shortcuts.d.ts +10 -0
  196. package/lib/types/list-item.d.ts +55 -0
  197. package/lib/types/option-item.d.ts +236 -0
  198. package/lib/types/workflow.d.ts +14 -0
  199. package/lib/util/DateHelper.d.ts +44 -0
  200. package/lib/util/VCard.d.ts +66 -0
  201. package/lib/util/color-helper.d.ts +25 -0
  202. package/lib/util/duration-helper.d.ts +14 -0
  203. package/lib/util/functions.d.ts +4 -0
  204. package/lib/util/helper.d.ts +20 -0
  205. package/lib/util/isNumeric.d.ts +5 -0
  206. package/lib/util/rest-helper.d.ts +10 -0
  207. package/lib/util/ui-animation.d.ts +39 -0
  208. package/lib/util/ui-constants.d.ts +18 -0
  209. package/{src/module.ts → module.d.ts} +0 -4
  210. package/package.json +23 -9
  211. package/.browserslistrc +0 -16
  212. package/.eslintrc.json +0 -44
  213. package/karma.conf.js +0 -42
  214. package/ng-package.json +0 -10
  215. package/src/lib/actionbar/actionbar.component.html +0 -59
  216. package/src/lib/actionbar/actionbar.component.scss +0 -123
  217. package/src/lib/actionbar/actionbar.component.ts +0 -174
  218. package/src/lib/common/edu-sharing-ui-common.module.ts +0 -80
  219. package/src/lib/directives/border-box-observer.directive.ts +0 -75
  220. package/src/lib/directives/check-text-overflow.directive.ts +0 -61
  221. package/src/lib/directives/drag-nodes/drag-nodes.ts +0 -32
  222. package/src/lib/directives/drag-nodes/nodes-drag-source.directive.ts +0 -79
  223. package/src/lib/directives/drag-nodes/nodes-drag.directive.ts +0 -43
  224. package/src/lib/directives/drag-nodes/nodes-drop-target.directive.ts +0 -116
  225. package/src/lib/directives/focus-state.directive.ts +0 -34
  226. package/src/lib/directives/icon.directive.ts +0 -142
  227. package/src/lib/directives/nodes-drop-target-legacy.directive.ts +0 -155
  228. package/src/lib/dropdown/dropdown.component.html +0 -32
  229. package/src/lib/dropdown/dropdown.component.scss +0 -67
  230. package/src/lib/dropdown/dropdown.component.ts +0 -71
  231. package/src/lib/edu-sharing-ui-configuration.ts +0 -47
  232. package/src/lib/edu-sharing-ui.module.ts +0 -49
  233. package/src/lib/list-items/available-widgets.ts +0 -30
  234. package/src/lib/list-items/format-duration.pipe.ts +0 -17
  235. package/src/lib/list-items/list-base/list-base.component.html +0 -52
  236. package/src/lib/list-items/list-base/list-base.component.ts +0 -44
  237. package/src/lib/list-items/list-collection-info/list-collection-info.component.html +0 -48
  238. package/src/lib/list-items/list-collection-info/list-collection-info.component.scss +0 -8
  239. package/src/lib/list-items/list-collection-info/list-collection-info.component.ts +0 -24
  240. package/src/lib/list-items/list-counts/list-counts.component.html +0 -1
  241. package/src/lib/list-items/list-counts/list-counts.component.scss +0 -3
  242. package/src/lib/list-items/list-counts/list-counts.component.ts +0 -59
  243. package/src/lib/list-items/list-items.module.ts +0 -33
  244. package/src/lib/list-items/list-node-license/list-node-license.component.html +0 -8
  245. package/src/lib/list-items/list-node-license/list-node-license.component.ts +0 -47
  246. package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.html +0 -11
  247. package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.ts +0 -60
  248. package/src/lib/list-items/list-node-workflow/list-node-workflow.component.html +0 -3
  249. package/src/lib/list-items/list-node-workflow/list-node-workflow.component.ts +0 -21
  250. package/src/lib/list-items/list-text/list-text.component.html +0 -176
  251. package/src/lib/list-items/list-text/list-text.component.scss +0 -3
  252. package/src/lib/list-items/list-text/list-text.component.ts +0 -107
  253. package/src/lib/list-items/list-widget.ts +0 -52
  254. package/src/lib/list-items/node-row/node-row.component.html +0 -31
  255. package/src/lib/list-items/node-row/node-row.component.scss +0 -50
  256. package/src/lib/list-items/node-row/node-row.component.ts +0 -16
  257. package/src/lib/list-items/node-source.pipe.ts +0 -48
  258. package/src/lib/node-entries/combined-data-source.ts +0 -51
  259. package/src/lib/node-entries/drag-preview/drag-preview.component.html +0 -6
  260. package/src/lib/node-entries/drag-preview/drag-preview.component.scss +0 -35
  261. package/src/lib/node-entries/drag-preview/drag-preview.component.ts +0 -15
  262. package/src/lib/node-entries/items-cap.ts +0 -54
  263. package/src/lib/node-entries/list-item-label.pipe.ts +0 -28
  264. package/src/lib/node-entries/mixins.scss +0 -23
  265. package/src/lib/node-entries/node-cache.spec.ts +0 -199
  266. package/src/lib/node-entries/node-cache.ts +0 -81
  267. package/src/lib/node-entries/node-data-source.ts +0 -148
  268. package/src/lib/node-entries/node-entries-card/node-entries-card.component.html +0 -167
  269. package/src/lib/node-entries/node-entries-card/node-entries-card.component.scss +0 -28
  270. package/src/lib/node-entries/node-entries-card/node-entries-card.component.ts +0 -132
  271. package/src/lib/node-entries/node-entries-card/node-entries-card.main.scss +0 -261
  272. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.html +0 -205
  273. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.scss +0 -181
  274. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.ts +0 -361
  275. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.html +0 -100
  276. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.scss +0 -46
  277. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.ts +0 -40
  278. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.html +0 -23
  279. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.scss +0 -58
  280. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.ts +0 -16
  281. package/src/lib/node-entries/node-entries-global.service.ts +0 -79
  282. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.html +0 -25
  283. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.scss +0 -32
  284. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.ts +0 -31
  285. package/src/lib/node-entries/node-entries-table/node-entries-table.component.html +0 -270
  286. package/src/lib/node-entries/node-entries-table/node-entries-table.component.scss +0 -169
  287. package/src/lib/node-entries/node-entries-table/node-entries-table.component.ts +0 -333
  288. package/src/lib/node-entries/node-entries-wrapper.component.ts +0 -363
  289. package/src/lib/node-entries/node-entries.component.html +0 -33
  290. package/src/lib/node-entries/node-entries.component.scss +0 -13
  291. package/src/lib/node-entries/node-entries.component.ts +0 -151
  292. package/src/lib/node-entries/node-entries.module.ts +0 -93
  293. package/src/lib/node-entries/node-rating/node-rating.component.html +0 -53
  294. package/src/lib/node-entries/node-rating/node-rating.component.scss +0 -31
  295. package/src/lib/node-entries/node-rating/node-rating.component.ts +0 -105
  296. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.html +0 -39
  297. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.scss +0 -44
  298. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.ts +0 -43
  299. package/src/lib/node-entries/node-type-badge/node-type-badge.component.html +0 -31
  300. package/src/lib/node-entries/node-type-badge/node-type-badge.component.scss +0 -5
  301. package/src/lib/node-entries/node-type-badge/node-type-badge.component.ts +0 -36
  302. package/src/lib/node-entries/option-button/option-button.component.ts +0 -42
  303. package/src/lib/node-entries/preview-image/preview-image.component.html +0 -19
  304. package/src/lib/node-entries/preview-image/preview-image.component.scss +0 -31
  305. package/src/lib/node-entries/preview-image/preview-image.component.ts +0 -47
  306. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.html +0 -27
  307. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.scss +0 -9
  308. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.ts +0 -26
  309. package/src/lib/node-url/node-url.component.html +0 -66
  310. package/src/lib/node-url/node-url.component.scss +0 -32
  311. package/src/lib/node-url/node-url.component.ts +0 -136
  312. package/src/lib/pipes/file-size.pipe.ts +0 -24
  313. package/src/lib/pipes/format-date.pipe.ts +0 -39
  314. package/src/lib/pipes/node-icon.pipe.ts +0 -11
  315. package/src/lib/pipes/node-image-size.pipe.ts +0 -18
  316. package/src/lib/pipes/node-image.pipe.ts +0 -71
  317. package/src/lib/pipes/node-person-name.pipe.ts +0 -41
  318. package/src/lib/pipes/node-title.pipe.ts +0 -12
  319. package/src/lib/pipes/option-tooltip.pipe.ts +0 -32
  320. package/src/lib/pipes/replace-chars.pipe.ts +0 -21
  321. package/src/lib/pipes/vcard-name.pipe.ts +0 -11
  322. package/src/lib/services/abstract/keyboard-shortcuts.service.ts +0 -10
  323. package/src/lib/services/abstract/options-helper.service.ts +0 -29
  324. package/src/lib/services/accessibility.service.ts +0 -101
  325. package/src/lib/services/node-entries.service.ts +0 -172
  326. package/src/lib/services/node-helper.service.ts +0 -239
  327. package/src/lib/services/nodes-drag-drop.service.ts +0 -165
  328. package/src/lib/services/options-helper-data.service.ts +0 -186
  329. package/src/lib/services/repo-url.service.ts +0 -46
  330. package/src/lib/services/temporary-storage.service.ts +0 -58
  331. package/src/lib/services/ui.service.ts +0 -182
  332. package/src/lib/sort-dropdown/sort-dropdown.component.html +0 -22
  333. package/src/lib/sort-dropdown/sort-dropdown.component.scss +0 -47
  334. package/src/lib/sort-dropdown/sort-dropdown.component.ts +0 -42
  335. package/src/lib/spinner/spinner.component.html +0 -14
  336. package/src/lib/spinner/spinner.component.scss +0 -141
  337. package/src/lib/spinner/spinner.component.ts +0 -12
  338. package/src/lib/translations/README.md +0 -44
  339. package/src/lib/translations/fallback-translation-handler.ts +0 -7
  340. package/src/lib/translations/languages.ts +0 -6
  341. package/src/lib/translations/translation-loader.spec.ts +0 -352
  342. package/src/lib/translations/translation-loader.ts +0 -189
  343. package/src/lib/translations/translations.module.ts +0 -49
  344. package/src/lib/translations/translations.service.spec.ts +0 -152
  345. package/src/lib/translations/translations.service.ts +0 -188
  346. package/src/lib/types/accessibillity.ts +0 -15
  347. package/src/lib/types/keyboard-shortcuts.ts +0 -29
  348. package/src/lib/types/list-item.ts +0 -67
  349. package/src/lib/types/option-item.ts +0 -247
  350. package/src/lib/types/workflow.ts +0 -35
  351. package/src/lib/util/DateHelper.spec.ts +0 -112
  352. package/src/lib/util/DateHelper.ts +0 -197
  353. package/src/lib/util/VCard.ts +0 -277
  354. package/src/lib/util/color-helper.ts +0 -125
  355. package/src/lib/util/duration-helper.spec.ts +0 -35
  356. package/src/lib/util/duration-helper.ts +0 -98
  357. package/src/lib/util/functions.ts +0 -15
  358. package/src/lib/util/helper.ts +0 -60
  359. package/src/lib/util/isNumeric.ts +0 -13
  360. package/src/lib/util/rest-helper.ts +0 -28
  361. package/src/lib/util/ui-animation.ts +0 -154
  362. package/src/lib/util/ui-constants.ts +0 -20
  363. package/src/test.ts +0 -28
  364. package/tsconfig.lib.json +0 -15
  365. package/tsconfig.lib.prod.json +0 -10
  366. package/tsconfig.spec.json +0 -17
  367. /package/{src/lib/types/api-models.ts → lib/types/api-models.d.ts} +0 -0
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-edu-sharing-ui" />
5
+ export * from './module';
@@ -0,0 +1,74 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { OptionItem } from '../types/option-item';
4
+ import { UIService } from '../services/ui.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ActionbarComponent implements OnChanges {
7
+ private uiService;
8
+ private translate;
9
+ /**
10
+ * The amount of options which are not hidden inside an overflow menu
11
+ * (default: depending on mobile (1) or not (2))
12
+ * Also use numberOfAlwaysVisibleOptionsMobile to control the amount of mobile options visible
13
+ */
14
+ numberOfAlwaysVisibleOptions: number;
15
+ numberOfAlwaysVisibleOptionsMobile: number;
16
+ /**
17
+ * Visual style of the actionbar
18
+ *
19
+ * Values:
20
+ * - 'button': material buttons with icons and text on medium to large screens
21
+ * - 'icon-button': material buttons without text
22
+ * - 'round': circular buttons without text
23
+ * @default 'button'
24
+ */
25
+ appearance: 'round' | 'button' | 'icon-button';
26
+ /**
27
+ * dropdownPosition is for position of dropdown (default = left)
28
+ * Values 'left' or 'right'
29
+ */
30
+ dropdownPosition: 'left' | 'right';
31
+ /**
32
+ * backgroundType for color matching, either bright, dark or primary
33
+ */
34
+ backgroundType: 'bright' | 'dark' | 'primary';
35
+ /**
36
+ * Style, currently default or 'flat' if all always visible icons should get a flat look
37
+ */
38
+ style: 'default' | 'flat';
39
+ /**
40
+ * Highlight one or more of the always-visible buttons as primary action.
41
+ *
42
+ * - `first`, `last`: The first / last of `optionsAlways` by order.
43
+ * - `manual`: Highlight all options that set `isPrimary = true`.
44
+ */
45
+ highlight: 'first' | 'last' | 'manual';
46
+ /**
47
+ * Should disabled ("greyed out") options be shown or hidden?
48
+ */
49
+ showDisabled: boolean;
50
+ /**
51
+ * Set the options, see @OptionItem
52
+ */
53
+ set options(options: OptionItem[]);
54
+ optionsIn: OptionItem[];
55
+ optionsAlways: OptionItem[];
56
+ optionsMenu: OptionItem[];
57
+ optionsToggle: OptionItem[];
58
+ constructor(uiService: UIService, translate: TranslateService);
59
+ private prepareOptions;
60
+ getNumberOptions(): number;
61
+ click(option: OptionItem): void;
62
+ private getActionOptions;
63
+ private hideActionOptions;
64
+ /**
65
+ * Invalidate / refreshes all options based on their current callbacks
66
+ */
67
+ invalidate(): void;
68
+ private filterDisabled;
69
+ canShowDropdown(): boolean;
70
+ shouldHighlight(optionIndex: number, option: OptionItem): boolean;
71
+ ngOnChanges(changes: SimpleChanges): void;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionbarComponent, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionbarComponent, "es-actionbar", never, { "numberOfAlwaysVisibleOptions": { "alias": "numberOfAlwaysVisibleOptions"; "required": false; }; "numberOfAlwaysVisibleOptionsMobile": { "alias": "numberOfAlwaysVisibleOptionsMobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "backgroundType": { "alias": "backgroundType"; "required": false; }; "style": { "alias": "style"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "showDisabled": { "alias": "showDisabled"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
74
+ }
@@ -0,0 +1,32 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../directives/icon.directive";
3
+ import * as i2 from "../directives/check-text-overflow.directive";
4
+ import * as i3 from "../pipes/node-icon.pipe";
5
+ import * as i4 from "../pipes/node-image.pipe";
6
+ import * as i5 from "../pipes/vcard-name.pipe";
7
+ import * as i6 from "../directives/focus-state.directive";
8
+ import * as i7 from "../pipes/file-size.pipe";
9
+ import * as i8 from "../pipes/node-image-size.pipe";
10
+ import * as i9 from "../pipes/node-person-name.pipe";
11
+ import * as i10 from "../pipes/node-title.pipe";
12
+ import * as i11 from "../pipes/format-date.pipe";
13
+ import * as i12 from "../pipes/replace-chars.pipe";
14
+ import * as i13 from "../sort-dropdown/sort-dropdown.component";
15
+ import * as i14 from "../spinner/spinner.component";
16
+ import * as i15 from "../node-url/node-url.component";
17
+ import * as i16 from "../dropdown/dropdown.component";
18
+ import * as i17 from "../pipes/option-tooltip.pipe";
19
+ import * as i18 from "../actionbar/actionbar.component";
20
+ import * as i19 from "../directives/border-box-observer.directive";
21
+ import * as i20 from "@angular/common";
22
+ import * as i21 from "@angular/material/menu";
23
+ import * as i22 from "@angular/material/button";
24
+ import * as i23 from "@angular/material/tooltip";
25
+ import * as i24 from "@angular/material/core";
26
+ import * as i25 from "@ngx-translate/core";
27
+ import * as i26 from "@angular/router";
28
+ export declare class EduSharingUiCommonModule {
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiCommonModule, never>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiCommonModule, [typeof i1.IconDirective, typeof i2.CheckTextOverflowDirective, typeof i3.NodeIconPipe, typeof i4.NodeImagePipe, typeof i5.VCardNamePipe, typeof i6.FocusStateDirective, typeof i7.FormatSizePipe, typeof i8.NodeImageSizePipe, typeof i9.NodePersonNamePipe, typeof i10.NodeTitlePipe, typeof i11.FormatDatePipe, typeof i12.ReplaceCharsPipe, typeof i13.SortDropdownComponent, typeof i14.SpinnerComponent, typeof i15.NodeUrlComponent, typeof i16.DropdownComponent, typeof i17.OptionTooltipPipe, typeof i18.ActionbarComponent, typeof i19.BorderBoxObserverDirective], [typeof i20.CommonModule, typeof i21.MatMenuModule, typeof i22.MatButtonModule, typeof i23.MatTooltipModule, typeof i24.MatRippleModule, typeof i25.TranslateModule, typeof i26.RouterModule], [typeof i1.IconDirective, typeof i2.CheckTextOverflowDirective, typeof i3.NodeIconPipe, typeof i4.NodeImagePipe, typeof i5.VCardNamePipe, typeof i13.SortDropdownComponent, typeof i6.FocusStateDirective, typeof i7.FormatSizePipe, typeof i8.NodeImageSizePipe, typeof i9.NodePersonNamePipe, typeof i10.NodeTitlePipe, typeof i11.FormatDatePipe, typeof i14.SpinnerComponent, typeof i15.NodeUrlComponent, typeof i16.DropdownComponent, typeof i18.ActionbarComponent, typeof i19.BorderBoxObserverDirective]>;
31
+ static ɵinj: i0.ɵɵInjectorDeclaration<EduSharingUiCommonModule>;
32
+ }
@@ -0,0 +1,31 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ interface BorderBox {
5
+ width: number;
6
+ height: number;
7
+ }
8
+ /**
9
+ * Gets the border-box dimensions of an element in an asynchronous manner.
10
+ *
11
+ * This allows subscribing to changes and using values as input to other Angular components without
12
+ * causing changed-after-checked errors.
13
+ */
14
+ export declare class BorderBoxObserverDirective implements OnInit, OnDestroy {
15
+ private elementRef;
16
+ static observeElement(elementRef: ElementRef<HTMLElement>): Observable<BorderBox>;
17
+ borderBoxEmitter: EventEmitter<BorderBox>;
18
+ private observer;
19
+ private readonly borderBoxSubject;
20
+ width$: Observable<number>;
21
+ height$: Observable<number>;
22
+ constructor(elementRef: ElementRef<HTMLElement>);
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ private registerEventEmitter;
26
+ private registerObserver;
27
+ private setInitialValue;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<BorderBoxObserverDirective, never>;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BorderBoxObserverDirective, "[esBorderBoxObserver]", ["borderBoxObserver"], {}, { "borderBoxEmitter": "esBorderBoxObserver"; }, never, never, false, never>;
30
+ }
31
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Checks whether text of the annotated element or a descendent (give a selector) was cut of, e.g.,
5
+ * with an ellipsis.
6
+ *
7
+ * Call `hasTextOverflow()` for the result.
8
+ */
9
+ export declare class CheckTextOverflowDirective implements OnInit {
10
+ private readonly elementRef;
11
+ selector?: string;
12
+ private textElement;
13
+ hasTextOverflow: () => boolean;
14
+ constructor(elementRef: ElementRef<HTMLElement>);
15
+ ngOnInit(): void;
16
+ private hasTextOverflow_;
17
+ private getTextElement;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckTextOverflowDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckTextOverflowDirective, "[esCheckTextOverflow]", ["esCheckTextOverflow"], { "selector": { "alias": "esCheckTextOverflow"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,16 @@
1
+ import { Node } from 'ngx-edu-sharing-api';
2
+ import { DropAction } from '../../types/drag-drop';
3
+ export interface DragDataLegacy {
4
+ event?: DragEvent;
5
+ nodes?: Node[];
6
+ dropAction?: DropAction;
7
+ }
8
+ export type DropActionLegacy = 'copy' | 'move' | 'link';
9
+ export interface DropDataLegacy extends DragDataLegacy {
10
+ target: DragNodeTarget;
11
+ }
12
+ export type DragNodeTarget = Node | 'HOME';
13
+ export declare const dragNodesTransferType = "application/nodes";
14
+ export declare function readDraggedNodes(): Node[];
15
+ export declare function saveDraggedNodes(nodes: Node[]): void;
16
+ export declare function clearDraggedNodes(): void;
@@ -0,0 +1,37 @@
1
+ import { EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Handle dragging and dropping of node elements.
6
+ *
7
+ * Use in combination with `NodesDropTargetDirective`.
8
+ *
9
+ * When nodes that set this directive are dragged, we save information about
10
+ * these nodes that can be used by `NodesDropTargetDirective`.
11
+ */
12
+ export declare class NodesDragSourceDirective implements OnChanges {
13
+ private elementRef;
14
+ /**
15
+ * The nodes to be dragged.
16
+ *
17
+ * When not set, this directive is effectively disabled.
18
+ */
19
+ nodes?: Node[];
20
+ /**
21
+ * Triggered when processing the dragstart event.
22
+ *
23
+ * Changes to `nodes` performed by event handlers of `nodesDragStart` will
24
+ * be taken into account for the drag operation.
25
+ */
26
+ nodesDragStart: EventEmitter<DragEvent>;
27
+ /**
28
+ * Triggered when processing the dragend event.
29
+ */
30
+ nodesDragEnd: EventEmitter<DragEvent>;
31
+ constructor(elementRef: ElementRef<Element>);
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ onDragStart(event: DragEvent): void;
34
+ onDragEnd(event: DragEvent): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodesDragSourceDirective, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NodesDragSourceDirective, "[esNodesDragSource]", never, { "nodes": { "alias": "esNodesDragSource"; "required": false; }; }, { "nodesDragStart": "nodesDragStart"; "nodesDragEnd": "nodesDragEnd"; }, never, never, false, never>;
37
+ }
@@ -0,0 +1,17 @@
1
+ import { CdkDrag } from '@angular/cdk/drag-drop';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import { NodesDragDropService } from '../../services/nodes-drag-drop.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * A draggable node.
7
+ *
8
+ * Use in combination with `cdkDrag`, setting `cdkDragData` to the array of nodes to be dragged.
9
+ */
10
+ export declare class NodesDragDirective {
11
+ private cdkDrag;
12
+ private nodesDragDrop;
13
+ constructor(cdkDrag: CdkDrag<Node[]>, nodesDragDrop: NodesDragDropService);
14
+ private inhibitPreviewAnimation;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodesDragDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NodesDragDirective, "[esNodesDrag]", never, {}, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,22 @@
1
+ import { ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
2
+ import { CanDrop, DragData, DropTargetState } from '../../types/drag-drop';
3
+ import { NodesDragDropService } from '../../services/nodes-drag-drop.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodesDropTargetDirective<T = unknown> implements OnDestroy {
6
+ private ngZone;
7
+ private elementRef;
8
+ private nodesDragDrop;
9
+ target: T;
10
+ canDropNodes: (dragData: DragData<T>) => CanDrop;
11
+ nodeDropped: EventEmitter<DragData<T>>;
12
+ get active(): DropTargetState;
13
+ private activeDropTargetSubject;
14
+ private destroyed;
15
+ constructor(ngZone: NgZone, elementRef: ElementRef<HTMLElement>, nodesDragDrop: NodesDragDropService);
16
+ ngOnDestroy(): void;
17
+ _setActiveDropTarget(value: DropTargetState | null): void;
18
+ private registerMouseEnterLeave;
19
+ private registerActiveDropTarget;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodesDropTargetDirective<any>, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NodesDropTargetDirective<any>, "[esNodesDropTarget]", ["esNodesDropTarget"], { "target": { "alias": "esNodesDropTarget"; "required": false; }; "canDropNodes": { "alias": "canDropNodes"; "required": false; }; }, { "nodeDropped": "nodeDropped"; }, never, never, false, never>;
22
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FocusStateDirective {
3
+ /** Either the element or one of its descendants has focus. */
4
+ hasFocus: boolean;
5
+ /** The element is being hovered with the cursor. */
6
+ hovering: boolean;
7
+ constructor();
8
+ onFocusIn(): void;
9
+ onFocusOut(): void;
10
+ onMouseOver(): void;
11
+ onMouseOut(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FocusStateDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FocusStateDirective, "[esFocusState]", ["esFocusState"], {}, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,46 @@
1
+ import { ElementRef, OnInit, OnDestroy } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { ConfigService } from 'ngx-edu-sharing-api';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Replaces the element's content with an icon.
7
+ *
8
+ * Example: `<i esIcon="save"></i>`
9
+ *
10
+ * Optionally, a translated `aria-label` can be attached by setting `aria` to a truthy value: `<i
11
+ * esIcon="save" aria="true"></i>`. Otherwise, `aria-hidden` will be set.
12
+ *
13
+ * For backwards compatibility, the directive is also activated on elements that set
14
+ * `class="material-icons"`. This is mainly to set the `aria-hidden` attribute. Occurrences should
15
+ * be updated to the syntax above.
16
+ */
17
+ export declare class IconDirective implements OnInit, OnDestroy {
18
+ private element;
19
+ private translate;
20
+ private config;
21
+ private _id;
22
+ private _aria;
23
+ private iconsConfig;
24
+ private altTextSpan;
25
+ private isReady;
26
+ /**
27
+ * An alt text to show to screen readers.
28
+ *
29
+ * If omitted, the icon will be invisible to screen readers.
30
+ *
31
+ * @see https://material.angular.io/components/icon/overview#indicator-icons
32
+ */
33
+ set altText(altText: string);
34
+ /** If true, an alt text (see above) will be set based on the icon. */
35
+ set aria(aria: boolean);
36
+ set esIcon(id: string);
37
+ constructor(element: ElementRef<HTMLElement>, translate: TranslateService, config: ConfigService);
38
+ ngOnInit(): Promise<void>;
39
+ ngOnDestroy(): void;
40
+ private setIcon;
41
+ private updateAria;
42
+ private setAltText;
43
+ private insertAltTextSpan;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, [null, null, { optional: true; }]>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "i[esIcon], i.material-icons", never, { "altText": { "alias": "altText"; "required": false; }; "aria": { "alias": "aria"; "required": false; }; "esIcon": { "alias": "esIcon"; "required": false; }; }, {}, never, never, false, never>;
46
+ }
@@ -0,0 +1,40 @@
1
+ import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
2
+ import { OptionItem } from '../types/option-item';
3
+ import { UIService } from '../services/ui.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * The dropdown is one base component of the action bar (showing more actions),
7
+ * but can also be used standalone.
8
+ */
9
+ export declare class DropdownComponent {
10
+ private ui;
11
+ menu: MatMenu;
12
+ menuTrigger: MatMenuTrigger;
13
+ position: 'left' | 'right';
14
+ set options(options: OptionItem[]);
15
+ /**
16
+ * The object that should be returned via the option's callback.
17
+ *
18
+ * Can be null
19
+ */
20
+ callbackObject: any;
21
+ /**
22
+ * Should disabled ("greyed out") options be shown or hidden?
23
+ */
24
+ showDisabled: boolean;
25
+ /**
26
+ * An additional class to add to the `mat-menu` instance.
27
+ *
28
+ * This is needed to customize the menu styling since the menu contents are
29
+ * taken out of the host container by angular.
30
+ */
31
+ menuClass: string;
32
+ _options: OptionItem[];
33
+ constructor(ui: UIService);
34
+ click(option: OptionItem): void;
35
+ isNewGroup(i: number): boolean;
36
+ /** Whether there are any enabled options so we can open the menu. */
37
+ canShowDropdown(): boolean;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "es-dropdown", never, { "position": { "alias": "position"; "required": false; }; "options": { "alias": "options"; "required": false; }; "callbackObject": { "alias": "callbackObject"; "required": false; }; "showDisabled": { "alias": "showDisabled"; "required": false; }; "menuClass": { "alias": "menuClass"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,11 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const EDU_SHARING_UI_CONFIG: InjectionToken<Partial<EduSharingUiConfiguration>>;
4
+ export declare class EduSharingUiConfiguration {
5
+ production: boolean;
6
+ static create(params?: EduSharingUiConfigurationParams): EduSharingUiConfiguration;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiConfiguration, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<EduSharingUiConfiguration>;
9
+ }
10
+ export type EduSharingUiConfigurationParams = Partial<EduSharingUiConfiguration>;
11
+ export declare function getConfigProvider(params?: EduSharingUiConfigurationParams): Provider[];
@@ -0,0 +1,19 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { EduSharingUiConfigurationParams } from './edu-sharing-ui-configuration';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@ngx-translate/core";
6
+ import * as i3 from "./common/edu-sharing-ui-common.module";
7
+ import * as i4 from "./list-items/list-items.module";
8
+ import * as i5 from "./node-entries/node-entries.module";
9
+ import * as i6 from "@angular/material/tooltip";
10
+ import * as i7 from "./pipes/node-image-size.pipe";
11
+ import * as i8 from "./pipes/format-date.pipe";
12
+ import * as i9 from "./node-entries/list-item-label.pipe";
13
+ import * as i10 from "./sort-dropdown/sort-dropdown.component";
14
+ export declare class EduSharingUiModule {
15
+ static forRoot(config: EduSharingUiConfigurationParams): ModuleWithProviders<EduSharingUiModule>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule], [typeof i1.CommonModule, typeof i6.MatTooltipModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule, typeof i7.NodeImageSizePipe, typeof i8.FormatDatePipe, typeof i4.ListItemsModule, typeof i9.ListItemLabelPipe, typeof i10.SortDropdownComponent]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<EduSharingUiModule>;
19
+ }
@@ -0,0 +1,13 @@
1
+ import { ListWidgetClass } from './list-widget';
2
+ export declare enum ListWidgetType {
3
+ CollectionInfo = "CollectionInfo",
4
+ Text = "Text",
5
+ Custom = "Custom",
6
+ NodeLicense = "NodeLicense",
7
+ NodeReplicationSource = "NodeReplicationSource",
8
+ NodeWorkflow = "NodeWorkflow",
9
+ NodeCounts = "NodeCounts"
10
+ }
11
+ export declare const AVAILABLE_LIST_WIDGETS: {
12
+ [widgetType in ListWidgetType]: ListWidgetClass;
13
+ };
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DurationFormat } from '../util/duration-helper';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormatDurationPipe implements PipeTransform {
5
+ transform(value: string, args?: {
6
+ format: DurationFormat;
7
+ }): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatDurationPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatDurationPipe, "formatDuration", false>;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { ListWidgetType } from '../available-widgets';
3
+ import { ListWidget } from '../list-widget';
4
+ import { NodeEntriesGlobalService } from '../../node-entries/node-entries-global.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ListBaseComponent extends ListWidget implements OnChanges {
7
+ private nodeEntriesGlobalService;
8
+ /**
9
+ * use text only widgets (for table)
10
+ */
11
+ forceText: boolean;
12
+ widgetType: ListWidgetType;
13
+ customTemplate: TemplateRef<unknown>;
14
+ constructor(nodeEntriesGlobalService: NodeEntriesGlobalService);
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListBaseComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListBaseComponent, "es-list-base", never, { "forceText": { "alias": "forceText"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,14 @@
1
+ import { ListItem } from '../../types/list-item';
2
+ import { ListWidget } from '../list-widget';
3
+ import { NodeHelperService } from '../../services/node-helper.service';
4
+ import { AccessibilityService } from '../../services/accessibility.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ListCollectionInfoComponent extends ListWidget {
7
+ private accessibility;
8
+ nodeHelper: NodeHelperService;
9
+ static supportedItems: ListItem[];
10
+ readonly indicatorIcons$: import("rxjs").Observable<boolean>;
11
+ constructor(accessibility: AccessibilityService, nodeHelper: NodeHelperService);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListCollectionInfoComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListCollectionInfoComponent, "es-list-collection-info", never, {}, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { ListWidget } from '../list-widget';
2
+ import { ListItem } from '../../types/list-item';
3
+ import { StatisticsGroup } from 'ngx-edu-sharing-api';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ListCountsComponent extends ListWidget {
6
+ static supportedItems: ListItem[];
7
+ static getCountSingle(node: StatisticsGroup, id: string, group?: number): any;
8
+ static getCount(node: StatisticsGroup, id: string): any;
9
+ getId(): string;
10
+ getCount(): any;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListCountsComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListCountsComponent, "es-list-counts", never, {}, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./list-base/list-base.component";
3
+ import * as i2 from "./list-collection-info/list-collection-info.component";
4
+ import * as i3 from "./list-node-license/list-node-license.component";
5
+ import * as i4 from "./list-node-replication-source/list-node-replication-source.component";
6
+ import * as i5 from "./list-node-workflow/list-node-workflow.component";
7
+ import * as i6 from "./list-text/list-text.component";
8
+ import * as i7 from "./list-counts/list-counts.component";
9
+ import * as i8 from "./node-source.pipe";
10
+ import * as i9 from "./format-duration.pipe";
11
+ import * as i10 from "./node-row/node-row.component";
12
+ import * as i11 from "@angular/common";
13
+ import * as i12 from "../common/edu-sharing-ui-common.module";
14
+ import * as i13 from "@angular/material/tooltip";
15
+ import * as i14 from "@ngx-translate/core";
16
+ export declare class ListItemsModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListItemsModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ListItemsModule, [typeof i1.ListBaseComponent, typeof i2.ListCollectionInfoComponent, typeof i3.ListNodeLicenseComponent, typeof i4.ListNodeReplicationSourceComponent, typeof i5.ListNodeWorkflowComponent, typeof i6.ListTextComponent, typeof i7.ListCountsComponent, typeof i8.NodeSourcePipe, typeof i9.FormatDurationPipe, typeof i10.NodeRowComponent], [typeof i11.CommonModule, typeof i12.EduSharingUiCommonModule, typeof i13.MatTooltipModule, typeof i14.TranslateModule], [typeof i1.ListBaseComponent, typeof i6.ListTextComponent, typeof i9.FormatDurationPipe, typeof i10.NodeRowComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<ListItemsModule>;
20
+ }
@@ -0,0 +1,20 @@
1
+ import { ListWidget } from '../list-widget';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as rxjs from 'rxjs';
4
+ import { ListItem } from '../../types/list-item';
5
+ import { NodeHelperService } from '../../services/node-helper.service';
6
+ import { AccessibilityService } from '../../services/accessibility.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ListNodeLicenseComponent extends ListWidget {
9
+ private accessibility;
10
+ private nodeHelper;
11
+ private translate;
12
+ static supportedItems: ListItem[];
13
+ readonly licenseName$: rxjs.Observable<any>;
14
+ readonly licenseIcon$: rxjs.Observable<string>;
15
+ readonly tooltip$: rxjs.Observable<any>;
16
+ readonly indicatorIcons$: rxjs.Observable<boolean>;
17
+ constructor(accessibility: AccessibilityService, nodeHelper: NodeHelperService, translate: TranslateService);
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListNodeLicenseComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListNodeLicenseComponent, "es-list-node-license", never, {}, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,22 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import * as rxjs from 'rxjs';
3
+ import { ListWidget } from '../list-widget';
4
+ import { NodeSourcePipe } from '../node-source.pipe';
5
+ import { AccessibilityService } from '../../services/accessibility.service';
6
+ import { NetworkService } from 'ngx-edu-sharing-api';
7
+ import { ListItem } from '../../types/list-item';
8
+ import * as i0 from "@angular/core";
9
+ export declare class ListNodeReplicationSourceComponent extends ListWidget {
10
+ private accessibility;
11
+ private nodeSource;
12
+ private translate;
13
+ private networkService;
14
+ static supportedItems: ListItem[];
15
+ readonly replicationSource$: rxjs.Observable<string>;
16
+ readonly text$: rxjs.Observable<any>;
17
+ readonly tooltip$: rxjs.Observable<any>;
18
+ readonly indicatorIcons$: rxjs.Observable<boolean>;
19
+ constructor(accessibility: AccessibilityService, nodeSource: NodeSourcePipe, translate: TranslateService, networkService: NetworkService);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListNodeReplicationSourceComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListNodeReplicationSourceComponent, "es-list-node-replication-source", never, {}, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,12 @@
1
+ import { ListWidget } from '../list-widget';
2
+ import { ListItem } from '../../types/list-item';
3
+ import { NodeHelperService } from '../../services/node-helper.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ListNodeWorkflowComponent extends ListWidget {
6
+ private nodeHelper;
7
+ static supportedItems: ListItem[];
8
+ constructor(nodeHelper: NodeHelperService);
9
+ getWorkflowStatus(): import("ngx-edu-sharing-ui").WorkflowDefinition;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListNodeWorkflowComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListNodeWorkflowComponent, "es-list-node-workflow", never, {}, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,28 @@
1
+ import { ChangeDetectorRef, OnInit, SimpleChanges } from '@angular/core';
2
+ import { MdsService, Node } from 'ngx-edu-sharing-api';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { ListItem } from '../../types/list-item';
5
+ import { ListWidget } from '../list-widget';
6
+ import { NodeHelperService } from '../../services/node-helper.service';
7
+ import * as Constants from 'ngx-edu-sharing-api';
8
+ import * as i0 from "@angular/core";
9
+ export declare class ListTextComponent extends ListWidget implements OnInit {
10
+ private nodeHelper;
11
+ private mds;
12
+ private changeDetectorRef;
13
+ static supportedItems: ListItem[];
14
+ readonly DATE_FIELDS: string[];
15
+ readonly VCARD_FIELDS: string[];
16
+ displayName$: BehaviorSubject<string>;
17
+ constructor(nodeHelper: NodeHelperService, mds: MdsService, changeDetectorRef: ChangeDetectorRef);
18
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
19
+ ngOnInit(): Promise<void>;
20
+ getNode(): Node | Constants.Group | Constants.Person | Constants.Statistics;
21
+ isUserProfileAttribute(attribute: string): boolean;
22
+ getWorkflowStatus(): import("ngx-edu-sharing-ui").WorkflowDefinition;
23
+ getI18n(item: ListItem): string;
24
+ isDangerousGroup(): boolean;
25
+ private updateDisplayname;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListTextComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListTextComponent, "es-list-text", never, {}, {}, never, never, false, never>;
28
+ }
@@ -0,0 +1,32 @@
1
+ import { Type } from '@angular/core';
2
+ import { Person } from 'ngx-edu-sharing-api';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { Node, ProposalNode, Group, Statistics } from 'ngx-edu-sharing-api';
5
+ import { ListItem } from '../types/list-item';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ListWidget {
8
+ get node(): Node | ProposalNode | Group | Person | Statistics;
9
+ set node(value: Node | ProposalNode | Group | Person | Statistics);
10
+ protected readonly nodeSubject: BehaviorSubject<Node | ProposalNode | Group | Person | Statistics>;
11
+ get item(): ListItem;
12
+ set item(value: ListItem);
13
+ protected readonly itemSubject: BehaviorSubject<ListItem>;
14
+ /**
15
+ * Provide a label for non-obvious fields that describes the field the given value belongs to.
16
+ *
17
+ * The label is included in a tooltip and made available for a11y technologies.
18
+ *
19
+ * Useful when the value is displayed without context.
20
+ *
21
+ * Other tooltips might be added even with this input set to `false`.
22
+ */
23
+ get provideLabel(): boolean;
24
+ set provideLabel(value: boolean);
25
+ protected readonly provideLabelSubject: BehaviorSubject<boolean>;
26
+ constructor();
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListWidget, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ListWidget, never, never, { "node": { "alias": "node"; "required": false; }; "item": { "alias": "item"; "required": false; }; "provideLabel": { "alias": "provideLabel"; "required": false; }; }, {}, never, never, false, never>;
29
+ }
30
+ export type ListWidgetClass = {
31
+ supportedItems: ListItem[];
32
+ } & Type<ListWidget>;
@@ -0,0 +1,12 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import { ListItem } from '../../types/list-item';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeRowComponent {
6
+ customMetadataRef: TemplateRef<any>;
7
+ node: Node;
8
+ columns: ListItem[];
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeRowComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeRowComponent, "es-node-row", never, { "node": { "alias": "node"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, {}, ["customMetadataRef"], never, false, never>;
12
+ }