@coolon/angular-ui-powerups 16.1.0-aplpha.17 → 16.1.0-aplpha.171

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 (249) hide show
  1. package/assets/activities/activities.scss +5 -3
  2. package/assets/activities/input-activities.scss +14 -6
  3. package/assets/draw.scss +20 -0
  4. package/assets/form.scss +74 -27
  5. package/assets/icons.scss +1 -0
  6. package/assets/layout.scss +3 -0
  7. package/assets/styles.scss +2 -0
  8. package/assets/table.scss +41 -19
  9. package/assets/tabs.scss +15 -5
  10. package/esm2022/lib/animations/slide-animations.mjs +15 -10
  11. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
  12. package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +115 -0
  13. package/esm2022/lib/components/commands/command/command.component.mjs +34 -29
  14. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +11 -3
  15. package/esm2022/lib/components/commands/command-face.mjs +12 -11
  16. package/esm2022/lib/components/commands/group/popup-aware.component.mjs +31 -8
  17. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +25 -23
  18. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +11 -20
  19. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +12 -7
  20. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +11 -20
  21. package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +8 -6
  22. package/esm2022/lib/components/commands/separator.component.mjs +6 -12
  23. package/esm2022/lib/components/components.module.mjs +55 -30
  24. package/esm2022/lib/components/disposable-component.mjs +32 -7
  25. package/esm2022/lib/components/exports.mjs +14 -5
  26. package/esm2022/lib/components/file/file-download/file-download.component.mjs +78 -0
  27. package/esm2022/lib/components/forms/abstract-input.component.mjs +55 -12
  28. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +4 -4
  29. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +8 -6
  30. package/esm2022/lib/components/forms/form-field.mjs +2 -0
  31. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +4 -4
  32. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +84 -9
  33. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +40 -3
  34. package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
  35. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +11 -10
  36. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +30 -11
  37. package/esm2022/lib/components/forms/text-input/text-input.component.mjs +8 -4
  38. package/esm2022/lib/components/icon/icon.component.mjs +7 -4
  39. package/esm2022/lib/components/loadable-component.mjs +36 -8
  40. package/esm2022/lib/components/resize-aware.component.mjs +61 -24
  41. package/esm2022/lib/components/switch-case/switch-case.component.mjs +5 -7
  42. package/esm2022/lib/components/tables/abstract-table-model.mjs +112 -63
  43. package/esm2022/lib/components/tables/abstract-table.component.mjs +19 -5
  44. package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
  45. package/esm2022/lib/components/tables/column/column-model.mjs +16 -6
  46. package/esm2022/lib/components/tables/column/column-order-manager.mjs +19 -0
  47. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
  48. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
  49. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
  50. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
  51. package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
  52. package/esm2022/lib/components/tables/column/selection-column-model.mjs +35 -13
  53. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +2 -2
  54. package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -1
  55. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +4 -2
  56. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +16 -2
  57. package/esm2022/lib/components/tables/footer/footer-row-model.mjs +38 -0
  58. package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
  59. package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +7 -0
  60. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +23 -5
  61. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
  62. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +7 -4
  63. package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +2 -0
  64. package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +153 -0
  65. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +150 -40
  66. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
  67. package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +45 -0
  68. package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +71 -0
  69. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +30 -0
  70. package/esm2022/lib/components/tables/table/table-model.mjs +12 -3
  71. package/esm2022/lib/components/tables/table/table.component.mjs +39 -61
  72. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +5 -4
  73. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
  74. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
  75. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +12 -5
  76. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +4 -7
  77. package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
  78. package/esm2022/lib/directives/command.directive.mjs +18 -7
  79. package/esm2022/lib/directives/directives.module.mjs +1 -1
  80. package/esm2022/lib/directives/exports.mjs +2 -1
  81. package/esm2022/lib/directives/highlight.pipe.mjs +9 -8
  82. package/esm2022/lib/directives/resize-observer.directive.mjs +40 -0
  83. package/esm2022/lib/interaction/abstract-interaction-context.mjs +6 -7
  84. package/esm2022/lib/interaction/activity-context.mjs +4 -0
  85. package/esm2022/lib/interaction/activity.mjs +20 -21
  86. package/esm2022/lib/interaction/alert.mjs +2 -2
  87. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +11 -8
  88. package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +1 -41
  89. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +28 -16
  90. package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +8 -2
  91. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +46 -15
  92. package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +53 -15
  93. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
  94. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  95. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  96. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
  97. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +10 -10
  98. package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +55 -0
  99. package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +54 -0
  100. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -8
  101. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -8
  102. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +7 -9
  103. package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
  104. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +4 -4
  105. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +21 -5
  106. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
  107. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +4 -2
  108. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +8 -4
  109. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +134 -0
  110. package/esm2022/lib/interaction/confirm.mjs +26 -2
  111. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
  112. package/esm2022/lib/interaction/exports.mjs +6 -1
  113. package/esm2022/lib/interaction/interaction-context-provider.mjs +17 -0
  114. package/esm2022/lib/interaction/interaction-context.mjs +3 -2
  115. package/esm2022/lib/interaction/interaction.module.mjs +22 -14
  116. package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
  117. package/esm2022/lib/interaction/services/interaction.service.mjs +18 -6
  118. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -2
  119. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +23 -4
  120. package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -5
  121. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +7 -9
  122. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
  123. package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
  124. package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
  125. package/esm2022/lib/place/guards/place.guard.mjs +6 -5
  126. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
  127. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +3 -6
  128. package/esm2022/lib/place/navigation/session/navigation-session.mjs +2 -2
  129. package/esm2022/lib/place/place-auth-service.mjs +7 -6
  130. package/esm2022/lib/place/place-component.mjs +29 -19
  131. package/esm2022/lib/place/place-definition.mjs +15 -4
  132. package/esm2022/lib/place/place-history.mjs +2 -2
  133. package/esm2022/lib/place/place-router.mjs +27 -23
  134. package/esm2022/lib/place/place.decorator.mjs +2 -2
  135. package/esm2022/lib/place/place.module.mjs +1 -5
  136. package/esm2022/lib/place/route/formatter.mjs +2 -2
  137. package/esm2022/lib/place/route/parameter-decorators.mjs +54 -50
  138. package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
  139. package/esm2022/lib/place/url-snapshot.mjs +3 -3
  140. package/esm2022/lib/place/visit-segment.mjs +2 -2
  141. package/esm2022/lib/place/visit.mjs +2 -2
  142. package/esm2022/lib/services/exports.mjs +2 -1
  143. package/esm2022/lib/services/loading-monitor.mjs +81 -0
  144. package/fesm2022/coolon-angular-ui-powerups.mjs +2534 -1084
  145. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  146. package/lib/animations/slide-animations.d.ts +1 -0
  147. package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
  148. package/lib/components/commands/button-renderer/button-renderer.component.d.ts +30 -0
  149. package/lib/components/commands/command/command.component.d.ts +8 -8
  150. package/lib/components/commands/command-face/command-face.component.d.ts +2 -0
  151. package/lib/components/commands/command-face.d.ts +8 -9
  152. package/lib/components/commands/group/popup-aware.component.d.ts +9 -4
  153. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -4
  154. package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +2 -4
  155. package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -0
  156. package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +2 -4
  157. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
  158. package/lib/components/commands/separator.component.d.ts +2 -4
  159. package/lib/components/components.module.d.ts +60 -55
  160. package/lib/components/disposable-component.d.ts +16 -3
  161. package/lib/components/exports.d.ts +13 -4
  162. package/lib/components/file/file-download/file-download.component.d.ts +43 -0
  163. package/lib/components/forms/abstract-input.component.d.ts +13 -5
  164. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
  165. package/lib/components/forms/form-field.d.ts +5 -0
  166. package/lib/components/forms/number-input/number-input.component.d.ts +16 -4
  167. package/lib/components/forms/password-input/password-input.component.d.ts +7 -1
  168. package/lib/components/forms/search-input/search-input.component.d.ts +10 -0
  169. package/lib/components/forms/select-input/select-input.component.d.ts +4 -3
  170. package/lib/components/forms/string-input/string-input.component.d.ts +7 -1
  171. package/lib/components/forms/text-input/text-input.component.d.ts +3 -0
  172. package/lib/components/loadable-component.d.ts +10 -5
  173. package/lib/components/resize-aware.component.d.ts +24 -5
  174. package/lib/components/switch-case/switch-case.component.d.ts +2 -3
  175. package/lib/components/tables/abstract-table-model.d.ts +50 -25
  176. package/lib/components/tables/abstract-table.component.d.ts +4 -3
  177. package/lib/components/tables/column/column-manager.d.ts +19 -0
  178. package/lib/components/tables/column/column-model.d.ts +7 -3
  179. package/lib/components/tables/column/column-order-manager.d.ts +20 -0
  180. package/lib/components/tables/column/custom-template-column-model.d.ts +3 -2
  181. package/lib/components/tables/column/custom-value-column-model.d.ts +3 -2
  182. package/lib/components/tables/column/editor-controls-column-model.d.ts +3 -2
  183. package/lib/components/tables/column/list-propery-column-model.d.ts +3 -2
  184. package/lib/components/tables/column/property-column-model.d.ts +3 -2
  185. package/lib/components/tables/column/selection-column-model.d.ts +10 -4
  186. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  187. package/lib/components/tables/editor/edit-session.d.ts +1 -1
  188. package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
  189. package/lib/components/tables/footer/footer-row-model.d.ts +22 -0
  190. package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +6 -0
  191. package/lib/components/tables/renderer/cell-portal-ref.d.ts +20 -12
  192. package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
  193. package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +7 -0
  194. package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +42 -0
  195. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +40 -16
  196. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +2 -3
  197. package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +19 -0
  198. package/lib/components/tables/renderer/{table-more-menu/table-more-menu.component.d.ts → table-custom-more-menu/table-custom-more-menu.component.d.ts} +8 -7
  199. package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +11 -0
  200. package/lib/components/tables/table/table-model.d.ts +4 -4
  201. package/lib/components/tables/table/table.component.d.ts +14 -10
  202. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  203. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  204. package/lib/components/tables/tree-table/tree-table-component.d.ts +3 -0
  205. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  206. package/lib/directives/command.directive.d.ts +6 -4
  207. package/lib/directives/exports.d.ts +1 -0
  208. package/lib/directives/resize-observer.directive.d.ts +16 -0
  209. package/lib/interaction/abstract-interaction-context.d.ts +1 -1
  210. package/lib/interaction/activity-context.d.ts +9 -0
  211. package/lib/interaction/activity.d.ts +7 -7
  212. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +2 -1
  213. package/lib/interaction/components/abstract-dialog.component.d.ts +5 -14
  214. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +12 -9
  215. package/lib/interaction/components/activity-body/activity-body.component.d.ts +2 -1
  216. package/lib/interaction/components/activity-container/activity-container.component.d.ts +10 -4
  217. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -3
  218. package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
  219. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +6 -1
  220. package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +17 -0
  221. package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +15 -0
  222. package/lib/interaction/components/editors/edit-context.d.ts +1 -1
  223. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +5 -3
  224. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +53 -0
  225. package/lib/interaction/confirm.d.ts +4 -0
  226. package/lib/interaction/exports.d.ts +5 -0
  227. package/lib/interaction/interaction-context-provider.d.ts +11 -0
  228. package/lib/interaction/interaction-context.d.ts +7 -1
  229. package/lib/interaction/interaction.module.d.ts +35 -33
  230. package/lib/interaction/services/interaction-service-routing-adapter.d.ts +2 -2
  231. package/lib/interaction/services/interaction.service.d.ts +2 -1
  232. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
  233. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +3 -1
  234. package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -4
  235. package/lib/place/place-auth-service.d.ts +4 -4
  236. package/lib/place/place-component.d.ts +7 -5
  237. package/lib/place/place-definition.d.ts +2 -0
  238. package/lib/place/place-router.d.ts +6 -2
  239. package/lib/place/place.module.d.ts +4 -5
  240. package/lib/services/exports.d.ts +1 -0
  241. package/lib/services/loading-monitor.d.ts +29 -0
  242. package/package.json +6 -4
  243. package/esm2022/lib/components/tables/column/column-list-model.mjs +0 -44
  244. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +0 -33
  245. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +0 -60
  246. package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -84
  247. package/lib/components/tables/column/column-list-model.d.ts +0 -13
  248. package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +0 -15
  249. package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +0 -28
