@coolon/angular-ui-powerups 1.20.0 → 2.0.0-alpha.0

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 (107) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +82 -47
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/components/components.module.js +3 -1
  8. package/esm2015/lib/components/components.module.js.map +1 -1
  9. package/esm2015/lib/components/components.module.metadata.json +1 -1
  10. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  11. package/esm2015/lib/components/forms/abstract-list-input.component.js +3 -3
  12. package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
  13. package/esm2015/lib/components/forms/abstract-value-input.component.js +3 -3
  14. package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
  15. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  16. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  17. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  18. package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
  19. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  20. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  21. package/esm2015/lib/components/forms/select-input/select-input.component.js +3 -3
  22. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  23. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  24. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  25. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
  26. package/esm2015/lib/components/icon/icon.component.js +21 -23
  27. package/esm2015/lib/components/icon/icon.component.js.map +1 -1
  28. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  29. package/esm2015/lib/components/table/cell-editors.js.map +1 -1
  30. package/esm2015/lib/components/table/column-model.js.map +1 -1
  31. package/esm2015/lib/components/table/column-model.metadata.json +1 -1
  32. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  33. package/esm2015/lib/components/table/edit-session.js.map +1 -1
  34. package/esm2015/lib/components/table/edit-session.metadata.json +1 -1
  35. package/esm2015/lib/components/table/table-model.js +24 -4
  36. package/esm2015/lib/components/table/table-model.js.map +1 -1
  37. package/esm2015/lib/components/table/table-model.metadata.json +1 -1
  38. package/esm2015/lib/components/table/table.component.js +1 -1
  39. package/esm2015/lib/components/table/table.component.js.map +1 -1
  40. package/esm2015/lib/components/table/table.component.metadata.json +1 -1
  41. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +10 -1
  42. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -1
  43. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  44. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +2 -2
  45. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
  46. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
  47. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  48. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  49. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  50. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  51. package/esm5/lib/components/components.module.js +3 -1
  52. package/esm5/lib/components/components.module.js.map +1 -1
  53. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  54. package/esm5/lib/components/forms/abstract-list-input.component.js +3 -3
  55. package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
  56. package/esm5/lib/components/forms/abstract-value-input.component.js +3 -3
  57. package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
  58. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  59. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  60. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  61. package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
  62. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  63. package/esm5/lib/components/forms/select-input/select-input.component.js +3 -3
  64. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  65. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  66. package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
  67. package/esm5/lib/components/icon/icon.component.js +30 -27
  68. package/esm5/lib/components/icon/icon.component.js.map +1 -1
  69. package/esm5/lib/components/table/cell-editors.js.map +1 -1
  70. package/esm5/lib/components/table/column-model.js.map +1 -1
  71. package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  72. package/esm5/lib/components/table/edit-session.js.map +1 -1
  73. package/esm5/lib/components/table/table-model.js +26 -4
  74. package/esm5/lib/components/table/table-model.js.map +1 -1
  75. package/esm5/lib/components/table/table.component.js +1 -1
  76. package/esm5/lib/components/table/table.component.js.map +1 -1
  77. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +10 -1
  78. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -1
  79. package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js +2 -2
  80. package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
  81. package/esm5/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
  82. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  83. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  84. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  85. package/fesm2015/coolon-angular-ui-powerups.js +69 -41
  86. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  87. package/fesm5/coolon-angular-ui-powerups.js +80 -45
  88. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  89. package/lib/components/forms/abstract-list-input.component.d.ts +3 -3
  90. package/lib/components/forms/abstract-value-input.component.d.ts +3 -3
  91. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -2
  92. package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +2 -2
  93. package/lib/components/forms/number-input/number-input.component.d.ts +2 -2
  94. package/lib/components/forms/password-input/password-input.component.d.ts +2 -2
  95. package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
  96. package/lib/components/forms/string-input/string-input.component.d.ts +2 -2
  97. package/lib/components/forms/text-input/text-input.component.d.ts +2 -2
  98. package/lib/components/icon/icon.component.d.ts +6 -7
  99. package/lib/components/table/cell-editors.d.ts +3 -3
  100. package/lib/components/table/column-model.d.ts +2 -2
  101. package/lib/components/table/edit-row-controls/edit-row-controls.component.d.ts +2 -2
  102. package/lib/components/table/edit-session.d.ts +4 -4
  103. package/lib/components/table/table-model.d.ts +8 -5
  104. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +9 -0
  105. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +2 -2
  106. package/lib/interaction/components/input-activities/input-activity-data.d.ts +2 -2
  107. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { DelegatingFormListModel } from '@coolon/pectin';
