@coolon/angular-ui-powerups 16.1.0-aplpha.139 → 16.1.0-aplpha.14

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 (208) hide show
  1. package/assets/activities/input-activities.scss +6 -14
  2. package/assets/form.scss +27 -74
  3. package/assets/icons.scss +0 -1
  4. package/assets/styles.scss +0 -2
  5. package/assets/table.scss +27 -47
  6. package/assets/tabs.scss +5 -15
  7. package/esm2022/lib/animations/slide-animations.mjs +10 -15
  8. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
  9. package/esm2022/lib/components/commands/command/command.component.mjs +29 -34
  10. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
  11. package/esm2022/lib/components/commands/command-face.mjs +11 -12
  12. package/esm2022/lib/components/commands/group/popup-aware.component.mjs +8 -32
  13. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +23 -25
  14. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +20 -11
  15. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +7 -12
  16. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +20 -11
  17. package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +6 -8
  18. package/esm2022/lib/components/commands/separator.component.mjs +12 -6
  19. package/esm2022/lib/components/components.module.mjs +19 -44
  20. package/esm2022/lib/components/disposable-component.mjs +7 -32
  21. package/esm2022/lib/components/exports.mjs +2 -11
  22. package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
  23. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
  24. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
  25. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
  26. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +9 -84
  27. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
  28. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
  29. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +10 -26
  30. package/esm2022/lib/components/forms/text-input/text-input.component.mjs +2 -6
  31. package/esm2022/lib/components/icon/icon.component.mjs +4 -7
  32. package/esm2022/lib/components/resize-aware.component.mjs +24 -61
  33. package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
  34. package/esm2022/lib/components/tables/abstract-table-model.mjs +47 -77
  35. package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
  36. package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
  37. package/esm2022/lib/components/tables/column/column-model.mjs +6 -16
  38. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
  39. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
  40. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
  41. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
  42. package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
  43. package/esm2022/lib/components/tables/column/selection-column-model.mjs +13 -35
  44. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +2 -2
  45. package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -3
  46. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
  47. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
  48. package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
  49. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +5 -23
  50. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
  51. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +2 -3
  52. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
  53. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
  54. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +5 -12
  55. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
  56. package/esm2022/lib/components/tables/table/table-model.mjs +3 -12
  57. package/esm2022/lib/components/tables/table/table.component.mjs +61 -39
  58. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
  59. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
  60. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
  61. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +5 -12
  62. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +7 -4
  63. package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
  64. package/esm2022/lib/directives/command.directive.mjs +8 -26
  65. package/esm2022/lib/directives/directives.module.mjs +1 -1
  66. package/esm2022/lib/directives/exports.mjs +1 -2
  67. package/esm2022/lib/directives/highlight.pipe.mjs +7 -9
  68. package/esm2022/lib/interaction/activity.mjs +5 -13
  69. package/esm2022/lib/interaction/alert.mjs +2 -2
  70. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -8
  71. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +11 -20
  72. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -28
  73. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
  74. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  75. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  76. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
  77. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
  78. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
  79. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
  80. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
  81. package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
  82. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
  83. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +5 -21
  84. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
  85. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +2 -4
  86. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
  87. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
  88. package/esm2022/lib/interaction/exports.mjs +1 -3
  89. package/esm2022/lib/interaction/interaction-context.mjs +2 -3
  90. package/esm2022/lib/interaction/interaction.module.mjs +9 -7
  91. package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
  92. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
  93. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
  94. package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
  95. package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
  96. package/esm2022/lib/place/guards/place.guard.mjs +5 -6
  97. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
  98. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
  99. package/esm2022/lib/place/place-auth-service.mjs +5 -5
  100. package/esm2022/lib/place/place-component.mjs +19 -29
  101. package/esm2022/lib/place/place-definition.mjs +4 -15
  102. package/esm2022/lib/place/place-history.mjs +2 -2
  103. package/esm2022/lib/place/place-router.mjs +20 -22
  104. package/esm2022/lib/place/place.decorator.mjs +2 -2
  105. package/esm2022/lib/place/place.module.mjs +5 -1
  106. package/esm2022/lib/place/route/formatter.mjs +2 -2
  107. package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
  108. package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
  109. package/esm2022/lib/place/url-snapshot.mjs +3 -3
  110. package/esm2022/lib/place/visit-segment.mjs +2 -2
  111. package/esm2022/lib/place/visit.mjs +2 -2
  112. package/fesm2022/coolon-angular-ui-powerups.mjs +712 -1835
  113. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  114. package/lib/animations/slide-animations.d.ts +0 -1
  115. package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
  116. package/lib/components/commands/command/command.component.d.ts +8 -8
  117. package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
  118. package/lib/components/commands/command-face.d.ts +9 -8
  119. package/lib/components/commands/group/popup-aware.component.d.ts +4 -9
  120. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -4
  121. package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +4 -2
  122. package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -2
  123. package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +4 -2
  124. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
  125. package/lib/components/commands/separator.component.d.ts +4 -2
  126. package/lib/components/components.module.d.ts +53 -58
  127. package/lib/components/disposable-component.d.ts +3 -16
  128. package/lib/components/exports.d.ts +1 -10
  129. package/lib/components/forms/abstract-input.component.d.ts +5 -13
  130. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
  131. package/lib/components/forms/number-input/number-input.component.d.ts +4 -16
  132. package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
  133. package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
  134. package/lib/components/forms/string-input/string-input.component.d.ts +1 -6
  135. package/lib/components/forms/text-input/text-input.component.d.ts +0 -3
  136. package/lib/components/resize-aware.component.d.ts +5 -24
  137. package/lib/components/switch-case/switch-case.component.d.ts +3 -2
  138. package/lib/components/tables/abstract-table-model.d.ts +11 -29
  139. package/lib/components/tables/abstract-table.component.d.ts +3 -4
  140. package/lib/components/tables/column/column-list-model.d.ts +13 -0
  141. package/lib/components/tables/column/column-model.d.ts +3 -7
  142. package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
  143. package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
  144. package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
  145. package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
  146. package/lib/components/tables/column/property-column-model.d.ts +2 -3
  147. package/lib/components/tables/column/selection-column-model.d.ts +4 -10
  148. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  149. package/lib/components/tables/editor/edit-session.d.ts +1 -1
  150. package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
  151. package/lib/components/tables/renderer/cell-portal-ref.d.ts +12 -20
  152. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
  153. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +3 -2
  154. package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +2 -5
  155. package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
  156. package/lib/components/tables/table/table-model.d.ts +4 -4
  157. package/lib/components/tables/table/table.component.d.ts +10 -14
  158. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  159. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
  160. package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
  161. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  162. package/lib/directives/command.directive.d.ts +4 -6
  163. package/lib/directives/exports.d.ts +0 -1
  164. package/lib/interaction/activity.d.ts +3 -9
  165. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -1
  166. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +5 -10
  167. package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -7
  168. package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
  169. package/lib/interaction/components/editors/edit-context.d.ts +1 -1
  170. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -5
  171. package/lib/interaction/exports.d.ts +0 -2
  172. package/lib/interaction/interaction-context.d.ts +0 -2
  173. package/lib/interaction/interaction.module.d.ts +28 -28
  174. package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
  175. package/lib/place/place-auth-service.d.ts +4 -4
  176. package/lib/place/place-component.d.ts +5 -7
  177. package/lib/place/place-definition.d.ts +0 -2
  178. package/lib/place/place-router.d.ts +2 -6
  179. package/lib/place/place.module.d.ts +5 -4
  180. package/package.json +4 -6
  181. package/assets/draw.scss +0 -20
  182. package/assets/layout.scss +0 -3
  183. package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +0 -115
  184. package/esm2022/lib/components/file/file-download/file-download.component.mjs +0 -78
  185. package/esm2022/lib/components/forms/form-field.mjs +0 -2
  186. package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
  187. package/esm2022/lib/components/loadable-component.mjs +0 -49
  188. package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
  189. package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
  190. package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
  191. package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -7
  192. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
  193. package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
  194. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
  195. package/esm2022/lib/interaction/interaction-context-provider.mjs +0 -3
  196. package/lib/components/commands/button-renderer/button-renderer.component.d.ts +0 -30
  197. package/lib/components/file/file-download/file-download.component.d.ts +0 -43
  198. package/lib/components/forms/form-field.d.ts +0 -5
  199. package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
  200. package/lib/components/loadable-component.d.ts +0 -17
  201. package/lib/components/tables/column/column-manager.d.ts +0 -19
  202. package/lib/components/tables/column/column-order-manager.d.ts +0 -20
  203. package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
  204. package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -6
  205. package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
  206. package/lib/directives/resize-observer.directive.d.ts +0 -16
  207. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
  208. package/lib/interaction/interaction-context-provider.d.ts +0 -6
