nm-data-hierarchical-list
src/app/shared/widgets/data-list/data-hierarchical-list.component.ts
selector | nm-data-hierarchical-list |
styleUrls | data-list.component.widget.scss |
templateUrl | ./data-hierarchical-list.component.html |
Protected configureWidget | ||||||
configureWidget(configuration: WidgetConfig
|
||||||
Decorators : WidgetConfigure
|
||||||
Parameters :
Returns :
void
|
Protected configureWidget | ||||||
configureWidget(configuration: WidgetConfig
|
||||||
Decorators : WidgetConfigure
|
||||||
Inherited from
DataListComponentWidget
|
||||||
Defined in DataListComponentWidget:437
|
||||||
Parameters :
Returns :
void
|
doExport | ||||
doExport(settings: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:652
|
||||
Parameters :
Returns :
void
|
Public ngOnDestroy |
ngOnDestroy()
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:661
|
Returns :
void
|
Public onEditedRows | ||||
onEditedRows(event: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:684
|
||||
Parameters :
Returns :
void
|
Public onMaintenanceLevelChange | ||||
onMaintenanceLevelChange(value: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:625
|
||||
Parameters :
Returns :
void
|
setGrid | ||||
setGrid(grid: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:643
|
||||
Parameters :
Returns :
void
|
setSelectedCell | ||||
setSelectedCell(selectedCell: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:656
|
||||
Parameters :
Returns :
void
|
Public setSelectedLocale | ||||
setSelectedLocale(value: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:665
|
||||
Parameters :
Returns :
void
|
setTileClicked | ||||
setTileClicked(tileClicked: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:648
|
||||
Parameters :
Returns :
void
|
setTotal | ||||
setTotal(total: )
|
||||
Inherited from
DataListComponentWidget
|
||||
Defined in DataListComponentWidget:639
|
||||
Parameters :
Returns :
void
|
Private updateAdditionalParams |
updateAdditionalParams(key: string, value: any)
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:633
|
Returns :
void
|
Public childSelectedItems |
childSelectedItems:
|
Default value : new Subject<IslandSelectionParams>()
|
Decorators : WidgetOutput
|
Emits children selected items |
component |
component:
|
Type : DataListHierachicalComponent
|
Decorators : ViewChild
|
Public configuration |
configuration:
|
Type : WidgetConfig<DataListHierachicalConfiguration>
|
Decorators : WidgetConfiguration
|
Public dynamicIslandColumns |
dynamicIslandColumns:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Emits dynamic islands columns |
Public expandChildren |
expandChildren:
|
Default value : new Subject<boolean>()
|
Decorators : WidgetInput
|
Input that expands/collapses the children of the grid if given true/ false |
Public hide |
hide:
|
Type : ReplaySubject<boolean>
|
Default value : new ReplaySubject<boolean>()
|
Decorators : WidgetInput
|
Shows/Hides table |
Public hideTable |
hideTable:
|
Type : boolean
|
Default value : false
|
Public withHeader |
withHeader:
|
Type : boolean
|
Default value : true
|
Public additionalParams |
additionalParams:
|
Type : any
|
Default value : {}
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:425
|
Public apiOutput |
apiOutput:
|
Default value : new Subject<DataListApi>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:294
|
Emits a service that allows to directly interact with the data-list |
Public attributeUrlInput |
attributeUrlInput:
|
Default value : new Subject<void>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:126
|
The url used to get data for attributes dialog |
Public clearFiltersAndSortingChannel |
clearFiltersAndSortingChannel:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:228
|
Clears applied filters and sorting state |
Public clearRowSelectionChannel |
clearRowSelectionChannel:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:222
|
Clears selected rows |
Public clients |
clients:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:399
|
Public collapse |
collapse:
|
Type : boolean
|
Default value : false
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:414
|
Public collapseChannel |
collapseChannel:
|
Default value : new Subject<boolean>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:132
|
Collapses/Expands the data-list panel |
Public configuration |
configuration:
|
Type : WidgetConfig<DataListConfiguration>
|
Decorators : WidgetConfiguration
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:59
|
Public contentVisible |
contentVisible:
|
Type : boolean
|
Default value : true
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:409
|
Public contextIdentifierChannel |
contextIdentifierChannel:
|
Type : ReplaySubject<any>
|
Default value : new ReplaySubject<any>(
1
)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:163
|
Key to store context specific table configurations |
Public countDescription |
countDescription:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:391
|
Public currentData |
currentData:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:252
|
Emits the data-list's current data when it's loaded |
Public data |
data:
|
Default value : new Subject<any[]>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:365
|
Sets data-list data |
Public dataLoadedOutput |
dataLoadedOutput:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:341
|
Emits after data is loaded in list |
Public dataLocale |
dataLocale:
|
Type : ReplaySubject<any>
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:84
|
Sets data locale, and trigger emitting the changed locale through "dataLocale" output channel. |
Public dataLocaleInputChannel |
dataLocaleInputChannel:
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:108
|
Sets data locale |
Public dataLocaleOutput |
dataLocaleOutput:
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:183
|
Emits selected data locale |
Public dataTypeInput |
dataTypeInput:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:270
|
Sets data type |
Public dataTypeMode |
dataTypeMode:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:114
|
Sets dataType mode value, use "choose" to show dataType selection dropdown |
Public dataTypeOutput |
dataTypeOutput:
|
Default value : new ReplaySubject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:240
|
Emits selected data type |
Public dynamicColumnsIn |
dynamicColumnsIn:
|
Default value : new Subject<Column[]>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:96
|
Inputs the dynamic columns that are supposed to get rendered |
Public dynamicColumnsOutput |
dynamicColumnsOutput:
|
Type : Subject<Column[]>
|
Default value : new ReplaySubject(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:177
|
Emits dynamic columns |
Public dynamicPrefixOutput |
dynamicPrefixOutput:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:190
|
Emits the prefix that should be added before the data-list title when data type changes, only used when dynamicTitle property is set to true |
Public eagerLimit |
eagerLimit:
|
Default value : new ReplaySubject<number>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:276
|
Sets the limit for eager loading |
Public editableCell |
editableCell:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:210
|
Emits edited cell data |
Public editedRowOutput |
editedRowOutput:
|
Default value : new Subject<DataListEditedRow>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:323
|
Emits the last editedRow |
Public editedRowsOutput |
editedRowsOutput:
|
Default value : new Subject<DataListEditedRows>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:317
|
Emits all edited rows |
Public endGridEditMode |
endGridEditMode:
|
Type : ReplaySubject<any>
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:145
|
Ends edit mode |
Public export |
export:
|
Default value : new Subject<any>()
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:404
|
Public filterColumns |
filterColumns:
|
Default value : new Subject<any[]>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:371
|
Shows only sepecified columns by column "field" value |
Public focusFreeTextSearch |
focusFreeTextSearch:
|
Type : boolean
|
Default value : false
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:407
|
Public grid |
grid:
|
Type : IgxGridBaseDirective
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:423
|
Public gridOutput |
gridOutput:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:335
|
Emits grid instance on initialization |
Public header |
header:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:393
|
Public hide |
hide:
|
Type : ReplaySubject<boolean>
|
Default value : new ReplaySubject<boolean>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:77
|
Hides/Shows the data-list |
Public hideTable |
hideTable:
|
Type : boolean
|
Default value : false
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:412
|
Public infoText |
infoText:
|
Type : string
|
Default value : "list.results"
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:406
|
Public infoTitle |
infoTitle:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:389
|
Public inputChannel |
inputChannel:
|
Type : ReplaySubject<any>
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:65
|
The uri that should be used to fetch the data |
Public invertSelection |
invertSelection:
|
Default value : new Subject<any>()
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:405
|
Public isCollapsible |
isCollapsible:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:395
|
Public isSideCollapsible |
isSideCollapsible:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:396
|
Private langSelectUrlObs |
langSelectUrlObs:
|
Type : Observable<string>
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:416
|
Public languageSelectorValueProperty |
languageSelectorValueProperty:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:413
|
Public locales |
locales:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:400
|
Public localstorageClientEntry |
localstorageClientEntry:
|
Type : LocalStorageEntry
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:421
|
Public localstorageLocaleEntry |
localstorageLocaleEntry:
|
Type : LocalStorageEntry
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:420
|
Public maintenanceLevel |
maintenanceLevel:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:398
|
Public maintenanceLevelChange |
maintenanceLevelChange:
|
Default value : new ReplaySubject<number>(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:329
|
Emits selected maintenance level |
Public preselectAttributeProfile |
preselectAttributeProfile:
|
Default value : new Subject<string>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:171
|
Inputs the profile pimRef to be selected when attributes dialog is opened |
Public productsInput |
productsInput:
|
Default value : new Subject<string[]>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:139
|
Sets the product numbers to be displayed in data-list, Needed for restricting attributes to category if other ways do not work |
Public refreshButtonsChannel |
refreshButtonsChannel:
|
Default value : new Subject()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:204
|
Deprecated: feature is now removed. Refresh the data-list footer buttons state |
Public refreshButtonsTrigger |
refreshButtonsTrigger:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:299
|
Public refreshRows |
refreshRows:
|
Default value : new Subject<string[]>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:282
|
Refreshes specified rows by primary key |
Public reloadChannel |
reloadChannel:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:102
|
Reloads the data-list data |
Public renderCount |
renderCount:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:394
|
Public reorderedRows |
reorderedRows:
|
Default value : new Subject()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:384
|
Emits re-ordered rows. |
Public resetChannel |
resetChannel:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:90
|
Clears the data-list data |
Public resetEditData |
resetEditData:
|
Default value : new Subject<void>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:120
|
Clears edited data |
Public restoreGlobalFilter |
restoreGlobalFilter:
|
Default value : new Subject<boolean>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:288
|
Sets the free text filter again |
Public rowEditEnter |
rowEditEnter:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:258
|
Emits when row enters edit mode |
Public rowEditLeave |
rowEditLeave:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:264
|
Emits when row editing is canceled |
Public rowSelection |
rowSelection:
|
Type : ReplaySubject<any>
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:71
|
Selects specified rows by primary key |
Public rowSelectionChannel |
rowSelectionChannel:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:216
|
Selects specified rows by primary key |
Public selectedCell |
selectedCell:
|
Type : any
|
Default value : null
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:417
|
Public selectedColumn |
selectedColumn:
|
Type : any
|
Default value : null
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:418
|
Public selectedItems |
selectedItems:
|
Type : Subject<SelectionParams>
|
Default value : new Subject<SelectionParams>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:305
|
Emits all selected items |
Public selectedLocale |
selectedLocale:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:402
|
Public shownAttributesIn |
shownAttributesIn:
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:197
|
List of columns used to update the shown dynamic columns for the data-list. If dynamicColumnsFromData property is enabled, only changes from backend will be processed |
Public shownAttributesOutput |
shownAttributesOutput:
|
Default value : new ReplaySubject<any[]>(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:311
|
Emits all shown attributes |
Private showTableOnLinkInput |
showTableOnLinkInput:
|
Type : boolean
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:415
|
Public statusOutput |
statusOutput:
|
Default value : new ReplaySubject<DataListStatus>(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:297
|
Public subheader |
subheader:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:390
|
Public tileClicked |
tileClicked:
|
Default value : new Subject<boolean>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:359
|
Emits row data when it is clicked in tile mode |
Public title |
title:
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:388
|
Public titleInfo |
titleInfo:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:157
|
Sets additional title information; shown in brackets next to title |
Public toggleButtonChange |
toggleButtonChange:
|
Default value : new Subject<boolean>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:353
|
Emits value of the mode toggle-slider when it changes |
Public toggleSideCollapse |
toggleSideCollapse:
|
Default value : new Subject()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:378
|
Deprecated: feature is now removed. Toggle expanding/collapsing data-list panel horizontally |
Public total |
total:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:347
|
Emits number of entries (rows) in the data-list |
Public unsubscribe |
unsubscribe:
|
Default value : NgUnsubscribe.create()
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:386
|
Public updateTitle |
updateTitle:
|
Default value : new Subject<any>()
|
Decorators : WidgetInput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:151
|
Changes the data-list panel title dynamically |
Public validationOutput |
validationOutput:
|
Default value : new Subject<any>()
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:246
|
Emits validation state for all rows in the data-list |
Public viewModeOutput |
viewModeOutput:
|
Default value : new ReplaySubject<any>(1)
|
Decorators : WidgetOutput
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:234
|
Emits selected view mode |
Public widgetId |
widgetId:
|
Type : string
|
Decorators : WidgetId
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:56
|
Public wikiLink |
wikiLink:
|
Type : string
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:408
|
Public withBorder |
withBorder:
|
Type : boolean
|
Default value : true
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:411
|
Public withHeader |
withHeader:
|
Type : boolean
|
Default value : true
|
Inherited from
DataListComponentWidget
|
Defined in DataListComponentWidget:410
|
import { DataListComponentWidget } from "./data-list.component.widget";
import {
WidgetComponent,
WidgetInput,
WidgetOutput,
WidgetConfigure,
WidgetConfiguration,
} from "../widget.metadata";
import {
Component,
EventEmitter,
OnInit,
Output,
ViewChild,
HostListener,
} from "@angular/core";
import { IslandSelectionParams } from "../interfaces/list.interfaces";
import { ReplaySubject, Subject } from "rxjs";
import { DataListHierachicalComponent } from "./data-list-hierachical-component/data-list-hierachical.component";
import { WidgetConfig, getOrDefault } from "../widget.configuration";
import { DataListHierachicalConfiguration } from "../interfaces/list.interfaces";
@WidgetComponent("nm-data-hierarchical-list")
@Component({
selector: "nm-data-hierarchical-list",
templateUrl: "./data-hierarchical-list.component.html",
styleUrls: ["./data-list.component.widget.scss"],
})
export class DataHierarchicalListComponentWidget extends DataListComponentWidget {
@ViewChild(DataListHierachicalComponent, { static: true })
component: DataListHierachicalComponent;
@WidgetConfiguration()
public configuration: WidgetConfig<DataListHierachicalConfiguration>;
/**
* Input that takes a function, that takes the following parameter and defines how to handle dynamic columns, selected from the dialog:
* dynamicColumns: The columns that got selected
* columnUpdater: A function that takes one parameter (the columns that should be displayed for the root table) and updates the columns accordingly
* islandColumnUpdater: A function that takes two parameters (islandName, the columns that should be displayed for the island) and updates the columns accordingly
*/
@WidgetInput()
public dynamicColumnHandler = new ReplaySubject<any>(1);
/**
* Input that expands/collapses the children of the grid if given true/ false
*/
@WidgetInput()
public expandChildren = new Subject<boolean>();
/**
* Emits children selected items
*/
@WidgetOutput()
public childSelectedItems = new Subject<IslandSelectionParams>();
/**
* Emits dynamic islands columns
*/
@WidgetOutput()
public dynamicIslandColumns = new Subject<any>();
/**
* Shows/Hides table
*/
@WidgetInput("hide")
public hide: ReplaySubject<boolean> = new ReplaySubject<boolean>();
public hideTable: boolean = false;
public withHeader: boolean = true;
@WidgetConfigure()
protected configureWidget(
configuration: WidgetConfig<DataListHierachicalConfiguration>
) {
super.configureWidget(configuration);
this.hideTable = configuration.configuration.hideTable
? configuration.configuration.hideTable
: this.hideTable;
this.withHeader = getOrDefault(
this.configuration.configuration.withHeader,
true
);
this.hide.asObservable().subscribe((hide) => {
this.hideTable = hide;
});
}
}
<nm-widgetframe
[class.hidden]="hideTable"
[configuration]="configuration"
[infoPlacement]="'bottom'"
[infoText]="infoText"
[infoWidth]="configuration.configuration.infoWidth"
[infoHeight]="configuration.configuration.infoHeight"
[infoTitle]="title"
[isCollapsible]="isCollapsible"
[toolbarInvisible]="!withHeader"
[wikiLink]="wikiLink"
[withBorder]="withBorder"
[header]="header"
>
<ng-container slot="title">
{{ title | translate }}
<ng-container *ngIf="infoTitle">{{ infoTitle }} </ng-container>
<ng-container
*ngIf="
renderCount && !configuration.configuration.totalWithSubheader && total
| async as totalValue
"
>({{ totalValue }})
</ng-container>
</ng-container>
<div slot="buttons" class="nm-widgetframe__buttons">
<nm-context-selector
*ngIf="clients"
[contexts]="clients"
[placeholder]="'table.head.maintenance-level' | translate"
[(ngModel)]="maintenanceLevel"
[clearable]="false"
field="clientId"
(ngModelChange)="onMaintenanceLevelChange($event)"
>
</nm-context-selector>
<mat-form-field *ngIf="locales">
<nm-combo
class="combo"
tabIndex="0"
[options]="locales"
[valueKey]="languageSelectorValueProperty"
[displayKey]="'description'"
[filterPlaceholder]="'placeholder.search' | translate"
[openOnFocus]="true"
[(value)]="selectedLocale"
(valueChange)="setSelectedLocale($event)"
[clearable]="false"
[placeholder]="'table.head.language' | translate"
></nm-combo>
</mat-form-field>
</div>
<div slot="content" class="nm-widgetframe__content">
<nm-data-list-hierachical-component
#grid
[configuration]="configuration.configuration"
[uri]="inputChannel"
[reload]="reloadChannel"
[reset]="resetChannel"
(dynamicColumns)="dynamicColumnsOutput.next($event)"
(selectedItems)="selectedItems.next($event)"
(editedRows)="onEditedRows($event)"
(editedRow)="editedRowOutput.next($event)"
(childSelectedItems)="childSelectedItems.next($event)"
[export]="export"
[clearRowSelection]="clearRowSelectionChannel"
[clearFiltersAndSorting]="clearFiltersAndSortingChannel"
[attributeUrl]="attributeUrlInput"
[resetEditData]="resetEditData"
[dataTypeMode]="dataTypeMode"
[data]="data"
[locale]="selectedLocale"
[products]="productsInput"
(total)="setTotal($event)"
[shownAttributesIn]="shownAttributesIn"
(dynamicPrefix)="dynamicPrefixOutput.next($event)"
(shownAttributes)="shownAttributesOutput.next($event)"
(dynamicIslandColumns)="dynamicIslandColumns.next($event)"
(viewMode)="viewModeOutput.next($event)"
[dynamicColumnHandler]="dynamicColumnHandler"
[refreshRows]="refreshRows"
[expandChildren]="expandChildren"
(dataLoaded)="dataLoadedOutput.next()"
(currentData)="currentData.next($event)"
(rowEditEnter)="rowEditEnter.next($event)"
(rowEditLeave)="rowEditLeave.next($event)"
[dynamicColumnsIn]="dynamicColumnsIn"
[restoreGlobalFilter]="restoreGlobalFilter"
(api)="apiOutput.next($event)"
(statusOut)="statusOutput.next($event)"
(isValid)="validationOutput.next($event)"
[dataTypeInput]="dataTypeInput"
[preselectAttributeProfile]="preselectAttributeProfile"
(onCellSelect)="setSelectedCell($event)"
>
</nm-data-list-hierachical-component>
<nm-default-data-list-footer
[configuration]="configuration.configuration"
[selected-items]="selectedItems"
[total]="total"
[grid]="grid"
[column]="selectedColumn"
[cell]="selectedCell"
[link]="grid.listService.linkWithoutPaging"
[refreshButtons]="refreshButtonsTrigger"
[api]="apiOutput | async"
(export)="doExport($event)"
[viewMode]="viewModeOutput | async"
[dataType]="dataTypeOutput | async"
>
</nm-default-data-list-footer>
</div>
</nm-widgetframe>