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

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 +14 -6
  2. package/assets/draw.scss +20 -0
  3. package/assets/form.scss +74 -27
  4. package/assets/icons.scss +1 -0
  5. package/assets/layout.scss +3 -0
  6. package/assets/styles.scss +2 -0
  7. package/assets/table.scss +47 -27
  8. package/assets/tabs.scss +15 -5
  9. package/esm2022/lib/animations/slide-animations.mjs +15 -10
  10. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
  11. package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +115 -0
  12. package/esm2022/lib/components/commands/command/command.component.mjs +34 -29
  13. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +11 -3
  14. package/esm2022/lib/components/commands/command-face.mjs +12 -11
  15. package/esm2022/lib/components/commands/group/popup-aware.component.mjs +31 -8
  16. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +25 -23
  17. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +11 -20
  18. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +12 -7
  19. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +11 -20
  20. package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +8 -6
  21. package/esm2022/lib/components/commands/separator.component.mjs +6 -12
  22. package/esm2022/lib/components/components.module.mjs +44 -19
  23. package/esm2022/lib/components/disposable-component.mjs +32 -7
  24. package/esm2022/lib/components/exports.mjs +11 -2
  25. package/esm2022/lib/components/file/file-download/file-download.component.mjs +78 -0
  26. package/esm2022/lib/components/forms/abstract-input.component.mjs +55 -12
  27. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
  28. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +8 -6
  29. package/esm2022/lib/components/forms/form-field.mjs +2 -0
  30. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
  31. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +84 -9
  32. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +40 -3
  33. package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
  34. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +11 -10
  35. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +26 -10
  36. package/esm2022/lib/components/forms/text-input/text-input.component.mjs +6 -2
  37. package/esm2022/lib/components/icon/icon.component.mjs +7 -4
  38. package/esm2022/lib/components/loadable-component.mjs +49 -0
  39. package/esm2022/lib/components/resize-aware.component.mjs +61 -24
  40. package/esm2022/lib/components/switch-case/switch-case.component.mjs +5 -7
  41. package/esm2022/lib/components/tables/abstract-table-model.mjs +77 -47
  42. package/esm2022/lib/components/tables/abstract-table.component.mjs +19 -5
  43. package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
  44. package/esm2022/lib/components/tables/column/column-model.mjs +16 -6
  45. package/esm2022/lib/components/tables/column/column-order-manager.mjs +19 -0
  46. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
  47. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
  48. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
  49. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
  50. package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
  51. package/esm2022/lib/components/tables/column/selection-column-model.mjs +35 -13
  52. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +2 -2
  53. package/esm2022/lib/components/tables/editor/edit-session.mjs +3 -1
  54. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +4 -2
  55. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +16 -2
  56. package/esm2022/lib/components/tables/footer/footer-row-model.mjs +38 -0
  57. package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
  58. package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +7 -0
  59. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +23 -5
  60. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
  61. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +3 -2
  62. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +150 -40
  63. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
  64. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +30 -0
  65. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +12 -5
  66. package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +7 -2
  67. package/esm2022/lib/components/tables/table/table-model.mjs +12 -3
  68. package/esm2022/lib/components/tables/table/table.component.mjs +39 -61
  69. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +5 -4
  70. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
  71. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
  72. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +12 -5
  73. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +4 -7
  74. package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
  75. package/esm2022/lib/directives/command.directive.mjs +26 -8
  76. package/esm2022/lib/directives/directives.module.mjs +1 -1
  77. package/esm2022/lib/directives/exports.mjs +2 -1
  78. package/esm2022/lib/directives/highlight.pipe.mjs +9 -7
  79. package/esm2022/lib/directives/resize-observer.directive.mjs +40 -0
  80. package/esm2022/lib/interaction/activity.mjs +13 -5
  81. package/esm2022/lib/interaction/alert.mjs +2 -2
  82. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +8 -4
  83. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +20 -11
  84. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +28 -11
  85. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
  86. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  87. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  88. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
  89. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
  90. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
  91. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
  92. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
  93. package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
  94. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
  95. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +21 -5
  96. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
  97. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +4 -2
  98. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +8 -4
  99. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +134 -0
  100. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
  101. package/esm2022/lib/interaction/exports.mjs +3 -1
  102. package/esm2022/lib/interaction/interaction-context-provider.mjs +3 -0
  103. package/esm2022/lib/interaction/interaction-context.mjs +3 -2
  104. package/esm2022/lib/interaction/interaction.module.mjs +7 -9
  105. package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +3 -4
  106. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +7 -9
  107. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
  108. package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
  109. package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
  110. package/esm2022/lib/place/guards/place.guard.mjs +6 -5
  111. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
  112. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +3 -6
  113. package/esm2022/lib/place/place-auth-service.mjs +5 -5
  114. package/esm2022/lib/place/place-component.mjs +29 -19
  115. package/esm2022/lib/place/place-definition.mjs +15 -4
  116. package/esm2022/lib/place/place-history.mjs +2 -2
  117. package/esm2022/lib/place/place-router.mjs +22 -20
  118. package/esm2022/lib/place/place.decorator.mjs +2 -2
  119. package/esm2022/lib/place/place.module.mjs +1 -5
  120. package/esm2022/lib/place/route/formatter.mjs +2 -2
  121. package/esm2022/lib/place/route/parameter-decorators.mjs +54 -50
  122. package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
  123. package/esm2022/lib/place/url-snapshot.mjs +3 -3
  124. package/esm2022/lib/place/visit-segment.mjs +2 -2
  125. package/esm2022/lib/place/visit.mjs +2 -2
  126. package/fesm2022/coolon-angular-ui-powerups.mjs +1833 -711
  127. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  128. package/lib/animations/slide-animations.d.ts +1 -0
  129. package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
  130. package/lib/components/commands/button-renderer/button-renderer.component.d.ts +30 -0
  131. package/lib/components/commands/command/command.component.d.ts +8 -8
  132. package/lib/components/commands/command-face/command-face.component.d.ts +2 -0
  133. package/lib/components/commands/command-face.d.ts +8 -9
  134. package/lib/components/commands/group/popup-aware.component.d.ts +9 -4
  135. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -4
  136. package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +2 -4
  137. package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -0
  138. package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +2 -4
  139. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
  140. package/lib/components/commands/separator.component.d.ts +2 -4
  141. package/lib/components/components.module.d.ts +58 -53
  142. package/lib/components/disposable-component.d.ts +16 -3
  143. package/lib/components/exports.d.ts +10 -1
  144. package/lib/components/file/file-download/file-download.component.d.ts +43 -0
  145. package/lib/components/forms/abstract-input.component.d.ts +13 -5
  146. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
  147. package/lib/components/forms/form-field.d.ts +5 -0
  148. package/lib/components/forms/number-input/number-input.component.d.ts +16 -4
  149. package/lib/components/forms/password-input/password-input.component.d.ts +7 -1
  150. package/lib/components/forms/search-input/search-input.component.d.ts +10 -0
  151. package/lib/components/forms/select-input/select-input.component.d.ts +4 -3
  152. package/lib/components/forms/string-input/string-input.component.d.ts +6 -1
  153. package/lib/components/forms/text-input/text-input.component.d.ts +3 -0
  154. package/lib/components/loadable-component.d.ts +17 -0
  155. package/lib/components/resize-aware.component.d.ts +24 -5
  156. package/lib/components/switch-case/switch-case.component.d.ts +2 -3
  157. package/lib/components/tables/abstract-table-model.d.ts +29 -11
  158. package/lib/components/tables/abstract-table.component.d.ts +4 -3
  159. package/lib/components/tables/column/column-manager.d.ts +19 -0
  160. package/lib/components/tables/column/column-model.d.ts +7 -3
  161. package/lib/components/tables/column/column-order-manager.d.ts +20 -0
  162. package/lib/components/tables/column/custom-template-column-model.d.ts +3 -2
  163. package/lib/components/tables/column/custom-value-column-model.d.ts +3 -2
  164. package/lib/components/tables/column/editor-controls-column-model.d.ts +3 -2
  165. package/lib/components/tables/column/list-propery-column-model.d.ts +3 -2
  166. package/lib/components/tables/column/property-column-model.d.ts +3 -2
  167. package/lib/components/tables/column/selection-column-model.d.ts +10 -4
  168. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  169. package/lib/components/tables/editor/edit-session.d.ts +1 -1
  170. package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
  171. package/lib/components/tables/footer/footer-row-model.d.ts +22 -0
  172. package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +6 -0
  173. package/lib/components/tables/renderer/cell-portal-ref.d.ts +20 -12
  174. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +40 -16
  175. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +2 -3
  176. package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +11 -0
  177. package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +5 -2
  178. package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +2 -1
  179. package/lib/components/tables/table/table-model.d.ts +4 -4
  180. package/lib/components/tables/table/table.component.d.ts +14 -10
  181. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  182. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  183. package/lib/components/tables/tree-table/tree-table-component.d.ts +3 -0
  184. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  185. package/lib/directives/command.directive.d.ts +6 -4
  186. package/lib/directives/exports.d.ts +1 -0
  187. package/lib/directives/resize-observer.directive.d.ts +16 -0
  188. package/lib/interaction/activity.d.ts +9 -3
  189. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -0
  190. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +10 -5
  191. package/lib/interaction/components/activity-container/activity-container.component.d.ts +7 -3
  192. package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
  193. package/lib/interaction/components/editors/edit-context.d.ts +1 -1
  194. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +5 -3
  195. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +53 -0
  196. package/lib/interaction/exports.d.ts +2 -0
  197. package/lib/interaction/interaction-context-provider.d.ts +6 -0
  198. package/lib/interaction/interaction-context.d.ts +2 -0
  199. package/lib/interaction/interaction.module.d.ts +28 -28
  200. package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -4
  201. package/lib/place/place-auth-service.d.ts +4 -4
  202. package/lib/place/place-component.d.ts +7 -5
  203. package/lib/place/place-definition.d.ts +2 -0
  204. package/lib/place/place-router.d.ts +6 -2
  205. package/lib/place/place.module.d.ts +4 -5
  206. package/package.json +6 -4
  207. package/esm2022/lib/components/tables/column/column-list-model.mjs +0 -44
  208. package/lib/components/tables/column/column-list-model.d.ts +0 -13