2
+ import { Form } from '@coolon/pectin';
3
3
  import { AbstractInputComponent } from './abstract-input.component';
4
4
  export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
5
5
  /**
6
6
  * A backing model for all our @Input() valueModel properties which should be defined as follows.
7
7
  *
8
8
  * @Input() @TrackExternal({useExisting: "inputModel"})
9
- * valueModel: FormListModel<string> | IMutableListModel<string>;
9
+ * valueModel: Form.ListModelBase<string> | IMutableListModel<string>;
10
10
  *
11
11
  * This approach allows the input to accept plain or form models but all backed by a form
12
12
  * friendly delegate. We have to use an existing delegate for union types as pectin just
13
13
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
14
14
  */
15
- readonly inputModel: DelegatingFormListModel<T>;
15
+ readonly inputModel: Form.DelegatingListModel<T>;
16
16
  }
@@ -1,16 +1,16 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { DelegatingFormValueModel } from '@coolon/pectin';
2
+ import { Form } from '@coolon/pectin';
3
3
  import { AbstractInputComponent } from './abstract-input.component';
4
4
  export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
5
5
  /**
6
6
  * A backing model for all our @Input() valueModel properties which should be defined as follows.
7
7
  *
8
8
  * @Input() @TrackExternal({useExisting: "inputModel"})
9
- * valueModel: FormValueModel<string> | IMutableValueModel<string>;
9
+ * valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
10
10
  *
11
11
  * This approach allows the input to accept plain or form models but all backed by a form
12
12
  * friendly delegate. We have to use an existing delegate for union types as pectin just
13
13
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
14
14
  */
