@alfresco/adf-core 6.9.0-8618936978 → 6.9.0-8619683521

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.
@@ -33,10 +33,6 @@ import { MatIconRegistry } from '@angular/material/icon';
33
33
  import { DomSanitizer } from '@angular/platform-browser';
34
34
  import { ResizeEvent } from '../../directives/resizable/types';
35
35
  import * as i0 from "@angular/core";
36
- export declare enum DisplayMode {
37
- List = "list",
38
- Gallery = "gallery"
39
- }
40
36
  export declare enum ShowHeaderMode {
41
37
  Never = "never",
42
38
  Always = "always",
@@ -51,8 +47,6 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
51
47
  columnList: DataColumnListComponent;
52
48
  /** Data source for the table */
53
49
  data: DataTableAdapter;
54
- /** Selects the display mode of the table. Can be "list" or "gallery". */
55
- display: string;
56
50
  /** The rows that the datatable will show. */
57
51
  rows: any[];
58
52
  /**
@@ -152,8 +146,6 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
152
146
  isDraggingHeaderColumn: boolean;
153
147
  hoveredHeaderColumnIndex: number;
154
148
  resizingColumnIndex: number;
155
- /** This array of fake rows fix the flex layout for the gallery view */
156
- fakeRows: any[];
157
149
  private keyManager;
158
150
  private clickObserver;
159
151
  private click$;
@@ -188,7 +180,6 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
188
180
  getSchemaFromHtml(): any;
189
181
  onRowClick(row: DataRow, mouseEvent: MouseEvent): void;
190
182
  onEnterKeyPressed(row: DataRow, e: KeyboardEvent): void;
191
- private isHeaderListVisible;
192
183
  private handleRowSelection;
193
184
  resetSelection(): void;
194
185
  onRowDblClick(row: DataRow, event?: Event): void;
@@ -203,7 +194,6 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
203
194
  onImageLoadingError(event: Event, row: DataRow): void;
204
195
  isIconValue(row: DataRow, col: DataColumn): boolean;
205
196
  asIconValue(row: DataRow, col: DataColumn): string;
206
- iconAltTextKey(value: string): string;
207
197
  isColumnSorted(col: DataColumn, direction: string): boolean;
208
198
  getContextMenuActions(row: DataRow, col: DataColumn): any[];
209
199
  getRowActions(row: DataRow, col?: DataColumn): any[];
@@ -213,13 +203,11 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
213
203
  'adf-datatable-hide-actions-without-hover': boolean;
214
204
  };
215
205
  rowAllowsDrop(row: DataRow): boolean;
216
- hasSelectionMode(): boolean;
217
206
  isSingleSelectionMode(): boolean;
218
207
  isMultiSelectionMode(): boolean;
219
208
  getRowStyle(row: DataRow): string;
220
209
  markRowAsContextMenuSource(selectedRow: DataRow): void;
221
210
  private setRowAsContextSource;
222
- getSortingKey(): string | null;
223
211
  selectRow(row: DataRow, value: boolean): void;
224
212
  findSelectionById(id: string): number;
225
213
  getCellTooltip(row: DataRow, col: DataColumn): string;
@@ -230,7 +218,6 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
230
218
  private emitRowSelectionEvent;
231
219
  private emitSortingChangedEvent;
232
220
  ngOnDestroy(): void;
233
- private datatableLayoutFix;
234
221
  getNameColumnValue(): DataColumn<unknown>;
235
222
  getAutomationValue(row: DataRow): any;
236
223
  getAriaSort(column: DataColumn): string;
@@ -244,7 +231,7 @@ export declare class DataTableComponent implements OnInit, AfterContentInit, OnC
244
231
  private isSortingEqual;
245
232
  get isResizing(): boolean;
246
233
  static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