@@ -0,0 +1,53 @@
1
+ import { AfterViewInit } from "@angular/core";
2
+ import { MatTabsConfig } from "@angular/material/tabs";
3
+ import { Constructable } from "@coolon/pectin";
4
+ import { DisposableComponent } from "../../../components/disposable-component";
5
+ import { Activity } from "../../activity";
6
+ import { Alert } from "../../alert";
7
+ import { Confirm } from "../../confirm";
8
+ import { InPlaceInteractionContext } from "../../in-place-interaction-context";
9
+ import { InteractionContext } from "../../interaction-context";
10
+ import { InteractionService } from "../../services/interaction.service";
11
+ import { ActivityContainerComponent } from "../activity-container/activity-container.component";
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * This interaction context remains hidden (height: 0) until it is active.
15
+ * @example
16
+ * <aup-slide-down-interaction-context #inPlaceInteractionContext>
17
+ * </aup-slide-down-interaction-context>
18
+ *
19
+ * in your component
20
+ * @ViewChild(SlideDownInteractionContextComponent)
21
+ * interactionContext: InteractionContext;
22
+ *
23
+ *
24
+ */
25
+ export declare class SlideDownInteractionContextComponent<D, R, E> extends DisposableComponent implements InPlaceInteractionContext, AfterViewInit {
26
+ private readonly tabConfig;
27
+ activityContainerComponent: ActivityContainerComponent<any, any, any>;
28
+ dynamicHeight: boolean;
29
+ get active(): boolean;
30
+ protected clampShut: boolean;
31
+ readonly interactionService: InteractionService;
32
+ constructor(tabConfig: MatTabsConfig);
33
+ ngAfterViewInit(): void;
34
+ getAnimationState(): {
35
+ value: string;
36
+ params: {
37
+ duration: string;
38
+ };
39
+ };
40
+ onInplaceInteractionContextRegistered(id: string, api: InteractionService.Api): void;
41
+ get identifier(): string;
42
+ alert(alert: Alert): Promise<void>;
43
+ cancelActiveActivity(): Promise<boolean>;
44
+ confirm(confirm: Confirm): Promise<boolean>;
45
+ confirmOrReject(confirm: Confirm): Promise<void>;
46
+ confirmThen<D1, R1, E1>(confirm: Confirm, activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1>;
47
+ confirmThenExecute<R1>(confirm: Confirm, operation: (interactionContext: InteractionContext) => (Promise<R1> | R1)): Promise<R1>;
48
+ isActive(): boolean;
49
+ startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
50
+ onAnimationDone(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<SlideDownInteractionContextComponent<any, any, any>, [{ optional: true; }]>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<SlideDownInteractionContextComponent<any, any, any>, "aup-slide-down-interaction-context", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; }, {}, never, never, false, never>;
53
+ }
@@ -7,6 +7,7 @@ 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";
10
11
  export * from "./interaction-context";
11
12
  export * from "./interaction.module";
12
13
  export * from "./route-synchronisation-adapter";
@@ -35,6 +36,7 @@ export * from "./components/input-activities/input-activity";
35
36
  export * from "./components/input-activities/select-input-activity";
36
37
  export * from "./components/input-activities/string-input-activity";
37
38
  export * from "./components/popup-interaction-context/popup-interaction-context.component";
39
+ export * from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
38
40
  export * from "./directives/interaction-context-trigger-for.directive";
39
41
  export * from "./services/interaction-service-routing-adapter";
40
42
  export * from "./services/interaction.service";
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ import { InteractionContext } from "./interaction-context";
3
+ export declare const INTERACTION_CONTEXT_PROVIDER: InjectionToken<InteractionContextProvider>;
4
+ export interface InteractionContextProvider {
5
+ getInteractionContext(): InteractionContext;
6
+ }
@@ -1,7 +1,9 @@
1
+ import { InjectionToken } from "@angular/core";
1
2
  import { Constructable, Disposable } from '@coolon/pectin';
2
3
  import { Activity } from './activity';
3
4
  import { Alert } from './alert';
4
5
  import { Confirm } from './confirm';
6
+ export declare const INTERACTION_CONTEXT: InjectionToken<InteractionContext>;
5
7
  export interface InteractionContext extends Disposable, Disposable.Collector {
6
8
  readonly identifier: string;
7
9
  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/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";
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";
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.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]>;
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]>;
44
44
  static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
