@coolon/angular-ui-powerups 16.1.0-aplpha.118 → 16.1.0-aplpha.12

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 (178) 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/table.scss +27 -47
  5. package/assets/tabs.scss +6 -2
  6. package/esm2022/lib/animations/slide-animations.mjs +1 -6
  7. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
  8. package/esm2022/lib/components/commands/command/command.component.mjs +10 -24
  9. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
  10. package/esm2022/lib/components/commands/command-face.mjs +11 -11
  11. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +11 -11
  12. package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -6
  13. package/esm2022/lib/components/components.module.mjs +8 -27
  14. package/esm2022/lib/components/disposable-component.mjs +37 -20
  15. package/esm2022/lib/components/exports.mjs +2 -9
  16. package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
  17. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
  18. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
  19. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
  20. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +10 -49
  21. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
  22. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
  23. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +9 -21
  24. package/esm2022/lib/components/icon/icon.component.mjs +4 -7
  25. package/esm2022/lib/components/resize-aware.component.mjs +24 -61
  26. package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
  27. package/esm2022/lib/components/tables/abstract-table-model.mjs +27 -69
  28. package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
  29. package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
  30. package/esm2022/lib/components/tables/column/column-model.mjs +3 -13
  31. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
  32. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
  33. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
  34. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
  35. package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
  36. package/esm2022/lib/components/tables/column/selection-column-model.mjs +3 -3
  37. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +1 -1
  38. package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -3
  39. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
  40. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
  41. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -19
  42. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
  43. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +2 -3
  44. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
  45. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +1 -1
  46. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
  47. package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
  48. package/esm2022/lib/components/tables/table/table.component.mjs +61 -39
  49. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
  50. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
  51. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
  52. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +5 -12
  53. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +4 -4
  54. package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
  55. package/esm2022/lib/directives/directives.module.mjs +1 -1
  56. package/esm2022/lib/directives/exports.mjs +1 -2
  57. package/esm2022/lib/directives/highlight.pipe.mjs +2 -2
  58. package/esm2022/lib/interaction/activity.mjs +4 -3
  59. package/esm2022/lib/interaction/alert.mjs +2 -2
  60. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -8
  61. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +11 -20
  62. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -28
  63. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
  64. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  65. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  66. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
  67. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
  68. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
  69. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
  70. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
  71. package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
  72. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
  73. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +5 -21
  74. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
  75. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +2 -4
  76. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
  77. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
  78. package/esm2022/lib/interaction/exports.mjs +1 -2
  79. package/esm2022/lib/interaction/interaction-context.mjs +2 -3
  80. package/esm2022/lib/interaction/interaction.module.mjs +9 -7
  81. package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
  82. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
  83. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
  84. package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
  85. package/esm2022/lib/place/guards/place.guard.mjs +1 -2
  86. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
  87. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
  88. package/esm2022/lib/place/place-component.mjs +7 -7
  89. package/esm2022/lib/place/place-definition.mjs +3 -3
  90. package/esm2022/lib/place/place-history.mjs +2 -2
  91. package/esm2022/lib/place/place-router.mjs +18 -20
  92. package/esm2022/lib/place/place.decorator.mjs +2 -2
  93. package/esm2022/lib/place/place.module.mjs +5 -1
  94. package/esm2022/lib/place/route/formatter.mjs +2 -2
  95. package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
  96. package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
  97. package/esm2022/lib/place/url-snapshot.mjs +3 -3
  98. package/esm2022/lib/place/visit-segment.mjs +2 -2
  99. package/esm2022/lib/place/visit.mjs +2 -2
  100. package/fesm2022/coolon-angular-ui-powerups.mjs +537 -1333
  101. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  102. package/lib/animations/slide-animations.d.ts +0 -1
  103. package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
  104. package/lib/components/commands/command/command.component.d.ts +1 -2
  105. package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
  106. package/lib/components/commands/command-face.d.ts +7 -5
  107. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
  108. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
  109. package/lib/components/components.module.d.ts +53 -56
  110. package/lib/components/disposable-component.d.ts +8 -12
  111. package/lib/components/exports.d.ts +1 -8
  112. package/lib/components/forms/abstract-input.component.d.ts +5 -13
  113. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
  114. package/lib/components/forms/number-input/number-input.component.d.ts +4 -8
  115. package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
  116. package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
  117. package/lib/components/forms/string-input/string-input.component.d.ts +1 -3
  118. package/lib/components/resize-aware.component.d.ts +5 -24
  119. package/lib/components/switch-case/switch-case.component.d.ts +3 -2
  120. package/lib/components/tables/abstract-table-model.d.ts +8 -27
  121. package/lib/components/tables/abstract-table.component.d.ts +3 -4
  122. package/lib/components/tables/column/column-list-model.d.ts +13 -0
  123. package/lib/components/tables/column/column-model.d.ts +3 -7
  124. package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
  125. package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
  126. package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
  127. package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
  128. package/lib/components/tables/column/property-column-model.d.ts +2 -3
  129. package/lib/components/tables/column/selection-column-model.d.ts +2 -3
  130. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  131. package/lib/components/tables/editor/edit-session.d.ts +1 -1
  132. package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
  133. package/lib/components/tables/renderer/cell-portal-ref.d.ts +6 -14
  134. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
  135. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
  136. package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
  137. package/lib/components/tables/table/table-model.d.ts +1 -1
  138. package/lib/components/tables/table/table.component.d.ts +10 -14
  139. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  140. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
  141. package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
  142. package/lib/components/tables/tree-table/tree-table-model.d.ts +2 -3
  143. package/lib/directives/exports.d.ts +0 -1
  144. package/lib/interaction/activity.d.ts +2 -2
  145. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -1
  146. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +5 -10
  147. package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -7
  148. package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
  149. package/lib/interaction/components/editors/edit-context.d.ts +1 -1
  150. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -5
  151. package/lib/interaction/exports.d.ts +0 -1
  152. package/lib/interaction/interaction-context.d.ts +0 -2
  153. package/lib/interaction/interaction.module.d.ts +28 -28
  154. package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
  155. package/lib/place/place-component.d.ts +4 -4
  156. package/lib/place/place-router.d.ts +0 -4
  157. package/lib/place/place.module.d.ts +5 -4
  158. package/package.json +4 -6
  159. package/esm2022/lib/components/forms/form-field.mjs +0 -2
  160. package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
  161. package/esm2022/lib/components/loadable-component.mjs +0 -49
  162. package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
  163. package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
  164. package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
  165. package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -12
  166. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
  167. package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
  168. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
  169. package/lib/components/forms/form-field.d.ts +0 -5
  170. package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
  171. package/lib/components/loadable-component.d.ts +0 -17
  172. package/lib/components/tables/column/column-manager.d.ts +0 -19
  173. package/lib/components/tables/column/column-order-manager.d.ts +0 -20
  174. package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
  175. package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -8
  176. package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
  177. package/lib/directives/resize-observer.directive.d.ts +0 -16
  178. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