@@ -1,5 +1,5 @@
1
1
  import { ComponentPortal } from '@angular/cdk/portal';
2
- import { ChangeDetectorRef, EventEmitter, InjectionToken } from '@angular/core';
2
+ import { EventEmitter, InjectionToken } from '@angular/core';
3
3
  import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
4
4
  import { BooleanValueModelChain, Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
5
5
  import { DisposableComponent } from '../../../components/disposable-component';
@@ -13,7 +13,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
13
13
  private readonly router;
14
14
  private readonly placeRouter;
15
15
  readonly placeConfig: PlaceConfig;
16
- private readonly cdr;
17
16
  accessor animate$: ValueModel<boolean>;
18
17
  accessor animate: boolean;
19
18
  accessor customPlaceAnimationOrder$: ListModel<Constructable<PlaceComponent>>;
@@ -37,7 +36,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
37
36
  readonly animationEnabled: BooleanValueModelChain;
38
37
  readonly authorised: ValueModelChain<boolean>;
39
38
  readonly notAuthorisedNoticePortal: ComponentPortal<any>;
40
- constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent, cdr: ChangeDetectorRef);
39
+ constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent);
41
40
  getAnimationOrder(): number;
42
41
  get animationDuration(): string;
43
42
  get isAuthorised(): boolean;