45
45
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentPortal } from '@angular/cdk/portal';
2
- import { ChangeDetectorRef, EventEmitter, InjectionToken } from '@angular/core';
2
+ import { EventEmitter, InjectionToken } from '@angular/core';
3
3
  import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
4
4
  import { BooleanValueModelChain, Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
5
5
  import { DisposableComponent } from '../../../components/disposable-component';
@@ -13,7 +13,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
13
13
  private readonly router;
14
14
  private readonly placeRouter;
15
15
  readonly placeConfig: PlaceConfig;
16
- private readonly cdr;
17
16
  accessor animate$: ValueModel<boolean>;
18
17
  accessor animate: boolean;
19
18
  accessor customPlaceAnimationOrder$: ListModel<Constructable<PlaceComponent>>;
@@ -37,7 +36,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
37
36
  readonly animationEnabled: BooleanValueModelChain;
38
37
  readonly authorised: ValueModelChain<boolean>;
39
38
  readonly notAuthorisedNoticePortal: ComponentPortal<any>;
40
- constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent, cdr: ChangeDetectorRef);
39
+ constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent);
41
40
  getAnimationOrder(): number;
42
41
  get animationDuration(): string;
43
42
  get isAuthorised(): boolean;
@@ -53,6 +52,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
53
52
  private notifyComponentVisitSegmentChanged;
