@fundamental-ngx/platform 0.43.17 → 0.43.19
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.
- package/esm2020/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
- package/esm2020/form/combobox/combobox/combobox.component.mjs +3 -3
- package/esm2020/form/combobox/commons/base-combobox.mjs +22 -6
- package/esm2020/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +8 -7
- package/esm2020/form/multi-combobox/multi-combobox.module.mjs +3 -2
- package/esm2020/form/multi-input/multi-input.component.mjs +9 -8
- package/esm2020/form/multi-input/multi-input.module.mjs +3 -2
- package/esm2020/form/select/commons/base-select.mjs +16 -7
- package/esm2020/form/select/select/select.component.mjs +3 -3
- package/esm2020/list/action-list-item/action-list-item.component.mjs +7 -4
- package/esm2020/list/base-list-item.mjs +117 -75
- package/esm2020/list/display-list-item/display-list-item.component.mjs +5 -3
- package/esm2020/list/free-content-list-item/free-content-list-item.component.mjs +6 -3
- package/esm2020/list/list-group-footer.component.mjs +12 -3
- package/esm2020/list/list-group-header.component.mjs +30 -5
- package/esm2020/list/list.component.mjs +85 -61
- package/esm2020/list/object-list-item/object-list-item.component.mjs +5 -3
- package/esm2020/list/standard-list-item/standard-list-item.component.mjs +5 -3
- package/esm2020/message-popover/components/message-view/message-view.component.mjs +2 -2
- package/esm2020/search-field/search-field.component.mjs +2 -2
- package/esm2020/settings-generator/controls/theme-selector-list/theme-selector-list.component.mjs +2 -2
- package/esm2020/settings-generator/layouts/settings-generator-sidebar-layout/settings-generator-sidebar-layout.component.mjs +1 -1
- package/esm2020/shared/domain/data-source.mjs +2 -1
- package/esm2020/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +1 -1
- package/esm2020/table/components/table-p13-dialog/columns/columns.component.mjs +3 -3
- package/esm2020/table/components/table-p13-dialog/filtering/filter-rule.component.mjs +1 -1
- package/esm2020/table/components/table-p13-dialog/grouping/grouping.component.mjs +1 -1
- package/esm2020/table/components/table-p13-dialog/sorting/sorting.component.mjs +2 -2
- package/esm2020/table/components/table-row/table-row.component.mjs +13 -21
- package/esm2020/table/components/table-view-settings-dialog/filtering/filter-multi-select.component.mjs +1 -1
- package/esm2020/table/components/table-view-settings-dialog/filtering/filter-single-select.component.mjs +1 -1
- package/esm2020/table/components/table-view-settings-dialog/filtering/filters-list-step.component.mjs +1 -1
- package/esm2020/table/components/table-view-settings-dialog/grouping/grouping.component.mjs +1 -1
- package/esm2020/table/components/table-view-settings-dialog/sorting/sorting.component.mjs +1 -1
- package/esm2020/table/table.component.mjs +27 -5
- package/esm2020/table-helpers/helpers.mjs +6 -3
- package/esm2020/upload-collection/dialogs/move-to/move-to.component.mjs +1 -1
- package/esm2020/upload-collection/upload-collection/upload-collection.component.mjs +1 -1
- package/esm2020/value-help-dialog/components/define-tab/define-tab.component.mjs +1 -1
- package/esm2020/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +1 -1
- package/esm2020/variant-management/variant-management.component.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-form.mjs +40 -14
- package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-list.mjs +260 -150
- package/fesm2015/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-message-popover.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-message-popover.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-search-field.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-search-field.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-settings-generator.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-shared.mjs +1 -0
- package/fesm2015/fundamental-ngx-platform-shared.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +5 -2
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +48 -34
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-upload-collection.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-variant-management.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-form.mjs +41 -14
- package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-list.mjs +259 -150
- package/fesm2020/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-message-popover.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-message-popover.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-search-field.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-search-field.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-settings-generator.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-shared.mjs +1 -0
- package/fesm2020/fundamental-ngx-platform-shared.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +5 -2
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +48 -34
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-upload-collection.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-variant-management.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/form/combobox/commons/base-combobox.d.ts +10 -3
- package/form/multi-combobox/multi-combobox.module.d.ts +2 -1
- package/form/multi-input/multi-input.module.d.ts +2 -1
- package/form/select/commons/base-select.d.ts +14 -7
- package/fundamental-ngx-platform-v0.43.19.tgz +0 -0
- package/list/base-list-item.d.ts +52 -29
- package/list/list-group-footer.component.d.ts +3 -0
- package/list/list-group-header.component.d.ts +3 -1
- package/list/list.component.d.ts +15 -13
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/shared/domain/data-source.d.ts +3 -1
- package/table/components/table-row/table-row.component.d.ts +2 -2
- package/table/table.component.d.ts +8 -2
- package/table-helpers/helpers.d.ts +1 -1
- package/fundamental-ngx-platform-v0.43.17.tgz +0 -0
package/list/base-list-item.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ColorAccent, Size } from '@fundamental-ngx/cdk/utils';
|
|
3
|
-
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
2
|
+
import { ColorAccent, Nullable, Size } from '@fundamental-ngx/cdk/utils';
|
|
4
3
|
import { CheckboxComponent } from '@fundamental-ngx/core/checkbox';
|
|
4
|
+
import { IconComponent } from '@fundamental-ngx/core/icon';
|
|
5
|
+
import { ListUnreadIndicator } from '@fundamental-ngx/core/list';
|
|
5
6
|
import { RadioButtonComponent } from '@fundamental-ngx/core/radio';
|
|
6
7
|
import { BaseComponent } from '@fundamental-ngx/platform/shared';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
7
9
|
import { ListConfig } from './list.config';
|
|
8
|
-
import { IconComponent } from '@fundamental-ngx/core/icon';
|
|
9
10
|
import { ListType, SelectionType } from './models/list';
|
|
10
|
-
import { ListUnreadIndicator } from '@fundamental-ngx/core/list';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare const IS_ACTIVE_CLASS = "is-active";
|
|
13
13
|
export type StatusType = 'negative' | 'critical' | 'positive' | 'informative';
|
|
@@ -79,6 +79,12 @@ export interface ListAdvancedDescription {
|
|
|
79
79
|
title?: string;
|
|
80
80
|
}
|
|
81
81
|
export type ListDescription = string | ListAdvancedDescription;
|
|
82
|
+
export declare enum LIST_ITEM_TYPE {
|
|
83
|
+
ITEM = "item",
|
|
84
|
+
GROUP = "group",
|
|
85
|
+
FOOTER = "footer",
|
|
86
|
+
HEADER = "header"
|
|
87
|
+
}
|
|
82
88
|
export declare class ModifyItemEvent {
|
|
83
89
|
/** List Item component */
|
|
84
90
|
source: BaseListItem;
|
|
@@ -97,7 +103,6 @@ export declare class ListItemDef implements ItemDef {
|
|
|
97
103
|
* this can be extended to reduce the code duplication across list Item components.
|
|
98
104
|
*/
|
|
99
105
|
export declare class BaseListItem extends BaseComponent implements OnInit, AfterViewInit, AfterViewChecked, OnDestroy {
|
|
100
|
-
protected _changeDetectorRef: ChangeDetectorRef;
|
|
101
106
|
itemEl: ElementRef<HTMLElement>;
|
|
102
107
|
protected _listConfig: ListConfig;
|
|
103
108
|
private readonly _list;
|
|
@@ -106,7 +111,7 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
106
111
|
/** define level of item for screen reader */
|
|
107
112
|
ariaLevel: number;
|
|
108
113
|
/** define position of item for screen reader */
|
|
109
|
-
|
|
114
|
+
ariaPosinset: number;
|
|
110
115
|
/** Avatar component properties. @see AvatarComponent for more details */
|
|
111
116
|
set avatar(value: Partial<ListAvatarConfig> | string);
|
|
112
117
|
get avatar(): ListAvatarConfig;
|
|
@@ -181,7 +186,8 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
181
186
|
/** radio button value */
|
|
182
187
|
value: string;
|
|
183
188
|
/** By default selection mode is 'none' */
|
|
184
|
-
selectionMode: SelectionType;
|
|
189
|
+
set selectionMode(value: SelectionType);
|
|
190
|
+
get selectionMode(): SelectionType;
|
|
185
191
|
/** By default selection mode is 'active' */
|
|
186
192
|
listType: ListType;
|
|
187
193
|
/**
|
|
@@ -196,7 +202,7 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
196
202
|
*/
|
|
197
203
|
navigationIndicator: boolean;
|
|
198
204
|
/** role */
|
|
199
|
-
role: string
|
|
205
|
+
role: Nullable<string>;
|
|
200
206
|
/**
|
|
201
207
|
* event emitter for selected item
|
|
202
208
|
* seprate PR for custom event
|
|
@@ -220,6 +226,8 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
220
226
|
checkboxComponent: CheckboxComponent;
|
|
221
227
|
/** @hidden */
|
|
222
228
|
radioButtonComponent: RadioButtonComponent;
|
|
229
|
+
/** @hidden */
|
|
230
|
+
_type: LIST_ITEM_TYPE;
|
|
223
231
|
/**
|
|
224
232
|
* @hidden
|
|
225
233
|
* Whether By line mode is included to list component, by which
|
|
@@ -230,33 +238,63 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
230
238
|
* @hidden
|
|
231
239
|
* Whether listitem has row level selection enabled
|
|
232
240
|
*/
|
|
233
|
-
rowSelection: boolean;
|
|
241
|
+
set rowSelection(value: boolean);
|
|
242
|
+
get rowSelection(): boolean;
|
|
234
243
|
/**
|
|
235
244
|
* @hidden
|
|
236
245
|
* Whether listitem is selected binded to template
|
|
237
246
|
*/
|
|
238
247
|
_selected: boolean;
|
|
248
|
+
/** @hidden */
|
|
249
|
+
get _selectedAttr(): boolean | null;
|
|
239
250
|
/**
|
|
240
251
|
* @hidden
|
|
241
252
|
* get the focused element for key manager
|
|
242
253
|
*/
|
|
243
254
|
_focused: boolean;
|
|
244
255
|
/** @hidden */
|
|
256
|
+
get _listItemRole(): string;
|
|
257
|
+
/** @hidden */
|
|
258
|
+
ariaSetSize: Observable<number>;
|
|
259
|
+
/** @hidden */
|
|
260
|
+
private _rowSelection;
|
|
261
|
+
/** @hidden */
|
|
262
|
+
private _defaultRole;
|
|
263
|
+
/** @hidden */
|
|
245
264
|
private _listComponent;
|
|
246
265
|
/** @hidden */
|
|
247
266
|
private _avatarConfig;
|
|
248
267
|
/** @hidden */
|
|
249
268
|
private _iconConfig;
|
|
250
|
-
/** @hidden */
|
|
251
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, itemEl: ElementRef<HTMLElement>, _listConfig: ListConfig, _list: ListUnreadIndicator);
|
|
252
269
|
/**
|
|
253
270
|
* @hidden
|
|
254
271
|
* radio button selected value binded to template
|
|
255
272
|
*/
|
|
256
273
|
private _selectionValue;
|
|
274
|
+
/** @hidden */
|
|
275
|
+
private _selectionMode;
|
|
276
|
+
/** @hidden */
|
|
277
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, itemEl: ElementRef<HTMLElement>, _listConfig: ListConfig, _list: ListUnreadIndicator);
|
|
257
278
|
/** Selection value */
|
|
258
279
|
set selectionValue(value: Nullable<string>);
|
|
259
280
|
get selectionValue(): Nullable<string>;
|
|
281
|
+
/**
|
|
282
|
+
* @hidden
|
|
283
|
+
* On item click event will be emitted
|
|
284
|
+
*/
|
|
285
|
+
_onItemClick(): void;
|
|
286
|
+
/** @hidden */
|
|
287
|
+
_handleKeyboardEvent(event: KeyboardEvent): void;
|
|
288
|
+
/**
|
|
289
|
+
* @hidden
|
|
290
|
+
* Handler for mouse events
|
|
291
|
+
*/
|
|
292
|
+
_onClick(event: MouseEvent): void;
|
|
293
|
+
/**
|
|
294
|
+
* @hidden
|
|
295
|
+
* helps to avoid multi rows active class with navigation
|
|
296
|
+
*/
|
|
297
|
+
_onBlur(event: KeyboardEvent): void;
|
|
260
298
|
/**
|
|
261
299
|
* @hidden
|
|
262
300
|
* Show navigation for single list
|
|
@@ -284,23 +322,6 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
284
322
|
* @param selected Whether the list item is selected
|
|
285
323
|
*/
|
|
286
324
|
setSelected(selected: boolean): void;
|
|
287
|
-
/**
|
|
288
|
-
* @hidden
|
|
289
|
-
* On item click event will be emitted
|
|
290
|
-
*/
|
|
291
|
-
_onItemClick(): void;
|
|
292
|
-
/** @hidden */
|
|
293
|
-
_handleKeyboardEvent(event: KeyboardEvent): void;
|
|
294
|
-
/**
|
|
295
|
-
* @hidden
|
|
296
|
-
* Handler for mouse events
|
|
297
|
-
*/
|
|
298
|
-
_onClick(event: MouseEvent): void;
|
|
299
|
-
/**
|
|
300
|
-
* @hidden
|
|
301
|
-
* helps to avoid multi rows active class with navigation
|
|
302
|
-
*/
|
|
303
|
-
_onBlur(event: KeyboardEvent): void;
|
|
304
325
|
/**
|
|
305
326
|
* @hidden
|
|
306
327
|
* on keydown append active styles on actionable item
|
|
@@ -327,6 +348,8 @@ export declare class BaseListItem extends BaseComponent implements OnInit, After
|
|
|
327
348
|
_isAdvancedText(text: ListDescription): text is ListAdvancedDescription;
|
|
328
349
|
/** @hidden */
|
|
329
350
|
private _onKeyboardClick;
|
|
351
|
+
/** @hidden */
|
|
352
|
+
private _setAttrRole;
|
|
330
353
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseListItem, [null, null, null, { optional: true; }]>;
|
|
331
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseListItem, never, never, { "ariaLabelledBy": "ariaLabelledBy"; "ariaLevel": "ariaLevel"; "
|
|
354
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseListItem, never, never, { "ariaLabelledBy": "ariaLabelledBy"; "ariaLevel": "ariaLevel"; "ariaPosinset": "ariaPosinset"; "avatar": "avatar"; "avatarSrc": "avatarSrc"; "avatarTitle": "avatarTitle"; "counter": "counter"; "description": "description"; "inverted": "inverted"; "noDataText": "noDataText"; "statusType": "statusType"; "secondary": "secondary"; "secondaryWrap": "secondaryWrap"; "title": "title"; "link": "link"; "titleWrap": "titleWrap"; "titleIcon": "titleIcon"; "icon": "icon"; "unRead": "unRead"; "value": "value"; "selectionMode": "selectionMode"; "listType": "listType"; "navigated": "navigated"; "navigationIndicator": "navigationIndicator"; "role": "role"; "selectionValue": "selectionValue"; }, { "itemSelected": "itemSelected"; "itemCheckboxSelected": "itemCheckboxSelected"; "buttonClicked": "buttonClicked"; }, never, never, false, never>;
|
|
332
355
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { BaseComponent } from '@fundamental-ngx/platform/shared';
|
|
2
|
+
import { LIST_ITEM_TYPE } from './base-list-item';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ListFooterComponent extends BaseComponent {
|
|
5
|
+
/** @hidden */
|
|
6
|
+
_type: LIST_ITEM_TYPE;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListFooterComponent, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<ListFooterComponent, "fdp-list-footer", never, {}, {}, never, ["*"], false, never>;
|
|
6
9
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseListItem } from './base-list-item';
|
|
2
|
+
import { BaseListItem, LIST_ITEM_TYPE } from './base-list-item';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ListGroupHeaderComponent extends BaseListItem implements OnInit {
|
|
5
5
|
/** Displays list group header title */
|
|
6
6
|
groupHeaderTitle?: string;
|
|
7
7
|
/** @deprecated Use `groupHeaderTitle` instead */
|
|
8
8
|
set grpheaderTitle(value: string);
|
|
9
|
+
/** @hidden */
|
|
10
|
+
_type: LIST_ITEM_TYPE;
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
* Initialization of the list header component
|
package/list/list.component.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Observable, Subject } from 'rxjs';
|
|
|
5
5
|
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
6
6
|
import { ListUnreadIndicator } from '@fundamental-ngx/core/list';
|
|
7
7
|
import { FdLanguage } from '@fundamental-ngx/i18n';
|
|
8
|
-
import { CollectionBaseInput, PlatformFormField, PlatformFormFieldControl } from '@fundamental-ngx/platform/shared';
|
|
8
|
+
import { CollectionBaseInput, ListDataSource, PlatformFormField, PlatformFormFieldControl } from '@fundamental-ngx/platform/shared';
|
|
9
9
|
import { BaseListItem, ListItemDef } from './base-list-item';
|
|
10
10
|
import { ListConfig } from './list.config';
|
|
11
11
|
import { LoadMoreContentContext, LoadMoreContentDirective } from './load-more-content.directive';
|
|
@@ -125,7 +125,9 @@ export declare class ListComponent<T> extends CollectionBaseInput implements Lis
|
|
|
125
125
|
/** @hidden */
|
|
126
126
|
_destroyed: Subject<void>;
|
|
127
127
|
/** @hidden */
|
|
128
|
-
|
|
128
|
+
_ariaSetSize: Observable<number>;
|
|
129
|
+
/** @hidden */
|
|
130
|
+
protected _dataSource: ListDataSource<T>;
|
|
129
131
|
/** @hidden */
|
|
130
132
|
private _translationResolver;
|
|
131
133
|
/**
|
|
@@ -194,8 +196,13 @@ export declare class ListComponent<T> extends CollectionBaseInput implements Lis
|
|
|
194
196
|
private _afterViewInit$;
|
|
195
197
|
/** @hidden */
|
|
196
198
|
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _language$: Observable<FdLanguage>, ngControl: NgControl, controlContainer: ControlContainer, ngForm: NgForm, formField: PlatformFormField, formControl: PlatformFormFieldControl, _listConfig?: ListConfig | undefined);
|
|
197
|
-
/**
|
|
198
|
-
|
|
199
|
+
/**
|
|
200
|
+
* @hidden
|
|
201
|
+
* on Update navgiation styles for non navigated items
|
|
202
|
+
* event:any to avoid code duplication
|
|
203
|
+
* seprate PR for custom event
|
|
204
|
+
*/
|
|
205
|
+
_updateNavigation(event: Event): void;
|
|
199
206
|
/** Get context for load more button */
|
|
200
207
|
getLoadMoreContentContext(): LoadMoreContentContext;
|
|
201
208
|
/**
|
|
@@ -241,13 +248,8 @@ export declare class ListComponent<T> extends CollectionBaseInput implements Lis
|
|
|
241
248
|
* event:any to avoid code duplication
|
|
242
249
|
*/
|
|
243
250
|
_onSelectionChanged(event: Event): void;
|
|
244
|
-
/**
|
|
245
|
-
|
|
246
|
-
* on Update navgiation styles for non navigated items
|
|
247
|
-
* event:any to avoid code duplication
|
|
248
|
-
* seprate PR for custom event
|
|
249
|
-
*/
|
|
250
|
-
_updateNavigation(event: Event): void;
|
|
251
|
+
/** @hidden */
|
|
252
|
+
_setupListItem(item: BaseListItem): void;
|
|
251
253
|
/** @hidden */
|
|
252
254
|
_selectItem(item: BaseListItem): void;
|
|
253
255
|
/** @hidden */
|
|
@@ -274,8 +276,6 @@ export declare class ListComponent<T> extends CollectionBaseInput implements Lis
|
|
|
274
276
|
* event:any to avoid code duplication
|
|
275
277
|
*/
|
|
276
278
|
private _handleMultiSelect;
|
|
277
|
-
/** @hidden */
|
|
278
|
-
_setupListItem(item: BaseListItem): void;
|
|
279
279
|
/**
|
|
280
280
|
* @hidden
|
|
281
281
|
* Setting values from list to list items
|
|
@@ -289,6 +289,8 @@ export declare class ListComponent<T> extends CollectionBaseInput implements Lis
|
|
|
289
289
|
private _updateListItems;
|
|
290
290
|
/** @hidden */
|
|
291
291
|
private _waitForViewInit;
|
|
292
|
+
/** @hidden */
|
|
293
|
+
private _init;
|
|
292
294
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent<any>, [null, null, null, null, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; host: true; skipSelf: true; }, { optional: true; host: true; skipSelf: true; }, null]>;
|
|
293
295
|
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent<any>, "fdp-list", never, { "selectedItems": "selectedItems"; "ariaSetsize": "ariaSetsize"; "ariaMultiselectable": "ariaMultiselectable"; "loadTitle": "loadTitle"; "loadingLabel": "loadingLabel"; "delayTime": "delayTime"; "itemSize": "itemSize"; "loadMore": "loadMore"; "loadOnScroll": "loadOnScroll"; "role": "role"; "listType": "listType"; "maxHeight": "maxHeight"; "noBorder": "noBorder"; "scrollOffsetPercentage": "scrollOffsetPercentage"; "selection": "selection"; "selectionMode": "selectionMode"; "value": "value"; "rowSelection": "rowSelection"; "dataSource": "dataSource"; "navigated": "navigated"; "navigationIndicator": "navigationIndicator"; "hasByLine": "hasByLine"; "hasObject": "hasObject"; "unreadIndicator": "unreadIndicator"; "interceptTabKey": "interceptTabKey"; }, { "selectedItemChange": "selectedItemChange"; }, ["listItemDef", "loadMoreContent", "listItems"], ["fd-toolbar", "#load", "*"], false, never>;
|
|
294
296
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/platform",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.19",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - platform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"node": ">= 10"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@fundamental-ngx/core": "0.43.
|
|
16
|
+
"@fundamental-ngx/core": "0.43.19"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fundamental-ngx/cdk": "0.43.
|
|
20
|
-
"@fundamental-ngx/i18n": "0.43.
|
|
19
|
+
"@fundamental-ngx/cdk": "0.43.19",
|
|
20
|
+
"@fundamental-ngx/i18n": "0.43.19",
|
|
21
21
|
"fast-deep-equal": "3.1.3",
|
|
22
22
|
"focus-trap": "^7.1.0",
|
|
23
23
|
"lodash-es": "^4.17.0",
|
|
@@ -32,7 +32,7 @@ function callCoreSchematic(options) {
|
|
|
32
32
|
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
33
33
|
type: dependencies_1.NodeDependencyType.Default,
|
|
34
34
|
// Will be replaced with the real version during sync-version scipt run
|
|
35
|
-
version: `0.43.
|
|
35
|
+
version: `0.43.19`,
|
|
36
36
|
name: '@fundamental-ngx/core'
|
|
37
37
|
});
|
|
38
38
|
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask({
|
|
@@ -96,13 +96,15 @@ export type ProviderParams = ReadonlyMap<string, any>;
|
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
98
|
export declare abstract class DataProvider<T> {
|
|
99
|
+
abstract fetch(params: ProviderParams, start?: number, end?: number): Observable<T[]>;
|
|
99
100
|
/** @hidden */
|
|
100
101
|
protected _keyPath: string;
|
|
101
102
|
/** @hidden */
|
|
102
103
|
protected _matchingStrategy: MatchingStrategy;
|
|
103
104
|
/** @hidden */
|
|
104
105
|
protected _matchingBy: MatchingBy | null;
|
|
105
|
-
|
|
106
|
+
/** @hidden */
|
|
107
|
+
getTotalItems?(): Observable<number>;
|
|
106
108
|
/**
|
|
107
109
|
* Tells if this DataProvider supports INSERT, REMOVE
|
|
108
110
|
*
|
|
@@ -75,8 +75,6 @@ export declare class TableRowComponent<T> extends TableRowDirective implements O
|
|
|
75
75
|
/** @hidden */
|
|
76
76
|
constructor();
|
|
77
77
|
/** @hidden */
|
|
78
|
-
private _onArrowKeydown;
|
|
79
|
-
/** @hidden */
|
|
80
78
|
ngOnInit(): void;
|
|
81
79
|
/** @hidden */
|
|
82
80
|
ngAfterViewInit(): void;
|
|
@@ -85,6 +83,8 @@ export declare class TableRowComponent<T> extends TableRowDirective implements O
|
|
|
85
83
|
/** @hidden */
|
|
86
84
|
ngOnDestroy(): void;
|
|
87
85
|
/** @hidden */
|
|
86
|
+
protected _handleCellSpaceKey(colIdx: number, tableCellElement: HTMLTableCellElement, $event: Event): void;
|
|
87
|
+
/** @hidden */
|
|
88
88
|
private _listenToRowExpansion;
|
|
89
89
|
/** @hidden */
|
|
90
90
|
private _onKeyDown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TrackByFunction } from '@angular/core';
|
|
2
|
-
import { FocusableGridDirective, Nullable, RtlService, TabbableElementService } from '@fundamental-ngx/cdk/utils';
|
|
2
|
+
import { FocusableCellPosition, FocusableGridDirective, Nullable, RtlService, TabbableElementService } from '@fundamental-ngx/cdk/utils';
|
|
3
3
|
import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
|
|
4
4
|
import { SearchInput } from '@fundamental-ngx/platform/search-field';
|
|
5
5
|
import { CollectionFilter, CollectionGroup, CollectionSort, EditableTableCell, PlatformTableManagedPreset, RowComparator, SaveRowsEvent, SelectionModeValue, Table, TableColumn, TableColumnFreezeEvent, TableColumnResizeService, TableColumnsChangeEvent, TableDataSource, TableDataSourceDirective, TableDraggable, TableFilterChangeEvent, TableGroupChangeEvent, TableInitialState, TablePageChangeEvent, TableRow, TableRowActivateEvent, TableRowClass, TableRowSelectionChangeEvent, TableRowService, TableRowToggleOpenStateEvent, TableScrollable, TableScrollDispatcherService, TableService, TableSortChangeEvent, TableState, TableVirtualScroll } from '@fundamental-ngx/platform/table-helpers';
|
|
@@ -212,6 +212,8 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
|
|
|
212
212
|
allRowsExpanded: EventEmitter<void>;
|
|
213
213
|
/** Event emitted when all rows being collapsed. */
|
|
214
214
|
allRowsCollapsed: EventEmitter<void>;
|
|
215
|
+
/** Event emitted when a cell is focused. */
|
|
216
|
+
readonly cellFocused: EventEmitter<any>;
|
|
215
217
|
/** @hidden */
|
|
216
218
|
readonly tableScrollable: TableScrollable;
|
|
217
219
|
/** @hidden */
|
|
@@ -521,6 +523,10 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
|
|
|
521
523
|
* ```
|
|
522
524
|
*/
|
|
523
525
|
toggleGroupRows(...rowIndexes: number[]): void;
|
|
526
|
+
/**
|
|
527
|
+
* Function used to focus a cell in the table utilizing a FocusableCellPosition interface.
|
|
528
|
+
*/
|
|
529
|
+
focusCell(position: FocusableCellPosition): void;
|
|
524
530
|
/** @hidden */
|
|
525
531
|
_scrollToOverlappedCell(): void;
|
|
526
532
|
/** @hidden */
|
|
@@ -637,6 +643,6 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
|
|
|
637
643
|
/** @hidden */
|
|
638
644
|
private _checkCellMock;
|
|
639
645
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, [null, null, null, null, null, null, { optional: true; }, null, null, null]>;
|
|
640
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "fdp-table", never, { "name": "name"; "id": "id"; "enableDragResize": "enableDragResize"; "fixed": "fixed"; "freezeColumnsTo": "freezeColumnsTo"; "freezeEndColumnsTo": "freezeEndColumnsTo"; "pageScrolling": "pageScrolling"; "pageSize": "pageSize"; "pageScrollingThreshold": "pageScrollingThreshold"; "bodyHeight": "bodyHeight"; "emptyTableMessage": "emptyTableMessage"; "noVisibleColumnsMessage": "noVisibleColumnsMessage"; "noHorizontalBorders": "noHorizontalBorders"; "noVerticalBorders": "noVerticalBorders"; "noBorders": "noBorders"; "noBodyBorders": "noBodyBorders"; "noOuterBorders": "noOuterBorders"; "noBorderX": "noBorderX"; "noBorderY": "noBorderY"; "relationKey": "relationKey"; "expandedStateKey": "expandedStateKey"; "hasChildrenKey": "hasChildrenKey"; "rowNavigatable": "rowNavigatable"; "highlightNavigatedRow": "highlightNavigatedRow"; "rowsActivable": "rowsActivable"; "selectedKey": "selectedKey"; "selectableKey": "selectableKey"; "trackBy": "trackBy"; "rowComparator": "rowComparator"; "rowsClass": "rowsClass"; "editableRowSkeleton": "editableRowSkeleton"; "expandOnInit": "expandOnInit"; "rowHeight": "rowHeight"; "loadPagesBefore": "loadPagesBefore"; "selectionMode": "selectionMode"; "enableTristateMode": "enableTristateMode"; "semanticHighlighting": "semanticHighlighting"; "forceCheckedAllState": "forceCheckedAllState"; "ariaLabelledBy": "ariaLabelledBy"; "loading": "loading"; }, { "presetChanged": "presetChanged"; "rowSelectionChange": "rowSelectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "columnsChange": "columnsChange"; "pageChange": "pageChange"; "columnFreeze": "columnFreeze"; "rowToggleOpenState": "rowToggleOpenState"; "rowActivate": "rowActivate"; "rowNavigate": "rowNavigate"; "emptyRowAdded": "emptyRowAdded"; "save": "save"; "cancel": "cancel"; "tableScrolled": "tableScrolled"; "tableRowsSet": "tableRowsSet"; "allRowsExpanded": "allRowsExpanded"; "allRowsCollapsed": "allRowsCollapsed"; }, ["tableToolbar", "columns", "customEditableCells"], ["fdp-table-no-data-wrapper"], false, [{ directive: typeof i1.TableDataSourceDirective; inputs: { "dataSource": "dataSource"; "childDataSource": "childDataSource"; }; outputs: { "childDataSourceChanged": "childDataSourceChanged"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; "dataSourceChanged": "dataSourceChanged"; "dataChanged": "dataChanged"; "isLoading": "isLoading"; }; }, { directive: typeof i1.TableHeaderResizerDirective; inputs: {}; outputs: {}; }]>;
|
|
646
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "fdp-table", never, { "name": "name"; "id": "id"; "enableDragResize": "enableDragResize"; "fixed": "fixed"; "freezeColumnsTo": "freezeColumnsTo"; "freezeEndColumnsTo": "freezeEndColumnsTo"; "pageScrolling": "pageScrolling"; "pageSize": "pageSize"; "pageScrollingThreshold": "pageScrollingThreshold"; "bodyHeight": "bodyHeight"; "emptyTableMessage": "emptyTableMessage"; "noVisibleColumnsMessage": "noVisibleColumnsMessage"; "noHorizontalBorders": "noHorizontalBorders"; "noVerticalBorders": "noVerticalBorders"; "noBorders": "noBorders"; "noBodyBorders": "noBodyBorders"; "noOuterBorders": "noOuterBorders"; "noBorderX": "noBorderX"; "noBorderY": "noBorderY"; "relationKey": "relationKey"; "expandedStateKey": "expandedStateKey"; "hasChildrenKey": "hasChildrenKey"; "rowNavigatable": "rowNavigatable"; "highlightNavigatedRow": "highlightNavigatedRow"; "rowsActivable": "rowsActivable"; "selectedKey": "selectedKey"; "selectableKey": "selectableKey"; "trackBy": "trackBy"; "rowComparator": "rowComparator"; "rowsClass": "rowsClass"; "editableRowSkeleton": "editableRowSkeleton"; "expandOnInit": "expandOnInit"; "rowHeight": "rowHeight"; "loadPagesBefore": "loadPagesBefore"; "selectionMode": "selectionMode"; "enableTristateMode": "enableTristateMode"; "semanticHighlighting": "semanticHighlighting"; "forceCheckedAllState": "forceCheckedAllState"; "ariaLabelledBy": "ariaLabelledBy"; "loading": "loading"; }, { "presetChanged": "presetChanged"; "rowSelectionChange": "rowSelectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "columnsChange": "columnsChange"; "pageChange": "pageChange"; "columnFreeze": "columnFreeze"; "rowToggleOpenState": "rowToggleOpenState"; "rowActivate": "rowActivate"; "rowNavigate": "rowNavigate"; "emptyRowAdded": "emptyRowAdded"; "save": "save"; "cancel": "cancel"; "tableScrolled": "tableScrolled"; "tableRowsSet": "tableRowsSet"; "allRowsExpanded": "allRowsExpanded"; "allRowsCollapsed": "allRowsCollapsed"; "cellFocused": "cellFocused"; }, ["tableToolbar", "columns", "customEditableCells"], ["fdp-table-no-data-wrapper"], false, [{ directive: typeof i1.TableDataSourceDirective; inputs: { "dataSource": "dataSource"; "childDataSource": "childDataSource"; }; outputs: { "childDataSourceChanged": "childDataSourceChanged"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; "dataSourceChanged": "dataSourceChanged"; "dataChanged": "dataChanged"; "isLoading": "isLoading"; }; }, { directive: typeof i1.TableHeaderResizerDirective; inputs: {}; outputs: {}; }]>;
|
|
641
647
|
}
|
|
642
648
|
export {};
|
|
@@ -30,7 +30,7 @@ export declare function getFreezableColumns(columns: TableColumn[], freezeColumn
|
|
|
30
30
|
/** @hidden */
|
|
31
31
|
export declare function getFreezableEndColumns(columns: TableColumn[], freezeEndColumnsTo: string): Map<string, number>;
|
|
32
32
|
/** @hidden */
|
|
33
|
-
export declare function convertTreeObjectsToTableRows<T>(source: T[], selectionMode: SelectionModeValue, tableRows: TableRow<T>[], rowComparator: RowComparator<T>, relationKey: string, hasChildrenKey: string, selectedKey: string, expandedStateKey: string, rowNavigatable: string | boolean): TableRow<T>[];
|
|
33
|
+
export declare function convertTreeObjectsToTableRows<T>(source: T[], selectionMode: SelectionModeValue, tableRows: TableRow<T>[], rowComparator: RowComparator<T>, relationKey: string, hasChildrenKey: string, selectedKey: string, expandedStateKey: string, rowNavigatable: string | boolean, enableTristateMode?: boolean): TableRow<T>[];
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
* Runs `rowComparator` function against checked rows and compares them with the new `source`
|
|
Binary file
|