@igo2/common 19.0.2 → 20.0.0-next.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 (325) hide show
  1. package/action/index.d.ts +194 -3
  2. package/backdrop/index.d.ts +20 -3
  3. package/badge/index.d.ts +44 -3
  4. package/clickout/index.d.ts +20 -3
  5. package/clone/index.d.ts +18 -3
  6. package/collapsible/index.d.ts +43 -3
  7. package/color/index.d.ts +38 -3
  8. package/confirm-dialog/index.d.ts +39 -5
  9. package/context-menu/index.d.ts +50 -3
  10. package/custom-html/index.d.ts +30 -3
  11. package/dom/index.d.ts +34 -3
  12. package/drag-drop/index.d.ts +124 -3
  13. package/dynamic-component/index.d.ts +186 -3
  14. package/entity/index.d.ts +1532 -3
  15. package/environment/index.d.ts +15 -5
  16. package/fesm2022/igo2-common-action.mjs +28 -38
  17. package/fesm2022/igo2-common-action.mjs.map +1 -1
  18. package/fesm2022/igo2-common-backdrop.mjs +7 -7
  19. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  20. package/fesm2022/igo2-common-badge.mjs +10 -13
  21. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  22. package/fesm2022/igo2-common-clickout.mjs +10 -13
  23. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  24. package/fesm2022/igo2-common-clone.mjs +7 -7
  25. package/fesm2022/igo2-common-clone.mjs.map +1 -1
  26. package/fesm2022/igo2-common-collapsible.mjs +14 -18
  27. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  28. package/fesm2022/igo2-common-color.mjs +9 -9
  29. package/fesm2022/igo2-common-color.mjs.map +1 -1
  30. package/fesm2022/igo2-common-confirm-dialog.mjs +19 -26
  31. package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
  32. package/fesm2022/igo2-common-context-menu.mjs +16 -21
  33. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  34. package/fesm2022/igo2-common-custom-html.mjs +14 -17
  35. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  36. package/fesm2022/igo2-common-dom.mjs +11 -14
  37. package/fesm2022/igo2-common-dom.mjs.map +1 -1
  38. package/fesm2022/igo2-common-drag-drop.mjs +15 -17
  39. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  40. package/fesm2022/igo2-common-dynamic-component.mjs +20 -27
  41. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  42. package/fesm2022/igo2-common-entity.mjs +69 -108
  43. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  44. package/fesm2022/igo2-common-flexible.mjs +13 -18
  45. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  46. package/fesm2022/igo2-common-form.mjs +77 -112
  47. package/fesm2022/igo2-common-form.mjs.map +1 -1
  48. package/fesm2022/igo2-common-home-button.mjs +7 -7
  49. package/fesm2022/igo2-common-home-button.mjs.map +1 -1
  50. package/fesm2022/igo2-common-icon.mjs +14 -21
  51. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  52. package/fesm2022/igo2-common-image.mjs +53 -57
  53. package/fesm2022/igo2-common-image.mjs.map +1 -1
  54. package/fesm2022/igo2-common-interactive-tour.mjs +43 -56
  55. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  56. package/fesm2022/igo2-common-json-dialog.mjs +19 -28
  57. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  58. package/fesm2022/igo2-common-keyvalue.mjs +7 -7
  59. package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
  60. package/fesm2022/igo2-common-list.mjs +16 -23
  61. package/fesm2022/igo2-common-list.mjs.map +1 -1
  62. package/fesm2022/igo2-common-panel.mjs +9 -9
  63. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  64. package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
  65. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  66. package/fesm2022/igo2-common-select-value-dialog.mjs +28 -44
  67. package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
  68. package/fesm2022/igo2-common-sidenav.mjs +10 -16
  69. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  70. package/fesm2022/igo2-common-spinner.mjs +15 -21
  71. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  72. package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
  73. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  74. package/fesm2022/igo2-common-table.mjs +9 -11
  75. package/fesm2022/igo2-common-table.mjs.map +1 -1
  76. package/fesm2022/igo2-common-tool.mjs +16 -22
  77. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  78. package/fesm2022/igo2-common-widget.mjs +19 -24
  79. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  80. package/fesm2022/igo2-common-workspace.mjs +20 -20
  81. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  82. package/flexible/index.d.ts +54 -3
  83. package/form/index.d.ts +429 -3
  84. package/home-button/index.d.ts +18 -3
  85. package/icon/index.d.ts +42 -3
  86. package/image/index.d.ts +35 -3
  87. package/index.d.ts +16 -5
  88. package/interactive-tour/index.d.ts +116 -5
  89. package/json-dialog/index.d.ts +34 -5
  90. package/keyvalue/index.d.ts +18 -3
  91. package/list/index.d.ts +102 -3
  92. package/package.json +10 -13
  93. package/panel/index.d.ts +20 -3
  94. package/resizable-bar/index.d.ts +37 -5
  95. package/select-value-dialog/index.d.ts +65 -5
  96. package/sidenav/index.d.ts +29 -3
  97. package/spinner/index.d.ts +51 -3
  98. package/src/style/partial/common-utils.scss +1 -1
  99. package/stop-propagation/index.d.ts +26 -3
  100. package/table/index.d.ts +105 -3
  101. package/tool/index.d.ts +289 -3
  102. package/widget/index.d.ts +105 -3
  103. package/workspace/index.d.ts +237 -3
  104. package/action/action.module.d.ts +0 -10
  105. package/action/actionbar/actionbar-item.component.d.ts +0 -73
  106. package/action/actionbar/actionbar.component.d.ts +0 -148
  107. package/action/actionbar/actionbar.module.d.ts +0 -10
  108. package/action/public_api.d.ts +0 -4
  109. package/action/shared/action.enums.d.ts +0 -5
  110. package/action/shared/action.interfaces.d.ts +0 -16
  111. package/action/shared/index.d.ts +0 -3
  112. package/action/shared/store.d.ts +0 -8
  113. package/action/src/action.theming.scss +0 -9
  114. package/action/src/actionbar/actionbar-item.theming.scss +0 -20
  115. package/backdrop/backdrop.component.d.ts +0 -8
  116. package/backdrop/backdrop.module.d.ts +0 -12
  117. package/backdrop/public_api.d.ts +0 -2
  118. package/badge/badge-icon.directive.d.ts +0 -34
  119. package/badge/badge-icon.module.d.ts +0 -12
  120. package/badge/public_api.d.ts +0 -2
  121. package/clickout/clickout.directive.d.ts +0 -10
  122. package/clickout/clickout.module.d.ts +0 -12
  123. package/clickout/public_api.d.ts +0 -2
  124. package/clone/clone.module.d.ts +0 -12
  125. package/clone/clone.pipe.d.ts +0 -7
  126. package/clone/public_api.d.ts +0 -2
  127. package/collapsible/collapse.directive.d.ts +0 -19
  128. package/collapsible/collapsible.component.d.ts +0 -13
  129. package/collapsible/collapsible.module.d.ts +0 -13
  130. package/collapsible/public_api.d.ts +0 -6
  131. package/color/color-picker-form-field/color-picker-form-field.component.d.ts +0 -29
  132. package/color/color-picker-form-field/color-picker-form-field.module.d.ts +0 -10
  133. package/color/color-picker-form-field/index.d.ts +0 -2
  134. package/color/public_api.d.ts +0 -1
  135. package/confirm-dialog/confirm-dialog.component.d.ts +0 -12
  136. package/confirm-dialog/confirm-dialog.interface.d.ts +0 -4
  137. package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
  138. package/confirm-dialog/confirm-dialog.service.d.ts +0 -11
  139. package/confirm-dialog/public_api.d.ts +0 -4
  140. package/context-menu/context-menu.directive.d.ts +0 -21
  141. package/context-menu/context-menu.module.d.ts +0 -13
  142. package/context-menu/long-press.directive.d.ts +0 -19
  143. package/context-menu/public_api.d.ts +0 -6
  144. package/custom-html/custom-html.component.d.ts +0 -8
  145. package/custom-html/custom-html.module.d.ts +0 -13
  146. package/custom-html/custom-html.pipe.d.ts +0 -10
  147. package/custom-html/public_api.d.ts +0 -6
  148. package/dom/dom.interfaces.d.ts +0 -10
  149. package/dom/dom.module.d.ts +0 -14
  150. package/dom/dom.service.d.ts +0 -10
  151. package/dom/public_api.d.ts +0 -3
  152. package/drag-drop/drag-drop.directive.d.ts +0 -14
  153. package/drag-drop/drag-drop.module.d.ts +0 -13
  154. package/drag-drop/public_api.d.ts +0 -3
  155. package/drag-drop/tree-drag-drop/index.d.ts +0 -2
  156. package/drag-drop/tree-drag-drop/tree-drag-drop.directive.d.ts +0 -85
  157. package/drag-drop/tree-drag-drop/tree-drag-drop.interface.d.ts +0 -15
  158. package/dynamic-component/dynamic-component.module.d.ts +0 -10
  159. package/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +0 -66
  160. package/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +0 -10
  161. package/dynamic-component/public_api.d.ts +0 -4
  162. package/dynamic-component/shared/dynamic-component.d.ts +0 -84
  163. package/dynamic-component/shared/dynamic-component.interfaces.d.ts +0 -3
  164. package/dynamic-component/shared/dynamic-component.service.d.ts +0 -18
  165. package/dynamic-component/shared/index.d.ts +0 -3
  166. package/entity/entity-selector/entity-selector.component.d.ts +0 -93
  167. package/entity/entity-selector/entity-selector.module.d.ts +0 -10
  168. package/entity/entity-selector/index.d.ts +0 -2
  169. package/entity/entity-table/entity-table-row.directive.d.ts +0 -69
  170. package/entity/entity-table/entity-table.component.d.ts +0 -330
  171. package/entity/entity-table/entity-table.module.d.ts +0 -10
  172. package/entity/entity-table/index.d.ts +0 -2
  173. package/entity/entity-table-paginator/entity-table-paginator.component.d.ts +0 -50
  174. package/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +0 -8
  175. package/entity/entity-table-paginator/entity-table-paginator.module.d.ts +0 -10
  176. package/entity/entity-table-paginator/index.d.ts +0 -3
  177. package/entity/entity.module.d.ts +0 -16
  178. package/entity/public_api.d.ts +0 -5
  179. package/entity/shared/entity.enums.d.ts +0 -23
  180. package/entity/shared/entity.interfaces.d.ts +0 -92
  181. package/entity/shared/entity.utils.d.ts +0 -49
  182. package/entity/shared/index.d.ts +0 -9
  183. package/entity/shared/state.d.ts +0 -108
  184. package/entity/shared/store.d.ts +0 -180
  185. package/entity/shared/strategies/filter-custom-function.d.ts +0 -51
  186. package/entity/shared/strategies/filter-selection.d.ts +0 -48
  187. package/entity/shared/strategies/index.d.ts +0 -3
  188. package/entity/shared/strategies/strategy.d.ts +0 -56
  189. package/entity/shared/transaction.d.ts +0 -171
  190. package/entity/shared/view.d.ts +0 -193
  191. package/entity/shared/watcher.d.ts +0 -72
  192. package/entity/src/entity-selector/entity-selector.theming.scss +0 -21
  193. package/entity/src/entity-table/entity-table.theming.scss +0 -21
  194. package/entity/src/entity.theming.scss +0 -12
  195. package/environment/environment.interface.d.ts +0 -13
  196. package/environment/public_api.d.ts +0 -1
  197. package/flexible/flexible.component.d.ts +0 -42
  198. package/flexible/flexible.module.d.ts +0 -12
  199. package/flexible/flexible.type.d.ts +0 -2
  200. package/flexible/public_api.d.ts +0 -3
  201. package/form/form/form.component.d.ts +0 -46
  202. package/form/form/form.module.d.ts +0 -10
  203. package/form/form/index.d.ts +0 -2
  204. package/form/form-dialog/form-dialog.component.d.ts +0 -19
  205. package/form/form-dialog/form-dialog.interface.d.ts +0 -16
  206. package/form/form-dialog/form-dialog.module.d.ts +0 -16
  207. package/form/form-dialog/form-dialog.service.d.ts +0 -11
  208. package/form/form-dialog/index.d.ts +0 -4
  209. package/form/form-field/form-field-select.component.d.ts +0 -50
  210. package/form/form-field/form-field-text.component.d.ts +0 -49
  211. package/form/form-field/form-field-textarea.component.d.ts +0 -39
  212. package/form/form-field/form-field.component.d.ts +0 -29
  213. package/form/form-field/form-field.directive.d.ts +0 -5
  214. package/form/form-field/form-field.module.d.ts +0 -13
  215. package/form/form-field/index.d.ts +0 -6
  216. package/form/form-group/form-group.component.d.ts +0 -44
  217. package/form/form-group/form-group.module.d.ts +0 -10
  218. package/form/form-group/index.d.ts +0 -2
  219. package/form/form.module.d.ts +0 -18
  220. package/form/public_api.d.ts +0 -6
  221. package/form/shared/form-field-component.d.ts +0 -1
  222. package/form/shared/form-field.service.d.ts +0 -16
  223. package/form/shared/form.interfaces.d.ts +0 -60
  224. package/form/shared/form.service.d.ts +0 -15
  225. package/form/shared/form.utils.d.ts +0 -7
  226. package/form/shared/index.d.ts +0 -5
  227. package/home-button/home-button.component.d.ts +0 -8
  228. package/home-button/home-button.module.d.ts +0 -10
  229. package/home-button/public_api.d.ts +0 -2
  230. package/icon/icon/icon.component.d.ts +0 -15
  231. package/icon/icon.provider.d.ts +0 -4
  232. package/icon/public_api.d.ts +0 -3
  233. package/icon/shared/icon.interface.d.ts +0 -4
  234. package/icon/shared/icon.service.d.ts +0 -12
  235. package/icon/shared/icons.d.ts +0 -11
  236. package/icon/shared/index.d.ts +0 -3
  237. package/image/image-error.directive.d.ts +0 -11
  238. package/image/image.module.d.ts +0 -13
  239. package/image/public_api.d.ts +0 -6
  240. package/image/secure-image.pipe.d.ts +0 -13
  241. package/interactive-tour/interactive-tour.component.d.ts +0 -33
  242. package/interactive-tour/interactive-tour.interface.d.ts +0 -35
  243. package/interactive-tour/interactive-tour.loader.d.ts +0 -18
  244. package/interactive-tour/interactive-tour.module.d.ts +0 -7
  245. package/interactive-tour/interactive-tour.service.d.ts +0 -30
  246. package/interactive-tour/public_api.d.ts +0 -5
  247. package/json-dialog/json-dialog.component.d.ts +0 -13
  248. package/json-dialog/json-dialog.module.d.ts +0 -12
  249. package/json-dialog/json-dialog.service.d.ts +0 -10
  250. package/json-dialog/public_api.d.ts +0 -3
  251. package/keyvalue/keyvalue.module.d.ts +0 -12
  252. package/keyvalue/keyvalue.pipe.d.ts +0 -7
  253. package/keyvalue/public_api.d.ts +0 -2
  254. package/list/list-item.directive.d.ts +0 -43
  255. package/list/list.component.d.ts +0 -51
  256. package/list/list.module.d.ts +0 -13
  257. package/list/public_api.d.ts +0 -6
  258. package/panel/panel.component.d.ts +0 -10
  259. package/panel/panel.module.d.ts +0 -10
  260. package/panel/public_api.d.ts +0 -2
  261. package/panel/src/panel.theming.scss +0 -20
  262. package/public_api.d.ts +0 -16
  263. package/resizable-bar/public_api.d.ts +0 -2
  264. package/resizable-bar/resizable-bar.component.d.ts +0 -23
  265. package/resizable-bar/shared/resize.directive.d.ts +0 -12
  266. package/select-value-dialog/public_api.d.ts +0 -5
  267. package/select-value-dialog/select-value-check-radio-dialog.component.d.ts +0 -25
  268. package/select-value-dialog/select-value-dialog.enums.d.ts +0 -4
  269. package/select-value-dialog/select-value-dialog.interface.d.ts +0 -16
  270. package/select-value-dialog/select-value-dialog.module.d.ts +0 -12
  271. package/select-value-dialog/select-value-dialog.service.d.ts +0 -11
  272. package/sidenav/public_api.d.ts +0 -2
  273. package/sidenav/sidenav-shim.directive.d.ts +0 -20
  274. package/sidenav/sidenav.module.d.ts +0 -12
  275. package/spinner/public_api.d.ts +0 -3
  276. package/spinner/spinner-activity.directive.d.ts +0 -32
  277. package/spinner/spinner.component.d.ts +0 -11
  278. package/spinner/spinner.module.d.ts +0 -14
  279. package/src/common.theme.scss +0 -18
  280. package/stop-propagation/public_api.d.ts +0 -6
  281. package/stop-propagation/stop-drop-propagation.directive.d.ts +0 -6
  282. package/stop-propagation/stop-propagation.directive.d.ts +0 -6
  283. package/stop-propagation/stop-propagation.module.d.ts +0 -13
  284. package/table/public_api.d.ts +0 -6
  285. package/table/table-action-color.enum.d.ts +0 -5
  286. package/table/table-database.d.ts +0 -10
  287. package/table/table-datasource.d.ts +0 -18
  288. package/table/table-model.interface.d.ts +0 -24
  289. package/table/table.component.d.ts +0 -40
  290. package/table/table.module.d.ts +0 -12
  291. package/tool/public_api.d.ts +0 -3
  292. package/tool/shared/index.d.ts +0 -5
  293. package/tool/shared/tool-component.d.ts +0 -2
  294. package/tool/shared/tool.interface.d.ts +0 -16
  295. package/tool/shared/tool.service.d.ts +0 -28
  296. package/tool/shared/toolbox.d.ts +0 -96
  297. package/tool/shared/toolbox.enums.d.ts +0 -1
  298. package/tool/src/tool.theming.scss +0 -5
  299. package/tool/src/toolbox/toolbox.theming.scss +0 -22
  300. package/tool/tool.module.d.ts +0 -15
  301. package/tool/toolbox/index.d.ts +0 -2
  302. package/tool/toolbox/toolbox.animation.d.ts +0 -2
  303. package/tool/toolbox/toolbox.component.d.ts +0 -126
  304. package/tool/toolbox/toolbox.module.d.ts +0 -10
  305. package/widget/public_api.d.ts +0 -3
  306. package/widget/shared/index.d.ts +0 -3
  307. package/widget/shared/widget.d.ts +0 -4
  308. package/widget/shared/widget.interfaces.d.ts +0 -12
  309. package/widget/shared/widget.service.d.ts +0 -10
  310. package/widget/widget-outlet/index.d.ts +0 -2
  311. package/widget/widget-outlet/widget-outlet.component.d.ts +0 -64
  312. package/widget/widget-outlet/widget-outlet.module.d.ts +0 -10
  313. package/widget/widget.module.d.ts +0 -10
  314. package/workspace/public_api.d.ts +0 -4
  315. package/workspace/shared/index.d.ts +0 -3
  316. package/workspace/shared/store.d.ts +0 -20
  317. package/workspace/shared/workspace.d.ts +0 -98
  318. package/workspace/shared/workspace.interfaces.d.ts +0 -9
  319. package/workspace/workspace-selector/index.d.ts +0 -2
  320. package/workspace/workspace-selector/workspace-selector.component.d.ts +0 -38
  321. package/workspace/workspace-selector/workspace-selector.module.d.ts +0 -10
  322. package/workspace/workspace-widget-outlet/index.d.ts +0 -2
  323. package/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +0 -52
  324. package/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +0 -10
  325. package/workspace/workspace.module.d.ts +0 -14