@@ -1,9 +1,7 @@
1
1
  import { Command, ValueModel } from "@coolon/pectin";
2
- import { PopupAwareComponent } from "../../../../commands/group/popup-aware.component";
3
- import { PopupContainer } from "../../../../commands/group/popup-container";
4
- import { LoadableComponent } from "../../../../loadable-component";
2
+ import { DisposableComponent } from "../../../../disposable-component";
5
3
  import * as i0 from "@angular/core";
6
- export declare class TableMoreMenuPopupComponent<T> extends LoadableComponent implements PopupContainer {
4
+ export declare class TableMoreMenuPopupComponent<T> extends DisposableComponent {
7
5
  private _value$;
8
6
  private readonly _visible$;
9
7
  private readonly _closeCommand;
@@ -12,7 +10,6 @@ export declare class TableMoreMenuPopupComponent<T> extends LoadableComponent im
12
10
  get visible$(): ValueModel<boolean>;
13
11
  get closeCommand(): Command<void>;
14
12
  get value$(): ValueModel<T>;
15
- register(comp: PopupAwareComponent): void;
16
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TableMoreMenuPopupComponent<any>, never>;
17
14
  static ɵcmp: i0.ɵɵComponentDeclaration<TableMoreMenuPopupComponent<any>, "aup-table-more-menu-popup", never, {}, {}, never, never, false, never>;
18
15
  }
@@ -13,9 +13,8 @@ export declare class TableMoreMenuComponent<T> extends DisposableComponent imple
13
13
  private readonly popupType$;
14
14
  popupComponentPortal$: ValueModelChain<ComponentPortal<TableMoreMenuPopupComponent<T>>>;
15
15
  private readonly _visible$;
16
- private initialiseCallback?;
17
16
  constructor();
18
- configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>, configureCallback?: (component: TableMoreMenuPopupComponent<T>) => void): void;
17
+ configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>): void;
19
18
  preventDefault($event: MouseEvent): void;
20
19
  initialise($event: CdkPortalOutletAttachedRef): void;
21
20
  get visible$(): import("@coolon/pectin").ValueModel<boolean>;
