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
@@ -1,22 +1,18 @@
1
- import { Injectable, TemplateRef } from '@angular/core';
2
-
3
- @Injectable()
4
- export class NodeEntriesTemplatesService {
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NodeEntriesTemplatesService {
5
4
  /**
6
5
  * custom heading/title above the current result set
7
6
  */
8
7
  title: TemplateRef<any>;
9
-
10
8
  /**
11
9
  * Additional top matter that is provided by the selected node-entries component.
12
10
  */
13
11
  entriesTopMatter: TemplateRef<unknown>;
14
-
15
12
  /**
16
13
  * custom container in case the data source is empty
17
14
  */
18
15
  empty: TemplateRef<any>;
19
-
20
16
  /**
21
17
  * custom container for the action area on each element
22
18
  * (small grid only)
@@ -26,6 +22,7 @@ export class NodeEntriesTemplatesService {
26
22
  * custom container for showing an overlay across each element
27
23
  */
28
24
  overlay: TemplateRef<any>;
29
-
30
- constructor() {}
25
+ constructor();
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesTemplatesService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<NodeEntriesTemplatesService>;
31
28
  }
@@ -0,0 +1,129 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChange, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
+ import { NodeEntriesTemplatesService } from './node-entries-templates.service';
3
+ import { NodeEntriesComponent } from './node-entries.component';
4
+ import { FetchEvent, GridConfig, InteractionType, ListDragGropConfig, ListEventInterface, ListOptions, ListOptionsConfig, ListSortConfig, NodeClickEvent, NodeEntriesDataType, NodeEntriesDisplayType } from './entries-model';
5
+ import { NodeDataSource } from './node-data-source';
6
+ import { NodeEntriesService } from '../services/node-entries.service';
7
+ import { OptionItem, Scope } from '../types/option-item';
8
+ import { NodeHelperService } from '../services/node-helper.service';
9
+ import { ListItem } from '../types/list-item';
10
+ import { TemporaryStorageService } from '../services/temporary-storage.service';
11
+ import { Node } from 'ngx-edu-sharing-api';
12
+ import { OptionsHelperDataService } from '../services/options-helper-data.service';
13
+ import { UIService } from '../services/ui.service';
14
+ import * as i0 from "@angular/core";
15
+ export declare class NodeEntriesWrapperComponent<T extends NodeEntriesDataType> implements AfterViewInit, OnInit, OnChanges, OnDestroy, ListEventInterface<T> {
16
+ private viewContainerRef;
17
+ private temporaryStorageService;
18
+ private ngZone;
19
+ private entriesService;
20
+ optionsHelper: OptionsHelperDataService;
21
+ private nodeHelperService;
22
+ private uiService;
23
+ private templatesService;
24
+ private changeDetectorRef;
25
+ private elementRef;
26
+ /**
27
+ * title (above) the table/grid
28
+ */
29
+ titleRef: TemplateRef<any>;
30
+ /**
31
+ * data shown when data source is empty
32
+ */
33
+ emptyRef: TemplateRef<any>;
34
+ /**
35
+ * custom area for actions only for NodeEntriesDisplayType.SmallGrid (per card at the bottom)
36
+ */
37
+ actionAreaRef: TemplateRef<any>;
38
+ /**
39
+ * custom area for an overlay "above" each card (i.e. to show disabled infos), only for NodeEntriesDisplayType.SmallGrid & odeEntriesDisplayType.Grid
40
+ */
41
+ overlayRef: TemplateRef<any>;
42
+ nodeEntriesComponentRef: NodeEntriesComponent<T>;
43
+ dataSource: NodeDataSource<T>;
44
+ scope: Scope;
45
+ columns: ListItem[];
46
+ configureColumns: boolean;
47
+ checkbox: boolean;
48
+ columnsChange: EventEmitter<ListItem[]>;
49
+ globalOptions: OptionItem[];
50
+ displayType: NodeEntriesDisplayType;
51
+ displayTypeChange: EventEmitter<NodeEntriesDisplayType>;
52
+ elementInteractionType: InteractionType;
53
+ sort: ListSortConfig;
54
+ dragDrop: ListDragGropConfig<T>;
55
+ gridConfig: GridConfig;
56
+ /**
57
+ * this can be set instead of calling initOptionsGenerator()
58
+ */
59
+ initConfig: ListOptionsConfig;
60
+ /**
61
+ * Whether this node-entries instance represents the page's main content.
62
+ *
63
+ * Only set to true for one instance per page.
64
+ *
65
+ * If true, this instance will
66
+ * - handle page-wide keyboard shortcuts
67
+ * - take control of the `page` and `pageSize` query parameters for pagination
68
+ */
69
+ primaryInstance: boolean;
70
+ /**
71
+ * UI hints for whether a single click will cause a dynamic action.
72
+ *
73
+ * This does not configure the actual behavior but only UI hints to the user. Hints include
74
+ * hover effects and a changed cursor.
75
+ *
76
+ * - When choosing 'static', the `clickItem` event should trigger some stationary action like
77
+ * selecting the element or displaying information in a complementary page area. The
78
+ * `dblClickItem` event can be used for a more disruptive action.
79
+ * - When choosing 'dynamic', the `clickItem` event should trigger a major action like
80
+ * navigating to a new page or closing a dialog.
81
+ */
82
+ singleClickHint: 'dynamic' | 'static';
83
+ /**
84
+ * Do not load more data on scroll.
85
+ */
86
+ disableInfiniteScroll: boolean;
87
+ fetchData: EventEmitter<FetchEvent>;
88
+ clickItem: EventEmitter<NodeClickEvent<T>>;
89
+ dblClickItem: EventEmitter<NodeClickEvent<T>>;
90
+ sortChange: EventEmitter<ListSortConfig>;
91
+ virtualNodesAdded: EventEmitter<Node[]>;
92
+ displayTypeChanged: EventEmitter<NodeEntriesDisplayType>;
93
+ customNodeListComponent: Type<NodeEntriesComponent<T>>;
94
+ private componentRef;
95
+ private options;
96
+ private destroyed;
97
+ constructor(viewContainerRef: ViewContainerRef, temporaryStorageService: TemporaryStorageService, ngZone: NgZone, entriesService: NodeEntriesService<T>, optionsHelper: OptionsHelperDataService, nodeHelperService: NodeHelperService, uiService: UIService, templatesService: NodeEntriesTemplatesService, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef);
98
+ ngOnInit(): void;
99
+ ngOnChanges(changes?: {
100
+ [key: string]: SimpleChange;
101
+ }): void;
102
+ ngOnDestroy(): void;
103
+ /**
104
+ * Replaces this wrapper with the configured custom-node-list component.
105
+ */
106
+ private init;
107
+ /**
108
+ * Creates a simple map of the output bindings defined in this component.
109
+ */
110
+ private getOutputBindings;
111
+ getDisplayType(): NodeEntriesDisplayType;
112
+ setDisplayType(displayType: NodeEntriesDisplayType): void;
113
+ updateNodes(nodes: void | T[]): void;
114
+ showReorderColumnsDialog(): void;
115
+ addVirtualNodes(virtual: T[]): void;
116
+ setOptions(options: ListOptions): void;
117
+ getSelection(): import("@angular/cdk/collections").SelectionModel<T>;
118
+ initOptionsGenerator(config: ListOptionsConfig): Promise<void>;
119
+ ngAfterViewInit(): void;
120
+ private updateTemplates;
121
+ /**
122
+ * reset the pagination to the first page
123
+ * hint: this will do nothing in case the paginationStrategy !== Pagination
124
+ */
125
+ resetPagination(): void;
126
+ deleteNodes(objects: T[]): void;
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesWrapperComponent<any>, never>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesWrapperComponent<any>, "es-node-entries-wrapper", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "configureColumns": { "alias": "configureColumns"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "globalOptions": { "alias": "globalOptions"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "elementInteractionType": { "alias": "elementInteractionType"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "dragDrop": { "alias": "dragDrop"; "required": false; }; "gridConfig": { "alias": "gridConfig"; "required": false; }; "initConfig": { "alias": "initConfig"; "required": false; }; "primaryInstance": { "alias": "primaryInstance"; "required": false; }; "singleClickHint": { "alias": "singleClickHint"; "required": false; }; "disableInfiniteScroll": { "alias": "disableInfiniteScroll"; "required": false; }; }, { "columnsChange": "columnsChange"; "displayTypeChange": "displayTypeChange"; "fetchData": "fetchData"; "clickItem": "clickItem"; "dblClickItem": "dblClickItem"; "sortChange": "sortChange"; "virtualNodesAdded": "virtualNodesAdded"; "displayTypeChanged": "displayTypeChanged"; }, ["titleRef", "emptyRef", "actionAreaRef", "overlayRef"], never, false, never>;
129
+ }
@@ -0,0 +1,32 @@
1
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { MatPaginator, PageEvent } from '@angular/material/paginator';
3
+ import { ActivatedRoute } from '@angular/router';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { NodeEntriesDataType, NodeEntriesDisplayType } from './entries-model';
6
+ import { NodeEntriesGlobalService } from './node-entries-global.service';
7
+ import { NodeEntriesTemplatesService } from './node-entries-templates.service';
8
+ import { NodeEntriesService } from '../services/node-entries.service';
9
+ import { KeyboardShortcutsService } from '../services/abstract/keyboard-shortcuts.service';
10
+ import * as i0 from "@angular/core";
11
+ export declare class NodeEntriesComponent<T extends NodeEntriesDataType> implements OnInit, AfterViewInit, OnDestroy {
12
+ changeDetectorRef: ChangeDetectorRef;
13
+ entriesGlobalService: NodeEntriesGlobalService;
14
+ entriesService: NodeEntriesService<T>;
15
+ templatesService: NodeEntriesTemplatesService;
16
+ private globalKeyboardShortcuts;
17
+ private route;
18
+ private translate;
19
+ readonly NodeEntriesDisplayType: typeof NodeEntriesDisplayType;
20
+ paginator: MatPaginator;
21
+ private readonly destroyed;
22
+ constructor(changeDetectorRef: ChangeDetectorRef, entriesGlobalService: NodeEntriesGlobalService, entriesService: NodeEntriesService<T>, templatesService: NodeEntriesTemplatesService, globalKeyboardShortcuts: KeyboardShortcutsService, route: ActivatedRoute, translate: TranslateService);
23
+ ngOnInit(): void;
24
+ ngAfterViewInit(): void;
25
+ ngOnDestroy(): void;
26
+ private registerGlobalKeyboardShortcuts;
27
+ private initRemoteDataSource;
28
+ private initPaginator;
29
+ openPage(page: PageEvent): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesComponent<any>, [null, null, null, null, { optional: true; }, null, null]>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesComponent<any>, "es-node-entries", never, {}, {}, never, never, false, never>;
32
+ }
@@ -0,0 +1,43 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./node-entries-table/column-chooser/column-chooser.component";
3
+ import * as i2 from "./drag-preview/drag-preview.component";
4
+ import * as i3 from "./list-item-label.pipe";
5
+ import * as i4 from "./node-entries-card/node-entries-card.component";
6
+ import * as i5 from "./node-entries-card-grid/node-entries-card-grid.component";
7
+ import * as i6 from "./node-entries-card-small/node-entries-card-small.component";
8
+ import * as i7 from "./node-entries-table/node-entries-table.component";
9
+ import * as i8 from "./node-rating/node-rating.component";
10
+ import * as i9 from "./preview-image/preview-image.component";
11
+ import * as i10 from "./node-entries.component";
12
+ import * as i11 from "./node-entries-wrapper.component";
13
+ import * as i12 from "./node-type-badge/node-type-badge.component";
14
+ import * as i13 from "./option-button/option-button.component";
15
+ import * as i14 from "./sort-select-panel/sort-select-panel.component";
16
+ import * as i15 from "../directives/drag-nodes/nodes-drag.directive";
17
+ import * as i16 from "../directives/drag-nodes/nodes-drag-source.directive";
18
+ import * as i17 from "../directives/drag-nodes/nodes-drop-target.directive";
19
+ import * as i18 from "./node-entries-global-options/node-entries-global-options.component";
20
+ import * as i19 from "./node-stats-badges/node-stats-badges.component";
21
+ import * as i20 from "@angular/common";
22
+ import * as i21 from "@angular/forms";
23
+ import * as i22 from "@angular/cdk/a11y";
24
+ import * as i23 from "@angular/cdk/overlay";
25
+ import * as i24 from "@angular/cdk/drag-drop";
26
+ import * as i25 from "../common/edu-sharing-ui-common.module";
27
+ import * as i26 from "../list-items/list-items.module";
28
+ import * as i27 from "@angular/material/checkbox";
29
+ import * as i28 from "@angular/material/button";
30
+ import * as i29 from "@angular/material/badge";
31
+ import * as i30 from "@angular/material/menu";
32
+ import * as i31 from "@angular/material/table";
33
+ import * as i32 from "@angular/material/paginator";
34
+ import * as i33 from "@angular/material/core";
35
+ import * as i34 from "@angular/material/slide-toggle";
36
+ import * as i35 from "@angular/material/sort";
37
+ import * as i36 from "@angular/material/tooltip";
38
+ import * as i37 from "@ngx-translate/core";
39
+ export declare class NodeEntriesModule {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesModule, never>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NodeEntriesModule, [typeof i1.ColumnChooserComponent, typeof i2.DragPreviewComponent, typeof i3.ListItemLabelPipe, typeof i4.NodeEntriesCardComponent, typeof i5.NodeEntriesCardGridComponent, typeof i6.NodeEntriesCardSmallComponent, typeof i7.NodeEntriesTableComponent, typeof i8.NodeRatingComponent, typeof i9.PreviewImageComponent, typeof i10.NodeEntriesComponent, typeof i11.NodeEntriesWrapperComponent, typeof i8.NodeRatingComponent, typeof i12.NodeTypeBadgeComponent, typeof i13.OptionButtonComponent, typeof i9.PreviewImageComponent, typeof i14.SortSelectPanelComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i18.NodeEntriesGlobalOptionsComponent, typeof i19.NodeStatsBadgesComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.A11yModule, typeof i23.OverlayModule, typeof i24.DragDropModule, typeof i25.EduSharingUiCommonModule, typeof i26.ListItemsModule, typeof i27.MatCheckboxModule, typeof i28.MatButtonModule, typeof i29.MatBadgeModule, typeof i30.MatMenuModule, typeof i31.MatTableModule, typeof i27.MatCheckboxModule, typeof i32.MatPaginatorModule, typeof i33.MatRippleModule, typeof i34.MatSlideToggleModule, typeof i35.MatSortModule, typeof i36.MatTooltipModule, typeof i37.TranslateModule], [typeof i11.NodeEntriesWrapperComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i3.ListItemLabelPipe]>;
42
+ static ɵinj: i0.ɵɵInjectorDeclaration<NodeEntriesModule>;
43
+ }
@@ -0,0 +1,26 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { Node, ConfigService, AuthenticationService, NetworkService } from 'ngx-edu-sharing-api';
3
+ import { Toast } from '../../services/abstract/toast.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeRatingComponent<T extends Node> implements OnInit {
6
+ toast: Toast;
7
+ configService: ConfigService;
8
+ private networkApi;
9
+ authenticationService: AuthenticationService;
10
+ changeDetectorRef: ChangeDetectorRef;
11
+ ratingService: any;
12
+ node: T;
13
+ mode: RatingMode;
14
+ hasPermission: boolean;
15
+ hoverStar: number;
16
+ constructor(toast: Toast, configService: ConfigService, networkApi: NetworkService, authenticationService: AuthenticationService, changeDetectorRef: ChangeDetectorRef);
17
+ ngOnInit(): Promise<void>;
18
+ toogleLike(): Promise<void>;
19
+ getPrimaryRating(): number;
20
+ setRating(rating: number): Promise<void>;
21
+ deleteRating(): Promise<void>;
22
+ isFromHomeRepo(node: Node): import("rxjs").Observable<boolean>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeRatingComponent<any>, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeRatingComponent<any>, "es-node-rating", never, { "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
25
+ }
26
+ export type RatingMode = 'none' | 'likes' | 'stars';
@@ -0,0 +1,17 @@
1
+ import { Node } from 'ngx-edu-sharing-api';
2
+ import { ClickSource } from '../entries-model';
3
+ import { NodeEntriesService } from '../../services/node-entries.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeStatsBadgesComponent {
6
+ entriesService: NodeEntriesService<Node>;
7
+ readonly ClickSource: typeof ClickSource;
8
+ childObjectCount: number;
9
+ private _node;
10
+ get node(): Node;
11
+ set node(node: Node);
12
+ backgroundStyle: 'darken' | 'lighten';
13
+ constructor(entriesService: NodeEntriesService<Node>);
14
+ private getChildObjectCount;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeStatsBadgesComponent, [{ optional: true; }]>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeStatsBadgesComponent, "es-node-stats-badges", never, { "node": { "alias": "node"; "required": false; }; "backgroundStyle": { "alias": "backgroundStyle"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,21 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import { NodeEntriesGlobalService } from '../node-entries-global.service';
4
+ import { NodeHelperService } from '../../services/node-helper.service';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * A small circular badge that depicts the node's type.
8
+ *
9
+ * To be used in the top bar of a card or similar places.
10
+ */
11
+ export declare class NodeTypeBadgeComponent implements OnChanges {
12
+ nodeHelper: NodeHelperService;
13
+ private nodeEntriesGlobalService;
14
+ node: Node;
15
+ isCollection: boolean;
16
+ constructor(nodeHelper: NodeHelperService, nodeEntriesGlobalService: NodeEntriesGlobalService);
17
+ ngOnChanges(): void;
18
+ getCustomTemplate(): import("@angular/core").TemplateRef<unknown>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeTypeBadgeComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeTypeBadgeComponent, "es-node-type-badge", never, { "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
@@ -0,0 +1,11 @@
1
+ import { Node } from 'ngx-edu-sharing-api';
2
+ import { OptionItem } from '../../types/option-item';
3
+ import * as i0 from "@angular/core";
4
+ export declare class OptionButtonComponent {
5
+ option: OptionItem;
6
+ node: Node;
7
+ optionIsValid(optionItem: OptionItem, node: Node): boolean;
8
+ optionIsShown(optionItem: OptionItem, node: Node): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionButtonComponent, "es-option-button", never, { "option": { "alias": "option"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,22 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Displays the preview image of `node`.
6
+ *
7
+ * When `node` is a video, the animated preview image is replaced with a static canvas unless
8
+ * `playAnimation` is set to `true`.
9
+ */
10
+ export declare class PreviewImageComponent<T extends Node> {
11
+ node: T;
12
+ playAnimation: boolean;
13
+ imageRef: ElementRef<HTMLImageElement>;
14
+ canvasRef: ElementRef<HTMLCanvasElement>;
15
+ showCanvas: boolean;
16
+ replacedWithStatic: boolean;
17
+ constructor();
18
+ onImageLoad(event: Event): void;
19
+ private initCanvas;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreviewImageComponent<any>, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreviewImageComponent<any>, "es-preview-image", never, { "node": { "alias": "node"; "required": false; }; "playAnimation": { "alias": "playAnimation"; "required": false; }; }, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Sort, SortDirection } from '@angular/material/sort';
3
+ import { ListItemSort, SortEvent, SortPanel } from '../../types/list-item';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SortSelectPanelComponent implements SortPanel {
6
+ active: string;
7
+ direction: SortDirection;
8
+ columns: ListItemSort[];
9
+ sortChange: EventEmitter<Sort>;
10
+ customSortingInProgress: boolean;
11
+ customSortingInProgressChange: EventEmitter<boolean>;
12
+ constructor();
13
+ onSort(event: SortEvent): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortSelectPanelComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortSelectPanelComponent, "es-sort-select-panel", never, { "active": { "alias": "active"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "customSortingInProgress": { "alias": "customSortingInProgress"; "required": false; }; }, { "sortChange": "sortChange"; "customSortingInProgressChange": "customSortingInProgressChange"; }, never, never, false, never>;
16
+ }
@@ -0,0 +1,51 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import { NodeHelperService } from '../services/node-helper.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeUrlComponent implements AfterViewInit {
6
+ private nodeHelper;
7
+ private elementRef;
8
+ link: ElementRef<HTMLAnchorElement>;
9
+ node: Node;
10
+ nodes: Node[];
11
+ target: string;
12
+ scope: string;
13
+ /**
14
+ * custom query params to include
15
+ */
16
+ queryParams: {
17
+ [key: string]: string | number | boolean;
18
+ };
19
+ /**
20
+ * link: a element
21
+ * button: button element
22
+ * wrapper: div element with behavior "like" a link
23
+ */
24
+ mode: 'link' | 'button' | 'wrapper';
25
+ disabled: boolean;
26
+ /**
27
+ * Show the ripple effect even when disabled.
28
+ *
29
+ * @deprecated Temporary workaround for list-table, which *sometimes* uses it's on click
30
+ * bindings.
31
+ */
32
+ alwaysRipple: boolean;
33
+ ariaDescribedby: string;
34
+ ariaLabel: boolean;
35
+ buttonClick: EventEmitter<MouseEvent>;
36
+ /**
37
+ * Whether this instance of `NodeUrl` is nested inside another `NodeUrl`.
38
+ */
39
+ isNested: boolean;
40
+ constructor(nodeHelper: NodeHelperService, elementRef: ElementRef<HTMLElement>);
41
+ ngAfterViewInit(): void;
42
+ getState(): {
43
+ scope: string;
44
+ };
45
+ get(mode: 'routerLink' | 'queryParams'): any;
46
+ focus(): void;
47
+ clickWrapper(event: MouseEvent): void;
48
+ private getIsNested;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeUrlComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<NodeUrlComponent, "es-node-url", never, { "node": { "alias": "node"; "required": false; }; "nodes": { "alias": "nodes"; "required": false; }; "target": { "alias": "target"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "alwaysRipple": { "alias": "alwaysRipple"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, ["*"], false, never>;
51
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormatSizePipe implements PipeTransform {
5
+ private translate;
6
+ constructor(translate: TranslateService);
7
+ transform(value: any, args?: string[]): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatSizePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatSizePipe, "formatSize", false>;
10
+ }
@@ -0,0 +1,21 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormatDatePipe implements PipeTransform {
6
+ private translate;
7
+ constructor(translate: TranslateService);
8
+ transform(value: Date | number | string, args?: {
9
+ time?: boolean;
10
+ date?: boolean;
11
+ relative?: boolean;
12
+ }): string;
13
+ transform(value: Date | number | string, args: {
14
+ time?: boolean;
15
+ date?: boolean;
16
+ relative?: boolean;
17
+ async: true;
18
+ }): Observable<string>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatDatePipe, never>;
20
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatDatePipe, "formatDate", false>;
21
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import { RepoUrlService } from '../services/repo-url.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeIconPipe implements PipeTransform {
6
+ private repoUrlService;
7
+ constructor(repoUrlService: RepoUrlService);
8
+ transform(node: Node): Promise<string>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeIconPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<NodeIconPipe, "esNodeIcon", false>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Node } from 'ngx-edu-sharing-api';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NodeImageSizePipe implements PipeTransform {
5
+ transform(node: Node, args?: any): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeImageSizePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<NodeImageSizePipe, "NodeImageSize", false>;
8
+ }
@@ -0,0 +1,28 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import { NetworkService } from 'ngx-edu-sharing-api';
4
+ import { Observable } from 'rxjs';
5
+ import { NodeHelperService } from '../services/node-helper.service';
6
+ import { Node } from 'ngx-edu-sharing-api';
7
+ import { RepoUrlService } from '../services/repo-url.service';
8
+ import * as i0 from "@angular/core";
9
+ interface NodeImagePreferences {
10
+ crop?: boolean;
11
+ maxWidth?: number;
12
+ maxHeight?: number;
13
+ width?: number;
14
+ height?: number;
15
+ }
16
+ export declare class NodeImagePipe implements PipeTransform {
17
+ private nodeHelper;
18
+ private sanitizer;
19
+ private repoUrlService;
20
+ private networkApi;
21
+ constructor(nodeHelper: NodeHelperService, sanitizer: DomSanitizer, repoUrlService: RepoUrlService, networkApi: NetworkService);
22
+ transform(node: Node, preferences: NodeImagePreferences): Observable<SafeResourceUrl>;
23
+ private getPreviewUrl;
24
+ private isEduSharingNode;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeImagePipe, never>;
26
+ static ɵpipe: i0.ɵɵPipeDeclaration<NodeImagePipe, "esNodeImage", false>;
27
+ }
28
+ export {};
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ConfigService, Person } from 'ngx-edu-sharing-api';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NodePersonNamePipe implements PipeTransform {
5
+ private config;
6
+ constructor(config: ConfigService);
7
+ transform(person: Person | any, args?: any): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodePersonNamePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<NodePersonNamePipe, "nodePersonName", false>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { Node } from 'ngx-edu-sharing-api';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NodeTitlePipe implements PipeTransform {
6
+ private translate;
7
+ transform(node: Node, args?: string[]): string;
8
+ constructor(translate: TranslateService);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeTitlePipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<NodeTitlePipe, "nodeTitle", false>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { OptionItem } from '../types/option-item';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OptionTooltipPipe implements PipeTransform {
6
+ private translate;
7
+ constructor(translate: TranslateService);
8
+ transform(option: OptionItem, args?: string[]): string;
9
+ getKeyInfo(option: OptionItem): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionTooltipPipe, never>;
11
+ static ɵpipe: i0.ɵɵPipeDeclaration<OptionTooltipPipe, "optionTooltip", false>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ReplaceCharsPipe implements PipeTransform {
5
+ private translate;
6
+ transform(value: string, args: any): string;
7
+ constructor(translate: TranslateService);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceCharsPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<ReplaceCharsPipe, "replaceChars", false>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VCardNamePipe implements PipeTransform {
5
+ private translate;
6
+ constructor(translate: TranslateService);
7
+ transform(authority: string, args?: string[]): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<VCardNamePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<VCardNamePipe, "vcardName", false>;
10
+ }
@@ -1,4 +1,4 @@
1
- export abstract class AppService {
1
+ export declare abstract class AppService {
2
2
  abstract isRunningApp(): boolean;
3
3
  abstract getLanguage(): Promise<string>;
4
4
  }
@@ -0,0 +1,11 @@
1
+ import { KeyboardShortcut } from '../../types/keyboard-shortcuts';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class KeyboardShortcutsService {
5
+ abstract register(shortcuts: KeyboardShortcut[], { until }: {
6
+ until: Observable<void>;
7
+ }): void;
8
+ abstract shouldIgnoreShortcut(event: KeyboardEvent): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardShortcutsService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<KeyboardShortcutsService>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { OptionData, OptionsHelperComponents } from '../options-helper-data.service';
2
+ import { OptionItem, Target } from '../../types/option-item';
3
+ import { Node } from 'ngx-edu-sharing-api';
4
+ export declare abstract class OptionsHelperService {
5
+ abstract wrapOptionCallbacks(data: OptionData): OptionData;
6
+ abstract refreshComponents(components: OptionsHelperComponents, data: OptionData, refreshListOptions: boolean): void;
7
+ abstract getAvailableOptions(target: Target, objects: Node[], components: OptionsHelperComponents, data: OptionData): OptionItem[];
8
+ abstract pasteNode(components: OptionsHelperComponents, data: OptionData, nodes: Node[]): void;
9
+ abstract filterOptions(options: OptionItem[], target: Target, data: OptionData, objects: Node[] | any): OptionItem[];
10
+ }
@@ -1,5 +1,4 @@
1
- export abstract class Toast {
1
+ export declare abstract class Toast {
2
2
  abstract toast(message: string, translationParameters?: any): void;
3
-
4
3
  abstract error(errorObject: any, message?: string): void;
5
4
  }
@@ -0,0 +1,18 @@
1
+ import { Observable } from 'rxjs';
2
+ import { AccessibilitySettings } from '../types/accessibillity';
3
+ import { SessionStorageService } from 'ngx-edu-sharing-api';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AccessibilityService {
6
+ private storage;
7
+ private static readonly STORAGE_PREFIX;
8
+ constructor(storage: SessionStorageService);
9
+ set(accessibilitySettings: Partial<AccessibilitySettings>): Promise<void>;
10
+ observe<K extends keyof AccessibilitySettings>(key: K): Observable<AccessibilitySettings[K]>;
11
+ observe<K extends keyof AccessibilitySettings>(keys: K[]): Observable<Pick<AccessibilitySettings, K>>;
12
+ observe(): Observable<AccessibilitySettings>;
13
+ private observeSingle;
14
+ private observeMultiple;
15
+ private observeAll;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessibilityService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccessibilityService>;
18
+ }