@@ -53,6 +52,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
53
52
  private notifyComponentVisitSegmentChanged;
54
53
  animationStarted(): void;
55
54
  animationDone(): void;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
57
56
  static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate$": { "alias": "animate$"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "customPlaceAnimationOrder$": { "alias": "placeAnimationOrderModel"; "required": false; }; "customPlaceAnimationOrder": { "alias": "placeAnimationOrder"; "required": false; }; }, { "placeChanged": "placeChanged"; }, never, never, false, never>;
58
57
  }
@@ -19,8 +19,8 @@ export declare class PlaceAuthService extends GarbageCollector {
19
19
  enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
20
20
  waitUntilAuthenticationReady(): Promise<void>;
21
21
  waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
22
- getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
23
- getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
22
+ getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
23
+ getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
24
24
  isAuthenticated(): boolean;
25
25
  isAuthorised(c: PlaceDefinition): boolean;
26
26
  }
@@ -28,12 +28,12 @@ export declare namespace PlaceAuthService {
28
28
  type AuthorisationCheck = (def: PlaceDefinition) => boolean;
29
29
  interface AuthenticationOptions extends ComputedModelMechanics.PostponeOptions {
30
30
  isAuthenticated$: ValueModel<boolean>;
31
- redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent>;
31
+ redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent> | Promise<Visit> | Promise<Constructable<PlaceComponent>>;
32
32
  }
33
33
  interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
34
34
  isAuthorised: AuthorisationCheck;
35
35
  dependsOn$?: HasValue<any>;
36
- redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[];
36
+ redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[] | Promise<(Constructable<PlaceComponent> | Visit)[]>;
37
37
  }