@@ -1,5 +1,126 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, AfterContentInit, OnDestroy, QueryList, ModuleWithProviders } from '@angular/core';
3
+ import { SelectionModel } from '@angular/cdk/collections';
4
+ import { FlatTreeControl } from '@angular/cdk/tree';
5
+ import { MatTreeNode } from '@angular/material/tree';
6
+
7
+ declare class DragAndDropDirective {
8
+ allowedExtensions: string[];
9
+ protected filesDropped: EventEmitter<File[]>;
10
+ protected filesInvalid: EventEmitter<File[]>;
11
+ private background;
12
+ onDragOver(evt: any): void;
13
+ onDragLeave(evt: any): void;
14
+ onDrop(evt: any): void;
15
+ private validExtensions;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DragAndDropDirective, "[igoDragAndDrop]", never, { "allowedExtensions": { "alias": "allowedExtensions"; "required": false; }; }, { "filesDropped": "filesDropped"; "filesInvalid": "filesInvalid"; }, never, never, true, never>;
18
+ }
19
+
20
+ interface TreeFlatNode<T = any> {
21
+ id: string;
22
+ isGroup: boolean;
23
+ disabled: boolean;
24
+ level: number;
25
+ descendantLevels?: number;
26
+ data: T;
27
+ }
28
+ interface DropPosition {
29
+ x: number;
30
+ y: number;
31
+ level: number;
32
+ type: DropPositionType;
33
+ }
34
+ type DropPositionType = 'above' | 'below' | 'inside';
35
+
36
+ interface TreeDropEvent<T = any> {
37
+ node: TreeFlatNode<T>;
38
+ ref: TreeFlatNode<T>;
39
+ position: DropPositionType;
40
+ }
41
+ interface DragNodeListeners {
42
+ element: HTMLElement;
43
+ listeners: [string, EventListenerOrEventListenerObject][];
44
+ }
45
+ interface DropPermission {
46
+ canDrop: boolean;
47
+ message?: string;
48
+ params?: Record<string, unknown>;
49
+ }
1
50
  /**
2
- * Generated bundle index. Do not edit.
51
+ * This directive should be use with a MatTree flatened
52
+ * It should add all logic to drag the MatTreeNode and connect the (onDrop) output
53
+ * Class added:
54
+ * Tree: --dragging
55
+ * Node: --drag-hover | --dragged
3
56
  */
