@coolon/angular-ui-powerups 3.17.0 → 3.17.2

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 (25) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/table.scss +3 -5
  3. package/bundles/coolon-angular-ui-powerups.umd.js +45 -9
  4. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  6. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  9. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  10. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  11. package/esm2015/lib/components/table/abstract-table-model.js +21 -1
  12. package/esm2015/lib/components/table/abstract-table-model.js.map +1 -1
  13. package/esm2015/lib/components/table/abstract-table-model.metadata.json +1 -1
  14. package/esm2015/lib/components/table/table.component.js +7 -1
  15. package/esm2015/lib/components/table/table.component.js.map +1 -1
  16. package/esm2015/lib/components/table/table.component.metadata.json +1 -1
  17. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +10 -7
  18. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  19. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  20. package/fesm2015/coolon-angular-ui-powerups.js +39 -10
  21. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  22. package/lib/components/table/abstract-table-model.d.ts +5 -1
  23. package/lib/components/table/table.component.d.ts +2 -0
  24. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -6
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ComponentType } from '@angular/cdk/overlay';
2
- import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
2
+ import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModel, ValueModelChain } from '@coolon/pectin';
3
3
  import { CellRenderer } from './cell-renderer';
4
4
  import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
5
5
  import { ColumnTextProperties } from './column-text-properties';
@@ -7,6 +7,7 @@ import { EditSession } from './edit-session';
7
7
  export declare class AbstractTableModel<Row> extends GarbageCollector {
8
8
  private sourceOfTruth;
9
9
  private readonly _columns;
10
+ private readonly _visibleColumnTracker;
10
11
  private _columnsById;
11
12
  private _editorSessions;
12
13
  private readonly _rowsBeingEdited;
@@ -21,11 +22,14 @@ export declare class AbstractTableModel<Row> extends GarbageCollector {
21
22
  private selectionColumnModel;
22
23
  private hasColumnsWithRowSelectionExplicitlyEnabled;
23
24
  private readonly rowClickListeners;
25
+ readonly firstVisibleColumn: ValueModel<ColumnModel<Row>>;
26
+ readonly lastVisibleColumn: ValueModel<ColumnModel<Row>>;
24
27
  private _createForm;
25
28
  protected constructor(sourceOfTruth: ListModel<Row>);
26
29
  get rowsBeingEdited(): ListModel<Row>;
27
30
  readonly trackBy: (index: number, item: Row) => any;
28
31
  get columns(): ListModel<ColumnModel<Row>>;
32
+ get visibleColumns(): ListModel<ColumnModel<Row>>;
29
33
  pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
30
34
  columnId: string;
31
35
  }): PropertyColumnModel<Row, P>;
@@ -67,4 +67,6 @@ export declare class TableComponent<Row> extends ResizeAwareComponent implements
67
67
  isEditing(row: Row): boolean;
68
68
  registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
69
69
  notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
70
+ isFirstVisibleColumn(column: ColumnModel<Row>): boolean;
71
+ isLastVisibleColumn(column: ColumnModel<Row>): boolean;
70
72
  }
@@ -4,19 +4,22 @@ import { CommandFace } from '../../../components/commands/command-face';
4
4
  import { DisposableComponent } from '../../../components/disposable-component';
5
5
  /**
6
6
  * @example
7
- * <aup-activity-actions [style]="{confirm: saveFace, cancel: cancelFace}">
7
+ * <aup-activity-actions [confirmFace]="saveFace" [cancelFace]="cancelFace">
8
8
  * </aup-activity-actions>
9
9
  *
10
+ * <aup-activity-actions [faces]="{confirm: saveFace, cancel: cancelFace}">
11
+ * </aup-activity-actions>
12
+ *
10
13
  * // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
11
14
  * // style definitions
12
- * <aup-activity-actions [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
15
+ * <aup-activity-actions [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
13
16
  * </aup-activity-actions>
14
17
  *
15
18
  * // you can also add additional content that will be displayed along with the buttons.
16
19
  * // The location of the content depends on the alignment attribute.
17
20
  * <aup-activity-actions
18
21
  * align="stretch"
19
- * [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
22
+ * [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
20
23
  * <span>This content will be between the two commands</span>
21
24
  * </aup-activity-actions>
22
25
  */
@@ -34,7 +37,7 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
34
37
  confirmFace: CommandFace;
35
38
  cancelFace: CommandFace;
36
39
  /**
37
- * @deprecated use #commandFaces instead.
40
+ * @deprecated use #faces instead.
38
41
  */
39
42
  set style(style: ActivityActionsComponent.Style);
40
43
  align: 'start' | 'end' | 'stretch';
@@ -42,8 +45,8 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
42
45
  get alignStretch(): boolean;
43
46
  constructor(cdr: ChangeDetectorRef);
44
47
  ngOnInit(): void;
45
- hasConfirmFace(): CommandFace;
46
- hasCancelFace(): CommandFace;
48
+ hasConfirmFace(): boolean;
49
+ hasCancelFace(): boolean;
47
50
  initCommands(activity: {
48
51
  confirmCommand: Command<unknown>;
49
52
  cancelCommand: Command<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "3.17.0",
3
+ "version": "3.17.2",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",