15
- readonly inputModel: DelegatingFormValueModel<T>;
15
+ readonly inputModel: Form.DelegatingValueModel<T>;
16
16
  }
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormValueModel, IMutableValueModel } from '@coolon/pectin';
2
+ import { Form, IMutableValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class CheckboxInputComponent extends AbstractValueInputComponent<boolean> implements OnInit {
5
- valueModel: FormValueModel<boolean> | IMutableValueModel<boolean>;
5
+ valueModel: Form.ValueModelBase<boolean> | IMutableValueModel<boolean>;
6
6
  color: 'primary' | 'warn' | 'accent';
7
7
  labelPosition: 'before' | 'after';
8
8
  constructor();
@@ -1,8 +1,8 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
- import { FormListModel, IMutableListModel, ListModel } from '@coolon/pectin';
2
+ import { Form, IMutableListModel, ListModel } from '@coolon/pectin';
3
3
  import { AbstractListInputComponent } from '../abstract-list-input.component';
4
4
  export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
5
- listModel: FormListModel<T> | IMutableListModel<T>;
5
+ listModel: Form.ListModelBase<T> | IMutableListModel<T>;
6
6
  optionsModel: ListModel<T>;
7
7
  options: T[];
8
8
  optionLabel: keyof T;
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormValueModel, IMutableValueModel } from '@coolon/pectin';
2
+ import { Form, IMutableValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class NumberInputComponent extends AbstractValueInputComponent<number> implements OnInit {
5
- valueModel: FormValueModel<number> | IMutableValueModel<number>;
5
+ valueModel: Form.ValueModelBase<number> | IMutableValueModel<number>;
6
6
  min: number;
7
7
  max: number;
8
8
  constructor();
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormValueModel, IMutableValueModel } from '@coolon/pectin';
2
+ import { Form, IMutableValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class PasswordInputComponent extends AbstractValueInputComponent<string> implements OnInit {
5
- valueModel: FormValueModel<string> | IMutableValueModel<string>;
5
+ valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
6
6
  constructor();
7
7
  ngOnInit(): void;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
- import { FormValueModel, IMutableValueModel, ListModel } from '@coolon/pectin';
2
+ import { IMutableValueModel, ListModel, Form } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
5
- valueModel: FormValueModel<T> | IMutableValueModel<T>;
5
+ valueModel: Form.ValueModelBase<T> | IMutableValueModel<T>;
6
6
  optionsModel: ListModel<T>;
7
7
  options: T[];
8
8
  optionLabel: keyof T;
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { Command, FormValueModel, IMutableValueModel, ValueModel } from '@coolon/pectin';
2
+ import { Command, Form, IMutableValueModel, ValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class StringInputComponent extends AbstractValueInputComponent<string> implements OnInit {
5
- valueModel: FormValueModel<string> | IMutableValueModel<string>;
5
+ valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
6
6
  enableClearModel: ValueModel<boolean>;
7
7
  enableClear: boolean;
8
8
  readonly clearCommand: Command<void>;
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormValueModel, IMutableValueModel } from '@coolon/pectin';
2
+ import { Form, IMutableValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  export declare class TextInputComponent extends AbstractValueInputComponent<string> implements OnInit {
5
- valueModel: FormValueModel<string> | IMutableValueModel<string>;
5
+ valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
6
6
  rows: number;
7
7
  cols: number;
8
8
  constructor();
@@ -1,9 +1,8 @@
1
- import { IconName } from '@fortawesome/fontawesome-common-types';
2
1
  export declare class IconComponent {
3
- icon: string;
4
- constructor();
5
- ligature(): string;
6
- svgIcon(): string;
7
- isFontAwesome(): boolean;
8
- fontAwesomeIcon(): IconName;
2
+ _icon: string;
3
+ prefix: string;
4
+ suffix: string;
5
+ errorMessage: string;
6
+ set icon(iconName: string);
7
+ get icon(): string;
9
8
  }
@@ -1,9 +1,9 @@
1
- import { FormListModel, FormValueModel, ListModel, ValueModel } from '@coolon/pectin';
1
+ import { Form, ListModel, ValueModel } from '@coolon/pectin';
2
2
  export interface CellEditorComponent<T> {
3
- valueModel: ValueModel<T> | FormValueModel<T>;
3
+ valueModel: ValueModel<T> | Form.ValueModelBase<T>;
4
4
  requestFocus?(): any;
5
5
  }
6
6
  export interface CellListEditorComponent<T> {
7
- listModel: ListModel<T> | FormListModel<T>;
7
+ listModel: ListModel<T> | Form.ListModelBase<T>;
8
8
  requestFocus?(): any;
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from '@angular/cdk/overlay';
2
2
  import { TemplateRef, ViewContainerRef } from '@angular/core';
3
- import { Command, Form, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';
3
+ import { Command, DirtyTrackingForm, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';
4
4
  import { CellEditorComponent, CellListEditorComponent } from './cell-editors';
5
5
  import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-protal-ref';
6
6
  import { ColumnTextProperties } from './column-text-properties';
@@ -83,7 +83,7 @@ export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
83
83
  selectRowOnClick(selectOnRowClick: boolean): this;
84
84
  }
85
85
  export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
86
- constructor(columnId: string, saveCommand: UnaryCommand<Form<Row>, boolean>, defaults: ColumnModel.Defaults);
86
+ constructor(columnId: string, saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>, defaults: ColumnModel.Defaults);
87
87
  cellRenderer(componentType: ComponentType<{
88
88
  row: Row;
89
89
  editSession: EditSession<Row>;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { Command, Form } from '@coolon/pectin';
2
+ import { Command, DirtyTrackingForm } from '@coolon/pectin';
3
3
  import { DisposableComponent } from '../../disposable-component';
4
4
  import { EditSession } from '../edit-session';
5
5
  export declare class EditRowControls<Row> extends DisposableComponent implements OnInit {
@@ -10,5 +10,5 @@ export declare class EditRowControls<Row> extends DisposableComponent implements
10
10
  readonly cancelCommand: Command<void>;
11
11
  constructor();
12
12
  ngOnInit(): void;
13
- get form(): Form<Row>;
13
+ get form(): DirtyTrackingForm<Row>;
14
14
  }
@@ -1,9 +1,9 @@
1
- import { Form, GarbageCollector, UnaryCommand } from '@coolon/pectin';
1
+ import { DirtyTrackingForm, GarbageCollector, UnaryCommand } from '@coolon/pectin';
2
2
  export declare class EditSession<Row> extends GarbageCollector {
3
3
  readonly rowId: any;
4
- readonly form: Form<Row>;
5
- readonly saveCommand: UnaryCommand<Form<Row>, boolean>;
4
+ readonly form: DirtyTrackingForm<Row>;
5
+ readonly saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>;
6
6
  private _liveRowValue;
7
7
  readonly liveRowValue: import("@coolon/pectin").ValueModel<Row>;
8
- constructor(rowId: any, row: Row, form: Form<Row>, saveCommand: UnaryCommand<Form<Row>, boolean>);
8
+ constructor(rowId: any, row: Row, form: DirtyTrackingForm<Row>, saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>);
9
9
  }
@@ -1,4 +1,4 @@
1
- import { BooleanValueModelChain, CanIdentify, Form, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
1
+ import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
2
2
  import { ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
3
3
  import { ColumnTextProperties } from './column-text-properties';
4
4
  import { EditSession } from './edit-session';
@@ -22,7 +22,7 @@ import { EditSession } from './edit-session';
22
22
  * }
23
23
  * const colorsNames: ListModel<string> = ...;
24
24
  * const model = TableModel.fromList(heroList, table => {
25
- * table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel: FormValueModel<string> | ValueModel<string>; }
25
+ * table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
26
26
  * table.pluck("lastName").cellEditor(StringInputComponent, {
27
27
  * validators: [Validator.present("We need a last name")]
28
28
  * });
@@ -51,7 +51,7 @@ import { EditSession } from './edit-session';
51
51
  * // configure your component with what ever you need.
52
52
  * });
53
53
  * .cellRenderer(CellRendererComponent) // <-- interface CellEditor { value: string; }
54
- * .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel: FormValueModel<string> | ValueModel<string>; }
54
+ * .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
55
55
  * table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
56
56
  * });
57
57
  *
@@ -79,6 +79,7 @@ export declare class TableModel<Row> {
79
79
  private _columnsById;
80
80
  private _editorSessions;
81
81
  private readonly _rowsBeingEdited;
82
+ private readonly rowClassNamePredicates;
82
83
  private _columnTextPropertiesLookup;
83
84
  readonly identityOf: CanIdentify<Row>['identityOf'];
84
85
  private saveCommand;
@@ -97,10 +98,12 @@ export declare class TableModel<Row> {
97
98
  pluck<P extends Types.ValuePropertiesOf<Row>>(property: P): PropertyColumnModel<Row, P>;
98
99
  pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P): ListPropertyColumnModel<Row, P>;
99
100
  addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
100
- addEditControls(saveCommand: UnaryCommand<Form<Row>, boolean>): EditorControlColumnModel<Row>;
101
+ addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
101
102
  addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
102
103
  addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
103
- useFormFactory(factory: (row: Row) => Form<Row>): this;
104
+ addRowClass(className: string, predicate: (row: Row) => boolean): void;
105
+ getRowClasses(row: Row): string[];
106
+ useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this;
104
107
  protected addColumn<C extends ColumnModel<Row>>(column: C): C;
105
108
  columnTextProperties(columnTextProperties: {
106
109
  [columnName: string]: () => ColumnTextProperties;
@@ -3,6 +3,15 @@ import { Command, Constructable } from '@coolon/pectin';
3
3
  import { DisposableComponent } from '../../../components/disposable-component';
4
4
  import { Activity } from '../../activity';
5
5
  import { InPlaceInteractionContextComponent } from '../inplace-interaction-context/in-place-interaction-context.component';
6
+ /**
7
+ * Css Vars.
8
+ * --link-color
9
+ * --link-color-hover
10
+ * --link-background
11
+ * --link-background-hover
12
+ * --link-border-radius
13
+ * --link-padding
14
+ */
6
15
  export declare class AddItemInteractionContextComponent extends DisposableComponent implements OnInit {
7
16
  label: string;
8
17
  icon: string;
@@ -1,11 +1,11 @@
1
- import { Command, FormValueModel } from '@coolon/pectin';
1
+ import { Command, Form } from '@coolon/pectin';
2
2
  import { Activity } from '../../activity';
3
3
  import { InputActivityData } from './input-activity-data';
4
4
  export declare class AbstractInputActivity<T, D extends InputActivityData<T> = InputActivityData<T>> extends Activity<D, T> {
5
5
  readonly data: D;
6
6
  readonly confirmCommand: Command<void>;
7
7
  readonly cancelCommand: Command<void>;
8
- readonly valueModel: FormValueModel<T>;
8
+ readonly valueModel: Form.ValueModelBase<T>;
9
9
  class: string;
10
10
  constructor(data: D);
11
11
  onActivityReady(): void;
@@ -1,9 +1,9 @@
1
- import { FormValueModel, Validator } from '@coolon/pectin';
1
+ import { Form, Validator } from '@coolon/pectin';
2
2
  import { InteractionContext } from '../../interaction-context';
3
3
  export interface InputActivityData<T> {
4
4
  label?: string;
5
5
  placeholder?: string;
6
6
  initialValue: T;
7
7
  validators?: Validator<T>[];
8
- save?(valueModel: FormValueModel<T>, interactionContext?: InteractionContext): void | Promise<unknown>;
8
+ save?(valueModel: Form.ValueModelBase<T>, interactionContext?: InteractionContext): void | Promise<unknown>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "1.20.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.0.0",