247
- static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "adf-datatable", never, { "data": "data"; "display": "display"; "rows": "rows"; "sorting": "sorting"; "columns": "columns"; "selectionMode": "selectionMode"; "multiselect": "multiselect"; "mainTableAction": "mainTableAction"; "actions": "actions"; "showMainDatatableActions": "showMainDatatableActions"; "actionsPosition": "actionsPosition"; "actionsVisibleOnHover": "actionsVisibleOnHover"; "fallbackThumbnail": "fallbackThumbnail"; "contextMenu": "contextMenu"; "rowStyle": "rowStyle"; "rowStyleClass": "rowStyleClass"; "showHeader": "showHeader"; "stickyHeader": "stickyHeader"; "loading": "loading"; "noPermission": "noPermission"; "rowMenuCacheEnabled": "rowMenuCacheEnabled"; "resolverFn": "resolverFn"; "allowFiltering": "allowFiltering"; "isResizingEnabled": "isResizingEnabled"; "blurOnResize": "blurOnResize"; }, { "rowClick": "rowClick"; "rowDblClick": "rowDblClick"; "showRowContextMenu": "showRowContextMenu"; "showRowActionsMenu": "showRowActionsMenu"; "executeRowAction": "executeRowAction"; "columnOrderChanged": "columnOrderChanged"; "columnsWidthChanged": "columnsWidthChanged"; }, ["columnList"], ["adf-empty-list"], false>;
234
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "adf-datatable", never, { "data": "data"; "rows": "rows"; "sorting": "sorting"; "columns": "columns"; "selectionMode": "selectionMode"; "multiselect": "multiselect"; "mainTableAction": "mainTableAction"; "actions": "actions"; "showMainDatatableActions": "showMainDatatableActions"; "actionsPosition": "actionsPosition"; "actionsVisibleOnHover": "actionsVisibleOnHover"; "fallbackThumbnail": "fallbackThumbnail"; "contextMenu": "contextMenu"; "rowStyle": "rowStyle"; "rowStyleClass": "rowStyleClass"; "showHeader": "showHeader"; "stickyHeader": "stickyHeader"; "loading": "loading"; "noPermission": "noPermission"; "rowMenuCacheEnabled": "rowMenuCacheEnabled"; "resolverFn": "resolverFn"; "allowFiltering": "allowFiltering"; "isResizingEnabled": "isResizingEnabled"; "blurOnResize": "blurOnResize"; }, { "rowClick": "rowClick"; "rowDblClick": "rowDblClick"; "showRowContextMenu": "showRowContextMenu"; "showRowActionsMenu": "showRowActionsMenu"; "executeRowAction": "executeRowAction"; "columnOrderChanged": "columnOrderChanged"; "columnsWidthChanged": "columnsWidthChanged"; }, ["columnList"], ["adf-empty-list"], false>;
248
235
  }
249
236
  export interface DataTableDropEvent {
250
237
  detail: {
@@ -51,143 +51,6 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
51
51
  }
52
52
  }
53
53
 