54
53
  animationStarted(): void;
55
54
  animationDone(): void;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
57
56
  static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate$": { "alias": "animate$"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "customPlaceAnimationOrder$": { "alias": "placeAnimationOrderModel"; "required": false; }; "customPlaceAnimationOrder": { "alias": "placeAnimationOrder"; "required": false; }; }, { "placeChanged": "placeChanged"; }, never, never, false, never>;
58
57
  }
@@ -19,8 +19,8 @@ export declare class PlaceAuthService extends GarbageCollector {
19
19
  enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
20
20
  waitUntilAuthenticationReady(): Promise<void>;
21
21
  waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
22
- getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
23
- getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
22
+ getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
23
+ getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
24
24
  isAuthenticated(): boolean;
25
25
  isAuthorised(c: PlaceDefinition): boolean;
26
26
  }
@@ -28,12 +28,12 @@ export declare namespace PlaceAuthService {
28
28
  type AuthorisationCheck = (def: PlaceDefinition) => boolean;
29
29
  interface AuthenticationOptions extends ComputedModelMechanics.PostponeOptions {
30
30
  isAuthenticated$: ValueModel<boolean>;
31
- redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent>;
31
+ redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent> | Promise<Visit> | Promise<Constructable<PlaceComponent>>;
32
32
  }
33
33
  interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
34
34
  isAuthorised: AuthorisationCheck;
35
35
  dependsOn$?: HasValue<any>;
36
- redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[];
36
+ redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[] | Promise<(Constructable<PlaceComponent> | Visit)[]>;
37
37
  }