4
- /// <amd-module name="@igo2/common/drag-drop" />
5
- export * from './public_api';
57
+ declare class TreeDragDropDirective implements AfterContentInit, OnDestroy {
58
+ private elementRef;
59
+ private renderer;
60
+ draggedNode: TreeFlatNode;
61
+ dropNodeTarget: TreeFlatNode;
62
+ expandTimeout: number;
63
+ nodesListeners: DragNodeListeners[] | undefined;
64
+ dropLineTarget: HTMLElement;
65
+ highlightedNode: SelectionModel<TreeFlatNode<any>>;
66
+ treeControl: FlatTreeControl<TreeFlatNode>;
67
+ /** The default is 5 */
68
+ maxLevel: number;
69
+ set treeDragDropIsDisabled(disabled: boolean);
70
+ private isDisabled;
71
+ dragStart: EventEmitter<TreeFlatNode<any>>;
72
+ onDrop: EventEmitter<TreeDropEvent<any>>;
73
+ onDropError: EventEmitter<DropPermission>;
74
+ hostDragOver(event: Event): void;
75
+ hostDrop(event: DragEvent): void;
76
+ dragging: boolean;
77
+ nodes: QueryList<MatTreeNode<TreeFlatNode>>;
78
+ constructor();
79
+ ngAfterContentInit(): void;
80
+ ngOnDestroy(): void;
81
+ onDragStart(node: TreeFlatNode): void;
82
+ dragEnd(): void;
83
+ dragOver(node: TreeFlatNode, event: DragEvent): void;
84
+ dragLeave(): void;
85
+ drop(event: DragEvent): void;
86
+ private addNodeClass;
87
+ private removeNodeClass;
88
+ private addAllListener;
89
+ private addListener;
90
+ private removeAllListener;
91
+ private setHighlightedNode;
92
+ private addDropTargetLine;
93
+ private removeDropTargetLine;
94
+ private updateDropTargetLinePosition;
95
+ private handleGroupExpansion;
96
+ private getNodeElement;
97
+ private canDropNode;
98
+ private canDropGroup;
99
+ private validateMaxHierarchyLevel;
100
+ private isHoverDescendant;
101
+ private getPosition;
102
+ private getPositionY;
103
+ private getPositionType;
104
+ private getPositionLevel;
105
+ /**
106
+ * @param level if level is defined with go to the defined levle to find ancestor. Sinon on prend le current ancestor
107
+ */
108
+ private getNodeAncestors;
109
+ private getDirectDescendants;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeDragDropDirective, never>;
111
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TreeDragDropDirective, "[igoTreeDragDrop]", never, { "treeControl": { "alias": "treeControl"; "required": true; }; "maxLevel": { "alias": "maxLevel"; "required": false; }; "treeDragDropIsDisabled": { "alias": "treeDragDropIsDisabled"; "required": false; }; }, { "dragStart": "dragStart"; "onDrop": "onDrop"; "onDropError": "onDropError"; }, ["nodes"], never, true, never>;
112
+ static ngAcceptInputType_treeDragDropIsDisabled: unknown;
113
+ }
114
+
115
+ /**
116
+ * @deprecated import the DragAndDropDirective directly
117
+ */
118
+ declare class IgoDrapDropModule {
119
+ static forRoot(): ModuleWithProviders<IgoDrapDropModule>;
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoDrapDropModule, never>;
121
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDrapDropModule, never, [typeof DragAndDropDirective, typeof TreeDragDropDirective], [typeof DragAndDropDirective, typeof TreeDragDropDirective]>;
122
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoDrapDropModule>;
123
+ }
124
+
125
+ export { DragAndDropDirective, IgoDrapDropModule, TreeDragDropDirective };
126
+ export type { DropPermission, DropPosition, DropPositionType, TreeDropEvent, TreeFlatNode };
@@ -1,5 +1,188 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ComponentFactory, ViewContainerRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
+
4
+ interface OnUpdateInputs {
5
+ onUpdateInputs: () => void;
6
+ }
7
+
1
8
  /**
2
- * Generated bundle index. Do not edit.
9
+ * This class is used in the DynamicComponentOutlet component. It holds
10
+ * a reference to a component factory and can render that component
11
+ * in a target element on demand. It's also possible to set inputs
12
+ * and to subscribe to outputs.
3
13
  */
