6635 lines
784 KiB
JavaScript
6635 lines
784 KiB
JavaScript
import { animate, style, transition, trigger } from '@angular/animations';
|
|
import { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
import { booleanAttribute, ChangeDetectionStrategy, Component, ContentChildren, Directive, EventEmitter, HostListener, Inject, Injectable, Input, NgModule, numberAttribute, Optional, Output, PLATFORM_ID, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { FilterMatchMode, FilterOperator, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';
|
|
import { ButtonModule } from 'primeng/button';
|
|
import { CalendarModule } from 'primeng/calendar';
|
|
import { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';
|
|
import { DropdownModule } from 'primeng/dropdown';
|
|
import { ArrowDownIcon } from 'primeng/icons/arrowdown';
|
|
import { ArrowUpIcon } from 'primeng/icons/arrowup';
|
|
import { CheckIcon } from 'primeng/icons/check';
|
|
import { FilterIcon } from 'primeng/icons/filter';
|
|
import { FilterSlashIcon } from 'primeng/icons/filterslash';
|
|
import { PlusIcon } from 'primeng/icons/plus';
|
|
import { SortAltIcon } from 'primeng/icons/sortalt';
|
|
import { SortAmountDownIcon } from 'primeng/icons/sortamountdown';
|
|
import { SortAmountUpAltIcon } from 'primeng/icons/sortamountupalt';
|
|
import { SpinnerIcon } from 'primeng/icons/spinner';
|
|
import { TrashIcon } from 'primeng/icons/trash';
|
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
import { InputTextModule } from 'primeng/inputtext';
|
|
import { PaginatorModule } from 'primeng/paginator';
|
|
import { ScrollerModule } from 'primeng/scroller';
|
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
|
|
import { ObjectUtils, UniqueComponentId, ZIndexUtils } from 'primeng/utils';
|
|
import { Subject } from 'rxjs';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "primeng/api";
|
|
import * as i2 from "@angular/common";
|
|
import * as i3 from "primeng/paginator";
|
|
import * as i4 from "primeng/scroller";
|
|
import * as i5 from "primeng/dropdown";
|
|
import * as i6 from "@angular/forms";
|
|
import * as i7 from "primeng/button";
|
|
import * as i8 from "primeng/inputnumber";
|
|
import * as i9 from "primeng/inputtext";
|
|
import * as i10 from "primeng/calendar";
|
|
import * as i11 from "primeng/tristatecheckbox";
|
|
export class TableService {
|
|
sortSource = new Subject();
|
|
selectionSource = new Subject();
|
|
contextMenuSource = new Subject();
|
|
valueSource = new Subject();
|
|
totalRecordsSource = new Subject();
|
|
columnsSource = new Subject();
|
|
sortSource$ = this.sortSource.asObservable();
|
|
selectionSource$ = this.selectionSource.asObservable();
|
|
contextMenuSource$ = this.contextMenuSource.asObservable();
|
|
valueSource$ = this.valueSource.asObservable();
|
|
totalRecordsSource$ = this.totalRecordsSource.asObservable();
|
|
columnsSource$ = this.columnsSource.asObservable();
|
|
onSort(sortMeta) {
|
|
this.sortSource.next(sortMeta);
|
|
}
|
|
onSelectionChange() {
|
|
this.selectionSource.next(null);
|
|
}
|
|
onContextMenu(data) {
|
|
this.contextMenuSource.next(data);
|
|
}
|
|
onValueChange(value) {
|
|
this.valueSource.next(value);
|
|
}
|
|
onTotalRecordsChange(value) {
|
|
this.totalRecordsSource.next(value);
|
|
}
|
|
onColumnsChange(columns) {
|
|
this.columnsSource.next(columns);
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableService });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableService, decorators: [{
|
|
type: Injectable
|
|
}] });
|
|
/**
|
|
* Table displays data in tabular format.
|
|
* @group Components
|
|
*/
|
|
export class Table {
|
|
document;
|
|
platformId;
|
|
renderer;
|
|
el;
|
|
zone;
|
|
tableService;
|
|
cd;
|
|
filterService;
|
|
overlayService;
|
|
config;
|
|
/**
|
|
* An array of objects to represent dynamic columns that are frozen.
|
|
* @group Props
|
|
*/
|
|
frozenColumns;
|
|
/**
|
|
* An array of objects to display as frozen.
|
|
* @group Props
|
|
*/
|
|
frozenValue;
|
|
/**
|
|
* Inline style of the component.
|
|
* @group Props
|
|
*/
|
|
style;
|
|
/**
|
|
* Style class of the component.
|
|
* @group Props
|
|
*/
|
|
styleClass;
|
|
/**
|
|
* Inline style of the table.
|
|
* @group Props
|
|
*/
|
|
tableStyle;
|
|
/**
|
|
* Style class of the table.
|
|
* @group Props
|
|
*/
|
|
tableStyleClass;
|
|
/**
|
|
* When specified as true, enables the pagination.
|
|
* @group Props
|
|
*/
|
|
paginator;
|
|
/**
|
|
* Number of page links to display in paginator.
|
|
* @group Props
|
|
*/
|
|
pageLinks = 5;
|
|
/**
|
|
* Array of integer/object values to display inside rows per page dropdown of paginator
|
|
* @group Props
|
|
*/
|
|
rowsPerPageOptions;
|
|
/**
|
|
* Whether to show it even there is only one page.
|
|
* @group Props
|
|
*/
|
|
alwaysShowPaginator = true;
|
|
/**
|
|
* Position of the paginator, options are "top", "bottom" or "both".
|
|
* @group Props
|
|
*/
|
|
paginatorPosition = 'bottom';
|
|
/**
|
|
* Custom style class for paginator
|
|
* @group Props
|
|
*/
|
|
paginatorStyleClass;
|
|
/**
|
|
* Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
* @group Props
|
|
*/
|
|
paginatorDropdownAppendTo;
|
|
/**
|
|
* Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
* @group Props
|
|
*/
|
|
paginatorDropdownScrollHeight = '200px';
|
|
/**
|
|
* Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
|
|
* @group Props
|
|
*/
|
|
currentPageReportTemplate = '{currentPage} of {totalPages}';
|
|
/**
|
|
* Whether to display current page report.
|
|
* @group Props
|
|
*/
|
|
showCurrentPageReport;
|
|
/**
|
|
* Whether to display a dropdown to navigate to any page.
|
|
* @group Props
|
|
*/
|
|
showJumpToPageDropdown;
|
|
/**
|
|
* Whether to display a input to navigate to any page.
|
|
* @group Props
|
|
*/
|
|
showJumpToPageInput;
|
|
/**
|
|
* When enabled, icons are displayed on paginator to go first and last page.
|
|
* @group Props
|
|
*/
|
|
showFirstLastIcon = true;
|
|
/**
|
|
* Whether to show page links.
|
|
* @group Props
|
|
*/
|
|
showPageLinks = true;
|
|
/**
|
|
* Sort order to use when an unsorted column gets sorted by user interaction.
|
|
* @group Props
|
|
*/
|
|
defaultSortOrder = 1;
|
|
/**
|
|
* Defines whether sorting works on single column or on multiple columns.
|
|
* @group Props
|
|
*/
|
|
sortMode = 'single';
|
|
/**
|
|
* When true, resets paginator to first page after sorting. Available only when sortMode is set to single.
|
|
* @group Props
|
|
*/
|
|
resetPageOnSort = true;
|
|
/**
|
|
* Specifies the selection mode, valid values are "single" and "multiple".
|
|
* @group Props
|
|
*/
|
|
selectionMode;
|
|
/**
|
|
* When enabled with paginator and checkbox selection mode, the select all checkbox in the header will select all rows on the current page.
|
|
* @group Props
|
|
*/
|
|
selectionPageOnly;
|
|
/**
|
|
* Selected row with a context menu.
|
|
* @group Props
|
|
*/
|
|
contextMenuSelection;
|
|
/**
|
|
* Callback to invoke on context menu selection change.
|
|
* @param {*} object - row data.
|
|
* @group Emits
|
|
*/
|
|
contextMenuSelectionChange = new EventEmitter();
|
|
/**
|
|
* Defines the behavior of context menu selection, in "separate" mode context menu updates contextMenuSelection property whereas in joint mode selection property is used instead so that when row selection is enabled, both row selection and context menu selection use the same property.
|
|
* @group Props
|
|
*/
|
|
contextMenuSelectionMode = 'separate';
|
|
/**
|
|
* A property to uniquely identify a record in data.
|
|
* @group Props
|
|
*/
|
|
dataKey;
|
|
/**
|
|
* Defines whether metaKey should be considered for the selection. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
* @group Props
|
|
*/
|
|
metaKeySelection = false;
|
|
/**
|
|
* Defines if the row is selectable.
|
|
* @group Props
|
|
*/
|
|
rowSelectable;
|
|
/**
|
|
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
|
|
* @group Props
|
|
*/
|
|
rowTrackBy = (index, item) => item;
|
|
/**
|
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
* @group Props
|
|
*/
|
|
lazy = false;
|
|
/**
|
|
* Whether to call lazy loading on initialization.
|
|
* @group Props
|
|
*/
|
|
lazyLoadOnInit = true;
|
|
/**
|
|
* Algorithm to define if a row is selected, valid values are "equals" that compares by reference and "deepEquals" that compares all fields.
|
|
* @group Props
|
|
*/
|
|
compareSelectionBy = 'deepEquals';
|
|
/**
|
|
* Character to use as the csv separator.
|
|
* @group Props
|
|
*/
|
|
csvSeparator = ',';
|
|
/**
|
|
* Name of the exported file.
|
|
* @group Props
|
|
*/
|
|
exportFilename = 'download';
|
|
/**
|
|
* An array of FilterMetadata objects to provide external filters.
|
|
* @group Props
|
|
*/
|
|
filters = {};
|
|
/**
|
|
* An array of fields as string to use in global filtering.
|
|
* @group Props
|
|
*/
|
|
globalFilterFields;
|
|
/**
|
|
* Delay in milliseconds before filtering the data.
|
|
* @group Props
|
|
*/
|
|
filterDelay = 300;
|
|
/**
|
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
* @group Props
|
|
*/
|
|
filterLocale;
|
|
/**
|
|
* Map instance to keep the expanded rows where key of the map is the data key of the row.
|
|
* @group Props
|
|
*/
|
|
expandedRowKeys = {};
|
|
/**
|
|
* Map instance to keep the rows being edited where key of the map is the data key of the row.
|
|
* @group Props
|
|
*/
|
|
editingRowKeys = {};
|
|
/**
|
|
* Whether multiple rows can be expanded at any time. Valid values are "multiple" and "single".
|
|
* @group Props
|
|
*/
|
|
rowExpandMode = 'multiple';
|
|
/**
|
|
* Enables scrollable tables.
|
|
* @group Props
|
|
*/
|
|
scrollable;
|
|
/**
|
|
* Orientation of the scrolling, options are "vertical", "horizontal" and "both".
|
|
* @group Props
|
|
* @deprecated Property is obselete since v14.2.0.
|
|
*/
|
|
scrollDirection = 'vertical';
|
|
/**
|
|
* Type of the row grouping, valid values are "subheader" and "rowspan".
|
|
* @group Props
|
|
*/
|
|
rowGroupMode;
|
|
/**
|
|
* Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
|
|
* @group Props
|
|
*/
|
|
scrollHeight;
|
|
/**
|
|
* Whether the data should be loaded on demand during scroll.
|
|
* @group Props
|
|
*/
|
|
virtualScroll;
|
|
/**
|
|
* Height of a row to use in calculations of virtual scrolling.
|
|
* @group Props
|
|
*/
|
|
virtualScrollItemSize;
|
|
/**
|
|
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
* @group Props
|
|
*/
|
|
virtualScrollOptions;
|
|
/**
|
|
* Threshold in milliseconds to delay lazy loading during scrolling.
|
|
* @group Props
|
|
*/
|
|
virtualScrollDelay = 250;
|
|
/**
|
|
* Width of the frozen columns container.
|
|
* @group Props
|
|
*/
|
|
frozenWidth;
|
|
/**
|
|
* Defines if the table is responsive.
|
|
* @group Props
|
|
* @deprecated table is always responsive with scrollable behavior.
|
|
*/
|
|
get responsive() {
|
|
return this._responsive;
|
|
}
|
|
set responsive(val) {
|
|
this._responsive = val;
|
|
console.warn('responsive property is deprecated as table is always responsive with scrollable behavior.');
|
|
}
|
|
_responsive;
|
|
/**
|
|
* Local ng-template varilable of a ContextMenu.
|
|
* @group Props
|
|
*/
|
|
contextMenu;
|
|
/**
|
|
* When enabled, columns can be resized using drag and drop.
|
|
* @group Props
|
|
*/
|
|
resizableColumns;
|
|
/**
|
|
* Defines whether the overall table width should change on column resize, valid values are "fit" and "expand".
|
|
* @group Props
|
|
*/
|
|
columnResizeMode = 'fit';
|
|
/**
|
|
* When enabled, columns can be reordered using drag and drop.
|
|
* @group Props
|
|
*/
|
|
reorderableColumns;
|
|
/**
|
|
* Displays a loader to indicate data load is in progress.
|
|
* @group Props
|
|
*/
|
|
loading;
|
|
/**
|
|
* The icon to show while indicating data load is in progress.
|
|
* @group Props
|
|
*/
|
|
loadingIcon;
|
|
/**
|
|
* Whether to show the loading mask when loading property is true.
|
|
* @group Props
|
|
*/
|
|
showLoader = true;
|
|
/**
|
|
* Adds hover effect to rows without the need for selectionMode. Note that tr elements that can be hovered need to have "p-selectable-row" class for rowHover to work.
|
|
* @group Props
|
|
*/
|
|
rowHover;
|
|
/**
|
|
* Whether to use the default sorting or a custom one using sortFunction.
|
|
* @group Props
|
|
*/
|
|
customSort;
|
|
/**
|
|
* Whether to use the initial sort badge or not.
|
|
* @group Props
|
|
*/
|
|
showInitialSortBadge = true;
|
|
/**
|
|
* Whether the cell widths scale according to their content or not. Deprecated: Table layout is always "auto".
|
|
* @group Props
|
|
*/
|
|
autoLayout;
|
|
/**
|
|
* Export function.
|
|
* @group Props
|
|
*/
|
|
exportFunction;
|
|
/**
|
|
* Custom export header of the column to be exported as CSV.
|
|
* @group Props
|
|
*/
|
|
exportHeader;
|
|
/**
|
|
* Unique identifier of a stateful table to use in state storage.
|
|
* @group Props
|
|
*/
|
|
stateKey;
|
|
/**
|
|
* Defines where a stateful table keeps its state, valid values are "session" for sessionStorage and "local" for localStorage.
|
|
* @group Props
|
|
*/
|
|
stateStorage = 'session';
|
|
/**
|
|
* Defines the editing mode, valid values are "cell" and "row".
|
|
* @group Props
|
|
*/
|
|
editMode = 'cell';
|
|
/**
|
|
* Field name to use in row grouping.
|
|
* @group Props
|
|
*/
|
|
groupRowsBy;
|
|
/**
|
|
* Order to sort when default row grouping is enabled.
|
|
* @group Props
|
|
*/
|
|
groupRowsByOrder = 1;
|
|
/**
|
|
* Defines the responsive mode, valid options are "stack" and "scroll".
|
|
* @group Props
|
|
*/
|
|
responsiveLayout = 'scroll';
|
|
/**
|
|
* The breakpoint to define the maximum width boundary when using stack responsive layout.
|
|
* @group Props
|
|
*/
|
|
breakpoint = '960px';
|
|
/**
|
|
* Locale to be used in paginator formatting.
|
|
* @group Props
|
|
*/
|
|
paginatorLocale;
|
|
/**
|
|
* An array of objects to display.
|
|
* @group Props
|
|
*/
|
|
get value() {
|
|
return this._value;
|
|
}
|
|
set value(val) {
|
|
this._value = val;
|
|
}
|
|
/**
|
|
* An array of objects to represent dynamic columns.
|
|
* @group Props
|
|
*/
|
|
get columns() {
|
|
return this._columns;
|
|
}
|
|
set columns(cols) {
|
|
this._columns = cols;
|
|
}
|
|
/**
|
|
* Index of the first row to be displayed.
|
|
* @group Props
|
|
*/
|
|
get first() {
|
|
return this._first;
|
|
}
|
|
set first(val) {
|
|
this._first = val;
|
|
}
|
|
/**
|
|
* Number of rows to display per page.
|
|
* @group Props
|
|
*/
|
|
get rows() {
|
|
return this._rows;
|
|
}
|
|
set rows(val) {
|
|
this._rows = val;
|
|
}
|
|
/**
|
|
* Number of total records, defaults to length of value when not defined.
|
|
* @group Props
|
|
*/
|
|
get totalRecords() {
|
|
return this._totalRecords;
|
|
}
|
|
set totalRecords(val) {
|
|
this._totalRecords = val;
|
|
this.tableService.onTotalRecordsChange(this._totalRecords);
|
|
}
|
|
/**
|
|
* Name of the field to sort data by default.
|
|
* @group Props
|
|
*/
|
|
get sortField() {
|
|
return this._sortField;
|
|
}
|
|
set sortField(val) {
|
|
this._sortField = val;
|
|
}
|
|
/**
|
|
* Order to sort when default sorting is enabled.
|
|
* @group Props
|
|
*/
|
|
get sortOrder() {
|
|
return this._sortOrder;
|
|
}
|
|
set sortOrder(val) {
|
|
this._sortOrder = val;
|
|
}
|
|
/**
|
|
* An array of SortMeta objects to sort the data by default in multiple sort mode.
|
|
* @group Props
|
|
*/
|
|
get multiSortMeta() {
|
|
return this._multiSortMeta;
|
|
}
|
|
set multiSortMeta(val) {
|
|
this._multiSortMeta = val;
|
|
}
|
|
/**
|
|
* Selected row in single mode or an array of values in multiple mode.
|
|
* @group Props
|
|
*/
|
|
get selection() {
|
|
return this._selection;
|
|
}
|
|
set selection(val) {
|
|
this._selection = val;
|
|
}
|
|
/**
|
|
* Whether all data is selected.
|
|
* @group Props
|
|
*/
|
|
get selectAll() {
|
|
return this._selection;
|
|
}
|
|
set selectAll(val) {
|
|
this._selection = val;
|
|
}
|
|
/**
|
|
* Emits when the all of the items selected or unselected.
|
|
* @param {TableSelectAllChangeEvent} event - custom all selection change event.
|
|
* @group Emits
|
|
*/
|
|
selectAllChange = new EventEmitter();
|
|
/**
|
|
* Callback to invoke on selection changed.
|
|
* @param {any | null} value - selected data.
|
|
* @group Emits
|
|
*/
|
|
selectionChange = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is selected.
|
|
* @param {TableRowSelectEvent} event - custom select event.
|
|
* @group Emits
|
|
*/
|
|
onRowSelect = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is unselected.
|
|
* @param {TableRowUnSelectEvent} event - custom unselect event.
|
|
* @group Emits
|
|
*/
|
|
onRowUnselect = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when pagination occurs.
|
|
* @param {TablePageEvent} event - custom pagination event.
|
|
* @group Emits
|
|
*/
|
|
onPage = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a column gets sorted.
|
|
* @param {Object} object - sort meta.
|
|
* @group Emits
|
|
*/
|
|
onSort = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when data is filtered.
|
|
* @param {TableFilterEvent} event - custom filtering event.
|
|
* @group Emits
|
|
*/
|
|
onFilter = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when paging, sorting or filtering happens in lazy mode.
|
|
* @param {TableLazyLoadEvent} event - custom lazy loading event.
|
|
* @group Emits
|
|
*/
|
|
onLazyLoad = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is expanded.
|
|
* @param {TableRowExpandEvent} event - custom row expand event.
|
|
* @group Emits
|
|
*/
|
|
onRowExpand = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is collapsed.
|
|
* @param {TableRowCollapseEvent} event - custom row collapse event.
|
|
* @group Emits
|
|
*/
|
|
onRowCollapse = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is selected with right click.
|
|
* @param {TableContextMenuSelectEvent} event - custom context menu select event.
|
|
* @group Emits
|
|
*/
|
|
onContextMenuSelect = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a column is resized.
|
|
* @param {TableColResizeEvent} event - custom column resize event.
|
|
* @group Emits
|
|
*/
|
|
onColResize = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a column is reordered.
|
|
* @param {TableColumnReorderEvent} event - custom column reorder event.
|
|
* @group Emits
|
|
*/
|
|
onColReorder = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a row is reordered.
|
|
* @param {TableRowReorderEvent} event - custom row reorder event.
|
|
* @group Emits
|
|
*/
|
|
onRowReorder = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when a cell switches to edit mode.
|
|
* @param {TableEditInitEvent} event - custom edit init event.
|
|
* @group Emits
|
|
*/
|
|
onEditInit = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when cell edit is completed.
|
|
* @param {TableEditCompleteEvent} event - custom edit complete event.
|
|
* @group Emits
|
|
*/
|
|
onEditComplete = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when cell edit is cancelled with escape key.
|
|
* @param {TableEditCancelEvent} event - custom edit cancel event.
|
|
* @group Emits
|
|
*/
|
|
onEditCancel = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when state of header checkbox changes.
|
|
* @param {TableHeaderCheckboxToggleEvent} event - custom header checkbox event.
|
|
* @group Emits
|
|
*/
|
|
onHeaderCheckboxToggle = new EventEmitter();
|
|
/**
|
|
* A function to implement custom sorting, refer to sorting section for details.
|
|
* @param {any} any - sort meta.
|
|
* @group Emits
|
|
*/
|
|
sortFunction = new EventEmitter();
|
|
/**
|
|
* Callback to invoke on pagination.
|
|
* @param {number} number - first element.
|
|
* @group Emits
|
|
*/
|
|
firstChange = new EventEmitter();
|
|
/**
|
|
* Callback to invoke on rows change.
|
|
* @param {number} number - Row count.
|
|
* @group Emits
|
|
*/
|
|
rowsChange = new EventEmitter();
|
|
/**
|
|
* Callback to invoke table state is saved.
|
|
* @param {TableState} object - table state.
|
|
* @group Emits
|
|
*/
|
|
onStateSave = new EventEmitter();
|
|
/**
|
|
* Callback to invoke table state is restored.
|
|
* @param {TableState} object - table state.
|
|
* @group Emits
|
|
*/
|
|
onStateRestore = new EventEmitter();
|
|
containerViewChild;
|
|
resizeHelperViewChild;
|
|
reorderIndicatorUpViewChild;
|
|
reorderIndicatorDownViewChild;
|
|
wrapperViewChild;
|
|
tableViewChild;
|
|
tableHeaderViewChild;
|
|
tableFooterViewChild;
|
|
scroller;
|
|
templates;
|
|
/**
|
|
* Indicates the height of rows to be scrolled.
|
|
* @group Props
|
|
* @deprecated use virtualScrollItemSize property instead.
|
|
*/
|
|
get virtualRowHeight() {
|
|
return this._virtualRowHeight;
|
|
}
|
|
set virtualRowHeight(val) {
|
|
this._virtualRowHeight = val;
|
|
console.warn('The virtualRowHeight property is deprecated.');
|
|
}
|
|
_virtualRowHeight = 28;
|
|
_value = [];
|
|
_columns;
|
|
_totalRecords = 0;
|
|
_first = 0;
|
|
_rows;
|
|
filteredValue;
|
|
headerTemplate;
|
|
headerGroupedTemplate;
|
|
bodyTemplate;
|
|
loadingBodyTemplate;
|
|
captionTemplate;
|
|
footerTemplate;
|
|
footerGroupedTemplate;
|
|
summaryTemplate;
|
|
colGroupTemplate;
|
|
expandedRowTemplate;
|
|
groupHeaderTemplate;
|
|
groupFooterTemplate;
|
|
frozenExpandedRowTemplate;
|
|
frozenHeaderTemplate;
|
|
frozenBodyTemplate;
|
|
frozenFooterTemplate;
|
|
frozenColGroupTemplate;
|
|
emptyMessageTemplate;
|
|
paginatorLeftTemplate;
|
|
paginatorRightTemplate;
|
|
paginatorDropdownItemTemplate;
|
|
loadingIconTemplate;
|
|
reorderIndicatorUpIconTemplate;
|
|
reorderIndicatorDownIconTemplate;
|
|
sortIconTemplate;
|
|
checkboxIconTemplate;
|
|
headerCheckboxIconTemplate;
|
|
paginatorDropdownIconTemplate;
|
|
paginatorFirstPageLinkIconTemplate;
|
|
paginatorLastPageLinkIconTemplate;
|
|
paginatorPreviousPageLinkIconTemplate;
|
|
paginatorNextPageLinkIconTemplate;
|
|
selectionKeys = {};
|
|
lastResizerHelperX;
|
|
reorderIconWidth;
|
|
reorderIconHeight;
|
|
draggedColumn;
|
|
draggedRowIndex;
|
|
droppedRowIndex;
|
|
rowDragging;
|
|
dropPosition;
|
|
editingCell;
|
|
editingCellData;
|
|
editingCellField;
|
|
editingCellRowIndex;
|
|
selfClick;
|
|
documentEditListener;
|
|
_multiSortMeta;
|
|
_sortField;
|
|
_sortOrder = 1;
|
|
preventSelectionSetterPropagation;
|
|
_selection;
|
|
_selectAll = null;
|
|
anchorRowIndex;
|
|
rangeRowIndex;
|
|
filterTimeout;
|
|
initialized;
|
|
rowTouched;
|
|
restoringSort;
|
|
restoringFilter;
|
|
stateRestored;
|
|
columnOrderStateRestored;
|
|
columnWidthsState;
|
|
tableWidthState;
|
|
overlaySubscription;
|
|
resizeColumnElement;
|
|
columnResizing = false;
|
|
rowGroupHeaderStyleObject = {};
|
|
id = UniqueComponentId();
|
|
styleElement;
|
|
responsiveStyleElement;
|
|
window;
|
|
constructor(document, platformId, renderer, el, zone, tableService, cd, filterService, overlayService, config) {
|
|
this.document = document;
|
|
this.platformId = platformId;
|
|
this.renderer = renderer;
|
|
this.el = el;
|
|
this.zone = zone;
|
|
this.tableService = tableService;
|
|
this.cd = cd;
|
|
this.filterService = filterService;
|
|
this.overlayService = overlayService;
|
|
this.config = config;
|
|
this.window = this.document.defaultView;
|
|
}
|
|
ngOnInit() {
|
|
if (this.lazy && this.lazyLoadOnInit) {
|
|
if (!this.virtualScroll) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
if (this.restoringFilter) {
|
|
this.restoringFilter = false;
|
|
}
|
|
}
|
|
if (this.responsiveLayout === 'stack') {
|
|
this.createResponsiveStyle();
|
|
}
|
|
this.initialized = true;
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'caption':
|
|
this.captionTemplate = item.template;
|
|
break;
|
|
case 'header':
|
|
this.headerTemplate = item.template;
|
|
break;
|
|
case 'headergrouped':
|
|
this.headerGroupedTemplate = item.template;
|
|
break;
|
|
case 'body':
|
|
this.bodyTemplate = item.template;
|
|
break;
|
|
case 'loadingbody':
|
|
this.loadingBodyTemplate = item.template;
|
|
break;
|
|
case 'footer':
|
|
this.footerTemplate = item.template;
|
|
break;
|
|
case 'footergrouped':
|
|
this.footerGroupedTemplate = item.template;
|
|
break;
|
|
case 'summary':
|
|
this.summaryTemplate = item.template;
|
|
break;
|
|
case 'colgroup':
|
|
this.colGroupTemplate = item.template;
|
|
break;
|
|
case 'rowexpansion':
|
|
this.expandedRowTemplate = item.template;
|
|
break;
|
|
case 'groupheader':
|
|
this.groupHeaderTemplate = item.template;
|
|
break;
|
|
case 'groupfooter':
|
|
this.groupFooterTemplate = item.template;
|
|
break;
|
|
case 'frozenheader':
|
|
this.frozenHeaderTemplate = item.template;
|
|
break;
|
|
case 'frozenbody':
|
|
this.frozenBodyTemplate = item.template;
|
|
break;
|
|
case 'frozenfooter':
|
|
this.frozenFooterTemplate = item.template;
|
|
break;
|
|
case 'frozencolgroup':
|
|
this.frozenColGroupTemplate = item.template;
|
|
break;
|
|
case 'frozenrowexpansion':
|
|
this.frozenExpandedRowTemplate = item.template;
|
|
break;
|
|
case 'emptymessage':
|
|
this.emptyMessageTemplate = item.template;
|
|
break;
|
|
case 'paginatorleft':
|
|
this.paginatorLeftTemplate = item.template;
|
|
break;
|
|
case 'paginatorright':
|
|
this.paginatorRightTemplate = item.template;
|
|
break;
|
|
case 'paginatordropdownicon':
|
|
this.paginatorDropdownIconTemplate = item.template;
|
|
break;
|
|
case 'paginatordropdownitem':
|
|
this.paginatorDropdownItemTemplate = item.template;
|
|
break;
|
|
case 'paginatorfirstpagelinkicon':
|
|
this.paginatorFirstPageLinkIconTemplate = item.template;
|
|
break;
|
|
case 'paginatorlastpagelinkicon':
|
|
this.paginatorLastPageLinkIconTemplate = item.template;
|
|
break;
|
|
case 'paginatorpreviouspagelinkicon':
|
|
this.paginatorPreviousPageLinkIconTemplate = item.template;
|
|
break;
|
|
case 'paginatornextpagelinkicon':
|
|
this.paginatorNextPageLinkIconTemplate = item.template;
|
|
break;
|
|
case 'loadingicon':
|
|
this.loadingIconTemplate = item.template;
|
|
break;
|
|
case 'reorderindicatorupicon':
|
|
this.reorderIndicatorUpIconTemplate = item.template;
|
|
break;
|
|
case 'reorderindicatordownicon':
|
|
this.reorderIndicatorDownIconTemplate = item.template;
|
|
break;
|
|
case 'sorticon':
|
|
this.sortIconTemplate = item.template;
|
|
break;
|
|
case 'checkboxicon':
|
|
this.checkboxIconTemplate = item.template;
|
|
break;
|
|
case 'headercheckboxicon':
|
|
this.headerCheckboxIconTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
ngAfterViewInit() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (this.isStateful() && this.resizableColumns) {
|
|
this.restoreColumnWidths();
|
|
}
|
|
}
|
|
}
|
|
ngOnChanges(simpleChange) {
|
|
if (simpleChange.value) {
|
|
if (this.isStateful() && !this.stateRestored && isPlatformBrowser(this.platformId)) {
|
|
this.restoreState();
|
|
}
|
|
this._value = simpleChange.value.currentValue;
|
|
if (!this.lazy) {
|
|
this.totalRecords = this._value ? this._value.length : 0;
|
|
if (this.sortMode == 'single' && (this.sortField || this.groupRowsBy))
|
|
this.sortSingle();
|
|
else if (this.sortMode == 'multiple' && (this.multiSortMeta || this.groupRowsBy))
|
|
this.sortMultiple();
|
|
else if (this.hasFilter())
|
|
//sort already filters
|
|
this._filter();
|
|
}
|
|
this.tableService.onValueChange(simpleChange.value.currentValue);
|
|
}
|
|
if (simpleChange.columns) {
|
|
if (!this.isStateful()) {
|
|
this._columns = simpleChange.columns.currentValue;
|
|
this.tableService.onColumnsChange(simpleChange.columns.currentValue);
|
|
}
|
|
if (this._columns && this.isStateful() && this.reorderableColumns && !this.columnOrderStateRestored) {
|
|
this.restoreColumnOrder();
|
|
this.tableService.onColumnsChange(this._columns);
|
|
}
|
|
}
|
|
if (simpleChange.sortField) {
|
|
this._sortField = simpleChange.sortField.currentValue;
|
|
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
if (!this.lazy || this.initialized) {
|
|
if (this.sortMode === 'single') {
|
|
this.sortSingle();
|
|
}
|
|
}
|
|
}
|
|
if (simpleChange.groupRowsBy) {
|
|
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
if (!this.lazy || this.initialized) {
|
|
if (this.sortMode === 'single') {
|
|
this.sortSingle();
|
|
}
|
|
}
|
|
}
|
|
if (simpleChange.sortOrder) {
|
|
this._sortOrder = simpleChange.sortOrder.currentValue;
|
|
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
if (!this.lazy || this.initialized) {
|
|
if (this.sortMode === 'single') {
|
|
this.sortSingle();
|
|
}
|
|
}
|
|
}
|
|
if (simpleChange.groupRowsByOrder) {
|
|
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
if (!this.lazy || this.initialized) {
|
|
if (this.sortMode === 'single') {
|
|
this.sortSingle();
|
|
}
|
|
}
|
|
}
|
|
if (simpleChange.multiSortMeta) {
|
|
this._multiSortMeta = simpleChange.multiSortMeta.currentValue;
|
|
if (this.sortMode === 'multiple' && (this.initialized || (!this.lazy && !this.virtualScroll))) {
|
|
this.sortMultiple();
|
|
}
|
|
}
|
|
if (simpleChange.selection) {
|
|
this._selection = simpleChange.selection.currentValue;
|
|
if (!this.preventSelectionSetterPropagation) {
|
|
this.updateSelectionKeys();
|
|
this.tableService.onSelectionChange();
|
|
}
|
|
this.preventSelectionSetterPropagation = false;
|
|
}
|
|
if (simpleChange.selectAll) {
|
|
this._selectAll = simpleChange.selectAll.currentValue;
|
|
if (!this.preventSelectionSetterPropagation) {
|
|
this.updateSelectionKeys();
|
|
this.tableService.onSelectionChange();
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
this.preventSelectionSetterPropagation = false;
|
|
}
|
|
}
|
|
get processedData() {
|
|
return this.filteredValue || this.value || [];
|
|
}
|
|
_initialColWidths;
|
|
dataToRender(data) {
|
|
const _data = data || this.processedData;
|
|
if (_data && this.paginator) {
|
|
const first = this.lazy ? 0 : this.first;
|
|
return _data.slice(first, first + this.rows);
|
|
}
|
|
return _data;
|
|
}
|
|
updateSelectionKeys() {
|
|
if (this.dataKey && this._selection) {
|
|
this.selectionKeys = {};
|
|
if (Array.isArray(this._selection)) {
|
|
for (let data of this._selection) {
|
|
this.selectionKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
}
|
|
}
|
|
else {
|
|
this.selectionKeys[String(ObjectUtils.resolveFieldData(this._selection, this.dataKey))] = 1;
|
|
}
|
|
}
|
|
}
|
|
onPageChange(event) {
|
|
this.first = event.first;
|
|
this.rows = event.rows;
|
|
this.onPage.emit({
|
|
first: this.first,
|
|
rows: this.rows
|
|
});
|
|
if (this.lazy) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
this.firstChange.emit(this.first);
|
|
this.rowsChange.emit(this.rows);
|
|
this.tableService.onValueChange(this.value);
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
this.anchorRowIndex = null;
|
|
if (this.scrollable) {
|
|
this.resetScrollTop();
|
|
}
|
|
}
|
|
sort(event) {
|
|
let originalEvent = event.originalEvent;
|
|
if (this.sortMode === 'single') {
|
|
this._sortOrder = this.sortField === event.field ? this.sortOrder * -1 : this.defaultSortOrder;
|
|
this._sortField = event.field;
|
|
if (this.resetPageOnSort) {
|
|
this._first = 0;
|
|
this.firstChange.emit(this._first);
|
|
if (this.scrollable) {
|
|
this.resetScrollTop();
|
|
}
|
|
}
|
|
this.sortSingle();
|
|
}
|
|
if (this.sortMode === 'multiple') {
|
|
let metaKey = originalEvent.metaKey || originalEvent.ctrlKey;
|
|
let sortMeta = this.getSortMeta(event.field);
|
|
if (sortMeta) {
|
|
if (!metaKey) {
|
|
this._multiSortMeta = [{ field: event.field, order: sortMeta.order * -1 }];
|
|
if (this.resetPageOnSort) {
|
|
this._first = 0;
|
|
this.firstChange.emit(this._first);
|
|
if (this.scrollable) {
|
|
this.resetScrollTop();
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
sortMeta.order = sortMeta.order * -1;
|
|
}
|
|
}
|
|
else {
|
|
if (!metaKey || !this.multiSortMeta) {
|
|
this._multiSortMeta = [];
|
|
if (this.resetPageOnSort) {
|
|
this._first = 0;
|
|
this.firstChange.emit(this._first);
|
|
}
|
|
}
|
|
this._multiSortMeta.push({ field: event.field, order: this.defaultSortOrder });
|
|
}
|
|
this.sortMultiple();
|
|
}
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
this.anchorRowIndex = null;
|
|
}
|
|
sortSingle() {
|
|
let field = this.sortField || this.groupRowsBy;
|
|
let order = this.sortField ? this.sortOrder : this.groupRowsByOrder;
|
|
if (this.groupRowsBy && this.sortField && this.groupRowsBy !== this.sortField) {
|
|
this._multiSortMeta = [this.getGroupRowsMeta(), { field: this.sortField, order: this.sortOrder }];
|
|
this.sortMultiple();
|
|
return;
|
|
}
|
|
if (field && order) {
|
|
if (this.restoringSort) {
|
|
this.restoringSort = false;
|
|
}
|
|
if (this.lazy) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
else if (this.value) {
|
|
if (this.customSort) {
|
|
this.sortFunction.emit({
|
|
data: this.value,
|
|
mode: this.sortMode,
|
|
field: field,
|
|
order: order
|
|
});
|
|
}
|
|
else {
|
|
this.value.sort((data1, data2) => {
|
|
let value1 = ObjectUtils.resolveFieldData(data1, field);
|
|
let value2 = ObjectUtils.resolveFieldData(data2, field);
|
|
let result = null;
|
|
if (value1 == null && value2 != null)
|
|
result = -1;
|
|
else if (value1 != null && value2 == null)
|
|
result = 1;
|
|
else if (value1 == null && value2 == null)
|
|
result = 0;
|
|
else if (typeof value1 === 'string' && typeof value2 === 'string')
|
|
result = value1.localeCompare(value2);
|
|
else
|
|
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
return order * result;
|
|
});
|
|
this._value = [...this.value];
|
|
}
|
|
if (this.hasFilter()) {
|
|
this._filter();
|
|
}
|
|
}
|
|
let sortMeta = {
|
|
field: field,
|
|
order: order
|
|
};
|
|
this.onSort.emit(sortMeta);
|
|
this.tableService.onSort(sortMeta);
|
|
}
|
|
}
|
|
sortMultiple() {
|
|
if (this.groupRowsBy) {
|
|
if (!this._multiSortMeta)
|
|
this._multiSortMeta = [this.getGroupRowsMeta()];
|
|
else if (this.multiSortMeta[0].field !== this.groupRowsBy)
|
|
this._multiSortMeta = [this.getGroupRowsMeta(), ...this._multiSortMeta];
|
|
}
|
|
if (this.multiSortMeta) {
|
|
if (this.lazy) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
else if (this.value) {
|
|
if (this.customSort) {
|
|
this.sortFunction.emit({
|
|
data: this.value,
|
|
mode: this.sortMode,
|
|
multiSortMeta: this.multiSortMeta
|
|
});
|
|
}
|
|
else {
|
|
this.value.sort((data1, data2) => {
|
|
return this.multisortField(data1, data2, this.multiSortMeta, 0);
|
|
});
|
|
this._value = [...this.value];
|
|
}
|
|
if (this.hasFilter()) {
|
|
this._filter();
|
|
}
|
|
}
|
|
this.onSort.emit({
|
|
multisortmeta: this.multiSortMeta
|
|
});
|
|
this.tableService.onSort(this.multiSortMeta);
|
|
}
|
|
}
|
|
multisortField(data1, data2, multiSortMeta, index) {
|
|
const value1 = ObjectUtils.resolveFieldData(data1, multiSortMeta[index].field);
|
|
const value2 = ObjectUtils.resolveFieldData(data2, multiSortMeta[index].field);
|
|
if (ObjectUtils.compare(value1, value2, this.filterLocale) === 0) {
|
|
return multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, multiSortMeta, index + 1) : 0;
|
|
}
|
|
return this.compareValuesOnSort(value1, value2, multiSortMeta[index].order);
|
|
}
|
|
compareValuesOnSort(value1, value2, order) {
|
|
return ObjectUtils.sort(value1, value2, order, this.filterLocale, this.sortOrder);
|
|
}
|
|
getSortMeta(field) {
|
|
if (this.multiSortMeta && this.multiSortMeta.length) {
|
|
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
if (this.multiSortMeta[i].field === field) {
|
|
return this.multiSortMeta[i];
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
isSorted(field) {
|
|
if (this.sortMode === 'single') {
|
|
return this.sortField && this.sortField === field;
|
|
}
|
|
else if (this.sortMode === 'multiple') {
|
|
let sorted = false;
|
|
if (this.multiSortMeta) {
|
|
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
if (this.multiSortMeta[i].field == field) {
|
|
sorted = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return sorted;
|
|
}
|
|
}
|
|
handleRowClick(event) {
|
|
let target = event.originalEvent.target;
|
|
let targetNode = target.nodeName;
|
|
let parentNode = target.parentElement && target.parentElement.nodeName;
|
|
if (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' || parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' || DomHandler.hasClass(event.originalEvent.target, 'p-clickable')) {
|
|
return;
|
|
}
|
|
if (this.selectionMode) {
|
|
let rowData = event.rowData;
|
|
let rowIndex = event.rowIndex;
|
|
this.preventSelectionSetterPropagation = true;
|
|
if (this.isMultipleSelectionMode() && event.originalEvent.shiftKey && this.anchorRowIndex != null) {
|
|
DomHandler.clearSelection();
|
|
if (this.rangeRowIndex != null) {
|
|
this.clearSelectionRange(event.originalEvent);
|
|
}
|
|
this.rangeRowIndex = rowIndex;
|
|
this.selectRange(event.originalEvent, rowIndex);
|
|
}
|
|
else {
|
|
let selected = this.isSelected(rowData);
|
|
if (!selected && !this.isRowSelectable(rowData, rowIndex)) {
|
|
return;
|
|
}
|
|
let metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;
|
|
this.anchorRowIndex = rowIndex;
|
|
this.rangeRowIndex = rowIndex;
|
|
if (metaSelection) {
|
|
let metaKey = event.originalEvent.metaKey || event.originalEvent.ctrlKey;
|
|
if (selected && metaKey) {
|
|
if (this.isSingleSelectionMode()) {
|
|
this._selection = null;
|
|
this.selectionKeys = {};
|
|
this.selectionChange.emit(null);
|
|
}
|
|
else {
|
|
let selectionIndex = this.findIndexInSelection(rowData);
|
|
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
this.selectionChange.emit(this.selection);
|
|
if (dataKeyValue) {
|
|
delete this.selectionKeys[dataKeyValue];
|
|
}
|
|
}
|
|
this.onRowUnselect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row' });
|
|
}
|
|
else {
|
|
if (this.isSingleSelectionMode()) {
|
|
this._selection = rowData;
|
|
this.selectionChange.emit(rowData);
|
|
if (dataKeyValue) {
|
|
this.selectionKeys = {};
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
else if (this.isMultipleSelectionMode()) {
|
|
if (metaKey) {
|
|
this._selection = this.selection || [];
|
|
}
|
|
else {
|
|
this._selection = [];
|
|
this.selectionKeys = {};
|
|
}
|
|
this._selection = [...this.selection, rowData];
|
|
this.selectionChange.emit(this.selection);
|
|
if (dataKeyValue) {
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
this.onRowSelect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row', index: rowIndex });
|
|
}
|
|
}
|
|
else {
|
|
if (this.selectionMode === 'single') {
|
|
if (selected) {
|
|
this._selection = null;
|
|
this.selectionKeys = {};
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowUnselect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row', index: rowIndex });
|
|
}
|
|
else {
|
|
this._selection = rowData;
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowSelect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row', index: rowIndex });
|
|
if (dataKeyValue) {
|
|
this.selectionKeys = {};
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
}
|
|
else if (this.selectionMode === 'multiple') {
|
|
if (selected) {
|
|
let selectionIndex = this.findIndexInSelection(rowData);
|
|
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowUnselect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row', index: rowIndex });
|
|
if (dataKeyValue) {
|
|
delete this.selectionKeys[dataKeyValue];
|
|
}
|
|
}
|
|
else {
|
|
this._selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowSelect.emit({ originalEvent: event.originalEvent, data: rowData, type: 'row', index: rowIndex });
|
|
if (dataKeyValue) {
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.tableService.onSelectionChange();
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
this.rowTouched = false;
|
|
}
|
|
handleRowTouchEnd(event) {
|
|
this.rowTouched = true;
|
|
}
|
|
handleRowRightClick(event) {
|
|
if (this.contextMenu) {
|
|
const rowData = event.rowData;
|
|
const rowIndex = event.rowIndex;
|
|
if (this.contextMenuSelectionMode === 'separate') {
|
|
this.contextMenuSelection = rowData;
|
|
this.contextMenuSelectionChange.emit(rowData);
|
|
this.onContextMenuSelect.emit({ originalEvent: event.originalEvent, data: rowData, index: event.rowIndex });
|
|
this.contextMenu.show(event.originalEvent);
|
|
this.tableService.onContextMenu(rowData);
|
|
}
|
|
else if (this.contextMenuSelectionMode === 'joint') {
|
|
this.preventSelectionSetterPropagation = true;
|
|
let selected = this.isSelected(rowData);
|
|
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;
|
|
if (!selected) {
|
|
if (!this.isRowSelectable(rowData, rowIndex)) {
|
|
return;
|
|
}
|
|
if (this.isSingleSelectionMode()) {
|
|
this.selection = rowData;
|
|
this.selectionChange.emit(rowData);
|
|
if (dataKeyValue) {
|
|
this.selectionKeys = {};
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
else if (this.isMultipleSelectionMode()) {
|
|
this._selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
this.selectionChange.emit(this.selection);
|
|
if (dataKeyValue) {
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
}
|
|
this.tableService.onSelectionChange();
|
|
this.contextMenu.show(event.originalEvent);
|
|
this.onContextMenuSelect.emit({ originalEvent: event, data: rowData, index: event.rowIndex });
|
|
}
|
|
}
|
|
}
|
|
selectRange(event, rowIndex) {
|
|
let rangeStart, rangeEnd;
|
|
if (this.anchorRowIndex > rowIndex) {
|
|
rangeStart = rowIndex;
|
|
rangeEnd = this.anchorRowIndex;
|
|
}
|
|
else if (this.anchorRowIndex < rowIndex) {
|
|
rangeStart = this.anchorRowIndex;
|
|
rangeEnd = rowIndex;
|
|
}
|
|
else {
|
|
rangeStart = rowIndex;
|
|
rangeEnd = rowIndex;
|
|
}
|
|
if (this.lazy && this.paginator) {
|
|
rangeStart -= this.first;
|
|
rangeEnd -= this.first;
|
|
}
|
|
let rangeRowsData = [];
|
|
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
let rangeRowData = this.filteredValue ? this.filteredValue[i] : this.value[i];
|
|
if (!this.isSelected(rangeRowData)) {
|
|
if (!this.isRowSelectable(rangeRowData, rowIndex)) {
|
|
continue;
|
|
}
|
|
rangeRowsData.push(rangeRowData);
|
|
this._selection = [...this.selection, rangeRowData];
|
|
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rangeRowData, this.dataKey)) : null;
|
|
if (dataKeyValue) {
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
}
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowSelect.emit({ originalEvent: event, data: rangeRowsData, type: 'row' });
|
|
}
|
|
clearSelectionRange(event) {
|
|
let rangeStart, rangeEnd;
|
|
let rangeRowIndex = this.rangeRowIndex;
|
|
let anchorRowIndex = this.anchorRowIndex;
|
|
if (rangeRowIndex > anchorRowIndex) {
|
|
rangeStart = this.anchorRowIndex;
|
|
rangeEnd = this.rangeRowIndex;
|
|
}
|
|
else if (rangeRowIndex < anchorRowIndex) {
|
|
rangeStart = this.rangeRowIndex;
|
|
rangeEnd = this.anchorRowIndex;
|
|
}
|
|
else {
|
|
rangeStart = this.rangeRowIndex;
|
|
rangeEnd = this.rangeRowIndex;
|
|
}
|
|
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
let rangeRowData = this.value[i];
|
|
let selectionIndex = this.findIndexInSelection(rangeRowData);
|
|
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rangeRowData, this.dataKey)) : null;
|
|
if (dataKeyValue) {
|
|
delete this.selectionKeys[dataKeyValue];
|
|
}
|
|
this.onRowUnselect.emit({ originalEvent: event, data: rangeRowData, type: 'row' });
|
|
}
|
|
}
|
|
isSelected(rowData) {
|
|
if (rowData && this.selection) {
|
|
if (this.dataKey) {
|
|
return this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined;
|
|
}
|
|
else {
|
|
if (Array.isArray(this.selection))
|
|
return this.findIndexInSelection(rowData) > -1;
|
|
else
|
|
return this.equals(rowData, this.selection);
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
findIndexInSelection(rowData) {
|
|
let index = -1;
|
|
if (this.selection && this.selection.length) {
|
|
for (let i = 0; i < this.selection.length; i++) {
|
|
if (this.equals(rowData, this.selection[i])) {
|
|
index = i;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return index;
|
|
}
|
|
isRowSelectable(data, index) {
|
|
if (this.rowSelectable && !this.rowSelectable({ data, index })) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
toggleRowWithRadio(event, rowData) {
|
|
this.preventSelectionSetterPropagation = true;
|
|
if (this.selection != rowData) {
|
|
if (!this.isRowSelectable(rowData, event.rowIndex)) {
|
|
return;
|
|
}
|
|
this._selection = rowData;
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowSelect.emit({ originalEvent: event.originalEvent, index: event.rowIndex, data: rowData, type: 'radiobutton' });
|
|
if (this.dataKey) {
|
|
this.selectionKeys = {};
|
|
this.selectionKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] = 1;
|
|
}
|
|
}
|
|
else {
|
|
this._selection = null;
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowUnselect.emit({ originalEvent: event.originalEvent, index: event.rowIndex, data: rowData, type: 'radiobutton' });
|
|
}
|
|
this.tableService.onSelectionChange();
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
toggleRowWithCheckbox(event, rowData) {
|
|
this.selection = this.selection || [];
|
|
let selected = this.isSelected(rowData);
|
|
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;
|
|
this.preventSelectionSetterPropagation = true;
|
|
if (selected) {
|
|
let selectionIndex = this.findIndexInSelection(rowData);
|
|
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowUnselect.emit({ originalEvent: event.originalEvent, index: event.rowIndex, data: rowData, type: 'checkbox' });
|
|
if (dataKeyValue) {
|
|
delete this.selectionKeys[dataKeyValue];
|
|
}
|
|
}
|
|
else {
|
|
if (!this.isRowSelectable(rowData, event.rowIndex)) {
|
|
return;
|
|
}
|
|
this._selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
this.selectionChange.emit(this.selection);
|
|
this.onRowSelect.emit({ originalEvent: event.originalEvent, index: event.rowIndex, data: rowData, type: 'checkbox' });
|
|
if (dataKeyValue) {
|
|
this.selectionKeys[dataKeyValue] = 1;
|
|
}
|
|
}
|
|
this.tableService.onSelectionChange();
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
toggleRowsWithCheckbox(event, check) {
|
|
if (this._selectAll !== null) {
|
|
this.selectAllChange.emit({ originalEvent: event, checked: check });
|
|
}
|
|
else {
|
|
const data = this.selectionPageOnly ? this.dataToRender(this.processedData) : this.processedData;
|
|
let selection = this.selectionPageOnly && this._selection ? this._selection.filter((s) => !data.some((d) => this.equals(s, d))) : [];
|
|
if (check) {
|
|
selection = this.frozenValue ? [...selection, ...this.frozenValue, ...data] : [...selection, ...data];
|
|
selection = this.rowSelectable ? selection.filter((data, index) => this.rowSelectable({ data, index })) : selection;
|
|
}
|
|
this._selection = selection;
|
|
this.preventSelectionSetterPropagation = true;
|
|
this.updateSelectionKeys();
|
|
this.selectionChange.emit(this._selection);
|
|
this.tableService.onSelectionChange();
|
|
this.onHeaderCheckboxToggle.emit({ originalEvent: event, checked: check });
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
}
|
|
equals(data1, data2) {
|
|
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
}
|
|
/* Legacy Filtering for custom elements */
|
|
filter(value, field, matchMode) {
|
|
if (this.filterTimeout) {
|
|
clearTimeout(this.filterTimeout);
|
|
}
|
|
if (!this.isFilterBlank(value)) {
|
|
this.filters[field] = { value: value, matchMode: matchMode };
|
|
}
|
|
else if (this.filters[field]) {
|
|
delete this.filters[field];
|
|
}
|
|
this.filterTimeout = setTimeout(() => {
|
|
this._filter();
|
|
this.filterTimeout = null;
|
|
}, this.filterDelay);
|
|
this.anchorRowIndex = null;
|
|
}
|
|
filterGlobal(value, matchMode) {
|
|
this.filter(value, 'global', matchMode);
|
|
}
|
|
isFilterBlank(filter) {
|
|
if (filter !== null && filter !== undefined) {
|
|
if ((typeof filter === 'string' && filter.trim().length == 0) || (Array.isArray(filter) && filter.length == 0))
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
_filter() {
|
|
if (!this.restoringFilter) {
|
|
this.first = 0;
|
|
this.firstChange.emit(this.first);
|
|
}
|
|
if (this.lazy) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
else {
|
|
if (!this.value) {
|
|
return;
|
|
}
|
|
if (!this.hasFilter()) {
|
|
this.filteredValue = null;
|
|
if (this.paginator) {
|
|
this.totalRecords = this.value ? this.value.length : 0;
|
|
}
|
|
}
|
|
else {
|
|
let globalFilterFieldsArray;
|
|
if (this.filters['global']) {
|
|
if (!this.columns && !this.globalFilterFields)
|
|
throw new Error('Global filtering requires dynamic columns or globalFilterFields to be defined.');
|
|
else
|
|
globalFilterFieldsArray = this.globalFilterFields || this.columns;
|
|
}
|
|
this.filteredValue = [];
|
|
for (let i = 0; i < this.value.length; i++) {
|
|
let localMatch = true;
|
|
let globalMatch = false;
|
|
let localFiltered = false;
|
|
for (let prop in this.filters) {
|
|
if (this.filters.hasOwnProperty(prop) && prop !== 'global') {
|
|
localFiltered = true;
|
|
let filterField = prop;
|
|
let filterMeta = this.filters[filterField];
|
|
if (Array.isArray(filterMeta)) {
|
|
for (let meta of filterMeta) {
|
|
localMatch = this.executeLocalFilter(filterField, this.value[i], meta);
|
|
if ((meta.operator === FilterOperator.OR && localMatch) || (meta.operator === FilterOperator.AND && !localMatch)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
localMatch = this.executeLocalFilter(filterField, this.value[i], filterMeta);
|
|
}
|
|
if (!localMatch) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
for (let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
let globalFilterField = globalFilterFieldsArray[j].field || globalFilterFieldsArray[j];
|
|
globalMatch = this.filterService.filters[this.filters['global'].matchMode](ObjectUtils.resolveFieldData(this.value[i], globalFilterField), this.filters['global'].value, this.filterLocale);
|
|
if (globalMatch) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
let matches;
|
|
if (this.filters['global']) {
|
|
matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;
|
|
}
|
|
else {
|
|
matches = localFiltered && localMatch;
|
|
}
|
|
if (matches) {
|
|
this.filteredValue.push(this.value[i]);
|
|
}
|
|
}
|
|
if (this.filteredValue.length === this.value.length) {
|
|
this.filteredValue = null;
|
|
}
|
|
if (this.paginator) {
|
|
this.totalRecords = this.filteredValue ? this.filteredValue.length : this.value ? this.value.length : 0;
|
|
}
|
|
}
|
|
}
|
|
this.onFilter.emit({
|
|
filters: this.filters,
|
|
filteredValue: this.filteredValue || this.value
|
|
});
|
|
this.tableService.onValueChange(this.value);
|
|
if (this.isStateful() && !this.restoringFilter) {
|
|
this.saveState();
|
|
}
|
|
if (this.restoringFilter) {
|
|
this.restoringFilter = false;
|
|
}
|
|
this.cd.markForCheck();
|
|
if (this.scrollable) {
|
|
this.resetScrollTop();
|
|
}
|
|
}
|
|
executeLocalFilter(field, rowData, filterMeta) {
|
|
let filterValue = filterMeta.value;
|
|
let filterMatchMode = filterMeta.matchMode || FilterMatchMode.STARTS_WITH;
|
|
let dataFieldValue = ObjectUtils.resolveFieldData(rowData, field);
|
|
let filterConstraint = this.filterService.filters[filterMatchMode];
|
|
return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
|
|
}
|
|
hasFilter() {
|
|
let empty = true;
|
|
for (let prop in this.filters) {
|
|
if (this.filters.hasOwnProperty(prop)) {
|
|
empty = false;
|
|
break;
|
|
}
|
|
}
|
|
return !empty;
|
|
}
|
|
createLazyLoadMetadata() {
|
|
return {
|
|
first: this.first,
|
|
rows: this.rows,
|
|
sortField: this.sortField,
|
|
sortOrder: this.sortOrder,
|
|
filters: this.filters,
|
|
globalFilter: this.filters && this.filters['global'] ? this.filters['global'].value : null,
|
|
multiSortMeta: this.multiSortMeta,
|
|
forceUpdate: () => this.cd.detectChanges()
|
|
};
|
|
}
|
|
clear() {
|
|
this._sortField = null;
|
|
this._sortOrder = this.defaultSortOrder;
|
|
this._multiSortMeta = null;
|
|
this.tableService.onSort(null);
|
|
this.clearFilterValues();
|
|
this.filteredValue = null;
|
|
this.first = 0;
|
|
this.firstChange.emit(this.first);
|
|
if (this.lazy) {
|
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
}
|
|
else {
|
|
this.totalRecords = this._value ? this._value.length : 0;
|
|
}
|
|
}
|
|
clearFilterValues() {
|
|
for (const [, filterMetadata] of Object.entries(this.filters)) {
|
|
if (Array.isArray(filterMetadata)) {
|
|
for (let filter of filterMetadata) {
|
|
filter.value = null;
|
|
}
|
|
}
|
|
else if (filterMetadata) {
|
|
filterMetadata.value = null;
|
|
}
|
|
}
|
|
}
|
|
reset() {
|
|
this.clear();
|
|
}
|
|
getExportHeader(column) {
|
|
return column[this.exportHeader] || column.header || column.field;
|
|
}
|
|
/**
|
|
* Data export method.
|
|
* @param {ExportCSVOptions} object - Export options.
|
|
* @group Method
|
|
*/
|
|
exportCSV(options) {
|
|
let data;
|
|
let csv = '';
|
|
let columns = this.columns;
|
|
if (options && options.selectionOnly) {
|
|
data = this.selection || [];
|
|
}
|
|
else if (options && options.allValues) {
|
|
data = this.value || [];
|
|
}
|
|
else {
|
|
data = this.filteredValue || this.value;
|
|
if (this.frozenValue) {
|
|
data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
}
|
|
}
|
|
const exportableColumns = columns.filter((column) => column.exportable !== false && column.field);
|
|
//headers
|
|
csv += exportableColumns.map((column) => '"' + this.getExportHeader(column) + '"').join(this.csvSeparator);
|
|
//body
|
|
const body = data
|
|
.map((record) => exportableColumns
|
|
.map((column) => {
|
|
let cellData = ObjectUtils.resolveFieldData(record, column.field);
|
|
if (cellData != null) {
|
|
if (this.exportFunction) {
|
|
cellData = this.exportFunction({
|
|
data: cellData,
|
|
field: column.field
|
|
});
|
|
}
|
|
else
|
|
cellData = String(cellData).replace(/"/g, '""');
|
|
}
|
|
else
|
|
cellData = '';
|
|
return '"' + cellData + '"';
|
|
})
|
|
.join(this.csvSeparator))
|
|
.join('\n');
|
|
if (body.length) {
|
|
csv += '\n' + body;
|
|
}
|
|
let blob = new Blob([new Uint8Array([0xef, 0xbb, 0xbf]), csv], {
|
|
type: 'text/csv;charset=utf-8;'
|
|
});
|
|
let link = this.renderer.createElement('a');
|
|
link.style.display = 'none';
|
|
this.renderer.appendChild(this.document.body, link);
|
|
if (link.download !== undefined) {
|
|
link.setAttribute('href', URL.createObjectURL(blob));
|
|
link.setAttribute('download', this.exportFilename + '.csv');
|
|
link.click();
|
|
}
|
|
else {
|
|
csv = 'data:text/csv;charset=utf-8,' + csv;
|
|
this.window.open(encodeURI(csv));
|
|
}
|
|
this.renderer.removeChild(this.document.body, link);
|
|
}
|
|
onLazyItemLoad(event) {
|
|
this.onLazyLoad.emit({
|
|
...this.createLazyLoadMetadata(),
|
|
...event,
|
|
rows: event.last - event.first
|
|
});
|
|
}
|
|
/**
|
|
* Resets scroll to top.
|
|
* @group Method
|
|
*/
|
|
resetScrollTop() {
|
|
if (this.virtualScroll)
|
|
this.scrollToVirtualIndex(0);
|
|
else
|
|
this.scrollTo({ top: 0 });
|
|
}
|
|
/**
|
|
* Scrolls to given index when using virtual scroll.
|
|
* @param {number} index - index of the element.
|
|
* @group Method
|
|
*/
|
|
scrollToVirtualIndex(index) {
|
|
this.scroller && this.scroller.scrollToIndex(index);
|
|
}
|
|
/**
|
|
* Scrolls to given index.
|
|
* @param {ScrollToOptions} options - scroll options.
|
|
* @group Method
|
|
*/
|
|
scrollTo(options) {
|
|
if (this.virtualScroll) {
|
|
this.scroller?.scrollTo(options);
|
|
}
|
|
else if (this.wrapperViewChild && this.wrapperViewChild.nativeElement) {
|
|
if (this.wrapperViewChild.nativeElement.scrollTo) {
|
|
this.wrapperViewChild.nativeElement.scrollTo(options);
|
|
}
|
|
else {
|
|
this.wrapperViewChild.nativeElement.scrollLeft = options.left;
|
|
this.wrapperViewChild.nativeElement.scrollTop = options.top;
|
|
}
|
|
}
|
|
}
|
|
updateEditingCell(cell, data, field, index) {
|
|
this.editingCell = cell;
|
|
this.editingCellData = data;
|
|
this.editingCellField = field;
|
|
this.editingCellRowIndex = index;
|
|
this.bindDocumentEditListener();
|
|
}
|
|
isEditingCellValid() {
|
|
return this.editingCell && DomHandler.find(this.editingCell, '.ng-invalid.ng-dirty').length === 0;
|
|
}
|
|
bindDocumentEditListener() {
|
|
if (!this.documentEditListener) {
|
|
this.documentEditListener = this.renderer.listen(this.document, 'click', (event) => {
|
|
if (this.editingCell && !this.selfClick && this.isEditingCellValid()) {
|
|
DomHandler.removeClass(this.editingCell, 'p-cell-editing');
|
|
this.editingCell = null;
|
|
this.onEditComplete.emit({ field: this.editingCellField, data: this.editingCellData, originalEvent: event, index: this.editingCellRowIndex });
|
|
this.editingCellField = null;
|
|
this.editingCellData = null;
|
|
this.editingCellRowIndex = null;
|
|
this.unbindDocumentEditListener();
|
|
this.cd.markForCheck();
|
|
if (this.overlaySubscription) {
|
|
this.overlaySubscription.unsubscribe();
|
|
}
|
|
}
|
|
this.selfClick = false;
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentEditListener() {
|
|
if (this.documentEditListener) {
|
|
this.documentEditListener();
|
|
this.documentEditListener = null;
|
|
}
|
|
}
|
|
initRowEdit(rowData) {
|
|
let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));
|
|
this.editingRowKeys[dataKeyValue] = true;
|
|
}
|
|
saveRowEdit(rowData, rowElement) {
|
|
if (DomHandler.find(rowElement, '.ng-invalid.ng-dirty').length === 0) {
|
|
let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));
|
|
delete this.editingRowKeys[dataKeyValue];
|
|
}
|
|
}
|
|
cancelRowEdit(rowData) {
|
|
let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));
|
|
delete this.editingRowKeys[dataKeyValue];
|
|
}
|
|
toggleRow(rowData, event) {
|
|
if (!this.dataKey && !this.groupRowsBy) {
|
|
throw new Error('dataKey or groupRowsBy must be defined to use row expansion');
|
|
}
|
|
let dataKeyValue = this.groupRowsBy ? String(ObjectUtils.resolveFieldData(rowData, this.groupRowsBy)) : String(ObjectUtils.resolveFieldData(rowData, this.dataKey));
|
|
if (this.expandedRowKeys[dataKeyValue] != null) {
|
|
delete this.expandedRowKeys[dataKeyValue];
|
|
this.onRowCollapse.emit({
|
|
originalEvent: event,
|
|
data: rowData
|
|
});
|
|
}
|
|
else {
|
|
if (this.rowExpandMode === 'single') {
|
|
this.expandedRowKeys = {};
|
|
}
|
|
this.expandedRowKeys[dataKeyValue] = true;
|
|
this.onRowExpand.emit({
|
|
originalEvent: event,
|
|
data: rowData
|
|
});
|
|
}
|
|
if (event) {
|
|
event.preventDefault();
|
|
}
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
isRowExpanded(rowData) {
|
|
return this.groupRowsBy ? this.expandedRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.groupRowsBy))] === true : this.expandedRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] === true;
|
|
}
|
|
isRowEditing(rowData) {
|
|
return this.editingRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] === true;
|
|
}
|
|
isSingleSelectionMode() {
|
|
return this.selectionMode === 'single';
|
|
}
|
|
isMultipleSelectionMode() {
|
|
return this.selectionMode === 'multiple';
|
|
}
|
|
onColumnResizeBegin(event) {
|
|
let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;
|
|
this.resizeColumnElement = event.target.parentElement;
|
|
this.columnResizing = true;
|
|
if (event.type == 'touchstart') {
|
|
this.lastResizerHelperX = event.changedTouches[0].clientX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft;
|
|
}
|
|
else {
|
|
this.lastResizerHelperX = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft;
|
|
}
|
|
this.onColumnResize(event);
|
|
event.preventDefault();
|
|
}
|
|
onColumnResize(event) {
|
|
let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;
|
|
DomHandler.addClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');
|
|
this.resizeHelperViewChild.nativeElement.style.height = this.containerViewChild?.nativeElement.offsetHeight + 'px';
|
|
this.resizeHelperViewChild.nativeElement.style.top = 0 + 'px';
|
|
if (event.type == 'touchmove') {
|
|
this.resizeHelperViewChild.nativeElement.style.left = event.changedTouches[0].clientX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft + 'px';
|
|
}
|
|
else {
|
|
this.resizeHelperViewChild.nativeElement.style.left = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft + 'px';
|
|
}
|
|
this.resizeHelperViewChild.nativeElement.style.display = 'block';
|
|
}
|
|
onColumnResizeEnd() {
|
|
let delta = this.resizeHelperViewChild?.nativeElement.offsetLeft - this.lastResizerHelperX;
|
|
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
let newColumnWidth = columnWidth + delta;
|
|
let minWidth = this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g, '') || 15;
|
|
if (newColumnWidth >= minWidth) {
|
|
if (this.columnResizeMode === 'fit') {
|
|
let nextColumn = this.resizeColumnElement.nextElementSibling;
|
|
let nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
}
|
|
}
|
|
else if (this.columnResizeMode === 'expand') {
|
|
this._initialColWidths = this._totalTableWidth();
|
|
let tableWidth = this.tableViewChild?.nativeElement.offsetWidth + delta;
|
|
this.setResizeTableWidth(tableWidth + 'px');
|
|
this.resizeTableCells(newColumnWidth, null);
|
|
}
|
|
this.onColResize.emit({
|
|
element: this.resizeColumnElement,
|
|
delta: delta
|
|
});
|
|
if (this.isStateful()) {
|
|
this.saveState();
|
|
}
|
|
}
|
|
this.resizeHelperViewChild.nativeElement.style.display = 'none';
|
|
DomHandler.removeClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');
|
|
}
|
|
_totalTableWidth() {
|
|
let widths = [];
|
|
const tableHead = DomHandler.findSingle(this.containerViewChild.nativeElement, '.p-datatable-thead');
|
|
let headers = DomHandler.find(tableHead, 'tr > th');
|
|
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
return widths;
|
|
}
|
|
onColumnDragStart(event, columnElement) {
|
|
this.reorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement);
|
|
this.reorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement);
|
|
this.draggedColumn = columnElement;
|
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
}
|
|
onColumnDragEnter(event, dropHeader) {
|
|
if (this.reorderableColumns && this.draggedColumn && dropHeader) {
|
|
event.preventDefault();
|
|
let containerOffset = DomHandler.getOffset(this.containerViewChild?.nativeElement);
|
|
let dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
if (this.draggedColumn != dropHeader) {
|
|
let dragIndex = DomHandler.indexWithinGroup(this.draggedColumn, 'preorderablecolumn');
|
|
let dropIndex = DomHandler.indexWithinGroup(dropHeader, 'preorderablecolumn');
|
|
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
let targetTop = containerOffset.top - dropHeaderOffset.top;
|
|
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
this.reorderIndicatorUpViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top - (this.reorderIconHeight - 1) + 'px';
|
|
this.reorderIndicatorDownViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
if (event.pageX > columnCenter) {
|
|
this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
this.dropPosition = 1;
|
|
}
|
|
else {
|
|
this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
this.dropPosition = -1;
|
|
}
|
|
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'block';
|
|
this.reorderIndicatorDownViewChild.nativeElement.style.display = 'block';
|
|
}
|
|
else {
|
|
event.dataTransfer.dropEffect = 'none';
|
|
}
|
|
}
|
|
}
|
|
onColumnDragLeave(event) {
|
|
if (this.reorderableColumns && this.draggedColumn) {
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onColumnDrop(event, dropColumn) {
|
|
event.preventDefault();
|
|
if (this.draggedColumn) {
|
|
let dragIndex = DomHandler.indexWithinGroup(this.draggedColumn, 'preorderablecolumn');
|
|
let dropIndex = DomHandler.indexWithinGroup(dropColumn, 'preorderablecolumn');
|
|
let allowDrop = dragIndex != dropIndex;
|
|
if (allowDrop && ((dropIndex - dragIndex == 1 && this.dropPosition === -1) || (dragIndex - dropIndex == 1 && this.dropPosition === 1))) {
|
|
allowDrop = false;
|
|
}
|
|
if (allowDrop && dropIndex < dragIndex && this.dropPosition === 1) {
|
|
dropIndex = dropIndex + 1;
|
|
}
|
|
if (allowDrop && dropIndex > dragIndex && this.dropPosition === -1) {
|
|
dropIndex = dropIndex - 1;
|
|
}
|
|
if (allowDrop) {
|
|
ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
|
|
this.onColReorder.emit({
|
|
dragIndex: dragIndex,
|
|
dropIndex: dropIndex,
|
|
columns: this.columns
|
|
});
|
|
if (this.isStateful()) {
|
|
this.zone.runOutsideAngular(() => {
|
|
setTimeout(() => {
|
|
this.saveState();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
if (this.resizableColumns && this.resizeColumnElement) {
|
|
let width = this.columnResizeMode === 'expand' ? this._initialColWidths : this._totalTableWidth();
|
|
ObjectUtils.reorderArray(width, dragIndex + 1, dropIndex + 1);
|
|
this.updateStyleElement(width, dragIndex, null, null);
|
|
}
|
|
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'none';
|
|
this.reorderIndicatorDownViewChild.nativeElement.style.display = 'none';
|
|
this.draggedColumn.draggable = false;
|
|
this.draggedColumn = null;
|
|
this.dropPosition = null;
|
|
}
|
|
}
|
|
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
let colIndex = DomHandler.index(this.resizeColumnElement);
|
|
let width = this.columnResizeMode === 'expand' ? this._initialColWidths : this._totalTableWidth();
|
|
this.updateStyleElement(width, colIndex, newColumnWidth, nextColumnWidth);
|
|
}
|
|
updateStyleElement(width, colIndex, newColumnWidth, nextColumnWidth) {
|
|
this.destroyStyleElement();
|
|
this.createStyleElement();
|
|
let innerHTML = '';
|
|
width.forEach((width, index) => {
|
|
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
let style = `width: ${colWidth}px !important; max-width: ${colWidth}px !important;`;
|
|
innerHTML += `
|
|
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
|
|
${style}
|
|
}
|
|
`;
|
|
});
|
|
this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML);
|
|
}
|
|
onRowDragStart(event, index) {
|
|
this.rowDragging = true;
|
|
this.draggedRowIndex = index;
|
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
}
|
|
onRowDragOver(event, index, rowElement) {
|
|
if (this.rowDragging && this.draggedRowIndex !== index) {
|
|
let rowY = DomHandler.getOffset(rowElement).top;
|
|
let pageY = event.pageY;
|
|
let rowMidY = rowY + DomHandler.getOuterHeight(rowElement) / 2;
|
|
let prevRowElement = rowElement.previousElementSibling;
|
|
if (pageY < rowMidY) {
|
|
DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
this.droppedRowIndex = index;
|
|
if (prevRowElement)
|
|
DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
else
|
|
DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
}
|
|
else {
|
|
if (prevRowElement)
|
|
DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
else
|
|
DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
this.droppedRowIndex = index + 1;
|
|
DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
}
|
|
}
|
|
}
|
|
onRowDragLeave(event, rowElement) {
|
|
let prevRowElement = rowElement.previousElementSibling;
|
|
if (prevRowElement) {
|
|
DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
}
|
|
DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
|
|
}
|
|
onRowDragEnd(event) {
|
|
this.rowDragging = false;
|
|
this.draggedRowIndex = null;
|
|
this.droppedRowIndex = null;
|
|
}
|
|
onRowDrop(event, rowElement) {
|
|
if (this.droppedRowIndex != null) {
|
|
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
|
ObjectUtils.reorderArray(this.value, this.draggedRowIndex, dropIndex);
|
|
if (this.virtualScroll) {
|
|
// TODO: Check
|
|
this._value = [...this._value];
|
|
}
|
|
this.onRowReorder.emit({
|
|
dragIndex: this.draggedRowIndex,
|
|
dropIndex: dropIndex
|
|
});
|
|
}
|
|
//cleanup
|
|
this.onRowDragLeave(event, rowElement);
|
|
this.onRowDragEnd(event);
|
|
}
|
|
isEmpty() {
|
|
let data = this.filteredValue || this.value;
|
|
return data == null || data.length == 0;
|
|
}
|
|
getBlockableElement() {
|
|
return this.el.nativeElement.children[0];
|
|
}
|
|
getStorage() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
switch (this.stateStorage) {
|
|
case 'local':
|
|
return window.localStorage;
|
|
case 'session':
|
|
return window.sessionStorage;
|
|
default:
|
|
throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
|
|
}
|
|
}
|
|
else {
|
|
throw new Error('Browser storage is not available in the server side.');
|
|
}
|
|
}
|
|
isStateful() {
|
|
return this.stateKey != null;
|
|
}
|
|
saveState() {
|
|
const storage = this.getStorage();
|
|
let state = {};
|
|
if (this.paginator) {
|
|
state.first = this.first;
|
|
state.rows = this.rows;
|
|
}
|
|
if (this.sortField) {
|
|
state.sortField = this.sortField;
|
|
state.sortOrder = this.sortOrder;
|
|
}
|
|
if (this.multiSortMeta) {
|
|
state.multiSortMeta = this.multiSortMeta;
|
|
}
|
|
if (this.hasFilter()) {
|
|
state.filters = this.filters;
|
|
}
|
|
if (this.resizableColumns) {
|
|
this.saveColumnWidths(state);
|
|
}
|
|
if (this.reorderableColumns) {
|
|
this.saveColumnOrder(state);
|
|
}
|
|
if (this.selection) {
|
|
state.selection = this.selection;
|
|
}
|
|
if (Object.keys(this.expandedRowKeys).length) {
|
|
state.expandedRowKeys = this.expandedRowKeys;
|
|
}
|
|
storage.setItem(this.stateKey, JSON.stringify(state));
|
|
this.onStateSave.emit(state);
|
|
}
|
|
clearState() {
|
|
const storage = this.getStorage();
|
|
if (this.stateKey) {
|
|
storage.removeItem(this.stateKey);
|
|
}
|
|
}
|
|
restoreState() {
|
|
const storage = this.getStorage();
|
|
const stateString = storage.getItem(this.stateKey);
|
|
const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
const reviver = function (key, value) {
|
|
if (typeof value === 'string' && dateFormat.test(value)) {
|
|
return new Date(value);
|
|
}
|
|
return value;
|
|
};
|
|
if (stateString) {
|
|
let state = JSON.parse(stateString, reviver);
|
|
if (this.paginator) {
|
|
if (this.first !== undefined) {
|
|
this.first = state.first;
|
|
this.firstChange.emit(this.first);
|
|
}
|
|
if (this.rows !== undefined) {
|
|
this.rows = state.rows;
|
|
this.rowsChange.emit(this.rows);
|
|
}
|
|
}
|
|
if (state.sortField) {
|
|
this.restoringSort = true;
|
|
this._sortField = state.sortField;
|
|
this._sortOrder = state.sortOrder;
|
|
}
|
|
if (state.multiSortMeta) {
|
|
this.restoringSort = true;
|
|
this._multiSortMeta = state.multiSortMeta;
|
|
}
|
|
if (state.filters) {
|
|
this.restoringFilter = true;
|
|
this.filters = state.filters;
|
|
}
|
|
if (this.resizableColumns) {
|
|
this.columnWidthsState = state.columnWidths;
|
|
this.tableWidthState = state.tableWidth;
|
|
}
|
|
// if (this.reorderableColumns) {
|
|
// this.restoreColumnOrder();
|
|
// }
|
|
if (state.expandedRowKeys) {
|
|
this.expandedRowKeys = state.expandedRowKeys;
|
|
}
|
|
if (state.selection) {
|
|
Promise.resolve(null).then(() => this.selectionChange.emit(state.selection));
|
|
}
|
|
this.stateRestored = true;
|
|
this.onStateRestore.emit(state);
|
|
}
|
|
}
|
|
saveColumnWidths(state) {
|
|
let widths = [];
|
|
let headers = DomHandler.find(this.containerViewChild?.nativeElement, '.p-datatable-thead > tr > th');
|
|
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
state.columnWidths = widths.join(',');
|
|
if (this.columnResizeMode === 'expand') {
|
|
state.tableWidth = DomHandler.getOuterWidth(this.tableViewChild?.nativeElement);
|
|
}
|
|
}
|
|
setResizeTableWidth(width) {
|
|
this.tableViewChild.nativeElement.style.width = width;
|
|
this.tableViewChild.nativeElement.style.minWidth = width;
|
|
}
|
|
restoreColumnWidths() {
|
|
if (this.columnWidthsState) {
|
|
let widths = this.columnWidthsState.split(',');
|
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
this.setResizeTableWidth(this.tableWidthState + 'px');
|
|
}
|
|
if (ObjectUtils.isNotEmpty(widths)) {
|
|
this.createStyleElement();
|
|
let innerHTML = '';
|
|
widths.forEach((width, index) => {
|
|
let style = `width: ${width}px !important; max-width: ${width}px !important`;
|
|
innerHTML += `
|
|
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
|
|
${style}
|
|
}
|
|
`;
|
|
});
|
|
this.styleElement.innerHTML = innerHTML;
|
|
}
|
|
}
|
|
}
|
|
saveColumnOrder(state) {
|
|
if (this.columns) {
|
|
let columnOrder = [];
|
|
this.columns.map((column) => {
|
|
columnOrder.push(column.field || column.key);
|
|
});
|
|
state.columnOrder = columnOrder;
|
|
}
|
|
}
|
|
restoreColumnOrder() {
|
|
const storage = this.getStorage();
|
|
const stateString = storage.getItem(this.stateKey);
|
|
if (stateString) {
|
|
let state = JSON.parse(stateString);
|
|
let columnOrder = state.columnOrder;
|
|
if (columnOrder) {
|
|
let reorderedColumns = [];
|
|
columnOrder.map((key) => {
|
|
let col = this.findColumnByKey(key);
|
|
if (col) {
|
|
reorderedColumns.push(col);
|
|
}
|
|
});
|
|
this.columnOrderStateRestored = true;
|
|
this.columns = reorderedColumns;
|
|
}
|
|
}
|
|
}
|
|
findColumnByKey(key) {
|
|
if (this.columns) {
|
|
for (let col of this.columns) {
|
|
if (col.key === key || col.field === key)
|
|
return col;
|
|
else
|
|
continue;
|
|
}
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
createStyleElement() {
|
|
this.styleElement = this.renderer.createElement('style');
|
|
this.styleElement.type = 'text/css';
|
|
this.renderer.appendChild(this.document.head, this.styleElement);
|
|
}
|
|
getGroupRowsMeta() {
|
|
return { field: this.groupRowsBy, order: this.groupRowsByOrder };
|
|
}
|
|
createResponsiveStyle() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (!this.responsiveStyleElement) {
|
|
this.responsiveStyleElement = this.renderer.createElement('style');
|
|
this.responsiveStyleElement.type = 'text/css';
|
|
this.renderer.appendChild(this.document.head, this.responsiveStyleElement);
|
|
let innerHTML = `
|
|
@media screen and (max-width: ${this.breakpoint}) {
|
|
#${this.id}-table > .p-datatable-thead > tr > th,
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td {
|
|
display: none !important;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td {
|
|
display: flex;
|
|
width: 100% !important;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {
|
|
border: 0 none;
|
|
}
|
|
|
|
#${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {
|
|
border-top: 0;
|
|
border-right: 0;
|
|
border-left: 0;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {
|
|
display: block;
|
|
}
|
|
}
|
|
`;
|
|
this.renderer.setProperty(this.responsiveStyleElement, 'innerHTML', innerHTML);
|
|
}
|
|
}
|
|
}
|
|
destroyResponsiveStyle() {
|
|
if (this.responsiveStyleElement) {
|
|
this.renderer.removeChild(this.document.head, this.responsiveStyleElement);
|
|
this.responsiveStyleElement = null;
|
|
}
|
|
}
|
|
destroyStyleElement() {
|
|
if (this.styleElement) {
|
|
this.renderer.removeChild(this.document.head, this.styleElement);
|
|
this.styleElement = null;
|
|
}
|
|
}
|
|
ngOnDestroy() {
|
|
this.unbindDocumentEditListener();
|
|
this.editingCell = null;
|
|
this.initialized = null;
|
|
this.destroyStyleElement();
|
|
this.destroyResponsiveStyle();
|
|
}
|
|
getPaginatorStyleClasses(className) {
|
|
return [this.paginatorStyleClass, className]
|
|
.filter((c) => !!c)
|
|
.join(' ')
|
|
.trim();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: Table, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: TableService }, { token: i0.ChangeDetectorRef }, { token: i1.FilterService }, { token: i1.OverlayService }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: Table, selector: "p-table", inputs: { frozenColumns: "frozenColumns", frozenValue: "frozenValue", style: "style", styleClass: "styleClass", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", paginator: ["paginator", "paginator", booleanAttribute], pageLinks: ["pageLinks", "pageLinks", numberAttribute], rowsPerPageOptions: "rowsPerPageOptions", alwaysShowPaginator: ["alwaysShowPaginator", "alwaysShowPaginator", booleanAttribute], paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", paginatorDropdownScrollHeight: "paginatorDropdownScrollHeight", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: ["showCurrentPageReport", "showCurrentPageReport", booleanAttribute], showJumpToPageDropdown: ["showJumpToPageDropdown", "showJumpToPageDropdown", booleanAttribute], showJumpToPageInput: ["showJumpToPageInput", "showJumpToPageInput", booleanAttribute], showFirstLastIcon: ["showFirstLastIcon", "showFirstLastIcon", booleanAttribute], showPageLinks: ["showPageLinks", "showPageLinks", booleanAttribute], defaultSortOrder: ["defaultSortOrder", "defaultSortOrder", numberAttribute], sortMode: "sortMode", resetPageOnSort: ["resetPageOnSort", "resetPageOnSort", booleanAttribute], selectionMode: "selectionMode", selectionPageOnly: ["selectionPageOnly", "selectionPageOnly", booleanAttribute], contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", dataKey: "dataKey", metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], rowSelectable: "rowSelectable", rowTrackBy: "rowTrackBy", lazy: ["lazy", "lazy", booleanAttribute], lazyLoadOnInit: ["lazyLoadOnInit", "lazyLoadOnInit", booleanAttribute], compareSelectionBy: "compareSelectionBy", csvSeparator: "csvSeparator", exportFilename: "exportFilename", filters: "filters", globalFilterFields: "globalFilterFields", filterDelay: ["filterDelay", "filterDelay", numberAttribute], filterLocale: "filterLocale", expandedRowKeys: "expandedRowKeys", editingRowKeys: "editingRowKeys", rowExpandMode: "rowExpandMode", scrollable: ["scrollable", "scrollable", booleanAttribute], scrollDirection: "scrollDirection", rowGroupMode: "rowGroupMode", scrollHeight: "scrollHeight", virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", virtualScrollDelay: ["virtualScrollDelay", "virtualScrollDelay", numberAttribute], frozenWidth: "frozenWidth", responsive: "responsive", contextMenu: "contextMenu", resizableColumns: ["resizableColumns", "resizableColumns", booleanAttribute], columnResizeMode: "columnResizeMode", reorderableColumns: ["reorderableColumns", "reorderableColumns", booleanAttribute], loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", showLoader: ["showLoader", "showLoader", booleanAttribute], rowHover: ["rowHover", "rowHover", booleanAttribute], customSort: ["customSort", "customSort", booleanAttribute], showInitialSortBadge: ["showInitialSortBadge", "showInitialSortBadge", booleanAttribute], autoLayout: ["autoLayout", "autoLayout", booleanAttribute], exportFunction: "exportFunction", exportHeader: "exportHeader", stateKey: "stateKey", stateStorage: "stateStorage", editMode: "editMode", groupRowsBy: "groupRowsBy", groupRowsByOrder: ["groupRowsByOrder", "groupRowsByOrder", numberAttribute], responsiveLayout: "responsiveLayout", breakpoint: "breakpoint", paginatorLocale: "paginatorLocale", value: "value", columns: "columns", first: "first", rows: "rows", totalRecords: "totalRecords", sortField: "sortField", sortOrder: "sortOrder", multiSortMeta: "multiSortMeta", selection: "selection", selectAll: "selectAll", virtualRowHeight: "virtualRowHeight" }, outputs: { contextMenuSelectionChange: "contextMenuSelectionChange", selectAllChange: "selectAllChange", selectionChange: "selectionChange", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowExpand: "onRowExpand", onRowCollapse: "onRowCollapse", onContextMenuSelect: "onContextMenuSelect", onColResize: "onColResize", onColReorder: "onColReorder", onRowReorder: "onRowReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", sortFunction: "sortFunction", firstChange: "firstChange", rowsChange: "rowsChange", onStateSave: "onStateSave", onStateRestore: "onStateRestore" }, host: { classAttribute: "p-element" }, providers: [TableService], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true }, { propertyName: "tableHeaderViewChild", first: true, predicate: ["thead"], descendants: true }, { propertyName: "tableFooterViewChild", first: true, predicate: ["tfoot"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
<div
|
|
#container
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
[ngClass]="{ 'p-datatable p-component': true, 'p-datatable-hoverable-rows': rowHover || selectionMode, 'p-datatable-scrollable': scrollable, 'p-datatable-flex-scrollable': scrollable && scrollHeight === 'flex' }"
|
|
[attr.id]="id"
|
|
>
|
|
<div class="p-datatable-loading-overlay p-component-overlay" *ngIf="loading && showLoader">
|
|
<i *ngIf="loadingIcon" [class]="'p-datatable-loading-icon ' + loadingIcon"></i>
|
|
<ng-container *ngIf="!loadingIcon">
|
|
<SpinnerIcon *ngIf="!loadingIconTemplate" [spin]="true" [styleClass]="'p-datatable-loading-icon'" />
|
|
<span *ngIf="loadingIconTemplate" class="p-datatable-loading-icon">
|
|
<ng-template *ngTemplateOutlet="loadingIconTemplate"></ng-template>
|
|
</span>
|
|
</ng-container>
|
|
</div>
|
|
<div *ngIf="captionTemplate" class="p-datatable-header">
|
|
<ng-container *ngTemplateOutlet="captionTemplate"></ng-container>
|
|
</div>
|
|
<p-paginator
|
|
[rows]="rows"
|
|
[first]="first"
|
|
[totalRecords]="totalRecords"
|
|
[pageLinkSize]="pageLinks"
|
|
[alwaysShow]="alwaysShowPaginator"
|
|
(onPageChange)="onPageChange($event)"
|
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
[templateLeft]="paginatorLeftTemplate"
|
|
[templateRight]="paginatorRightTemplate"
|
|
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
[showJumpToPageInput]="showJumpToPageInput"
|
|
[showPageLinks]="showPageLinks"
|
|
[styleClass]="getPaginatorStyleClasses('p-paginator-top')"
|
|
[locale]="paginatorLocale"
|
|
>
|
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
</p-paginator>
|
|
|
|
<div #wrapper class="p-datatable-wrapper" [ngStyle]="{ maxHeight: virtualScroll ? '' : scrollHeight }">
|
|
<p-scroller
|
|
#scroller
|
|
*ngIf="virtualScroll"
|
|
[items]="processedData"
|
|
[columns]="columns"
|
|
[style]="{ height: scrollHeight !== 'flex' ? scrollHeight : undefined }"
|
|
[scrollHeight]="scrollHeight !== 'flex' ? undefined : '100%'"
|
|
[itemSize]="virtualScrollItemSize || _virtualRowHeight"
|
|
[step]="rows"
|
|
[delay]="lazy ? virtualScrollDelay : 0"
|
|
[inline]="true"
|
|
[lazy]="lazy"
|
|
(onLazyLoad)="onLazyItemLoad($event)"
|
|
[loaderDisabled]="true"
|
|
[showSpacer]="false"
|
|
[showLoader]="loadingBodyTemplate"
|
|
[options]="virtualScrollOptions"
|
|
[autoSize]="true"
|
|
>
|
|
<ng-template pTemplate="content" let-items let-scrollerOptions="options">
|
|
<ng-container *ngTemplateOutlet="buildInTable; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
</ng-template>
|
|
</p-scroller>
|
|
<ng-container *ngIf="!virtualScroll">
|
|
<ng-container *ngTemplateOutlet="buildInTable; context: { $implicit: processedData, options: { columns } }"></ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #buildInTable let-items let-scrollerOptions="options">
|
|
<table
|
|
#table
|
|
role="table"
|
|
[ngClass]="{ 'p-datatable-table': true, 'p-datatable-scrollable-table': scrollable, 'p-datatable-resizable-table': resizableColumns, 'p-datatable-resizable-table-fit': resizableColumns && columnResizeMode === 'fit' }"
|
|
[class]="tableStyleClass"
|
|
[style]="tableStyle"
|
|
[attr.id]="id + '-table'"
|
|
>
|
|
<ng-container *ngTemplateOutlet="colGroupTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
<thead role="rowgroup" #thead class="p-datatable-thead">
|
|
<ng-container *ngTemplateOutlet="headerGroupedTemplate || headerTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
</thead>
|
|
<tbody
|
|
role="rowgroup"
|
|
class="p-datatable-tbody p-datatable-frozen-tbody"
|
|
*ngIf="frozenValue || frozenBodyTemplate"
|
|
[value]="frozenValue"
|
|
[frozenRows]="true"
|
|
[pTableBody]="scrollerOptions.columns"
|
|
[pTableBodyTemplate]="frozenBodyTemplate"
|
|
[frozen]="true"
|
|
></tbody>
|
|
<tbody
|
|
role="rowgroup"
|
|
class="p-datatable-tbody"
|
|
[ngClass]="scrollerOptions.contentStyleClass"
|
|
[style]="scrollerOptions.contentStyle"
|
|
[value]="dataToRender(scrollerOptions.rows)"
|
|
[pTableBody]="scrollerOptions.columns"
|
|
[pTableBodyTemplate]="bodyTemplate"
|
|
[scrollerOptions]="scrollerOptions"
|
|
></tbody>
|
|
<tbody
|
|
role="rowgroup"
|
|
*ngIf="scrollerOptions.spacerStyle"
|
|
[style]="'height: calc(' + scrollerOptions.spacerStyle.height + ' - ' + scrollerOptions.rows.length * scrollerOptions.itemSize + 'px);'"
|
|
class="p-datatable-scroller-spacer"
|
|
></tbody>
|
|
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate" #tfoot class="p-datatable-tfoot">
|
|
<ng-container *ngTemplateOutlet="footerGroupedTemplate || footerTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
</tfoot>
|
|
</table>
|
|
</ng-template>
|
|
</div>
|
|
|
|
<p-paginator
|
|
[rows]="rows"
|
|
[first]="first"
|
|
[totalRecords]="totalRecords"
|
|
[pageLinkSize]="pageLinks"
|
|
[alwaysShow]="alwaysShowPaginator"
|
|
(onPageChange)="onPageChange($event)"
|
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
[templateLeft]="paginatorLeftTemplate"
|
|
[templateRight]="paginatorRightTemplate"
|
|
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
[showJumpToPageInput]="showJumpToPageInput"
|
|
[showPageLinks]="showPageLinks"
|
|
[styleClass]="getPaginatorStyleClasses('p-paginator-bottom')"
|
|
[locale]="paginatorLocale"
|
|
>
|
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
</p-paginator>
|
|
|
|
<div *ngIf="summaryTemplate" class="p-datatable-footer">
|
|
<ng-container *ngTemplateOutlet="summaryTemplate"></ng-container>
|
|
</div>
|
|
|
|
<div #resizeHelper class="p-column-resizer-helper" style="display:none" *ngIf="resizableColumns"></div>
|
|
<span #reorderIndicatorUp class="p-datatable-reorder-indicator-up" style="display: none;" *ngIf="reorderableColumns">
|
|
<ArrowDownIcon *ngIf="!reorderIndicatorUpIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate"></ng-template>
|
|
</span>
|
|
<span #reorderIndicatorDown class="p-datatable-reorder-indicator-down" style="display: none;" *ngIf="reorderableColumns">
|
|
<ArrowUpIcon *ngIf="!reorderIndicatorDownIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate"></ng-template>
|
|
</span>
|
|
</div>
|
|
`, isInline: true, styles: ["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => i3.Paginator), selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "directive", type: i0.forwardRef(() => i1.PrimeTemplate), selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i0.forwardRef(() => i4.Scroller), selector: "p-scroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: i0.forwardRef(() => ArrowDownIcon), selector: "ArrowDownIcon" }, { kind: "component", type: i0.forwardRef(() => ArrowUpIcon), selector: "ArrowUpIcon" }, { kind: "component", type: i0.forwardRef(() => SpinnerIcon), selector: "SpinnerIcon" }, { kind: "component", type: i0.forwardRef(() => TableBody), selector: "[pTableBody]", inputs: ["pTableBody", "pTableBodyTemplate", "value", "frozen", "frozenRows", "scrollerOptions"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: Table, decorators: [{
|
|
type: Component,
|
|
args: [{ selector: 'p-table', template: `
|
|
<div
|
|
#container
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
[ngClass]="{ 'p-datatable p-component': true, 'p-datatable-hoverable-rows': rowHover || selectionMode, 'p-datatable-scrollable': scrollable, 'p-datatable-flex-scrollable': scrollable && scrollHeight === 'flex' }"
|
|
[attr.id]="id"
|
|
>
|
|
<div class="p-datatable-loading-overlay p-component-overlay" *ngIf="loading && showLoader">
|
|
<i *ngIf="loadingIcon" [class]="'p-datatable-loading-icon ' + loadingIcon"></i>
|
|
<ng-container *ngIf="!loadingIcon">
|
|
<SpinnerIcon *ngIf="!loadingIconTemplate" [spin]="true" [styleClass]="'p-datatable-loading-icon'" />
|
|
<span *ngIf="loadingIconTemplate" class="p-datatable-loading-icon">
|
|
<ng-template *ngTemplateOutlet="loadingIconTemplate"></ng-template>
|
|
</span>
|
|
</ng-container>
|
|
</div>
|
|
<div *ngIf="captionTemplate" class="p-datatable-header">
|
|
<ng-container *ngTemplateOutlet="captionTemplate"></ng-container>
|
|
</div>
|
|
<p-paginator
|
|
[rows]="rows"
|
|
[first]="first"
|
|
[totalRecords]="totalRecords"
|
|
[pageLinkSize]="pageLinks"
|
|
[alwaysShow]="alwaysShowPaginator"
|
|
(onPageChange)="onPageChange($event)"
|
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
[templateLeft]="paginatorLeftTemplate"
|
|
[templateRight]="paginatorRightTemplate"
|
|
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
[showJumpToPageInput]="showJumpToPageInput"
|
|
[showPageLinks]="showPageLinks"
|
|
[styleClass]="getPaginatorStyleClasses('p-paginator-top')"
|
|
[locale]="paginatorLocale"
|
|
>
|
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
</p-paginator>
|
|
|
|
<div #wrapper class="p-datatable-wrapper" [ngStyle]="{ maxHeight: virtualScroll ? '' : scrollHeight }">
|
|
<p-scroller
|
|
#scroller
|
|
*ngIf="virtualScroll"
|
|
[items]="processedData"
|
|
[columns]="columns"
|
|
[style]="{ height: scrollHeight !== 'flex' ? scrollHeight : undefined }"
|
|
[scrollHeight]="scrollHeight !== 'flex' ? undefined : '100%'"
|
|
[itemSize]="virtualScrollItemSize || _virtualRowHeight"
|
|
[step]="rows"
|
|
[delay]="lazy ? virtualScrollDelay : 0"
|
|
[inline]="true"
|
|
[lazy]="lazy"
|
|
(onLazyLoad)="onLazyItemLoad($event)"
|
|
[loaderDisabled]="true"
|
|
[showSpacer]="false"
|
|
[showLoader]="loadingBodyTemplate"
|
|
[options]="virtualScrollOptions"
|
|
[autoSize]="true"
|
|
>
|
|
<ng-template pTemplate="content" let-items let-scrollerOptions="options">
|
|
<ng-container *ngTemplateOutlet="buildInTable; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
</ng-template>
|
|
</p-scroller>
|
|
<ng-container *ngIf="!virtualScroll">
|
|
<ng-container *ngTemplateOutlet="buildInTable; context: { $implicit: processedData, options: { columns } }"></ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #buildInTable let-items let-scrollerOptions="options">
|
|
<table
|
|
#table
|
|
role="table"
|
|
[ngClass]="{ 'p-datatable-table': true, 'p-datatable-scrollable-table': scrollable, 'p-datatable-resizable-table': resizableColumns, 'p-datatable-resizable-table-fit': resizableColumns && columnResizeMode === 'fit' }"
|
|
[class]="tableStyleClass"
|
|
[style]="tableStyle"
|
|
[attr.id]="id + '-table'"
|
|
>
|
|
<ng-container *ngTemplateOutlet="colGroupTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
<thead role="rowgroup" #thead class="p-datatable-thead">
|
|
<ng-container *ngTemplateOutlet="headerGroupedTemplate || headerTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
</thead>
|
|
<tbody
|
|
role="rowgroup"
|
|
class="p-datatable-tbody p-datatable-frozen-tbody"
|
|
*ngIf="frozenValue || frozenBodyTemplate"
|
|
[value]="frozenValue"
|
|
[frozenRows]="true"
|
|
[pTableBody]="scrollerOptions.columns"
|
|
[pTableBodyTemplate]="frozenBodyTemplate"
|
|
[frozen]="true"
|
|
></tbody>
|
|
<tbody
|
|
role="rowgroup"
|
|
class="p-datatable-tbody"
|
|
[ngClass]="scrollerOptions.contentStyleClass"
|
|
[style]="scrollerOptions.contentStyle"
|
|
[value]="dataToRender(scrollerOptions.rows)"
|
|
[pTableBody]="scrollerOptions.columns"
|
|
[pTableBodyTemplate]="bodyTemplate"
|
|
[scrollerOptions]="scrollerOptions"
|
|
></tbody>
|
|
<tbody
|
|
role="rowgroup"
|
|
*ngIf="scrollerOptions.spacerStyle"
|
|
[style]="'height: calc(' + scrollerOptions.spacerStyle.height + ' - ' + scrollerOptions.rows.length * scrollerOptions.itemSize + 'px);'"
|
|
class="p-datatable-scroller-spacer"
|
|
></tbody>
|
|
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate" #tfoot class="p-datatable-tfoot">
|
|
<ng-container *ngTemplateOutlet="footerGroupedTemplate || footerTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
</tfoot>
|
|
</table>
|
|
</ng-template>
|
|
</div>
|
|
|
|
<p-paginator
|
|
[rows]="rows"
|
|
[first]="first"
|
|
[totalRecords]="totalRecords"
|
|
[pageLinkSize]="pageLinks"
|
|
[alwaysShow]="alwaysShowPaginator"
|
|
(onPageChange)="onPageChange($event)"
|
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
[templateLeft]="paginatorLeftTemplate"
|
|
[templateRight]="paginatorRightTemplate"
|
|
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
[showJumpToPageInput]="showJumpToPageInput"
|
|
[showPageLinks]="showPageLinks"
|
|
[styleClass]="getPaginatorStyleClasses('p-paginator-bottom')"
|
|
[locale]="paginatorLocale"
|
|
>
|
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
</ng-template>
|
|
</p-paginator>
|
|
|
|
<div *ngIf="summaryTemplate" class="p-datatable-footer">
|
|
<ng-container *ngTemplateOutlet="summaryTemplate"></ng-container>
|
|
</div>
|
|
|
|
<div #resizeHelper class="p-column-resizer-helper" style="display:none" *ngIf="resizableColumns"></div>
|
|
<span #reorderIndicatorUp class="p-datatable-reorder-indicator-up" style="display: none;" *ngIf="reorderableColumns">
|
|
<ArrowDownIcon *ngIf="!reorderIndicatorUpIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate"></ng-template>
|
|
</span>
|
|
<span #reorderIndicatorDown class="p-datatable-reorder-indicator-down" style="display: none;" *ngIf="reorderableColumns">
|
|
<ArrowUpIcon *ngIf="!reorderIndicatorDownIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate"></ng-template>
|
|
</span>
|
|
</div>
|
|
`, providers: [TableService], changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, host: {
|
|
class: 'p-element'
|
|
}, styles: ["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"] }]
|
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
type: Inject,
|
|
args: [DOCUMENT]
|
|
}] }, { type: undefined, decorators: [{
|
|
type: Inject,
|
|
args: [PLATFORM_ID]
|
|
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: TableService }, { type: i0.ChangeDetectorRef }, { type: i1.FilterService }, { type: i1.OverlayService }, { type: i1.PrimeNGConfig }], propDecorators: { frozenColumns: [{
|
|
type: Input
|
|
}], frozenValue: [{
|
|
type: Input
|
|
}], style: [{
|
|
type: Input
|
|
}], styleClass: [{
|
|
type: Input
|
|
}], tableStyle: [{
|
|
type: Input
|
|
}], tableStyleClass: [{
|
|
type: Input
|
|
}], paginator: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], pageLinks: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], rowsPerPageOptions: [{
|
|
type: Input
|
|
}], alwaysShowPaginator: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], paginatorPosition: [{
|
|
type: Input
|
|
}], paginatorStyleClass: [{
|
|
type: Input
|
|
}], paginatorDropdownAppendTo: [{
|
|
type: Input
|
|
}], paginatorDropdownScrollHeight: [{
|
|
type: Input
|
|
}], currentPageReportTemplate: [{
|
|
type: Input
|
|
}], showCurrentPageReport: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showJumpToPageDropdown: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showJumpToPageInput: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showFirstLastIcon: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showPageLinks: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], defaultSortOrder: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], sortMode: [{
|
|
type: Input
|
|
}], resetPageOnSort: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], selectionMode: [{
|
|
type: Input
|
|
}], selectionPageOnly: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], contextMenuSelection: [{
|
|
type: Input
|
|
}], contextMenuSelectionChange: [{
|
|
type: Output
|
|
}], contextMenuSelectionMode: [{
|
|
type: Input
|
|
}], dataKey: [{
|
|
type: Input
|
|
}], metaKeySelection: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], rowSelectable: [{
|
|
type: Input
|
|
}], rowTrackBy: [{
|
|
type: Input
|
|
}], lazy: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], lazyLoadOnInit: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], compareSelectionBy: [{
|
|
type: Input
|
|
}], csvSeparator: [{
|
|
type: Input
|
|
}], exportFilename: [{
|
|
type: Input
|
|
}], filters: [{
|
|
type: Input
|
|
}], globalFilterFields: [{
|
|
type: Input
|
|
}], filterDelay: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], filterLocale: [{
|
|
type: Input
|
|
}], expandedRowKeys: [{
|
|
type: Input
|
|
}], editingRowKeys: [{
|
|
type: Input
|
|
}], rowExpandMode: [{
|
|
type: Input
|
|
}], scrollable: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], scrollDirection: [{
|
|
type: Input
|
|
}], rowGroupMode: [{
|
|
type: Input
|
|
}], scrollHeight: [{
|
|
type: Input
|
|
}], virtualScroll: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], virtualScrollItemSize: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], virtualScrollOptions: [{
|
|
type: Input
|
|
}], virtualScrollDelay: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], frozenWidth: [{
|
|
type: Input
|
|
}], responsive: [{
|
|
type: Input
|
|
}], contextMenu: [{
|
|
type: Input
|
|
}], resizableColumns: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], columnResizeMode: [{
|
|
type: Input
|
|
}], reorderableColumns: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], loading: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], loadingIcon: [{
|
|
type: Input
|
|
}], showLoader: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], rowHover: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], customSort: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showInitialSortBadge: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autoLayout: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], exportFunction: [{
|
|
type: Input
|
|
}], exportHeader: [{
|
|
type: Input
|
|
}], stateKey: [{
|
|
type: Input
|
|
}], stateStorage: [{
|
|
type: Input
|
|
}], editMode: [{
|
|
type: Input
|
|
}], groupRowsBy: [{
|
|
type: Input
|
|
}], groupRowsByOrder: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], responsiveLayout: [{
|
|
type: Input
|
|
}], breakpoint: [{
|
|
type: Input
|
|
}], paginatorLocale: [{
|
|
type: Input
|
|
}], value: [{
|
|
type: Input
|
|
}], columns: [{
|
|
type: Input
|
|
}], first: [{
|
|
type: Input
|
|
}], rows: [{
|
|
type: Input
|
|
}], totalRecords: [{
|
|
type: Input
|
|
}], sortField: [{
|
|
type: Input
|
|
}], sortOrder: [{
|
|
type: Input
|
|
}], multiSortMeta: [{
|
|
type: Input
|
|
}], selection: [{
|
|
type: Input
|
|
}], selectAll: [{
|
|
type: Input
|
|
}], selectAllChange: [{
|
|
type: Output
|
|
}], selectionChange: [{
|
|
type: Output
|
|
}], onRowSelect: [{
|
|
type: Output
|
|
}], onRowUnselect: [{
|
|
type: Output
|
|
}], onPage: [{
|
|
type: Output
|
|
}], onSort: [{
|
|
type: Output
|
|
}], onFilter: [{
|
|
type: Output
|
|
}], onLazyLoad: [{
|
|
type: Output
|
|
}], onRowExpand: [{
|
|
type: Output
|
|
}], onRowCollapse: [{
|
|
type: Output
|
|
}], onContextMenuSelect: [{
|
|
type: Output
|
|
}], onColResize: [{
|
|
type: Output
|
|
}], onColReorder: [{
|
|
type: Output
|
|
}], onRowReorder: [{
|
|
type: Output
|
|
}], onEditInit: [{
|
|
type: Output
|
|
}], onEditComplete: [{
|
|
type: Output
|
|
}], onEditCancel: [{
|
|
type: Output
|
|
}], onHeaderCheckboxToggle: [{
|
|
type: Output
|
|
}], sortFunction: [{
|
|
type: Output
|
|
}], firstChange: [{
|
|
type: Output
|
|
}], rowsChange: [{
|
|
type: Output
|
|
}], onStateSave: [{
|
|
type: Output
|
|
}], onStateRestore: [{
|
|
type: Output
|
|
}], containerViewChild: [{
|
|
type: ViewChild,
|
|
args: ['container']
|
|
}], resizeHelperViewChild: [{
|
|
type: ViewChild,
|
|
args: ['resizeHelper']
|
|
}], reorderIndicatorUpViewChild: [{
|
|
type: ViewChild,
|
|
args: ['reorderIndicatorUp']
|
|
}], reorderIndicatorDownViewChild: [{
|
|
type: ViewChild,
|
|
args: ['reorderIndicatorDown']
|
|
}], wrapperViewChild: [{
|
|
type: ViewChild,
|
|
args: ['wrapper']
|
|
}], tableViewChild: [{
|
|
type: ViewChild,
|
|
args: ['table']
|
|
}], tableHeaderViewChild: [{
|
|
type: ViewChild,
|
|
args: ['thead']
|
|
}], tableFooterViewChild: [{
|
|
type: ViewChild,
|
|
args: ['tfoot']
|
|
}], scroller: [{
|
|
type: ViewChild,
|
|
args: ['scroller']
|
|
}], templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}], virtualRowHeight: [{
|
|
type: Input
|
|
}] } });
|
|
export class TableBody {
|
|
dt;
|
|
tableService;
|
|
cd;
|
|
el;
|
|
columns;
|
|
template;
|
|
get value() {
|
|
return this._value;
|
|
}
|
|
set value(val) {
|
|
this._value = val;
|
|
if (this.frozenRows) {
|
|
this.updateFrozenRowStickyPosition();
|
|
}
|
|
if (this.dt.scrollable && this.dt.rowGroupMode === 'subheader') {
|
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
}
|
|
}
|
|
frozen;
|
|
frozenRows;
|
|
scrollerOptions;
|
|
subscription;
|
|
_value;
|
|
ngAfterViewInit() {
|
|
if (this.frozenRows) {
|
|
this.updateFrozenRowStickyPosition();
|
|
}
|
|
if (this.dt.scrollable && this.dt.rowGroupMode === 'subheader') {
|
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
}
|
|
}
|
|
constructor(dt, tableService, cd, el) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
this.cd = cd;
|
|
this.el = el;
|
|
this.subscription = this.dt.tableService.valueSource$.subscribe(() => {
|
|
if (this.dt.virtualScroll) {
|
|
this.cd.detectChanges();
|
|
}
|
|
});
|
|
}
|
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);
|
|
let prevRowData = value[i - (1 + this.dt._first)];
|
|
if (prevRowData) {
|
|
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dt.groupRowsBy);
|
|
return currentRowFieldData !== previousRowFieldData;
|
|
}
|
|
else {
|
|
return true;
|
|
}
|
|
}
|
|
shouldRenderRowGroupFooter(value, rowData, i) {
|
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);
|
|
let nextRowData = value[i + (1 + this.dt._first)];
|
|
if (nextRowData) {
|
|
let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy);
|
|
return currentRowFieldData !== nextRowFieldData;
|
|
}
|
|
else {
|
|
return true;
|
|
}
|
|
}
|
|
shouldRenderRowspan(value, rowData, i) {
|
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);
|
|
let prevRowData = value[i - 1];
|
|
if (prevRowData) {
|
|
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dt.groupRowsBy);
|
|
return currentRowFieldData !== previousRowFieldData;
|
|
}
|
|
else {
|
|
return true;
|
|
}
|
|
}
|
|
calculateRowGroupSize(value, rowData, index) {
|
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);
|
|
let nextRowFieldData = currentRowFieldData;
|
|
let groupRowSpan = 0;
|
|
while (currentRowFieldData === nextRowFieldData) {
|
|
groupRowSpan++;
|
|
let nextRowData = value[++index];
|
|
if (nextRowData) {
|
|
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy);
|
|
}
|
|
else {
|
|
break;
|
|
}
|
|
}
|
|
return groupRowSpan === 1 ? null : groupRowSpan;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
updateFrozenRowStickyPosition() {
|
|
this.el.nativeElement.style.top = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling) + 'px';
|
|
}
|
|
updateFrozenRowGroupHeaderStickyPosition() {
|
|
if (this.el.nativeElement.previousElementSibling) {
|
|
let tableHeaderHeight = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling);
|
|
this.dt.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
|
|
}
|
|
}
|
|
getScrollerOption(option, options) {
|
|
if (this.dt.virtualScroll) {
|
|
options = options || this.scrollerOptions;
|
|
return options ? options[option] : null;
|
|
}
|
|
return null;
|
|
}
|
|
getRowIndex(rowIndex) {
|
|
const index = this.dt.paginator ? this.dt.first + rowIndex : rowIndex;
|
|
const getItemOptions = this.getScrollerOption('getItemOptions');
|
|
return getItemOptions ? getItemOptions(index).index : index;
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableBody, deps: [{ token: Table }, { token: TableService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: TableBody, selector: "[pTableBody]", inputs: { columns: ["pTableBody", "columns"], template: ["pTableBodyTemplate", "template"], value: "value", frozen: ["frozen", "frozen", booleanAttribute], frozenRows: ["frozenRows", "frozenRows", booleanAttribute], scrollerOptions: "scrollerOptions" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
|
<ng-container *ngIf="!dt.expandedRowTemplate">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container *ngIf="dt.groupHeaderTemplate && !dt.virtualScroll && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, rowIndex)" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="dt.groupHeaderTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.rowGroupMode !== 'rowspan'">
|
|
<ng-container
|
|
*ngTemplateOutlet="rowData ? template : dt.loadingBodyTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.rowGroupMode === 'rowspan'">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
rowData ? template : dt.loadingBodyTemplate;
|
|
context: {
|
|
$implicit: rowData,
|
|
rowIndex: getRowIndex(rowIndex),
|
|
columns: columns,
|
|
editing: dt.editMode === 'row' && dt.isRowEditing(rowData),
|
|
frozen: frozen,
|
|
rowgroup: shouldRenderRowspan(value, rowData, rowIndex),
|
|
rowspan: calculateRowGroupSize(value, rowData, rowIndex)
|
|
}
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.groupFooterTemplate && !dt.virtualScroll && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, rowIndex)" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="dt.groupFooterTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.expandedRowTemplate && !(frozen && dt.frozenExpandedRowTemplate)">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container *ngIf="!dt.groupHeaderTemplate">
|
|
<ng-container
|
|
*ngTemplateOutlet="template; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.groupHeaderTemplate && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
dt.groupHeaderTemplate;
|
|
context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.isRowExpanded(rowData)">
|
|
<ng-container *ngTemplateOutlet="dt.expandedRowTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, frozen: frozen }"></ng-container>
|
|
<ng-container *ngIf="dt.groupFooterTemplate && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
dt.groupFooterTemplate;
|
|
context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.frozenExpandedRowTemplate && frozen">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container
|
|
*ngTemplateOutlet="template; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
<ng-container *ngIf="dt.isRowExpanded(rowData)">
|
|
<ng-container *ngTemplateOutlet="dt.frozenExpandedRowTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.loading">
|
|
<ng-container *ngTemplateOutlet="dt.loadingBodyTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.isEmpty() && !dt.loading">
|
|
<ng-container *ngTemplateOutlet="dt.emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableBody, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: '[pTableBody]',
|
|
template: `
|
|
<ng-container *ngIf="!dt.expandedRowTemplate">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container *ngIf="dt.groupHeaderTemplate && !dt.virtualScroll && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, rowIndex)" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="dt.groupHeaderTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.rowGroupMode !== 'rowspan'">
|
|
<ng-container
|
|
*ngTemplateOutlet="rowData ? template : dt.loadingBodyTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.rowGroupMode === 'rowspan'">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
rowData ? template : dt.loadingBodyTemplate;
|
|
context: {
|
|
$implicit: rowData,
|
|
rowIndex: getRowIndex(rowIndex),
|
|
columns: columns,
|
|
editing: dt.editMode === 'row' && dt.isRowEditing(rowData),
|
|
frozen: frozen,
|
|
rowgroup: shouldRenderRowspan(value, rowData, rowIndex),
|
|
rowspan: calculateRowGroupSize(value, rowData, rowIndex)
|
|
}
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.groupFooterTemplate && !dt.virtualScroll && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, rowIndex)" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="dt.groupFooterTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.expandedRowTemplate && !(frozen && dt.frozenExpandedRowTemplate)">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container *ngIf="!dt.groupHeaderTemplate">
|
|
<ng-container
|
|
*ngTemplateOutlet="template; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.groupHeaderTemplate && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
dt.groupHeaderTemplate;
|
|
context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.isRowExpanded(rowData)">
|
|
<ng-container *ngTemplateOutlet="dt.expandedRowTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, frozen: frozen }"></ng-container>
|
|
<ng-container *ngIf="dt.groupFooterTemplate && dt.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
dt.groupFooterTemplate;
|
|
context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.frozenExpandedRowTemplate && frozen">
|
|
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dt.rowTrackBy">
|
|
<ng-container
|
|
*ngTemplateOutlet="template; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, expanded: dt.isRowExpanded(rowData), editing: dt.editMode === 'row' && dt.isRowEditing(rowData), frozen: frozen }"
|
|
></ng-container>
|
|
<ng-container *ngIf="dt.isRowExpanded(rowData)">
|
|
<ng-container *ngTemplateOutlet="dt.frozenExpandedRowTemplate; context: { $implicit: rowData, rowIndex: getRowIndex(rowIndex), columns: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
</ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.loading">
|
|
<ng-container *ngTemplateOutlet="dt.loadingBodyTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dt.isEmpty() && !dt.loading">
|
|
<ng-container *ngTemplateOutlet="dt.emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
</ng-container>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { columns: [{
|
|
type: Input,
|
|
args: ['pTableBody']
|
|
}], template: [{
|
|
type: Input,
|
|
args: ['pTableBodyTemplate']
|
|
}], value: [{
|
|
type: Input
|
|
}], frozen: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], frozenRows: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], scrollerOptions: [{
|
|
type: Input
|
|
}] } });
|
|
export class RowGroupHeader {
|
|
dt;
|
|
constructor(dt) {
|
|
this.dt = dt;
|
|
}
|
|
get getFrozenRowGroupHeaderStickyPosition() {
|
|
return this.dt.rowGroupHeaderStyleObject ? this.dt.rowGroupHeaderStyleObject.top : '';
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RowGroupHeader, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: RowGroupHeader, selector: "[pRowGroupHeader]", host: { properties: { "style.top": "getFrozenRowGroupHeaderStickyPosition" }, classAttribute: "p-rowgroup-header p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RowGroupHeader, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pRowGroupHeader]',
|
|
host: {
|
|
class: 'p-rowgroup-header p-element',
|
|
'[style.top]': 'getFrozenRowGroupHeaderStickyPosition'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }] });
|
|
export class FrozenColumn {
|
|
el;
|
|
zone;
|
|
get frozen() {
|
|
return this._frozen;
|
|
}
|
|
set frozen(val) {
|
|
this._frozen = val;
|
|
Promise.resolve(null).then(() => this.updateStickyPosition());
|
|
}
|
|
alignFrozen = 'left';
|
|
constructor(el, zone) {
|
|
this.el = el;
|
|
this.zone = zone;
|
|
}
|
|
ngAfterViewInit() {
|
|
this.zone.runOutsideAngular(() => {
|
|
setTimeout(() => {
|
|
this.recalculateColumns();
|
|
}, 1000);
|
|
});
|
|
}
|
|
recalculateColumns() {
|
|
const siblings = DomHandler.siblings(this.el.nativeElement);
|
|
const index = DomHandler.index(this.el.nativeElement);
|
|
const time = (siblings.length - index + 1) * 50;
|
|
setTimeout(() => {
|
|
this.updateStickyPosition();
|
|
}, time);
|
|
}
|
|
_frozen = true;
|
|
updateStickyPosition() {
|
|
if (this._frozen) {
|
|
if (this.alignFrozen === 'right') {
|
|
let right = 0;
|
|
let next = this.el.nativeElement.nextElementSibling;
|
|
if (next) {
|
|
right = DomHandler.getOuterWidth(next) + (parseFloat(next.style.right) || 0);
|
|
}
|
|
this.el.nativeElement.style.right = right + 'px';
|
|
}
|
|
else {
|
|
let left = 0;
|
|
let prev = this.el.nativeElement.previousElementSibling;
|
|
if (prev) {
|
|
left = DomHandler.getOuterWidth(prev) + (parseFloat(prev.style.left) || 0);
|
|
}
|
|
this.el.nativeElement.style.left = left + 'px';
|
|
}
|
|
const filterRow = this.el.nativeElement?.parentElement?.nextElementSibling;
|
|
if (filterRow) {
|
|
let index = DomHandler.index(this.el.nativeElement);
|
|
if (filterRow.children && filterRow.children[index]) {
|
|
filterRow.children[index].style.left = this.el.nativeElement.style.left;
|
|
filterRow.children[index].style.right = this.el.nativeElement.style.right;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: FrozenColumn, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: FrozenColumn, selector: "[pFrozenColumn]", inputs: { frozen: "frozen", alignFrozen: "alignFrozen" }, host: { listeners: { "window:resize": "recalculateColumns($event)" }, properties: { "class.p-frozen-column": "frozen" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: FrozenColumn, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pFrozenColumn]',
|
|
host: {
|
|
class: 'p-element',
|
|
'[class.p-frozen-column]': 'frozen'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { frozen: [{
|
|
type: Input
|
|
}], alignFrozen: [{
|
|
type: Input
|
|
}], recalculateColumns: [{
|
|
type: HostListener,
|
|
args: ['window:resize', ['$event']]
|
|
}] } });
|
|
export class SortableColumn {
|
|
dt;
|
|
field;
|
|
pSortableColumnDisabled;
|
|
sorted;
|
|
sortOrder;
|
|
subscription;
|
|
constructor(dt) {
|
|
this.dt = dt;
|
|
if (this.isEnabled()) {
|
|
this.subscription = this.dt.tableService.sortSource$.subscribe((sortMeta) => {
|
|
this.updateSortState();
|
|
});
|
|
}
|
|
}
|
|
ngOnInit() {
|
|
if (this.isEnabled()) {
|
|
this.updateSortState();
|
|
}
|
|
}
|
|
updateSortState() {
|
|
this.sorted = this.dt.isSorted(this.field);
|
|
this.sortOrder = this.sorted ? (this.dt.sortOrder === 1 ? 'ascending' : 'descending') : 'none';
|
|
}
|
|
onClick(event) {
|
|
if (this.isEnabled() && !this.isFilterElement(event.target)) {
|
|
this.updateSortState();
|
|
this.dt.sort({
|
|
originalEvent: event,
|
|
field: this.field
|
|
});
|
|
DomHandler.clearSelection();
|
|
}
|
|
}
|
|
onEnterKey(event) {
|
|
this.onClick(event);
|
|
event.preventDefault();
|
|
}
|
|
isEnabled() {
|
|
return this.pSortableColumnDisabled !== true;
|
|
}
|
|
isFilterElement(element) {
|
|
return this.isFilterElementIconOrButton(element) || this.isFilterElementIconOrButton(element?.parentElement?.parentElement);
|
|
}
|
|
isFilterElementIconOrButton(element) {
|
|
return DomHandler.hasClass(element, 'pi-filter-icon') || DomHandler.hasClass(element, 'p-column-filter-menu-button');
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SortableColumn, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: SortableColumn, selector: "[pSortableColumn]", inputs: { field: ["pSortableColumn", "field"], pSortableColumnDisabled: ["pSortableColumnDisabled", "pSortableColumnDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown.space": "onEnterKey($event)", "keydown.enter": "onEnterKey($event)" }, properties: { "class.p-sortable-column": "isEnabled()", "class.p-highlight": "sorted", "attr.tabindex": "isEnabled() ? \"0\" : null", "attr.role": "\"columnheader\"", "attr.aria-sort": "sortOrder" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SortableColumn, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pSortableColumn]',
|
|
host: {
|
|
class: 'p-element',
|
|
'[class.p-sortable-column]': 'isEnabled()',
|
|
'[class.p-highlight]': 'sorted',
|
|
'[attr.tabindex]': 'isEnabled() ? "0" : null',
|
|
'[attr.role]': '"columnheader"',
|
|
'[attr.aria-sort]': 'sortOrder'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }], propDecorators: { field: [{
|
|
type: Input,
|
|
args: ['pSortableColumn']
|
|
}], pSortableColumnDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}], onEnterKey: [{
|
|
type: HostListener,
|
|
args: ['keydown.space', ['$event']]
|
|
}, {
|
|
type: HostListener,
|
|
args: ['keydown.enter', ['$event']]
|
|
}] } });
|
|
export class SortIcon {
|
|
dt;
|
|
cd;
|
|
field;
|
|
subscription;
|
|
sortOrder;
|
|
constructor(dt, cd) {
|
|
this.dt = dt;
|
|
this.cd = cd;
|
|
this.subscription = this.dt.tableService.sortSource$.subscribe((sortMeta) => {
|
|
this.updateSortState();
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.updateSortState();
|
|
}
|
|
onClick(event) {
|
|
event.preventDefault();
|
|
}
|
|
updateSortState() {
|
|
if (this.dt.sortMode === 'single') {
|
|
this.sortOrder = this.dt.isSorted(this.field) ? this.dt.sortOrder : 0;
|
|
}
|
|
else if (this.dt.sortMode === 'multiple') {
|
|
let sortMeta = this.dt.getSortMeta(this.field);
|
|
this.sortOrder = sortMeta ? sortMeta.order : 0;
|
|
}
|
|
this.cd.markForCheck();
|
|
}
|
|
getMultiSortMetaIndex() {
|
|
let multiSortMeta = this.dt._multiSortMeta;
|
|
let index = -1;
|
|
if (multiSortMeta && this.dt.sortMode === 'multiple' && this.dt.showInitialSortBadge && multiSortMeta.length > 1) {
|
|
for (let i = 0; i < multiSortMeta.length; i++) {
|
|
let meta = multiSortMeta[i];
|
|
if (meta.field === this.field || meta.field === this.field) {
|
|
index = i;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return index;
|
|
}
|
|
getBadgeValue() {
|
|
let index = this.getMultiSortMetaIndex();
|
|
return this.dt.groupRowsBy && index > -1 ? index : index + 1;
|
|
}
|
|
isMultiSorted() {
|
|
return this.dt.sortMode === 'multiple' && this.getMultiSortMetaIndex() > -1;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SortIcon, deps: [{ token: Table }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.7", type: SortIcon, selector: "p-sortIcon", inputs: { field: "field" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
|
<ng-container *ngIf="!dt.sortIconTemplate">
|
|
<SortAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 0" />
|
|
<SortAmountUpAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 1" />
|
|
<SortAmountDownIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === -1" />
|
|
</ng-container>
|
|
<span *ngIf="dt.sortIconTemplate" class="p-sortable-column-icon">
|
|
<ng-template *ngTemplateOutlet="dt.sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
</span>
|
|
<span *ngIf="isMultiSorted()" class="p-sortable-column-badge">{{ getBadgeValue() }}</span>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SortAltIcon), selector: "SortAltIcon" }, { kind: "component", type: i0.forwardRef(() => SortAmountUpAltIcon), selector: "SortAmountUpAltIcon" }, { kind: "component", type: i0.forwardRef(() => SortAmountDownIcon), selector: "SortAmountDownIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SortIcon, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-sortIcon',
|
|
template: `
|
|
<ng-container *ngIf="!dt.sortIconTemplate">
|
|
<SortAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 0" />
|
|
<SortAmountUpAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 1" />
|
|
<SortAmountDownIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === -1" />
|
|
</ng-container>
|
|
<span *ngIf="dt.sortIconTemplate" class="p-sortable-column-icon">
|
|
<ng-template *ngTemplateOutlet="dt.sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
</span>
|
|
<span *ngIf="isMultiSorted()" class="p-sortable-column-badge">{{ getBadgeValue() }}</span>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: i0.ChangeDetectorRef }], propDecorators: { field: [{
|
|
type: Input
|
|
}] } });
|
|
export class SelectableRow {
|
|
dt;
|
|
tableService;
|
|
el;
|
|
data;
|
|
index;
|
|
pSelectableRowDisabled;
|
|
selected;
|
|
subscription;
|
|
constructor(dt, tableService, el) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
this.el = el;
|
|
if (this.isEnabled()) {
|
|
this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {
|
|
this.selected = this.dt.isSelected(this.data);
|
|
});
|
|
}
|
|
}
|
|
setRowTabIndex() {
|
|
if (this.dt.selectionMode === 'single' || this.dt.selectionMode === 'multiple') {
|
|
return !this.dt.selection ? 0 : this.dt.anchorRowIndex === this.index ? 0 : -1;
|
|
}
|
|
}
|
|
ngOnInit() {
|
|
if (this.isEnabled()) {
|
|
this.selected = this.dt.isSelected(this.data);
|
|
}
|
|
}
|
|
onClick(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.handleRowClick({
|
|
originalEvent: event,
|
|
rowData: this.data,
|
|
rowIndex: this.index
|
|
});
|
|
}
|
|
}
|
|
onTouchEnd(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.handleRowTouchEnd(event);
|
|
}
|
|
}
|
|
onKeyDown(event) {
|
|
switch (event.code) {
|
|
case 'ArrowDown':
|
|
this.onArrowDownKey(event);
|
|
break;
|
|
case 'ArrowUp':
|
|
this.onArrowUpKey(event);
|
|
break;
|
|
case 'Home':
|
|
this.onHomeKey(event);
|
|
break;
|
|
case 'End':
|
|
this.onEndKey(event);
|
|
break;
|
|
case 'Space':
|
|
this.onSpaceKey(event);
|
|
break;
|
|
case 'Enter':
|
|
this.onEnterKey(event);
|
|
break;
|
|
default:
|
|
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey) && this.dt.selectionMode === 'multiple') {
|
|
const data = this.dt.dataToRender(this.dt.processedData);
|
|
this.dt.selection = [...data];
|
|
this.dt.selectRange(event, data.length - 1);
|
|
event.preventDefault();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
onArrowDownKey(event) {
|
|
if (!this.isEnabled()) {
|
|
return;
|
|
}
|
|
const row = event.currentTarget;
|
|
const nextRow = this.findNextSelectableRow(row);
|
|
if (nextRow) {
|
|
nextRow.focus();
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onArrowUpKey(event) {
|
|
if (!this.isEnabled()) {
|
|
return;
|
|
}
|
|
const row = event.currentTarget;
|
|
const prevRow = this.findPrevSelectableRow(row);
|
|
if (prevRow) {
|
|
prevRow.focus();
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onEnterKey(event) {
|
|
if (!this.isEnabled()) {
|
|
return;
|
|
}
|
|
this.dt.handleRowClick({
|
|
originalEvent: event,
|
|
rowData: this.data,
|
|
rowIndex: this.index
|
|
});
|
|
}
|
|
onEndKey(event) {
|
|
const lastRow = this.findLastSelectableRow();
|
|
lastRow && this.focusRowChange(this.el.nativeElement, lastRow);
|
|
if (event.ctrlKey && event.shiftKey) {
|
|
const data = this.dt.dataToRender(this.dt.rows);
|
|
const lastSelectableRowIndex = DomHandler.getAttribute(lastRow, 'index');
|
|
this.dt.anchorRowIndex = lastSelectableRowIndex;
|
|
this.dt.selection = data.slice(this.index, data.length);
|
|
this.dt.selectRange(event, this.index);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onHomeKey(event) {
|
|
const firstRow = this.findFirstSelectableRow();
|
|
firstRow && this.focusRowChange(this.el.nativeElement, firstRow);
|
|
if (event.ctrlKey && event.shiftKey) {
|
|
const data = this.dt.dataToRender(this.dt.rows);
|
|
const firstSelectableRowIndex = DomHandler.getAttribute(firstRow, 'index');
|
|
this.dt.anchorRowIndex = this.dt.anchorRowIndex || firstSelectableRowIndex;
|
|
this.dt.selection = data.slice(0, this.index + 1);
|
|
this.dt.selectRange(event, this.index);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onSpaceKey(event) {
|
|
const isInput = event.target instanceof HTMLInputElement || event.target instanceof HTMLSelectElement || event.target instanceof HTMLTextAreaElement;
|
|
if (isInput) {
|
|
return;
|
|
}
|
|
else {
|
|
this.onEnterKey(event);
|
|
if (event.shiftKey && this.dt.selection !== null) {
|
|
const data = this.dt.dataToRender(this.dt.rows);
|
|
let index;
|
|
if (ObjectUtils.isNotEmpty(this.dt.selection) && this.dt.selection.length > 0) {
|
|
let firstSelectedRowIndex, lastSelectedRowIndex;
|
|
firstSelectedRowIndex = ObjectUtils.findIndexInList(this.dt.selection[0], data);
|
|
lastSelectedRowIndex = ObjectUtils.findIndexInList(this.dt.selection[this.dt.selection.length - 1], data);
|
|
index = this.index <= firstSelectedRowIndex ? lastSelectedRowIndex : firstSelectedRowIndex;
|
|
}
|
|
else {
|
|
index = ObjectUtils.findIndexInList(this.dt.selection, data);
|
|
}
|
|
this.dt.anchorRowIndex = index;
|
|
this.dt.selection = index !== this.index ? data.slice(Math.min(index, this.index), Math.max(index, this.index) + 1) : [this.data];
|
|
this.dt.selectRange(event, this.index);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
focusRowChange(firstFocusableRow, currentFocusedRow) {
|
|
firstFocusableRow.tabIndex = '-1';
|
|
currentFocusedRow.tabIndex = '0';
|
|
DomHandler.focus(currentFocusedRow);
|
|
}
|
|
findLastSelectableRow() {
|
|
const rows = DomHandler.find(this.dt.el.nativeElement, '.p-selectable-row');
|
|
return rows ? rows[rows.length - 1] : null;
|
|
}
|
|
findFirstSelectableRow() {
|
|
const firstRow = DomHandler.findSingle(this.dt.el.nativeElement, '.p-selectable-row');
|
|
return firstRow;
|
|
}
|
|
findNextSelectableRow(row) {
|
|
let nextRow = row.nextElementSibling;
|
|
if (nextRow) {
|
|
if (DomHandler.hasClass(nextRow, 'p-selectable-row'))
|
|
return nextRow;
|
|
else
|
|
return this.findNextSelectableRow(nextRow);
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
findPrevSelectableRow(row) {
|
|
let prevRow = row.previousElementSibling;
|
|
if (prevRow) {
|
|
if (DomHandler.hasClass(prevRow, 'p-selectable-row'))
|
|
return prevRow;
|
|
else
|
|
return this.findPrevSelectableRow(prevRow);
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pSelectableRowDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SelectableRow, deps: [{ token: Table }, { token: TableService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: SelectableRow, selector: "[pSelectableRow]", inputs: { data: ["pSelectableRow", "data"], index: ["pSelectableRowIndex", "index"], pSelectableRowDisabled: ["pSelectableRowDisabled", "pSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "touchend": "onTouchEnd($event)", "keydown": "onKeyDown($event)" }, properties: { "class.p-selectable-row": "isEnabled()", "class.p-highlight": "selected", "attr.tabindex": "setRowTabIndex()", "attr.data-p-highlight": "selected", "attr.data-p-selectable-row": "true" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SelectableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pSelectableRow]',
|
|
host: {
|
|
class: 'p-element',
|
|
'[class.p-selectable-row]': 'isEnabled()',
|
|
'[class.p-highlight]': 'selected',
|
|
'[attr.tabindex]': 'setRowTabIndex()',
|
|
'[attr.data-p-highlight]': 'selected',
|
|
'[attr.data-p-selectable-row]': 'true'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }, { type: i0.ElementRef }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pSelectableRow']
|
|
}], index: [{
|
|
type: Input,
|
|
args: ['pSelectableRowIndex']
|
|
}], pSelectableRowDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}], onTouchEnd: [{
|
|
type: HostListener,
|
|
args: ['touchend', ['$event']]
|
|
}], onKeyDown: [{
|
|
type: HostListener,
|
|
args: ['keydown', ['$event']]
|
|
}] } });
|
|
export class SelectableRowDblClick {
|
|
dt;
|
|
tableService;
|
|
data;
|
|
index;
|
|
pSelectableRowDisabled;
|
|
selected;
|
|
subscription;
|
|
constructor(dt, tableService) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
if (this.isEnabled()) {
|
|
this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {
|
|
this.selected = this.dt.isSelected(this.data);
|
|
});
|
|
}
|
|
}
|
|
ngOnInit() {
|
|
if (this.isEnabled()) {
|
|
this.selected = this.dt.isSelected(this.data);
|
|
}
|
|
}
|
|
onClick(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.handleRowClick({
|
|
originalEvent: event,
|
|
rowData: this.data,
|
|
rowIndex: this.index
|
|
});
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pSelectableRowDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SelectableRowDblClick, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: SelectableRowDblClick, selector: "[pSelectableRowDblClick]", inputs: { data: ["pSelectableRowDblClick", "data"], index: ["pSelectableRowIndex", "index"], pSelectableRowDisabled: ["pSelectableRowDisabled", "pSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "dblclick": "onClick($event)" }, properties: { "class.p-selectable-row": "isEnabled()", "class.p-highlight": "selected" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SelectableRowDblClick, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pSelectableRowDblClick]',
|
|
host: {
|
|
class: 'p-element',
|
|
'[class.p-selectable-row]': 'isEnabled()',
|
|
'[class.p-highlight]': 'selected'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pSelectableRowDblClick']
|
|
}], index: [{
|
|
type: Input,
|
|
args: ['pSelectableRowIndex']
|
|
}], pSelectableRowDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onClick: [{
|
|
type: HostListener,
|
|
args: ['dblclick', ['$event']]
|
|
}] } });
|
|
export class ContextMenuRow {
|
|
dt;
|
|
tableService;
|
|
el;
|
|
data;
|
|
index;
|
|
pContextMenuRowDisabled;
|
|
selected;
|
|
subscription;
|
|
constructor(dt, tableService, el) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
this.el = el;
|
|
if (this.isEnabled()) {
|
|
this.subscription = this.dt.tableService.contextMenuSource$.subscribe((data) => {
|
|
this.selected = this.dt.equals(this.data, data);
|
|
});
|
|
}
|
|
}
|
|
onContextMenu(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.handleRowRightClick({
|
|
originalEvent: event,
|
|
rowData: this.data,
|
|
rowIndex: this.index
|
|
});
|
|
this.el.nativeElement.focus();
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pContextMenuRowDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ContextMenuRow, deps: [{ token: Table }, { token: TableService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ContextMenuRow, selector: "[pContextMenuRow]", inputs: { data: ["pContextMenuRow", "data"], index: ["pContextMenuRowIndex", "index"], pContextMenuRowDisabled: ["pContextMenuRowDisabled", "pContextMenuRowDisabled", booleanAttribute] }, host: { listeners: { "contextmenu": "onContextMenu($event)" }, properties: { "class.p-highlight-contextmenu": "selected", "attr.tabindex": "isEnabled() ? 0 : undefined" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ContextMenuRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pContextMenuRow]',
|
|
host: {
|
|
class: 'p-element',
|
|
'[class.p-highlight-contextmenu]': 'selected',
|
|
'[attr.tabindex]': 'isEnabled() ? 0 : undefined'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }, { type: i0.ElementRef }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pContextMenuRow']
|
|
}], index: [{
|
|
type: Input,
|
|
args: ['pContextMenuRowIndex']
|
|
}], pContextMenuRowDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onContextMenu: [{
|
|
type: HostListener,
|
|
args: ['contextmenu', ['$event']]
|
|
}] } });
|
|
export class RowToggler {
|
|
dt;
|
|
data;
|
|
pRowTogglerDisabled;
|
|
constructor(dt) {
|
|
this.dt = dt;
|
|
}
|
|
onClick(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.toggleRow(this.data, event);
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pRowTogglerDisabled !== true;
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RowToggler, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: RowToggler, selector: "[pRowToggler]", inputs: { data: ["pRowToggler", "data"], pRowTogglerDisabled: ["pRowTogglerDisabled", "pRowTogglerDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RowToggler, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pRowToggler]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pRowToggler']
|
|
}], pRowTogglerDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}] } });
|
|
export class ResizableColumn {
|
|
document;
|
|
platformId;
|
|
renderer;
|
|
dt;
|
|
el;
|
|
zone;
|
|
pResizableColumnDisabled;
|
|
resizer;
|
|
resizerMouseDownListener;
|
|
resizerTouchStartListener;
|
|
resizerTouchMoveListener;
|
|
resizerTouchEndListener;
|
|
documentMouseMoveListener;
|
|
documentMouseUpListener;
|
|
constructor(document, platformId, renderer, dt, el, zone) {
|
|
this.document = document;
|
|
this.platformId = platformId;
|
|
this.renderer = renderer;
|
|
this.dt = dt;
|
|
this.el = el;
|
|
this.zone = zone;
|
|
}
|
|
ngAfterViewInit() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (this.isEnabled()) {
|
|
DomHandler.addClass(this.el.nativeElement, 'p-resizable-column');
|
|
this.resizer = this.renderer.createElement('span');
|
|
this.renderer.addClass(this.resizer, 'p-column-resizer');
|
|
this.renderer.appendChild(this.el.nativeElement, this.resizer);
|
|
this.zone.runOutsideAngular(() => {
|
|
this.resizerMouseDownListener = this.renderer.listen(this.resizer, 'mousedown', this.onMouseDown.bind(this));
|
|
this.resizerTouchStartListener = this.renderer.listen(this.resizer, 'touchstart', this.onTouchStart.bind(this));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
bindDocumentEvents() {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.documentMouseMoveListener = this.renderer.listen(this.document, 'mousemove', this.onDocumentMouseMove.bind(this));
|
|
this.documentMouseUpListener = this.renderer.listen(this.document, 'mouseup', this.onDocumentMouseUp.bind(this));
|
|
this.resizerTouchMoveListener = this.renderer.listen(this.resizer, 'touchmove', this.onTouchMove.bind(this));
|
|
this.resizerTouchEndListener = this.renderer.listen(this.resizer, 'touchend', this.onTouchEnd.bind(this));
|
|
});
|
|
}
|
|
unbindDocumentEvents() {
|
|
if (this.documentMouseMoveListener) {
|
|
this.documentMouseMoveListener();
|
|
this.documentMouseMoveListener = null;
|
|
}
|
|
if (this.documentMouseUpListener) {
|
|
this.documentMouseUpListener();
|
|
this.documentMouseUpListener = null;
|
|
}
|
|
if (this.resizerTouchMoveListener) {
|
|
this.resizerTouchMoveListener();
|
|
this.resizerTouchMoveListener = null;
|
|
}
|
|
if (this.resizerTouchEndListener) {
|
|
this.resizerTouchEndListener();
|
|
this.resizerTouchEndListener = null;
|
|
}
|
|
}
|
|
onMouseDown(event) {
|
|
this.dt.onColumnResizeBegin(event);
|
|
this.bindDocumentEvents();
|
|
}
|
|
onTouchStart(event) {
|
|
this.dt.onColumnResizeBegin(event);
|
|
this.bindDocumentEvents();
|
|
}
|
|
onTouchMove(event) {
|
|
this.dt.onColumnResize(event);
|
|
}
|
|
onDocumentMouseMove(event) {
|
|
this.dt.onColumnResize(event);
|
|
}
|
|
onDocumentMouseUp(event) {
|
|
this.dt.onColumnResizeEnd();
|
|
this.unbindDocumentEvents();
|
|
}
|
|
onTouchEnd(event) {
|
|
this.dt.onColumnResizeEnd();
|
|
this.unbindDocumentEvents();
|
|
}
|
|
isEnabled() {
|
|
return this.pResizableColumnDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.resizerMouseDownListener) {
|
|
this.resizerMouseDownListener();
|
|
this.resizerMouseDownListener = null;
|
|
}
|
|
this.unbindDocumentEvents();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizableColumn, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: Table }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ResizableColumn, selector: "[pResizableColumn]", inputs: { pResizableColumnDisabled: ["pResizableColumnDisabled", "pResizableColumnDisabled", booleanAttribute] }, host: { classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizableColumn, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pResizableColumn]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
type: Inject,
|
|
args: [DOCUMENT]
|
|
}] }, { type: undefined, decorators: [{
|
|
type: Inject,
|
|
args: [PLATFORM_ID]
|
|
}] }, { type: i0.Renderer2 }, { type: Table }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { pResizableColumnDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}] } });
|
|
export class ReorderableColumn {
|
|
platformId;
|
|
renderer;
|
|
dt;
|
|
el;
|
|
zone;
|
|
pReorderableColumnDisabled;
|
|
dragStartListener;
|
|
dragOverListener;
|
|
dragEnterListener;
|
|
dragLeaveListener;
|
|
mouseDownListener;
|
|
constructor(platformId, renderer, dt, el, zone) {
|
|
this.platformId = platformId;
|
|
this.renderer = renderer;
|
|
this.dt = dt;
|
|
this.el = el;
|
|
this.zone = zone;
|
|
}
|
|
ngAfterViewInit() {
|
|
if (this.isEnabled()) {
|
|
this.bindEvents();
|
|
}
|
|
}
|
|
bindEvents() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));
|
|
this.dragStartListener = this.renderer.listen(this.el.nativeElement, 'dragstart', this.onDragStart.bind(this));
|
|
this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.onDragOver.bind(this));
|
|
this.dragEnterListener = this.renderer.listen(this.el.nativeElement, 'dragenter', this.onDragEnter.bind(this));
|
|
this.dragLeaveListener = this.renderer.listen(this.el.nativeElement, 'dragleave', this.onDragLeave.bind(this));
|
|
});
|
|
}
|
|
}
|
|
unbindEvents() {
|
|
if (this.mouseDownListener) {
|
|
this.mouseDownListener();
|
|
this.mouseDownListener = null;
|
|
}
|
|
if (this.dragStartListener) {
|
|
this.dragStartListener();
|
|
this.dragStartListener = null;
|
|
}
|
|
if (this.dragOverListener) {
|
|
this.dragOverListener();
|
|
this.dragOverListener = null;
|
|
}
|
|
if (this.dragEnterListener) {
|
|
this.dragEnterListener();
|
|
this.dragEnterListener = null;
|
|
}
|
|
if (this.dragLeaveListener) {
|
|
this.dragLeaveListener();
|
|
this.dragLeaveListener = null;
|
|
}
|
|
}
|
|
onMouseDown(event) {
|
|
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer'))
|
|
this.el.nativeElement.draggable = false;
|
|
else
|
|
this.el.nativeElement.draggable = true;
|
|
}
|
|
onDragStart(event) {
|
|
this.dt.onColumnDragStart(event, this.el.nativeElement);
|
|
}
|
|
onDragOver(event) {
|
|
event.preventDefault();
|
|
}
|
|
onDragEnter(event) {
|
|
this.dt.onColumnDragEnter(event, this.el.nativeElement);
|
|
}
|
|
onDragLeave(event) {
|
|
this.dt.onColumnDragLeave(event);
|
|
}
|
|
onDrop(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.onColumnDrop(event, this.el.nativeElement);
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pReorderableColumnDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
this.unbindEvents();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableColumn, deps: [{ token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: Table }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ReorderableColumn, selector: "[pReorderableColumn]", inputs: { pReorderableColumnDisabled: ["pReorderableColumnDisabled", "pReorderableColumnDisabled", booleanAttribute] }, host: { listeners: { "drop": "onDrop($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableColumn, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pReorderableColumn]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
type: Inject,
|
|
args: [PLATFORM_ID]
|
|
}] }, { type: i0.Renderer2 }, { type: Table }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { pReorderableColumnDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onDrop: [{
|
|
type: HostListener,
|
|
args: ['drop', ['$event']]
|
|
}] } });
|
|
export class EditableColumn {
|
|
dt;
|
|
el;
|
|
zone;
|
|
data;
|
|
field;
|
|
rowIndex;
|
|
pEditableColumnDisabled;
|
|
pFocusCellSelector;
|
|
overlayEventListener;
|
|
constructor(dt, el, zone) {
|
|
this.dt = dt;
|
|
this.el = el;
|
|
this.zone = zone;
|
|
}
|
|
ngOnChanges(changes) {
|
|
if (this.el.nativeElement && !changes.data?.firstChange) {
|
|
this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);
|
|
}
|
|
}
|
|
ngAfterViewInit() {
|
|
if (this.isEnabled()) {
|
|
DomHandler.addClass(this.el.nativeElement, 'p-editable-column');
|
|
}
|
|
}
|
|
onClick(event) {
|
|
if (this.isEnabled()) {
|
|
this.dt.selfClick = true;
|
|
if (this.dt.editingCell) {
|
|
if (this.dt.editingCell !== this.el.nativeElement) {
|
|
if (!this.dt.isEditingCellValid()) {
|
|
return;
|
|
}
|
|
this.closeEditingCell(true, event);
|
|
this.openCell();
|
|
}
|
|
}
|
|
else {
|
|
this.openCell();
|
|
}
|
|
}
|
|
}
|
|
openCell() {
|
|
this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);
|
|
DomHandler.addClass(this.el.nativeElement, 'p-cell-editing');
|
|
this.dt.onEditInit.emit({ field: this.field, data: this.data, index: this.rowIndex });
|
|
this.zone.runOutsideAngular(() => {
|
|
setTimeout(() => {
|
|
let focusCellSelector = this.pFocusCellSelector || 'input, textarea, select';
|
|
let focusableElement = DomHandler.findSingle(this.el.nativeElement, focusCellSelector);
|
|
if (focusableElement) {
|
|
focusableElement.focus();
|
|
}
|
|
}, 50);
|
|
});
|
|
this.overlayEventListener = (e) => {
|
|
if (this.el && this.el.nativeElement.contains(e.target)) {
|
|
this.dt.selfClick = true;
|
|
}
|
|
};
|
|
this.dt.overlaySubscription = this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener);
|
|
}
|
|
closeEditingCell(completed, event) {
|
|
const eventData = { field: this.dt.editingCellField, data: this.dt.editingCellData, originalEvent: event, index: this.dt.editingCellRowIndex };
|
|
if (completed) {
|
|
this.dt.onEditComplete.emit(eventData);
|
|
}
|
|
else {
|
|
this.dt.onEditCancel.emit(eventData);
|
|
this.dt.value.forEach((element) => {
|
|
if (element[this.dt.editingCellField] === this.data) {
|
|
element[this.dt.editingCellField] = this.dt.editingCellData;
|
|
}
|
|
});
|
|
}
|
|
DomHandler.removeClass(this.dt.editingCell, 'p-cell-editing');
|
|
this.dt.editingCell = null;
|
|
this.dt.editingCellData = null;
|
|
this.dt.editingCellField = null;
|
|
this.dt.unbindDocumentEditListener();
|
|
if (this.dt.overlaySubscription) {
|
|
this.dt.overlaySubscription.unsubscribe();
|
|
}
|
|
}
|
|
onEnterKeyDown(event) {
|
|
if (this.isEnabled() && !event.shiftKey) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onTabKeyDown(event) {
|
|
if (this.isEnabled()) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onEscapeKeyDown(event) {
|
|
if (this.isEnabled()) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(false, event);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onShiftKeyDown(event) {
|
|
if (this.isEnabled()) {
|
|
if (event.shiftKey)
|
|
this.moveToPreviousCell(event);
|
|
else {
|
|
this.moveToNextCell(event);
|
|
}
|
|
}
|
|
}
|
|
onArrowDown(event) {
|
|
if (this.isEnabled()) {
|
|
let currentCell = this.findCell(event.target);
|
|
if (currentCell) {
|
|
let cellIndex = DomHandler.index(currentCell);
|
|
let targetCell = this.findNextEditableColumnByIndex(currentCell, cellIndex);
|
|
if (targetCell) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
}
|
|
onArrowUp(event) {
|
|
if (this.isEnabled()) {
|
|
let currentCell = this.findCell(event.target);
|
|
if (currentCell) {
|
|
let cellIndex = DomHandler.index(currentCell);
|
|
let targetCell = this.findPrevEditableColumnByIndex(currentCell, cellIndex);
|
|
if (targetCell) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
}
|
|
onArrowLeft(event) {
|
|
if (this.isEnabled()) {
|
|
this.moveToPreviousCell(event);
|
|
}
|
|
}
|
|
onArrowRight(event) {
|
|
if (this.isEnabled()) {
|
|
this.moveToNextCell(event);
|
|
}
|
|
}
|
|
findCell(element) {
|
|
if (element) {
|
|
let cell = element;
|
|
while (cell && !DomHandler.hasClass(cell, 'p-cell-editing')) {
|
|
cell = cell.parentElement;
|
|
}
|
|
return cell;
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
moveToPreviousCell(event) {
|
|
let currentCell = this.findCell(event.target);
|
|
if (currentCell) {
|
|
let targetCell = this.findPreviousEditableColumn(currentCell);
|
|
if (targetCell) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
}
|
|
moveToNextCell(event) {
|
|
let currentCell = this.findCell(event.target);
|
|
if (currentCell) {
|
|
let targetCell = this.findNextEditableColumn(currentCell);
|
|
if (targetCell) {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
event.preventDefault();
|
|
}
|
|
else {
|
|
if (this.dt.isEditingCellValid()) {
|
|
this.closeEditingCell(true, event);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
findPreviousEditableColumn(cell) {
|
|
let prevCell = cell.previousElementSibling;
|
|
if (!prevCell) {
|
|
let previousRow = cell.parentElement?.previousElementSibling;
|
|
if (previousRow) {
|
|
prevCell = previousRow.lastElementChild;
|
|
}
|
|
}
|
|
if (prevCell) {
|
|
if (DomHandler.hasClass(prevCell, 'p-editable-column'))
|
|
return prevCell;
|
|
else
|
|
return this.findPreviousEditableColumn(prevCell);
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
findNextEditableColumn(cell) {
|
|
let nextCell = cell.nextElementSibling;
|
|
if (!nextCell) {
|
|
let nextRow = cell.parentElement?.nextElementSibling;
|
|
if (nextRow) {
|
|
nextCell = nextRow.firstElementChild;
|
|
}
|
|
}
|
|
if (nextCell) {
|
|
if (DomHandler.hasClass(nextCell, 'p-editable-column'))
|
|
return nextCell;
|
|
else
|
|
return this.findNextEditableColumn(nextCell);
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
findNextEditableColumnByIndex(cell, index) {
|
|
let nextRow = cell.parentElement?.nextElementSibling;
|
|
if (nextRow) {
|
|
let nextCell = nextRow.children[index];
|
|
if (nextCell && DomHandler.hasClass(nextCell, 'p-editable-column')) {
|
|
return nextCell;
|
|
}
|
|
return null;
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
findPrevEditableColumnByIndex(cell, index) {
|
|
let prevRow = cell.parentElement?.previousElementSibling;
|
|
if (prevRow) {
|
|
let prevCell = prevRow.children[index];
|
|
if (prevCell && DomHandler.hasClass(prevCell, 'p-editable-column')) {
|
|
return prevCell;
|
|
}
|
|
return null;
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
}
|
|
isEnabled() {
|
|
return this.pEditableColumnDisabled !== true;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.dt.overlaySubscription) {
|
|
this.dt.overlaySubscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: EditableColumn, deps: [{ token: Table }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: EditableColumn, selector: "[pEditableColumn]", inputs: { data: ["pEditableColumn", "data"], field: ["pEditableColumnField", "field"], rowIndex: ["pEditableColumnRowIndex", "rowIndex"], pEditableColumnDisabled: ["pEditableColumnDisabled", "pEditableColumnDisabled", booleanAttribute], pFocusCellSelector: "pFocusCellSelector" }, host: { listeners: { "click": "onClick($event)", "keydown.enter": "onEnterKeyDown($event)", "keydown.tab": "onShiftKeyDown($event)", "keydown.escape": "onEscapeKeyDown($event)", "keydown.shift.tab": "onShiftKeyDown($event)", "keydown.meta.tab": "onShiftKeyDown($event)", "keydown.arrowdown": "onArrowDown($event)", "keydown.arrowup": "onArrowUp($event)", "keydown.arrowleft": "onArrowLeft($event)", "keydown.arrowright": "onArrowRight($event)" }, classAttribute: "p-element" }, usesOnChanges: true, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: EditableColumn, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pEditableColumn]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pEditableColumn']
|
|
}], field: [{
|
|
type: Input,
|
|
args: ['pEditableColumnField']
|
|
}], rowIndex: [{
|
|
type: Input,
|
|
args: ['pEditableColumnRowIndex']
|
|
}], pEditableColumnDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], pFocusCellSelector: [{
|
|
type: Input
|
|
}], onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}], onEnterKeyDown: [{
|
|
type: HostListener,
|
|
args: ['keydown.enter', ['$event']]
|
|
}], onTabKeyDown: [{
|
|
type: HostListener,
|
|
args: ['keydown.tab', ['$event']]
|
|
}], onEscapeKeyDown: [{
|
|
type: HostListener,
|
|
args: ['keydown.escape', ['$event']]
|
|
}], onShiftKeyDown: [{
|
|
type: HostListener,
|
|
args: ['keydown.tab', ['$event']]
|
|
}, {
|
|
type: HostListener,
|
|
args: ['keydown.shift.tab', ['$event']]
|
|
}, {
|
|
type: HostListener,
|
|
args: ['keydown.meta.tab', ['$event']]
|
|
}], onArrowDown: [{
|
|
type: HostListener,
|
|
args: ['keydown.arrowdown', ['$event']]
|
|
}], onArrowUp: [{
|
|
type: HostListener,
|
|
args: ['keydown.arrowup', ['$event']]
|
|
}], onArrowLeft: [{
|
|
type: HostListener,
|
|
args: ['keydown.arrowleft', ['$event']]
|
|
}], onArrowRight: [{
|
|
type: HostListener,
|
|
args: ['keydown.arrowright', ['$event']]
|
|
}] } });
|
|
export class EditableRow {
|
|
el;
|
|
data;
|
|
pEditableRowDisabled;
|
|
constructor(el) {
|
|
this.el = el;
|
|
}
|
|
isEnabled() {
|
|
return this.pEditableRowDisabled !== true;
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: EditableRow, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: EditableRow, selector: "[pEditableRow]", inputs: { data: ["pEditableRow", "data"], pEditableRowDisabled: ["pEditableRowDisabled", "pEditableRowDisabled", booleanAttribute] }, host: { classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: EditableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pEditableRow]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { data: [{
|
|
type: Input,
|
|
args: ['pEditableRow']
|
|
}], pEditableRowDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}] } });
|
|
export class InitEditableRow {
|
|
dt;
|
|
editableRow;
|
|
constructor(dt, editableRow) {
|
|
this.dt = dt;
|
|
this.editableRow = editableRow;
|
|
}
|
|
onClick(event) {
|
|
this.dt.initRowEdit(this.editableRow.data);
|
|
event.preventDefault();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InitEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: InitEditableRow, selector: "[pInitEditableRow]", host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InitEditableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pInitEditableRow]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: EditableRow }], propDecorators: { onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}] } });
|
|
export class SaveEditableRow {
|
|
dt;
|
|
editableRow;
|
|
constructor(dt, editableRow) {
|
|
this.dt = dt;
|
|
this.editableRow = editableRow;
|
|
}
|
|
onClick(event) {
|
|
this.dt.saveRowEdit(this.editableRow.data, this.editableRow.el.nativeElement);
|
|
event.preventDefault();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SaveEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: SaveEditableRow, selector: "[pSaveEditableRow]", host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SaveEditableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pSaveEditableRow]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: EditableRow }], propDecorators: { onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}] } });
|
|
export class CancelEditableRow {
|
|
dt;
|
|
editableRow;
|
|
constructor(dt, editableRow) {
|
|
this.dt = dt;
|
|
this.editableRow = editableRow;
|
|
}
|
|
onClick(event) {
|
|
this.dt.cancelRowEdit(this.editableRow.data);
|
|
event.preventDefault();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CancelEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: CancelEditableRow, selector: "[pCancelEditableRow]", host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CancelEditableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pCancelEditableRow]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: EditableRow }], propDecorators: { onClick: [{
|
|
type: HostListener,
|
|
args: ['click', ['$event']]
|
|
}] } });
|
|
export class CellEditor {
|
|
dt;
|
|
editableColumn;
|
|
editableRow;
|
|
templates;
|
|
inputTemplate;
|
|
outputTemplate;
|
|
constructor(dt, editableColumn, editableRow) {
|
|
this.dt = dt;
|
|
this.editableColumn = editableColumn;
|
|
this.editableRow = editableRow;
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'input':
|
|
this.inputTemplate = item.template;
|
|
break;
|
|
case 'output':
|
|
this.outputTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
get editing() {
|
|
return (this.dt.editingCell && this.editableColumn && this.dt.editingCell === this.editableColumn.el.nativeElement) || (this.editableRow && this.dt.editMode === 'row' && this.dt.isRowEditing(this.editableRow.data));
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CellEditor, deps: [{ token: Table }, { token: EditableColumn, optional: true }, { token: EditableRow, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.7", type: CellEditor, selector: "p-cellEditor", host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
|
|
<ng-container *ngIf="editing">
|
|
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="!editing">
|
|
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
</ng-container>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CellEditor, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-cellEditor',
|
|
template: `
|
|
<ng-container *ngIf="editing">
|
|
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="!editing">
|
|
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
</ng-container>
|
|
`,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: EditableColumn, decorators: [{
|
|
type: Optional
|
|
}] }, { type: EditableRow, decorators: [{
|
|
type: Optional
|
|
}] }], propDecorators: { templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}] } });
|
|
export class TableRadioButton {
|
|
dt;
|
|
cd;
|
|
disabled;
|
|
value;
|
|
index;
|
|
inputId;
|
|
name;
|
|
ariaLabel;
|
|
inputViewChild;
|
|
checked;
|
|
focused;
|
|
subscription;
|
|
constructor(dt, cd) {
|
|
this.dt = dt;
|
|
this.cd = cd;
|
|
this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {
|
|
this.checked = this.dt.isSelected(this.value);
|
|
this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow) : undefined;
|
|
this.cd.markForCheck();
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.checked = this.dt.isSelected(this.value);
|
|
}
|
|
onClick(event) {
|
|
if (!this.disabled) {
|
|
this.dt.toggleRowWithRadio({
|
|
originalEvent: event,
|
|
rowIndex: this.index
|
|
}, this.value);
|
|
this.inputViewChild?.nativeElement?.focus();
|
|
}
|
|
DomHandler.clearSelection();
|
|
}
|
|
onFocus() {
|
|
this.focused = true;
|
|
}
|
|
onBlur() {
|
|
this.focused = false;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableRadioButton, deps: [{ token: Table }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: TableRadioButton, selector: "p-tableRadioButton", inputs: { disabled: ["disabled", "disabled", booleanAttribute], value: "value", index: ["index", "index", numberAttribute], inputId: "inputId", name: "name", ariaLabel: "ariaLabel" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["rb"], descendants: true }], ngImport: i0, template: `
|
|
<div class="p-radiobutton p-component" [ngClass]="{ 'p-radiobutton-focused': focused, 'p-radiobutton-checked': checked, 'p-radiobutton-disabled': disabled }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input #rb type="radio" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="disabled" [attr.aria-label]="ariaLabel" [tabindex]="disabled ? null : '0'" />
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-radiobutton-box p-component': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': disabled }">
|
|
<div class="p-radiobutton-icon"></div>
|
|
</div>
|
|
</div>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableRadioButton, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-tableRadioButton',
|
|
template: `
|
|
<div class="p-radiobutton p-component" [ngClass]="{ 'p-radiobutton-focused': focused, 'p-radiobutton-checked': checked, 'p-radiobutton-disabled': disabled }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input #rb type="radio" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="disabled" [attr.aria-label]="ariaLabel" [tabindex]="disabled ? null : '0'" />
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-radiobutton-box p-component': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': disabled }">
|
|
<div class="p-radiobutton-icon"></div>
|
|
</div>
|
|
</div>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], value: [{
|
|
type: Input
|
|
}], index: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], inputId: [{
|
|
type: Input
|
|
}], name: [{
|
|
type: Input
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}], inputViewChild: [{
|
|
type: ViewChild,
|
|
args: ['rb']
|
|
}] } });
|
|
export class TableCheckbox {
|
|
dt;
|
|
tableService;
|
|
cd;
|
|
disabled;
|
|
value;
|
|
index;
|
|
inputId;
|
|
name;
|
|
required;
|
|
ariaLabel;
|
|
checked;
|
|
focused;
|
|
subscription;
|
|
constructor(dt, tableService, cd) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
this.cd = cd;
|
|
this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {
|
|
this.checked = this.dt.isSelected(this.value);
|
|
this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow) : undefined;
|
|
this.cd.markForCheck();
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.checked = this.dt.isSelected(this.value);
|
|
}
|
|
onClick(event) {
|
|
if (!this.disabled) {
|
|
this.dt.toggleRowWithCheckbox({
|
|
originalEvent: event,
|
|
rowIndex: this.index
|
|
}, this.value);
|
|
}
|
|
DomHandler.clearSelection();
|
|
}
|
|
onFocus() {
|
|
this.focused = true;
|
|
}
|
|
onBlur() {
|
|
this.focused = false;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.subscription) {
|
|
this.subscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableCheckbox, deps: [{ token: Table }, { token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: TableCheckbox, selector: "p-tableCheckbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], value: "value", index: ["index", "index", numberAttribute], inputId: "inputId", name: "name", required: ["required", "required", booleanAttribute], ariaLabel: "ariaLabel" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
|
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-checkbox-disabled': disabled }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input
|
|
type="checkbox"
|
|
[attr.id]="inputId"
|
|
[attr.name]="name"
|
|
[checked]="checked"
|
|
(focus)="onFocus()"
|
|
(blur)="onBlur()"
|
|
[disabled]="disabled"
|
|
[attr.required]="required"
|
|
[attr.aria-label]="ariaLabel"
|
|
[tabindex]="disabled ? null : '0'"
|
|
/>
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-checkbox-box p-component': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': disabled }">
|
|
<ng-container *ngIf="!dt.checkboxIconTemplate">
|
|
<CheckIcon [styleClass]="'p-checkbox-icon'" *ngIf="checked" />
|
|
</ng-container>
|
|
<span *ngIf="dt.checkboxIconTemplate">
|
|
<ng-template *ngTemplateOutlet="dt.checkboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableCheckbox, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-tableCheckbox',
|
|
template: `
|
|
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-checkbox-disabled': disabled }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input
|
|
type="checkbox"
|
|
[attr.id]="inputId"
|
|
[attr.name]="name"
|
|
[checked]="checked"
|
|
(focus)="onFocus()"
|
|
(blur)="onBlur()"
|
|
[disabled]="disabled"
|
|
[attr.required]="required"
|
|
[attr.aria-label]="ariaLabel"
|
|
[tabindex]="disabled ? null : '0'"
|
|
/>
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-checkbox-box p-component': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': disabled }">
|
|
<ng-container *ngIf="!dt.checkboxIconTemplate">
|
|
<CheckIcon [styleClass]="'p-checkbox-icon'" *ngIf="checked" />
|
|
</ng-container>
|
|
<span *ngIf="dt.checkboxIconTemplate">
|
|
<ng-template *ngTemplateOutlet="dt.checkboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], value: [{
|
|
type: Input
|
|
}], index: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], inputId: [{
|
|
type: Input
|
|
}], name: [{
|
|
type: Input
|
|
}], required: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}] } });
|
|
export class TableHeaderCheckbox {
|
|
dt;
|
|
tableService;
|
|
cd;
|
|
disabled;
|
|
inputId;
|
|
name;
|
|
ariaLabel;
|
|
checked;
|
|
focused;
|
|
selectionChangeSubscription;
|
|
valueChangeSubscription;
|
|
constructor(dt, tableService, cd) {
|
|
this.dt = dt;
|
|
this.tableService = tableService;
|
|
this.cd = cd;
|
|
this.valueChangeSubscription = this.dt.tableService.valueSource$.subscribe(() => {
|
|
this.checked = this.updateCheckedState();
|
|
this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectAll : this.dt.config.translation.aria.unselectAll) : undefined;
|
|
});
|
|
this.selectionChangeSubscription = this.dt.tableService.selectionSource$.subscribe(() => {
|
|
this.checked = this.updateCheckedState();
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.checked = this.updateCheckedState();
|
|
}
|
|
onClick(event) {
|
|
if (!this.disabled) {
|
|
if (this.dt.value && this.dt.value.length > 0) {
|
|
this.dt.toggleRowsWithCheckbox(event, !this.checked);
|
|
}
|
|
}
|
|
DomHandler.clearSelection();
|
|
}
|
|
onFocus() {
|
|
this.focused = true;
|
|
}
|
|
onBlur() {
|
|
this.focused = false;
|
|
}
|
|
isDisabled() {
|
|
return this.disabled || !this.dt.value || !this.dt.value.length;
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.selectionChangeSubscription) {
|
|
this.selectionChangeSubscription.unsubscribe();
|
|
}
|
|
if (this.valueChangeSubscription) {
|
|
this.valueChangeSubscription.unsubscribe();
|
|
}
|
|
}
|
|
updateCheckedState() {
|
|
this.cd.markForCheck();
|
|
if (this.dt._selectAll !== null) {
|
|
return this.dt._selectAll;
|
|
}
|
|
else {
|
|
const data = this.dt.selectionPageOnly ? this.dt.dataToRender(this.dt.processedData) : this.dt.processedData;
|
|
const val = this.dt.frozenValue ? [...this.dt.frozenValue, ...data] : data;
|
|
const selectableVal = this.dt.rowSelectable ? val.filter((data, index) => this.dt.rowSelectable({ data, index })) : val;
|
|
return ObjectUtils.isNotEmpty(selectableVal) && ObjectUtils.isNotEmpty(this.dt.selection) && selectableVal.every((v) => this.dt.selection.some((s) => this.dt.equals(v, s)));
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableHeaderCheckbox, deps: [{ token: Table }, { token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], inputId: "inputId", name: "name", ariaLabel: "ariaLabel" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
|
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-checkbox-disabled': isDisabled() }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input #cb type="checkbox" [tabindex]="disabled ? null : '0'" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()" [attr.aria-label]="ariaLabel" />
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': isDisabled() }">
|
|
<ng-container *ngIf="!dt.headerCheckboxIconTemplate">
|
|
<CheckIcon *ngIf="checked" [styleClass]="'p-checkbox-icon'" />
|
|
</ng-container>
|
|
<span class="p-checkbox-icon" *ngIf="dt.headerCheckboxIconTemplate">
|
|
<ng-template *ngTemplateOutlet="dt.headerCheckboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableHeaderCheckbox, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-tableHeaderCheckbox',
|
|
template: `
|
|
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-checkbox-disabled': isDisabled() }" (click)="onClick($event)">
|
|
<div class="p-hidden-accessible">
|
|
<input #cb type="checkbox" [tabindex]="disabled ? null : '0'" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()" [attr.aria-label]="ariaLabel" />
|
|
</div>
|
|
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': isDisabled() }">
|
|
<ng-container *ngIf="!dt.headerCheckboxIconTemplate">
|
|
<CheckIcon *ngIf="checked" [styleClass]="'p-checkbox-icon'" />
|
|
</ng-container>
|
|
<span class="p-checkbox-icon" *ngIf="dt.headerCheckboxIconTemplate">
|
|
<ng-template *ngTemplateOutlet="dt.headerCheckboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: TableService }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], inputId: [{
|
|
type: Input
|
|
}], name: [{
|
|
type: Input
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}] } });
|
|
export class ReorderableRowHandle {
|
|
el;
|
|
constructor(el) {
|
|
this.el = el;
|
|
}
|
|
ngAfterViewInit() {
|
|
DomHandler.addClass(this.el.nativeElement, 'p-datatable-reorderablerow-handle');
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableRowHandle, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ReorderableRowHandle, selector: "[pReorderableRowHandle]", host: { classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableRowHandle, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pReorderableRowHandle]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
export class ReorderableRow {
|
|
renderer;
|
|
dt;
|
|
el;
|
|
zone;
|
|
index;
|
|
pReorderableRowDisabled;
|
|
mouseDownListener;
|
|
dragStartListener;
|
|
dragEndListener;
|
|
dragOverListener;
|
|
dragLeaveListener;
|
|
dropListener;
|
|
constructor(renderer, dt, el, zone) {
|
|
this.renderer = renderer;
|
|
this.dt = dt;
|
|
this.el = el;
|
|
this.zone = zone;
|
|
}
|
|
ngAfterViewInit() {
|
|
if (this.isEnabled()) {
|
|
this.el.nativeElement.droppable = true;
|
|
this.bindEvents();
|
|
}
|
|
}
|
|
bindEvents() {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));
|
|
this.dragStartListener = this.renderer.listen(this.el.nativeElement, 'dragstart', this.onDragStart.bind(this));
|
|
this.dragEndListener = this.renderer.listen(this.el.nativeElement, 'dragend', this.onDragEnd.bind(this));
|
|
this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.onDragOver.bind(this));
|
|
this.dragLeaveListener = this.renderer.listen(this.el.nativeElement, 'dragleave', this.onDragLeave.bind(this));
|
|
});
|
|
}
|
|
unbindEvents() {
|
|
if (this.mouseDownListener) {
|
|
this.mouseDownListener();
|
|
this.mouseDownListener = null;
|
|
}
|
|
if (this.dragStartListener) {
|
|
this.dragStartListener();
|
|
this.dragStartListener = null;
|
|
}
|
|
if (this.dragEndListener) {
|
|
this.dragEndListener();
|
|
this.dragEndListener = null;
|
|
}
|
|
if (this.dragOverListener) {
|
|
this.dragOverListener();
|
|
this.dragOverListener = null;
|
|
}
|
|
if (this.dragLeaveListener) {
|
|
this.dragLeaveListener();
|
|
this.dragLeaveListener = null;
|
|
}
|
|
}
|
|
onMouseDown(event) {
|
|
const targetElement = event.target;
|
|
const isHandleClicked = this.isHandleElement(targetElement);
|
|
this.el.nativeElement.draggable = isHandleClicked;
|
|
}
|
|
isHandleElement(element) {
|
|
if (element?.classList.contains('p-datatable-reorderablerow-handle')) {
|
|
return true;
|
|
}
|
|
if (element?.parentElement && !['TD', 'TR'].includes(element?.parentElement?.tagName)) {
|
|
return this.isHandleElement(element?.parentElement);
|
|
}
|
|
return false;
|
|
}
|
|
onDragStart(event) {
|
|
this.dt.onRowDragStart(event, this.index);
|
|
}
|
|
onDragEnd(event) {
|
|
this.dt.onRowDragEnd(event);
|
|
this.el.nativeElement.draggable = false;
|
|
}
|
|
onDragOver(event) {
|
|
this.dt.onRowDragOver(event, this.index, this.el.nativeElement);
|
|
event.preventDefault();
|
|
}
|
|
onDragLeave(event) {
|
|
this.dt.onRowDragLeave(event, this.el.nativeElement);
|
|
}
|
|
isEnabled() {
|
|
return this.pReorderableRowDisabled !== true;
|
|
}
|
|
onDrop(event) {
|
|
if (this.isEnabled() && this.dt.rowDragging) {
|
|
this.dt.onRowDrop(event, this.el.nativeElement);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
ngOnDestroy() {
|
|
this.unbindEvents();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableRow, deps: [{ token: i0.Renderer2 }, { token: Table }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ReorderableRow, selector: "[pReorderableRow]", inputs: { index: ["pReorderableRow", "index"], pReorderableRowDisabled: ["pReorderableRowDisabled", "pReorderableRowDisabled", booleanAttribute] }, host: { listeners: { "drop": "onDrop($event)" }, classAttribute: "p-element" }, ngImport: i0 });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ReorderableRow, decorators: [{
|
|
type: Directive,
|
|
args: [{
|
|
selector: '[pReorderableRow]',
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: Table }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { index: [{
|
|
type: Input,
|
|
args: ['pReorderableRow']
|
|
}], pReorderableRowDisabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], onDrop: [{
|
|
type: HostListener,
|
|
args: ['drop', ['$event']]
|
|
}] } });
|
|
export class ColumnFilter {
|
|
document;
|
|
el;
|
|
dt;
|
|
renderer;
|
|
config;
|
|
overlayService;
|
|
cd;
|
|
/**
|
|
* Property represented by the column.
|
|
* @group Props
|
|
*/
|
|
field;
|
|
/**
|
|
* Type of the input.
|
|
* @group Props
|
|
*/
|
|
type = 'text';
|
|
/**
|
|
* Filter display.
|
|
* @group Props
|
|
*/
|
|
display = 'row';
|
|
/**
|
|
* Decides whether to display filter menu popup.
|
|
* @group Props
|
|
*/
|
|
showMenu = true;
|
|
/**
|
|
* Filter match mode.
|
|
* @group Props
|
|
*/
|
|
matchMode;
|
|
/**
|
|
* Filter operator.
|
|
* @defaultValue 'AND'
|
|
* @group Props
|
|
*/
|
|
operator = FilterOperator.AND;
|
|
/**
|
|
* Decides whether to display filter operator.
|
|
* @group Props
|
|
*/
|
|
showOperator = true;
|
|
/**
|
|
* Decides whether to display clear filter button.
|
|
* @group Props
|
|
*/
|
|
showClearButton = true;
|
|
/**
|
|
* Decides whether to display apply filter button.
|
|
* @group Props
|
|
*/
|
|
showApplyButton = true;
|
|
/**
|
|
* Decides whether to display filter match modes.
|
|
* @group Props
|
|
*/
|
|
showMatchModes = true;
|
|
/**
|
|
* Decides whether to display add filter button.
|
|
* @group Props
|
|
*/
|
|
showAddButton = true;
|
|
/**
|
|
* Decides whether to close popup on clear button click.
|
|
* @group Props
|
|
*/
|
|
hideOnClear = false;
|
|
/**
|
|
* Filter placeholder.
|
|
* @group Props
|
|
*/
|
|
placeholder;
|
|
/**
|
|
* Filter match mode options.
|
|
* @group Props
|
|
*/
|
|
matchModeOptions;
|
|
/**
|
|
* Defines maximum amount of constraints.
|
|
* @group Props
|
|
*/
|
|
maxConstraints = 2;
|
|
/**
|
|
* Defines minimum fraction of digits.
|
|
* @group Props
|
|
*/
|
|
minFractionDigits;
|
|
/**
|
|
* Defines maximum fraction of digits.
|
|
* @group Props
|
|
*/
|
|
maxFractionDigits;
|
|
/**
|
|
* Defines prefix of the filter.
|
|
* @group Props
|
|
*/
|
|
prefix;
|
|
/**
|
|
* Defines suffix of the filter.
|
|
* @group Props
|
|
*/
|
|
suffix;
|
|
/**
|
|
* Defines filter locale.
|
|
* @group Props
|
|
*/
|
|
locale;
|
|
/**
|
|
* Defines filter locale matcher.
|
|
* @group Props
|
|
*/
|
|
localeMatcher;
|
|
/**
|
|
* Enables currency input.
|
|
* @group Props
|
|
*/
|
|
currency;
|
|
/**
|
|
* Defines the display of the currency input.
|
|
* @group Props
|
|
*/
|
|
currencyDisplay;
|
|
/**
|
|
* Defines if filter grouping will be enabled.
|
|
* @group Props
|
|
*/
|
|
useGrouping = true;
|
|
/**
|
|
* Defines the visibility of buttons.
|
|
* @group Props
|
|
*/
|
|
showButtons = true;
|
|
/**
|
|
* Defines the aria-label of the form element.
|
|
* @group Props
|
|
*/
|
|
ariaLabel;
|
|
/**
|
|
* Callback to invoke on overlay is shown.
|
|
* @param {AnimationEvent} originalEvent - animation event.
|
|
* @group Emits
|
|
*/
|
|
onShow = new EventEmitter();
|
|
/**
|
|
* Callback to invoke on overlay is hidden.
|
|
* @param {AnimationEvent} originalEvent - animation event.
|
|
* @group Emits
|
|
*/
|
|
onHide = new EventEmitter();
|
|
icon;
|
|
clearButtonViewChild;
|
|
templates;
|
|
overlaySubscription;
|
|
headerTemplate;
|
|
filterTemplate;
|
|
footerTemplate;
|
|
filterIconTemplate;
|
|
removeRuleIconTemplate;
|
|
addRuleIconTemplate;
|
|
clearFilterIconTemplate;
|
|
operatorOptions;
|
|
overlayVisible;
|
|
overlay;
|
|
scrollHandler;
|
|
documentClickListener;
|
|
documentResizeListener;
|
|
matchModes;
|
|
translationSubscription;
|
|
resetSubscription;
|
|
selfClick;
|
|
overlayEventListener;
|
|
window;
|
|
overlayId;
|
|
get fieldConstraints() {
|
|
return this.dt.filters ? this.dt.filters[this.field] : null;
|
|
}
|
|
get showRemoveIcon() {
|
|
return this.fieldConstraints ? this.fieldConstraints.length > 1 : false;
|
|
}
|
|
get showMenuButton() {
|
|
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);
|
|
}
|
|
get isShowOperator() {
|
|
return this.showOperator && this.type !== 'boolean';
|
|
}
|
|
get isShowAddConstraint() {
|
|
return this.showAddButton && this.type !== 'boolean' && this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints;
|
|
}
|
|
get showMenuButtonLabel() {
|
|
return this.config.getTranslation(TranslationKeys.SHOW_FILTER_MENU);
|
|
}
|
|
get applyButtonLabel() {
|
|
return this.config.getTranslation(TranslationKeys.APPLY);
|
|
}
|
|
get clearButtonLabel() {
|
|
return this.config.getTranslation(TranslationKeys.CLEAR);
|
|
}
|
|
get addRuleButtonLabel() {
|
|
return this.config.getTranslation(TranslationKeys.ADD_RULE);
|
|
}
|
|
get removeRuleButtonLabel() {
|
|
return this.config.getTranslation(TranslationKeys.REMOVE_RULE);
|
|
}
|
|
get noFilterLabel() {
|
|
return this.config.getTranslation(TranslationKeys.NO_FILTER);
|
|
}
|
|
get filterMenuButtonAriaLabel() {
|
|
return this.config.translation ? (this.overlayVisible ? this.config.translation.aria.hideFilterMenu : this.config.translation.aria.showFilterMenu) : undefined;
|
|
}
|
|
get removeRuleButtonAriaLabel() {
|
|
return this.config.translation ? this.config.translation.removeRule : undefined;
|
|
}
|
|
get filterOperatorAriaLabel() {
|
|
return this.config.translation ? this.config.translation.aria.filterOperator : undefined;
|
|
}
|
|
get filterConstraintAriaLabel() {
|
|
return this.config.translation ? this.config.translation.aria.filterConstraint : undefined;
|
|
}
|
|
constructor(document, el, dt, renderer, config, overlayService, cd) {
|
|
this.document = document;
|
|
this.el = el;
|
|
this.dt = dt;
|
|
this.renderer = renderer;
|
|
this.config = config;
|
|
this.overlayService = overlayService;
|
|
this.cd = cd;
|
|
this.window = this.document.defaultView;
|
|
}
|
|
ngOnInit() {
|
|
this.overlayId = UniqueComponentId();
|
|
if (!this.dt.filters[this.field]) {
|
|
this.initFieldFilterConstraint();
|
|
}
|
|
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
this.generateMatchModeOptions();
|
|
this.generateOperatorOptions();
|
|
});
|
|
this.generateMatchModeOptions();
|
|
this.generateOperatorOptions();
|
|
}
|
|
generateMatchModeOptions() {
|
|
this.matchModes =
|
|
this.matchModeOptions ||
|
|
this.config.filterMatchModeOptions[this.type]?.map((key) => {
|
|
return { label: this.config.getTranslation(key), value: key };
|
|
});
|
|
}
|
|
generateOperatorOptions() {
|
|
this.operatorOptions = [
|
|
{ label: this.config.getTranslation(TranslationKeys.MATCH_ALL), value: FilterOperator.AND },
|
|
{ label: this.config.getTranslation(TranslationKeys.MATCH_ANY), value: FilterOperator.OR }
|
|
];
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'header':
|
|
this.headerTemplate = item.template;
|
|
break;
|
|
case 'filter':
|
|
this.filterTemplate = item.template;
|
|
break;
|
|
case 'footer':
|
|
this.footerTemplate = item.template;
|
|
break;
|
|
case 'filtericon':
|
|
this.filterIconTemplate = item.template;
|
|
break;
|
|
case 'clearfiltericon':
|
|
this.clearFilterIconTemplate = item.template;
|
|
break;
|
|
case 'removeruleicon':
|
|
this.removeRuleIconTemplate = item.template;
|
|
break;
|
|
case 'addruleicon':
|
|
this.addRuleIconTemplate = item.template;
|
|
break;
|
|
default:
|
|
this.filterTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
initFieldFilterConstraint() {
|
|
let defaultMatchMode = this.getDefaultMatchMode();
|
|
this.dt.filters[this.field] = this.display == 'row' ? { value: null, matchMode: defaultMatchMode } : [{ value: null, matchMode: defaultMatchMode, operator: this.operator }];
|
|
}
|
|
onMenuMatchModeChange(value, filterMeta) {
|
|
filterMeta.matchMode = value;
|
|
if (!this.showApplyButton) {
|
|
this.dt._filter();
|
|
}
|
|
}
|
|
onRowMatchModeChange(matchMode) {
|
|
const fieldFilter = this.dt.filters[this.field];
|
|
fieldFilter.matchMode = matchMode;
|
|
if (fieldFilter.value) {
|
|
this.dt._filter();
|
|
}
|
|
this.hide();
|
|
}
|
|
onRowMatchModeKeyDown(event) {
|
|
let item = event.target;
|
|
switch (event.key) {
|
|
case 'ArrowDown':
|
|
var nextItem = this.findNextItem(item);
|
|
if (nextItem) {
|
|
item.removeAttribute('tabindex');
|
|
nextItem.tabIndex = '0';
|
|
nextItem.focus();
|
|
}
|
|
event.preventDefault();
|
|
break;
|
|
case 'ArrowUp':
|
|
var prevItem = this.findPrevItem(item);
|
|
if (prevItem) {
|
|
item.removeAttribute('tabindex');
|
|
prevItem.tabIndex = '0';
|
|
prevItem.focus();
|
|
}
|
|
event.preventDefault();
|
|
break;
|
|
}
|
|
}
|
|
onRowClearItemClick() {
|
|
this.clearFilter();
|
|
this.hide();
|
|
}
|
|
isRowMatchModeSelected(matchMode) {
|
|
return this.dt.filters[this.field].matchMode === matchMode;
|
|
}
|
|
addConstraint() {
|
|
this.dt.filters[this.field].push({ value: null, matchMode: this.getDefaultMatchMode(), operator: this.getDefaultOperator() });
|
|
DomHandler.focus(this.clearButtonViewChild.nativeElement);
|
|
}
|
|
removeConstraint(filterMeta) {
|
|
this.dt.filters[this.field] = this.dt.filters[this.field].filter((meta) => meta !== filterMeta);
|
|
if (!this.showApplyButton) {
|
|
this.dt._filter();
|
|
}
|
|
DomHandler.focus(this.clearButtonViewChild.nativeElement);
|
|
}
|
|
onOperatorChange(value) {
|
|
this.dt.filters[this.field].forEach((filterMeta) => {
|
|
filterMeta.operator = value;
|
|
this.operator = value;
|
|
});
|
|
if (!this.showApplyButton) {
|
|
this.dt._filter();
|
|
}
|
|
}
|
|
toggleMenu() {
|
|
this.overlayVisible = !this.overlayVisible;
|
|
}
|
|
onToggleButtonKeyDown(event) {
|
|
switch (event.key) {
|
|
case 'Escape':
|
|
case 'Tab':
|
|
this.overlayVisible = false;
|
|
break;
|
|
case 'ArrowDown':
|
|
if (this.overlayVisible) {
|
|
let focusable = DomHandler.getFocusableElements(this.overlay);
|
|
if (focusable) {
|
|
focusable[0].focus();
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
else if (event.altKey) {
|
|
this.overlayVisible = true;
|
|
event.preventDefault();
|
|
}
|
|
break;
|
|
case 'Enter':
|
|
this.toggleMenu();
|
|
event.preventDefault();
|
|
break;
|
|
}
|
|
}
|
|
onEscape() {
|
|
this.overlayVisible = false;
|
|
this.icon?.nativeElement.focus();
|
|
}
|
|
findNextItem(item) {
|
|
let nextItem = item.nextElementSibling;
|
|
if (nextItem)
|
|
return DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
|
|
else
|
|
return item.parentElement?.firstElementChild;
|
|
}
|
|
findPrevItem(item) {
|
|
let prevItem = item.previousElementSibling;
|
|
if (prevItem)
|
|
return DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
|
|
else
|
|
return item.parentElement?.lastElementChild;
|
|
}
|
|
onContentClick() {
|
|
this.selfClick = true;
|
|
}
|
|
onOverlayAnimationStart(event) {
|
|
switch (event.toState) {
|
|
case 'visible':
|
|
this.overlay = event.element;
|
|
this.renderer.appendChild(this.document.body, this.overlay);
|
|
ZIndexUtils.set('overlay', this.overlay, this.config.zIndex.overlay);
|
|
DomHandler.absolutePosition(this.overlay, this.icon?.nativeElement);
|
|
this.bindDocumentClickListener();
|
|
this.bindDocumentResizeListener();
|
|
this.bindScrollListener();
|
|
this.overlayEventListener = (e) => {
|
|
if (this.overlay && this.overlay.contains(e.target)) {
|
|
this.selfClick = true;
|
|
}
|
|
};
|
|
this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);
|
|
this.onShow.emit({ originalEvent: event });
|
|
break;
|
|
case 'void':
|
|
this.onOverlayHide();
|
|
if (this.overlaySubscription) {
|
|
this.overlaySubscription.unsubscribe();
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
onOverlayAnimationEnd(event) {
|
|
switch (event.toState) {
|
|
case 'visible':
|
|
this.focusOnFirstElement();
|
|
break;
|
|
case 'void':
|
|
ZIndexUtils.clear(event.element);
|
|
this.onHide.emit({ originalEvent: event });
|
|
break;
|
|
}
|
|
}
|
|
focusOnFirstElement() {
|
|
if (this.overlay) {
|
|
DomHandler.focus(DomHandler.getFirstFocusableElement(this.overlay, ''));
|
|
}
|
|
}
|
|
getDefaultMatchMode() {
|
|
if (this.matchMode) {
|
|
return this.matchMode;
|
|
}
|
|
else {
|
|
if (this.type === 'text')
|
|
return FilterMatchMode.STARTS_WITH;
|
|
else if (this.type === 'numeric')
|
|
return FilterMatchMode.EQUALS;
|
|
else if (this.type === 'date')
|
|
return FilterMatchMode.DATE_IS;
|
|
else
|
|
return FilterMatchMode.CONTAINS;
|
|
}
|
|
}
|
|
getDefaultOperator() {
|
|
return this.dt.filters ? this.dt.filters[this.field][0].operator : this.operator;
|
|
}
|
|
hasRowFilter() {
|
|
return this.dt.filters[this.field] && !this.dt.isFilterBlank(this.dt.filters[this.field].value);
|
|
}
|
|
hasFilter() {
|
|
let fieldFilter = this.dt.filters[this.field];
|
|
if (fieldFilter) {
|
|
if (Array.isArray(fieldFilter))
|
|
return !this.dt.isFilterBlank(fieldFilter[0].value);
|
|
else
|
|
return !this.dt.isFilterBlank(fieldFilter.value);
|
|
}
|
|
return false;
|
|
}
|
|
isOutsideClicked(event) {
|
|
return !(DomHandler.hasClass(this.overlay?.nextElementSibling, 'p-overlay') ||
|
|
this.overlay?.isSameNode(event.target) ||
|
|
this.overlay?.contains(event.target) ||
|
|
this.icon?.nativeElement.isSameNode(event.target) ||
|
|
this.icon?.nativeElement.contains(event.target) ||
|
|
DomHandler.hasClass(event.target, 'p-column-filter-add-button') ||
|
|
DomHandler.hasClass(event.target.parentElement, 'p-column-filter-add-button') ||
|
|
DomHandler.hasClass(event.target, 'p-column-filter-remove-button') ||
|
|
DomHandler.hasClass(event.target.parentElement, 'p-column-filter-remove-button'));
|
|
}
|
|
bindDocumentClickListener() {
|
|
if (!this.documentClickListener) {
|
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
|
|
this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', (event) => {
|
|
const dialogElements = document.querySelectorAll('[role="dialog"]');
|
|
const targetIsColumnFilterMenuButton = event.target.closest('.p-column-filter-menu-button');
|
|
if (this.overlayVisible && this.isOutsideClicked(event) && (targetIsColumnFilterMenuButton || dialogElements?.length <= 1)) {
|
|
this.hide();
|
|
}
|
|
this.selfClick = false;
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentClickListener() {
|
|
if (this.documentClickListener) {
|
|
this.documentClickListener();
|
|
this.documentClickListener = null;
|
|
this.selfClick = false;
|
|
}
|
|
}
|
|
bindDocumentResizeListener() {
|
|
if (!this.documentResizeListener) {
|
|
this.documentResizeListener = this.renderer.listen(this.window, 'resize', (event) => {
|
|
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
this.hide();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentResizeListener() {
|
|
if (this.documentResizeListener) {
|
|
this.documentResizeListener();
|
|
this.documentResizeListener = null;
|
|
}
|
|
}
|
|
bindScrollListener() {
|
|
if (!this.scrollHandler) {
|
|
this.scrollHandler = new ConnectedOverlayScrollHandler(this.icon?.nativeElement, () => {
|
|
if (this.overlayVisible) {
|
|
this.hide();
|
|
}
|
|
});
|
|
}
|
|
this.scrollHandler.bindScrollListener();
|
|
}
|
|
unbindScrollListener() {
|
|
if (this.scrollHandler) {
|
|
this.scrollHandler.unbindScrollListener();
|
|
}
|
|
}
|
|
hide() {
|
|
this.overlayVisible = false;
|
|
this.cd.markForCheck();
|
|
}
|
|
onOverlayHide() {
|
|
this.unbindDocumentClickListener();
|
|
this.unbindDocumentResizeListener();
|
|
this.unbindScrollListener();
|
|
this.overlay = null;
|
|
}
|
|
clearFilter() {
|
|
this.initFieldFilterConstraint();
|
|
this.dt._filter();
|
|
if (this.hideOnClear)
|
|
this.hide();
|
|
}
|
|
applyFilter() {
|
|
this.dt._filter();
|
|
this.hide();
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.overlay) {
|
|
this.renderer.appendChild(this.el.nativeElement, this.overlay);
|
|
ZIndexUtils.clear(this.overlay);
|
|
this.onOverlayHide();
|
|
}
|
|
if (this.translationSubscription) {
|
|
this.translationSubscription.unsubscribe();
|
|
}
|
|
if (this.resetSubscription) {
|
|
this.resetSubscription.unsubscribe();
|
|
}
|
|
if (this.overlaySubscription) {
|
|
this.overlaySubscription.unsubscribe();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ColumnFilter, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: Table }, { token: i0.Renderer2 }, { token: i1.PrimeNGConfig }, { token: i1.OverlayService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: ColumnFilter, selector: "p-columnFilter", inputs: { field: "field", type: "type", display: "display", showMenu: ["showMenu", "showMenu", booleanAttribute], matchMode: "matchMode", operator: "operator", showOperator: ["showOperator", "showOperator", booleanAttribute], showClearButton: ["showClearButton", "showClearButton", booleanAttribute], showApplyButton: ["showApplyButton", "showApplyButton", booleanAttribute], showMatchModes: ["showMatchModes", "showMatchModes", booleanAttribute], showAddButton: ["showAddButton", "showAddButton", booleanAttribute], hideOnClear: ["hideOnClear", "hideOnClear", booleanAttribute], placeholder: "placeholder", matchModeOptions: "matchModeOptions", maxConstraints: ["maxConstraints", "maxConstraints", numberAttribute], minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, null)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, null)], prefix: "prefix", suffix: "suffix", locale: "locale", localeMatcher: "localeMatcher", currency: ["currency", "currency", booleanAttribute], currencyDisplay: "currencyDisplay", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], showButtons: ["showButtons", "showButtons", booleanAttribute], ariaLabel: "ariaLabel" }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "icon", first: true, predicate: ["icon"], descendants: true }, { propertyName: "clearButtonViewChild", first: true, predicate: ["clearBtn"], descendants: true }], ngImport: i0, template: `
|
|
<div class="p-column-filter" [ngClass]="{ 'p-column-filter-row': display === 'row', 'p-column-filter-menu': display === 'menu' }">
|
|
<p-columnFilterFormElement
|
|
*ngIf="display === 'row'"
|
|
class="p-fluid"
|
|
[type]="type"
|
|
[field]="field"
|
|
[ariaLabel]="ariaLabel"
|
|
[filterConstraint]="dt.filters[field]"
|
|
[filterTemplate]="filterTemplate"
|
|
[placeholder]="placeholder"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
[showButtons]="showButtons"
|
|
></p-columnFilterFormElement>
|
|
<button
|
|
#icon
|
|
*ngIf="showMenuButton"
|
|
type="button"
|
|
class="p-column-filter-menu-button p-link"
|
|
aria-haspopup="true"
|
|
[attr.aria-label]="filterMenuButtonAriaLabel"
|
|
[attr.aria-controls]="overlayVisible ? overlayId : null"
|
|
[attr.aria-expanded]="overlayVisible ?? false"
|
|
[ngClass]="{ 'p-column-filter-menu-button-open': overlayVisible, 'p-column-filter-menu-button-active': hasFilter() }"
|
|
(click)="toggleMenu()"
|
|
(keydown)="onToggleButtonKeyDown($event)"
|
|
>
|
|
<FilterIcon [styleClass]="'pi-filter-icon'" *ngIf="!filterIconTemplate" />
|
|
<span class="pi-filter-icon" *ngIf="filterIconTemplate">
|
|
<ng-template *ngTemplateOutlet="filterIconTemplate"></ng-template>
|
|
</span>
|
|
</button>
|
|
<button #icon *ngIf="showClearButton && display === 'row'" [ngClass]="{ 'p-hidden-space': !hasRowFilter() }" type="button" class="p-column-filter-clear-button p-link" (click)="clearFilter()" [attr.aria-label]="clearButtonLabel">
|
|
<FilterSlashIcon *ngIf="!clearFilterIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="clearFilterIconTemplate"></ng-template>
|
|
</button>
|
|
<div
|
|
*ngIf="showMenu && overlayVisible"
|
|
[ngClass]="{ 'p-column-filter-overlay p-component p-fluid': true, 'p-column-filter-overlay-menu': display === 'menu' }"
|
|
[id]="overlayId"
|
|
[attr.aria-modal]="true"
|
|
role="dialog"
|
|
(click)="onContentClick()"
|
|
[@overlayAnimation]="'visible'"
|
|
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
|
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
|
(keydown.escape)="onEscape()"
|
|
>
|
|
<ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: field }"></ng-container>
|
|
<ul *ngIf="display === 'row'; else menu" class="p-column-filter-row-items">
|
|
<li
|
|
class="p-column-filter-row-item"
|
|
*ngFor="let matchMode of matchModes; let i = index"
|
|
(click)="onRowMatchModeChange(matchMode.value)"
|
|
(keydown)="onRowMatchModeKeyDown($event)"
|
|
(keydown.enter)="this.onRowMatchModeChange(matchMode.value)"
|
|
[ngClass]="{ 'p-highlight': isRowMatchModeSelected(matchMode.value) }"
|
|
[attr.tabindex]="i === 0 ? '0' : null"
|
|
>
|
|
{{ matchMode.label }}
|
|
</li>
|
|
<li class="p-column-filter-separator"></li>
|
|
<li class="p-column-filter-row-item" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">{{ noFilterLabel }}</li>
|
|
</ul>
|
|
<ng-template #menu>
|
|
<div class="p-column-filter-operator" *ngIf="isShowOperator">
|
|
<p-dropdown [options]="operatorOptions" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" styleClass="p-column-filter-operator-dropdown"></p-dropdown>
|
|
</div>
|
|
<div class="p-column-filter-constraints">
|
|
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" class="p-column-filter-constraint">
|
|
<p-dropdown
|
|
*ngIf="showMatchModes && matchModes"
|
|
[options]="matchModes"
|
|
[ngModel]="fieldConstraint.matchMode"
|
|
(ngModelChange)="onMenuMatchModeChange($event, fieldConstraint)"
|
|
styleClass="p-column-filter-matchmode-dropdown"
|
|
></p-dropdown>
|
|
<p-columnFilterFormElement
|
|
[type]="type"
|
|
[field]="field"
|
|
[filterConstraint]="fieldConstraint"
|
|
[filterTemplate]="filterTemplate"
|
|
[placeholder]="placeholder"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
></p-columnFilterFormElement>
|
|
<div>
|
|
<button
|
|
*ngIf="showRemoveIcon"
|
|
type="button"
|
|
pButton
|
|
class="p-column-filter-remove-button p-button-text p-button-danger p-button-sm"
|
|
(click)="removeConstraint(fieldConstraint)"
|
|
pRipple
|
|
[attr.aria-label]="removeRuleButtonLabel"
|
|
[label]="removeRuleButtonLabel"
|
|
>
|
|
<TrashIcon *ngIf="!removeRuleIconTemplate" [styleClass]="'p-button-icon-left'" />
|
|
<ng-template *ngTemplateOutlet="removeRuleIconTemplate"></ng-template>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-column-filter-add-rule" *ngIf="isShowAddConstraint">
|
|
<button type="button" pButton [label]="addRuleButtonLabel" [attr.aria-label]="addRuleButtonLabel" class="p-column-filter-add-button p-button-text p-button-sm" (click)="addConstraint()" pRipple>
|
|
<PlusIcon *ngIf="!addRuleIconTemplate" [styleClass]="'p-button-icon-left'" />
|
|
<ng-template *ngTemplateOutlet="addRuleIconTemplate"></ng-template>
|
|
</button>
|
|
</div>
|
|
<div class="p-column-filter-buttonbar">
|
|
<button #clearBtn *ngIf="showClearButton" type="button" pButton class="p-button-outlined p-button-sm" (click)="clearFilter()" [attr.aria-label]="clearButtonLabel" [label]="clearButtonLabel" pRipple></button>
|
|
<button *ngIf="showApplyButton" type="button" pButton (click)="applyFilter()" class="p-button-sm" [label]="applyButtonLabel" pRipple [attr.aria-label]="applyButtonLabel"></button>
|
|
</div>
|
|
</ng-template>
|
|
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: field }"></ng-container>
|
|
</div>
|
|
</div>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => i5.Dropdown), selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i0.forwardRef(() => i6.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i6.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i0.forwardRef(() => i7.ButtonDirective), selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "component", type: i0.forwardRef(() => FilterIcon), selector: "FilterIcon" }, { kind: "component", type: i0.forwardRef(() => FilterSlashIcon), selector: "FilterSlashIcon" }, { kind: "component", type: i0.forwardRef(() => PlusIcon), selector: "PlusIcon" }, { kind: "component", type: i0.forwardRef(() => TrashIcon), selector: "TrashIcon" }, { kind: "component", type: i0.forwardRef(() => ColumnFilterFormElement), selector: "p-columnFilterFormElement", inputs: ["field", "type", "filterConstraint", "filterTemplate", "placeholder", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping", "ariaLabel"] }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('.12s cubic-bezier(0, 0, 0.2, 1)')]), transition(':leave', [animate('.1s linear', style({ opacity: 0 }))])])], encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ColumnFilter, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-columnFilter',
|
|
template: `
|
|
<div class="p-column-filter" [ngClass]="{ 'p-column-filter-row': display === 'row', 'p-column-filter-menu': display === 'menu' }">
|
|
<p-columnFilterFormElement
|
|
*ngIf="display === 'row'"
|
|
class="p-fluid"
|
|
[type]="type"
|
|
[field]="field"
|
|
[ariaLabel]="ariaLabel"
|
|
[filterConstraint]="dt.filters[field]"
|
|
[filterTemplate]="filterTemplate"
|
|
[placeholder]="placeholder"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
[showButtons]="showButtons"
|
|
></p-columnFilterFormElement>
|
|
<button
|
|
#icon
|
|
*ngIf="showMenuButton"
|
|
type="button"
|
|
class="p-column-filter-menu-button p-link"
|
|
aria-haspopup="true"
|
|
[attr.aria-label]="filterMenuButtonAriaLabel"
|
|
[attr.aria-controls]="overlayVisible ? overlayId : null"
|
|
[attr.aria-expanded]="overlayVisible ?? false"
|
|
[ngClass]="{ 'p-column-filter-menu-button-open': overlayVisible, 'p-column-filter-menu-button-active': hasFilter() }"
|
|
(click)="toggleMenu()"
|
|
(keydown)="onToggleButtonKeyDown($event)"
|
|
>
|
|
<FilterIcon [styleClass]="'pi-filter-icon'" *ngIf="!filterIconTemplate" />
|
|
<span class="pi-filter-icon" *ngIf="filterIconTemplate">
|
|
<ng-template *ngTemplateOutlet="filterIconTemplate"></ng-template>
|
|
</span>
|
|
</button>
|
|
<button #icon *ngIf="showClearButton && display === 'row'" [ngClass]="{ 'p-hidden-space': !hasRowFilter() }" type="button" class="p-column-filter-clear-button p-link" (click)="clearFilter()" [attr.aria-label]="clearButtonLabel">
|
|
<FilterSlashIcon *ngIf="!clearFilterIconTemplate" />
|
|
<ng-template *ngTemplateOutlet="clearFilterIconTemplate"></ng-template>
|
|
</button>
|
|
<div
|
|
*ngIf="showMenu && overlayVisible"
|
|
[ngClass]="{ 'p-column-filter-overlay p-component p-fluid': true, 'p-column-filter-overlay-menu': display === 'menu' }"
|
|
[id]="overlayId"
|
|
[attr.aria-modal]="true"
|
|
role="dialog"
|
|
(click)="onContentClick()"
|
|
[@overlayAnimation]="'visible'"
|
|
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
|
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
|
(keydown.escape)="onEscape()"
|
|
>
|
|
<ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: field }"></ng-container>
|
|
<ul *ngIf="display === 'row'; else menu" class="p-column-filter-row-items">
|
|
<li
|
|
class="p-column-filter-row-item"
|
|
*ngFor="let matchMode of matchModes; let i = index"
|
|
(click)="onRowMatchModeChange(matchMode.value)"
|
|
(keydown)="onRowMatchModeKeyDown($event)"
|
|
(keydown.enter)="this.onRowMatchModeChange(matchMode.value)"
|
|
[ngClass]="{ 'p-highlight': isRowMatchModeSelected(matchMode.value) }"
|
|
[attr.tabindex]="i === 0 ? '0' : null"
|
|
>
|
|
{{ matchMode.label }}
|
|
</li>
|
|
<li class="p-column-filter-separator"></li>
|
|
<li class="p-column-filter-row-item" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">{{ noFilterLabel }}</li>
|
|
</ul>
|
|
<ng-template #menu>
|
|
<div class="p-column-filter-operator" *ngIf="isShowOperator">
|
|
<p-dropdown [options]="operatorOptions" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" styleClass="p-column-filter-operator-dropdown"></p-dropdown>
|
|
</div>
|
|
<div class="p-column-filter-constraints">
|
|
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" class="p-column-filter-constraint">
|
|
<p-dropdown
|
|
*ngIf="showMatchModes && matchModes"
|
|
[options]="matchModes"
|
|
[ngModel]="fieldConstraint.matchMode"
|
|
(ngModelChange)="onMenuMatchModeChange($event, fieldConstraint)"
|
|
styleClass="p-column-filter-matchmode-dropdown"
|
|
></p-dropdown>
|
|
<p-columnFilterFormElement
|
|
[type]="type"
|
|
[field]="field"
|
|
[filterConstraint]="fieldConstraint"
|
|
[filterTemplate]="filterTemplate"
|
|
[placeholder]="placeholder"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
></p-columnFilterFormElement>
|
|
<div>
|
|
<button
|
|
*ngIf="showRemoveIcon"
|
|
type="button"
|
|
pButton
|
|
class="p-column-filter-remove-button p-button-text p-button-danger p-button-sm"
|
|
(click)="removeConstraint(fieldConstraint)"
|
|
pRipple
|
|
[attr.aria-label]="removeRuleButtonLabel"
|
|
[label]="removeRuleButtonLabel"
|
|
>
|
|
<TrashIcon *ngIf="!removeRuleIconTemplate" [styleClass]="'p-button-icon-left'" />
|
|
<ng-template *ngTemplateOutlet="removeRuleIconTemplate"></ng-template>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-column-filter-add-rule" *ngIf="isShowAddConstraint">
|
|
<button type="button" pButton [label]="addRuleButtonLabel" [attr.aria-label]="addRuleButtonLabel" class="p-column-filter-add-button p-button-text p-button-sm" (click)="addConstraint()" pRipple>
|
|
<PlusIcon *ngIf="!addRuleIconTemplate" [styleClass]="'p-button-icon-left'" />
|
|
<ng-template *ngTemplateOutlet="addRuleIconTemplate"></ng-template>
|
|
</button>
|
|
</div>
|
|
<div class="p-column-filter-buttonbar">
|
|
<button #clearBtn *ngIf="showClearButton" type="button" pButton class="p-button-outlined p-button-sm" (click)="clearFilter()" [attr.aria-label]="clearButtonLabel" [label]="clearButtonLabel" pRipple></button>
|
|
<button *ngIf="showApplyButton" type="button" pButton (click)="applyFilter()" class="p-button-sm" [label]="applyButtonLabel" pRipple [attr.aria-label]="applyButtonLabel"></button>
|
|
</div>
|
|
</ng-template>
|
|
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: field }"></ng-container>
|
|
</div>
|
|
</div>
|
|
`,
|
|
animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('.12s cubic-bezier(0, 0, 0.2, 1)')]), transition(':leave', [animate('.1s linear', style({ opacity: 0 }))])])],
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
type: Inject,
|
|
args: [DOCUMENT]
|
|
}] }, { type: i0.ElementRef }, { type: Table }, { type: i0.Renderer2 }, { type: i1.PrimeNGConfig }, { type: i1.OverlayService }, { type: i0.ChangeDetectorRef }], propDecorators: { field: [{
|
|
type: Input
|
|
}], type: [{
|
|
type: Input
|
|
}], display: [{
|
|
type: Input
|
|
}], showMenu: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], matchMode: [{
|
|
type: Input
|
|
}], operator: [{
|
|
type: Input
|
|
}], showOperator: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showClearButton: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showApplyButton: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showMatchModes: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showAddButton: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], hideOnClear: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], placeholder: [{
|
|
type: Input
|
|
}], matchModeOptions: [{
|
|
type: Input
|
|
}], maxConstraints: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], minFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], maxFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], prefix: [{
|
|
type: Input
|
|
}], suffix: [{
|
|
type: Input
|
|
}], locale: [{
|
|
type: Input
|
|
}], localeMatcher: [{
|
|
type: Input
|
|
}], currency: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], currencyDisplay: [{
|
|
type: Input
|
|
}], useGrouping: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showButtons: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}], onShow: [{
|
|
type: Output
|
|
}], onHide: [{
|
|
type: Output
|
|
}], icon: [{
|
|
type: ViewChild,
|
|
args: ['icon']
|
|
}], clearButtonViewChild: [{
|
|
type: ViewChild,
|
|
args: ['clearBtn']
|
|
}], templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}] } });
|
|
export class ColumnFilterFormElement {
|
|
dt;
|
|
colFilter;
|
|
field;
|
|
type;
|
|
filterConstraint;
|
|
filterTemplate;
|
|
placeholder;
|
|
minFractionDigits;
|
|
maxFractionDigits;
|
|
prefix;
|
|
suffix;
|
|
locale;
|
|
localeMatcher;
|
|
currency;
|
|
currencyDisplay;
|
|
useGrouping = true;
|
|
ariaLabel;
|
|
get showButtons() {
|
|
return this.colFilter.showButtons;
|
|
}
|
|
filterCallback;
|
|
constructor(dt, colFilter) {
|
|
this.dt = dt;
|
|
this.colFilter = colFilter;
|
|
}
|
|
ngOnInit() {
|
|
this.filterCallback = (value) => {
|
|
this.filterConstraint.value = value;
|
|
this.dt._filter();
|
|
};
|
|
}
|
|
onModelChange(value) {
|
|
this.filterConstraint.value = value;
|
|
if (this.type === 'date' || this.type === 'boolean' || value === '') {
|
|
this.dt._filter();
|
|
}
|
|
}
|
|
onTextInputEnterKeyDown(event) {
|
|
this.dt._filter();
|
|
event.preventDefault();
|
|
}
|
|
onNumericInputKeyDown(event) {
|
|
if (event.key === 'Enter') {
|
|
this.dt._filter();
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ColumnFilterFormElement, deps: [{ token: Table }, { token: ColumnFilter }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: ColumnFilterFormElement, selector: "p-columnFilterFormElement", inputs: { field: "field", type: "type", filterConstraint: "filterConstraint", filterTemplate: "filterTemplate", placeholder: "placeholder", minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, null)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, null)], prefix: "prefix", suffix: "suffix", locale: "locale", localeMatcher: "localeMatcher", currency: "currency", currencyDisplay: "currencyDisplay", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], ariaLabel: "ariaLabel" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
|
<ng-container *ngIf="filterTemplate; else builtInElement">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
filterTemplate;
|
|
context: {
|
|
$implicit: filterConstraint.value,
|
|
filterCallback: filterCallback,
|
|
type: type,
|
|
field: field,
|
|
filterConstraint: filterConstraint,
|
|
placeholder: placeholder,
|
|
minFractionDigits: minFractionDigits,
|
|
maxFractionDigits: maxFractionDigits,
|
|
prefix: prefix,
|
|
suffix: suffix,
|
|
locale: locale,
|
|
localeMatcher: localeMatcher,
|
|
currency: currency,
|
|
currencyDisplay: currencyDisplay,
|
|
useGrouping: useGrouping,
|
|
showButtons: showButtons
|
|
}
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-template #builtInElement>
|
|
<ng-container [ngSwitch]="type">
|
|
<input
|
|
*ngSwitchCase="'text'"
|
|
type="text"
|
|
[ariaLabel]="ariaLabel"
|
|
pInputText
|
|
[value]="filterConstraint?.value"
|
|
(input)="onModelChange($event.target.value)"
|
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
[attr.placeholder]="placeholder"
|
|
/>
|
|
<p-inputNumber
|
|
*ngSwitchCase="'numeric'"
|
|
[ngModel]="filterConstraint?.value"
|
|
(ngModelChange)="onModelChange($event)"
|
|
(onKeyDown)="onNumericInputKeyDown($event)"
|
|
[showButtons]="showButtons"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[ariaLabel]="ariaLabel"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[placeholder]="placeholder"
|
|
[mode]="currency ? 'currency' : 'decimal'"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
></p-inputNumber>
|
|
<p-triStateCheckbox [ariaLabel]="ariaLabel" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)"></p-triStateCheckbox>
|
|
<p-calendar [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-calendar>
|
|
</ng-container>
|
|
</ng-template>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "variant", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i9.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "component", type: i10.Calendar, selector: "p-calendar", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i11.TriStateCheckbox, selector: "p-triStateCheckbox", inputs: ["disabled", "name", "ariaLabel", "ariaLabelledBy", "variant", "tabindex", "inputId", "style", "styleClass", "label", "readonly", "checkboxTrueIcon", "checkboxFalseIcon", "autofocus"], outputs: ["onChange"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ColumnFilterFormElement, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-columnFilterFormElement',
|
|
template: `
|
|
<ng-container *ngIf="filterTemplate; else builtInElement">
|
|
<ng-container
|
|
*ngTemplateOutlet="
|
|
filterTemplate;
|
|
context: {
|
|
$implicit: filterConstraint.value,
|
|
filterCallback: filterCallback,
|
|
type: type,
|
|
field: field,
|
|
filterConstraint: filterConstraint,
|
|
placeholder: placeholder,
|
|
minFractionDigits: minFractionDigits,
|
|
maxFractionDigits: maxFractionDigits,
|
|
prefix: prefix,
|
|
suffix: suffix,
|
|
locale: locale,
|
|
localeMatcher: localeMatcher,
|
|
currency: currency,
|
|
currencyDisplay: currencyDisplay,
|
|
useGrouping: useGrouping,
|
|
showButtons: showButtons
|
|
}
|
|
"
|
|
></ng-container>
|
|
</ng-container>
|
|
<ng-template #builtInElement>
|
|
<ng-container [ngSwitch]="type">
|
|
<input
|
|
*ngSwitchCase="'text'"
|
|
type="text"
|
|
[ariaLabel]="ariaLabel"
|
|
pInputText
|
|
[value]="filterConstraint?.value"
|
|
(input)="onModelChange($event.target.value)"
|
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
[attr.placeholder]="placeholder"
|
|
/>
|
|
<p-inputNumber
|
|
*ngSwitchCase="'numeric'"
|
|
[ngModel]="filterConstraint?.value"
|
|
(ngModelChange)="onModelChange($event)"
|
|
(onKeyDown)="onNumericInputKeyDown($event)"
|
|
[showButtons]="showButtons"
|
|
[minFractionDigits]="minFractionDigits"
|
|
[maxFractionDigits]="maxFractionDigits"
|
|
[ariaLabel]="ariaLabel"
|
|
[prefix]="prefix"
|
|
[suffix]="suffix"
|
|
[placeholder]="placeholder"
|
|
[mode]="currency ? 'currency' : 'decimal'"
|
|
[locale]="locale"
|
|
[localeMatcher]="localeMatcher"
|
|
[currency]="currency"
|
|
[currencyDisplay]="currencyDisplay"
|
|
[useGrouping]="useGrouping"
|
|
></p-inputNumber>
|
|
<p-triStateCheckbox [ariaLabel]="ariaLabel" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)"></p-triStateCheckbox>
|
|
<p-calendar [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-calendar>
|
|
</ng-container>
|
|
</ng-template>
|
|
`,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: Table }, { type: ColumnFilter }], propDecorators: { field: [{
|
|
type: Input
|
|
}], type: [{
|
|
type: Input
|
|
}], filterConstraint: [{
|
|
type: Input
|
|
}], filterTemplate: [{
|
|
type: Input
|
|
}], placeholder: [{
|
|
type: Input
|
|
}], minFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], maxFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], prefix: [{
|
|
type: Input
|
|
}], suffix: [{
|
|
type: Input
|
|
}], locale: [{
|
|
type: Input
|
|
}], localeMatcher: [{
|
|
type: Input
|
|
}], currency: [{
|
|
type: Input
|
|
}], currencyDisplay: [{
|
|
type: Input
|
|
}], useGrouping: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}] } });
|
|
export class TableModule {
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: TableModule, declarations: [Table, SortableColumn, FrozenColumn, RowGroupHeader, SelectableRow, RowToggler, ContextMenuRow, ResizableColumn, ReorderableColumn, EditableColumn, CellEditor, TableBody, SortIcon, TableRadioButton, TableCheckbox, TableHeaderCheckbox, ReorderableRowHandle, ReorderableRow, SelectableRowDblClick, EditableRow, InitEditableRow, SaveEditableRow, CancelEditableRow, ColumnFilter, ColumnFilterFormElement], imports: [CommonModule,
|
|
PaginatorModule,
|
|
InputTextModule,
|
|
DropdownModule,
|
|
FormsModule,
|
|
ButtonModule,
|
|
SelectButtonModule,
|
|
CalendarModule,
|
|
InputNumberModule,
|
|
TriStateCheckboxModule,
|
|
ScrollerModule,
|
|
ArrowDownIcon,
|
|
ArrowUpIcon,
|
|
SpinnerIcon,
|
|
SortAltIcon,
|
|
SortAmountUpAltIcon,
|
|
SortAmountDownIcon,
|
|
CheckIcon,
|
|
FilterIcon,
|
|
FilterSlashIcon,
|
|
PlusIcon,
|
|
TrashIcon], exports: [Table, SharedModule, SortableColumn, FrozenColumn, RowGroupHeader, SelectableRow, RowToggler, ContextMenuRow, ResizableColumn, ReorderableColumn, EditableColumn, CellEditor, SortIcon, TableRadioButton, TableCheckbox, TableHeaderCheckbox, ReorderableRowHandle, ReorderableRow, SelectableRowDblClick, EditableRow, InitEditableRow, SaveEditableRow, CancelEditableRow, ColumnFilter, ColumnFilterFormElement, ScrollerModule] });
|
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableModule, imports: [CommonModule,
|
|
PaginatorModule,
|
|
InputTextModule,
|
|
DropdownModule,
|
|
FormsModule,
|
|
ButtonModule,
|
|
SelectButtonModule,
|
|
CalendarModule,
|
|
InputNumberModule,
|
|
TriStateCheckboxModule,
|
|
ScrollerModule,
|
|
ArrowDownIcon,
|
|
ArrowUpIcon,
|
|
SpinnerIcon,
|
|
SortAltIcon,
|
|
SortAmountUpAltIcon,
|
|
SortAmountDownIcon,
|
|
CheckIcon,
|
|
FilterIcon,
|
|
FilterSlashIcon,
|
|
PlusIcon,
|
|
TrashIcon, SharedModule,
|
|
ScrollerModule] });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TableModule, decorators: [{
|
|
type: NgModule,
|
|
args: [{
|
|
imports: [
|
|
CommonModule,
|
|
PaginatorModule,
|
|
InputTextModule,
|
|
DropdownModule,
|
|
FormsModule,
|
|
ButtonModule,
|
|
SelectButtonModule,
|
|
CalendarModule,
|
|
InputNumberModule,
|
|
TriStateCheckboxModule,
|
|
ScrollerModule,
|
|
ArrowDownIcon,
|
|
ArrowUpIcon,
|
|
SpinnerIcon,
|
|
SortAltIcon,
|
|
SortAmountUpAltIcon,
|
|
SortAmountDownIcon,
|
|
CheckIcon,
|
|
FilterIcon,
|
|
FilterSlashIcon,
|
|
PlusIcon,
|
|
TrashIcon
|
|
],
|
|
exports: [
|
|
Table,
|
|
SharedModule,
|
|
SortableColumn,
|
|
FrozenColumn,
|
|
RowGroupHeader,
|
|
SelectableRow,
|
|
RowToggler,
|
|
ContextMenuRow,
|
|
ResizableColumn,
|
|
ReorderableColumn,
|
|
EditableColumn,
|
|
CellEditor,
|
|
SortIcon,
|
|
TableRadioButton,
|
|
TableCheckbox,
|
|
TableHeaderCheckbox,
|
|
ReorderableRowHandle,
|
|
ReorderableRow,
|
|
SelectableRowDblClick,
|
|
EditableRow,
|
|
InitEditableRow,
|
|
SaveEditableRow,
|
|
CancelEditableRow,
|
|
ColumnFilter,
|
|
ColumnFilterFormElement,
|
|
ScrollerModule
|
|
],
|
|
declarations: [
|
|
Table,
|
|
SortableColumn,
|
|
FrozenColumn,
|
|
RowGroupHeader,
|
|
SelectableRow,
|
|
RowToggler,
|
|
ContextMenuRow,
|
|
ResizableColumn,
|
|
ReorderableColumn,
|
|
EditableColumn,
|
|
CellEditor,
|
|
TableBody,
|
|
SortIcon,
|
|
TableRadioButton,
|
|
TableCheckbox,
|
|
TableHeaderCheckbox,
|
|
ReorderableRowHandle,
|
|
ReorderableRow,
|
|
SelectableRowDblClick,
|
|
EditableRow,
|
|
InitEditableRow,
|
|
SaveEditableRow,
|
|
CancelEditableRow,
|
|
ColumnFilter,
|
|
ColumnFilterFormElement
|
|
]
|
|
}]
|
|
}] });
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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AgICAgICAgPGkgKm5nSWY9XCJsb2FkaW5nSWNvblwiIFtjbGFzc109XCIncC1kYXRhdGFibGUtbG9hZGluZy1pY29uICcgKyBsb2FkaW5nSWNvblwiPjwvaT5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWxvYWRpbmdJY29uXCI+XG4gICAgICAgICAgICAgICAgICAgIDxTcGlubmVySWNvbiAqbmdJZj1cIiFsb2FkaW5nSWNvblRlbXBsYXRlXCIgW3NwaW5dPVwidHJ1ZVwiIFtzdHlsZUNsYXNzXT1cIidwLWRhdGF0YWJsZS1sb2FkaW5nLWljb24nXCIgLz5cbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJsb2FkaW5nSWNvblRlbXBsYXRlXCIgY2xhc3M9XCJwLWRhdGF0YWJsZS1sb2FkaW5nLWljb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAqbmdUZW1wbGF0ZU91dGxldD1cImxvYWRpbmdJY29uVGVtcGxhdGVcIj48L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJjYXB0aW9uVGVtcGxhdGVcIiBjbGFzcz1cInAtZGF0YXRhYmxlLWhlYWRlclwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjYXB0aW9uVGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPHAtcGFnaW5hdG9yXG4gICAgICAgICAgICAgICAgW3Jvd3NdPVwicm93c1wiXG4gICAgICAgICAgICAgICAgW2ZpcnN0XT1cImZpcnN0XCJcbiAgICAgICAgICAgICAgICBbdG90YWxSZWNvcmRzX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mdTdHlsZV09XCJ7IG1heEhlaWdodDogdmlydHVhbFNjcm9sbCA/ICcnIDogc2Nyb2xsSGVpZ2h0IH1cIj5cbiAgICAgICAgICAgICAgICA8cC1zY3JvbGxlclxuICAgICAgICAgICAgICAgICAgICAjc2Nyb2xsZXJcbiAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJ2aXJ0dWFsU2Nyb2xsXCJcbiAgICAgICAgICAgICAgICAgICAgW2l0ZW1zXT1cInByb2Nlc3NlZERhdGFcIlxuICAgICAgICAgICAgICAgICAgICBbY29sdW1uc109XCJjb2x1bW5zXCJcbiAgICAgICAgICAgICAgICAgICAgW3N0eWxlXT1cInsgaGVpZ2h0OiBzY3JvbGxIZWlnaHQgIT09ICdmbGV4JyA/IHNjcm9sbEhlaWdodCA6IHVuZGVmaW5lZCB9XCJcbiAgICAgICAgICAgICAgICAgICAgW3Njcm9sbEhlaWdodF09XCJzY3JvbGxIZWlnaHQgIT09ICdmbGV4JyA/IHVuZGVmaW5lZCA6ICcxMDAlJ1wiXG4gICAgICAgICAgICAgICAgICAgIFtpdGVtU2l6ZV09XCJ2aXJ0dWFsU2Nyb2xsSXRlbVNpemUgfHwgX3ZpcnR1YWxSb3dIZWlnaHRcIlxuICAgICAgICAgICAgICAgICAgICBbc3RlcF09XCJyb3dzXCJcbiAgICAgICAgICAgICAgICAgICAgW2RlbGF5XT1cImxhenkgPyB2aXJ0dWFsU2Nyb2xsRGVsYXkgOiAwXCJcbiAgICAgICAgICAgICAgICAgICAgW2lubGluZV09XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgW2xhenldPVwibGF6eVwiXG4gICAgICAgICAgICAgICAgICAgIChvbkxhenlMb2FkKT1cIm9uTGF6eUl0ZW1Mb2FkKCRldmVudClcIlxuICAgICAgICAgICAgICAgICAgICBbbG9hZGVyRGlzYWJsZWRdPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgICAgIFtzaG93U3BhY2VyXT1cImZhbHNlXCJcbiAgICAgICAgICAgICAgICAgICAgW3Nob3dMb2FkZXJdPVwibG9hZGluZ0JvZHlUZW1wbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgIFtvcHRpb25zXT1cInZpcnR1YWxTY3JvbGxPcHRpb25zXCJcbiAgICAgICAgICAgICAgICAgICAgW2F1dG9TaXplXT1cInRydWVcIlxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImNvbnRlbnRcIiBsZXQtaXRlbXMgbGV0LXNjcm9sbGVyT3B0aW9ucz1cIm9wdGlvbnNcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJidWlsZEluVGFibGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBpdGVtcywgb3B0aW9uczogc2Nyb2xsZXJPcHRpb25zIH1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICA8L3Atc2Nyb2xsZXI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiF2aXJ0dWFsU2Nyb2xsXCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJidWlsZEluVGFibGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBwcm9jZXNzZWREYXRhLCBvcHRpb25zOiB7IGNvbHVtbnMgfSB9XCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgI2J1aWxkSW5UYWJsZSBsZXQtaXRlbXMgbGV0LXNjcm9sbGVyT3B0aW9ucz1cIm9wdGlvbnNcIj5cbiAgICAgICAgICAgICAgICAgICAgPHRhYmxlXG4gICAgICAgICAgICAgICAgICAgICAgICAjdGFibGVcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvbGU9XCJ0YWJsZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLWRhdGF0YWJsZS10YWJsZSc6IHRydWUsICdwLWRhdGF0YWJsZS1zY3JvbGxhYmxlLXRhYmxlJzogc2Nyb2xsYWJsZSwgJ3AtZGF0YXRhYmxlLXJlc2l6YWJsZS10YWJsZSc6IHJlc2l6YWJsZUNvbHVtbnMsICdwLWRhdGF0YWJsZS1yZXNpemFibGUtdGFibGUtZml0JzogcmVzaXphYmxlQ29sdW1ucyAmJiBjb2x1bW5SZXNpemVNb2RlID09PSAnZml0JyB9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjbGFzc109XCJ0YWJsZVN0eWxlQ2xhc3NcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW3N0eWxlXT1cInRhYmxlU3R5bGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuaWRdPVwiaWQgKyAnLXRhYmxlJ1wiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjb2xHcm91cFRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogc2Nyb2xsZXJPcHRpb25zLmNvbHVtbnMgfVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkIHJvbGU9XCJyb3dncm91cFwiICN0aGVhZCBjbGFzcz1cInAtZGF0YXRhYmxlLXRoZWFkXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRlckdyb3VwZWRUZW1wbGF0ZSB8fCBoZWFkZXJUZW1wbGF0ZTsgY29udGV4dDogeyAkaW1wbGljaXQ6IHNjcm9sbGVyT3B0aW9ucy5jb2x1bW5zIH1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlPVwicm93Z3JvdXBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwicC1kYXRhdGFibGUtdGJvZHkgcC1kYXRhdGFibGUtZnJvemVuLXRib2R5XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImZyb3plblZhbHVlIHx8IGZyb3plbkJvZHlUZW1wbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXT1cImZyb3plblZhbHVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZnJvemVuUm93c109XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcFRhYmxlQm9keV09XCJzY3JvbGxlck9wdGlvbnMuY29sdW1uc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BUYWJsZUJvZHlUZW1wbGF0ZV09XCJmcm96ZW5Cb2R5VGVtcGxhdGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmcm96ZW5dPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICA+PC90Ym9keT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvbGU9XCJyb3dncm91cFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJwLWRhdGF0YWJsZS10Ym9keVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwic2Nyb2xsZXJPcHRpb25zLmNvbnRlbnRTdHlsZUNsYXNzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc3R5bGVdPVwic2Nyb2xsZXJPcHRpb25zLmNvbnRlbnRTdHlsZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXT1cImRhdGFUb1JlbmRlcihzY3JvbGxlck9wdGlvbnMucm93cylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwVGFibGVCb2R5XT1cInNjcm9sbGVyT3B0aW9ucy5jb2x1bW5zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcFRhYmxlQm9keVRlbXBsYXRlXT1cImJvZHlUZW1wbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Njcm9sbGVyT3B0aW9uc109XCJzY3JvbGxlck9wdGlvbnNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgPjwvdGJvZHk+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlPVwicm93Z3JvdXBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwic2Nyb2xsZXJPcHRpb25zLnNwYWNlclN0eWxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc3R5bGVdPVwiJ2hlaWdodDogY2FsYygnICsgc2Nyb2xsZXJPcHRpb25zLnNwYWNlclN0eWxlLmhlaWdodCArICcgLSAnICsgc2Nyb2xsZXJPcHRpb25zLnJvd3MubGVuZ3RoICogc2Nyb2xsZXJPcHRpb25zLml0ZW1TaXplICsgJ3B4KTsnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInAtZGF0YXRhYmxlLXNjcm9sbGVyLXNwYWNlclwiXG4gICAgICAgICAgICAgICAgICAgICAgICA+PC90Ym9keT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0Zm9vdCByb2xlPVwicm93Z3JvdXBcIiAqbmdJZj1cImZvb3Rlckdyb3VwZWRUZW1wbGF0ZSB8fCBmb290ZXJUZW1wbGF0ZVwiICN0Zm9vdCBjbGFzc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3duaWNvblwiICpuZ0lmPVwicGFnaW5hdG9yRHJvcGRvd25JY29uVGVtcGxhdGVcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInBhZ2luYXRvckRyb3Bkb3duSWNvblRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cblxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBwVGVtcGxhdGU9XCJmaXJzdHBhZ2VsaW5raWNvblwiICpuZ0lmPVwicGFnaW5hdG9yRmlyc3RQYWdlTGlua0ljb25UZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwicGFnaW5hdG9yRmlyc3RQYWdlTGlua0ljb25UZW1wbGF0ZVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwicHJldmlvdXNwYWdlbGlua2ljb25cIiAqbmdJZj1cInBhZ2luYXRvclByZXZpb3VzUGFnZUxpbmtJY29uVGVtcGxhdGVcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInBhZ2luYXRvclByZXZpb3VzUGFnZUxpbmtJY29uVGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImxhc3RwYWdlbGlua2ljb25cIiAqbmdJZj1cInBhZ2luYXRvckxhc3RQYWdlTGlua0ljb25UZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXR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VSSwgT25DaGFuZ2VzIHtcbiAgICAvKipcbiAgICAgKiBBbiBhcnJheSBvZiBvYmplY3RzIHRvIHJlcHJlc2VudCBkeW5hbWljIGNvbHVtbnMgdGhhdCBhcmUgZnJvemVuLlxuICAgICAqIEBncm91cCBQcm9wc1xuICAgICAqL1xuICAgIEBJbnB1dCgpIGZyb3plbkNvbHVtbnM6IGFueVtdIHwgdW5kZWZpbmVkO1xuICAgIC8qKlxuICAgICAqIEFuIGFycmF5IG9mIG9iamVjdHMgdG8gZGlzcGxheSBhcyBmcm96ZW4uXG4gICAgICogQGdyb3VwIFByb3BzXG4gICAgICovXG4gICAgQElucHV0KCkgZnJvemVuVmFsdWU6IGFueVtdIHwgdW5kZWZpbmVkO1xuICAgIC8qKlxuICAgICAqIElubGluZSBzdHlsZSBvZiB0aGUgY29tcG9uZW50LlxuICAgICAqIEBncm91cCBQcm9wc1xuICAgICAqL1xuICAgIEBJbnB1dCgpIHN0eWxlOiB7IFtrbGFzczogc3RyaW5nXTogYW55IH0gfCBudWxsIHwgdW5kZWZpbmVkO1xuICAgIC8qKlxuICAgICAqIFN0eWxlIGNsYXNzIG9mIHRoZSBjb21wb25lbnQuXG4gICAgICogQGdyb3VwIFByb3BzXG4gICAgICovXG4gICAgQElucHV0KCkgc3R5bGVDbGFzczogc3RyaW5nIHwgdW5kZWZpbmVkO1xuICAgIC8qKlxuICAgICAqIElubGluZSBzdHlsZSBvZiB0aGUgdGFibGUuXG4gICAgICogQGdyb3VwIFByb3BzXG4gICAgICovXG4gICAgQElucHV0KCkgdGFibGVTdHlsZTogeyBba2xhc3M6IHN0cmluZ106IGFueSB9IHwgbnVsbCB8IHVuZGVmaW5lZDtcbiAgICAvKipcbiAgICAgKiBTdHlsZSBjbGFzcyBvZiB0aGUgdGFibGUuXG4gICAgICogQGdyb3VwIFByb3BzXG4gICAgICovXG4gICAgQElucHV0KCkgdGFibGVTdHlsZUNsYXNzOiBzdHJpbmcgfCB1bmRlZmluZWQ7XG4gIC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VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2hlYWRlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGVhZGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2hlYWRlcmdyb3VwZWQnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmhlYWRlckdyb3VwZWRUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnYm9keSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYm9keVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdsb2FkaW5nYm9keSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubG9hZGluZ0JvZHlUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZm9vdGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mb290ZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZm9vdGVyZ3JvdXBlZCc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9vdGVyR3JvdXBlZFRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdzdW1tYXJ5JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zdW1tYXJ5VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2NvbGdyb3VwJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb2xHcm91cFRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdyb3dleHBhbnNpb24nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmV4cGFuZGVkUm93VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2dyb3VwaGVhZGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5ncm91cEhlYWRlclRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdncm91cGZvb3Rlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZ3JvdXBGb290ZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZnJvemVuaGVhZGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mcm96ZW5IZWFkZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZnJvemVuYm9keSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZnJvemVuQm9keVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdmcm96ZW5mb290ZXInOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZyb3plbkZvb3RlclRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdmcm96ZW5jb2xncm91cCc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZnJvemVuQ29sR3JvdXBUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZnJvemVucm93ZXhwYW5zaW9uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mcm96ZW5FeHBhbmRlZFJvd1RlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdlbXB0eW1lc3NhZ2UnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVtcHR5TWVzc2FnZVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3JsZWZ0JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wYWdpbmF0b3JMZWZ0VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ3BhZ2luYXRvcnJpZ2h0JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wYWdpbmF0b3JSaWdodFRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3Jkcm9wZG93bmljb24nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnBhZ2luYXRvckRyb3Bkb3duSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3Jkcm9wZG93bml0ZW0nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnBhZ2luYXRvckRyb3Bkb3duSXRlbVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3JmaXJzdHBhZ2VsaW5raWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGFnaW5hdG9yRmlyc3RQYWdlTGlua0ljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncGFnaW5hdG9ybGFzdHBhZ2VsaW5raWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGFnaW5hdG9yTGFzdFBhZ2VMaW5rSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdwYWdpbmF0b3JwcmV2aW91c3BhZ2VsaW5raWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGFnaW5hdG9yUHJldmlvdXNQYWdlTGlua0ljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncGFnaW5hdG9ybmV4dHBhZ2VsaW5raWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGFnaW5hdG9yTmV4dFBhZ2VMaW5rSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdsb2FkaW5naWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubG9hZGluZ0ljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncmVvcmRlcmluZGljYXRvcnVwaWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVvcmRlckluZGljYXRvclVwSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdyZW9yZGVyaW5kaWNhdG9yZG93bmljb24nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlb3JkZXJJbmRpY2F0b3JEb3duSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdzb3J0aWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc29ydEljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnY2hlY2tib3hpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jaGVja2JveEljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnaGVhZGVyY2hlY2tib3hpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5oZWFkZXJDaGVja2JveEljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9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pZWxkID0gc2ltcGxlQ2hhbmdlLnNvcnRGaWVsZC5jdXJyZW50VmFsdWU7XG5cbiAgICAgICAgICAgIC8vYXZvaWQgdHJpZ2dlcmluZyBsYXp5IGxvYWQgcHJpb3IgdG8gbGF6eSBpbml0aWFsaXphdGlvbiBhdCBvbkluaXRcbiAgICAgICAgICAgIGlmICghdGhpcy5sYXp5IHx8IHRoaXMuaW5pdGlhbGl6ZWQpIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zb3J0TW9kZSA9PT0gJ3NpbmdsZScpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zb3J0U2luZ2xlKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHNpbXBsZUNoYW5nZS5ncm91cFJvd3NCeSkge1xuICAgICAgICAgICAgLy9hdm9pZCB0cmlnZ2VyaW5nIGxhenkgbG9hZCBwcmlvciB0byBsYXp5IGluaXRpYWxpemF0aW9uIGF0IG9uSW5pdFxuICAgICAgICAgICAgaWYgKCF0aGlzLmxhenkgfHwgdGhpcy5pbml0aWFsaXplZCkge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNvcnRNb2RlID09PSAnc2luZ2xlJykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNvcnRTaW5nbGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoc2ltcGxlQ2hhbmdlLnNvcnRPcmRlcikge1xuICAgICAgICAgICAgdGhpcy5fc29ydE9yZGVyID0gc2ltcGxlQ2hhbmdlLnNvcnRPcmRlci5jdXJyZW50VmFsdWU7XG5cbiAgICAgICAgICAgIC8vYXZvaWQgdHJpZ2dlcmluZyBsYXp5IGxvYWQgcHJpb3IgdG8gbGF6eSBpbml0aWFsaXphdGlvbiBhdCBvbkluaXRcbiAgICAgICAgICAgIGlmICghdGhpcy5sYXp5IHx8IHRoaXMuaW5pdGlhbGl6ZWQpIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zb3J0TW9kZSA9PT0gJ3NpbmdsZScpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zb3J0U2luZ2xlKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHNpbXBsZUNoYW5nZS5ncm91cFJvd3NCeU9yZGVyKSB7XG4gICAgICAgICAgICAvL2F2b2lkIHRyaWdnZXJpbmcgbGF6eSBsb2FkIHByaW9yIHRvIGxhenkgaW5pdGlhbGl6YXRpb24gYXQgb25Jbml0XG4gICAgICAgICAgICBpZiAoIXRoaXMubGF6eSB8fCB0aGlzLmluaXRpYWxpemVkKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuc29ydE1vZGUgPT09ICdzaW5nbGUnKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc29ydFNpbmdsZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChzaW1wbGVDaGFuZ2UubXVsdGlTb3J0TWV0YSkge1xuICAgICAgICAgICAgdGhpcy5fbXVsdGlTb3J0TWV0YSA9IHNpbXBsZUNoYW5nZS5tdWx0aVNvcnRNZXRhLmN1cnJlbnRWYWx1ZTtcbiAgICAgICAgICAgIGlmICh0aGlzLnNvcnRNb2RlID09PSAnbXVsdGlwbGUnICYmICh0aGlzLmluaXRpYWxpemVkIHx8ICghdGhpcy5sYXp5ICYmICF0aGlzLnZpcnR1YWxTY3JvbGwpKSkge1xuICAgICAgICAgICAgICAgIHRoaXMuc29ydE11bHRpcGxlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoc2ltcGxlQ2hhbmdlLnNlbGVjdGlvbikge1xuICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gc2ltcGxlQ2hh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AgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uUGFnZUNoYW5nZShldmVudDogVGFibGVQYWdlRXZlbnQpIHtcbiAgICAgICAgdGhpcy5maXJzdCA9IGV2ZW50LmZpcnN0O1xuICAgICAgICB0aGlzLnJvd3MgPSBldmVudC5yb3dzO1xuXG4gICAgICAgIHRoaXMub25QYWdlLmVtaXQoe1xuICAgICAgICAgICAgZmlyc3Q6IHRoaXMuZmlyc3QsXG4gICAgICAgICAgICByb3dzOiA8bnVtYmVyPnRoaXMucm93c1xuICAgICAgICB9KTtcblxuICAgICAgICBpZiAodGhpcy5sYXp5KSB7XG4gICAgICAgICAgICB0aGlzLm9uTGF6eUxvYWQuZW1pdCh0aGlzLmNyZWF0ZUxhenlMb2FkTWV0YWRhdGEoKSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmZpcnN0Q2hhbmdlLmVtaXQodGhpcy5maXJzdCk7XG4gICAgICAgIHRoaXMucm93c0NoYW5nZS5lbWl0KHRoaXMucm93cyk7XG4gICAgICAgIHRoaXMudGFibGVTZXJ2aWNlLm9uVmFsdWVDaGFuZ2UodGhpcy52YWx1ZSk7XG5cbiAgICAgICAgaWYgKHRoaXMuaXNTdGF0ZWZ1bCgpKSB7XG4gICAgICAgICAgICB0aGlzLnNhdmVTdGF0ZSgpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5hbmNob3JSb3dJbmRleCA9IG51bGw7XG5cbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsYWJsZSkge1xuICAgICAgICAgICAgdGhpcy5yZXNldFNjcm9sbFRvcCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgc29ydChldmVudDogYW55KSB7XG4gICAgICAgIGxldCBvcmlnaW5hbEV2ZW50ID0gZXZlbnQub3JpZ2luYWxFdmVudDtcblxuICAgICAgICBpZiAodGhpcy5zb3J0TW9kZSA9PT0gJ3NpbmdsZScpIHtcbiAgICAgICAgICAgIHRoaXMuX3NvcnRPcmRlciA9IHRoaXMuc29ydEZpZWxkID09PSBldmVudC5maWVsZCA/IHRoaXMuc29ydE9yZGVyICogLTEgOiB0aGlzLmRlZmF1bHRTb3J0T3JkZXI7XG4gICAgICAgICAgICB0aGlzLl9zb3J0RmllbGQgPSBldmVudC5maWVsZDtcblxuICAgICAgICAgICAgaWYgKHRoaXMucmVzZXRQYWdlT25Tb3J0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fZmlyc3QgPSAwO1xuICAgICAgICAgICAgICAgIHRoaXMuZmlyc3RDaGFuZ2UuZW1pdCh0aGlzLl9maXJzdCk7XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zY3JvbGxhYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVzZXRTY3JvbGxUb3AoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMuc29ydFNpbmdsZSgpO1xuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLnNvcnRNb2RlID09PSAnbXVsdGlwbGUnKSB7XG4gICAgICAgICAgICBsZXQgbWV0YUtleSA9ICg8S2V5Ym9hcmRFdmVudD5vcmlnaW5hbEV2ZW50KS5tZXRhS2V5IHx8ICg8S2V5Ym9hcmRFdmVudD5vcmlnaW5hbEV2ZW50KS5jdHJsS2V5O1xuICAgICAgICAgICAgbGV0IHNvcnRNZXRhID0gdGhpcy5nZXRTb3J0TWV0YSg8c3RyaW5nPmV2ZW50LmZpZWxkKTtcblxuICAgICAgICAgICAgaWYgKHNvcnRNZXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKCFtZXRhS2V5KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX211bHRpU29ydE1ldGEgPSBbeyBmaWVsZDogPHN0cmluZz5ldmVudC5maWVsZCwgb3JkZXI6IHNvcnRNZXRhLm9yZGVyICogLTEgfV07XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMucmVzZXRQYWdlT25Tb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9maXJzdCA9IDA7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZpcnN0Q2hhbmdlLmVtaXQodGhpcy5fZmlyc3QpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5zY3JvbGxhYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5yZXNldFNjcm9sbFRvcCgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgc29ydE1ldGEub3JkZXIgPSBzb3J0TWV0YS5vcmRlciAqIC0xO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKCFtZXRhS2V5IHx8ICF0aGlzLm11bHRpU29ydE1ldGEpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbXVsdGlTb3J0TWV0YSA9IFtdO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLnJlc2V0UGFnZU9uU29ydCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlyc3QgPSAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5maXJzdENoYW5nZS5lbWl0KHRoaXMuX2ZpcnN0KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAoPFNvcnRNZXRhW10+dGhpcy5fbXVsdGlTb3J0TWV0YSkucHVzaCh7IGZpZWxkOiA8c3RyaW5nPmV2ZW50LmZpZWxkLCBvcmRlcjogdGhpcy5kZWZhdWx0U29ydE9yZGVyIH0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLnNvcnRNdWx0aXBsZSgpO1xuICAgICAgICB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AgICAgICAgICBpZiAodGhpcy5jdXN0b21Tb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc29ydEZ1bmN0aW9uLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogdGhpcy52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IHRoaXMuc29ydE1vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWVsZDogZmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBvcmRlcjogb3JkZXJcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWx1ZS5zb3J0KChkYXRhMSwgZGF0YTIpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB2YWx1ZTEgPSBPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKGRhdGExLCBmaWVsZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgdmFsdWUyID0gT2JqZWN0VXRpbHMucmVzb2x2ZUZpZWxkRGF0YShkYXRhMiwgZmllbGQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlc3VsdCA9IG51bGw7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZTEgPT0gbnVsbCAmJiB2YWx1ZTIgIT0gbnVsbCkgcmVzdWx0ID0gLTE7XG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmICh2YWx1ZTEgIT0gbnVsbCAmJiB2YWx1ZTIgPT0gbnVsbCkgcmVzdWx0ID0gMTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgKHZhbHVlMSA9PSBudWxsICYmIHZhbHVlMiA9PSBudWxsKSByZXN1bHQgPSAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiAodHlwZW9mIHZhbHVlMSA9PT0gJ3N0cmluZycgJiYgdHlwZW9mIHZhbHVlMiA9PT0gJ3N0cmluZycpIHJlc3VsdCA9IHZhbHVlMS5sb2NhbGVDb21wYXJlKHZhbHVlMik7XG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHJlc3VsdCA9IHZhbHVlMSA8IHZhbHVlMiA/IC0xIDogdmFsdWUxID4gdmFsdWUyID8gMSA6IDA7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvcmRlciAqIHJlc3VsdDtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fdmFsdWUgPSBbLi4udGhpcy52YWx1ZV07XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaGFzRmlsdGVyKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmlsdGVyKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBsZXQgc29ydE1ldGE6IFNvcnRNZXRhID0ge1xuICAgICAgICAgICAgICAgIGZpZWxkOiBmaWVsZCxcbiAgICAgICAgICAgICAgICBvcmRlcjogb3JkZXJcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHRoaXMub25Tb3J0LmVtaXQoc29ydE1ldGEpO1xuICAgICAgICAgICAgdGhpcy50YWJsZVNlcnZpY2Uub25Tb3J0KHNvcnRNZXRhKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNvcnRNdWx0aXBsZSgpIHtcbiAgICAgICAgaWYgKHRoaXMuZ3JvdXBSb3dzQnkpIHtcbiAgICAgICAgICAgIGlmICghdGhpcy5fbXVsdGlTb3J0TWV0YSkgdGhpcy5fbXVsdGlTb3J0TWV0YSA9IFt0aGlzLmdldEdyb3VwUm93c01ldGEoKV07XG4gICAgICAgICAgICBlbHNlIGlmICgoPFNvcnRNZXRhW10+dGhpcy5tdWx0aVNvcnRNZXRhKVswXS5maWVsZCAhPT0gdGhpcy5ncm91cFJvd3NCeSkgdGhpcy5fbXVsdGlTb3J0TWV0YSA9IFt0aGlzLmdldEdyb3VwUm93c01ldGEoKSwgLi4udGhpcy5fbXVsdGlTb3J0TWV0YV07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5tdWx0aVNvcnRNZXRhKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5sYXp5KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vbkxhenlMb2FkLmVtaXQodGhpcy5jcmVhdGVMYXp5TG9hZE1ldGFkYXRhKCkpO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLnZhbHVlKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuY3VzdG9tU29ydCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNvcnRGdW5jdGlvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHRoaXMudmFsdWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlOiB0aGlzLnNvcnRNb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbXVsdGlTb3J0TWV0YTogdGhpcy5tdWx0aVNvcnRNZXRhXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsdWUuc29ydCgoZGF0YTEsIGRhdGEyKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5tdWx0aXNvcnRGaWVsZChkYXRhMSwgZGF0YTIsIDxTb3J0TWV0YVtdPnRoaXMubXVsdGlTb3J0TWV0YSwgMCk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3ZhbHVlID0gWy4uLnRoaXMudmFsdWVdO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmhhc0ZpbHRlcigpKSB7XG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blxuICAgIGNvbXBhcmVWYWx1ZXNPblNvcnQodmFsdWUxOiBhbnksIHZhbHVlMjogYW55LCBvcmRlcjogYW55KSB7XG4gICAgICAgIHJldHVybiBPYmplY3RVdGlscy5zb3J0KHZhbHVlMSwgdmFsdWUyLCBvcmRlciwgdGhpcy5maWx0ZXJMb2NhbGUsIHRoaXMuc29ydE9yZGVyKTtcbiAgICB9XG5cbiAgICBnZXRTb3J0TWV0YShmaWVsZDogc3RyaW5nKSB7XG4gICAgICAgIGlmICh0aGlzLm11bHRpU29ydE1ldGEgJiYgdGhpcy5tdWx0aVNvcnRNZXRhLmxlbmd0aCkge1xuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLm11bHRpU29ydE1ldGEubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5tdWx0aVNvcnRNZXRhW2ldLmZpZWxkID09PSBmaWVsZCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5tdWx0aVNvcnRNZXRhW2ldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIGlzU29ydGVkKGZpZWxkOiBzdHJpbmcpIHtcbiAgICAgICAgaWYgKHRoaXMuc29ydE1vZGUgPT09ICdzaW5nbGUnKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5zb3J0RmllbGQgJiYgdGhpcy5zb3J0RmllbGQgPT09IGZpZWxkO1xuICAgICAgICB9IGVsc2UgaWYgKHRoaXMuc29ydE1vZGUgPT09ICdtdWx0aXBsZScpIHtcbiAgICAgICAgICAgIGxldCBzb3J0ZWQgPSBmYWxzZTtcbiAgICAgICAgICAgIGlmICh0aGlzLm11bHRpU29ydE1ldGEpIHtcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRoaXMubXVsdGlTb3J0TWV0YS5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5tdWx0aVNvcnRNZXRhW2ldLmZpZWxkID09IGZpZWxkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzb3J0ZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gc29ydGVkO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlUm93Q2xpY2soZXZlbnQ6IGFueSkge1xuICAgICAgICBsZXQgdGFyZ2V0ID0gPEhUTUxFbGVtZW50PmV2ZW50Lm9yaWdpbmFsRXZlbnQudGFyZ2V0O1xuICAgICAgICBsZXQgdGFyZ2V0Tm9kZSA9IHRhcmdldC5ub2RlTmFtZTtcbiAgICAgICAgbGV0IHBhcmVudE5vZGUgPSB0YXJnZXQucGFyZW50RWxlbWVudCAmJiB0YXJnZXQucGFyZW50RWxlbWVudC5ub2RlTmFtZTtcbiAgICAgICAgaWYgKHRhcmdldE5vZGUgPT0gJ0lOUFVUJyB8fCB0YXJnZXROb2RlID09ICdCVVRUT04nIHx8IHRhcmdldE5vZGUgPT0gJ0EnIHx8IHBhcmVudE5vZGUgPT0gJ0lOUFVUJyB8fCBwYXJlbnROb2RlID09ICdCVVRUT04nIHx8IHBhcmVudE5vZGUgPT0gJ0EnIHx8IERvbUhhbmRsZXIuaGFzQ2xhc3MoZXZlbnQub3JpZ2luYWxFdmVudC50YXJnZXQsICdwLWNsaWNrYWJsZScpKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5zZWxlY3Rpb25Nb2RlKSB7XG4gICAgICAgICAgICBsZXQgcm93RGF0YSA9IGV2ZW50LnJvd0RhdGE7XG4gICAgICAgICAgICBsZXQgcm93SW5kZXggPSBldmVudC5yb3dJbmRleDtcblxuICAgICAgICAgICAgdGhpcy5wcmV2ZW50U2VsZWN0aW9uU2V0dGVyUHJvcGFnYXRpb24gPSB0cnVlO1xuICAgICAgICAgICAgaWYgKHRoaXMuaXNNdWx0aXBsZVNlbGVjdGlvbk1vZGUoKSAmJiBldmVudC5vcmlnaW5hbEV2ZW50LnNoaWZ0S2V5ICYmIHRoaXMuYW5jaG9yUm93SW5kZXggIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIERvbUhhbmRsZXIuY2xlYXJTZWxlY3Rpb24oKTtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5yYW5nZVJvd0luZGV4ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbGVhclNlbGVjdGlvblJhbmdlKGV2ZW50Lm9yaWdpbmFsRXZlbnQpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMucmFuZ2VSb3dJbmRleCA9IHJvd0luZGV4O1xuICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0UmFuZ2UoZXZlbnQub3JpZ2luYWxFdmVudCwgcm93SW5kZXgpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsZXQgc2VsZWN0ZWQgPSB0aGlzLmlzU2VsZWN0ZWQocm93RGF0YSk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIXNlbGVjdGVkICYmICF0aGlzLmlzUm93U2VsZWN0YWJsZShyb3dEYXRhLCByb3dJbmRleCkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGxldCBtZXRhU2VsZWN0aW9uID0gdGhpcy5yb3dUb3VjaGVkID8gZmFsc2UgOiB0aGlzLm1ldGFLZXlTZWxlY3Rpb247XG4gICAgICAgICAgICAgICAgbGV0IGRhdGFLZXlWYWx1ZSA9IHRoaXMuZGF0YUtleSA/IFN0cmluZyhPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHJvd0RhdGEsIHRoaXMuZGF0YUtleSkpIDogbnVsbDtcbiAgICAgICAgICAgICAgICB0aGlzLmFuY2hvclJvd0luZGV4ID0gcm93SW5kZXg7XG4gICAgICAgICAgICAgICAgdGhpcy5yYW5nZVJvd0luZGV4ID0gcm93SW5kZXg7XG5cbiAgICAgICAgICAgICAgICBpZiAobWV0YVNlbGVjdGlvbikge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbWV0YUtleSA9IGV2ZW50Lm9yaWdpbmFsRXZlbnQubWV0YUtleSB8fCBldmVudC5vcmlnaW5hbEV2ZW50LmN0cmxLZXk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHNlbGVjdGVkICYmIG1ldGFLZXkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzU2luZ2xlU2VsZWN0aW9uTW9kZSgpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbktleXMgPSB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbkNoYW5nZS5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgc2VsZWN0aW9uSW5kZXggPSB0aGlzLmZpbmRJbmRleEluU2VsZWN0aW9uKHJvd0RhdGEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX3NlbGVjdGlvbiA9IHRoaXMuc2VsZWN0aW9uLmZpbHRlcigodmFsOiBhbnksIGk6IG51bWJlcikgPT4gaSAhPSBzZWxlY3Rpb25JbmRleCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2UuZW1pdCh0aGlzLnNlbGVjdGlvbik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGFLZXlWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgdGhpcy5zZWxlY3Rpb25LZXlzW2RhdGFLZXlWYWx1ZV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uUm93VW5zZWxlY3QuZW1pdCh7IG9yaWdpbmFsRXZlbnQ6IGV2ZW50Lm9yaWdpbmFsRXZlbnQsIGRhdGE6IHJvd0RhdGEsIHR5cGU6ICdyb3cnIH0pO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNTaW5nbGVTZWxlY3Rpb25Nb2RlKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9zZWxlY3Rpb24gPSByb3dEYXRhO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uQ2hhbmdlLmVtaXQocm93RGF0YSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGFLZXlWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbktleXMgPSB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25LZXlzW2RhdGFLZXlWYWx1ZV0gPSAxO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5pc011bHRpcGxlU2VsZWN0aW9uTW9kZSgpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1ldGFLZXkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gdGhpcy5zZWxlY3Rpb24gfHwgW107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gW107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uS2V5cyA9IHt9O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX3NlbGVjdGlvbiA9IFsuLi50aGlzLnNlbGVjdGlvbiwgcm93RGF0YV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2UuZW1pdCh0aGlzLnNlbGVjdGlvbik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGFLZXlWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbktleXNbZGF0YUtleVZhbHVlXSA9IDE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uUm93U2VsZWN0LmVtaXQoeyBvcmlnaW5hbEV2ZW50OiBldmVudC5vcmlnaW5hbEV2ZW50LCBkYXRhOiByb3dEYXRhLCB0eXBlOiAncm93JywgaW5kZXg6IHJvd0luZGV4IH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuc2VsZWN0aW9uTW9kZSA9PT0gJ3NpbmdsZScpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX3NlbGVjdGlvbiA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25LZXlzID0ge307XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2UuZW1pdCh0aGlzLnNlbGVjdGlvbik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vblJvd1Vuc2VsZWN0LmVtaXQoeyBvcmlnaW5hbEV2ZW50OiBldmVudC5vcmlnaW5hbEV2ZW50LCBkYXRhOiByb3dEYXRhLCB0eXBlOiAncm93JywgaW5kZXg6IHJvd0luZGV4IH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9zZWxlY3Rpb24gPSByb3dEYXRhO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uQ2hhbmdlLmVtaXQodGhpcy5zZWxlY3Rpb24pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25Sb3dTZWxlY3QuZW1pdCh7IG9yaWdpbmFsRXZlbnQ6IGV2ZW50Lm9yaWdpbmFsRXZlbnQsIGRhdGE6IHJvd0RhdGEsIHR5cGU6ICdyb3cnLCBpbmRleDogcm93SW5kZXggfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGFLZXlWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbktleXMgPSB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25LZXlzW2RhdGFLZXlWYWx1ZV0gPSAxO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLnNlbGVjdGlvbk1vZGUgPT09ICdtdWx0aXBsZScpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBzZWxlY3Rpb25JbmRleCA9IHRoaXMuZmluZEluZGV4SW5TZWxlY3Rpb24ocm93RGF0YSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gdGhpcy5zZWxlY3Rpb24uZmlsdGVyKCh2YWw6IGFueSwgaTogbnVtYmVyKSA9PiBpICE9IHNlbGVjdGlvbkluZGV4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbkNoYW5nZS5lbWl0KHRoaXMuc2VsZWN0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uUm93VW5zZWxlY3QuZW1pdCh7IG9yaWdpbmFsRXZlbnQ6IGV2ZW50Lm9yaWdpbmFsRXZlbnQsIGRhdGE6IHJvd0RhdGEsIHR5cGU6ICdyb3cnLCBpbmRleDogcm93SW5kZXggfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGFLZXlWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgdGhpcy5zZWxlY3Rpb25LZXlzW2RhdGFLZXlWYWx1ZV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9zZWxlY3Rpb24gPSB0aGlzLnNlbGVjdGlvbiA/IFsuLi50aGlzLnNlbGVjdGlvbiwgcm93RGF0YV0gOiBbcm93RGF0YV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2UuZW1pdCh0aGlzLnNlbGVjdGlvbik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vblJvd1NlbGVjdC5lbWl0KHsgb3JpZ2luYWxFdmVudDogZXZlbnQub3JpZ2luYWxFdmVudCwgZGF0YTogcm93RGF0YSwgdHlwZTogJ3JvdycsIGluZGV4OiByb3dJbmRleCB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZGF0YUtleVZhbHVlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uS2V5c1tkYXRhS2V5VmFsdWVdID0gMTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMudGFibGVTZXJ2aWNlLm9uU2VsZWN0aW9uQ2hhbmdlKCk7XG5cbiAgICAgICAgICAgIGlmICh0aGlzLmlzU3RhdGVmdWwoKSkge1xuICAgICAgICAgICAgICAgIHRoaXMuc2F2ZVN0YXRlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnJvd1RvdWNoZWQgPSBmYWxzZTtcbiAgICB9XG5cbiAgICBoYW5kbGVSb3dUb3VjaEVuZChldmVudDogRXZlbnQpIHtcbiAgICAgICAgdGhpcy5yb3dUb3VjaGVkID0gdHJ1ZTtcbiAgICB9XG5cbiAgICBoYW5kbGVSb3dSaWdodENsaWNrKGV2ZW50OiBhbnkpIHtcbiAgICAgICAgaWYgKHRoaXMuY29udGV4dE1lbnUpIHtcbiAgICAgICAgICAgIGNvbnN0IHJvd0RhdGEgPSBldmVudC5yb3dEYXRhO1xuICAgICAgICAgICAgY29uc3Qgcm93SW5kZXggPSBldmVudC5yb3dJbmRleDtcblxuICAgICAgICAgICAgaWYgKHRoaXMuY29udGV4dE1lbnVTZWxlY3Rpb25Nb2RlID09PSAnc2VwYXJhdGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZXh0TWVudVNlbGVjdGlvbiA9IHJvd0RhdGE7XG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZXh0TWVudVNlbGVjdGlvbkNoYW5nZS5lbWl0KHJvd0RhdGEpO1xuICAgICAgICAgICAgICAgIHRoaXMub25Db250ZXh0TWVudVNlbGVjdC5lbWl0KHsgb3JpZ2luYWxFdmVudDogZXZlbnQub3JpZ2luYWxFdmVudCwgZGF0YTogcm93RGF0YSwgaW5kZXg6IGV2ZW50LnJvd0luZGV4IH0pO1xuICAgICAgICAgICAgICAgIHRoaXMuY29udGV4dE1lbnUuc2hvdyhldmVudC5vcmlnaW5hbEV2ZW50KTtcbiAgICAgICAgICAgICAgICB0aGlzLnRhYmxlU2VydmljZS5vbkNvbnRleHRNZW51KHJvd0RhdGEpO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbnRleHRNZW51U2VsZWN0aW9uTW9kZSA9PT0gJ2pvaW50Jykge1xuICAgICAgICAgICAgICAgIHRoaXMucHJldmVudFNlbGVjdGlvblNldHRlclByb3BhZ2F0aW9uID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBsZXQgc2VsZWN0ZWQgPSB0aGlzLmlzU2VsZWN0ZWQocm93RGF0YSk7XG4gICAgICAgICAgICAgICAgbGV0IGRhdGFLZXlWYWx1ZSA9IHRoaXMuZGF0YUtleSA/IFN0cmluZyhPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHJvd0RhdGEsIHRoaXMuZGF0YUtleSkpIDogbnVsbDtcblxuICAgICAgICAgICAgICAgIGlmICghc2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmlzUm93U2VsZWN0YWJsZShyb3dEYXRhLCByb3dJbmRleCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzU2luZ2xlU2VsZWN0aW9uTW9kZSgpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbiA9IHJvd0RhdGE7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbkNoYW5nZS5lbWl0KHJvd0RhdGEpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZGF0YUtleVZhbHVlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25LZXlzID0ge307XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25LZXlzW2RhdGFLZXlWYWx1ZV0gPSAxO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuaXNNdWx0aXBsZVNlbGVjdGlvbk1vZGUoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0aW9uID0gdGhpcy5zZWxlY3Rpb24gPyBbLi4udGhpcy5zZWxlY3Rpb24sIHJvd0RhdGFdIDogW3Jvd0RhdGFdO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2UuZW1pdCh0aGlzLnNlbGVjdGlvbik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkYXRhS2V5VmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbktleXNbZGF0YUtleVZhbHVlXSA9IDE7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLnRhYmxlU2VydmljZS5vblNlbGVjdGlvbkNoYW5nZSgpO1xuICAgICAgICAgICAgICAgIHRoaXMuY29udGV4dE1lbnUuc2hvdyhldmVudC5vcmlnaW5hbEV2ZW50KTtcbiAgICAgICAgICAgICAgICB0a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xzKHJvd0RhdGEsIHRoaXMuc2VsZWN0aW9uKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBmaW5kSW5kZXhJblNlbGVjdGlvbihyb3dEYXRhOiBhbnkpIHtcbiAgICAgICAgbGV0IGluZGV4OiBudW1iZXIgPSAtMTtcbiAgICAgICAgaWYgKHRoaXMuc2VsZWN0aW9uICYmIHRoaXMuc2VsZWN0aW9uLmxlbmd0aCkge1xuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLnNlbGVjdGlvbi5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmVxdWFscyhyb3dEYXRhLCB0aGlzLnNlbGVjdGlvbltpXSkpIHtcbiAgICAgICAgICAgICAgICAgICAgaW5kZXggPSBpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gaW5kZXg7XG4gICAgfVxuXG4gICAgaXNSb3dTZWxlY3RhYmxlKGRhdGE6IGFueSwgaW5kZXg6IG51bWJlcikge1xuICAgICAgICBpZiAodGhpcy5yb3dTZWxlY3RhYmxlICYmICF0aGlzLnJvd1NlbGVjdGFibGUoeyBkYXRhLCBpbmRleCB9KSkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgdG9nZ2xlUm93V2l0aFJhZGlvKGV2ZW50OiBhbnksIHJvd0RhdGE6IGFueSkge1xuICAgICAgICB0aGlzLnByZXZlbnRTZWxlY3Rpb25TZXR0ZXJQcm9wYWdhdGlvbiA9IHRydWU7XG5cbiAgICAgICAgaWYgKHRoaXMuc2VsZWN0aW9uICE9IHJvd0RhdGEpIHtcbiAgICAgICAgICAgIGlmICgh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ICAgICAgIHRoaXMub25MYXp5TG9hZC5lbWl0KHRoaXMuY3JlYXRlTGF6eUxvYWRNZXRhZGF0YSgpKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmICghdGhpcy52YWx1ZSkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCF0aGlzLmhhc0ZpbHRlcigpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5maWx0ZXJlZFZhbHVlID0gbnVsbDtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5wYWdpbmF0b3IpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy50b3RhbFJlY29yZHMgPSB0aGlzLnZhbHVlID8gdGhpcy52YWx1ZS5sZW5ndGggOiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbGV0IGdsb2JhbEZpbHRlckZpZWxkc0FycmF5O1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmZpbHRlcnNbJ2dsb2JhbCddKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jb2x1bW5zICYmICF0aGlzLmdsb2JhbEZpbHRlckZpZWxkcykgdGhyb3cgbmV3IEVycm9yKCdHbG9iYWwgZmlsdGVyaW5nIHJlcXVpcmVzIGR5bmFtaWMgY29sdW1ucyBvciBnbG9iYWxGaWx0ZXJGaWVsZHMgdG8gYmUgZGVmaW5lZC4nKTtcbiAgICAgICAgICAgICAgICAgICAgZWxzZSBnbG9iYWxGaWx0ZXJGaWVsZHNBcnJheSA9IHRoaXMuZ2xvYmFsRmlsdGVyRmllbGRzIHx8IHRoaXMuY29sdW1ucztcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLmZpbHRlcmVkVmFsdWUgPSBbXTtcblxuICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdGhpcy52YWx1ZS5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbG9jYWxNYXRjaCA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGxldCBnbG9iYWxNYXRjaCA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICBsZXQgbG9jYWxGaWx0ZXJlZCA9IGZhbHNlO1xuXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IHByb3AgaW4gdGhpcy5maWx0ZXJzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5maWx0ZXJzLmhhc093blByb3BlcnR5KHByb3ApICYmIHByb3AgIT09ICdnbG9iYWwnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jYWxGaWx0ZXJlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGZpbHRlckZpZWxkID0gcHJvcDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZmlsdGVyTWV0YSA9IHRoaXMuZmlsdGVyc1tmaWx0ZXJGaWVsZF07XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShmaWx0ZXJNZXRhKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBtZXRhIG9mIGZpbHRlck1ldGEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsTWF0Y2ggPSB0aGlzLmV4ZWN1dGVMb2NhbEZpbHRlcihmaWx0ZXJGaWVsZCwgdGhpcy52YWx1ZVtpXSwgbWV0YSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgobWV0YS5vcGVyYXRvciA9PT0gRmlsdGVyT3BlcmF0b3IuT1IgJiYgbG9jYWxNYXRjaCkgfHwgKG1ldGEub3BlcmF0b3IgPT09IEZpbHRlck9wZXJhdG9yLkFORCAmJiAhbG9jYWxNYXRjaCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsTWF0Y2ggPSB0aGlzLmV4ZWN1dGVMb2NhbEZpbHRlcihmaWx0ZXJGaWVsZCwgdGhpcy52YWx1ZVtpXSwgPGFueT5maWx0ZXJNZXRhKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWxvY2FsTWF0Y2gpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuZmlsdGVyc1snZ2xvYmFsJ10gJiYgIWdsb2JhbE1hdGNoICYmIGdsb2JhbEZpbHRlckZpZWxkc0FycmF5KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gMDsgaiA8IGdsb2JhbEZpbHRlckZpZWxkc0FycmF5Lmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGdsb2JhbEZpbHRlckZpZWxkID0gZ2xvYmFsRmlsdGVyRmllbGRzQXJyYXlbal0uZmllbGQgfHwgZ2xvYmFsRmlsdGVyRmllbGRzQXJyYXlbal07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2xvYmFsTWF0Y2ggPSAoPGFueT50aGlzLmZpbHRlclNlcnZpY2UpLmZpbHRlcnNbKDxhbnk+dGhpcy5maWx0ZXJzWydnbG9iYWwnXSkubWF0Y2hNb2RlXShPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHRoaXMudmFsdWVbaV0sIGdsb2JhbEZpbHRlckZpZWxkKSwgKDxGaWx0ZXJNZXRhZGF0YT50aGlzLmZpbHRlcnNbJ2dsb2JhbCddKS52YWx1ZSwgdGhpcy5maWx0ZXJMb2NhbGUpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGdsb2JhbE1hdGNoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGxldCBtYXRjaGVzOiBib29sZWFuO1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5maWx0ZXJzWydnbG9iYWwnXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWF0Y2hlcyA9IGxvY2FsRmlsdGVyZWQgPyBsb2NhbEZpbHRlcmVkICYmIGxvY2FsTWF0Y2ggJiYgZ2xvYmFsTWF0Y2ggOiBnbG9iYWxNYXRjaDtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hdGNoZXMgPSBsb2NhbEZpbHRlcmVkICYmIGxvY2FsTWF0Y2g7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBpZiAobWF0Y2hlcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5maWx0ZXJlZFZhbHVlLnB1c2godGhpcy52YWx1ZVtpXSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5maWx0ZXJlZFZhbHVlLmxlbmd0aCA9PT0gdGhpcy52YWx1ZS5sZW5ndGgpIHtcbiA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nRhYmxlQ29sdW1uc1xuICAgICAgICAgICAgICAgICAgICAubWFwKChjb2x1bW4pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBjZWxsRGF0YSA9IE9iamVjdFV0aWxzLnJlc29sdmVGaWVsZERhdGEocmVjb3JkLCBjb2x1bW4uZmllbGQpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2VsbERhdGEgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmV4cG9ydEZ1bmN0aW9uKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNlbGxEYXRhID0gdGhpcy5leHBvcnRGdW5jdGlvbih7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBjZWxsRGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkOiBjb2x1bW4uZmllbGRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGNlbGxEYXRhID0gU3RyaW5nKGNlbGxEYXRhKS5yZXBsYWNlKC9cIi9nLCAnXCJcIicpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGNlbGxEYXRhID0gJyc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnXCInICsgY2VsbERhdGEgKyAnXCInO1xuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAuam9pbih0aGlzLmNzdlNlcGFyYXRvcilcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5qb2luKCdcXG4nKTtcblxuICAgICAgICBpZiAoYm9keS5sZW5ndGgpIHtcbiAgICAgICAgICAgIGNzdiArPSAnXFxuJyArIGJvZHk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgYmxvYiA9IG5ldyBCbG9iKFtuZXcgVWludDhBcnJheShb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dmVybGF5U3Vic2NyaXB0aW9uKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm92ZXJsYXlTdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMuc2VsZkNsaWNrID0gZmFsc2U7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHVuYmluZERvY3VtZW50RWRpdExpc3RlbmVyKCkge1xuICAgICAgICBpZiAodGhpcy5kb2N1bWVudEVkaXRMaXN0ZW5lcikge1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudEVkaXRMaXN0ZW5lcigpO1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudEVkaXRMaXN0ZW5lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpbml0Um93RWRpdChyb3dEYXRhOiBhbnkpIHtcbiAgICAgICAgbGV0IGRhdGFLZXlWYWx1ZSA9IFN0cmluZyhPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHJvd0RhdGEsIHRoaXMuZGF0YUtleSkpO1xuICAgICAgICB0aGlzLmVkaXRpbmdSb3dLZXlzW2RhdGFLZXlWYWx1ZV0gPSB0cnVlO1xuICAgIH1cblxuICAgIHNhdmVSb3dFZGl0KHJvd0RhdGE6IGFueSwgcm93RWxlbWVudDogSFRNTFRhYmxlUm93RWxlbWVudCkge1xuICAgICAgICBpZiAoRG9tSGFuZGxlci5maW5kKHJvd0VsZW1lbnQsICcubmctaW52YWxpZC5uZy1kaXJ0eScpLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgbGV0IGRhdGFLZXlWYWx1ZSA9IFN0cmluZyhPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHJvd0RhdGEsIHRoaXMuZGF0YUtleSkpO1xuICAgICAgICAgICAgZGVsZXRlIHRoaXMuZWRpdGluZ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OiByb3dEYXRhXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnJvd0V4cGFuZE1vZGUgPT09ICdzaW5nbGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBhbmRlZFJvd0tleXMgPSB7fTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5leHBhbmRlZFJvd0tleXNbZGF0YUtleVZhbHVlXSA9IHRydWU7XG4gICAgICAgICAgICB0aGlzLm9uUm93RXhwYW5kLmVtaXQoe1xuICAgICAgICAgICAgICAgIG9yaWdpbmFsRXZlbnQ6IDxFdmVudD5ldmVudCxcbiAgICAgICAgICAgICAgICBkYXRhOiByb3dEYXRhXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChldmVudCkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLmlzU3RhdGVmdWwoKSkge1xuICAgICAgICAgICAgdGhpcy5zYXZlU3RhdGUoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGlzUm93RXhwYW5kZWQocm93RGF0YTogYW55KTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmdyb3VwUm93c0J5ID8gdGhpcy5leHBhbmRlZFJvd0tleXNbU3RyaW5nKE9iamVjdFV0aWxzLnJlc29sdmVGaWVsZERhdGEocm93RGF0YSwgdGhpcy5ncm91cFJvd3NCeSkpXSA9PT0gdHJ1ZSA6IHRoaXMuZXhwYW5kZWRSb3dLZXlzW1N0cmluZyhPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHJvd0RhdGEsIHRoaXMuZGF0YUtleSkpXSA9PT0gdHJ1ZTtcbiAgICB9XG5cbiAgICBpc1Jvd0VkaXRpbmcocm93RGF0YTogYW55KTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aG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ZHRoIC0gZGVsdGE7XG5cbiAgICAgICAgICAgICAgICBpZiAobmV3Q29sdW1uV2lkdGggPiAxNSAmJiBuZXh0Q29sdW1uV2lkdGggPiAxNSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlc2l6ZVRhYmxlQ2VsbHMobmV3Q29sdW1uV2lkdGgsIG5leHRDb2x1bW5XaWR0aCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbHVtblJlc2l6ZU1vZGUgPT09ICdleHBhbmQnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5faW5pdGlhbENvbFdpZHRocyA9IHRoaXMuX3RvdGFsVGFibGVXaWR0aCgpO1xuICAgICAgICAgICAgICAgIGxldCB0YWJsZVdpZHRoID0gdGhpcy50YWJsZVZpZXdDaGlsZD8ubmF0aXZlRWxlbWVudC5vZmZzZXRXaWR0aCArIGRlbHRhO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5zZXRSZXNpemVUYWJsZVdpZHRoKHRhYmxlV2lkdGggKyAncHgnKTtcbiAgICAgICAgICAgICAgICB0aGlzLnJlc2l6ZVRhYmxlQ2VsbHMobmV3Q29sdW1uV2lkdGgsIG51bGwpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLm9uQ29sUmVzaXplLmVtaXQoe1xuICAgICAgICAgICAgICAgIGVsZW1lbnQ6IHRoaXMucmVzaXplQ29sdW1uRWxlbWVudCxcbiAgICAgICAgICAgICAgICBkZWx0YTogZGVsdGFcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5pc1N0YXRlZnVsKCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNhdmVTdGF0ZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgKDxFbGVtZW50UmVmPnRoaXMucmVzaXplSGVscGVyVmlld0NoaWxkKS5uYXRpdmVFbGVtZW50LnN0eWxlL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b3BJbmRleCArIDE7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChhbGxvd0Ryb3AgJiYgZHJvcEluZGV4ID4gZHJhZ0luZGV4ICYmIHRoaXMuZHJvcFBvc2l0aW9uID09PSAtMSkge1xuICAgICAgICAgICAgICAgIGRyb3BJbmRleCA9IGRyb3BJbmRleCAtIDE7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChhbGxvd0Ryb3ApIHtcbiAgICAgICAgICAgICAgICBPYmplY3RVdGlscy5yZW9yZGVyQXJyYXkoPGFueVtdPnRoaXMuY29sdW1ucywgZHJhZ0luZGV4LCBkcm9wSW5kZXgpO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5vbkNvbFJlb3JkZXIuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgIGRyYWdJbmRleDogZHJhZ0luZGV4LFxuICAgICAgICAgICAgICAgICAgICBkcm9wSW5kZXg6IGRyb3BJbmRleCxcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uczogdGhpcy5jb2x1bW5zXG4gICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc1N0YXRlZnVsKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy56b25lLnJ1bk91dHNpZGVBbmd1bGFyKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2F2ZVN0YXRlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAodGhpcy5yZXNpemFibGVDb2x1bW5zICYmIHRoaXMucmVzaXplQ29sdW1uRWxlbWVudCkge1xuICAgICAgICAgICAgICAgIGxldCB3aWR0aCA9IHRoaXMuY29sdW1uU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bFNjcm9sbCkge1xuICAgICAgICAgICAgICAgIC8vIFRPRE86IENoZWNrXG4gICAgICAgICAgICAgICAgdGhpcy5fdmFsdWUgPSBbLi4udGhpcy5fdmFsdWVdO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLm9uUm93UmVvcmRlci5lbWl0KHtcbiAgICAgICAgICAgICAgICBkcmFnSW5kZXg6IDxudW1iZXI+dGhpcy5kcmFnZ2VkUm93SW5kZXgsXG4gICAgICAgICAgICAgICAgZHJvcEluZGV4OiBkcm9wSW5kZXhcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIC8vY2xlYW51cFxuICAgICAgICB0aGlzLm9uUm93RHJhZ0xlYXZlKGV2ZW50LCByb3dFbGVtZW50KTtcbiAgICAgICAgdGhpcy5vblJvd0RyYWdFbmQoZXZlbnQpO1xuICAgIH1cblxuICAgIGlzRW1wdHkoKSB7XG4gICAgICAgIGxldCBkYXRhID0gdGhpcy5maWx0ZXJlZFZhbHVlIHx8IHRoaXMudmFsdWU7XG4gICAgICAgIHJldHVybiBkYXRhID09IG51bGwgfHwgZGF0YS5sZW5ndGggPT0gMDtcbiAgICB9XG5cbiAgICBnZXRCbG9ja2FibGVFbGVtZW50KCk6IEhUTUxFbGVtZW50IHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZWwubmF0aXZlRWxlbWVudC5jaGlsZHJlblswXTtcbiAgICB9XG5cbiAgICBnZXRTdG9yYWdlKCkge1xuICAgICAgICBpZiAoaXNQbGF0Zm9ybUJyb3dzZXIodGhpcy5wbGF0Zm9ybUlkKSkge1xuICAgICAgICAgICAgc3dpdGNoICh0aGlzLnN0YXRlU3RvcmFnZSkge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2xvY2FsJzpcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdpbmRvdy5sb2NhbFN0b3JhZ2U7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdzZXNzaW9uJzpcbiAgICAg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zID0gc3RhdGUucm93cztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yb3dzQ2hhbmdlLmVtaXQodGhpcy5yb3dzKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChzdGF0ZS5zb3J0RmllbGQpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlc3RvcmluZ1NvcnQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHRoaXMuX3NvcnRGaWVsZCA9IHN0YXRlLnNvcnRGaWVsZDtcbiAgICAgICAgICAgICAgICB0aGlzLl9zb3J0T3JkZXIgPSA8bnVtYmVyPnN0YXRlLnNvcnRPcmRlcjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHN0YXRlLm11bHRpU29ydE1ldGEpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlc3RvcmluZ1NvcnQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHRoaXMuX211bHRpU29ydE1ldGEgPSBzdGF0ZS5tdWx0aVNvcnRNZXRhO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoc3RhdGUuZmlsdGVycykge1xuICAgICAgICAgICAgICAgIHRoaXMucmVzdG9yaW5nRmlsdGVyID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB0aGlzLmZpbHRlcnMgPSBzdGF0ZS5maWx0ZXJzO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAodGhpcy5yZXNpemFibGVDb2x1bW5zKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2x1bW5XaWR0aHNTdGF0ZSA9IHN0YXRlLmNvbHVtbldpZHRocztcbiAgICAgICAgICAgICAgICB0aGlzLnRhYmxlV2lkdGhTdGF0ZSA9IHN0YXRlLnRhYmxlV2lkdGg7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIGlmICh0aGlzLnJlb3JkZXJhYmxlQ29sdW1ucykge1xuICAgICAgIC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7IG1heC13aWR0aDogJHt3aWR0aH1weCAhaW1wb3J0YW50YDtcblxuICAgICAgICAgICAgICAgICAgICBpbm5lckhUTUwgKz0gYFxuICAgICAgICAgICAgICAgICAgICAgICAgIyR7dGhpcy5pZH0tdGFibGUgPiAucC1kYXRhdGFibGUtdGhlYWQgPiB0ciA+IHRoOm50aC1jaGlsZCgke2luZGV4ICsgMX0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgIyR7dGhpcy5pZH0tdGFibGUgPiAucC1kYXRhdGFibGUtdGJvZHkgPiB0ciA+IHRkOm50aC1jaGlsZCgke2luZGV4ICsgMX0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgIyR7dGhpcy5pZH0tdGFibGUgPiAucC1kYXRhdGFibGUtdGZvb3QgPiB0ciA+IHRkOm50aC1jaGlsZCgke2luZGV4ICsgMX0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAke3N0eWxlfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBgO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5zdHlsZUVsZW1lbnQuaW5uZXJIVE1MID0gaW5uZXJIVE1MO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgc2F2ZUNvbHVtbk9yZGVyKHN0YXRlOiBhbnkpIHtcbiAgICAgICAgaWYgKHRoaXMuY29sdW1ucykge1xuICAgICAgICAgICAgbGV0IGNvbHVtbk9yZGVyOiBzdHJpbmdbXSA9IFtdO1xuICAgICAgICAgICAgdGhpcy5jb2x1bW5zLm1hcCgoY29sdW1uKSA9PiB7XG4gICAgICAgICAgICAgICAgY29sdW1uT3JkZXIucHVzaChjb2x1bW4uZmllbGQgfHwgY29sdW1uLmtleSk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgc3RhdGUuY29sdW1uT3JkZXIgPSBjb2x1bW5PcmRlcjtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlc3RvcmVDb2x1bW5PcmRlcigpIHtcbiAgICAgICAgY29uc3Qgc3RvcmFnZSA9IHRoaXMuZ2V0U3RvcmFnZSgpO1xuICAgICAgICBjb25zdCBzdGF0ZVN0cmluZyA9IHN0b3JhZ2UuZ2V0SXRlbSg8c3RyaW5nPnRoaXMuc3RhdGVLZXkpO1xuICAgICAgICBpZiAoc3RhdGVTdHJpbmcpIHtcbiAgICAgICAgICAgIGxldCBzdGF0ZTogVGFibGVTdGF0ZSA9IEpTT04ucGFyc2Uoc3RhdGVTdHJpbmcpO1xuICAgICAgICAgICAgbGV0IGNvbHVtbk9yZGVyID0gc3RhdGUuY29sdW1uT3JkZXI7XG5cbiAgICAgICAgICAgIGlmIChjb2x1bW5PcmRlcikge1xuICAgICAgICAgICAgICAgIGxldCByZW9yZGVyZWRDb2x1bW5zOiBhbnlbXSA9IFtdO1xuXG4gICAgICAgICAgICAgICAgY29sdW1uT3JkZXIubWFwKChrZXkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNvbCA9IHRoaXMuZmluZENvbHVtbkJ5S2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChjb2wpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlb3JkZXJlZENvbHVtbnMucHVzaChjb2wpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2x1bW5PcmRlclN0YXRlUmVzdG9yZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHRoaXMuY29sdW1ucyA9IHJlb3JkZXJlZENvbHVtbnM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBmaW5kQ29sdW1uQnlLZXkoa2V5OiBhbnkpIHtcbiAgICAgICAgaWYgKHRoaXMuY29sdW1ucykge1xuICAgICAgICAgICAgZm9yIChsZXQgY29sIG9mIHRoaXMuY29sdW1ucykge1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sZXQ9XCJkdC5ncm91cEhlYWRlclRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IGdldFJvd0luZGV4KHJvd0luZGV4KSwgY29sdW1uczogY29sdW1ucywgZWRpdGluZzogZHQuZWRpdE1vZGUgPT09ICdyb3cnICYmIGR0LmlzUm93RWRpdGluZyhyb3dEYXRhKSwgZnJvemVuOiBmcm96ZW4gfVwiXG4gICAgICAgICAgICAgICAgICAgID48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZHQucm93R3JvdXBNb2RlICE9PSAncm93c3BhbidcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJyb3dEYXRhID8gdGVtcGxhdGUgOiBkdC5sb2FkaW5nQm9keVRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IGdldFJvd0luZGV4KHJvd0luZGV4KSwgY29sdW1uczogY29sdW1ucywgZWRpdGluZzogZHQuZWRpdE1vZGUgPT09ICdyb3cnICYmIGR0LmlzUm93RWRpdGluZyhyb3dEYXRhKSwgZnJvemVuOiBmcm96ZW4gfVwiXG4gICAgICAgICAgICAgICAgICAgID48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZHQucm93R3JvdXBNb2RlID09PSAncm93c3BhbidcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3dEYXRhID8gdGVtcGxhdGUgOiBkdC5sb2FkaW5nQm9keVRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQ6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJGltcGxpY2l0OiByb3dEYXRhLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3dJbmRleDogZ2V0Um93SW5kZXgocm93SW5kZXgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5zOiBjb2x1bW5zLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nOiBkdC5lZGl0TW9kZSA9PT0gJ3JvdycgJiYgZHQuaXNSb3dFZGl0aW5nKHJvd0RhdGEpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmcm96ZW46IGZyb3plbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93Z3JvdXA6IHNob3VsZFJlbmRlclJvd3NwYW4odmFsdWUsIHJvd0RhdGEsIHJvd0luZGV4KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93c3BhbjogY2FsY3VsYXRlUm93R3JvdXBTaXplKHZhbHVlLCByb3dEYXRhLCByb3dJbmRleClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICA+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImR0Lmdyb3VwRm9vdGVyVGVtcGxhdGUgJiYgIWR0LnZpcnR1YWxTY3JvbGwgJiYgZHQucm93R3JvdXBNb2RlID09PSAnc3ViaGVhZGVyJyAmJiBzaG91bGRSZW5kZXJSb3dHcm91cEZvb3Rlcih2YWx1ZSwgcm93RGF0YSwgcm93SW5kZXgpXCIgcm9sZT1cInJvd1wiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAqbmdUZW1wbGF0ZU91dGxldD1cImR0Lmdyb3VwRm9vdGVyVGVtcGxhdGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3dEYXRhLCByb3dJbmRleDogZ2V0Um93SW5kZXgocm93SW5kZXgpLCBjb2x1bW5zOiBjb2x1bW5zLCBlZGl0aW5nOiBkdC5lZGl0TW9kZSA9PT0gJ3JvdycgJiYgZHQuaXNSb3dFZGl0aW5nKHJvd0RhdGEpLCBmcm96ZW46IGZyb3plbiB9XCJcbiAgICAgICAgICAgICAgICAgICAgPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJkdC5leHBhbmRlZFJvd1RlbXBsYXRlICYmICEoZnJvemVuICYmIGR0LmZyb3plbkV4cGFuZGVkUm93VGVtcGxhdGUpXCI+XG4gICAgICAgICAgICA8bmctdGVtcGxhdGUgbmdGb3IgbGV0LXJvd0RhdGEgbGV0LXJvd0luZGV4PVwiaW5kZXhcIiBbbmdGb3JPZl09XCJ2YWx1ZVwiIFtuZ0ZvclRyYWNrQnldPVwiZHQucm93VHJhY2tCeVwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhZHQuZ3JvdXBIZWFkZXJUZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAqbmdUZW1wbGF0ZU91dGxldD1cInRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IGdldFJvd0luZGV4KHJvd0luZGV4KSwgY29sdW1uczogY29sdW1ucywgZXhwYW5kZWQ6IGR0LmlzUm93RXhwYW5kZWQocm93RGF0YSksIGVkaXRpbmc6IGR0LmVkaXRNb2RlID09PSAncm93JyAmJiBkdC5pc1Jvd0VkaXRpbmcocm93RGF0YSksIGZyb3plbjogZnJvemVuIH1cIlxuICAgICAgICAgICAgICAgICAgICA+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImR0Lmdyb3VwSGVhZGVyVGVtcGxhdGUgJiYgZHQucm93R3JvdXBNb2RlID09PSAnc3ViaGVhZGVyJyAmJiBzaG91bGRSZW5kZXJSb3dHcm91cEhlYWRlcih2YWx1ZSwgcm93RGF0YSwgZ2V0Um93SW5kZXgocm93SW5kZXgpKVwiIHJvbGU9XCJyb3dcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkdC5ncm91cEhlYWRlclRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3dEYXRhLCByb3dJbmRleDogZ2V0Um93SW5kZXgocm93SW5kZXgpLCBjb2x1bW5zOiBjb2x1bW5zLCBleHBhbmRlZDogZHQuaXNSb3dFeHBhbmRlZChyb3dEYXRhKSwgZWRpdGluZzogZHQuZWRpdE1vZGUgPT09ICdyb3cnICYmIGR0LmlzUm93RWRpdGluZyhyb3dEYXRhKSwgZnJvemVuOiBmcm96ZW4gfVxuICAgICAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJkdC5pc1Jvd0V4cGFuZGVkKHJvd0RhdGEpXCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJkdC5leHBhbmRlZFJvd1RlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IGdldFJvd0luZGV4KHJvd0luZGV4KSwgY29sdW1uczogY29sdW1ucywgZnJvemVuOiBmcm96ZW4gfVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZHQuZ3JvdXBGb290ZXJUZW1wbGF0ZSAmJiBkdC5yb3dHcm91cE1vZGUgPT09ICdzdWJoZWFkZXInICYmIHNob3VsZFJlbmRlclJvd0dyb3VwRm9vdGVyKHZhbHVlLCByb3dEYXRhLCBnZXRSb3dJbmRleChyb3dJbmRleCkpXCIgcm9sZT1cInJvd1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGR0Lmdyb3VwRm9vdGVyVGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3dEYXRhLCByb3dJbmRleDogZ2V0Um93SW5kZXgocm93SW5kZXgpLCBjb2x1bW5zOiBjb2x1bW5zLCBleHBhbmRlZDogZHQuaXNSb3dFeHBhbmRlZChyb3dEYXRhKSwgZWRpdGluZzogZHQuZWRpdE1vZGUgPT09ICdyb3cnICYmIGR0LmlzUm93RWRpdGluZyhyb3dEYXRhKSwgZnJvemVuOiBmcm96ZW4gfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgICAgICAgICA+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJkdC5mcm96ZW5FeHBhbmRlZFJvd1RlbXBsYXRlICYmIGZyb3plblwiPlxuICAgICAgICAgICAgPG5nLXRlbXBsYXRlIG5nRm9yIGxldC1yb3dEYXRhIGxldC1yb3dJbmRleD1cImluZGV4XCIgW25nRm9yT2ZdPVwidmFsdWVcIiBbbmdGb3JUcmFja0J5XT1cImR0LnJvd1RyYWNrQnlcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwidGVtcGxhdGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3dEYXRhLCByb3dJbmRleDogZ2V0Um93SW5kZXgocm93SW5kZXgpLCBjb2x1bW5zOiBjb2x1bW5zLCBleHBhbmRlZDogZHQuaXNSb3dFeHBhbmRlZChyb3dEYXRhKSwgZWRpdGluZzogZHQuZWRpdE1vZGUgPT09ICdyb3cnICYmIGR0LmlzUm93RWRpdGluZyhyb3dEYXRhKSwgZnJvemVuOiBmcm96ZW4gfVwiXG4gICAgICAgICAgICAgICAgPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJkdC5pc1Jvd0V4cGFuZGVkKHJvd0RhdGEpXCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJkdC5mcm96ZW5FeHBhbmRlZFJvd1RlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogcm93RGF0YSwgcm93SW5kZXg6IGdldFJ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3NCeSk7XG4gICAgICAgIGxldCBwcmV2Um93RGF0YSA9IHZhbHVlW2kgLSAxXTtcbiAgICAgICAgaWYgKHByZXZSb3dEYXRhKSB7XG4gICAgICAgICAgICBsZXQgcHJldmlvdXNSb3dGaWVsZERhdGEgPSBPYmplY3RVdGlscy5yZXNvbHZlRmllbGREYXRhKHByZXZSb3dEYXRhLCB0aGlzLmR0Lmdyb3VwUm93c0J5KTtcbiAgICAgICAgICAgIHJldHVybiBjdXJyZW50Um93RmllbGREYXRhICE9PSBwcmV2aW91c1Jvd0ZpZWxkRGF0YTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgY2FsY3VsYXRlUm93R3JvdXBTaXplKHZhbHVlOiBhbnksIHJvd0RhdGE6IGFueSwgaW5kZXg6IG51bWJlcikge1xuICAgICAgICBsZXQgY3VycmVudFJvd0ZpZWxkRGF0YSA9IE9iamVjdFV0aWxzLnJlc29sdmVGaWVsZERhdGEocm93RGF0YSwgdGhpcy5kdC5ncm91cFJvd3NCeSk7XG4gICAgICAgIGxldCBuZXh0Um93RmllbGREYXRhID0gY3VycmVudFJvd0ZpZWxkRGF0YTtcbiAgICAgICAgbGV0IGdyb3VwUm93U3BhbiA9IDA7XG5cbiAgICAgICAgd2hpbGUgKGN1cnJlbnRSb3dGaWVsZERhdGEgPT09IG5leHRSb3dGaWVsZERhdGEpIHtcbiAgICAgICAgICAgIGdyb3VwUm93U3BhbisrO1xuICAgICAgICAgICAgbGV0IG5leHRSb3dEYXRhID0gdmFsdWVbKytpbmRleF07XG4gICAgICAgICAgICBpZiAobmV4dFJvd0RhdGEpIHtcbiAgICAgICAgICAgICAgICBuZXh0Um93RmllbGREYXRhID0gT2JqZWN0VXRpbHMucmVzb2x2ZUZpZWxkRGF0YShuZXh0Um93RGF0YSwgdGhpcy5kdC5ncm91cFJvd3NCeSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGdyb3VwUm93U3BhbiA9PT0gMSA/IG51bGwgOiBncm91cFJvd1NwYW47XG4gICAgfVxuXG4gICAgbmdPbkRlc3Ryb3koKSB7XG4gICAgICAgIGlmICh0aGlzLnN1YnNjcmlwdGlvbikge1xuICAgICAgICAgICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHVwZGF0ZUZyb3plblJvd1N0aWNreVBvc2l0aW9uKCkge1xuICAgICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuc3R5bGUudG9wID0gRG9tSGFuZGxlci5nZXRPdXRlckhlaWdodCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucHJldmlvdXNFbGVtZW50U2libGluZykgKyAncHgnO1xuICAgIH1cblxuICAgIHVwZGF0ZUZyb3plblJvd0dyb3VwSGVhZGVyU3RpY2t5UG9zaXRpb24oKSB7XG4gICAgICAgIGlmICh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucHJldmlvdXNFbGVtZW50U2libGluZykge1xuICAgICAgICAgICAgbGV0IHRhYmxlSGVhZGVySGVpZ2h0ID0gRG9tSGFuZGxlci5nZXRPdXRlckhlaWdodCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucHJldmlvdXNFbGVtZW50U2libGluZyk7XG4gICAgICAgICAgICB0aGlzLmR0LnJvd0dyb3VwSGVhZGVyU3R5bGVPYmplY3QudG9wID0gdGFibGVIZWFkZXJIZWlnaHQgKyAncHgnO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0U2Nyb2xsZXJPcHRpb24ob3B0aW9uOiBhbnksIG9wdGlvbnM/OiBhbnkpIHtcbiAgICAgICAgaWYgKHRoaXMuZHQudmlydHVhbFNjcm9sbCkge1xuICAgICAgICAgICAgb3B0aW9ucyA9I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UhhbmRsZXIuc2libGluZ3ModGhpcy5lbC5uYXRpdmVFbGVtZW50KTtcbiAgICAgICAgY29uc3QgaW5kZXggPSBEb21IYW5kbGVyLmluZGV4KHRoaXMuZWwubmF0aXZlRWxlbWVudCk7XG4gICAgICAgIGNvbnN0IHRpbWUgPSAoc2libGluZ3MubGVuZ3RoIC0gaW5kZXggKyAxKSAqIDUwO1xuXG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy51cGRhdGVTdGlja3lQb3NpdGlvbigpO1xuICAgICAgICB9LCB0aW1lKTtcbiAgICB9XG5cbiAgICBfZnJvemVuOiBib29sZWFuID0gdHJ1ZTtcblxuICAgIHVwZGF0ZVN0aWNreVBvc2l0aW9uKCkge1xuICAgICAgICBpZiAodGhpcy5fZnJvemVuKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5hbGlnbkZyb3plbiA9PT0gJ3JpZ2h0Jykge1xuICAgICAgICAgICAgICAgIGxldCByaWdodCA9IDA7XG4gICAgICAgICAgICAgICAgbGV0IG5leHQgPSB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQubmV4dEVsZW1lbnRTaWJsaW5nO1xuICAgICAgICAgICAgICAgIGlmIChuZXh0KSB7XG4gICAgICAgICAgICAgICAgICAgIHJpZ2h0ID0gRG9tSGFuZGxlci5nZXRPdXRlcldpZHRoKG5leHQpICsgKHBhcnNlRmxvYXQobmV4dC5zdHlsZS5yaWdodCkgfHwgMCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5yaWdodCA9IHJpZ2h0ICsgJ3B4JztcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbGV0IGxlZnQgPSAwO1xuICAgICAgICAgICAgICAgIGxldCBwcmV2ID0gdGhpcy5lbC5uYXRpdmVFbGVtZW50LnByZXZpb3VzRWxlbWVudFNpYmxpbmc7XG4gICAgICAgICAgICAgICAgaWYgKHByZXYpIHtcbiAgICAgICAgICAgICAgICAgICAgbGVmdCA9IERvbUhhbmRsZXIuZ2V0T3V0ZXJXaWR0aChwcmV2KSArIChwYXJzZUZsb2F0KHByZXYuc3R5bGUubGVmdCkgfHwgMCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5sZWZ0ID0gbGVmdCArICdweCc7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IGZpbHRlclJvdyA9IHRoaXMuZWwubmF0aXZlRWxlbWVudD8ucGFyZW50RWxlbWVudD8ubmV4dEVsZW1lbnRTaWJsaW5nO1xuXG4gICAgICAgICAgICBpZiAoZmlsdGVyUm93KSB7XG4gICAgICAgICAgICAgICAgbGV0IGluZGV4ID0gRG9tSGFuZGxlci5pbmRleCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQpO1xuICAgICAgICAgICAgICAgIGlmIChmaWx0ZXJSb3cuY2hpbGRyZW4gJiYgZmlsdGVyUm93LmNoaWxkcmVuW2luZGV4XSkge1xuICAgICAgICAgICAgICAgICAgICBmaWx0ZXJSb3cuY2hpbGRyZW5baW5kZXhdLnN0eWxlLmxlZnQgPSB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuc3R5bGUubGVmdDtcbiAgICAgICAgICAgICAgICAgICAgZmlsdGVyUm93LmNoaWxkcmVuW2luZGV4XS5zdHlsZS5yaWdodCA9IHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5yaWdodDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5ARGlyZWN0aXZlKHtcbiAgICBzZWxlY3RvcjogJ1twU29ydGFibGVDb2x1bW5dJyxcbiAgICBob3N0OiB7XG4gICAgICAgIGNsYXNzOiAncC1lbGVtZW50JyxcbiAgICAgICAgJ1tjbGFzcy5wLXNvc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aygpO1xuICAgIH1cblxuICAgIGdldE11bHRpU29ydE1ldGFJbmRleCgpIHtcbiAgICAgICAgbGV0IG11bHRpU29ydE1ldGEgPSB0aGlzLmR0Ll9tdWx0aVNvcnRNZXRhO1xuICAgICAgICBsZXQgaW5kZXggPSAtMTtcblxuICAgICAgICBpZiAobXVsdGlTb3J0TWV0YSAmJiB0aGlzLmR0LnNvcnRNb2RlID09PSAnbXVsdGlwbGUnICYmIHRoaXMuZHQuc2hvd0luaXRpYWxTb3J0QmFkZ2UgJiYgbXVsdGlTb3J0TWV0YS5sZW5ndGggPiAxKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IG11bHRpU29ydE1ldGEubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBsZXQgbWV0YSA9IG11bHRpU29ydE1ldGFbaV07XG4gICAgICAgICAgICAgICAgaWYgKG1ldGEuZmllbGQgPT09IHRoaXMuZmllbGQgfHwgbWV0YS5maWVsZCA9PT0gdGhpcy5maWVsZCkge1xuICAgICAgICAgICAgICAgICAgICBpbmRleCA9IGk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBpbmRleDtcbiAgICB9XG5cbiAgICBnZXRCYWRnZVZhbHVlKCkge1xuICAgICAgICBsZXQgaW5kZXggPSB0aGlzLmdldE11bHRpU29ydE1ldGFJbmRleCgpO1xuXG4gICAgICAgIHJldHVybiB0aGlzLmR0Lmdyb3VwUm93c0J5ICYmIGluZGV4ID4gLTEgPyBpbmRleCA6IGluZGV4ICsgMTtcbiAgICB9XG5cbiAgICBpc011bHRpU29ydGVkKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5kdC5zb3J0TW9kZSA9PT0gJ211bHRpcGxlJyAmJiB0aGlzLmdldE11bHRpU29ydE1ldGFJbmRleCgpID4gLTE7XG4gICAgfVxuXG4gICAgb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ZlbnQ6IGV2ZW50LFxuICAgICAgICAgICAgICAgIHJvd0RhdGE6IHRoaXMuZGF0YSxcbiAgICAgICAgICAgICAgICByb3dJbmRleDogdGhpcy5pbmRleFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBASG9zdExpc3RlbmVyKCd0b3VjaGVuZCcsIFsnJGV2ZW50J10pXG4gICAgb25Ub3VjaEVuZChldmVudDogRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuaXNFbmFibGVkKCkpIHtcbiAgICAgICAgICAgIHRoaXMuZHQuaGFuZGxlUm93VG91Y2hFbmQoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bicsIFsnJGV2ZW50J10pXG4gICAgb25LZXlEb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIHN3aXRjaCAoZXZlbnQuY29kZSkge1xuICAgICAgICAgICAgY2FzZSAnQXJyb3dEb3duJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uQXJyb3dEb3duS2V5KGV2ZW50KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnQXJyb3dVcCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbkFycm93VXBLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdIb21lJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uSG9tZUtleShldmVudCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ0VuZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbkVuZEtleShldmVudCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ1NwYWNlJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uU3BhY2VLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdFbnRlcic6XG4gICAgICAgICAgICAgICAgdGhpcy5vbkVudGVyS2V5KGV2ZW50KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICBpZiAoZXZlbnQuY29kZSA9PT0gJ0tleUEnICYmIChldmVudC5tZXRhS2V5IHx8IGV2ZW50LmN0cmxLZXkpICYmIHRoaXMuZHQuc2VsZWN0aW9uTW9kZSA9PT0gJ211bHRpcGxlJykge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkYXRhID0gdGhpcy5kdC5kYXRhVG9SZW5kZXIodGhpcy5kdC5wcm9jZXNzZWREYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kdC5zZWxlY3Rpb24gPSBbLi4uZGF0YV07XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZHQuc2VsZWN0UmFuZ2UoZXZlbnQsIGRhdGEubGVuZ3RoIC0gMSk7XG5cbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkFycm93RG93bktleShldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAoIXRoaXMuaXNFbmFibGVkKCkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHJvdyA9IDxIVE1MVGFibGVSb3dFbGVtZW50PmV2ZW50LmN1cnJlbnRUYXJnZXQ7XG4gICAgICAgIGNvbnN0IG5leHRSb3cgPSB0aGlzLmZpbmROZXh0U2VsZWN0YWJsZVJvdyhyb3cpO1xuXG4gICAgICAgIGlmIChuZXh0Um93KSB7XG4gICAgICAgICAgICBuZXh0Um93LmZvY3VzKCk7XG4gICAgICAgI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uICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBmaW5kUHJldlNlbGVjdGFibGVSb3cocm93OiBIVE1MVGFibGVSb3dFbGVtZW50KTogSFRNTFRhYmxlUm93RWxlbWVudCB8IG51bGwge1xuICAgICAgICBsZXQgcHJldlJvdyA9IDxIVE1MVGFibGVSb3dFbGVtZW50PnJvdy5wcmV2aW91c0VsZW1lbnRTaWJsaW5nO1xuICAgICAgICBpZiAocHJldlJvdykge1xuICAgICAgICAgICAgaWYgKERvbUhhbmRsZXIuaGFzQ2xhc3MocHJldlJvdywgJ3Atc2VsZWN0YWJsZS1yb3cnKSkgcmV0dXJuIHByZXZSb3c7XG4gICAgICAgICAgICBlbHNlIHJldHVybiB0aGlzLmZpbmRQcmV2U2VsZWN0YWJsZVJvdyhwcmV2Um93KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaXNFbmFibGVkKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5wU2VsZWN0YWJsZVJvd0Rpc2FibGVkICE9PSB0cnVlO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICBpZiAodGhpcy5zdWJzY3JpcHRpb24pIHtcbiAgICAgICAgICAgIHRoaXMuc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbkBEaXJlY3RpdmUoe1xuICAgIHNlbGVjdG9yOiAnW3BTZWxlY3RhYmxlUm93RGJsQ2xpY2tdJyxcbiAgICBob3N0OiB7XG4gICAgICAgIGNsYXNzOiAncC1lbGVtZW50JyxcbiAgICAgICAgJ1tjbGFzcy5wLXNlbGVjdGFibGUtcm93XSc6ICdpc0VuYWJsZWQoKScsXG4gICAgICAgICdbY2xhc3MucC1oaWdobGlnaHRdJzogJ3NlbGVj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bmVyKCdkYmxjbGljaycsIFsnJGV2ZW50J10pXG4gICAgb25DbGljayhldmVudDogRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuaXNFbmFibGVkKCkpIHtcbiAgICAgICAgICAgIHRoaXMuZHQuaGFuZGxlUm93Q2xpY2soe1xuICAgICAgICAgICAgICAgIG9yaWdpbmFsRXZlbnQ6IGV2ZW50LFxuICAgICAgICAgICAgICAgIHJvd0RhdGE6IHRoaXMuZGF0YSxcbiAgICAgICAgICAgICAgICByb3dJbmRleDogdGhpcy5pbmRleFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpc0VuYWJsZWQoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnBTZWxlY3RhYmxlUm93RGlzYWJsZWQgIT09IHRydWU7XG4gICAgfVxuXG4gICAgbmdPbkRlc3Ryb3koKSB7XG4gICAgICAgIGlmICh0aGlzLnN1YnNjcmlwdGlvbikge1xuICAgICAgICAgICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6ICdbcENvbnRleHRNZW51Um93XScsXG4gICAgaG9zdDoge1xuICAgICAgICBjbGFzczogJ3AtZWxlbWVudCcsXG4gICAgICAgICdbY2xhc3MucC1oaWdobGlnaHQtY29udGV4dG1lbnVdJzogJ3NlbGVjdGVkJyxcbiAgICAgICAgJ1thdHRyLnRhYmluZGV4XSc6ICdpc0VuYWJsZWQoKSA/IDAgOiB1bmRlZmluZWQnXG4gICAgfVxufSlcbmV4cG9ydCBjbGFzcyBDb250ZXh0TWVudVJvdyB7XG4gICAgQElucHV0KCdwQ29udGV4dE1lbnVSb3cnKSBkYXRhOiBhbnk7XG5cbiAgICBASW5wdXQoJ3BDb250ZXh0TWVudVJvd0luZGV4JykgaW5kZXg6IG51bWJlciB8IHVuZGVmaW5lZDtcblxuICAgIEBJ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gICAgICAgIHRoaXMuZHQuc2VsZkNsaWNrID0gdHJ1ZTtcblxuICAgICAgICAgICAgaWYgKHRoaXMuZHQuZWRpdGluZ0NlbGwpIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5kdC5lZGl0aW5nQ2VsbCAhPT0gdGhpcy5lbC5uYXRpdmVFbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5kdC5pc0VkaXRpbmdDZWxsVmFsaWQoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZUVkaXRpbmdDZWxsKHRydWUsIGV2ZW50KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcGVuQ2VsbCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vcGVuQ2VsbCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb3BlbkNlbGwoKSB7XG4gICAgICAgIHRoaXMuZHQudXBkYXRlRWRpdGluZ0NlbGwodGhpcy5lbC5uYXRpdmVFbGVtZW50LCB0aGlzLmRhdGEsIHRoaXMuZmllbGQsIDxudW1iZXI+dGhpcy5yb3dJbmRleCk7XG4gICAgICAgIERvbUhhbmRsZXIuYWRkQ2xhc3ModGhpcy5lbC5uYXRpdmVFbGVtZW50LCAncC1jZWxsLWVkaXRpbmcnKTtcbiAgICAgICAgdGhpcy5kdC5vbkVkaXRJbml0LmVtaXQoeyBmaWVsZDogdGhpcy5maWVsZCwgZGF0YTogdGhpcy5kYXRhLCBpbmRleDogPG51bWJlcj50aGlzLnJvd0luZGV4IH0pO1xuICAgICAgICB0aGlzLnpvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4ge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gIC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AgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uZW50ZXInLCBbJyRldmVudCddKVxuICAgIG9uRW50ZXJLZXlEb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIGlmICh0aGlzLmlzRW5hYmxlZCgpICYmICFldmVudC5zaGlmdEtleSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNsb3NlRWRpdGluZ0NlbGwodHJ1ZSwgZXZlbnQpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi50YWInLCBbJyRldmVudCddKVxuICAgIG9uVGFiS2V5RG93bihldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5pc0VuYWJsZWQoKSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNsb3NlRWRpdGluZ0NlbGwodHJ1ZSwgZXZlbnQpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi5lc2NhcGUnLCBbJyRldmVudCddKVxuICAgIG9uRXNjYXBlS2V5RG93bihldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5pc0VuYWJsZWQoKSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNsb3NlRWRpdGluZ0NlbGwoZmFsc2UsIGV2ZW50KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24udGFiJywgWyckZXZlbnQnXSlcbiAgICBASG9zdExpc3RlbmVyKCdrZXlkb3duLnNoaWZ0LnRhYicsIFsnJGV2ZW50J10pXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi5tZXRhLnRhYicsIFsnJGV2ZW50J10pXG4gICAgb25TaGlmdEtleURvd24oZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuaXNFbmFibGVkKCkpIHtcbiAgICAgICAgICAgIGlmIChldmVudC5zaGlmdEtleSkgdGhpcy5tb3ZlVG9QcmV2aW91c0NlbGwoZXZlbnQpO1xuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5tb3ZlVG9OZXh0Q2VsbChldmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi5hcnJvd2Rvd24nLCBbJyRldmVudCddKVxuICAgIG9uQXJyb3dEb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIGlmICh0aGlzLmlzRW5hYmxlZCgpKSB7XG4gICAgICAgICAgICBsZXQgY3VycmVudENlbGwgPSB0aGlzLmZpbmRDZWxsKGV2ZW50LnRhcmdldCk7XG4gICAgICAgICAgICBpZiAoY3VycmVudENlbGwpIHtcbiAgICAgICAgICAgICAgICBsZXQgY2VsbEluZGV4ID0gRG9tSGFuZGxlci5pbmRleChjdXJyZW50Q2VsbCk7XG4gICAgICAgICAgICAgICAgbGV0IHRhcmdldENlbGwgPSB0aGlzLmZpbmROZXh0RWRpdGFibGVDb2x1bW5CeUluZGV4KGN1cnJlbnRDZWxsLCBjZWxsSW5kZXgpO1xuXG4gICAgICAgICAgICAgICAgaWYgKHRhcmdldENlbGwpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VFZGl0aW5nQ2VsbCh0cnVlLCBldmVudCk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmludm9rZUVsZW1lbnRNZXRob2QoZXZlbnQudGFyZ2V0LCAnYmx1cicpO1xuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmludm9rZUVsZW1lbnRNZXRob2QodGFyZ2V0Q2VsbCwgJ2NsaWNrJyk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uYXJyb3d1cCcsIFsnJGV2ZW50J10pXG4gICAgb25BcnJvd1VwKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIGlmICh0aGlzLmlzRW5hYmxlZCgpKSB7XG4gICAgICAgICAgICBsZXQgY3VycmVudENlbGwgPSB0aGlzLmZpbmRDZWxsKGV2ZW50LnRhcmdldCk7XG4gICAgICAgICAgICBpZiAoY3VycmVudENlbGwpIHtcbiAgICAgICAgICAgICAgICBsZXQgY2VsbEluZGV4ID0gRG9tSGFuZGxlci5pbmRleChjdXJyZW50Q2VsbCk7XG4gICAgICAgICAgICAgICAgbGV0IHRhcmdldENlbGwgPSB0aGlzLmZpbmRQcmV2RWRpdGFibGVDb2x1bW5CeUluZGV4KGN1cnJlbnRDZWxsLCBjZWxsSW5kZXgpO1xuXG4gICAgICAgICAgICAgICAgaWYgKHRhcmdldENlbGwpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VFZGl0aW5nQ2VsbCh0cnVlLCBldmVudCk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmludm9rZUVsZW1lbnRNZXRob2QoZXZlbnQudGFyZ2V0LCAnYmx1cicpO1xuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmludm9rZUVsZW1lbnRNZXRob2QodGFyZ2V0Q2VsbCwgJ2NsaWNrJyk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uYXJyb3dsZWZ0JywgWyckZXZlbnQnXSlcbiAgICBvbkFycm93TGVmdChldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5pc0VuYWJsZWQoKSkge1xuICAgICAgICAgICAgdGhpcy5tb3ZlVG9QcmV2aW91c0NlbGwoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi5hcnJvd3JpZ2h0JywgWyckZXZlbnQnXSlcbiAgICBvbkFycm93UmlnaHQoZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuaXNFbmFibGVkKCkpIHtcbiAgICAgICAgICAgIHRoaXMubW92ZVRvTmV4dENlbGwoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZENlbGwoZWxlbWVudDogYW55KSB7XG4gICAgICAgIGlmIChlbGVtZW50KSB7XG4gICAgICAgICAgICBsZXQgY2VsbCA9IGVsZW1lbnQ7XG4gICAgICAgICAgICB3aGlsZSAoY2VsbCAmJiAhRG9tSGFuZGxlci5oYXNDbGFzcyhjZWxsLCAncC1jZWxsLWVkaXRpbmcnKSkge1xuICAgICAgICAgICAgICAgIGNlbGwgPSBjZWxsLnBhcmVudEVsZW1lbnQ7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiBjZWxsO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBtb3ZlVG9QcmV2aW91c0NlbGwoZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgbGV0IGN1cnJlbnRDZWxsID0gdGhpcy5maW5kQ2VsbChldmVudC50YXJnZXQpO1xuICAgICAgICBpZiAoY3VycmVudENlbGwpIHtcbiAgICAgICAgICAgIGxldCB0YXJnZXRDZWxsID0gdGhpcy5maW5kUHJldmlvdXNFZGl0YWJsZUNvbHVtbihjdXJyZW50Q2VsbCk7XG5cbiAgICAgICAgICAgIGlmICh0YXJnZXRDZWxsKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZHQuaXNFZGl0aW5nQ2VsbFZhbGlkKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZUVkaXRpbmdDZWxsKHRydWUsIGV2ZW50KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmludm9rZUVsZW1lbnRNZXRob2QoZXZlbnQudGFyZ2V0LCAnYmx1cicpO1xuICAgICAgICAgICAgICAgIERvbUhhbmRsZXIuaW52b2tlRWxlbWVudE1ldGhvZCh0YXJnZXRDZWxsLCAnY2xpY2snKTtcbiAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgbW92ZVRvTmV4dENlbGwoZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgbGV0IGN1cnJlbnRDZWxsID0gdGhpcy5maW5kQ2VsbChldmVudC50YXJnZXQpO1xuICAgICAgICBpZiAoY3VycmVudENlbGwpIHtcbiAgICAgICAgICAgIGxldCB0YXJnZXRDZWxsID0gdGhpcy5maW5kTmV4dEVkaXRhYmxlQ29sdW1uKGN1cnJlbnRDZWxsKTtcblxuICAgICAgICAgICAgaWYgKHRhcmdldENlbGwpIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5kdC5pc0VkaXRpbmdDZWxsVmFsaWQoKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNsb3NlRWRpdGluZ0NlbGwodHJ1ZSwgZXZlbnQpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIERvbUhhbmRsZXIuaW52b2tlRWxlbWVudE1ldGhvZChldmVudC50YXJnZXQsICdibHVyJyk7XG4gICAgICAgICAgICAgICAgRG9tSGFuZGxlci5pbnZva2VFbGVtZW50TWV0aG9kKHRhcmdldENlbGwsICdjbGljaycpO1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmR0LmlzRWRpdGluZ0NlbGxWYWxpZCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VFZGl0aW5nQ2VsbCh0cnVlLCBldmVudCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZFByZXZpb3VzRWRpdGFibGVDb2x1bW4oY2VsbDogYW55KTogSFRNTFRhYmxlQ2VsbEVsZW1lbnQgfCBudWxsIHtcbiAgICAgICAgbGV0IHByZXZDZWxsID0gY2VsbC5wcmV2aW91c0VsZW1lbnRTaWJsaW5nO1xuXG4gICAgICAgIGlmICghcHJldkNlbGwpIHtcbiAgICAgICAgICAgIGxldCBwcmV2aW91c1JvdyA9IGNlbGwucGFyZW50RWxlbWVudD8ucHJldmlvdXNFbGVtZW50U2libGluZztcbiAgICAgICAgICAgIGlmIChwcmV2aW91c1Jvdykge1xuICAgICAgICAgICAgICAgIHByZXZDZWxsID0gcHJldmlvdXNSb3cubGFzdEVsZW1lbnRDaGlsZDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChwcmV2Q2VsbCkge1xuICAgICAgICAgICAgaWYgKERvbUhhbmRsZXIuaGFzQ2xhc3MocHJldkNlbGwsICdwLWVkaXRhYmxlLWNvbHVtbicpKSByZXR1cm4gcHJldkNlbGw7XG4gICAgICAgICAgICBlbHNlIHJldHVybiB0aGlzLmZpbmRQcmV2aW91c0VkaXRhYmxlQ29sdW1uKHByZXZDZWxsKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZE5leHRFZGl0YWJsZUNvbHVtbihjZWxsOiBhbnkpOiBIVE1MVGFibGVDZWxsRWxlbWVudCB8IG51bGwge1xuICAgICAgICBsZXQgbmV4dENlbGwgPSBjZWxsLm5leHRFbGVtZW50U2libGluZztcblxuICAgICAgICBpZiAoIW5leHRDZWxsKSB7XG4gICAgICAgICAgICBsZXQgbmV4dFJvdyA9IGNlbGwucGFyZW50RWxlbWVudD8ubmV4dEVsZW1lbnRTaWJsaW5nO1xuICAgICAgICAgICAgaWYgKG5leHRSb3cpIHtcbiAgICAgICAgICAgICAgICBuZXh0Q2VsbCA9IG5leHRSb3cuZmlyc3RFbGVtZW50Q2hpbGQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobmV4dENlbGwpIHtcbiAgICAgICAgICAgIGlmIChEb21IYW5kbGVyLmhhc0NsYXNzKG5leHRDZWxsLCAncC1lZGl0YWJsZS1jb2x1bW4nKSkgcmV0dXJuIG5leHRDZWxsO1xuICAgICAgICAgICAgZWxzZSByZXR1cm4gdGhpcy5maW5kTmV4dEVkaXRhYmxlQ29sdW1uKG5leHRDZWxsKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZE5leHRFZGl0YWJsZUNvbHVtbkJ5SW5kZXgoY2VsbDogRWxlbWVudCwgaW5kZXg6IG51bWJlcikge1xuICAgICAgICBsZXQgbmV4dFJvdyA9IGNlbGwucGFyZW50RWxlbWVudD8ubmV4dEVsZW1lbnRTaWJsaW5nO1xuXG4gICAgICAgIGlmIChuZXh0Um93KSB7XG4gICAgICAgICAgICBsZXQgbmV4dENlbGwgPSBuZXh0Um93LmNoaWxkcmVuW2luZGV4XTtcblxuICAgICAgICAgICAgaWYgKG5leHRDZWxsICYmIERvbUhhbmRsZXIuaGFzQ2xhc3MobmV4dENlbGwsICdwLWVkaXRhYmxlLWNvbHVtbicpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5leHRDZWxsO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZFByZXZFZGl0YWJsZUNvbHVtbkJ5SW5kZXgoY2VsbDogRWxlbWVudCwgaW5kZXg6IG51bWJlcikge1xuICAgICAgICBsZXQgcHJldlJvdyA9IGNlbGwucGFyZW50RWxlbWVudD8ucHJldmlvdXNFbGVtZW50U2libGluZztcblxuICAgICAgICBpZiAocHJldlJvdykge1xuICAgICAgICAgICAgbGV0IHByZXZDZWxsID0gcHJldlJvdy5jaGlsZHJlbltpbmRleF07XG5cbiAgICAgICAgICAgIGlmIChwcmV2Q2VsbCAmJiBEb21IYW5kbGVyLmhhc0NsYXNzKHByZXZDZWxsLCAncC1lZGl0YWJsZS1jb2x1bW4nKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBwcmV2Q2V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5hdGl2ZUVsZW1lbnQ/LmZvY3VzKCk7XG4gICAgICAgIH1cbiAgICAgICAgRG9tSGFuZGxlci5jbGVhclNlbGVjdGlvbigpO1xuICAgIH1cblxuICAgIG9uRm9jdXMoKSB7XG4gICAgICAgIHRoaXMuZm9jdXNlZCA9IHRydWU7XG4gICAgfVxuXG4gICAgb25CbHVyKCkge1xuICAgICAgICB0aGlzLmZvY3VzZWQgPSBmYWxzZTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgaWYgKHRoaXMuc3Vic2NyaXB0aW9uKSB7XG4gICAgICAgICAgICB0aGlzLnN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ3AtdGFibGVDaGVja2JveCcsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGRpdiBjbGFzcz1cInAtY2hlY2tib3ggcC1jb21wb25lbnRcIiBbbmdDbGFzc109XCJ7ICdwLWNoZWNrYm94LWZvY3VzZWQnOiBmb2N1c2VkLCAncC1jaGVja2JveC1kaXNhYmxlZCc6IGRpc2FibGVkIH1cIiAoY2xpY2spPVwib25DbGljaygkZXZlbnQpXCI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1oaWRkZW4tYWNjZXNzaWJsZVwiPlxuICAgICAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwiY2hlY2tib3hcIlxuICAgICAgICAgICAgICAgICAgICBbYXR0ci5pZF09XCJpbnB1dElkXCJcbiAgICAgICAgICAgICAgICAgICAgW2F0dHIubmFtZV09XCJuYW1lXCJcbiAgICAgICAgICAgICAgICAgICAgW2NoZWNrZWRdPVwiY2hlY2tlZFwiXG4gICAgICAgICAgICAgICAgICAgIChmb2N1cyk9XCJvbkZvY3VzKClcIlxuICAgICAgICAgICAgICAgICAgICAoYmx1cik9XCJvbkJsdXIoKVwiXG4gICAgICAgICAgICAgICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLnJlcXVpcmVkXT1cInJlcXVpcmVkXCJcbiAgICAgICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1sYWJlbF09XCJhcmlhTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICBbdGFiaW5kZXhdPVwiZGlzYWJsZWQgPyBudWxsIDogJzAnXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2ICNib3ggW25nQ2xhc3NdPVwieyAncC1jaGVja2JveC1ib3ggcC1jb21wb25lbnQnOiB0cnVlLCAncC1oaWdobGlnaHQnOiBjaGVja2VkLCAncC1mb2N1cyc6IGZvY3VzZWQsICdwLWRpc2FibGVkJzogZGlzYWJsZWQgfVwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhZHQuY2hlY2tib3hJY29uVGVtcGxhdGVcIj5cbiAgICAgICAgICAgICAgICAgICAgPENoZWNrSWNvbiBbc3R5bGVDbGFzc109XCIncC1jaGVja2JveC1pY29uJ1wiICpuZ0lmPVwiY2hlY2tlZFwiIC8+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJkdC5jaGVja2JveEljb25UZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJkdC5jaGVja2JveEljb25UZW1wbGF0ZTsgY29udGV4dDogeyAkaW1wbGljaXQ6IGNoZWNrZWQgfVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIGAsXG4gICAgY2hhbmdlRGV0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AgIH1cbn1cblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdwLWNvbHVtbkZpbHRlcicsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGRpdiBjbGFzcz1cInAtY29sdW1uLWZpbHRlclwiIFtuZ0NsYXNzXT1cInsgJ3AtY29sdW1uLWZpbHRlci1yb3cnOiBkaXNwbGF5ID09PSAncm93JywgJ3AtY29sdW1uLWZpbHRlci1tZW51JzogZGlzcGxheSA9PT0gJ21lbnUnIH1cIj5cbiAgICAgICAgICAgIDxwLWNvbHVtbkZpbHRlckZvcm1FbGVtZW50XG4gICAgICAgICAgICAgICAgKm5nSWY9XCJkaXNwbGF5ID09PSAncm93J1wiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJwLWZsdWlkXCJcbiAgICAgICAgICAgICAgICBbdHlwZV09XCJ0eXBlXCJcbiAgICAgICAgICAgICAgICBbZmllbGRdPVwiZmllbGRcIlxuICAgICAgICAgICAgICAgIFthcmlhTGFiZWxdPVwiYXJpYUxhYmVsXCJcbiAgICAgICAgICAgICAgICBbZmlsdGVyQ29uc3RyYWludF09XCJkdC5maWx0ZXJzW2ZpZWxkXVwiXG4gICAgICAgICAgICAgICAgW2ZpbHRlclRlbXBsYXRlXT1cImZpbHRlclRlbXBsYXRlXCJcbiAgICAgICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwicGxhY2Vob2xkZXJcIlxuICAgICAgICAgICAgICAgIFttaW5GcmFjdGlvbkRpZ2l0c109XCJtaW5GcmFjdGlvbkRpZ2l0c1wiXG4gICAgICAgICAgICAgICAgW21heEZyYWN0aW9uRGlnaXRzXT1cIm1heEZyYWN0aW9uRGlnaXRzXCJcbiAgICAgICAgICAgICAgICBbcHJlZml4XT1cInByZWZpeFwiXG4gICAgICAgICAgICAgICAgW3N1ZmZpeF09XCJzdWZmaXhcIlxuICAgICAgICAgICAgICAgIFtsb2NhbGVdPVwibG9jYWxlXCJcbiAgICAgICAgICAgICAgICBbbG9jYWxlTWF0Y2hlcl09XCJsb2NhbGVNYXRjaGVyXCJcbiAgICAgICAgICAgICAgICBbY3VycmVuY3ldPVwiY3VycmVuY3lcIlxuICAgICAgICAgICAgICAgIFtjdXJyZW5jeURpc3BsYXldPVwiY3VycmVuY3lEaXNwbGF5XCJcbiAgICAgICAgICAgICAgICBbdXNlR3JvdXBpbmddPVwidXNlR3JvdXBpbmdcIlxuICAgICAgICAgICAgICAgIFtzaG93QnV0dG9uc109XCJzaG93QnV0dG9uc1wiXG4gICAgICAgICAgICA+PC9wLWNvbHVtbkZpbHRlckZvcm1FbGVtZW50PlxuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICNpY29uXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJzaG93TWVudUJ1dHRvblwiXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJwLWNvbHVtbi1maWx0ZXItbWVudS1idXR0b24gcC1saW5rXCJcbiAgICAgICAgICAgICAgICBhcmlhLWhhc3BvcHVwPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1sYWJlbF09XCJmaWx0ZXJNZW51QnV0dG9uQXJpYUxhYmVsXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLWNvbnRyb2xzXT1cIm92ZXJsYXlWaXNpYmxlID8gb3ZlcmxheUlkIDogbnVsbFwiXG4gICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1leHBhbmRlZF09XCJvdmVybGF5VmlzaWJsZSA/PyBmYWxzZVwiXG4gICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwieyAncC1jb2x1bW4tZmlsdGVyLW1lbnUtYnV0dG9uLW9wZW4nOiBvdmVybGF5VmlzaWJsZSwgJ3AtY29sdW1uLWZpbHRlci1tZW51LWJ1dHRvbi1hY3RpdmUnOiBoYXNGaWx0ZXIoKSB9XCJcbiAgICAgICAgICAgICAgICAoY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L2J1dHRvbj5cbiAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICAqbmdJZj1cInNob3dNZW51ICYmIG92ZXJsYXlWaXNpYmxlXCJcbiAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLWNvbHVtbi1maWx0ZXItb3ZlcmxheSBwLWNvbXBvbmVudCBwLWZsdWlkJzogdHJ1ZSwgJ3AtY29sdW1uLWZpbHRlci1vdmVybGF5LW1lbnUnOiBkaXNwbGF5ID09PSAnbWVudScgfVwiXG4gICAgICAgICAgICAgICAgW2lkXT1cIm92ZXJsYXlJZFwiXG4gICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1tb2RhbF09XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICByb2xlPVwiZGlhbG9nXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25Db250ZW50Q2xpY2soKVwiXG4gICAgICAgICAgICAgICAgW0BvdmVybGF5QW5pbWF0aW9uXT1cIid2aXNpYmxlJ1wiXG4gICAgICAgICAgICAgICAgKEBvdmVybGF5QW5pbWF0aW9uLnN0YXJ0KT1cIm9uT3ZlcmxheUFuaW1hdGlvblN0YXJ0KCRldmVudClcIlxuICAgICAgICAgICAgICAgIChAb3ZlcmxheUFuaW1hdGlvbi5kb25lKT1cIm9uT3ZlcmxheUFuaW1hdGlvbkVuZCgkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoa2V5ZG93bi5lc2NhcGUpPVwib25Fc2NhcGUoKVwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRlclRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogZmllbGQgfVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDx1bCAqbmdJZj1cImRpc3BsYXkgPT09ICdyb3cnOyBlbHNlIG1lbnVcIiBjbGFzcz1cInAtY29sdW1uLWZpbHRlci1yb3ctaXRlbXNcIj5cbiAgICAgICAgICAgICAgICAgICAgPGxpXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInAtY29sdW1uLWZpbHRlci1yb3ctaXRlbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAqbmdGb3I9XCJsZXQgbWF0Y2hNb2RlIG9mIG1hdGNoTW9kZXM7IGxldCBpID0gaW5kZXhcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIm9uUm93TWF0Y2hNb2RlQ2hhbmdlKG1hdGNoTW9kZS52YWx1ZSlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGtleWRvd24pPVwib25Sb3dNYXRjaE1vZGVLZXlEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwidGhpcy5vblJvd01hdGNoTW9kZUNoYW5nZShtYXRjaE1vZGUudmFsdWUpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsgJ3AtaGlnaGxpZ2h0JzogaXNSb3dNYXRjaE1vZGVTZWxlY3RlZChtYXRjaE1vZGUudmFsdWUpIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIudGFiaW5kZXhdPVwiaSA9PT0gMCA/ICcwJyA6IG51bGxcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyBtYXRjaE1vZGUubGFiZWwgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgICAgICAgPGxpIGNsYXNzPVwicC1jb2x1bW4tZmlsdGVyLXNlcGFyYXRvclwiPjwvbGk+XG4gICAgICAgICAgICAgICAgICAgIDxsaSBjbGFzcz1cInAtY29sdW1uLWZpbHRlci1yb3ctaXRlbVwiIChjbGljayk9XCJvblJvd0NsZWFySXRlbUNsaWNrKClcIiAoa2V5ZG93bik9XCJvblJvd01hdGNoTW9kZUtleURvd24oJGV2ZW50KVwiIChrZXlkb3duLmVudGVyKT1cIm9uUm93Q2xlYXJJdGVtQ2xpY2soKVwiPnt7IG5vRmlsdGVyTGFiZWwgfX08L2xpPlxuICAgICAgICAgICAgICAgIDwvdWw+XG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNtZW51PlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1jb2x1bW4tZmlsdGVyLW9wZXJhdG9yXCIgKm5nSWY9XCJpc1Nob3dPcGVyYXRvclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHAtZHJvcGRvd24gW29wdGlvbnNdPVwib3BlcmF0b3JPcHRpb25zXCIgW25nTW9kZWxdPVwib3BlcmF0b3JcIiAobmdNb2RlbENoYW5nZSk9XCJvbk9wZXJhdG9yQ2hhbmdlKCRldmVudClcIiBzdHlsZUNsYXNzPVwicC1jb2x1bW4tZmlsdGVyLW9wZXJhdG9yLWRyb3Bkb3duXCI+PC9wLWRyb3Bkb3duPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInAtY29sdW1uLWZpbHRlci1jb25zdHJhaW50c1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdGb3I9XCJsZXQgZmllbGRDb25zdHJhaW50IG9mIGZpZWxkQ29uc3RyYWludHM7IGxldCBpID0gaW5kZXhcIiBjbGFzcz1cInAtY29sdW1uLWZpbHRlci1jb25zdHJhaW50XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAtZHJvcGRvd25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJzaG93TWF0Y2hNb2RlcyAmJiBtYXRjaE1vZGVzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW29wdGlvbnNdPVwibWF0Y2hNb2Rlc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtuZ01vZGVsXT1cImZpZWxkQ29uc3RyYWludC5tYXRjaE1vZGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJvbk1lbnVNYXRjaE1vZGVDaGFuZ2UoJGV2ZW50LCBmaWVsZENvbnN0cmFpbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGVDbGFzcz1cInAtY29sdW1uLWZpbHRlci1tYXRjaG1vZGUtZHJvcGRvd25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgID48L3AtZHJvcGRvd24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAtY29sdW1uRmlsdGVyRm9ybUVsZW1lbnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3R5cGVdPVwidHlwZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmaWVsZF09XCJmaWVsZFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmaWx0ZXJDb25zdHJhaW50XT1cImZpZWxkQ29uc3RyYWludFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmaWx0ZXJUZW1wbGF0ZV09XCJmaWx0ZXJUZW1wbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFttaW5GcmFjdGlvbkRpZ2l0c109XCJtaW5GcmFjdGlvbkRpZ2l0c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFttYXhGcmFjdGlvbkRpZ2l0c109XCJtYXhGcmFjdGlvbkRpZ2l0c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwcmVmaXhdPVwicHJlZml4XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3N1ZmZpeF09XCJzdWZmaXhcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbG9jYWxlXT1cImxvY2FsZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtsb2NhbGVNYXRjaGVyXT1cImxvY2FsZU1hdGNoZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbY3VycmVuY3ldPVwiY3VycmVuY3lcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbY3VycmVuY3lEaXNwbGF5XT1cImN1cnJlbmN5RGlzcGxheVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFt1c2VHcm91cGluZ109XCJ1c2VHcm91cGluZ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPjwvcC1jb2x1bW5GaWx0ZXJGb3JtRWxlbWVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cInNob3dSZW1vdmVJY29uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcEJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJwLWNvbHVtbi1maWx0ZXItcmVtb3ZlLWJ1dHRvbiBwLWJ1dHRvbi10ZXh0IHAtYnV0dG9uLWRhbmdlciBwLWJ1dHRvbi1zbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwicmVtb3ZlQ29uc3RyYWludChmaWVsZENvbnN0cmFpbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBSaXBwbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtbGFiZWxdPVwicmVtb3ZlUnVsZUJ1dHRvbkxhYmVsXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtsYWJlbF09XCJyZW1vdmVSdWxlQnV0dG9uTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHJhc2hJY29uICpuZ0lmPVwiIXJlbW92ZVJ1bGVJY29uVGVtcGxhdGVcIiBbc3R5bGVDbGFzc109XCIncC1idXR0b24taWNvbi1sZWZ0J1wiIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJyZW1vdmVSdWxlSWNvblRlbXBsYXRlXCI+PC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJwLWNvbHVtbi1maWx0ZXItYWRkLXJ1bGVcIiAqbmdJZj1cImlzU2hvd0FkZENvbnN0cmFpbnRcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cImJ1dHRvblwiIHBCdXR0b24gW2xhYmVsXT1cImFkZFJ1bGVCdXR0b25MYWJlbFwiIFthdHRyLmFyaWEtbGFiZWxdPVwiYWRkUnVsZUJ1dHRvbkxhYmVsXCIgY2xhc3M9XCJwLWNvbHVtbi1maWx0ZXItYWRkLWJ1dHRvbiBwLWJ1dHRvbi10ZXh0IHAtYnV0dG9uLXNtXCIgKGNsaWNrKT1cImFkZENvbnN0cmFpbnQoKVwiIHBSaXBwbGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPF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gICAgICAgICAgICAgIGNhc2UgJ2ZpbHRlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsdGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2Zvb3Rlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9vdGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2ZpbHRlcmljb24nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbHRlckljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnY2xlYXJmaWx0ZXJpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbGVhckZpbHRlckljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAncmVtb3ZlcnVsZWljb24nOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlbW92ZVJ1bGVJY29uVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2FkZHJ1bGVpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hZGRSdWxlSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbHRlclRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAg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7XG4gICAgfVxuXG4gICAgb25Sb3dNYXRjaE1vZGVLZXlEb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIGxldCBpdGVtID0gPEhUTUxMSUVsZW1lbnQ+ZXZlbnQudGFyZ2V0O1xuXG4gICAgICAgIHN3aXRjaCAoZXZlbnQua2V5KSB7XG4gICAgICAgICAgICBjYXNlICdBcnJvd0Rvd24nOlxuICAgICAgICAgICAgICAgIHZhciBuZXh0SXRlbSA9IHRoaXMuZmluZE5leHRJdGVtKGl0ZW0pO1xuICAgICAgICAgICAgICAgIGlmIChuZXh0SXRlbSkge1xuICAgICAgICAgICAgICAgICAgICBpdGVtLnJlbW92ZUF0dHJpYnV0ZSgndGFiaW5kZXgnKTtcbiAgICAgICAgICAgICAgICAgICAgbmV4dEl0ZW0udGFiSW5kZXggPSAnMCc7XG4gICAgICAgICAgICAgICAgICAgIG5leHRJdGVtLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnQXJyb3dVcCc6XG4gICAgICAgICAgICAgICAgdmFyIHByZXZJdGVtID0gdGhpcy5maW5kUHJldkl0ZW0oaXRlbSk7XG4gICAgICAgICAgICAgICAgaWYgKHByZXZJdGVtKSB7XG4gICAgICAgICAgICAgICAgICAgIGl0ZW0ucmVtb3ZlQXR0cmlidXRlKCd0YWJpbmRleCcpO1xuICAgICAgICAgICAgICAgICAgICBwcmV2SXRlbS50YWJJbmRleCA9ICcwJztcbiAgICAgICAgICAgICAgICAgICAgcHJldkl0ZW0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Sb3dD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q2hpbGQubmF0aXZlRWxlbWVudCk7XG4gICAgfVxuXG4gICAgb25PcGVyYXRvckNoYW5nZSh2YWx1ZTogYW55KSB7XG4gICAgICAgICg8RmlsdGVyTWV0YWRhdGFbXT50aGlzLmR0LmZpbHRlcnNbPHN0cmluZz50aGlzLmZpZWxkXSkuZm9yRWFjaCgoZmlsdGVyTWV0YSkgPT4ge1xuICAgICAgICAgICAgZmlsdGVyTWV0YS5vcGVyYXRvciA9IHZhbHVlO1xuICAgICAgICAgICAgdGhpcy5vcGVyYXRvciA9IHZhbHVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBpZiAoIXRoaXMuc2hvd0FwcGx5QnV0dG9uKSB7XG4gICAgICAgICAgICB0aGlzLmR0Ll9maWx0ZXIoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHRvZ2dsZU1lbnUoKSB7XG4gICAgICAgIHRoaXMub3ZlcmxheVZpc2libGUgPSAhdGhpcy5vdmVybGF5VmlzaWJsZTtcbiAgICB9XG5cbiAgICBvblRvZ2dsZUJ1dHRvbktleURvd24oZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC5rZXkpIHtcbiAgICAgICAgICAgIGNhc2UgJ0VzY2FwZSc6XG4gICAgICAgICAgICBjYXNlICdUYWInOlxuICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheVZpc2libGUgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnQXJyb3dEb3duJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgZm9jdXNhYmxlID0gRG9tSGFuZGxlci5nZXRGb2N1c2FibGVFbGVtZW50cyg8SFRNTEVsZW1lbnQ+dGhpcy5vdmVybGF5KTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGZvY3VzYWJsZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9jdXNhYmxlWzBdLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGV2ZW50LmFsdEtleSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLm92ZXJsYXlWaXNpYmxlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdFbnRlcic6XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGVNZW51KCk7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uRXNjYXBlKCkge1xuICAgICAgICB0aGlzLm92ZXJsYXlWaXNpYmxlID0gZmFsc2U7XG4gICAgICAgIHRoaXMuaWNvbj8ubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICAgIH1cblxuICAgIGZpbmROZXh0SXRlbShpdGVtOiBIVE1MTElFbGVtZW50KTogYW55IHtcbiAgICAgICAgbGV0IG5leHRJdGVtID0gPEhUTUxMSUVsZW1lbnQ+aXRlbS5uZXh0RWxlbWVudFNpYmxpbmc7XG5cbiAgICAgICAgaWYgKG5leHRJdGVtKSByZXR1cm4gRG9tSGFuZGxlci5oYXNDbGFzcyhuZXh0SXRlbSwgJ3AtY29sdW1uLWZpbHRlci1zZXBhcmF0b3InKSA/IHRoaXMuZmluZE5leHRJdGVtKG5leHRJdGVtKSA6IG5leHRJdGVtO1xuICAgICAgICBlbHNlIHJldHVybiBpdGVtLnBhcmVudEVsZW1lbnQ/LmZpcnN0RWxlbWVudENoaWxkO1xuICAgIH1cblxuICAgIGZpbmRQcmV2SX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gICAgICAgICAgIHRoaXMuYmluZERvY3VtZW50UmVzaXplTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5RXZlbnRMaXN0ZW5lciA9IChlOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMub3ZlcmxheSAmJiB0aGlzLm92ZXJsYXkuY29udGFpbnMoZS50YXJnZXQpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGZDbGljayA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5U3Vic2NyaXB0aW9uID0gdGhpcy5vdmVybGF5U2VydmljZS5jbGlja09ic2VydmFibGUuc3Vic2NyaWJlKHRoaXMub3ZlcmxheUV2ZW50TGlzdGVuZXIpO1xuICAgICAgICAgICAgICAgIHRoaXMub25TaG93LmVtaXQoeyBvcmlnaW5hbEV2ZW50OiBldmVudCB9KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAndm9pZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbk92ZXJsYXlIaWRlKCk7XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5U3Vic2NyaXB0aW9uKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheVN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uT3ZlcmxheUFuaW1hdGlvbkVuZChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2aXNpYm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RSZXNpemVMaXN0ZW5lcigpIHtcbiAgICAgICAgaWYgKCF0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRSZXNpemVMaXN0ZW5lciA9IHRoaXMucmVuZGVyZXIubGlzdGVuKHRoaXMud2luZG93LCAncmVzaXplJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMub3ZlcmxheVZpc2libGUgJiYgIURvbUhhbmRsZXIuaXNUb3VjaERldmljZSgpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgdW5iaW5kRG9jdW1lbnRSZXNpemVMaXN0ZW5lcigpIHtcbiAgICAgICAgaWYgKHRoaXMuZG9jdW1lbnRSZXNpemVMaXN0ZW5lcikge1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIgPSBudWxsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYmluZFNjcm9sbExpc3RlbmVyKCkge1xuICAgICAgICBpZiAoIXRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyID0gbmV3IENvbm5lY3RlZE92ZXJsYXlTY3JvbGxIYW5kbGVyKHRoaXMuaWNvbj8ubmF0aXZlRWxlbWVudCwgKCkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLm92ZXJsYXlWaXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLmJpbm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oaXMub3ZlcmxheSk7XG4gICAgICAgICAgICB0aGlzLm9uT3ZlcmxheUhpZGUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLnRyYW5zbGF0aW9uU3Vic2NyaXB0aW9uKSB7XG4gICAgICAgICAgICB0aGlzLnRyYW5zbGF0aW9uU3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5yZXNldFN1YnNjcmlwdGlvbikge1xuICAgICAgICAgICAgdGhpcy5yZXNldFN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3ZlcmxheVN1YnNjcmlwdGlvbikge1xuICAgICAgICAgICAgdGhpcy5vdmVybGF5U3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbkBDb21wb25lbnQoe1xuICAgIHNlbGVjdG9yOiAncC1jb2x1bW5GaWx0ZXJGb3JtRWxlbWVudCcsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpbHRlclRlbXBsYXRlOyBlbHNlIGJ1aWx0SW5FbGVtZW50XCI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICAgICAgZmlsdGVyVGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRleHQ6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICRpbXBsaWNpdDogZmlsdGVyQ29uc3RyYWludC52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlckNhbGxiYWNrOiBmaWx0ZXJDYWxsYmFjayxcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IHR5cGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWVsZDogZmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXJDb25zdHJhaW50OiBmaWx0ZXJDb25zdHJhaW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI6IHBsYWNlaG9sZGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWluRnJhY3Rpb25EaWdpdHM6IG1pbkZyYWN0aW9uRGlnaXRzLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWF4RnJhY3Rpb25EaWdpdHM6IG1heEZyYWN0aW9uRGlnaXRzLFxuICAgICAgICAgICAgICAgICAgICAgICAgcHJlZml4OiBwcmVmaXgsXG4gICAgICAgICAgICAgICAgICAgICAgICBzdWZmaXg6IHN1ZmZpeCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsZTogbG9jYWxlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbG9jYWxlTWF0Y2hlcjogbG9jYWxlTWF0Y2hlcixcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnJlbmN5OiBjdXJyZW5jeSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnJlbmN5RGlzcGxheTogY3VycmVuY3lEaXNwbGF5LFxuICAgICAgICAgICAgICAgICAgICAgICAgdXNlR3JvdXBpbmc6IHVzZUdyb3VwaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0J1dHRvbnM6IHNob3dCdXR0b25zXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgPjwvbmctY29udGFpbmVyPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLXRlbXBsYXRlICNidWlsdEluRWxlbWVudD5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgW25nU3dpdGNoXT1cInR5cGVcIj5cbiAgICAgICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIid0ZXh0J1wiXG4gICAgICAgICAgICAgICAgICAgIHR5cGU9XCJ0ZXh0XCJcbiAgICAgICAgICAgICAgICAgICAgW2FyaWFMYWJlbF09XCJhcmlhTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICBwSW5wdXRUZXh0XG4gICAgICAgICAgICAgICAgICAgIFt2YWx1ZV09XCJmaWx0ZXJDb25zdHJhaW50Py52YWx1ZVwiXG4gICAgICAgICAgICAgICAgICAgIChpbnB1dCk9XCJvbk1vZGVsQ2hhbmdlKCRldmVudC50YXJnZXQudmFsdWUpXCJcbiAgICAgICAgICAgICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwib25UZXh0SW5wdXRFbnRlcktleURvd24oJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLnBsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgIDxwLWlucHV0TnVtYmVyXG4gICAgICAgICAgICAgICAgICAgICpuZ1N3aXRjaENhc2U9XCInbnVtZXJpYydcIlxuICAgICAgICAgICAgICAgICAgICBbbmdNb2RlbF09XCJmaWx0ZXJDb25zdHJhaW50Py52YWx1ZVwiXG4gICAgICAgICAgICAgICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cIm9uTW9kZWxDaGFuZ2UoJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgICAgIChvbktleURvd24pPVwib25OdW1lcmljSW5wdXRLZXlEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgICAgICBbc2hvd0J1dHRvbnNdPVwic2hvd0J1dHRvbnNcIlxuICAgICAgICAgICAgICAgICAgICBbbWluRnJhY3Rpb25EaWdpdHNdPVwibWluRnJhY3Rpb25EaWdpdHNcIlxuICAgICAgICAgICAgICAgICAgICBbbWF4RnJhY3Rpb25EaWdpdHNdPVwibWF4RnJhY3Rpb25EaWdpdHNcIlxuICAgICAgICAgICAgICAgICAgICBbYXJpYUxhYmV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gaWYgKHRoaXMudHlwZSA9PT0gJ2RhdGUnIHx8IHRoaXMudHlwZSA9PT0gJ2Jvb2xlYW4nIHx8IHZhbHVlID09PSAnJykge1xuICAgICAgICAgICAgdGhpcy5kdC5fZmlsdGVyKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblRleHRJbnB1dEVudGVyS2V5RG93bihldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICB0aGlzLmR0Ll9maWx0ZXIoKTtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB9XG5cbiAgICBvbk51bWVyaWNJbnB1dEtleURvd24oZXZlbnQ6IEtleWJvYXJkRXZlbnQpIHtcbiAgICAgICAgaWYgKGV2ZW50LmtleSA9PT0gJ0VudGVyJykge1xuICAgICAgICAgICAgdGhpcy5kdC5fZmlsdGVyKCk7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlLFxuICAgICAgICBQYWdpbmF0b3JNb2R1bGUsXG4gICAgICAgIElucHV0VGV4dE1vZHVsZSxcbiAgICAgICAgRHJvcGRvd25Nb2R1bGUsXG4gICAgICAgIEZvcm1zTW9kdWxlLFxuICAgICAgICBCdXR0b25Nb2R1bGUsXG4gICAgICAgIFNlbGVjdEJ1dHRvbk1vZHVsZSxcbiAgICAgICAgQ2FsZW5kYXJNb2R1bGUsXG4gICAgICAgIElucHV0TnVtYmVyTW9kdWxlLFxuICAgICAgICBUcmlTdGF0ZUNoZWNrYm94TW9kdWxlLFxuICAgICAgICBTY3JvbGxlck1vZHVsZSxcbiAgICAgICAgQXJyb3dEb3duSWNvbixcbiAgICAgICAgQXJyb3dVcEljb24sXG4gICAgICAgIFNwaW5uZXJJY29uLFxuICAgICAgICBTb3J0QWx0SWNvbixcbiAgICAgICAgU29ydEFtb3VudFVwQWx0SWNvbixcbiAgICAgICAgU29ydEFtb3VudERvd25JY29uLFxuICAgICAgICBDaGVja0ljb24sXG4gICAgICAgIEZpbHRlckljb24sXG4gICAgICAgIEZpbHRlclNsYXNoSWNvbixcbiAgICAgICAgUGx1c0ljb24sXG4gICAgICAgIFRyYXNoSWNvblxuICAgIF0sXG4gICAgZXhwb3J0czogW1xuICAgICAgICBUYWJsZSxcbiAgICAgICAgU2hhcmVkTW9kdWxlLFxuICAgICAgICBTb3J0YWJsZUNvbHVtbixcbiAgICAgICAgRnJvemVuQ29sdW1uLFxuICAgICAgICBSb3dHcm91cEhlYWRlcixcbiAgICAgICAgU2VsZWN0YWJsZVJvdyxcbiAgICAgICAgUm93VG9nZ2xlcixcbiAgICAgICAgQ29udGV4dE1lbnVSb3csXG4gICAgICAgIFJlc2l6YWJsZUNvbHVtbixcbiAgICAgICAgUmVvcmRlcmFibGVDb2x1bW4sXG4gICAgICAgIEVkaXRhYmxlQ29sdW1uLFxuICAgICAgICBDZWxsRWRpdG9yLFxuICAgICAgICBTb3J0SWNvbixcbiAgICAgICAgVGFibGVSYWRpb0J1dHRvbixcbiAgICAgICAgVGFibGVDaGVja2JveCxcbiAgICAgICAgVGFibGVIZWFkZXJDaGVja2JveCxcbiAgICAgICAgUmVvcmRlcmFibGVSb3dIYW5kbGUsXG4gICAgICAgIFJlb3JkZXJhYmxlUm93LFxuICAgICAgICBTZWxlY3RhYmxlUm93RGJsQ2xpY2ssXG4gICAgICAgIEVkaXRhYmxlUm93LFxuICAgICAgICBJbml0RWRpdGFibGVSb3csXG4gICAgICAgIFNhdmVFZGl0YWJsZVJvdyxcbiAgICAgICAgQ2FuY2VsRWRpdGFibGVSb3csXG4gICAgICAgIENvbHVtbkZpbHRlcixcbiAgICAgICAgQ29sdW1uRmlsdGVyRm9ybUVsZW1lbnQsXG4gICAgICAgIFNjcm9sbGVyTW9kdWxlXG4gICAgXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtcbiA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