@@ -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
  }
@@ -35,7 +35,6 @@ export * from "./components/input-activities/input-activity";
35
35
  export * from "./components/input-activities/select-input-activity";
36
36
  export * from "./components/input-activities/string-input-activity";
37
37
  export * from "./components/popup-interaction-context/popup-interaction-context.component";
38
- export * from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
39
38
  export * from "./directives/interaction-context-trigger-for.directive";
40
39
  export * from "./services/interaction-service-routing-adapter";
41
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
  }
@@ -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,7 +11,7 @@ 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
16
  private visitModel;
17
17
  private _inVisitUpdate;
@@ -32,7 +32,7 @@ export declare class PlaceComponent extends LoadableComponent {
32
32
  */
33
33
  private installAndInitialiseBinding;
34
34
  get placeDefinition(): PlaceDefinition;
35
- get active(): import("@coolon/pectin").ValueModel<boolean>;
35
+ get active(): ValueModel<boolean>;
36
36
  /**
37
37
  * Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
38
38
  * @param interactionContext
@@ -27,16 +27,12 @@ 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>;
32
30
  constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
33
- postponeRoutingUntil(condition$: ValueModel<boolean>): void;
34
31
  getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
35
32
  getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
36
33
  get navigationSession(): NavigationSession;
37
34
  get currentSession(): NavigationSession;
38
35
  isNavigating(): boolean;
39
- waitUntilRouterReady(): Promise<this>;
40
36
  waitUntilIdle(): Promise<this>;
41
37
  waitActivitiesSynchronised(): Promise<this>;
42
38
  onPopState(event: NavigationStart): void;
@@ -14,11 +14,12 @@ 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 "../components/components.module";
18
- import * as i17 from "@angular/cdk/portal";
19
- import * as i18 from "@angular/material/card";
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";
20
21
  export declare class PlaceModule {
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
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]>;
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]>;
23
24
  static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-aplpha.118",
3
+ "version": "16.1.0-aplpha.12",
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.54",
16
- "fast-typescript-memoize": "^1.1.1",
15
+ "@coolon/pectin": "^5.0.0-alpha.1",
16
+ "@typescript-plus/fast-memoize-decorator": "^0.2.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",
19
19
  "reflect-metadata": "^0.1.13",
@@ -22,9 +22,7 @@
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.12",
26
- "fractional-indexing": "^3.2.0",
27
- "ng-table-virtual-scroll": "^1.6.1"
25
+ "@coolon/typescript-utilities": "^5.0.0-alpha.3"
28
26
  },
29
27
  "optionalDependencies": {
30
28
  "@fortawesome/fontawesome-free": "^6.0.0"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvZm9ybS1maWVsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGb3JtRmllbGQge1xuICBsYWJlbCgpOnN0cmluZztcbiAgaGludD8oKTpzdHJpbmc7XG4gIHBsYWNlaG9sZGVyPygpOnN0cmluZztcbn1cbiJdfQ==
@@ -1,33 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { Command, Dsl } from '@coolon/pectin';
3
- import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/forms";
6
- import * as i2 from "@angular/material/input";
7
- import * as i3 from "@angular/material/form-field";
8
- import * as i4 from "../../../directives/command.directive";
9
- import * as i5 from "../../../directives/focus-binding.directive";
10
- import * as i6 from "@angular/material/button";
11
- import * as i7 from "../../icon/icon.component";
12
- export class SearchInputComponent extends AbstractValueInputComponent {
13
- autocomplete;
14
- clearCommand;
15
- constructor() {
16
- super();
17
- this.dense = true;
18
- const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
19
- this.clearCommand = Command.create(() => {
20
- this.componentValue$.value = "";
21
- });
22
- this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SearchInputComponent, selector: "aup-search-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\n <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, decorators: [{
28
- type: Component,
29
- args: [{ selector: 'aup-search-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\n <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"] }]
30
- }], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
31
- type: Input
32
- }] } });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvc2VhcmNoLWlucHV0L3NlYXJjaC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL3NlYXJjaC1pbnB1dC9zZWFyY2gtaW5wdXQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLE9BQU8sRUFBRSxHQUFHLEVBQWtELE1BQU0sZ0JBQWdCLENBQUM7QUFDN0YsT0FBTyxFQUFDLDJCQUEyQixFQUFDLE1BQU0sbUNBQW1DLENBQUM7Ozs7Ozs7Ozt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Rlcn19XCJcbiAgICAgICAgIFthdHRyLmF1dG9jb21wbGV0ZV09XCJhdXRvY29tcGxldGVcIlxuICAgICAgICAgWyhuZ01vZGVsKV09XCJjb21wb25lbnRWYWx1ZSQudmFsdWVcIlxuICAgICAgICAgW2Rpc2FibGVkXT1cIiFlbmFibGVkJC52YWx1ZVwiXG4gICAgICAgICAoa2V5ZG93bi5lbnRlcik9XCJub3RpZnlFbnRlcktleSgpXCJcbiAgICAgICAgIChrZXlkb3duLmVzY2FwZSk9XCJub3RpZnlFc2NhcGVLZXkoKVwiXG4gICAgICAgICBbcGVjdGluRm9jdXNCaW5kaW5nXT1cImZvY3VzQ29udGV4dFwiXG4gICAgICAgICBbZXJyb3JTdGF0ZU1hdGNoZXJdPVwiZXJyb3JTdGF0ZU1hdGNoZXJcIlxuICA+XG4gIDxhdXAtaWNvbiBtYXRQcmVmaXggaWNvbj1cIm1hdDpzZWFyY2hcIj48L2F1cC1pY29uPlxuICA8YnV0dG9uIG1hdC1pY29uLWJ1dHRvbiBtYXRTdWZmaXggW3BlY3RpbkNvbW1hbmRdPVwiY2xlYXJDb21tYW5kXCI+XG4gICAgPGF1cC1pY29uIGljb249XCJtYXQ6Y2xvc2VcIj48L2F1cC1pY29uPlxuICA8L2J1dHRvbj5cbjwvbWF0LWZvcm0tZmllbGQ+XG5cbiJdfQ==
@@ -1,49 +0,0 @@
1
- import { Directive, inject } from '@angular/core';
2
- import { MutableValueModel } from '@coolon/pectin';
3
- import { DisposableComponent } from "./disposable-component";
4
- import * as i0 from "@angular/core";
5
- export class LoadableComponent extends DisposableComponent {
6
- #_loaded$ = new MutableValueModel();
7
- #asyncLoadables = [];
8
- #awaitedLoadables = [];
9
- get loaded$() {
10
- return this.#_loaded$.readonly$;
11
- }
12
- ngOnInit() {
13
- super.ngOnInit();
14
- this.#asyncLoadables.forEach(it => it.ensureLoaded());
15
- if (this.#awaitedLoadables.length > 0) {
16
- Promise.all(this.#awaitedLoadables.map(it => {
17
- return it.ensureLoaded(); //.then(() => console.log(`${it.constructor.name} loaded`));
18
- })).then(() => {
19
- this.#_loaded$.value = true;
20
- });
21
- }
22
- else {
23
- this.#_loaded$.value = true;
24
- }
25
- }
26
- injectLoadable(token, options) {
27
- return this.registerLoadable(inject(token), options);
28
- }
29
- registerLoadable(loadable, options) {
30
- if (this.loaded$.value) {
31
- loadable.ensureLoaded();
32
- }
33
- else {
34
- if (!options || options.wait === true) {
35
- this.#awaitedLoadables.push(loadable);
36
- }
37
- else {
38
- this.#asyncLoadables.push(loadable);
39
- }
40
- }
41
- return loadable;
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
44
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: LoadableComponent, usesInheritance: true, ngImport: i0 });
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, decorators: [{
47
- type: Directive
48
- }] });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGFibGUtY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9sb2FkYWJsZS1jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxNQUFNLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQy9ELE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQ2pELE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLHdCQUF3QixDQUFDOztBQUkzRCxNQUFNLE9BQU8saUJBQW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b2xlYW4gfSkge1xuICAgIGlmICh0aGlzLmxvYWRlZCQudmFsdWUpIHtcbiAgICAgIGxvYWRhYmxlLmVuc3VyZUxvYWRlZCgpO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAoIW9wdGlvbnMgfHwgb3B0aW9ucy53YWl0ID09PSB0cnVlKSB7XG4gICAgICAgIHRoaXMuI2F3YWl0ZWRMb2FkYWJsZXMucHVzaChsb2FkYWJsZSlcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuI2FzeW5jTG9hZGFibGVzLnB1c2gobG9hZGFibGUpXG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBsb2FkYWJsZTtcbiAgfVxufVxuIl19
@@ -1,81 +0,0 @@
1
- import { Dsl, GarbageCollector, lang, MutableListModel, WatchList } from '@coolon/pectin';
2
- import { generateKeyBetween } from "fractional-indexing";
3
- import { ColumnOrderManager } from "./column-order-manager";
4
- class ColumnRef {
5
- column;
6
- position;
7
- constructor(column, position) {
8
- this.column = column;
9
- this.position = position;
10
- }
11
- }
12
- export class ColumnManager extends GarbageCollector {
13
- _columnRefs$ = new MutableListModel();
14
- orderedColumnRefs$;
15
- _columnsById$;
16
- allColumns$;
17
- columnVisibilities$ = new WatchList();
18
- visibleColumns$;
19
- constructor() {
20
- super();
21
- const { chain } = Dsl.disposeWith(this);
22
- this.orderedColumnRefs$ = chain(this._columnRefs$).orderBy("position", "asc");
23
- this.allColumns$ = this.orderedColumnRefs$.pluck("column");
24
- this._columnsById$ = chain(this.allColumns$).indexBy('columnId');
25
- this.visibleColumns$ = chain(this.allColumns$).select(it => it.visible$.value, {
26
- dependsOn: this.columnVisibilities$
27
- });
28
- }
29
- position(column, newPosition) {
30
- const target = this._columnRefs$.query().findMatching(it => it.column === column);
31
- const position = this.computePosition(newPosition);
32
- this._columnRefs$.replace(target, { with: new ColumnRef(target.column, position) });
33
- }
34
- getColumn(id) {
35
- return this._columnsById$.get(id);
36
- }
37
- hasColumn(id) {
38
- return !!this._columnsById$.get(id);
39
- }
40
- hasMatchingColumn(row, regex) {
41
- // only search the visible columns
42
- return !!this.visibleColumns$.value.find(c => regex.test(c.getSearchTextFor(row)));
43
- }
44
- addColumn(column, position) {
45
- if (this.hasColumn(column.columnId)) {
46
- lang.illegalState(`Column with id=${column.columnId} already exists`);
47
- }
48
- this.registerDisposable(column);
49
- this._columnRefs$.push(new ColumnRef(column, this.computePosition(position)));
50
- this.columnVisibilities$.add(column.visible$);
51
- return column;
52
- }
53
- computePosition(position) {
54
- const q = this.orderedColumnRefs$.query();
55
- return ColumnOrderManager.processPosition(position, {
56
- before(col) {
57
- const index = q.findIndex(ref => ref.column === col);
58
- const beforeCol = q.value[index];
59
- const afterCol = index - 1 >= 0 ? q.value[index - 1] : undefined;
60
- return generateKeyBetween(afterCol?.position, beforeCol.position);
61
- },
62
- after(col) {
63
- const index = q.findIndex(ref => ref.column === col);
64
- const afterCol = q.value[index];
65
- const beforeCol = index + 1 < q.length ? q.value[index + 1] : undefined;
66
- return generateKeyBetween(afterCol.position, beforeCol?.position);
67
- },
68
- first() {
69
- return generateKeyBetween(null, q.first()?.position);
70
- },
71
- last() {
72
- // add it to the end of the list
73
- return generateKeyBetween(q.last()?.position, null);
74
- }
75
- });
76
- }
77
- doComputeValue() {
78
- return this.allColumns$.value.filter(c => c.visible$.value);
79
- }
80
- }
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLW1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYmxlcy9jb2x1bW4vY29sdW1uLW1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLEdBQUcsRUFDSCxnQkFBZ0IsRUFDaEIsSUFBSS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2VlbihhZnRlckNvbD8ucG9zaXRpb24sIGJlZm9yZUNvbC5wb3NpdGlvbik7XG4gICAgICB9LFxuICAgICAgYWZ0ZXIoY29sOiBDb2x1bW5Nb2RlbDxhbnk+KTogc3RyaW5nIHtcbiAgICAgICAgY29uc3QgaW5kZXggPSBxLmZpbmRJbmRleChyZWYgPT4gcmVmLmNvbHVtbiA9PT0gY29sKVxuICAgICAgICBjb25zdCBhZnRlckNvbCA9IHEudmFsdWVbaW5kZXhdO1xuICAgICAgICBjb25zdCBiZWZvcmVDb2wgPSBpbmRleCArIDEgPCBxLmxlbmd0aCA/IHEudmFsdWVbaW5kZXggKyAxXSA6IHVuZGVmaW5lZDtcbiAgICAgICAgcmV0dXJuIGdlbmVyYXRlS2V5QmV0d2VlbihhZnRlckNvbC5wb3NpdGlvbiwgYmVmb3JlQ29sPy5wb3NpdGlvbilcbiAgICAgIH0sXG4gICAgICBmaXJzdCgpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gZ2VuZXJhdGVLZXlCZXR3ZWVuKG51bGwsIHEuZmlyc3QoKT8ucG9zaXRpb24pO1xuICAgICAgfSxcbiAgICAgIGxhc3QoKSB7XG4gICAgICAgIC8vIGFkZCBpdCB0byB0aGUgZW5kIG9mIHRoZSBsaXN0XG4gICAgICAgIHJldHVybiBnZW5lcmF0ZUtleUJldHdlZW4ocS5sYXN0KCk/LnBvc2l0aW9uLCBudWxsKTtcbiAgICAgIH1cbiAgICB9KVxuICB9XG5cblxuICBkb0NvbXB1dGVWYWx1ZSgpOiBDb2x1bW5Nb2RlbDxSb3c+W10ge1xuICAgIHJldHVybiB0aGlzLmFsbENvbHVtbnMkLnZhbHVlLmZpbHRlcihjID0+IGMudmlzaWJsZSQudmFsdWUpO1xuICB9XG59XG4iXX0=
@@ -1,19 +0,0 @@
1
- export var ColumnOrderManager;
2
- (function (ColumnOrderManager) {
3
- function processPosition(position, callback) {
4
- if (position) {
5
- const keys = Object.keys(position);
6
- if (keys.includes("before")) {
7
- return position["before"] ? callback.before(position["before"]) : callback.first();
8
- }
9
- else {
10
- return position["after"] ? callback.after(position["after"]) : callback.last();
11
- }
12
- }
13
- else {
14
- return callback.last();
15
- }
16
- }
17
- ColumnOrderManager.processPosition = processPosition;
18
- })(ColumnOrderManager || (ColumnOrderManager = {}));
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLW9yZGVyLW1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYmxlcy9jb2x1bW4vY29sdW1uLW9yZGVyLW1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU0EsTUFBTSxLQUFXLGtCQUFrQixDQXlCbEM7QUF6QkQsV0FBaUIsa0JBQWtCO0lBTWpDLFNBQWdCLGVBQWUsQ0FBQyxRQUE4QixFQUFFLFFBSy9EO1FBQ0MsSUFBSSxRQUFRLEVBQUU7WUFDWixNQUFNLElBQUksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1lBQ25DLElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsRUFBRTtnQkFDM0IsT0FBTyxRQUFRLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsQ0FBQTthQUNuRjtpQkFBTTtnQkFDTCxPQUFPLFFBQVEsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLENBQ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