54
- .adf-datatable-card {
55
- border: 1px solid var(--adf-theme-foreground-divider-color);
56
-
57
- .adf-datatable-body {
58
- flex-flow: row wrap;
59
- display: flex;
60
- width: 100%;
61
- justify-content: space-evenly;
62
- align-content: flex-start;
63
- align-items: flex-start;
64
-
65
- .adf-datatable-row {
66
- transition: all 0.3s ease;
67
- position: relative;
68
- display: flex;
69
- flex-direction: column;
70
- flex: 0 1 24%;
71
- width: 288px;
72
- max-width: 288px;
73
- min-width: 288px;
74
- height: 200px;
75
- overflow: hidden;
76
- margin: 6px;
77
- padding: 15px;
78
-
79
- @include mat.elevation-transition;
80
- @include mat.overridable-elevation(2);
81
- }
82
-
83
- .adf-datatable-row.adf-datatable-row-empty-card {
84
- height: 0;
85
- padding-top: 0;
86
- padding-bottom: 0;
87
- margin-top: 0;
88
- margin-bottom: 0;
89
- }
90
-
91
- .adf-is-selected {
92
- background: var(--adf-theme-primary-100);
93
- padding-bottom: 31px;
94
- }
95
-
96
- .adf-datatable-card-loading {
97
- width: 100%;
98
- min-height: 250px;
99
-
100
- .adf-datatable-cell {
101
- height: 240px;
102
- }
103
- }
104
-
105
- .adf-datatable-card-empty {
106
- width: 100%;
107
- min-height: 380px;
108
-
109
- .adf-datatable-cell {
110
- height: 370px;
111
- }
112
- }
113
-
114
- .adf-datatable-cell--image {
115
- margin-left: 8px;
116
- }
117
-
118
- .adf-datatable-cell {
119
- text-align: left;
120
- flex: 0 1 24%;
121
- height: 136px;
122
- white-space: normal;
123
- text-overflow: ellipsis;
124
- overflow: hidden;
125
- outline: none;
126
-
127
- &::before {
128
- margin-left: 10px;
129
- text-align: left;
130
- content: attr(title);
131
- color: var(--adf-theme-foreground-text-color-054);
132
- float: left;
133
- width: 140px;
134
- white-space: nowrap;
135
- text-overflow: ellipsis;
136
- overflow: hidden;
137
- }
138
-
139
- .adf-datatable-cell-value {
140
- display: block;
141
- overflow: hidden;
142
- text-overflow: ellipsis;
143
- }
144
- }
145
-
146
- .adf-datatable__actions-cell.adf-datatable-actions-menu {
147
- position: absolute;
148
- height: 42px;
149
- width: 42px;
150
- right: 0;
151
- top: 4px;
152
- }
153
-
154
- .adf-datatable-row:not(:hover) .adf-datatable-hide-actions-without-hover {
155
- display: none;
156
- }
157
-
158
- .adf-image-table-cell {
159
- margin: 8px;
160
- padding: 4px;
161
- overflow: visible;
162
- border-bottom: 1px solid var(--adf-theme-foreground-divider-color);
163
-
164
- .adf-datatable-cell-container {
165
- float: left;
166
- width: 42px;
167
- }
168
-
169
- &::after {
170
- margin: 2px;
171
- content: attr(filename);
172
- float: left;
173
- width: 140px;
174
- white-space: nowrap;
175
- text-overflow: ellipsis;
176
- overflow: hidden;
177
- }
178
- }
179
-
180
- .adf-datatable-checkbox {
181
- margin: 8px;
182
- }
183
- }
184
-
185
- .adf-datatable-header {
186
- margin-right: 18px;
187
- float: right;
188
- }
189
- }
190
-
191
54
  .adf-datatable-list {
192
55
  display: flex;
193
56
  flex-direction: column;
@@ -673,7 +536,6 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
673
536
  .adf-drop-header-cell-placeholder {
674
537
  display: flex;
675
538
  flex: 1;
676
- flex-grow: 1;
677
539
  background: var(--adf-theme-background-hover-color);
678
540
  border: dotted 1px rgba(0, 0, 0, 0.25);
679
541
  min-height: 55px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "6.9.0-8618936978",
4
+ "version": "6.9.0-8619683521",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -74,8 +74,8 @@
74
74
  "@angular/material": ">=14.1.2",
75
75
  "@angular/router": ">=14.1.3",
76
76
  "@mat-datetimepicker/core": "^10.1.1",
77
- "@alfresco/js-api": ">=7.8.0-8618936978",
78
- "@alfresco/adf-extensions": ">=6.9.0-8618936978",
77
+ "@alfresco/js-api": ">=7.8.0-8619683521",
78
+ "@alfresco/adf-extensions": ">=6.9.0-8619683521",
79
79
  "@ngx-translate/core": ">=14.0.0",
80
80
  "minimatch-browser": ">=1.0.0",
81
81
  "pdfjs-dist": ">=3.3.122"