4
- /// <amd-module name="@igo2/common/dynamic-component" />
5
- export * from './public_api';
14
+ declare class DynamicComponent<C> {
15
+ private componentFactory;
16
+ /**
17
+ * Component reference
18
+ */
19
+ private componentRef;
20
+ /**
21
+ * Subscriptions to the component's outputs. Those need
22
+ * to be unsubscribed when the component is destroyed.
23
+ */
24
+ private subscriptions;
25
+ /**
26
+ * Component target element
27
+ */
28
+ private target;
29
+ /**
30
+ * Component inputs
31
+ */
32
+ private inputs;
33
+ /**
34
+ * Subscriptions to the component's async inputs
35
+ */
36
+ private inputs$$;
37
+ /**
38
+ * Subscribers to the component's outputs
39
+ */
40
+ private subscribers;
41
+ constructor(componentFactory: ComponentFactory<C>);
42
+ /**
43
+ * Render the component to a target element.
44
+ * Set it's inputs and subscribe to it's outputs.
45
+ * @param target Target element
46
+ */
47
+ setTarget(target: ViewContainerRef): void;
48
+ /**
49
+ * Destroy this component. That means, removing from it's target
50
+ * element and unsubscribing to it's outputs.
51
+ */
52
+ destroy(): void;
53
+ /**
54
+ * Update the component inputs. This is an update so any
55
+ * key not defined won't be overwritten.
56
+ */
57
+ updateInputs(inputs: Record<string, any>): void;
58
+ /**
59
+ * Set an instance's input value
60
+ * @param instance Component instance
61
+ * @param key Input key
62
+ * @param value Input value
63
+ */
64
+ private setInputValue;
65
+ /**
66
+ * Update the component subscribers. This is an update so any
67
+ * key not defined won't be overwritten.
68
+ */
69
+ updateSubscribers(subscribers: Record<string, (event: any) => void>): void;
70
+ /**
71
+ * Subscribe to an observable input and update the component's input value
72
+ * accordingly
73
+ * @param key Input key
74
+ * @param observable Observable
75
+ */
76
+ private observeInput;
77
+ /**
78
+ * Unsubscribe to an observable input
79
+ * @param key Input key
80
+ */
81
+ private unobserveInput;
82
+ /**
83
+ * Unsubscribe to all outputs.
84
+ */
85
+ private unobserveAllInputs;
86
+ /**
87
+ * Unsubscribe to all outputs.
88
+ */
89
+ private unsubscribeAll;
90
+ }
91
+
92
+ /**
93
+ * Service to creates DynamicComponent instances from base component classes
94
+ */
95
+ declare class DynamicComponentService {
96
+ private resolver;
97
+ /**
98
+ * Creates a DynamicComponent instance from a base component class
99
+ * @param componentCls The component class
100
+ * @returns DynamicComponent instance
101
+ */
102
+ create(componentCls: any): DynamicComponent<any>;
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
104
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
105
+ }
106
+
107
+ declare class DynamicOutletComponent implements OnChanges, OnDestroy {
108
+ private dynamicComponentService;
109
+ private cdRef;
110
+ /**
111
+ * The dynamic component base class or the dynamic component itself
112
+ */
113
+ component: DynamicComponent<any> | any;
114
+ /**
115
+ * The dynamic component inputs
116
+ */
117
+ inputs: Record<string, any>;
118
+ /**
119
+ * The subscribers to the dynamic component outputs
120
+ */
121
+ subscribers: Record<string, (event: any) => void>;
122
+ /**
123
+ * The dynamic component
124
+ */
125
+ private dynamicComponent;
126
+ /**
127
+ * The view element to render the component to
128
+ * @ignore
129
+ */
130
+ private target;
131
+ /**
132
+ * If the dynamic component changes, create it.
133
+ * If the inputs or subscribers change, update the current component's
134
+ * inputs or subscribers.
135
+ * @internal
136
+ */
137
+ ngOnChanges(changes: SimpleChanges): void;
138
+ /**
139
+ * Destroy the dynamic component and all it's subscribers
140
+ * @internal
141
+ */
142
+ ngOnDestroy(): void;
143
+ /**
144
+ * Create a DynamicComponent out of the component class and render it.
145
+ * @internal
146
+ */
147
+ private createComponent;
148
+ /**
149
+ * Create and render the dynamic component. Set it's inputs and subscribers
150
+ * @internal
151
+ */
152
+ private renderComponent;
153
+ /**
154
+ * Update the dynamic component inputs. This is an update so any
155
+ * key not defined won't be overwritten.
156
+ * @internal
157
+ */
158
+ private updateInputs;
159
+ /**
160
+ * Update the dynamic component subscribers. This is an update so any
161
+ * key not defined won't be overwritten.
162
+ * @internal
163
+ */
164
+ private updateSubscribers;
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicOutletComponent, never>;
166
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicOutletComponent, "igo-dynamic-outlet", never, { "component": { "alias": "component"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "subscribers": { "alias": "subscribers"; "required": false; }; }, {}, never, never, true, never>;
167
+ }
168
+
169
+ /**
170
+ * @deprecated import the DynamicOutletComponent directly
171
+ */
172
+ declare class IgoDynamicComponentModule {
173
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoDynamicComponentModule, never>;
174
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDynamicComponentModule, never, [typeof DynamicOutletComponent], [typeof DynamicOutletComponent]>;
175
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoDynamicComponentModule>;
176
+ }
177
+
178
+ /**
179
+ * @deprecated import the DynamicOutletComponent directly
180
+ */
181
+ declare class IgoDynamicOutletModule {
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoDynamicOutletModule, never>;
183
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDynamicOutletModule, never, [typeof DynamicOutletComponent], [typeof DynamicOutletComponent]>;
184
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoDynamicOutletModule>;
185
+ }
186
+
187
+ export { DynamicComponent, DynamicComponentService, DynamicOutletComponent, IgoDynamicComponentModule, IgoDynamicOutletModule };
188
+ export type { OnUpdateInputs };