@@ -1,5 +1,6 @@
1
- import { ListModel, MultipleSelectionModel, ValueModel } from "@coolon/pectin";
1
+ import { ListModel, SelectionModel, ValueModel } from "@coolon/pectin";
2
2
  import { AbstractTableModel } from "../abstract-table-model";
3
+ import { SelectionColumnModel } from "../column/selection-column-model";
3
4
  /**
4
5
  * Example:
5
6
  * @example
@@ -79,9 +80,8 @@ import { AbstractTableModel } from "../abstract-table-model";
79
80
  * table.columnTextProperties(I18n.table.columns); // <- configures all columns
80
81
  * });
81
82
  */
82
- export declare class TableModel<Row extends object> extends AbstractTableModel<Row> {
83
+ export declare class TableModel<Row> extends AbstractTableModel<Row> {
83
84
  constructor(sourceOfTruth?: ListModel<Row>, builder?: (table: TableModel<Row>) => void);
84
85
  bindToTable(filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row>): void;
85
- get isUsingTemporarySelectionModel$(): ValueModel<boolean>;
86
- withTemporaryMultipleSelectionModel(process: (selectionModel: MultipleSelectionModel<Row, any>) => Promise<void>): Promise<void>;
86
+ addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
87
87
  }
@@ -3,7 +3,6 @@ import { ValueModel } from "@coolon/pectin";
3
3
  import { AbstractTableModel } from '../abstract-table-model';
4
4
  import { AbstractTableComponent } from '../abstract-table.component';
5
5
  import { TableFilterModel } from "../filter/table-filter-model";
6
- import { TableBodyComponent } from "../renderer/table-body/table-body.component";
7
6
  import { TableModel } from "./table-model";
8
7
  import * as i0 from "@angular/core";
9
8
  /**
@@ -66,26 +65,23 @@ import * as i0 from "@angular/core";
66
65
  * }
67
66
  * }
68
67
  */
69
- export declare class TableComponent<Row extends object> extends AbstractTableComponent<Row> implements OnInit {
68
+ export declare class TableComponent<Row> extends AbstractTableComponent<Row> implements OnInit {
70
69
  accessor tableModel: TableModel<Row>;
71
70
  accessor filterModel: TableFilterModel<Row>;
72
- tableBody: TableBodyComponent<Row>;
73
- /**
74
- * Set to true to scroll mode to classic or virtual (default). Virtual scrolll performs better for large data sets but clamps the row height. Classic scroll
75
- * renders all rows but allows row heights to grow.
76
- */
77
- accessor scrollMode$: ValueModel<TableComponent.ScrollMode>;
78
- accessor scrollMode: TableComponent.ScrollMode;
71
+ accessor enablePaging$: ValueModel<boolean>;
72
+ accessor enablePaging: boolean;
79
73
  private _footerContentAdded;
80
74
  private readonly _filteredRows$;
81
- protected readonly tableBodyScrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
75
+ private _pageSize;
76
+ private pagedListModel;
82
77
  constructor(injector: Injector);
83
78
  ngOnInit(): void;
84
79
  protected getModel(): AbstractTableModel<Row>;
80
+ get pageController(): import("@coolon/pectin").PageController;
81
+ private configurePaging;
82
+ private disposeOfPagedListModel;
85
83
  footerContentChanged($event: any): void;
84
+ updatePageSize(count: number): void;
86
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "scrollMode$": { "alias": "scrollMode$"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; }, {}, never, ["[footer], [slot=footer]"], false, never>;
88
- }
89
- export declare namespace TableComponent {
90
- type ScrollMode = Omit<TableBodyComponent.ScrollMode, 'none'>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "enablePaging$": { "alias": "enablePaging$"; "required": false; }; "enablePaging": { "alias": "enablePaging"; "required": false; }; }, {}, never, ["[footer]"], false, never>;
91
87
  }
@@ -5,7 +5,7 @@ import { CellRenderer } from '../../renderer/cell-renderer';
5
5
  import { TreeInheritanceIconComponent } from '../tree-inheritance-icon/tree-inheritance-icon.component';
6
6
  import { TreeTableModel } from '../tree-table-model';
7
7
  import * as i0 from "@angular/core";
8
- export declare class TreeLabelCellRendererComponent<T extends object> extends DisposableComponent implements CellRenderer<T>, OnInit {
8
+ export declare class TreeLabelCellRendererComponent<T> extends DisposableComponent implements CellRenderer<T>, OnInit {
9
9
  private node$;
10
10
  accessor value: T;
11
11
  label: string;
@@ -1,14 +1,13 @@
1
1
  import { ComponentType } from '@angular/cdk/overlay';
2
2
  import { Types } from '@coolon/pectin';
3
3
  import { ColumnModel } from '../column/column-model';
4
- import { ColumnOrderManager } from "../column/column-order-manager";
5
4
  import { TreeLabelCellRendererComponent } from './tree-label-cell-renderer/tree-label-cell-renderer.component';
6
5
  import { TreeTableModel } from './tree-table-model';
7
- export declare class TreeLabelColumnModel<Row extends object> extends ColumnModel<Row> {
6
+ export declare class TreeLabelColumnModel<Row> extends ColumnModel<Row> {
8
7
  readonly expansionModel: TreeTableModel<Row>;
9
8
  private labelFactory;
10
9
  private iconFactory;
11
- constructor(columnId: string, order: ColumnOrderManager, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
10
+ constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
12
11
  pluck<P extends Types.StringValuePropertiesOf<Row>>(property: P): void;
13
12
  useLabel(factory: (row: Row) => string): void;
14
13
  /**
@@ -1,9 +1,7 @@
1
1
  import { Injector, OnInit } from "@angular/core";
2
- import { ValueModel } from '@coolon/pectin';
3
2
  import { TreeNode } from '@coolon/typescript-utilities';
4
3
  import { AbstractTableModel } from '../abstract-table-model';
5
4
  import { AbstractTableComponent } from '../abstract-table.component';
6
- import { TableBodyComponent } from "../renderer/table-body/table-body.component";
7
5
  import { TreeExpansionModel } from "./tree-expansion-model";
8
6
  import { TreeTableModel } from './tree-table-model';
9
7
  import * as i0 from "@angular/core";
@@ -70,7 +68,6 @@ import * as i0 from "@angular/core";
70
68
  export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T> implements OnInit {
71
69
  accessor treeTableModel: TreeTableModel<T>;
72
70
  accessor expansionModel: TreeExpansionModel<T>;
73
- protected readonly scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
74
71
  constructor(injector: Injector);
75
72
  ngOnInit(): void;
76
73
  getModel(): AbstractTableModel<T>;
@@ -1,25 +1,26 @@
1
- import { ChangeDetectorRef } from "@angular/core";
2
- import { ListModel, MutableValueModel, ValueModel } from '@coolon/pectin';
1
+ import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
3
2
  import { AbstractTableModel } from '../abstract-table-model';
3
+ import { SelectionColumnModel } from "../column/selection-column-model";
4
4
  import { TreeExpansionModel } from './tree-expansion-model';
5
5
  import { TreeLabelColumnModel } from './tree-label-column-model';
6
6
  export type ChildArrayPropertiesOf<T> = {
7
7
  [K in keyof T]: T[K] extends T[] ? K : never;
8
8
  }[keyof T];
9
- export declare class TreeTableModel<Row extends object> extends AbstractTableModel<Row> {
9
+ export declare class TreeTableModel<Row> extends AbstractTableModel<Row> {
10
10
  private treeExpansionModel;
11
11
  private readonly flattenedDataSource;
12
12
  readonly childExtractor: (row: Row) => Row[];
13
13
  private _isExpandedPredicate$;
14
14
  constructor(source$: ListModel<Row>, childAccessor: ChildArrayPropertiesOf<Row> | ((node: Row) => Row[]), builder?: (model: TreeTableModel<Row>) => void);
15
15
  get isExpandedPredicate$(): ValueModel<(node: Row) => boolean>;
16
- bindToTable(expansionModel: TreeExpansionModel<Row>, filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row>, cdr: ChangeDetectorRef): void;
16
+ bindToTable(expansionModel: TreeExpansionModel<Row>, filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row>): void;
17
17
  treeControlColumn(builder: (column: TreeLabelColumnModel<Row>) => void): void;
18
18
  expand(node: Row): void;
19
19
  collapse(node: Row): void;
20
20
  isCollapsed(node: Row): boolean;
21
21
  ensureAncestorsAndSelfVisible(node: Row): void;
22
22
  isExpanded(row: Row): boolean;
23
+ addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
23
24
  }
24
25
  export declare namespace TreeTableModel {
25
26
  interface Options<T, K extends keyof T> {
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatButton } from '@angular/material/button';
3
- import { MatMenu, MatMenuItem } from '@angular/material/menu';
3
+ import { MatMenuItem } from '@angular/material/menu';
4
4
  import { Command, GarbageCollector, UnaryCommand } from '@coolon/pectin';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CommandDirective<P = any> extends GarbageCollector implements OnInit, OnDestroy, AfterViewInit {
@@ -8,20 +8,18 @@ export declare class CommandDirective<P = any> extends GarbageCollector implemen
8
8
  private _command;
9
9
  private _commandEnabled;
10
10
  private matControl;
11
- private isInPopupMenu;
12
11
  set pectinCommand(command: Command<any> | UnaryCommand<P>);
13
12
  get pectinCommand(): Command<any> | UnaryCommand<P>;
14
13
  private _commandParameter;
15
14
  private _commandParameterProvided;
16
15
  set commandParameter(value: P);
17
16
  get commandParameter(): P;
18
- preventDefault: boolean;
19
- constructor(elementRef: ElementRef, matButton: MatButton, matMenuItem: MatMenuItem, matMenu?: MatMenu);
17
+ constructor(elementRef: ElementRef, matButton: MatButton, matMenuItem: MatMenuItem);
20
18
  ngOnInit(): void;
21
19
  ngAfterViewInit(): void;
22
20
  updateEnabledState(enabled: boolean): void;
23
21
  ngOnDestroy(): void;
24
22
  notifyClick($event: Event): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, { optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }]>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective<any>, "[pectinCommand]", never, { "pectinCommand": { "alias": "pectinCommand"; "required": false; }; "commandParameter": { "alias": "commandParameter"; "required": false; }; "preventDefault": { "alias": "preventDefault"; "required": false; }; }, {}, never, never, false, never>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, { optional: true; host: true; }, { optional: true; host: true; }]>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective<any>, "[pectinCommand]", never, { "pectinCommand": { "alias": "pectinCommand"; "required": false; }; "commandParameter": { "alias": "commandParameter"; "required": false; }; }, {}, never, never, false, never>;
27
25
  }
@@ -9,4 +9,3 @@ export * from "./focus-binding";
9
9
  export * from "./garbage-collector.directive";
10
10
  export * from "./highlight-text-model.directive";
11
11
  export * from "./highlight.pipe";
12
- export * from "./resize-observer.directive";
@@ -1,17 +1,12 @@
1
1
  import { AfterViewInit, InjectionToken } from "@angular/core";
2
- import { Command, Constructable, Disposable, ValueModel } from "@coolon/pectin";
3
- import { LoadableComponent } from "../components/loadable-component";
2
+ import { Command, Disposable, ValueModel } from "@coolon/pectin";
3
+ import { DisposableComponent } from "../components/disposable-component";
4
4
  import { ActivityActionsComponent } from "./components/activity-actions/activity-actions.component";
5
5
  import { InteractionContext } from "./interaction-context";
6
- import { InteractionContextProvider } from "./interaction-context-provider";
7
6
  import * as i0 from "@angular/core";
8
7
  export declare const ACTIVITY_DATA: InjectionToken<any>;
9
8
  type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
10
- export declare class Activity<D, R, E = any> extends LoadableComponent implements AfterViewInit, InteractionContextProvider {
11
- static asInteractionContextProvider<A extends Activity<any, any>>(this: Constructable<A>): {
12
- provide: InjectionToken<InteractionContextProvider>;
13
- useExisting: Constructable<A>;
14
- };
9
+ export declare class Activity<D, R, E = any> extends DisposableComponent implements AfterViewInit {
15
10
  readonly activityData: D;
16
11
  private readonly activityReadyListeners;
17
12
  private readonly _busy$;
@@ -49,7 +44,6 @@ export declare class Activity<D, R, E = any> extends LoadableComponent implement
49
44
  busyWhile(busyModel: ValueModel<boolean>): void;
50
45
  isBusy(): boolean;
51
46
  isInitialised(): boolean;
52
- getInteractionContext(): InteractionContext;
53
47
  static ɵfac: i0.ɵɵFactoryDeclaration<Activity<any, any, any>, never>;
54
48
  static ɵcmp: i0.ɵɵComponentDeclaration<Activity<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
55
49
  }
@@ -4,7 +4,6 @@ import { AbstractDialogComponent } from './abstract-dialog.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
6
6
  readonly cancelFace: CommandFace;
7
- confirmClass: string;
8
7
  constructor(config: Confirm);
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfirmDialogComponent<any, any, any>, never>;
10
9
  static ɵcmp: i0.ɵɵComponentDeclaration<AbstractConfirmDialogComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
@@ -1,3 +1,4 @@
1
+ import { ChangeDetectorRef } from "@angular/core";
1
2
  import { Command } from '@coolon/pectin';
2
3
  import { Enum } from 'typescript-string-enums';
3
4
  import { CommandFace } from '../../../components/commands/command-face';
@@ -26,6 +27,7 @@ import * as i0 from "@angular/core";
26
27
  * </aup-activity-actions>
27
28
  */
28
29
  export declare class ActivityActionsComponent extends DisposableComponent {
30
+ private readonly cdr;
29
31
  protected confirmCommandComponent: CommandComponent;
30
32
  protected cancelCommandComponent: CommandComponent;
31
33
  /**
@@ -45,8 +47,7 @@ export declare class ActivityActionsComponent extends DisposableComponent {
45
47
  set style(style: ActivityActionsComponent.Style);
46
48
  layout: ActivityActionsComponent.Layout;
47
49
  align: ActivityActionsComponent.Align;
48
- alignContent: ActivityActionsComponent.AlignContent;
49
- constructor();
50
+ constructor(cdr: ChangeDetectorRef);
50
51
  hasConfirmFace(): boolean;
51
52
  hasCancelFace(): boolean;
52
53
  initCommands(activity: {
@@ -56,7 +57,7 @@ export declare class ActivityActionsComponent extends DisposableComponent {
56
57
  focusConfirm(): void;
57
58
  focusCancel(): void;
58
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ActivityActionsComponent, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<ActivityActionsComponent, "aup-activity-actions", never, { "confirmCommand": { "alias": "confirmCommand"; "required": false; }; "cancelCommand": { "alias": "cancelCommand"; "required": false; }; "faces": { "alias": "faces"; "required": false; }; "confirmFace": { "alias": "confirmFace"; "required": false; }; "cancelFace": { "alias": "cancelFace"; "required": false; }; "style": { "alias": "style"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "align": { "alias": "align"; "required": false; }; "alignContent": { "alias": "alignContent"; "required": false; }; }, {}, never, ["*"], false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityActionsComponent, "aup-activity-actions", never, { "confirmCommand": { "alias": "confirmCommand"; "required": false; }; "cancelCommand": { "alias": "cancelCommand"; "required": false; }; "faces": { "alias": "faces"; "required": false; }; "confirmFace": { "alias": "confirmFace"; "required": false; }; "cancelFace": { "alias": "cancelFace"; "required": false; }; "style": { "alias": "style"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, never, ["*"], false, never>;
60
61
  }
61
62
  export declare namespace ActivityActionsComponent {
62
63
  const Layout: {
@@ -66,16 +67,10 @@ export declare namespace ActivityActionsComponent {
66
67
  type Layout = Enum<typeof Layout>;
67
68
  const Align: {
68
69
  START: "start";
69
- STRETCH: "stretch";
70
70
  END: "end";
71
+ STRETCH: "stretch";
71
72
  };
72
73
  type Align = Enum<typeof Align>;
73
- const AlignContent: {
74
- START: "start";
75
- CENTER: "center";
76
- END: "end";
77
- };
78
- type AlignContent = Enum<typeof AlignContent>;
79
74
  interface Style {
80
75
  confirm: CommandFace;
81
76
  cancel: CommandFace;
@@ -14,7 +14,6 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
14
14
  tabs: MatTabGroup;
15
15
  activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;
16
16
  activityRefs: ActivityRef<any, any, any>[];
17
- animationDuration: string;
18
17
  private _identifier;
19
18
  private _deferredCleanUp;
20
19
  private interactionServiceApi;
@@ -27,7 +26,6 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
27
26
  readonly busy: DelegatingValueModel<boolean>;
28
27
  readonly syncTabsJob: () => void;
29
28
  readonly stable$: BooleanValueModelChain;
30
- private wasActive;
31
29
  constructor(placeRouter: PlaceRouter);
32
30
  get started$(): import("@coolon/pectin").ValueModel<boolean>;
33
31
  get ready$(): import("@coolon/pectin").ValueModel<boolean>;
@@ -63,13 +61,11 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
63
61
  * Synchronises the selected tab index.
64
62
  */
65
63
  private synchroniseSelectedTabIndex;
66
- finaliseActivityStates(): void;
64
+ private finaliseActivityStates;
67
65
  private getSelectedOutlet;
68
- protected getTabAnimationDuration(): string;
69
- protected getTabAnimationDurationInMillis(): number;
66
+ private getTabAnimationDuration;
70
67
  getSelectedTabIndex(): number;
71
68
  private triggerTabSynchronisation;
72
- onAnimationDone(): void;
73
69
  static ɵfac: i0.ɵɵFactoryDeclaration<ActivityContainerComponent<any, any, any>, never>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<ActivityContainerComponent<any, any, any>, "aup-activity-container", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; }, {}, never, never, false, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityContainerComponent<any, any, any>, "aup-activity-container", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; }, {}, never, never, false, never>;
75
71
  }
@@ -13,5 +13,5 @@ export declare class ActivityTitleComponent extends DisposableComponent {
13
13
  set color(color: ThemePalette);
14
14
  get color(): ThemePalette;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ActivityTitleComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ActivityTitleComponent, "aup-activity-title", never, { "hasTransparentBackground": { "alias": "hasTransparentBackground"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*", "[slot='title-end']"], false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityTitleComponent, "aup-activity-title", never, { "hasTransparentBackground": { "alias": "hasTransparentBackground"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
17
17
  }
@@ -1,3 +1,3 @@
1
1
  export interface EditContext<T> {
2
- injectError(error: string): void;
2
+ injectError(error: string): any;
3
3
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, EventEmitter } from "@angular/core";
1
+ import { AfterViewInit } from "@angular/core";
2
2
  import { MatTabChangeEvent, MatTabsConfig } from "@angular/material/tabs";
3
3
  import { Constructable } from "@coolon/pectin";
4
4
  import { DisposableComponent } from "../../../components/disposable-component";
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
16
16
  * </aup-in-place-interaction-context>
17
17
  *
18
18
  * in your component
19
- * @ViewChild(InPlaceInteractionContextComponent)
19
+ * @ViewChild('inPlaceInteractionContext', { static: true })
20
20
  * interactionContext: InteractionContext;
21
21
  *
22
22
  *
@@ -35,8 +35,6 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
35
35
  * active interactions.
36
36
  */
37
37
  syncWithRoutes: boolean;
38
- started: EventEmitter<void>;
39
- finished: EventEmitter<void>;
40
38
  get animationDuration(): string;
41
39
  get animationDurationMillis(): number;
42
40
  get active(): boolean;
@@ -55,5 +53,5 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
55
53
  startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
56
54
  onTabChanged($event: MatTabChangeEvent): void;
57
55
  static ɵfac: i0.ɵɵFactoryDeclaration<InPlaceInteractionContextComponent<any, any, any>, [{ optional: true; }]>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": { "alias": "animateFirstActivity"; "required": false; }; "syncWithRoutes": { "alias": "syncWithRoutes"; "required": false; }; }, { "started": "started"; "finished": "finished"; }, never, ["*"], false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": { "alias": "animateFirstActivity"; "required": false; }; "syncWithRoutes": { "alias": "syncWithRoutes"; "required": false; }; }, {}, never, ["*"], false, never>;
59
57
  }
@@ -7,7 +7,6 @@ export * from "./activity";
7
7
  export * from "./alert";
8
8
  export * from "./confirm";
9
9
  export * from "./in-place-interaction-context";
10
- export * from "./interaction-context-provider";
11
10
  export * from "./interaction-context";
12
11
  export * from "./interaction.module";
13
12
  export * from "./route-synchronisation-adapter";
@@ -36,7 +35,6 @@ export * from "./components/input-activities/input-activity";
36
35
  export * from "./components/input-activities/select-input-activity";
37
36
  export * from "./components/input-activities/string-input-activity";
38
37
  export * from "./components/popup-interaction-context/popup-interaction-context.component";
39
- export * from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
40
38
  export * from "./directives/interaction-context-trigger-for.directive";
41
39
  export * from "./services/interaction-service-routing-adapter";
42
40
  export * from "./services/interaction.service";
@@ -1,9 +1,7 @@
1
- import { InjectionToken } from "@angular/core";
2
1
  import { Constructable, Disposable } from '@coolon/pectin';
3
2
  import { Activity } from './activity';
4
3
  import { Alert } from './alert';
5
4
  import { Confirm } from './confirm';
6
- export declare const INTERACTION_CONTEXT: InjectionToken<InteractionContext>;
7
5
  export interface InteractionContext extends Disposable, Disposable.Collector {
8
6
  readonly identifier: string;
9
7
  isActive(): boolean;
@@ -6,33 +6,33 @@ import * as i4 from "./components/confirm-then-execute-dialog/confirm-then-execu
6
6
  import * as i5 from "./components/alert-dialog/alert-dialog.component";
7
7
  import * as i6 from "./components/activity-container/activity-outlet/activity-outlet.component";
8
8
  import * as i7 from "./components/inplace-interaction-context/in-place-interaction-context.component";
9
- import * as i8 from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
10
- import * as i9 from "./components/add-item-interaction-context/add-item-interaction-context.component";
11
- import * as i10 from "./components/activity-actions/activity-actions.component";
12
- import * as i11 from "./components/popup-interaction-context/popup-interaction-context.component";
13
- import * as i12 from "./components/input-activities/string-input-activity";
14
- import * as i13 from "./components/input-activities/select-input-activity";
15
- import * as i14 from "./components/input-activities/input-activity";
16
- import * as i15 from "./directives/interaction-context-trigger-for.directive";
17
- import * as i16 from "./activity";
18
- import * as i17 from "./components/activity-title/activity-title.component";
19
- import * as i18 from "./components/activity-body/activity-body.component";
20
- import * as i19 from "./components/activity-triggers/abstract-activity-trigger.component";
21
- import * as i20 from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
22
- import * as i21 from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
23
- import * as i22 from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
24
- import * as i23 from "./components/add-card-activity/add-card-activity.component";
25
- import * as i24 from "./components/editors/inline-string-editor/inline-string-editor.component";
26
- import * as i25 from "./components/abstract-dialog.component";
27
- import * as i26 from "./components/abstract-confirm-dialog.component";
28
- import * as i27 from "@angular/common";
29
- import * as i28 from "@angular/material/button";
30
- import * as i29 from "@angular/material/dialog";
31
- import * as i30 from "@angular/material/tabs";
32
- import * as i31 from "@angular/cdk/portal";
33
- import * as i32 from "@angular/router";
34
- import * as i33 from "@angular/material/icon";
35
- import * as i34 from "../directives/directives.module";
9
+ import * as i8 from "./components/add-item-interaction-context/add-item-interaction-context.component";
10
+ import * as i9 from "./components/activity-actions/activity-actions.component";
11
+ import * as i10 from "./components/popup-interaction-context/popup-interaction-context.component";
12
+ import * as i11 from "./components/input-activities/string-input-activity";
13
+ import * as i12 from "./components/input-activities/select-input-activity";
14
+ import * as i13 from "./components/input-activities/input-activity";
15
+ import * as i14 from "./directives/interaction-context-trigger-for.directive";
16
+ import * as i15 from "./activity";
17
+ import * as i16 from "./components/activity-title/activity-title.component";
18
+ import * as i17 from "./components/activity-body/activity-body.component";
19
+ import * as i18 from "./components/activity-triggers/abstract-activity-trigger.component";
20
+ import * as i19 from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
21
+ import * as i20 from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
22
+ import * as i21 from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
23
+ import * as i22 from "./components/add-card-activity/add-card-activity.component";
24
+ import * as i23 from "./components/editors/inline-string-editor/inline-string-editor.component";
25
+ import * as i24 from "./components/abstract-dialog.component";
26
+ import * as i25 from "./components/abstract-confirm-dialog.component";
27
+ import * as i26 from "@angular/common";
28
+ import * as i27 from "@angular/material/button";
29
+ import * as i28 from "@angular/material/dialog";
30
+ import * as i29 from "@angular/material/tabs";
31
+ import * as i30 from "@angular/cdk/portal";
32
+ import * as i31 from "@angular/router";
33
+ import * as i32 from "@angular/material/icon";
34
+ import * as i33 from "../directives/directives.module";
35
+ import * as i34 from "@angular/flex-layout";
36
36
  import * as i35 from "../components/components.module";
37
37
  import * as i36 from "@angular/forms";
38
38
  import * as i37 from "@angular/material/input";
@@ -40,6 +40,6 @@ import * as i38 from "@angular/material/form-field";
40
40
  import * as i39 from "@angular/cdk/a11y";
41
41
  export declare class InteractionModule {
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractionModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.SlideDownInteractionContextComponent, typeof i9.AddItemInteractionContextComponent, typeof i10.ActivityActionsComponent, typeof i11.PopupInteractionContextComponent, typeof i12.StringInputActivity, typeof i13.SelectInputActivity, typeof i14.InputActivity, typeof i15.InteractionContextTriggerForDirective, typeof i16.Activity, typeof i17.ActivityTitleComponent, typeof i18.ActivityBodyComponent, typeof i10.ActivityActionsComponent, typeof i19.AbstractActivityTriggerComponent, typeof i20.PopupActivityTriggerComponent, typeof i21.InlineActivityTriggerComponent, typeof i22.ModalActivityTriggerComponent, typeof i23.AddCardActivityComponent, typeof i24.InlineStringEditorComponent, typeof i25.AbstractDialogComponent, typeof i26.AbstractConfirmDialogComponent], [typeof i27.CommonModule, typeof i28.MatButtonModule, typeof i29.MatDialogModule, typeof i30.MatTabsModule, typeof i31.PortalModule, typeof i32.RouterModule, typeof i33.MatIconModule, typeof i34.DirectivesModule, typeof i35.ComponentsModule, typeof i36.FormsModule, typeof i37.MatInputModule, typeof i38.MatFormFieldModule, typeof i39.A11yModule], [typeof i1.ActivityContainerComponent, typeof i6.ActivityOutletComponent, typeof i17.ActivityTitleComponent, typeof i7.InPlaceInteractionContextComponent, typeof i9.AddItemInteractionContextComponent, typeof i10.ActivityActionsComponent, typeof i11.PopupInteractionContextComponent, typeof i15.InteractionContextTriggerForDirective, typeof i12.StringInputActivity, typeof i13.SelectInputActivity, typeof i18.ActivityBodyComponent, typeof i20.PopupActivityTriggerComponent, typeof i21.InlineActivityTriggerComponent, typeof i22.ModalActivityTriggerComponent, typeof i23.AddCardActivityComponent, typeof i24.InlineStringEditorComponent, typeof i8.SlideDownInteractionContextComponent]>;
43
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i13.InputActivity, typeof i14.InteractionContextTriggerForDirective, typeof i15.Activity, typeof i16.ActivityTitleComponent, typeof i17.ActivityBodyComponent, typeof i9.ActivityActionsComponent, typeof i18.AbstractActivityTriggerComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent, typeof i24.AbstractDialogComponent, typeof i25.AbstractConfirmDialogComponent], [typeof i26.CommonModule, typeof i27.MatButtonModule, typeof i28.MatDialogModule, typeof i29.MatTabsModule, typeof i30.PortalModule, typeof i31.RouterModule, typeof i32.MatIconModule, typeof i33.DirectivesModule, typeof i34.FlexModule, typeof i34.GridModule, typeof i35.ComponentsModule, typeof i36.FormsModule, typeof i37.MatInputModule, typeof i38.MatFormFieldModule, typeof i39.A11yModule], [typeof i1.ActivityContainerComponent, typeof i6.ActivityOutletComponent, typeof i16.ActivityTitleComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i14.InteractionContextTriggerForDirective, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i17.ActivityBodyComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent]>;
44
44
  static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
45
45
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentPortal } from '@angular/cdk/portal';
2
- import { EventEmitter, InjectionToken } from '@angular/core';
2
+ import { ChangeDetectorRef, 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,6 +13,7 @@ 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;
16
17
  accessor animate$: ValueModel<boolean>;
17
18
  accessor animate: boolean;
18
19
  accessor customPlaceAnimationOrder$: ListModel<Constructable<PlaceComponent>>;
@@ -36,7 +37,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
36
37
  readonly animationEnabled: BooleanValueModelChain;
37
38
  readonly authorised: ValueModelChain<boolean>;
38
39
  readonly notAuthorisedNoticePortal: ComponentPortal<any>;
39
- constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent);
40
+ constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent, cdr: ChangeDetectorRef);
40
41
  getAnimationOrder(): number;
41
42
  get animationDuration(): string;
42
43
  get isAuthorised(): boolean;
@@ -52,6 +53,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
52
53
  private notifyComponentVisitSegmentChanged;
53
54
  animationStarted(): void;
54
55
  animationDone(): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
56
57
  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>;
57
58
  }
@@ -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): Promise<Visit>;
23
- getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
22
+ getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
23
+ getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): 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> | Promise<Visit> | Promise<Constructable<PlaceComponent>>;
31
+ redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | 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)[] | Promise<(Constructable<PlaceComponent> | Visit)[]>;
36
+ redirectTo(component: Constructable<PlaceComponent>): (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 } from '@coolon/pectin';
2
+ import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
3
3
  import 'reflect-metadata';