38
38
  interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
39
39
  when$?: ValueModel<boolean>;
@@ -1,7 +1,7 @@
1
1
  import { ActivatedRouteSnapshot } from '@angular/router';
2
- import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
2
+ import { Constructable, ListModel } from '@coolon/pectin';
3
3
  import 'reflect-metadata';
4
- import { DisposableComponent } from '../components/disposable-component';
4
+ import { LoadableComponent } from "../components/loadable-component";
5
5
  import { InteractionContext } from '../interaction/interaction-context';
6
6
  import { PlaceDefinition } from './place-definition';
7
7
  import { PlaceRouter } from "./place-router";
@@ -11,15 +11,17 @@ import { VisitSegment } from './visit-segment';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare const DEFINITION_META_DATA_KEY = "PLACE_DEFINITION_OPTIONS";
13
13
  export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
14
- export declare class PlaceComponent extends DisposableComponent {
14
+ export declare class PlaceComponent extends LoadableComponent {
15
15
  private readonly _placeReadyCallbacks;
16
- private visitModel;
16
+ private visit$;
17
17
  private _inVisitUpdate;
18
18
  private _active;
19
19
  interactionContext?: InteractionContext;
20
20
  readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
21
+ readonly placeId: string;
21
22
  canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
22
23
  protected readonly placeRouter: PlaceRouter;
24
+ private readonly activatedRoute;
23
25
  constructor();
24
26
  initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
25
27
  get childPlaces(): readonly Constructable<PlaceComponent>[];
@@ -32,7 +34,7 @@ export declare class PlaceComponent extends DisposableComponent {
32
34
  */
33
35
  private installAndInitialiseBinding;
34
36
  get placeDefinition(): PlaceDefinition;
35
- get active(): ValueModel<boolean>;
37
+ get active(): import("@coolon/pectin").ValueModel<boolean>;
36
38
  /**
37
39
  * Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
38
40
  * @param interactionContext
@@ -13,9 +13,11 @@ export declare class PlaceDefinition {
13
13
  readonly children: PlaceDefinition[];
14
14
  readonly redirectToFirstChild: boolean;
15
15
  private _parent;
16
+ readonly name: string;
16
17
  constructor(component: Constructable<PlaceComponent>, path: string, authenticate: boolean, role: any, data: Record<string, any>, routeParameters: ParameterDefinition<any>[], children: PlaceDefinition[], redirectToFirstChild: boolean);
17
18
  ancestors(): PlaceDefinition[];
18
19
  ancestorsAndSelf(): PlaceDefinition[];
20
+ get placeId(): string;
19
21
  protected setParent(parent: PlaceDefinition): void;
20
22
  get parent(): PlaceDefinition;
21
23
  isRoot(): boolean;
@@ -27,12 +27,16 @@ export declare class PlaceRouter extends GarbageCollector {
27
27
  private readonly routerInteractionAdapter;
28
28
  private sessionFinishedJobs;
29
29
  readonly authService: PlaceAuthService;
30
+ private readonly _ready$;
31
+ readonly ready$: ValueModel<boolean>;
30
32
  constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
31
- getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
32
- getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
33
+ postponeRoutingUntil(condition$: ValueModel<boolean>): void;
34
+ getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
35
+ getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
33
36
  get navigationSession(): NavigationSession;
34
37
  get currentSession(): NavigationSession;
35
38
  isNavigating(): boolean;
39
+ waitUntilRouterReady(): Promise<this>;
36
40
  waitUntilIdle(): Promise<this>;
37
41
  waitActivitiesSynchronised(): Promise<this>;
38
42
  onPopState(event: NavigationStart): void;
@@ -14,12 +14,11 @@ import * as i12 from "@angular/material/list";
14
14
  import * as i13 from "@angular/material/tooltip";
15
15
  import * as i14 from "@angular/material/icon";
16
16
  import * as i15 from "../directives/directives.module";
17
- import * as i16 from "@angular/flex-layout";
18
- import * as i17 from "../components/components.module";
19
- import * as i18 from "@angular/cdk/portal";
20
- import * as i19 from "@angular/material/card";
17
+ import * as i16 from "../components/components.module";
18
+ import * as i17 from "@angular/cdk/portal";
19
+ import * as i18 from "@angular/material/card";
21
20
  export declare class PlaceModule {
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.FlexModule, typeof i17.ComponentsModule, typeof i18.PortalModule, typeof i19.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.ComponentsModule, typeof i17.PortalModule, typeof i18.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
24
23
  static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
25
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-aplpha.14",
3
+ "version": "16.1.0-aplpha.141",
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.2",
16
- "@typescript-plus/fast-memoize-decorator": "^0.2.1",
15
+ "@coolon/pectin": "^5.0.0-alpha.78",
16
+ "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",
19
19
  "reflect-metadata": "^0.1.13",
@@ -22,7 +22,9 @@
22
22
  "json5": "^2.1.0",
23
23
  "immer": ">=10.0.3",
24
24
  "escape-string-regexp": "^5.0.0",
25
- "@coolon/typescript-utilities": "^5.0.0-alpha.3"
25
+ "@coolon/typescript-utilities": "^5.0.0-alpha.13",
26
+ "fractional-indexing": "^3.2.0",
27
+ "ng-table-virtual-scroll": "^1.6.1"
26
28
  },
27
29
  "optionalDependencies": {
28
30
  "@fortawesome/fontawesome-free": "^6.0.0"
@@ -1,44 +0,0 @@
1
- import { AbstractComputedListModel, Dsl, lang, MutableListModel } from '@coolon/pectin';
2
- import { isNil } from 'lodash';
3
- export class ColumnListModel extends AbstractComputedListModel {
4
- _allColumns$ = new MutableListModel();
5
- columnsById$;
6
- constructor() {
7
- super();
8
- const { chain } = Dsl.disposeWith(this);
9
- this.columnsById$ = chain(this._allColumns$).indexBy('columnId');
10
- }
11
- get allColumns$() {
12
- return this._allColumns$.readonly$;
13
- }
14
- getColumn(id) {
15
- return this.columnsById$.get(id);
16
- }
17
- hasColumn(id) {
18
- return !!this.columnsById$.get(id);
19
- }
20
- hasMatchingColumn(row, regex) {
21
- // only search the visible columns
22
- return !!this.value.find(c => regex.test(c.getSearchTextFor(row)));
23
- }
24
- addColumn(column, index) {
25
- if (this.hasColumn(column.columnId)) {
26
- lang.illegalState(`Column with id=${column.columnId} already exists`);
27
- }
28
- this.registerDisposable(column);
29
- this.runInTransaction(() => {
30
- if (!isNil(index)) {
31
- this._allColumns$.insert(index, column);
32
- }
33
- else {
34
- this._allColumns$.push(column);
35
- }
36
- this.registerDisposable(this.trackSource(column.visible$));
37
- });
38
- return column;
39
- }
40
- doComputeValue() {
41
- return this._allColumns$.value.filter(c => c.visible$.value);
42
- }
43
- }
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLWxpc3QtbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYmxlcy9jb2x1bW4vY29sdW1uLWxpc3QtbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5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mZpbHRlcihjID0+IGMudmlzaWJsZSQudmFsdWUpO1xuICB9XG59XG4iXX0=
@@ -1,13 +0,0 @@
1
- import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
2
- import { ColumnModel } from './column-model';
3
- export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
4
- private readonly _allColumns$;
5
- private readonly columnsById$;
6
- constructor();
7
- get allColumns$(): ListModel<ColumnModel<Row>>;
8
- getColumn(id: string): ColumnModel<Row>;
9
- hasColumn(id: string): boolean;
10
- hasMatchingColumn(row: Row, regex: RegExp): boolean;
11
- addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
12
- doComputeValue(): ColumnModel<Row>[];
13
- }