38
38
  interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
39
39
  when$?: ValueModel<boolean>;
@@ -1,7 +1,7 @@
1
1
  import { ActivatedRouteSnapshot } from '@angular/router';
2
- import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
2
+ import { Constructable, ListModel } from '@coolon/pectin';
3
3
  import 'reflect-metadata';
4
- import { DisposableComponent } from '../components/disposable-component';
4
+ import { LoadableComponent } from "../components/loadable-component";
5
5
  import { InteractionContext } from '../interaction/interaction-context';
6
6
  import { PlaceDefinition } from './place-definition';
7
7
  import { PlaceRouter } from "./place-router";
@@ -11,15 +11,17 @@ import { VisitSegment } from './visit-segment';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare const DEFINITION_META_DATA_KEY = "PLACE_DEFINITION_OPTIONS";
13
13
  export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
14
- export declare class PlaceComponent extends DisposableComponent {
14
+ export declare class PlaceComponent extends LoadableComponent {
15
15
  private readonly _placeReadyCallbacks;
16
- private visitModel;
16
+ private visit$;
17
17
  private _inVisitUpdate;
18
18
  private _active;
19
19
  interactionContext?: InteractionContext;
20
20
  readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
21
+ readonly placeId: string;
21
22
  canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
22
23
  protected readonly placeRouter: PlaceRouter;
24
+ private readonly activatedRoute;
23
25
  constructor();
24
26
  initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
25
27
  get childPlaces(): readonly Constructable<PlaceComponent>[];
@@ -32,7 +34,7 @@ export declare class PlaceComponent extends DisposableComponent {
32
34
  */
33
35
  private installAndInitialiseBinding;
34
36
  get placeDefinition(): PlaceDefinition;
35
- get active(): ValueModel<boolean>;
37
+ get active(): import("@coolon/pectin").ValueModel<boolean>;
36
38
  /**
37
39
  * Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
38
40
  * @param interactionContext
@@ -13,9 +13,11 @@ export declare class PlaceDefinition {
13
13
  readonly children: PlaceDefinition[];
14
14
  readonly redirectToFirstChild: boolean;
15
15
  private _parent;
16
+ readonly name: string;
16
17
  constructor(component: Constructable<PlaceComponent>, path: string, authenticate: boolean, role: any, data: Record<string, any>, routeParameters: ParameterDefinition<any>[], children: PlaceDefinition[], redirectToFirstChild: boolean);
17
18
  ancestors(): PlaceDefinition[];
18
19
  ancestorsAndSelf(): PlaceDefinition[];
20
+ get placeId(): string;
19
21
  protected setParent(parent: PlaceDefinition): void;
20
22
  get parent(): PlaceDefinition;
21
23
  isRoot(): boolean;
@@ -27,12 +27,16 @@ export declare class PlaceRouter extends GarbageCollector {
27
27
  private readonly routerInteractionAdapter;
28
28
  private sessionFinishedJobs;
29
29
  readonly authService: PlaceAuthService;
30
+ private readonly _ready$;
31
+ readonly ready$: ValueModel<boolean>;
30
32
  constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
31
- getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
32
- getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
33
+ postponeRoutingUntil(condition$: ValueModel<boolean>): void;
34
+ getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
35
+ getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
33
36
  get navigationSession(): NavigationSession;
34
37
  get currentSession(): NavigationSession;
35
38
  isNavigating(): boolean;
39
+ waitUntilRouterReady(): Promise<this>;
36
40
  waitUntilIdle(): Promise<this>;
37
41
  waitActivitiesSynchronised(): Promise<this>;
38
42
  onPopState(event: NavigationStart): void;
@@ -14,12 +14,11 @@ import * as i12 from "@angular/material/list";
14
14
  import * as i13 from "@angular/material/tooltip";
15
15
  import * as i14 from "@angular/material/icon";
16
16
  import * as i15 from "../directives/directives.module";
17
- import * as i16 from "@angular/flex-layout";
18
- import * as i17 from "../components/components.module";
19
- import * as i18 from "@angular/cdk/portal";
20
- import * as i19 from "@angular/material/card";
17
+ import * as i16 from "../components/components.module";
18
+ import * as i17 from "@angular/cdk/portal";
19
+ import * as i18 from "@angular/material/card";
21
20
  export declare class PlaceModule {
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.FlexModule, typeof i17.ComponentsModule, typeof i18.PortalModule, typeof i19.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.ComponentsModule, typeof i17.PortalModule, typeof i18.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
24
23
  static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
25
24
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @file Automatically generated by barrelsby.
3
3
  */
4
+ export * from "./loading-monitor";
4
5
  export * from "./visibility-service";
5
6
  export * from "./markdown/markdown.service";
6
7
  export * from "./markdown/pill-plugin";
@@ -0,0 +1,29 @@
1
+ import { Disposable, GarbageCollector, ValueModel } from '@coolon/pectin';
2
+ import { Loadable as ExternallyLoadable } from '../components/types/loadable';
3
+ import * as i0 from "@angular/core";
4
+ type Loadable = Pick<ExternallyLoadable, "loaded$">;
5
+ export declare class LoadingMonitor extends GarbageCollector {
6
+ private readonly watchChanges$;
7
+ readonly trackers: Map<Loadable, LoadingMonitor.Tracker>;
8
+ createTracker(loadable: Loadable & Disposable.Collector): LoadingMonitor.Tracker;
9
+ dumpState(): void;
10
+ watchChanges(watch: boolean): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingMonitor, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadingMonitor>;
13
+ }
14
+ export declare namespace LoadingMonitor {
15
+ class Tracker extends GarbageCollector {
16
+ protected readonly root: Loadable;
17
+ protected readonly watchChanges$: ValueModel<boolean>;
18
+ private readonly loadables;
19
+ private readonly rootName;
20
+ constructor(root: Loadable, watchChanges$: ValueModel<boolean>);
21
+ registerLoadableDependency(loadable: Loadable): void;
22
+ dumpState(changed?: {
23
+ loadable: Loadable;
24
+ is: boolean;
25
+ was: boolean;
26
+ }): void;
27
+ }
28
+ }
29
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-aplpha.17",
3
+ "version": "16.1.0-aplpha.171",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,8 +12,8 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.6",
16
- "@typescript-plus/fast-memoize-decorator": "^0.2.1",
15
+ "@coolon/pectin": "^5.0.0-alpha.86",
16
+ "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",
19
19
  "reflect-metadata": "^0.1.13",
@@ -22,7 +22,9 @@
22
22
  "json5": "^2.1.0",
23
23
  "immer": ">=10.0.3",
24
24
  "escape-string-regexp": "^5.0.0",
25
- "@coolon/typescript-utilities": "^5.0.0-alpha.3"
25
+ "@coolon/typescript-utilities": "^5.0.0-alpha.14",
26
+ "fractional-indexing": "^3.2.0",
27
+ "ng-table-virtual-scroll": "^1.6.1"
26
28
  },
27
29
  "optionalDependencies": {
28
30
  "@fortawesome/fontawesome-free": "^6.0.0"
@@ -1,44 +0,0 @@
1
- import { AbstractComputedListModel, Dsl, lang, MutableListModel } from '@coolon/pectin';
2
- import { isNil } from 'lodash';
3
- export class ColumnListModel extends AbstractComputedListModel {
4
- _allColumns$ = new MutableListModel();
5
- columnsById$;
6
- constructor() {
7
- super();
8
- const { chain } = Dsl.disposeWith(this);
9
- this.columnsById$ = chain(this._allColumns$).indexBy('columnId');
10
- }
11
- get allColumns$() {
12
- return this._allColumns$.readonly$;
13
- }
14
- getColumn(id) {
15
- return this.columnsById$.get(id);
16
- }
17
- hasColumn(id) {
18
- return !!this.columnsById$.get(id);
19
- }
20
- hasMatchingColumn(row, regex) {
21
- // only search the visible columns
22
- return !!this.value.find(c => regex.test(c.getSearchTextFor(row)));
23
- }
24
- addColumn(column, index) {
25
- if (this.hasColumn(column.columnId)) {
26
- lang.illegalState(`Column with id=${column.columnId} already exists`);
27
- }
28
- this.registerDisposable(column);
29
- this.runInTransaction(() => {
30
- if (!isNil(index)) {
31
- this._allColumns$.insert(index, column);
32
- }
33
- else {
34
- this._allColumns$.push(column);
35
- }
36
- this.registerDisposable(this.trackSource(column.visible$));
37
- });
38
- return column;
39
- }
40
- doComputeValue() {
41
- return this._allColumns$.value.filter(c => c.visible$.value);
42
- }
43
- }
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLWxpc3QtbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYmxlcy9jb2x1bW4vY29sdW1uLWxpc3QtbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHlCQUF5QixFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQTRCLGdCQUFnQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFaEgsT0FBTyxFQUFDLEtBQUssRUFBQyxNQUFNLFFBQVEsQ0FBQztBQUc3QixNQUFNLE9BQU8sZUFBcUIsU0FBUSx5QkFBb0Q7SUFFM0UsWUFBWSxHQUFHLElBQUksZ0JBQWdCLEVBQW9CLENBQUM7SUFDeEQsWUFBWSxDQUEwQztJQUV2RTtRQUNFLEtBQUssRUFBRSxDQUFDO1FBQ1IsTUFBTSxFQUFFLEtBQUssRUFBRSxHQUFHLEdBQUcsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDeEMsSUFBSSxDQUFDLFlBQVksR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUNuRSxDQUFDO0lBRUQsSUFBSSxXQUFXO1FBQ2IsT0FBTyxJQUFJLENBQUMsWUFBW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4gICAgdGhpcy5ydW5JblRyYW5zYWN0aW9uKCgpID0+IHtcbiAgICAgIGlmICghaXNOaWwoaW5kZXgpKSB7XG4gICAgICAgIHRoaXMuX2FsbENvbHVtbnMkLmluc2VydChpbmRleCwgY29sdW1uKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuX2FsbENvbHVtbnMkLnB1c2goY29sdW1uKTtcbiAgICAgIH1cbiAgICAgIHRoaXMucmVnaXN0ZXJEaXNwb3NhYmxlKHRoaXMudHJhY2tTb3VyY2UoY29sdW1uLnZpc2libGUkKSk7XG4gICAgfSk7XG4gICAgcmV0dXJuIGNvbHVtbjtcbiAgfVxuXG4gIGRvQ29tcHV0ZVZhbHVlKCk6IENvbHVtbk1vZGVsPFJvdz5bXSB7XG4gICAgcmV0dXJuIHRoaXMuX2FsbENvbHVtbnMkLnZhbHVlLmZpbHRlcihjID0+IGMudmlzaWJsZSQudmFsdWUpO1xuICB9XG59XG4iXX0=
@@ -1,33 +0,0 @@
1
- import { Component } from "@angular/core";
2
- import { DelegatingCommand, DelegatingValueModel } from "@coolon/pectin";
3
- import { DisposableComponent } from "../../../../disposable-component";
4
- import * as i0 from "@angular/core";
5
- export class TableMoreMenuPopupComponent extends DisposableComponent {
6
- _value$ = this.registerDisposable(new DelegatingValueModel());
7
- _visible$ = this.registerDisposable(new DelegatingValueModel()).withDefault(true);
8
- _closeCommand = this.registerDisposable(new DelegatingCommand());
9
- initialise(row$, closeCommand) {
10
- this._value$.setDelegate(row$);
11
- this._closeCommand.setDelegate(closeCommand);
12
- }
13
- visibleWhile(condition) {
14
- this._visible$.setDelegate(condition);
15
- return this;
16
- }
17
- get visible$() {
18
- return this._visible$.readonly$;
19
- }
20
- get closeCommand() {
21
- return this._closeCommand;
22
- }
23
- get value$() {
24
- return this._value$.readonly$;
25
- }
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableMoreMenuPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableMoreMenuPopupComponent, selector: "aup-table-more-menu-popup", usesInheritance: true, ngImport: i0, template: '', isInline: true });
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableMoreMenuPopupComponent, decorators: [{
30
- type: Component,
31
- args: [{ selector: 'aup-table-more-menu-popup', template: '' }]
32
- }] });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtbW9yZS1tZW51LXBvcHVwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvdGFibGVzL3JlbmRlcmVyL3RhYmxlLW1vcmUtbWVudS90YWJsZS1tb3JlLW1lbnUtcG9wdXAvdGFibGUtbW9yZS1tZW51LXBvcHVwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3hDLE9BQU8sRUFBVSxpQkFBaUIsRUFBRSxvQkFBb0IsRUFBYSxNQUFNLGdCQUFnQixDQUFDO0FBQzVGLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLGtDQUFrQyxDQUFDOztBQU9yRSxNQUFNLE9BQU8sMkJBQStCLFNBQVEsbUJBQW1CO0lBRTdELE9BQU8sR0FBRyxJQUFJLENBQUMsa0JBQWtCLENBQUMsSUFBSSxvQkFBb0IsRUFBSyxDQUFDLENBQUE7SUFFdkQsU0FBUyxHQUFHLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLG9CQUFvQixFQUFX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XR1cm4gdGhpcztcbiAgfVxuXG4gIGdldCB2aXNpYmxlJCgpOiBWYWx1ZU1vZGVsPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gdGhpcy5fdmlzaWJsZSQucmVhZG9ubHkkXG4gIH1cblxuICBnZXQgY2xvc2VDb21tYW5kKCk6IENvbW1hbmQ8dm9pZD4ge1xuICAgIHJldHVybiB0aGlzLl9jbG9zZUNvbW1hbmQ7XG4gIH1cblxuICBnZXQgdmFsdWUkKCkge1xuICAgIHJldHVybiB0aGlzLl92YWx1ZSQucmVhZG9ubHkkO1xuICB9XG5cblxufVxuIl19
@@ -1,60 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { ComponentPortal } from "@angular/cdk/portal";
3
- import { Component, HostListener, ViewChild } from "@angular/core";
4
- import { MatMenuTrigger } from "@angular/material/menu";
5
- import { Command, DelegatingValueModel, Dsl, MutableValueModel, StoreInValueModel } from "@coolon/pectin";
6
- import { DisposableComponent } from "../../../disposable-component";
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common";
9
- import * as i2 from "@angular/material/button";
10
- import * as i3 from "@angular/cdk/portal";
11
- import * as i4 from "@angular/material/menu";
12
- import * as i5 from "../../../icon/icon.component";
13
- export class TableMoreMenuComponent extends DisposableComponent {
14
- value$ = new MutableValueModel();
15
- #value_accessor_storage;
16
- get value() { return this.#value_accessor_storage; }
17
- set value(value) { this.#value_accessor_storage = value; }
18
- matMenuTrigger;
19
- popupType$ = new MutableValueModel();
20
- popupComponentPortal$;
21
- _visible$ = this.registerDisposable(new DelegatingValueModel());
22
- constructor() {
23
- super();
24
- const { chain } = Dsl.disposeWith(this);
25
- this.popupComponentPortal$ = chain(this.popupType$).map(type => new ComponentPortal(type));
26
- }
27
- configurePopupComponentType(popupComponentType) {
28
- this.popupType$.value = popupComponentType;
29
- }
30
- // Stops tree selection when clicking the menu button
31
- preventDefault($event) {
32
- $event.preventDefault();
33
- $event.stopPropagation();
34
- }
35
- initialise($event) {
36
- const component = $event.instance;
37
- component.initialise(this.value$, Command.create(() => this.matMenuTrigger.closeMenu()));
38
- this._visible$.setDelegate(component.visible$);
39
- }
40
- get visible$() {
41
- return this._visible$.readonly$;
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableMoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableMoreMenuComponent, selector: "aup-table-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\"\n (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i5.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
45
- }
46
- __decorate([
47
- StoreInValueModel(),
48
- __metadata("design:type", Object)
49
- ], TableMoreMenuComponent.prototype, "value", null);
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableMoreMenuComponent, decorators: [{
51
- type: Component,
52
- args: [{ selector: "aup-table-more-menu", template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\"\n (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"] }]
53
- }], ctorParameters: function () { return []; }, propDecorators: { value: [], matMenuTrigger: [{
54
- type: ViewChild,
55
- args: [MatMenuTrigger]
56
- }], preventDefault: [{
57
- type: HostListener,
58
- args: ["click", ["$event"]]
59
- }] } });
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtbW9yZS1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvdGFibGVzL3JlbmRlcmVyL3RhYmxlLW1vcmUtbWVudS90YWJsZS1tb3JlLW1lbnUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy90YWJsZXMvcmVuZGVyZXIvdGFibGUtbW9yZS1tZW51L3RhYmxlLW1vcmUtbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjo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KT1cImluaXRpYWxpc2UoJGV2ZW50KVwiPjwvbmctdGVtcGxhdGU+XG48L21hdC1tZW51PlxuXG48YnV0dG9uIG1hdC1pY29uLWJ1dHRvbiBbbWF0TWVudVRyaWdnZXJGb3JdPVwibWVudVwiIGRhdGEtY3k9XCJtb3JlLW1lbnUtdHJpZ2dlclwiICpuZ0lmPVwidmlzaWJsZSQudmFsdWVcIj5cbiAgPGF1cC1pY29uIGljb249XCJtYXQ6bW9yZV92ZXJ0XCI+PC9hdXAtaWNvbj5cbjwvYnV0dG9uPlxuIl19
@@ -1,84 +0,0 @@
1
- import { Component, Input, ViewChild } from '@angular/core';
2
- import { MatMenuTrigger } from '@angular/material/menu';
3
- import { Dsl } from '@coolon/pectin';
4
- import { DisposableComponent } from '../../disposable-component';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "../../commands/group/tool-bar/tool-bar.component";
8
- import * as i3 from "../../commands/command/command.component";
9
- import * as i4 from "../../commands/group/popup-menu/more-menu.component";
10
- class MenuItemData {
11
- factory;
12
- face;
13
- constructor(factory, face) {
14
- this.factory = factory;
15
- this.face = face;
16
- }
17
- }
18
- /**
19
- *
20
- */
21
- export class TableRowMenuComponent extends DisposableComponent {
22
- value;
23
- menu;
24
- actions = [];
25
- moreActions = [];
26
- registerAction(commandFactory, properties) {
27
- this.actions.push(new MenuItemData(commandFactory, properties));
28
- }
29
- registerMoreAction(commandFactory, properties) {
30
- this.moreActions.push(new MenuItemData(commandFactory, properties));
31
- }
32
- constructor() {
33
- super();
34
- }
35
- createMoreMenuCommand(item, value) {
36
- const { when } = Dsl.disposeWith(this);
37
- const command = item.factory.create(value, { disposedWith: this });
38
- when(command.busy$).becomesFalsey(() => {
39
- this.closeMoreMenu();
40
- });
41
- return command;
42
- }
43
- closeMoreMenu() {
44
- this.menu.closeMenu();
45
- }
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableRowMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableRowMenuComponent, selector: "aup-table-row-menu", inputs: { value: "value" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: `
48
- <aup-tool-bar>
49
- <aup-command *ngFor="let action of actions"
50
- #comp
51
- [command]="action.factory.create(value, {disposedWith: comp})"
52
- [face]="action.face"></aup-command>
53
- </aup-tool-bar>
54
- <ng-container *ngIf="moreActions.length > 0">
55
- <aup-more-menu>
56
- <aup-command *ngFor="let action of moreActions" #comp [command]="action.factory.create(value, {disposedWith: comp})"
57
- [face]="action.face"></aup-command>
58
- </aup-more-menu>
59
- </ng-container>
60
- `, isInline: true, styles: [":host{display:inline-flex;flex-direction:row;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ToolBarComponent, selector: "aup-tool-bar" }, { kind: "component", type: i3.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: i4.MoreMenuComponent, selector: "aup-more-menu", inputs: ["tooltip"] }] });
61
- }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableRowMenuComponent, decorators: [{
63
- type: Component,
64
- args: [{ selector: 'aup-table-row-menu', template: `
65
- <aup-tool-bar>
66
- <aup-command *ngFor="let action of actions"
67
- #comp
68
- [command]="action.factory.create(value, {disposedWith: comp})"
69
- [face]="action.face"></aup-command>
70
- </aup-tool-bar>
71
- <ng-container *ngIf="moreActions.length > 0">
72
- <aup-more-menu>
73
- <aup-command *ngFor="let action of moreActions" #comp [command]="action.factory.create(value, {disposedWith: comp})"
74
- [face]="action.face"></aup-command>
75
- </aup-more-menu>
76
- </ng-container>
77
- `, styles: [":host{display:inline-flex;flex-direction:row;align-items:center}\n"] }]
78
- }], ctorParameters: function () { return []; }, propDecorators: { value: [{
79
- type: Input
80
- }], menu: [{
81
- type: ViewChild,
82
- args: [MatMenuTrigger]
83
- }] } });
84
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtcm93LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy90YWJsZXMvdGFibGUtcm93LW1lbnUvdGFibGUtcm93LW1lbnUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMxRCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFFdEQsT0FBTyxFQUFVLEdBQUcsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRTVDLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLDRCQUE0QixDQUFDOzs7Ozs7QUFJL0QsTUFBTSxZQUFZO0lBQ0s7SUFBNEM7SUFBakUsWUFBcUIsT0FBaUMsRUFBVyxJQUFpQjtRQUE3RCxZQUFPLEdBQVAsT0FBTyxDQUEwQjtRQUFXLFNBQUksR0FBSixJQUFJLENBQWE7SUFDbEYsQ0FBQztDQUNGO0FBRUQ7O0dBRUc7QUF1QkgsTUFBTSxPQUFPLHFCQUF3QyxTQUFRLG1CQUFtQjtJQUc5RSxLQUFLLENBQUk7SUFHVCxJQUFJLENBQWlCO0lBRV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vc2VNZW51KCk7XG4gIH1cbn1cbiJdfQ==
@@ -1,13 +0,0 @@
1
- import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
2
- import { ColumnModel } from './column-model';
3
- export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
4
- private readonly _allColumns$;
5
- private readonly columnsById$;
6
- constructor();
7
- get allColumns$(): ListModel<ColumnModel<Row>>;
8
- getColumn(id: string): ColumnModel<Row>;
9
- hasColumn(id: string): boolean;
10
- hasMatchingColumn(row: Row, regex: RegExp): boolean;
11
- addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
12
- doComputeValue(): ColumnModel<Row>[];
13
- }
@@ -1,15 +0,0 @@
1
- import { Command, ValueModel } from "@coolon/pectin";
2
- import { DisposableComponent } from "../../../../disposable-component";
3
- import * as i0 from "@angular/core";
4
- export declare class TableMoreMenuPopupComponent<T> extends DisposableComponent {
5
- private _value$;
6
- private readonly _visible$;
7
- private readonly _closeCommand;
8
- initialise(row$: ValueModel<T>, closeCommand: Command<void>): void;
9
- protected visibleWhile(condition: ValueModel<boolean>): this;
10
- get visible$(): ValueModel<boolean>;
11
- get closeCommand(): Command<void>;
12
- get value$(): ValueModel<T>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TableMoreMenuPopupComponent<any>, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<TableMoreMenuPopupComponent<any>, "aup-table-more-menu-popup", never, {}, {}, never, never, false, never>;
15
- }
@@ -1,28 +0,0 @@
1
- import { MatMenuTrigger } from '@angular/material/menu';
2
- import { Command } from '@coolon/pectin';
3
- import { CommandFace } from '../../commands/command-face';
4
- import { DisposableComponent } from '../../disposable-component';
5
- import { CellRenderer } from '../renderer/cell-renderer';
6
- import * as i0 from "@angular/core";
7
- declare class MenuItemData<T extends object> {
8
- readonly factory: Command.Factory<T, void>;
9
- readonly face: CommandFace;
10
- constructor(factory: Command.Factory<T, void>, face: CommandFace);
11
- }
12
- /**
13
- *
14
- */
15
- export declare class TableRowMenuComponent<T extends object> extends DisposableComponent implements CellRenderer<T> {
16
- value: T;
17
- menu: MatMenuTrigger;
18
- readonly actions: MenuItemData<T>[];
19
- readonly moreActions: MenuItemData<T>[];
20
- registerAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
21
- registerMoreAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
22
- constructor();
23
- createMoreMenuCommand(item: MenuItemData<T>, value: T): Command<void>;
24
- private closeMoreMenu;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TableRowMenuComponent<any>, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<TableRowMenuComponent<any>, "aup-table-row-menu", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
27
- }
28
- export {};