4
- import { LoadableComponent } from "../components/loadable-component";
4
+ import { DisposableComponent } from '../components/disposable-component';
5
5
  import { InteractionContext } from '../interaction/interaction-context';
6
6
  import { PlaceDefinition } from './place-definition';
7
7
  import { PlaceRouter } from "./place-router";
@@ -11,17 +11,15 @@ 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 LoadableComponent {
14
+ export declare class PlaceComponent extends DisposableComponent {
15
15
  private readonly _placeReadyCallbacks;
16
- private visit$;
16
+ private visitModel;
17
17
  private _inVisitUpdate;
18
18
  private _active;
19
19
  interactionContext?: InteractionContext;
20
20
  readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
21
- readonly placeId: string;
22
21
  canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
23
22
  protected readonly placeRouter: PlaceRouter;
24
- private readonly activatedRoute;
25
23
  constructor();
26
24
  initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
27
25
  get childPlaces(): readonly Constructable<PlaceComponent>[];
@@ -34,7 +32,7 @@ export declare class PlaceComponent extends LoadableComponent {
34
32
  */
35
33
  private installAndInitialiseBinding;
36
34
  get placeDefinition(): PlaceDefinition;
37
- get active(): import("@coolon/pectin").ValueModel<boolean>;
35
+ get active(): ValueModel<boolean>;
38
36
  /**
39
37
  * Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
40
38
  * @param interactionContext
@@ -13,11 +13,9 @@ export declare class PlaceDefinition {
13
13
  readonly children: PlaceDefinition[];
14
14
  readonly redirectToFirstChild: boolean;
15
15
  private _parent;
16
- readonly name: string;
17
16
  constructor(component: Constructable<PlaceComponent>, path: string, authenticate: boolean, role: any, data: Record<string, any>, routeParameters: ParameterDefinition<any>[], children: PlaceDefinition[], redirectToFirstChild: boolean);
18
17
  ancestors(): PlaceDefinition[];
19
18
  ancestorsAndSelf(): PlaceDefinition[];
20
- get placeId(): string;
21
19
  protected setParent(parent: PlaceDefinition): void;
22
20
  get parent(): PlaceDefinition;
23
21
  isRoot(): boolean;